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
if value is null will return null current.
public static Object getPathValue(DynamicMessage originMessage, FieldPathUtils.PathInfo pathInfo, FeatureContext ctx) { if (Objects.isNull(pathInfo) || Objects.isNull(originMessage)) { return null; } Object pathMessage = originMessage; Descriptors.FieldDescriptor pathDescriptor = null; for (FieldPathUtils.PathInfo nextPath = pathInfo; Objects.nonNull(nextPath); nextPath = nextPath.getNestPathInfo()) { if (Objects.isNull(pathMessage)) { return null; } Pair<Descriptors.FieldDescriptor, Object> pair = getDescriptorAndMessageByName(pathMessage, nextPath); pathDescriptor = pair.getKey(); pathMessage = pair.getValue(); if (Objects.isNull(pathDescriptor)) { return null; } pathMessage = getPathMessage(pathDescriptor, (DynamicMessage) pathMessage, nextPath, ctx); } if (Objects.isNull(pathMessage)) { return null; } if (Objects.isNull(pathDescriptor)) { throw new IllegalArgumentException(String.format("Path info: %s can't find descriptor type.", JsonSerializer.serialize(pathInfo))); } return ProtoUtils.getProtoValue(pathMessage, pathDescriptor, ctx); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object currValue();", "public T getCurrent(){\r\n if(curr != null){\r\n return curr.data;\r\n }\r\n return null;\r\n }", "String getCurrentValue();", "public String getCurrentEntry() {\n if (entries.size() > 0) {\n int index = Math.round(offsetValue) % entries.size();\n return entries.get(index);\n }\n\n return null;\n }", "public /* @Nullable */ T getValue() {\n return value;\n }", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public Integer getCurrentValue() {\n return currentValue;\n }", "public Integer getCurrentValue() {\n return currentValue;\n }", "@Override\n\tpublic Object getValue() {\n\t\treturn null;\n\t}", "default V getOrElse(V value) {\n return isEmpty() ? value : get();\n }", "default V get() {\n V item = orElseNull();\n if ( item == null )\n throw new IllegalArgumentException(\"No item at the targeted position!\");\n return item;\n }", "public ValueType peek() {\r\n // TODO\r\n return null;\r\n }", "T getNullValue();", "public @Nullable T getValue() {\n return this.value;\n }", "@Override\n\tpublic V getValue(K key) {\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(!isEmpty()){\n\t\t\twhile(currentNode.key != key){\n\t\t\t\tif(currentNode.getNextNode() == null){\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn (V)currentNode.value;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "public de.engehausen.crazygolf.model.Element getCurrent() {\r\n\t\treturn current;\r\n\t}", "public double getCurrent( )\r\n {\r\n\t double element = 0; \r\n\t if(isCurrent() != true){// Student will replace this return statement with their own code:\r\n\t throw new IllegalStateException (\"no current element, getCurrent may not be called\");\r\n\t }\r\n\t else\r\n\t \t element = element + (cursor.getData()) ;\r\n\t return element; \r\n }", "public T previous()\n {\n // TODO: implement this method\n return null;\n }", "public Optional<Step> getCurrentStep() {\n return fromNullable(currentStep);\n }", "protected TestElement getCurrentElement() throws NextIsNullException {\n if (current < subControllersAndSamplers.size()) {\n return subControllersAndSamplers.get(current);\n }\n if (subControllersAndSamplers.size() == 0) {\n setDone(true);\n throw new NextIsNullException();\n }\n return null;\n }", "private T bestValue(MatchTreeNode<T> node) {\n T value = null;\n if (node != null) {\n if (node.child(\"/\") != null) {\n value = node.child(\"/\").value();\n } else {\n value = bestValue(node.parent());\n }\n }\n return value;\n }", "public Integer getCurrent() {\n return this.current;\n }", "public Object getElseValue();", "public Optional<T> getValue() {\n return Optional.ofNullable(value);\n }", "public static Value makeNull() {\n return theNull;\n }", "public org.apache.xmlbeans.XmlObject getValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlObject target = null;\n target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(VALUE$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public int peek(int valueIfEmpty) {\n\t\t\tif (storedValues > 0) {\n\t\t\t\treturn stack[bottom];\n\t\t\t}\n\t\t\treturn valueIfEmpty;\n\t\t}", "public String valueInCurrentSlot() {\n return this.innerProperties() == null ? null : this.innerProperties().valueInCurrentSlot();\n }", "public Node getCurrent() {\n return current;\n }", "public ContentObject getCurrent(\n )\n {\n if(index < 0 || index >= objects.size())\n return null;\n\n return objects.get(index);\n }", "@Override\n public E getCurrent() {\n if (isCurrent()) { return cursor.getData(); }\n else { throw new IllegalStateException(\"There is no current element.\"); }\n }", "public int getCurrentValue() {\n\t\treturn this.currentValue;\n\t}", "@Override\n\tprotected Object doGetValue(Object source) {\n\t\treturn null;\n\t}", "public E getCurrent()\n {\n if (size != 0)\n {\n return current.data();\n }\n else\n {\n throw new NoSuchElementException(\"The list is empty\");\n }\n }", "@Override\r\n\tpublic E peek() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\treturn stack[t];\r\n\t}", "public Token current() {\n \tif( current == null ) {\n \t\treturn peek;\n \t}\n return current;\n }", "@Override\r\n\tpublic Integer getValue() {\n\t\treturn null;\r\n\t}", "public Player getCurrent(){\n\t\tPlayer p;\n\t\ttry{\n\t\t\tp = this.players.get(this.currElem);\n\t\t\t\n\t\t} catch(IndexOutOfBoundsException e){\n\t\t\tSystem.out.println(\"There isn't any players.\");\n\t\t\tp = null;\n\t\t}\n\t\t\t\n\t\treturn p; \n\t}", "private V isertNullKey(K key, V value) {\n return value;\n }", "@Override\n protected <T> T replaceIfNotNull(T previousVal, T newVal) {\n return newVal;\n }", "public Integer peek() {\n if (iter == null) {\n return null;\n }\n\n if (cur != null) {\n return cur;\n }\n\n if (iter.hasNext()) {\n cur = iter.next();\n return cur;\n } else {\n return null;\n }\n }", "private static String getValue(Object o) {\n if (o != null) {\n return o.toString();\n }\n return \"null\";\n }", "public ColorImage getCurrentImage() {\n try {\n return currentImage.peek();\n } catch (EmptyStackException e) {\n return null;\n }\n }", "protected String getCurrentValue(FacesContext context,UIComponent component) {\n \n String currentValue = null;\n Object currentObj = component.currentValue(context);\n if ( currentObj != null) {\n currentValue = getFormattedValue(context, component, currentObj);\n } \n if (currentValue == null) {\n currentValue = \"\";\n }\n return currentValue;\n }", "@Override\n\tpublic T peek() {\n\t\treturn last.getValue();\n\t}", "public ExParValue pop() {\r\n\t\tExParValue v = null;\r\n\t\tif (value.next != null) {\r\n\t\t\tv = value;\r\n\t\t\tvalue = value.next;\r\n\t\t\t// System.out.println(\"ExPar.pop() Popping \" + v.toString() +\r\n\t\t\t// \" now on top: \" + value.toString());\r\n\t\t} else {\r\n\t\t\tnew ParameterValueError(\"ExPar.pop() without preceding push()\");\r\n\t\t}\r\n\t\t/*\r\n\t\t * if (value == null) {\r\n\t\t * System.out.println(\"ExPar.pop(): Value stack empty.\"); } else if\r\n\t\t * (value.next == null) {\r\n\t\t * System.out.println(\"ExPar.pop(): A single value is on the stack: \" +\r\n\t\t * value.toString()); } else {\r\n\t\t * System.out.println(\"ExPar.pop(): Value stack: \" + value.toString() +\r\n\t\t * \", \" + value.next.toString()); }\r\n\t\t */\r\n\t\treturn (v);\r\n\t}", "public Object getValue() {\n return element == null ? null : element.getValue();\n }", "public E last() {\n if (next == null) {\n return head();\n } else {\n JMLListEqualsNode<E> ptr = this;\n //@ maintaining ptr != null;\n while (ptr.next != null) {\n ptr = ptr.next;\n }\n //@ assert ptr.next == null;\n //@ assume ptr.val != null ==> \\typeof(ptr.val) <: \\type(Object);\n E ret = (ptr.val == null\n ? null\n : (ptr.val) );\n //@ assume ret != null ==> \\typeof(ret) <: elementType;\n //@ assume !containsNull ==> ret != null;\n return ret;\n }\n }", "public Tile sameValue(Tile t) {\n for (int i=0; i<this.size(); i++) {\n if (this.get(i).getColour() == t.getColour() &&\n this.get(i).getValue() == t.getValue()) {\n return this.get(i);\n }\n }\n return null;\n\n }", "@Override\n\tpublic Value apprise() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}", "@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}", "public K topValue() {\n\t\tif(top!=null)\r\n\t\t\treturn top.data;\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public E head() {\n E ret = (val == null\n ? null\n : val ); //@ nowarn Cast;\n //@ assume ret != null ==> \\typeof(ret) <: elementType;\n //@ assume !containsNull ==> ret != null;\n return ret;\n }", "public double getCurrentValue()\r\n\t{\r\n\t\tcurrentValue=(2*border+24)/2;\r\n\t\treturn currentValue;\r\n\t}", "private T getHelper(T data, BSTNode<T> current) {\n int compare = data.compareTo(current.getData());\n if (compare < 0) {\n if (current.getLeft() == null) {\n return null;\n } else {\n return getHelper(data, current.getLeft());\n }\n } else if (compare > 0) {\n if (current.getRight() == null) {\n return null;\n } else {\n return getHelper(data, current.getRight());\n }\n } else {\n return current.getData();\n }\n }", "public float getCurrentValue() {\n return currentValue;\n }", "public int peekBack() {\n if(tail == null) {\n return Integer.MIN_VALUE;\n }\n\n return tail.val;\n }", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n return null; // we don't know how to process it here => keep the source value\n }", "public int getValue() {\n int tmp = value;\n value = -1;\n return tmp;\n }", "@Override\n @SuppressWarnings(\"Duplicates\")\n public V getValue(K key) {\n TreeNode<KeyValuePair<K, V>> previous = root;\n TreeNode<KeyValuePair<K, V>> current = root;\n boolean smaller = false;\n TreeNode<KeyValuePair<K, V>> result = null;\n while(true) {\n if(current == null) {\n break;\n }\n previous = current;\n if(key.compareTo(current.getValue().getKey()) < 0) {\n smaller = true;\n current = current.getLeft();\n } else if(key.compareTo(current.getValue().getKey()) > 0) {\n smaller = false;\n current = current.getRight();\n } else if (key.equals(current.getValue().getKey())) {\n System.out.println(\"Found the value!\");\n result = current;\n break;\n }\n }\n if(result != null) return result.getValue().getValue();\n return null;\n }", "private T getPredecessor(BSTNode<T> current) {\n while (current.getRight() != null) {\n current = current.getRight();\n }\n return current.getData();\n }", "public T previous() {\r\n\t\t// aktu == null ist dann, wenn aktu einen schritt zuvor first war;\r\n\t\tif (aktu == null) {\r\n\t\t\treturn null;\r\n\t\t} else if (first.equals(aktu)) {\r\n\t\t\t// wir sind am Ende, deswegen setzen wir aktu auf null (für die\r\n\t\t\t// Abfrage oberhalb) und geben den ersten Wert zurück;\r\n\t\t\taktu = null;\r\n\t\t\treturn (T) first.getData();\r\n\t\t} else if (first.equals(aktu.getPrevious())) {\r\n\t\t\t// überprüft, ob der Knoten vor dem aktuellen der letzte ist, dass\r\n\t\t\t// hat den Grund, dass beim letzten die Methode .getPrevios eine\r\n\t\t\t// NullPointerException wirft;\r\n\t\t\taktu = first;\r\n\t\t\treturn (T) first.getNext().getData();\r\n\t\t} else {\r\n\t\t\t// das ist der Standardfall solange der nicht beim vorletzten Knoten\r\n\t\t\t// angekommen ist.\r\n\t\t\taktu = aktu.getPrevious();\r\n\t\t\treturn (T) aktu.getNext().getData();\r\n\t\t}\r\n\r\n\t}", "public T peek()\n {\n\n if (ll.getSize()==0){\n return null;\n }else\n return ll.getData(ll.getSize()-1);\n }", "@Override\n \tpublic IValue getValue() {\n \t\treturn this;\n \t}", "public Integer peek() {\n if (hasNext()){\n if (list.isEmpty()){\n Integer next = iterator.next();\n list.add(next);\n return next;\n }else {\n return list.get(list.size()-1);\n }\n }else {\n return null;\n }\n }", "public Value get(Key key) {\n if (key == null) {\n return null;\n }\n if(first.key.compareTo(key) == 0) {\n return update(first);\n }\n Node recentNode = first;\n while(recentNode != null) {\n if (recentNode.next.key.compareTo(key) == 0) {\n return update(recentNode);\n }\n recentNode = recentNode.next;\n }\n return null;\n }", "public T minValue(){\r\n \tif(size > 0) {\r\n \t\treturn stack1.peek();\r\n \t}else {\r\n \t\treturn null;\r\n \t}\r\n }", "public K get()\n {\n\treturn current.data(); \n }", "@NotNull\n T getValue();", "@Override\r\n\tpublic Object first(){\r\n\t\tcheck();\r\n\t\treturn head.value;\r\n\t}", "protected D getPreviousOrSame(D d) {\n\t\t\tD prev = getPrevious(d);\n\t\t\tif (prev == null) {\n\t\t\t\treturn d;\n\t\t\t}\n\t\t\treturn prev;\n\t\t}", "@Nullable\n GrExpression getYieldedValue();", "public THING orElseNull() {\n return directlyGetOrElse(null);\n }", "private T getPredecessor (BSTNode<T> current) {\n\t\twhile(current.getRight() != null) {\n\t\t\tcurrent = current.getRight();\n\t\t}\n\t\treturn current.getData();\n\n\t}", "@Override\n\tpublic E peek() {\n\t\treturn null;\n\t}", "@Override\n\tpublic E peek() {\n\t\treturn null;\n\t}", "public K next()\n {\n\tif (hasNext()) {\n\t K element = current.data();\n\t current = current.next(0);\n\t return element; \n\t} else {\n\t return null; \n\t}\n }", "public int getCurrentValue() throws DfException {\n\t\tfinal String valueStr = object.getString(CURRENT_VALUE);\n\t\tfinal int value = Integer.parseInt(valueStr);\n\t\treturn value;\n\t}", "public Object peek() {\n if (top >= 0) {\n return stack[top];\n }\n else {\n return null;\n }\n }", "private StackManipulation getCurrentRowFieldValue(int i) {\n StackManipulation readRow = localVariables.readVariable(currentSelectRowArg, Row.class);\n StackManipulation getValue =\n new StackManipulation.Compound(\n localVariables.readVariable(currentSelectRowArg, Row.class),\n IntegerConstant.forValue(i),\n MethodInvocation.invoke(\n ROW_LOADED_TYPE\n .getDeclaredMethods()\n .filter(\n ElementMatchers.named(\"getValue\")\n .and(ElementMatchers.takesArguments(int.class)))\n .getOnly()));\n\n return new ShortCircuitReturnNull(readRow, getValue);\n }", "@Override\n public Optional<?> getNullValue(DeserializationContext ctxt) throws JsonMappingException {\n return Optional.ofNullable(_valueDeserializer.getNullValue(ctxt));\n }", "@Override\r\n\tpublic T get() {\n\t\treturn null;\r\n\t}", "public E peek(){\r\n if(isEmpty())\r\n return null;\r\n\r\n return queue[currentSize-1]; //return the object without removing it\r\n }", "public BigInteger getCurrentValue()\r\n { \t\r\n \tlog.debug(\"counter: \" + currentValue.intValue() );\r\n return this.currentValue;\r\n }", "@Override\r\n\tpublic E peek() {\n\t\treturn null;\r\n\t}", "public Number getValue() {\n return currentVal;\n }", "T getOrElse(T value);", "@Override\r\n\tpublic T peek() throws StackEmptyException {\n\t\tif(isempty()) throw new StackEmptyException(\"Pila vacia\");\r\n\t\tnodo<T> tmp=sentinel;\r\n\t\twhile(tmp.getNext()!=null) {\r\n\t\t\t tmp=tmp.getNext();\r\n\t\t}\r\n\t\treturn tmp.getValue();\r\n\t}", "protected T getValue0() {\n\t\treturn value;\n\t}", "@Override\n public Integer next() {\n if (cur != null) {\n int temp = cur.intValue();\n cur = null;\n return temp;\n }\n\n if (iter.hasNext()) {\n return iter.next();\n }\n\n return null;\n }", "@Nullable\n private YAMLValue getVal() {\n return getKeyValue().getValue();\n }", "public Node findInOrderSuccessor() {\n\n return null;\n }", "@SuppressWarnings(\"unchecked\")\n @Nullable\n public T getValue() {\n Object data = mData;\n if (data != NOT_SET) {\n return (T) data;\n }\n return null;\n }", "public E peek() {\n\t\tif (isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn apq.get(1);\n\t}", "public Object getValue() {\n if (_valueIndex <= 0)\n return null;\n return ((ConstantEntry) getPool().getEntry(_valueIndex)).getConstant();\n }", "@Override\r\n\tpublic E peekFirst() {\n\t\treturn null;\r\n\t}", "public T get() {\r\n\t\tif (value == null) {\r\n\t\t\tthrow new NoSuchElementException(\"No value present\");\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "protected T getFirstValue(List<T> list) {\n\t\treturn list != null && !list.isEmpty() ? list.get(0) : null;\n\t}", "public Object getValue() { return _value; }", "@Override\n\tpublic SmCdr2 getCurrentValue() throws IOException, InterruptedException {\n\t\treturn null;\n\t}" ]
[ "0.6508744", "0.64726686", "0.6217685", "0.6177916", "0.6172153", "0.6060735", "0.6025973", "0.6025973", "0.6005301", "0.60003", "0.597561", "0.5967476", "0.59291905", "0.589232", "0.5875579", "0.5861634", "0.58264244", "0.58166295", "0.57984823", "0.5778446", "0.5777373", "0.5768242", "0.57671046", "0.575342", "0.5734698", "0.5723688", "0.57166386", "0.5713909", "0.5711557", "0.5707948", "0.5691885", "0.5681665", "0.5671575", "0.5664749", "0.5660079", "0.56596786", "0.5653819", "0.56449205", "0.5625327", "0.5614525", "0.5610202", "0.56030995", "0.5591771", "0.5584923", "0.55805916", "0.5578022", "0.5577494", "0.5569869", "0.55652714", "0.5559691", "0.55482745", "0.55482745", "0.5533871", "0.5533449", "0.5531341", "0.55214113", "0.551115", "0.55096585", "0.5505494", "0.549884", "0.54966366", "0.5495141", "0.54929924", "0.549209", "0.54874754", "0.54810524", "0.54709476", "0.5470292", "0.5469883", "0.54672205", "0.5466149", "0.5460186", "0.54584146", "0.5438266", "0.543506", "0.5432102", "0.5432102", "0.54244035", "0.5421699", "0.5420901", "0.54158777", "0.5414836", "0.5406077", "0.54036206", "0.539571", "0.53948975", "0.53931046", "0.53921646", "0.5391508", "0.5390732", "0.539041", "0.53900915", "0.53841335", "0.5373542", "0.53649616", "0.5364279", "0.53627807", "0.5360379", "0.53595865", "0.5354551", "0.5347148" ]
0.0
-1
Protobuf repeated message stored as list, and every dynamic message contain key field and value field, which key field's value stored user properties key, value field's value stored user properties value.
private static Pair<Descriptors.FieldDescriptor, Object> getDescriptorAndMessageByName(Object pathValue, FieldPathUtils.PathInfo pathInfo) { Descriptors.FieldDescriptor targetDescriptor = null; Object targetMessage = null; if (pathValue instanceof DynamicMessage) { targetDescriptor = ((DynamicMessage) pathValue) .getDescriptorForType() .findFieldByName(pathInfo.getName()); targetMessage = pathValue; } else if (pathValue instanceof List) { Map<String, DynamicMessage> mapPathValue = Maps.newHashMap(); for (DynamicMessage message : (List<DynamicMessage>) pathValue) { mapPathValue.put(message.getField(message.getDescriptorForType() .findFieldByName(ProtoUtils.PROTO_MAP_TYPE_KEY)).toString(), message); } targetMessage = mapPathValue.get(pathInfo.getName()); targetDescriptor = mapPathValue.get(pathInfo.getName()) .getDescriptorForType() .findFieldByName(ProtoUtils.PROTO_MAP_TYPE_VALUE); } return ImmutablePair.of(targetDescriptor, targetMessage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RepeatedMessage() {\n\t\tsuper(\"repeated_message\", com.instalogger.entities.generated.Public.PUBLIC);\n\t}", "java.util.List<com.google.protobuf.ByteString> getRepeatedBytesFieldList();", "java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();", "java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();", "java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();", "java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();", "java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();", "public java.util.List<? extends org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder> \n getPropsOrBuilderList() {\n if (propsBuilder_ != null) {\n return propsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(props_);\n }\n }", "private PassageRecordList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DynamicMessage createDynamicMessage();", "@Override\n public byte[] frameMessage(boolean isNested) {\n List<byte[]> chunks = new ArrayList<>();\n\n // Add all values from map\n for (Map.Entry<SecurityMetadataKey, ISecurityMetadataValue> entry : map.entrySet()) {\n SecurityMetadataKey key = entry.getKey();\n ISecurityMetadataValue value = entry.getValue();\n byte[] bytes = value.getBytes();\n if (bytes != null && bytes.length > 0) {\n chunks.add(key.getUl().getBytes());\n chunks.add(BerEncoder.encode(bytes.length));\n chunks.add(bytes.clone());\n }\n }\n\n // Figure out value length\n int valueLength = 0;\n for (byte[] chunk : chunks) {\n valueLength += chunk.length;\n }\n\n // Determine total length\n int totalLength;\n if (isNested) {\n totalLength = valueLength;\n } else {\n // Prepend length field into front of the list\n byte[] lengthField = BerEncoder.encode(valueLength);\n chunks.add(0, lengthField);\n\n // Prepend key field (UL) into front of the list\n chunks.add(0, KlvConstants.SecurityMetadataUniversalSetUl.getBytes());\n\n // Compute full message length\n totalLength = UniversalLabel.LENGTH + lengthField.length + valueLength;\n }\n\n // Allocate array and write all chunks\n return arrayFromChunks(chunks, totalLength);\n }", "protected ParseObject createMessage() {\n //format single variables appropriatly. most cases the field is an array\n ArrayList<ParseUser> nextDrinker = new ArrayList<ParseUser>();\n nextDrinker.add(mNextDrinker);\n ArrayList<String> groupName = new ArrayList<String>();\n groupName.add(mGroupName);\n\n ParseObject message = new ParseObject(ParseConstants.CLASS_MESSAGES);\n message.put(ParseConstants.KEY_SENDER_ID, ParseUser.getCurrentUser().getObjectId());\n message.put(ParseConstants.KEY_SENDER, ParseUser.getCurrentUser());\n message.put(ParseConstants.KEY_GROUP_ID, mGroupId);\n message.put(ParseConstants.KEY_GROUP_NAME, groupName);\n message.put(ParseConstants.KEY_SENDER_NAME, ParseUser.getCurrentUser().getUsername());\n message.put(ParseConstants.KEY_RECIPIENT_IDS, nextDrinker);\n message.put(ParseConstants.KEY_MESSAGE_TYPE, ParseConstants.TYPE_DRINK_REQUEST);\n\n return message;\n }", "public static SimpleMessageObject createMessageObject(byte[] data) {\n SimpleMessageObject retVal = new SimpleMessageObject();\n \n // data is of the form:\n // byte(data type)|int(length of name)|name|int(length of value)|value\n boolean keepGoing = true;\n int currentPointer = 0;\n while(keepGoing) {\n int type = data[currentPointer];\n int bytesToRead = 0;\n String name;\n currentPointer++;\n switch(type) {\n //String\n case 0x73:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n String stringValue = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addString(name, stringValue);\n break;\n \n //int\n case 0x69:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n int intValue = DataConversions.getInt(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addInt(name, intValue); \n break;\n \n //long\n case 0x6c:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n long longValue = DataConversions.getLong(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addLong(name, longValue);\n break;\n \n //double\n case 0x64:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n double doubleValue = DataConversions.getDouble(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addDouble(name, doubleValue); \n break;\n \n //float\n case 0x66:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n float floatValue = DataConversions.getFloat(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addFloat(name, floatValue); \n break;\n \n //char\n case 0x63:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n char charValue = DataConversions.getChar(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addChar(name, charValue);\n break;\n \n //byte array\n case 0x62:\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n name = DataConversions.getString(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n bytesToRead = DataConversions.getInt(data, currentPointer, 4);\n currentPointer += 4;\n byte[] byteValue = DataConversions.getByteArray(data, currentPointer, bytesToRead);\n currentPointer += bytesToRead;\n retVal.addByteArray(name, byteValue);\n break;\n }\n \n if(currentPointer == data.length) {\n keepGoing = false;\n }\n }\n \n return retVal;\n }", "@NonNull\n public Map<String, byte[]> getAdditionalProperties() {\n Map<String, byte[]> additionalProps = new HashMap<>();\n\n for (KeyValuePair pair : mProto.additionalProps) {\n byte[] value = pair.value != null ? pair.value.toByteArray() : null;\n additionalProps.put(pair.name, value);\n }\n\n return additionalProps;\n }", "private MessageWithLotsOfFields(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "com.example.nettyserver.protobuf.Employee.EmployeeInfoOrBuilder getEmployeelistOrBuilder();", "edu.usfca.cs.dfs.StorageMessages.ListOrBuilder getListOrBuilder();", "public java.util.List<org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement> getPropsList() {\n if (propsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(props_);\n } else {\n return propsBuilder_.getMessageList();\n }\n }", "public java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList() {\n return message_;\n }", "public java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList() {\n return message_;\n }", "public java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList() {\n return message_;\n }", "public java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList() {\n return message_;\n }", "public java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList() {\n return message_;\n }", "public java.util.List<? extends KeyValuePairOrBuilder>\n getInfoOrBuilderList() {\n if (infoBuilder_ != null) {\n return infoBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(info_);\n }\n }", "java.util.List<? extends main.java.io.grpc.chatservice.MessageOrBuilder> \n getMessagesOrBuilderList();", "public java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList() {\n if (messageBuilder_ != null) {\n return messageBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(message_);\n }\n }", "public java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList() {\n if (messageBuilder_ != null) {\n return messageBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(message_);\n }\n }", "public java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList() {\n if (messageBuilder_ != null) {\n return messageBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(message_);\n }\n }", "public java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList() {\n if (messageBuilder_ != null) {\n return messageBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(message_);\n }\n }", "public java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList() {\n if (messageBuilder_ != null) {\n return messageBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(message_);\n }\n }", "java.util.List<? extends com.rpg.framework.database.Protocol.ItemOrBuilder> \n getItemsOrBuilderList();", "java.util.List<String> getRepeatedStringFieldList();", "private MsgFields(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\r\n super(builder);\r\n this.unknownFields = builder.getUnknownFields();\r\n }", "java.util.List<? extends Pokemon.PayloadOrBuilder> \n getPayloadOrBuilderList();", "public java.util.List<? extends Pokemon.PayloadOrBuilder> \n getPayloadOrBuilderList() {\n if (payloadBuilder_ != null) {\n return payloadBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(payload_);\n }\n }", "private QueryPassageRecordList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public java.util.List<? extends FieldOrBuilder>\n getFieldsOrBuilderList() {\n if (fieldsBuilder_ != null) {\n return fieldsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(fields_);\n }\n }", "private void validateNotificationMessageKeyValues(List<NotificationMessageKeyValue> notificationMessage,\n String restPostBodyMediaType) throws SubscriptionValidationException {\n for (NotificationMessageKeyValue item : notificationMessage) {\n String testKey = item.getFormkey();\n String testValue = item.getFormvalue();\n if (restPostBodyMediaType != null\n && restPostBodyMediaType.equals(MediaType.APPLICATION_FORM_URLENCODED.toString())) { // FORM/POST\n // PARAMETERS\n if (StringUtils.isBlank(testKey) || StringUtils.isBlank(testValue)) {\n throw new SubscriptionValidationException(\n \"Value & Key in notificationMessage must have a values: \" + notificationMessage);\n }\n } else {\n if (notificationMessage.size() != 1) {\n throw new SubscriptionValidationException(\n \"Only one array is allowed for notificationMessage when NOT using key/value pairs: \"\n + notificationMessage);\n } else if (testKey != null && !testKey.isEmpty()) {\n throw new SubscriptionValidationException(\n \"Key in notificationMessage must be empty when NOT using key/value pairs: \"\n + notificationMessage);\n } else if (StringUtils.isBlank(testValue)) {\n throw new SubscriptionValidationException(\n \"Value in notificationMessage must have a value when NOT using key/value pairs: \"\n + notificationMessage);\n }\n }\n }\n }", "public static void createNotificationMessages(Object message, List<String> msgJsonList, MessageSource source) {\n AtlasNotificationMessage<?> notificationMsg = new AtlasNotificationMessage<>(CURRENT_MESSAGE_VERSION, message, getHostAddress(), getCurrentUser(), false, source);\n String msgJson = AtlasType.toV1Json(notificationMsg);\n\n boolean msgLengthExceedsLimit = (msgJson.length() * MAX_BYTES_PER_CHAR) > MESSAGE_MAX_LENGTH_BYTES;\n\n if (msgLengthExceedsLimit) { // get utf-8 bytes for msgJson and check for length limit again\n byte[] msgBytes = AtlasNotificationBaseMessage.getBytesUtf8(msgJson);\n\n msgLengthExceedsLimit = msgBytes.length > MESSAGE_MAX_LENGTH_BYTES;\n\n if (msgLengthExceedsLimit) {\n String msgId = getNextMessageId();\n CompressionKind compressionKind = CompressionKind.NONE;\n\n if (MESSAGE_COMPRESSION_ENABLED) {\n byte[] encodedBytes = AtlasNotificationBaseMessage.gzipCompressAndEncodeBase64(msgBytes);\n\n compressionKind = CompressionKind.GZIP;\n\n LOG.info(\"Compressed large message: msgID={}, uncompressed={} bytes, compressed={} bytes\", msgId, msgBytes.length, encodedBytes.length);\n\n msgLengthExceedsLimit = encodedBytes.length > MESSAGE_MAX_LENGTH_BYTES;\n\n if (!msgLengthExceedsLimit) { // no need to split\n AtlasNotificationStringMessage compressedMsg = new AtlasNotificationStringMessage(encodedBytes, msgId, compressionKind);\n\n msgJson = AtlasType.toV1Json(compressedMsg); // msgJson will not have multi-byte characters here, due to use of encodeBase64() above\n msgBytes = null; // not used after this point\n } else { // encodedBytes will be split\n msgJson = null; // not used after this point\n msgBytes = encodedBytes;\n }\n }\n\n if (msgLengthExceedsLimit) {\n // compressed messages are already base64-encoded\n byte[] encodedBytes = MESSAGE_COMPRESSION_ENABLED ? msgBytes : AtlasNotificationBaseMessage.encodeBase64(msgBytes);\n int splitCount = encodedBytes.length / MESSAGE_MAX_LENGTH_BYTES;\n\n if ((encodedBytes.length % MESSAGE_MAX_LENGTH_BYTES) != 0) {\n splitCount++;\n }\n\n for (int i = 0, offset = 0; i < splitCount; i++) {\n int length = MESSAGE_MAX_LENGTH_BYTES;\n\n if ((offset + length) > encodedBytes.length) {\n length = encodedBytes.length - offset;\n }\n\n AtlasNotificationStringMessage splitMsg = new AtlasNotificationStringMessage(encodedBytes, offset, length, msgId, compressionKind, i, splitCount);\n\n String splitMsgJson = AtlasType.toV1Json(splitMsg);\n\n msgJsonList.add(splitMsgJson);\n\n offset += length;\n }\n\n LOG.info(\"Split large message: msgID={}, splitCount={}, length={} bytes\", msgId, splitCount, encodedBytes.length);\n }\n }\n }\n\n if (!msgLengthExceedsLimit) {\n msgJsonList.add(msgJson);\n }\n }", "static void ProcessMsg(KeyValueList kvList) throws Exception\n\t{\n\t\tint MsgID = Integer.parseInt(kvList.getValue(\"MsgID\"));\n\t\t\n\t\tswitch(MsgID)\n\t\t{\n\t\t/****************************************************\n\t\tBelow are the main part of the component program. All received msgs are encoded as a KeyValueList kvList.\n\t\tkvList is a vector of <String key, String value> pairs. The 5 main methods of KeyValueList are \n\t\t\tint size() to get the size of KeyValueList\n\t\t\tString getValue(String key) to get value given key\n\t\t\tvoid addPair(String key, String value) to add <Key, Value> pair to KeyValueList\n\t\t\tvoid setValue(String key, String value) to set value to specific key\n\t\t\tString toString() System.out.print(KeyValueList) could work\n\t\tThe following code can be used to new and send a KeyValueList msg to SISServer\n\t\t\tKeyValueList msg = new KeyValueList();\n\t\t\tmsg.addPair(\"MsgID\",\"23\");\n\t\t\tmsg.addPair(\"Description\",\"Connect to SISServer\");\n\t\t\tmsg.addPair(\"Attribute\",\"Value\");\n\t\t\t... ...\n\t\t\tmEncoder.sendMsg(msg, universal.getOutputStream()); //This line sends the msg\n\t\tNOTE: Always check whether all the attributes of a msg are in the KVList before sending it.\n\t\tDon't forget to send a msg after processing an incoming msg if necessary.\n\t\tAll msgs must have the following 2 attributes: MsgID and Description.\n\t\tBelow are the sending messages' attributes list:\n\t\t\tMsgName: Acknowledgement\tMsgID: 8888\tAttrs:\n\t\t\tMsgName: SendOut\tMsgID: 6666\tAttrs:\n\t\t\tMsgName: UploaderToGUI\tMsgID: 1008\tAttrs:\n\t\tFor more information about KeyValueList, read comments in Util.java.\n\t\t****************************************************/\n\t\tcase 1009:\n\t\t\tSystem.out.println(\"Message MsgName:GUIToUploader MsgID:1009 received, start processing.\");\n\t\t\t/*************************************************\n\t\t\tAdd code below to process Message MsgName:GUIToUploader MsgID:1009\n\t\t\tThis message has following attributes: , use KeyValueList.getValue(String key) to get the values.\n\t\t\tIf needed, don't forget to send a msg after processing. See previous comments on how to send a message.\n\t\t\t*************************************************/\n\t\t\tString lname = kvList.getValue(\"LastName\");\n\t\t\tString fname = kvList.getValue(\"FirstName\");\n\t\t\tString spo2 = kvList.getValue(\"SPO2\");\n\t\t\tString time = kvList.getValue(\"Date\");\n\t\t\tString systolic = kvList.getValue(\"Systolic\");\n\t\t\tString diastolic = kvList.getValue(\"Diastolic\");\n\t\t\tString pulse = kvList.getValue(\"Pulse\");\n\t\t\tString emails = kvList.getValue(\"Email\");\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"================= Start of message =================\");\n\t\t\tSystem.out.println(\"Time: \" + time);\n\t\t\tSystem.out.println(\"Last name: \" + lname);\n\t\t\tSystem.out.println(\"First name: \" + fname);\n\t\t\tSystem.out.println(\"SPO2: \" + spo2);\n\t\t\tSystem.out.println(\"Systolic: \"+systolic);\n\t\t\tSystem.out.println(\"Diastolic: \"+diastolic);\n\t\t\tSystem.out.println(\"Pulse: \"+pulse);\n\t\t\tSystem.out.println(\"Emails: \" + emails);\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"================== End of message ==================\\n\");\n\n\t\t\t/*\n\t\t\t * Uploading functions will be written here\n\t\t\t */\n\t\t\tStringTokenizer st = new StringTokenizer(emails, \",\");\n\t\t\tArrayList<String> addrs = new ArrayList<String>();\n\t\t\tint receiverCnt = 0;\n\t\t\twhile (st.hasMoreTokens()){\n\t\t\t\treceiverCnt++;\n\t\t\t\taddrs.add(st.nextToken());\n\t\t\t}\n\t\t\tString[] re = new String[receiverCnt];\n\t\t\tfor(int i=0;i<receiverCnt;i++){\n\t\t\t\tre[i] = addrs.get(i);\n\t\t\t\tSystem.out.println(re[i]);\n\t\t\t}\n\n\t\t\tKeyValueList msgToGUI = new KeyValueList();\n\t\t\tmsgToGUI.addPair(\"MsgID\",\"1008\");\n\t\t\tmsgToGUI.addPair(\"Responces\",emails);\n\t\t\tmEncoder.sendMsg(msgToGUI, universal.getOutputStream());\n\n\n\t\t\t//sendSSLMessage(sendTo, emailSubjectTxt, emailMsgTxt,\n\t\t\t//\t\temailFromAddress, lname, fname, spo2);\n\t\t\tsendSSLMessage(re, emailSubjectTxt, emailMsgTxt,\n\t\t\t\t\temailFromAddress, lname, fname, spo2, systolic, diastolic, pulse, time);\n\t\t\t/*\n\t\t\t * ======================= end ==========================\n\t\t\t */\n\n\n\n\n\n\n\t\t\tbreak;\n\t\t\tcase 1017:\n\t\t\tSystem.out.println(\"Message MsgName:KinectToUploader MsgID:1017 received, start processing.\");\n\t\t\t/*************************************************\n\t\t\tAdd code below to process Message MsgName:KinectToUploader MsgID:1017\n\t\t\tThis message has following attributes: , use KeyValueList.getValue(String key) to get the values.\n\t\t\tIf needed, don't forget to send a msg after processing. See previous comments on how to send a message.\n\t\t\t*************************************************/\n\n\n\n\t\t\tbreak;\n\t\t/*************************************************\n\t\tBelow are system messages. No modification required.\n\t\t*************************************************/\n\t\tcase 26:\n\t\t\tSystem.out.println(\"Connect to SISServer successful.\");\n\t\t\tbreak;\n\t\tcase 22:\n\t\t\tSystem.exit(0);\n\t\t\tbreak;\n\t\tcase 24:\n\t\t\tSystem.out.println(\"Algorithm Activated\");\n\t\t\tbreak;\n\t\tcase 25:\n\t\t\tSystem.out.println(\"Algorithm Deactivated\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "java.util.List<? extends org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder> \n getPropsOrBuilderList();", "protocol.ChatData.ChatItemOrBuilder getChatDataOrBuilder();", "@Override\n public String toString() {\n return new StringBuilder().append(\"key = \\\"\").append(key).append(\"\\\", values[] = \").append(valuesToStringBuilder()).append(\", message = \\\"\").append(message).append(\"\\\"\").toString();\n }", "public List<MessageListItem> makeList(List<BMessage> list){\n return MessageListItem.makeList(mActivity, userID, list, customDateFormat);\n }", "java.util.List<? extends KeyValuePairOrBuilder>\n getInfoOrBuilderList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "public void setMessageList(List<Object> message)\r\n\t{\r\n\t\tthis.messageList = message;\r\n\t}", "public java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList() {\n if (metaInformationBuilder_ != null) {\n return metaInformationBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(metaInformation_);\n }\n }", "public java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList() {\n if (metaInformationBuilder_ != null) {\n return metaInformationBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(metaInformation_);\n }\n }", "public java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList() {\n if (metaInformationBuilder_ != null) {\n return metaInformationBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(metaInformation_);\n }\n }", "public java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList() {\n if (metaInformationBuilder_ != null) {\n return metaInformationBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(metaInformation_);\n }\n }", "public java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList() {\n if (metaInformationBuilder_ != null) {\n return metaInformationBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(metaInformation_);\n }\n }", "private ProcessMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "protected static Message cleanDoNotStoreFields(Message message) {\n Message.Builder messageBuilder = message.toBuilder();\n for (FieldDescriptor field : message.getAllFields().keySet()) {\n StorageMethod storageMethod = field.getOptions().getExtension(ExtensionsProto.storageMethod);\n if (storageMethod == StorageMethod.DO_NOT_STORE) {\n messageBuilder.clearField(field);\n } else if (field.getJavaType() == JavaType.MESSAGE) {\n if (field.isRepeated()) {\n for (int i = 0; i < message.getRepeatedFieldCount(field); i++) {\n messageBuilder.setRepeatedField(field, i, \n cleanDoNotStoreFields((Message) message.getRepeatedField(field, i)));\n }\n } else {\n messageBuilder.setField(field,\n cleanDoNotStoreFields((Message) message.getField(field)));\n }\n }\n }\n return messageBuilder.build();\n }", "private void addObj() {\n Random rnd = new Random(); // random priority\n\n Tuple<T1, Integer> obj = new Tuple<>(message, (int)(rnd.nextDouble()*10) );\n\n cons.addElement(obj); // send a message\n }", "public JobServiceBusMessage() {\n this.setCustomMessageProperties(new LazyHashMap<String, String>());\n }", "public List<Message> parse(String message) {\n msg = new JSONObject(message);\n data = msg.getJSONArray(\"data\");\n List<Message> msgArray = new ArrayList<Message>();\n for (int i=0; i<data.length(); i++){\n Message tmpmsg = new Message();\n JSONObject tmpObj = data.getJSONObject(i);\n tmpmsg.setKey(tmpObj.getString(\"deviceId\"));\n tmpmsg.setEventTimestamp(Instant.parse(tmpObj.getString(\"time\")));\n tmpmsg.setResponseBody(tmpObj.toString());\n msgArray.add(tmpmsg);\n }\n return msgArray;\n }", "java.util.List<? extends protocol.Data.Friend.FriendItemOrBuilder> \n getFriendOrBuilderList();", "private List<JsonObject> parseDynamicTemplate(WebHookConfig webhookConfig, String message) {\n\t\tInsightsDynamicJsonParser dynamicParser = new InsightsDynamicJsonParser();\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tList<JsonObject> responceDynamicTemplateFinalDataList = new ArrayList<>(0);\n\t\ttry {\n\t\t\tJsonNode nodePayloadData = mapper.readTree(message);\n\t\t\tJsonNode nodeResponseTemplate = mapper.readTree(webhookConfig.getDynamicTemplate());\n\t\t\tresponceDynamicTemplateFinalDataList = dynamicParser.parserResponseTemplate(nodeResponseTemplate,\n\t\t\t\t\tnodePayloadData);\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\" Error while parseDynamicTemplate \", e);\n\t\t}\n\t\treturn responceDynamicTemplateFinalDataList;\n\t}", "public Message(String key, Object... values) {\n this.key = key;\n this.values = values;\n }", "private ManualMessage() {\n initFields();\n }", "java.util.List<? extends org.tribuo.protos.core.VariableInfoProtoOrBuilder> \n getInfoOrBuilderList();", "private void addAllMsg(\n Iterable<? extends Msg> values) {\n ensureMsgIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, msg_);\n }", "private void addAllMsg(\n Iterable<? extends Msg> values) {\n ensureMsgIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, msg_);\n }", "java.util.List<? extends com.polytech.spik.protocol.SpikMessages.SmsOrBuilder> \n getMessagesOrBuilderList();", "private void createApplicationProperties()\n {\n _applicationPropertiesMap = new HashMap<String,Object>();\n _message.setApplicationProperties(new ApplicationProperties(_applicationPropertiesMap));\n }", "public java.util.List<? extends org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder> \n getPropsOrBuilderList() {\n return props_;\n }", "@Order(7)\n\t\t@TestFactory\n\t\tpublic Iterable<DynamicTest> verifyCountOfListMessagesResponse() throws IOException, ParseException {\n\t\t\tString fromUser, toUser;\n\t\t\tCollection<DynamicTest> tests = new ArrayList<DynamicTest>();\n\t\t\t\n\t\t\t//send a message from each user to each other user\n\t\t\tSetup.sendMessageToAndFromEachUser(userMap);\n\t\t\t\n\t\t\t//List all combinations of messages between two users. \n\t\t\tfor (HashMap.Entry<String, String> fromItem : this.userMap.entrySet()) {\n\t\t\t String key = fromItem.getKey();\n\t\t\t fromUser = fromItem.getValue();\n\t\t\t \n\t\t\t //create userMap clone without current element\n\t\t\t HashMap<String, String> innerMap = (HashMap)this.userMap.clone();\n\t\t\t innerMap.remove(key);\n\t\t\t \n\t\t\t for (HashMap.Entry<String, String> toItem : innerMap.entrySet()) {\n\t\t\t\t toUser = toItem.getValue();\n\t\t\t\t \n\t\t\t\t //createMessage() returns null if the response code != 200\n\t\t\t\t String response = Requests.listMessages(fromUser, toUser);\n\t\t\t\t ArrayList<String> mList = JSONUtils.getAllRecordsByKey(response, \"message\");\n\t\t\t\t int x = 1;\n\t\t\t\t /*\n\t\t\t\t * each user has sent one message to each other user & received one message\n\t\t\t\t * from each other user. Hence, the list of messages between two users\n\t\t\t\t * is expected to be == 2.\n\t\t\t\t */\n\t\t\t\t tests.add(DynamicTest.dynamicTest(\"Verify that LIST messages returns only messages between the to and from user\", () -> assertTrue(mList.size()==2)));\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tests;\n\t\t}", "public org.apache.calcite.avatica.proto.Responses.DatabasePropertyElementOrBuilder getPropsOrBuilder(\n int index) {\n if (propsBuilder_ == null) {\n return props_.get(index); } else {\n return propsBuilder_.getMessageOrBuilder(index);\n }\n }", "public interface JSONKeys {\n String msgType = \"msgType\";// 消息类型\n String userId = \"userId\";// 发送者Id\n String friendId = \"friendId\";// 接收者Id\n String friendName = \"friendName\";// 好友名\n\n String sendTime = \"sendTime\";// 发送时间\n String msgCotent = \"msgCotent\";// 聊天信息-文本信息\n String voiceTime = \"voiceTime\";// 聊天信息-语音信息长度\n String voicePath = \"voicePath\";// 聊天信息-语音文件路径\n String imagePath = \"imagePath\";// 聊天信息-图片路径\n\n String userEmail = \"userEmail\";// 用户注册邮箱,登录时用邮箱登录\n String userName = \"userName\";// 用户名\n String userSex = \"userSex\";// 用户性别\n String userBirthday = \"userBirthday\";// 用户生日\n String userPasswd = \"userPasswd\";// 登录密码\n String personSignature = \"personSignature\";// 个性签名\n\n String userHeadPath = \"userHeadPath\";// 用户头像路径\n\n String loc_province = \"loc_province\";// 所处省份\n String loc_Longitude = \"loc_Longitude\";// 经度\n String loc_Latitude = \"loc_Latitude\";// 纬度\n\n String distRange = \"distRange\";// 多少公里之内的\n\n String strangerList = \"strangerList\";// 陌生人列表\n\n String friendIdList = \"friendIdList\";// 好友Id列表\n\n String groupId = \"groupId\";// 群组Id\n String groupName = \"groupName\";// 群组名\n String groupTopic = \"groupTopic\";// 群组主题\n String groupCreator = \"groupCreator\";//创建者\n\n String isGroupMsg = \"isGroupMsg\";\n\n}", "public Builder setAdditionalProperties(@Nullable Map<String, byte[]> additionalProps) {\n mProtoBuilder.additionalProps = CollectionConverter.toList(\n additionalProps.entrySet(),\n KeyValuePairConverters.CONVERTER_ENTRY_TO_KVP);\n return this;\n }", "public Message createMessage(byte nextByte) {\n if(nextByte!=delimeter) {\n addBytes(nextByte);\n return null;\n }\n else{\n content=popString();\n String[] spilt=content.split(\" \");\n int i=0;\n for(;i<spilt.length;i++){\n if(spilt[i].contains(\"@\"))\n this.listUserS.add(spilt[i].substring(1));\n }\n return this;\n }\n }", "private PassageRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "com.zzsong.netty.protobuff.two.ProtoData.PersonOrBuilder getPersonOrBuilder();", "public ParcelableMessage(Message message) {\n\t\tsuper(message);\n\t}", "java.util.List<? extends db.fennec.proto.FDataEntryProtoOrBuilder> \n getDataOrBuilderList();", "private static void add(String key, List<FieldDefinition> value) {\n if (messageFieldsMap.containsKey(key)) {\n LOGGER.error(\"Initialization error: \" + key + \" already exists in messageFieldsMap\");\n } else {\n messageFieldsMap.put(key, value);\n }\n }", "java.util.List<? extends com.ljzn.grpc.personinfo.PersoninfoMessageOrBuilder> \n getPersonInfoOrBuilderList();", "java.util.List<? extends com.sagas.meta.model.MetaFieldDataOrBuilder> \n getFieldsOrBuilderList();", "public String dump() {\n StringBuffer retVal = new StringBuffer();\n if(STRINGS.size() > 0) {\n Enumeration enumer = STRINGS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectStringItem item = (SimpleMessageObjectStringItem) enumer.nextElement();\n retVal.append(item.getName());\n retVal.append(\".s = \");\n retVal.append(item.getValue());\n retVal.append(\"\\n\");\n }\n }\n \n if(INTS.size() > 0) {\n Enumeration enumer = INTS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectIntItem item = (SimpleMessageObjectIntItem) enumer.nextElement();\n retVal.append(item.getName());\n retVal.append(\".i = \");\n retVal.append(item.getValue());\n retVal.append(\"\\n\");\n }\n }\n \n if(LONGS.size() > 0) {\n Enumeration enumer = LONGS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectLongItem item = (SimpleMessageObjectLongItem) enumer.nextElement();\n retVal.append(item.getName());\n retVal.append(\".l = \");\n retVal.append(item.getValue());\n retVal.append(\"\\n\");\n }\n }\n \n if(DOUBLES.size() > 0) {\n Enumeration enumer = DOUBLES.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectDoubleItem item = (SimpleMessageObjectDoubleItem) enumer.nextElement();\n retVal.append(item.getName());\n retVal.append(\".d = \");\n retVal.append(item.getValue());\n retVal.append(\"\\n\");\n }\n }\n \n if(FLOATS.size() > 0) {\n Enumeration enumer = FLOATS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectFloatItem item = (SimpleMessageObjectFloatItem) enumer.nextElement();\n retVal.append(item.getName());\n retVal.append(\".f = \");\n retVal.append(item.getValue());\n retVal.append(\"\\n\");\n }\n }\n \n if(CHARS.size() > 0) {\n Enumeration enumer = CHARS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectCharItem item = (SimpleMessageObjectCharItem) enumer.nextElement();\n retVal.append(item.getName());\n retVal.append(\".c = \");\n retVal.append(item.getValue());\n retVal.append(\"\\n\");\n }\n }\n \n if(BYTES.size() > 0) {\n Enumeration enumer = BYTES.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectByteArrayItem item = (SimpleMessageObjectByteArrayItem) enumer.nextElement();\n retVal.append(item.getName());\n retVal.append(\".b[] =\\n\");\n byte[] buffer = item.getValue();\n retVal.append(DataConversions.byteArrayToHexDump(buffer));\n\n }\n }\n \n return retVal.toString();\n }", "private chat_message(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private KafkaMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private MessageType processMessage(MessageType message) {\n\t\tJSONObject messageJSON = (JSONObject) message;\n\t\tJSONObject timestamp = messageJSON.getJSONObject(\"timestamp\");\n\t\t\n\t\t//complete timestamp\n\t\tint globalState = messagequeue.size();\n\t\tDate nowDate = new Date();\n\t\tString globalClock = String.valueOf(nowDate.getTime());\n\t\ttimestamp.element(\"srn\", globalState);\n\t\ttimestamp.element(\"globalClock\", globalClock);\n\t\t\n\t\tmessageJSON.element(\"timestamp\", timestamp);\n\t\treturn (MessageType) messageJSON;\n\t}", "public java.util.List<? extends com.rpg.framework.database.Protocol.ItemOrBuilder> \n getItemsOrBuilderList() {\n if (itemsBuilder_ != null) {\n return itemsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(items_);\n }\n }", "public java.util.List<? extends io.opencannabis.schema.commerce.OrderItem.ItemOrBuilder> \n getItemOrBuilderList() {\n if (itemBuilder_ != null) {\n return itemBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(item_);\n }\n }", "public static Map<String, String> messageToMap(Message msg) {\n Map<String, String> map = new HashMap<>();\n if (msg == null) return map;\n\n if (msg.fixedHeader().messageType() == MqttMessageType.PUBLISH) {\n MqttPublishVariableHeader variableHeader = (MqttPublishVariableHeader) msg.variableHeader();\n MqttPublishPayload payload = (MqttPublishPayload) msg.payload();\n map.put(\"type\", String.valueOf(MqttMessageType.PUBLISH.value()));\n map.put(\"retain\", BooleanUtils.toString(msg.fixedHeader().retain(), \"1\", \"0\"));\n map.put(\"qos\", String.valueOf(msg.fixedHeader().qos().value()));\n map.put(\"dup\", BooleanUtils.toString(msg.fixedHeader().dup(), \"1\", \"0\"));\n map.put(\"version\", msg.additionalHeader().version().toString());\n if (!msg.fixedHeader().retain()) map.put(\"clientId\", msg.additionalHeader().clientId());\n map.put(\"userName\", msg.additionalHeader().userName());\n map.put(\"topicName\", variableHeader.topicName());\n if (!msg.fixedHeader().retain()) map.put(\"packetId\", String.valueOf(variableHeader.packetId()));\n if (payload != null && payload.bytes() != null && payload.bytes().length > 0) try {\n map.put(\"payload\", new String(payload.bytes(), \"ISO-8859-1\"));\n } catch (UnsupportedEncodingException ignore) {\n }\n return map;\n } else if (msg.fixedHeader().messageType() == MqttMessageType.PUBREL) {\n MqttPacketIdVariableHeader variableHeader = (MqttPacketIdVariableHeader) msg.variableHeader();\n map.put(\"type\", String.valueOf(MqttMessageType.PUBREL.value()));\n map.put(\"version\", msg.additionalHeader().version().toString());\n map.put(\"clientId\", msg.additionalHeader().clientId());\n map.put(\"userName\", msg.additionalHeader().userName());\n map.put(\"packetId\", String.valueOf(variableHeader.packetId()));\n return map;\n } else {\n throw new IllegalArgumentException(\"Invalid in-flight MQTT message type: \" + msg.fixedHeader().messageType());\n }\n }", "@Override\n\tprotected ErrorCode mapMyMessage(Message msg) {\n\t\t\t\t\t\n\t\tint newECRs = 0;\n\t\tint totalRepPatientResult;\n\t\tif (getMyParser().getMyVersion().equalsIgnoreCase(\"2.3.1\"))\n\t\t\ttotalRepPatientResult = ((ca.uhn.hl7v2.model.v231.message.ORU_R01)msg).getPIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTIReps();\n\t\telse\n\t\t\ttotalRepPatientResult = ((ca.uhn.hl7v2.model.v251.message.ORU_R01)msg).getPATIENT_RESULTReps();\n\t\t\t\n\t\tfor (int i=0; i<totalRepPatientResult; i++) {\n\t\t\t// Create a new empty ECR JSON.\n\t\t\tJSONObject ecr_json = new JSONObject();\n\t\t\t\n\t\t\t// Set sending application.\n\t\t\tint res = getMyParser().map_provider_from_appfac ((Object) msg, ecr_json);\n\t\t\tif (res != 0) {\n\t\t\t\treturn ErrorCode.MSH;\n\t\t\t}\n\n\t\t\t// Patient specific information\n\t\t\tObject patient;\n\t\t\tif (getMyParser().getMyVersion().equalsIgnoreCase(\"2.3.1\")) {\n\t\t\t\tORU_R01_PIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI patient_result = ((ca.uhn.hl7v2.model.v231.message.ORU_R01)msg).getPIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI(i);\n\t\t\t\tpatient = patient_result.getPIDPD1NK1NTEPV1PV2();\n\t\t\t} else {\n\t\t\t\tORU_R01_PATIENT_RESULT patient_result = ((ca.uhn.hl7v2.model.v251.message.ORU_R01)msg).getPATIENT_RESULT(i);\n\t\t\t\tpatient = patient_result.getPATIENT();\n\t\t\t}\n\t\t\t\n\t\t\tint result = getMyParser().map_patient (patient, ecr_json);\n\t\t\tif (result == 0) {\n\t\t\t\tnewECRs++;\n\t\t\t} else {\n\t\t\t\t// return ErrorCode.PID;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// We should have the patient populated.\n\t\t\tJSONObject patient_json;\n\t\t\tif (ecr_json.isNull(\"Patient\")) {\n\t\t\t\t// This means the HL7v2 message has no patient demographic information.\n\t\t\t\t// This shouldn't happen. But, anything can happen in the real world. So,\n\t\t\t\t// we don't stop here. We are moving on.\n\t\t\t\tpatient_json = new JSONObject();\n\t\t\t\tecr_json.put(\"Patient\", patient_json);\n\t\t\t} else {\n\t\t\t\tpatient_json = ecr_json.getJSONObject(\"Patient\");\n\t\t\t}\n\n\t\t\t// ORC/OBR Parsing\n\t\t\tJSONArray laborders_json = new JSONArray();\n\t\t\t\n\t\t\t// This is a new JSON Array object. Put it in the patient section.\n\t\t\tpatient_json.put(\"Lab_Order_Code\", laborders_json);\n\n\t\t\tint totalOrderObs;\n\t\t\tif (getMyParser().getMyVersion().equalsIgnoreCase(\"2.3.1\")) {\n\t\t\t\tORU_R01_PIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI patient_result = ((ca.uhn.hl7v2.model.v231.message.ORU_R01)msg).getPIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI(i);\n\t\t\t\ttotalOrderObs = patient_result.getORCOBRNTEOBXNTECTIReps();\n\t\t\t} else {\n\t\t\t\tORU_R01_PATIENT_RESULT patient_result = ((ca.uhn.hl7v2.model.v251.message.ORU_R01)msg).getPATIENT_RESULT(i);\n\t\t\t\ttotalOrderObs = patient_result.getORDER_OBSERVATIONReps();\n\t\t\t}\n\t\t\tfor (int j=0; j<totalOrderObs; j++) {\n\t\t\t\tObject orderObs;\n\t\t\t\tif (getMyParser().getMyVersion().equalsIgnoreCase(\"2.3.1\")) {\n\t\t\t\t\tORU_R01_PIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI patient_result = ((ca.uhn.hl7v2.model.v231.message.ORU_R01)msg).getPIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI(i);\n\t\t\t\t\torderObs = patient_result.getORCOBRNTEOBXNTECTI(j);\n\t\t\t\t} else {\n\t\t\t\t\tORU_R01_PATIENT_RESULT patient_result = ((ca.uhn.hl7v2.model.v251.message.ORU_R01)msg).getPATIENT_RESULT(i);\n\t\t\t\t\torderObs = patient_result.getORDER_OBSERVATION(j);\n\t\t\t\t}\n\n\t\t\t\tJSONObject laborder_json = getMyParser().map_order_observation (orderObs);\n\t\t\t\tif (laborder_json == null) {\n\t\t\t\t\treturn ErrorCode.ORDER_OBSERVATION;\n\t\t\t\t}\n\t\t\t\tlaborders_json.put(laborder_json);\n\t\t\t\t\n\t\t\t\t// We add lab results to lab order.\n\t\t\t\tJSONArray labresults_json = new JSONArray();\n\t\t\t\tlaborder_json.put(\"Laboratory_Results\", labresults_json);\n\t\t\t\t\n\t\t\t\tint totalObservations;\n\t\t\t\tif (getMyParser().getMyVersion().equalsIgnoreCase(\"2.3.1\")) {\n\t\t\t\t\ttotalObservations = ((ORU_R01_ORCOBRNTEOBXNTECTI)orderObs).getOBXNTEReps();\n\t\t\t\t} else {\n\t\t\t\t\ttotalObservations = ((ORU_R01_ORDER_OBSERVATION)orderObs).getOBSERVATIONReps();\n\t\t\t\t}\n\t\t\t\tfor (int k=0; k<totalObservations; k++) {\n\t\t\t\t\tObject obsResult;\n\t\t\t\t\tif (getMyParser().getMyVersion().equalsIgnoreCase(\"2.3.1\")) {\n\t\t\t\t\t\tobsResult = ((ORU_R01_ORCOBRNTEOBXNTECTI)orderObs).getOBXNTE(k).getOBX();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tobsResult = ((ORU_R01_ORDER_OBSERVATION)orderObs).getOBSERVATION(k).getOBX();\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tJSONObject labresult_json = getMyParser().map_lab_result (obsResult);\n\t\t\t\t\tif (labresult_json == null) {\n\t\t\t\t\t\treturn ErrorCode.LAB_RESULTS;\n\t\t\t\t\t}\n\t\t\t\t\tlabresults_json.put(labresult_json);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// For each order, we have provider, facility, order date and reason information.\n\t\t\t\t// We put this information in the high level.\n\t\t\t\t//\n\t\t\t\t// Provider and Facility at Top ECR level.\n\t\t\t\t// Order Date and Reason at Patient level.\n\t\t\t\t//\n\t\t\t\t// Provider and Facility: \n\t\t\t\t// We are in the Order Loop. So, we will come back. However, \n\t\t\t\t// ECR allows only one provider and facility. So, this can be overwritten\n\t\t\t\t// by next order if provider info exists.\n\t\t\t\tif (!laborder_json.isNull(\"Provider\")) {\n\t\t\t\t\tJSONObject provider_json = laborder_json.getJSONObject(\"Provider\");\n\t\t\t\t\tif (provider_json != null) \n\t\t\t\t\t\tgetMyParser().add_provider (provider_json, ecr_json);\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (!laborder_json.isNull(\"Facility\")) {\n\t\t\t\t\tJSONObject facility_json = laborder_json.getJSONObject(\"Facility\");\n\t\t\t\t\tif (facility_json != null) ecr_json.put(\"Facility\", facility_json);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Order Date and Reason. \n\t\t\t\t// We have Visit DateTime in ECR. We will put order date as a visit date\n\t\t\t\t// as the order usually made when a patient visits a clinic.\n\t\t\t\tif (!laborder_json.isNull(\"DateTime\")) {\n\t\t\t\t\tString orderDate_json = laborder_json.getString(\"DateTime\");\n\t\t\t\t\tif (orderDate_json != null) patient_json.put(\"Visit_DateTime\", orderDate_json);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// We have reasons in lab order. We put this in the trigger code.\n\t\t\t\tif (!laborder_json.isNull(\"Reasons\")) {\n\t\t\t\t\tJSONArray reasons_json = laborder_json.getJSONArray(\"Reasons\");\n\t\t\t\t\tJSONArray triggercode_json;\n\t\t\t\t\tif (patient_json.isNull(\"Tigger_Code\")) {\n\t\t\t\t\t\ttriggercode_json = new JSONArray();\n\t\t\t\t\t\tpatient_json.put(\"Trigger_Code\", triggercode_json);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttriggercode_json = patient_json.getJSONArray(\"Trigger_Code\");\n\t\t\t\t\t}\n\t\t\t\t\tif (reasons_json != null) {\n\t\t\t\t\t\tfor (int c=0; c<reasons_json.length(); c++) {\n\t\t\t\t\t\t\ttriggercode_json.put(reasons_json.get(c));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tsendEcr (ecr_json);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn ErrorCode.INTERNAL;\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\tif (newECRs == 0) {\n\t\t\treturn ErrorCode.PID;\n\t\t}\n\t\t\n\t\treturn ErrorCode.NOERROR;\n\t}", "private Item(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public Map<String, String> generateKeyValuePairs() {\n\n // Alternatively, we could update each field as it is \"set\". For now\n // we'll lazily force a refresh of all fields for the sake of\n // simplicity.\n\n if (shouldUpdateCache) {\n\n // Most of this below helps build headers and request ends-points,\n // i.e. urls.\n cachedList.put(\"$$JSON_OBJECT$$\", jsonObject);\n cachedList.put(\"$$AUTH_TOKEN$$\", token);\n cachedList.put(\"$$CONF_ID$$\", confId);\n cachedList.put(\"$$BASE_URL$$\", baseUrl);\n cachedList.put(\"$$SELF_LINK$$\", selfLink);\n cachedList.put(\"$$POOL_OVERRIDE$$\", poolOverride);\n cachedList.put(\"$$CONVERSATION_ID$$\", conversationId);\n cachedList.put(\"$$ACCEPT_LANGUAGE$$\", acceptLanguage);\n\n cachedList.put(\"$$SWID$$\", swid);\n cachedList.put(\"$$CART_ID$$\", cartId);\n cachedList.put(\"$$ITEM_ID$$\", itemId);\n cachedList.put(\"$$ORDER_ID$$\", orderId);\n cachedList.put(\"$$TERMS_ID$$\", termsId);\n cachedList.put(\"$$PAYMENT_INFO$$\", paymentInfo);\n cachedList.put(\"$$AVAILABILITY_ID$$\", availabilityId);\n cachedList.put(\"$$USERNAME$$\", userId);\n cachedList.put(\"$$USERNAME_ESCAPED$$\", getUserIdEscaped(userId));\n cachedList.put(\"$$PASSWORD$$\", userPw);\n cachedList.put(\"$$STORE_ID$$\", storeId);\n cachedList.put(\"$$RESORT_ID$$\", resortId);\n cachedList.put(\"$$PARTY_MIX$$\", partyMix);\n cachedList.put(\"$$COMPONENTS$$\", components);\n cachedList.put(\"$$ROOM_TYPE_ID$$\", roomType);\n cachedList.put(\"$$AFFILIATIONS$$\", affiliations);\n cachedList.put(\"$$SELF_LINK$$\", selfLink);\n cachedList.put(\"$$REGION$$\", region);\n cachedList.put(\"$$SEARCH_DATE$$\", searchDate);\n cachedList.put(\"$$FILTERS$$\", filters);\n\n // Used for finder-service and a whole bunch more.\n cachedList.put(\"$$ENTITY_ID$$\", entityId);\n cachedList.put(\"$$ENTITY_TYPE$$\", entityType);\n cachedList.put(\"$$DESTINATION$$\", destination);\n\n // General user information, generally used for user creation.\n cachedList.put(\"$$ARRIVE_DATE$$\", arriveDate);\n cachedList.put(\"$$DEPART_DATE$$\", departDate);\n cachedList.put(\"$$NAME_TITLE$$\", title);\n cachedList.put(\"$$NAME_FIRST$$\", firstName);\n cachedList.put(\"$$NAME_MIDDLE$$\", middleName);\n cachedList.put(\"$$NAME_LAST$$\", lastName);\n cachedList.put(\"$$NAME_SUFFIX$$\", suffix);\n\n cachedList.put(\"$$ADDR_PHONE_NUMBER$$\", addressPhoneNumber);\n cachedList.put(\"$$BIRTHDATE$$\", birthDate);\n cachedList.put(\"$$ADDR_LINE1$$\", address1);\n cachedList.put(\"$$ADDR_LINE2$$\", address2);\n cachedList.put(\"$$ADDR_CITY$$\", addressCity);\n cachedList.put(\"$$ADDR_STATE$$\", addressState);\n cachedList.put(\"$$ADDR_STATE_CODE$$\", addressStateCode);\n cachedList.put(\"$$ADDR_COUNTRY$$\", addressCountry);\n cachedList.put(\"$$ADDR_COUNTRY_CODE$$\", addressCountryCode);\n cachedList.put(\"$$ADDR_ZIP$$\", addressZip);\n cachedList.put(\"$$QUESTION_CITY_BORN$$\", questionCityBorn);\n cachedList.put(\"$$QUESTION_BAND$$\", questionFavoriteBand);\n cachedList.put(\"$$TOU_CODE_PREFIX$$\", touCodePrefix);\n cachedList.put(\"$$AFFILIATE$$\", affiliate);\n\n // Card Info\n cachedList.put(\"$$CARD_TYPE$$\", cardType);\n cachedList.put(\"$$CARD_SUB_TYPE$$\", cardSubType);\n cachedList.put(\"$$CARD_NUMBER$$\", cardNumber);\n cachedList.put(\"$$CVV$$\", cvv);\n cachedList.put(\"$$EXP_MONTH$$\", expirationMonth);\n cachedList.put(\"$$EXP_YEAR$$\", expirationYear);\n shouldUpdateCache = false;\n }\n return cachedList;\n }", "public List<Object> getMessageList()\r\n\t{\r\n\t\treturn messageList;\r\n\t}", "public ListeMessage() {\n\t\tmessagesEntrant = new ArrayList<Message>();\n\t\tmessagesSortant = new ArrayList<Message>();\n\t\tmessages = new ArrayList<Message>();\n\t}", "java.util.List<com.google.protobuf.ByteString> getDataList();", "java.util.List<com.google.protobuf.ByteString> getDataList();", "public java.util.List<? extends if4031.common.MessageOrBuilder> \n getMessagesOrBuilderList() {\n return messages_;\n }", "private ListNotification(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "public byte[] getNetworkPacket() {\n /*\n The packet layout will be:\n byte(datatype)|int(length of name)|byte[](name)|int(length of value)|byte[](value)|...\n */\n byte[] data = new byte[2];\n int currentPosition = 0;\n \n if(STRINGS.size() > 0) {\n Enumeration enumer = STRINGS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x73;\n currentPosition++;\n\n SimpleMessageObjectStringItem item = (SimpleMessageObjectStringItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = item.getValue().getBytes();\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(INTS.size() > 0) {\n Enumeration enumer = INTS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x69;\n currentPosition++;\n\n SimpleMessageObjectIntItem item = (SimpleMessageObjectIntItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(LONGS.size() > 0) {\n Enumeration enumer = LONGS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x6C;\n currentPosition++;\n\n SimpleMessageObjectLongItem item = (SimpleMessageObjectLongItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(DOUBLES.size() > 0) {\n Enumeration enumer = DOUBLES.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x64;\n currentPosition++;\n\n SimpleMessageObjectDoubleItem item = (SimpleMessageObjectDoubleItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(FLOATS.size() > 0) {\n Enumeration enumer = FLOATS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x66;\n currentPosition++;\n\n SimpleMessageObjectFloatItem item = (SimpleMessageObjectFloatItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(CHARS.size() > 0) {\n Enumeration enumer = CHARS.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x63;\n currentPosition++;\n\n SimpleMessageObjectCharItem item = (SimpleMessageObjectCharItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = DataConversions.getBytes(item.getValue());\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n \n if(BYTES.size() > 0) {\n Enumeration enumer = BYTES.elements();\n while(enumer.hasMoreElements()) {\n if(currentPosition == data.length) {\n data = growArray(data, 1);\n }\n // Add the type\n data[currentPosition] = 0x62;\n currentPosition++;\n\n SimpleMessageObjectByteArrayItem item = (SimpleMessageObjectByteArrayItem) enumer.nextElement();\n int spaceLeft = data.length - currentPosition;\n byte[] name = item.getName().getBytes();\n if(spaceLeft < name.length + 4) {\n data = growArray(data, name.length - spaceLeft + 4);\n }\n \n //Add the length of the name\n byte[] nameLength = DataConversions.getBytes(name.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = nameLength[i];\n currentPosition++;\n }\n \n //Add the name\n for(int i = 0 ; i < name.length ; i++) {\n data[currentPosition] = name[i];\n currentPosition++;\n }\n \n spaceLeft = data.length - currentPosition;\n byte[] value = item.getValue();\n if(spaceLeft < value.length + 4) {\n data = growArray(data, value.length - spaceLeft + 4);\n }\n \n //Add the length of the value\n byte[] valueLength = DataConversions.getBytes(value.length);\n for(int i = 0 ; i < 4 ; i++) {\n data[currentPosition] = valueLength[i];\n currentPosition++;\n }\n \n //Add the value\n for(int i = 0 ; i < value.length ; i++) {\n data[currentPosition] = value[i];\n currentPosition++;\n }\n }\n }\n\n return data;\n }", "java.util.List<main.java.io.grpc.chatservice.Message> \n getMessagesList();" ]
[ "0.61882037", "0.5747719", "0.54666704", "0.54666704", "0.54666704", "0.54666704", "0.54666704", "0.5351597", "0.5228586", "0.52277267", "0.5210267", "0.51898485", "0.512042", "0.5094895", "0.5068061", "0.5066786", "0.5013135", "0.4989758", "0.49739736", "0.49739736", "0.49739736", "0.49739736", "0.49739736", "0.49737802", "0.49006537", "0.4891521", "0.4891521", "0.4891521", "0.4891521", "0.4891521", "0.4863874", "0.48525882", "0.48379138", "0.48313487", "0.48279667", "0.48013127", "0.47963458", "0.47954386", "0.47954148", "0.47860485", "0.47824764", "0.4778616", "0.47471243", "0.47340712", "0.47253993", "0.47240517", "0.47240517", "0.47240517", "0.47240517", "0.47240517", "0.47219577", "0.47177717", "0.47177717", "0.47177717", "0.47177717", "0.47177717", "0.4706142", "0.47028047", "0.46617752", "0.4661396", "0.4650411", "0.46460247", "0.4641198", "0.46400797", "0.46369478", "0.46353254", "0.4623611", "0.4623611", "0.4619417", "0.4618448", "0.4604588", "0.46016553", "0.4600057", "0.45858228", "0.45815578", "0.45762426", "0.45664728", "0.45592564", "0.45493463", "0.4542001", "0.45375606", "0.45330104", "0.4532775", "0.4531527", "0.45307842", "0.45211264", "0.45150477", "0.45135653", "0.45118952", "0.45019948", "0.44848704", "0.44808874", "0.4478418", "0.44749156", "0.44713008", "0.44665244", "0.44665244", "0.44661114", "0.4465761", "0.44616234", "0.44531012" ]
0.0
-1
Find path message field from raw message.
public static Object getPathMessage(Descriptors.FieldDescriptor fieldDescriptor, DynamicMessage message, FieldPathUtils.PathInfo pathInfo, FeatureContext ctx) { if (FieldPathUtils.PathType.ARRAY.equals(pathInfo.getPathType())) { int repeatedFieldCount = message.getRepeatedFieldCount(fieldDescriptor); if (repeatedFieldCount > pathInfo.getIndex()) { return ProtoUtils.getArrayField(message, fieldDescriptor, pathInfo.getIndex()); } return null; } else { return ProtoUtils.getField(message, fieldDescriptor, ctx); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MessageField getCorrespondingField();", "public static Object getPathValue(DynamicMessage originMessage,\n FieldPathUtils.PathInfo pathInfo,\n FeatureContext ctx) {\n if (Objects.isNull(pathInfo) || Objects.isNull(originMessage)) {\n return null;\n }\n\n Object pathMessage = originMessage;\n Descriptors.FieldDescriptor pathDescriptor = null;\n\n for (FieldPathUtils.PathInfo nextPath = pathInfo; Objects.nonNull(nextPath); nextPath = nextPath.getNestPathInfo()) {\n if (Objects.isNull(pathMessage)) {\n return null;\n }\n Pair<Descriptors.FieldDescriptor, Object> pair = getDescriptorAndMessageByName(pathMessage, nextPath);\n pathDescriptor = pair.getKey();\n pathMessage = pair.getValue();\n\n if (Objects.isNull(pathDescriptor)) {\n return null;\n }\n pathMessage = getPathMessage(pathDescriptor, (DynamicMessage) pathMessage, nextPath, ctx);\n }\n\n if (Objects.isNull(pathMessage)) {\n return null;\n }\n\n if (Objects.isNull(pathDescriptor)) {\n throw new IllegalArgumentException(String.format(\"Path info: %s can't find descriptor type.\",\n JsonSerializer.serialize(pathInfo)));\n }\n\n return ProtoUtils.getProtoValue(pathMessage, pathDescriptor, ctx);\n }", "@Override\n public final JsonNode findPath(String fieldName)\n {\n JsonNode value = findValue(fieldName);\n if (value == null) {\n return MissingNode.getInstance();\n }\n return value;\n }", "public static String getEntityMappingFieldPath(Field field) {\n List<String> fieldPaths = getEntityMappingFieldPaths(field, false, true);\n if (fieldPaths.size() > 0) {\n return fieldPaths.get(0);\n }\n return null;\n }", "public static Field getFieldByPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n field = getFieldByPath(innerClass, nextPath);\n }\n return field;\n }\n return null;\n }", "public static String getEntityMappingFieldPath(Class<?> dtoType, String fieldPath) {\n if (null != dtoType && !StringUtils.isEmpty(fieldPath)) {\n String[] paths = fieldPath.split(Constants.DOT_REGEX);\n Field field = ObjectUtils.getField(dtoType, paths[0], true);\n String entityFieldName = getEntityMappingFieldPath(field);\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (paths.length > 1 && validate(innerClass)) {\n String nextPath = fieldPath.substring(fieldPath.indexOf(Constants.DOT) + 1);\n entityFieldName = entityFieldName + Constants.DOT + getEntityMappingFieldPath(innerClass, nextPath);\n }\n return entityFieldName;\n }\n return null;\n }", "public String getPath() throws Exception {\n\t\t/*\n\t\t * return \"/news-oppsRecord\" + doc.selectSingleNode\n\t\t * (\"/metadataFieldInfo/field/@path\").getText();\n\t\t */\n\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/@path\").getText();\n\t}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static <T> Path<Object> getPathFromField(Root<T> root, String field) {\n\t\tString[] fieldname = field.split(\"/\");\n\t\tPath<Object> path = null;\n\t\tfor (int idx = 0; idx < fieldname.length; idx++) {\n\n\t\t\tString attributeName = fieldname[idx];\n\n\t\t\tif (path != null) {\n\t\t\t\tpath = path.get(attributeName);\n\t\t\t} else {\n\t\t\t\tpath = root.get(attributeName);\n\t\t\t}\n\n\t\t\tif ((fieldname.length - 1) > idx) {\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Set.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tJoin<T, ?> join = opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tpath = join.get(fieldname[++idx]);\n\n\t\t\t\t}\n\n\t\t\t\tif (path.getJavaType().isAssignableFrom(Map.class)) {\n\n\t\t\t\t\tOptional<Join<T, ?>> opJoin = root.getJoins().stream().filter(p -> p.getAttribute().getName().equals(attributeName))\n\t\t\t\t\t\t\t.findFirst();\n\t\t\t\t\tMapJoin join = (MapJoin) opJoin.orElseGet(() -> root.join(attributeName));\n\t\t\t\t\tString f = fieldname[++idx];\n\t\t\t\t\tif (f.equals(\"key\"))\n\t\t\t\t\t\tpath = join.key();\n\t\t\t\t\telse if (f.equals(\"value\"))\n\t\t\t\t\t\tpath = join.value();\n\t\t\t\t\telse\n\t\t\t\t\t\tthrow new FormatExceptionException(\"Only key or value you can specify in a map filter, got: \" + f);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn path;\n\t}", "public String getField(String field) throws RemoteException;", "public PathOrBuilder getSourcePathOrBuilder(\n int index) {\n if (sourcePathBuilder_ == null) {\n return sourcePath_.get(index); } else {\n return sourcePathBuilder_.getMessageOrBuilder(index);\n }\n }", "java.lang.String getFieldOrThrow(\n java.lang.String key);", "public static List<String> getFieldPaths(Field field, boolean lookingInner) {\n List<String> fieldPaths = new ArrayList<>();\n if (null != field) {\n String fieldPath = field.getName();\n Class<?> innerClass = MappingUtils.getFieldType(field);\n if (lookingInner && validate(innerClass)) {\n List<String> innerFieldPaths = getFieldPaths(innerClass, true);\n if (!CollectionUtils.isEmpty(innerFieldPaths)) {\n String finalFieldPath = fieldPath + Constants.DOT;\n fieldPaths.addAll(innerFieldPaths.stream().map(finalFieldPath::concat).collect(Collectors.toList()));\n }\n } else {\n fieldPaths.add(fieldPath);\n }\n }\n return fieldPaths;\n }", "java.lang.String getField1334();", "java.lang.String getField1337();", "public String _buildMessage() {\n String msg = super.getMessage();\n if (this._path == null) {\n return msg;\n }\n StringBuilder sb = msg == null ? new StringBuilder() : new StringBuilder(msg);\n sb.append(\" (through reference chain: \");\n StringBuilder sb2 = getPathReference(sb);\n sb2.append(')');\n return sb2.toString();\n }", "@Override\n public BPath getBPath() {\n if (getThread() == null)\n {\n if (DEBUG) Timber.e(\"Owner Thread is null\");\n return null;\n }\n return getThread().getBPath().addPathComponent(BFirebaseDefines.Path.BMessagesPath, entityID);\n }", "public JTextField getPathField() {\n return ((JTextField) innerSearcher.\n findComponent(new ComponentChooser() {\n @Override\n public boolean checkComponent(Component comp) {\n return (comp != null\n && comp instanceof JTextField);\n }\n\n @Override\n public String getDescription() {\n return \"JTextField\";\n }\n\n @Override\n public String toString() {\n return \"JFileChooserOperator.getPathField.ComponentChooser{description = \" + getDescription() + '}';\n }\n }));\n }", "String getField();", "java.lang.String getField1338();", "java.lang.String getField1579();", "java.lang.String getField1078();", "java.lang.String getField1335();", "java.lang.String getField1330();", "static Node findPath(Node r, String[] path) {\n try {\n return NodeOp.findPath(r, path);\n } catch (NodeNotFoundException ex) {\n return ex.getClosestNode();\n }\n }", "java.lang.String getField1571();", "private static Pair<Descriptors.FieldDescriptor, Object> getDescriptorAndMessageByName(Object pathValue, FieldPathUtils.PathInfo pathInfo) {\n Descriptors.FieldDescriptor targetDescriptor = null;\n Object targetMessage = null;\n\n if (pathValue instanceof DynamicMessage) {\n targetDescriptor = ((DynamicMessage) pathValue)\n .getDescriptorForType()\n .findFieldByName(pathInfo.getName());\n targetMessage = pathValue;\n } else if (pathValue instanceof List) {\n Map<String, DynamicMessage> mapPathValue = Maps.newHashMap();\n for (DynamicMessage message : (List<DynamicMessage>) pathValue) {\n mapPathValue.put(message.getField(message.getDescriptorForType()\n .findFieldByName(ProtoUtils.PROTO_MAP_TYPE_KEY)).toString(), message);\n }\n targetMessage = mapPathValue.get(pathInfo.getName());\n targetDescriptor = mapPathValue.get(pathInfo.getName())\n .getDescriptorForType()\n .findFieldByName(ProtoUtils.PROTO_MAP_TYPE_VALUE);\n }\n return ImmutablePair.of(targetDescriptor, targetMessage);\n }", "public T caseFieldPath(FieldPath object)\n {\n return null;\n }", "java.lang.String getField1379();", "java.lang.String getField1371();", "java.lang.String getField1336();", "java.lang.String getField1582();", "java.lang.String getField1179();", "java.lang.String getField1079();", "java.lang.String getField1479();", "java.lang.String getField1007();", "java.lang.String getField1339();", "java.lang.String getField1279();", "java.lang.String getField1679();", "java.lang.String getField1507();", "java.lang.String getField1107();", "java.lang.String getField1381();", "java.lang.String getField1372();", "java.lang.String getField1587();", "java.lang.String getField1527();", "java.lang.String getField1504();", "java.lang.String getField1382();", "java.lang.String getField1172();", "java.lang.String getField1574();", "java.lang.String getField1378();", "java.lang.String getField1578();", "java.lang.String getField1376();", "private String getMessage(String path) {\n return ChatColor.translateAlternateColorCodes('&', getConfig().getString(\"message.\" + path));\n }", "java.lang.String getField1301();", "java.lang.String getField1677();", "java.lang.String getField1779();", "@Override\n\tprotected String getField(FtrToken token)\n\t{\n\t\tDEPNode node = getNode(token);\n\t\tif (node == null)\treturn null;\n\t\tMatcher m;\n\t\t\n\t\tif (token.isField(JointFtrXml.F_FORM))\n\t\t{\n\t\t\treturn node.form;\n\t\t}\n\t\telse if (token.isField(JointFtrXml.F_LEMMA))\n\t\t{\n\t\t\treturn node.lemma;\n\t\t}\n\t\telse if (token.isField(JointFtrXml.F_POS))\n\t\t{\n\t\t\treturn node.pos;\n\t\t}\n\t\telse if (token.isField(JointFtrXml.F_DEPREL))\n\t\t{\n\t\t\treturn node.getLabel();\n\t\t}\n\t\telse if (token.isField(JointFtrXml.F_DISTANCE))\n\t\t{\n\t\t\treturn getDistance(node);\n\t\t}\n\t\telse if ((m = JointFtrXml.P_ARGN.matcher(token.field)).find())\n\t\t{\n\t\t\tint idx = l_argns.size() - Integer.parseInt(m.group(1)) - 1;\n\t\t\treturn (idx >= 0) ? l_argns.get(idx) : null;\n\t\t}\n\t\telse if ((m = JointFtrXml.P_PATH.matcher(token.field)).find())\n\t\t{\n\t\t\tString type = m.group(1);\n\t\t\tint dir = Integer.parseInt(m.group(2));\n\t\t\t\n\t\t\treturn getPath(type, dir);\n\t\t}\n\t\telse if ((m = JointFtrXml.P_SUBCAT.matcher(token.field)).find())\n\t\t{\n\t\t\tString type = m.group(1);\n\t\t\tint dir = Integer.parseInt(m.group(2));\n\t\t\t\n\t\t\treturn getSubcat(node, type, dir);\n\t\t}\n\t\telse if ((m = JointFtrXml.P_FEAT.matcher(token.field)).find())\n\t\t{\n\t\t\treturn node.getFeat(m.group(1));\n\t\t}\n\t\telse if ((m = JointFtrXml.P_BOOLEAN.matcher(token.field)).find())\n\t\t{\n\t\t\tDEPNode pred = d_tree.get(i_pred);\n\t\t\tint field = Integer.parseInt(m.group(1));\n\t\t\t\n\t\t\tswitch (field)\n\t\t\t{\n\t\t\tcase 0: return (node.isDependentOf(pred)) ? token.field : null;\n\t\t\tcase 1: return (pred.isDependentOf(node)) ? token.field : null;\n\t\t\tcase 2: return (pred.isDependentOf(d_lca)) ? token.field : null;\n\t\t\tcase 3: return (pred == d_lca) ? token.field : null;\n\t\t\tcase 4: return (node == d_lca) ? token.field : null;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "java.lang.String getField1182();", "java.lang.String getField1346();", "java.lang.String getField1366();", "public Path resolve(String part) {\n return Paths.get(part);\n }", "@Override\n\t\tpublic String getRealPath(String path) {\n\t\t\treturn null;\n\t\t}", "public static Field29G get(final SwiftMessage msg) {\n\t\tif (msg == null || msg.getBlock4()==null || msg.getBlock4().isEmpty())\n\t\t\treturn null;\n\t\treturn get(msg.getBlock4());\n\t}", "java.lang.String getField1581();", "private String getJsonPath(final String path) {\n final int dotPos = path.indexOf('.');\n final String jsonPath = path.substring(dotPos + 1);\n return jsonPath;\n }", "java.lang.String getField1489();", "java.lang.String getField1471();", "java.lang.String getField1577();", "java.lang.String getField1573();", "java.lang.String getField1082();", "java.lang.String getField1171();", "java.lang.String getField1588();", "java.lang.String getField1576();", "java.lang.String getField1546();", "java.lang.String getField1584();", "java.lang.String getField1177();", "public String getField(String fieldName){\r\n\t\tString split[] = currentLine.split(Constants.SPLIT_MARK);\r\n\t\tif (mapHeader.get(fieldName) == -1 || mapHeader.get(fieldName) >= split.length) \r\n\t\t\treturn Integer.toString(Constants.UNKNOWN);\r\n\t\tif (split[mapHeader.get(fieldName)].equals(\"\")) \r\n\t\t\treturn Integer.toString(Constants.UNKNOWN);\r\n\t\treturn split[mapHeader.get(fieldName)];\r\n\t}", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n default:\n return null;\n }\n }", "java.lang.String getField1569();", "java.lang.String getField1568();", "java.lang.String getField1174();", "java.lang.String getField1583();", "java.lang.String getField1178();", "java.lang.String getField1384();", "java.lang.String getField1184();", "java.lang.String getField1357();", "java.lang.String getField1167();", "private SymObject findField(Struct type, String name) {\n for (SymObject field : type.fields) {\n if (field.name.equals(name)) {\n return field;\n }\n }\n\n error(name + \" can't be find as a field\");\n return SymbolTable.OBJECT_NONE;\n }", "java.lang.String getField1472();", "java.lang.String getField1347();", "java.lang.String getField1572();", "java.lang.String getField1361();", "java.lang.String getField1308();", "java.lang.String getField1018();", "java.lang.String getField1017();", "java.lang.String getField1091();", "java.lang.String getField1069();", "java.lang.String getField1374();", "Member getWidenedMatchingMember(String memberPath);", "java.lang.String getField1678();", "java.lang.String getField1147();" ]
[ "0.60274434", "0.59718025", "0.55247384", "0.55221057", "0.53758204", "0.5372971", "0.53606564", "0.5290374", "0.5240718", "0.51980877", "0.51736563", "0.51162213", "0.51077175", "0.50927156", "0.5081503", "0.50730693", "0.5067045", "0.5062822", "0.50394374", "0.5027188", "0.50144684", "0.50100553", "0.50065035", "0.5001789", "0.499971", "0.49984643", "0.4975752", "0.4975617", "0.49702126", "0.49622634", "0.49603155", "0.49602675", "0.49447882", "0.49381366", "0.49302283", "0.49299324", "0.49236017", "0.49234423", "0.49162433", "0.4899214", "0.4887861", "0.48840424", "0.48806378", "0.4880614", "0.4877912", "0.48772374", "0.48765895", "0.48757616", "0.487298", "0.48724827", "0.48707092", "0.4866502", "0.48654747", "0.48647004", "0.4863488", "0.4862652", "0.485746", "0.48562998", "0.48541996", "0.4854041", "0.48533243", "0.4849788", "0.48493254", "0.48463434", "0.4843469", "0.48397535", "0.4838579", "0.48385435", "0.4838232", "0.48378322", "0.48370907", "0.48369613", "0.48355198", "0.48349458", "0.48334605", "0.48293698", "0.4828728", "0.48283106", "0.48275095", "0.48257855", "0.4825658", "0.48242688", "0.48240712", "0.48235837", "0.48221055", "0.48209944", "0.48188928", "0.48180482", "0.4816586", "0.48164457", "0.48164067", "0.48149833", "0.4814761", "0.4814168", "0.48130327", "0.4812092", "0.4807839", "0.4807729", "0.4807302", "0.48067528" ]
0.70529073
0
Create a fake Java runtime using the class names loaded from the given resource.
private JavaRuntimeMock(String resource) { // open test resource for reading try (InputStream is = TestUtils.getResourceAsStream(resource)) { DataInputStream dis = new DataInputStream(new GZIPInputStream(is)); // read compressed class definitions int numClassDefs = dis.readInt(); for (int c = 0; c < numClassDefs; c++) { ClassDef classDef = ClassDefUtils.read(dis); String className = classDef.getClassName(); classDefs.put(className, classDef); String packageName = classDef.getPackageName(); packageNames.add(packageName); } // read excluded class names int numExcludedClassNames = dis.readInt(); for (int i = 0; i < numExcludedClassNames; i++) { String className = dis.readUTF(); excludedClassNames.add(className); String packageName = getPackageName(className); packageNames.add(packageName); } } catch (IOException e) { throw new TestDataException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ITaskFactory<?> load(String classname);", "private static Object createStandaloneTester() {\n List<URL> urls = new ArrayList<>();\n for (String path : Splitter.on(':').split(System.getProperty(\"java.class.path\"))) {\n\n // A small hack is needed since we didn't make example application under different groupId and not prefixed\n // the artifactId with something special (cdap- and hive-)\n // Check for io/cdap/cdap\n if (path.contains(\"/io/cdap/cdap/\")) {\n String artifactFile = Paths.get(path).getFileName().toString();\n if (!artifactFile.startsWith(\"cdap-\") && !artifactFile.startsWith(\"hive-\")) {\n continue;\n }\n }\n\n try {\n urls.add(Paths.get(path).toUri().toURL());\n } catch (MalformedURLException e) {\n throw Throwables.propagate(e);\n }\n }\n\n ClassLoader classLoader = new MainClassLoader(urls.toArray(new URL[urls.size()]), null);\n try {\n Class<?> clz = classLoader.loadClass(StandaloneTester.class.getName());\n Constructor<?> constructor = clz.getConstructor(Object[].class);\n return constructor.newInstance((Object) new Object[0]);\n } catch (Exception e) {\n throw Throwables.propagate(e);\n }\n }", "NamedClass createNamedClass();", "public static void main(String[] args) throws Exception {\n\n Class<?> rcc = Class.forName(\"com.flyex.testNoUse.ReflectTest\");\n\n Object rccc = rcc.newInstance();\n Object rcccc = rcc.newInstance();\n\n\n }", "public static void loadClass(String name) {\n\n }", "private MavenRuntime createRuntime(ClassLoader bootClassLoader, ClassLoader hostClassLoader) throws MojoExecutionException {\n \n try {\n \n Class<?> runtimeClass = bootClassLoader.loadClass(\"org.fabric3.test.runtime.MavenRuntimeImpl\");\n MavenRuntime runtime = MavenRuntime.class.cast(runtimeClass.newInstance());\n \n MonitorFactory monitorFactory = new MavenMonitorFactory(getLog(), \"f3\");\n runtime.setMonitorFactory(monitorFactory);\n runtime.setHostClassLoader(hostClassLoader);\n \n runtime.setMBeanServer(MBeanServerFactory.createMBeanServer());\n \n return runtime;\n } catch (Exception e) {\n throw new MojoExecutionException(e.getMessage(), e);\n }\n \n }", "private ClassLoader createBootClassLoader(ClassLoader hostClassLoader) throws MojoExecutionException {\n \n Set<URL> bootClassPath = artifactHelper.resolve(\"org.codehaus.fabric3\", \"fabric3-test-runtime\", runtimeVersion, Artifact.SCOPE_RUNTIME, \"jar\");\n return new URLClassLoader(bootClassPath.toArray(new URL[] {}), hostClassLoader);\n \n }", "public interface ITaskFactoryLoader {\n\n\t/**\n\t * Dynamically load an ITaskFactory instance given its class name. \n\t * @param classname The fully qualified class name of the desired ITaskFactory class.\n\t * @return An ITaskFactory instance.\n\t */\n\tITaskFactory<?> load(String classname);\n\n}", "public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {\t \r\n\tClass<?> t = Class.forName(\"Java_Oops.ForNameObjectCreation\");\r\n\tObjectCreation_1 obj = ((ObjectCreation_1) t.newInstance());\r\n\t \t\t\t\t obj.display();\t\r\n\t\t\t\t\t }", "private ClassLoader makeClassLoader() throws MojoExecutionException {\n final List<URL> urls = new ArrayList<URL>();\n try {\n for (String cp: project.getRuntimeClasspathElements()) {\n urls.add(new File(cp).toURI().toURL());\n }\n } catch (DependencyResolutionRequiredException e) {\n throw new MojoExecutionException(\"dependencies not resolved\", e);\n } catch (MalformedURLException e) {\n throw new MojoExecutionException(\"invalid classpath element\", e);\n }\n return new URLClassLoader(urls.toArray(new URL[urls.size()]),\n getClass().getClassLoader());\n }", "DynamicInstance createDynamicInstance();", "public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\ttry {\n\tClass cls=Class.forName(\"udemy.ObjCreation\");\n\tObjCreation o=(ObjCreation)cls.newInstance();\n\tSystem.out.println(o.a);\n\t}\n\tcatch(InstantiationException e) {\n\t\te.printStackTrace();\n\t}\n\tcatch(IllegalAccessException e) {\n\t\te.printStackTrace();\n\t}\n\tcatch(ClassNotFoundException e) {\n\t\tSystem.out.println(\"not found class\");\n\t\te.printStackTrace();\n\t}\n}", "public ClassLoader createClassLoader(ClassLoader aParent) throws MagnetException {\n\n if (_theClassLoader == null) {\n try {\n ArrayList<URL> someURLs = new ArrayList<URL>();\n for (Path path: _thePaths) {\n for (Resource resource: path.getSelectedResources()) {\n someURLs.add(resource.toURL());\n }\n }\n \n if (someURLs.size() == 0) {\n _theClassLoader = aParent;\n } else {\n _theClassLoader = URLClassLoader.newInstance((URL[]) someURLs.toArray(new URL[0]), aParent);\n }\n \n } catch (MalformedURLException mue) {\n throw new MagnetException(\"Error creating a classloader for this classpath\", mue);\n }\n }\n \n return _theClassLoader;\n }", "public static Object getFactory(String propName, Hashtable<?, ?> env, Context ctx, String classSuffix,\n String defaultPkgPrefix) throws NamingException {\n\n // Merge property with provider property and supplied default\n String facProp = getProperty(propName, env, ctx, true);\n if (facProp != null)\n facProp += (\":\" + defaultPkgPrefix);\n else\n facProp = defaultPkgPrefix;\n\n // Cache factory based on context class loader, class name, and\n // property val\n ClassLoader loader = helper.getContextClassLoader();\n String key = classSuffix + \" \" + facProp;\n\n Map<String, WeakReference<Object>> perLoaderCache = null;\n synchronized (urlFactoryCache) {\n perLoaderCache = urlFactoryCache.get(loader);\n if (perLoaderCache == null) {\n perLoaderCache = new HashMap<>(11);\n urlFactoryCache.put(loader, perLoaderCache);\n }\n }\n\n synchronized (perLoaderCache) {\n Object factory = null;\n\n WeakReference<Object> factoryRef = perLoaderCache.get(key);\n if (factoryRef == NO_FACTORY) {\n return null;\n } else if (factoryRef != null) {\n factory = factoryRef.get();\n if (factory != null) { // check if weak ref has been cleared\n return factory;\n }\n }\n\n // Not cached; find first factory and cache\n StringTokenizer parser = new StringTokenizer(facProp, \":\");\n String className;\n while (factory == null && parser.hasMoreTokens()) {\n className = parser.nextToken() + classSuffix;\n try {\n // System.out.println(\"loading \" + className);\n factory = helper.loadClass(className, loader).newInstance();\n } catch (InstantiationException e) {\n NamingException ne = new NamingException(\"Cannot instantiate \" + className);\n ne.setRootCause(e);\n throw ne;\n } catch (IllegalAccessException e) {\n NamingException ne = new NamingException(\"Cannot access \" + className);\n ne.setRootCause(e);\n throw ne;\n } catch (Exception e) {\n // ignore ClassNotFoundException, IllegalArgumentException,\n // etc.\n }\n }\n\n // Cache it.\n perLoaderCache.put(key, (factory != null) ? new WeakReference<>(factory) : NO_FACTORY);\n return factory;\n }\n }", "@Test\n public void test01()\n {\n MetaClass.forClass(Class, reflectorFactory)\n }", "static public InstanceGenerator create(String className, Instances training, Instances testing)\n {\n if(className == null || className.isEmpty() || className.equals(\"null\"))\n {\n log.warn(\"No instance generator set, using default\");\n className = \"autoweka.instancegenerators.Default\";\n }\n\n //Get one of these classifiers\n Class<?> cls;\n try\n {\n className = className.trim();\n cls = Class.forName(className);\n return (InstanceGenerator)cls.getDeclaredConstructor(Instances.class, Instances.class).newInstance(training, testing);\n }\n catch(ClassNotFoundException e)\n {\n throw new RuntimeException(\"Could not find class '\" + className + \"': \" + e, e);\n }\n catch(Exception e)\n {\n throw new RuntimeException(\"Failed to instantiate '\" + className + \"': \" + e, e);\n }\n }", "public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException {\n MyClassLoader mcl = new MyClassLoader(\"myClassLoader1\");\n// // 根据全限定名加载,注意,这里调用loadClass方法\n// Class<?> clazz = mcl.loadClass(\"Student\");\n// Student student = (Student)clazz.newInstance();\n Object o = mcl.loadClass(\"Student\").newInstance();\n o.getClass().getMethod(\"shuchu\").invoke(o);\n// student.shuchu();\n// List<Integer> list = new ArrayList<>();\n// Object o = new Object();\n System.out.println(o.getClass().getClassLoader());\n// System.out.println(list.getClass().getClassLoader());\n// System.out.println(o.getClass().getClassLoader());\n byte[] allocation1, allocation2;\n allocation1 = new byte[30900 * 1024*2];\n allocation2 = new byte[900 * 1024*2];\n\n\n }", "LiveClassLoader()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.defineClassMethod = ClassLoader.class.getDeclaredMethod(\"defineClass\", String.class, byte[].class, int.class, int.class);\r\n\t\t\tthis.defineClassMethod.setAccessible(true);\r\n\t\t}\r\n\t\tcatch (NoSuchMethodException | SecurityException e)\r\n\t\t{\r\n\t\t\t// TODO: debug..\r\n\t\t\tSystem.out.println(\"CLASS LOADER >> Erro ao recuperar o metodo 'ClassLoader.defineClass()'!\");\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@SuppressWarnings({\"unchecked\"})\n // Must be synchronized for the Maven Parallel Junit runner to work\n public static synchronized <T> T instantiate(String className, ClassLoader classLoader) {\n try {\n return (T) Class.forName(className, true, classLoader).getDeclaredConstructor().newInstance();\n } catch (Exception e) {\n throw new FlywayException(\"Unable to instantiate class \" + className + \" : \" + e.getMessage(), e);\n }\n }", "public static void main(String[] args) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException {\n\t\t\n\t\t\n\t\tString className=loadFromProperties();\n\t\tClass auto=Class.forName(className);\n\t\t\n\t\tConstructor con=auto.getDeclaredConstructor();\n\t con.setAccessible(true); \n\t\tObject bmw=con.newInstance();\n\t Method getMethod = bmw.getClass().getMethod(\"getInstance\");\n\t \n\t IAutoMobileFactory instance=(IAutoMobileFactory)getMethod.invoke(bmw);\n\t IAutoMobile automobile=instance.make();\n\t automobile.start();\n\t automobile.stop();\n\n\t\n\t}", "public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderSystem system, ParentPolicy parentPolicy, ClassLoaderPolicy policy)\n {\n ClassLoaderDomain domain = system.createAndRegisterDomain(\"TEST\", parentPolicy);\n return initializeClassLoader(clazz, system, domain, policy);\n }", "public static void main(String[] args) throws IOException {\n\n\t\t// get path to rt.jar file\n\t\tString rtPath = args[0];\n\t\tFile rtFile = new File(rtPath);\n\t\tif (!rtFile.isFile()) {\n\t\t\tSystem.err.println(\"File not found: \" + rtFile.getAbsolutePath());\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t// load all classes from rt.jar file into memory\n\t\tClasspathLoader loader = LoaderBuilder.create().forClassLoader(\"Runtime\").buildClasspathLoader();\n\t\tClasspath classpath = loader.load(Collections.singletonList(rtFile));\n\t\tJarFile jarFile = classpath.getJarFiles().get(0);\n\t\tList<ClassDef> classDefs = jarFile.getClassDefs();\n\n\t\t// list of packages which will be added to resource file\n\t\tList<String> includedPackageNames = Arrays.asList(\n\t\t\t\t\"com.sun.net.httpserver\", \"com.sun.xml.internal.ws.addressing\",\n\t\t\t\t\"java.applet\", \"java.awt\", \"java.beans\", \"java.io\", \"java.lang\", \"java.math\", \"java.net\", \"java.nio\", \"java.rmi\", \"java.security\", \"java.sql\", \"java.text\", \"java.time\", \"java.util\",\n\t\t\t\t\"javax.activation\", \"javax.annotation\", \"javax.imageio\", \"javax.jws\", \"javax.management\", \"javax.naming\", \"javax.net\", \"javax.script\", \"javax.security.auth\", \"javax.sql\", \"javax.transaction\", \"javax.xml\",\n\t\t\t\t\"org.w3c.dom\", \"org.xml.sax\",\n\t\t\t\t\"sun.misc\"\n\t\t);\n\n\t\t// split into included classes (class defs) and excluded classes (names)\n\t\tList<ClassDef> includedClassDefs = new ArrayList<>();\n\t\tList<String> excludedClassNames = new ArrayList<>();\n\t\tfor (ClassDef classDef : classDefs) {\n\t\t\tString className = classDef.getClassName();\n\t\t\tboolean include = includedPackageNames.stream().anyMatch(p -> className.startsWith(p + \".\"));\n\t\t\tif (include) {\n\t\t\t\tincludedClassDefs.add(classDef);\n\t\t\t} else {\n\t\t\t\texcludedClassNames.add(className);\n\t\t\t}\n\t\t}\n\n\t\t// open compressed output stream to test resource file\n\t\tString resourcePath = \"./src/test/resources/classes-oracle-jdk-1.8.0_144.dat.gz\";\n\t\tFile resourceFile = new File(resourcePath);\n\t\ttry (FileOutputStream fos = new FileOutputStream(resourceFile)) {\n\t\t\ttry (GZIPOutputStream zos = new GZIPOutputStream(fos)) {\n\t\t\t\ttry (DataOutputStream dos = new DataOutputStream(zos)) {\n\t\t\t\t\t// write list of included class definitions\n\t\t\t\t\tdos.writeInt(includedClassDefs.size());\n\t\t\t\t\tfor (ClassDef classDef : includedClassDefs) {\n\t\t\t\t\t\tClassDefUtils.write(classDef, dos);\n\t\t\t\t\t}\n\t\t\t\t\t// write list of excluded class names\n\t\t\t\t\tdos.writeInt(excludedClassNames.size());\n\t\t\t\t\tfor (String className : excludedClassNames) {\n\t\t\t\t\t\tdos.writeUTF(className);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Runtime file : \" + rtFile.getAbsolutePath());\n\t\tSystem.out.println(\"Total classes found: \" + classDefs.size());\n\t\tSystem.out.println(\"Included classes : \" + includedClassDefs.size());\n\t\tSystem.out.println(\"Excluded classes : \" + excludedClassNames.size());\n\t\tSystem.out.println(\"Resource file : \" + resourceFile.getAbsolutePath());\n\t\tSystem.out.println(\"Final file size : \" + FileUtils.formatFileSize(resourceFile.length()));\n\t}", "private static Framework createFramework() throws Exception {\n File[] files = new File(\"bundles\").listFiles();\n Arrays.sort(files);\n List jars = new ArrayList();\n for (int i = 0; i < files.length; i++)\n if (files[i].getName().toLowerCase().endsWith(\".jar\"))\n jars.add(files[i]);\n\n try {\n // Create, configure, and start an OSGi framework instance\n // using the ServiceLoader to get a factory.\n List bundleList = new ArrayList();\n Map m = new HashMap();\n m.putAll(System.getProperties());\n m.put(Constants.FRAMEWORK_STORAGE_CLEAN, Constants.FRAMEWORK_STORAGE_CLEAN_ONFIRSTINIT);\n m.put(Constants.FRAMEWORK_SYSTEMPACKAGES_EXTRA, \"com.daniel.progress\");\n fwk = getFrameworkFactory().newFramework(m);\n fwk.start();\n // Install bundle JAR files and remember the bundle objects.\n BundleContext ctxt = fwk.getBundleContext();\n for (int i = 0; i < jars.size(); i++) {\n Bundle b = ctxt.installBundle(((File) jars.get(i)).toURI().toString());\n bundleList.add(b);\n }\n // Start all installed bundles.\n for (int i = 0; i < bundleList.size(); i++) {\n ((Bundle) bundleList.get(i)).start();\n }\n } catch (Exception ex) {\n System.err.println(\"Error starting framework: \" + ex);\n ex.printStackTrace();\n System.exit(0);\n }\n\n return fwk;\n }", "@Override\n public Class getJavaClass() throws IOException, ClassNotFoundException {\n open();\n URL url;\n int p = path.lastIndexOf('/');\n int p2 = path.substring(0,p-1).lastIndexOf('/');\n\n File f = new File(path.substring(0,p2));\n url = f.toURI().toURL();\n URL[] urls = new URL[1];\n urls[0] = url;\n ClassLoader loader = new URLClassLoader(urls);\n\n String cls = path.substring(p2 + 1, path.lastIndexOf('.')).replace('/', '.');\n\n if (cfile.getParentFile().getParentFile().getName().equals(\"production\")) {\n cls = cls.substring(cls.lastIndexOf('.') + 1);\n }\n\n\n\n return loader.loadClass(cls);\n }", "public static void main(String[] args) throws Exception {\n\t\tPaint staticpaint = new RedPaint();\r\n\t\tSystem.out.println(\"object created through static way:\"+staticpaint);\r\n\t\t//2. dynamic binding.... To dynamically create objects...\r\n\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Please enter the qualified class name:\");\r\n\t\tString Paintclass=scan.next();\r\n\t\tPaint dynamicPaint=(Paint)Class.forName(Paintclass).newInstance();\r\n\t\tSystem.out.println(\"Object created through dynamic way...:\"+dynamicPaint);\r\n\t\t//3. new way of creating objects dynamically....after jdk9\r\n\t\tSystem.out.println(\"please enter the one more class:\");\r\n\t\tPaintclass=scan.next();\r\n\t\tPaint s=(Paint)Class.forName(Paintclass).getConstructor().newInstance();\r\n\t\tSystem.out.println(\"New dynamic way:\"+s);\r\n\t}", "Type buildType( ClassLoader classloader ) \r\n throws IntrospectionException, IOException;", "public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderSystem system, ClassLoaderDomain domain, ClassLoaderPolicy policy)\n {\n // Remember some information\n this.system = system;\n this.domain = domain;\n this.policy = policy;\n \n // Create the classloader\n ClassLoader classLoader = system.registerClassLoaderPolicy(domain, policy);\n\n // Load the class from the isolated classloader\n try\n {\n clazz = classLoader.loadClass(clazz.getName());\n }\n catch (ClassNotFoundException e)\n {\n throw new RuntimeException(\"Unable to load test class in isolated classloader \" + clazz, e);\n }\n \n return clazz;\n }", "static public InstanceGenerator create(String className, String datasetFileName)\n {\n if(className == null || className.isEmpty() || className.equals(\"null\"))\n {\n log.warn(\"No instance generator set, using default\");\n className = \"autoweka.instancegenerators.Default\";\n }\n\n //Get one of these classifiers\n Class<?> cls;\n try\n {\n className = className.trim();\n cls = Class.forName(className);\n return (InstanceGenerator)cls.getDeclaredConstructor(String.class).newInstance(datasetFileName);\n }\n catch(ClassNotFoundException e)\n {\n throw new RuntimeException(\"Could not find class '\" + className + \"': \" + e, e);\n }\n catch(Exception e)\n {\n throw new RuntimeException(\"Failed to instantiate '\" + className + \"': \" + e, e);\n }\n }", "private ProcessingUnit producePU(String aClassName) throws Exception {\n Class currentClass = Class.forName(aClassName);\n // check to see if this is a subclass of aResourceClass\n ProcessingUnit pu = (ProcessingUnit) currentClass.newInstance();\n return pu;\n }", "<T> T newInstance(URI description) throws EnvironmentException;", "public JythonObjectFactory(PySystemState state, Class interfaceType, String moduleName, String className) {\n this.interfaceType = interfaceType;\n PyObject importer = state.getBuiltins().__getitem__(Py.newString(\"__import__\"));\n PyObject module = importer.__call__(Py.newString(moduleName));\n klass = module.__getattr__(className);\n System.err.println(\"module=\" + module + \",class=\" + klass);\n }", "public void loadClass(String name) throws InstantiationException, IllegalAccessException, ClassNotFoundException{\n\t\tSystem.out.println(\"Class object address \" + InspectClassLoader.class.hashCode());\n\t\tObject obj = getClass().getClassLoader().loadClass(\"InsideJVM.InspectClassLoader\").newInstance();\n\t\tSystem.out.println(\"Same class object: \" + (obj.getClass() == InspectClassLoader.class));\n\t\t\n\t\t// Class<?> object's class is ???\n\t\tClass<?> s = getClass().getClassLoader().loadClass(\"InsideJVM.InspectClassLoader\");\n\t\tSystem.out.println(s.getClass()); // output: java.land.Class\n\t\t\n\t\tSystem.out.println(\"class loader hashcode \" + getClass().getClassLoader().hashCode());\n\t}", "Class createClass();", "@OnThread(Tag.Any)\n private void bootBluej()\n {\n initializeBoot();\n try {\n URLClassLoader runtimeLoader = new URLClassLoader(runtimeClassPath, bootLoader);\n \n // Construct a bluej.Main object. This starts BlueJ \"proper\".\n Class<?> mainClass = Class.forName(\"bluej.Main\", true, runtimeLoader);\n mainClass.getDeclaredConstructor().newInstance();\n \n } catch (ClassNotFoundException | InstantiationException | NoSuchMethodException \n | InvocationTargetException | IllegalAccessException exc) {\n throw new RuntimeException(exc);\n }\n }", "JDefinedClass objectFactory();", "Reproducible newInstance();", "private void load() {\n\t\ttry {\r\n\t\t\tA a = new A();\r\n\t\t\ta.action();\r\n\t\t\tSystem.out.println(\"********下面为静态*********\");\r\n\t\t\tString name = a.getClass().getName();\r\n//\t\t\tClass aClass = Class.forName(\"com.guonl.dynamic.A\");\r\n\t\t\tClass<?> aClass = Class.forName(name);\r\n\t\t\tIC ic = (IC)aClass.newInstance();\r\n\t\t\tic.action();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) throws ClassNotFoundException {\n\t\tClass cc = Class.forName(\"JUnit.Test\");\n\t\tnew Test();\n\t\t//Test test = null;//\n\t\t//new Test();\n\t\t//ClassLoadTest t = new ClassLoadTest();\n\t}", "public static void main(String[] args) throws IOException {\n\t\t// creating local class objects \n\t\t\n\t}", "public static void main(String[] args) throws ClassNotFoundException {\n Class.forName(\"Mgr01\");\n }", "Object run(ObjectInput objectInput) throws IOException, ClassNotFoundException;", "public ClassLoader createClassLoader(String name, boolean importAll, String... packages) throws Exception\n {\n MockClassLoaderPolicy policy = MockClassLoaderHelper.createMockClassLoaderPolicy(name);\n policy.setImportAll(importAll);\n policy.setPathsAndPackageNames(packages);\n return createClassLoader(policy);\n }", "ClassLoader getNewTempClassLoader() {\n return new ClassLoader(getClassLoader()) {\n };\n }", "public static Unit generateDummy(String className)\r\n {\r\n try\r\n {\r\n //find constructor requiring no parameters\r\n Class classToCreate = Class.forName(\"TowerDefense.\"+className);\r\n Class[] params = {};\r\n Constructor constructor = classToCreate.getConstructor(params);\r\n \r\n //create instance of object using found constructor\r\n Object[] argList = {};\r\n return (Tower)constructor.newInstance(argList);\r\n }\r\n catch (Exception e)\r\n {\r\n System.out.println(e);\r\n return null;\r\n }\r\n }", "public static void load(String name) throws RuntimeException, IOException{\n\t\tif(!name.startsWith(\"/\")) name = \"/\"+name;\n\t\tFile libFile = NativeUtils.getAsLocalFile(name);\n\t\tUtils.sleep(500); // wait a bit to be sure the library is ready to be read\n\t\tSystem.load(libFile.getAbsolutePath());\n\t}", "protected abstract Object createJvmClassLoadingMBean(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer);", "public static Object createTaskObject(){\n try {\n\n return taskModel.make()\n .load(ClassLoader.getSystemClassLoader(), ClassLoadingStrategy.Default.WRAPPER)\n .getLoaded()\n .newInstance();\n\n\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "public interface ResourceFactory {\n\n /**\n * This function makes an instance of a predefined class which the\n * pool should consist of. The function should handle all initializing\n * of the object.\n * @return A pool object.\n */\n public Object makeResource();\n\n /**\n * This function closes a pool object. This could be closing of an\n * database connection or termination of a thread.\n */\n public void closeResource(Object resource);\n\n public String debugName();\n\n int maxWaitSecBeforeCreatingNewResource();\n}", "protected PlayLangRuntimeModule createRuntimeModule() {\n\t\treturn new PlayLangRuntimeModule() {\n\t\t\t@Override\n\t\t\tpublic ClassLoader bindClassLoaderToInstance() {\n\t\t\t\treturn PlayLangInjectorProvider.class\n\t\t\t\t\t\t.getClassLoader();\n\t\t\t}\n\t\t};\n\t}", "private static Object getInstance( final String className ) {\n if( className == null ) return null;\n return java.security.AccessController.doPrivileged(\n new java.security.PrivilegedAction<Object>() {\n public Object run() {\n try {\n ClassLoader cl =\n Thread.currentThread().getContextClassLoader();\n if (cl == null)\n cl = ClassLoader.getSystemClassLoader();\n return Class.forName( className, true,cl).newInstance();\n } catch( Exception e ) {\n new ErrorManager().error(\n \"Error In Instantiating Class \" + className, e,\n ErrorManager.GENERIC_FAILURE );\n }\n return null;\n }\n }\n );\n }", "LoadTest createLoadTest();", "@BuildStep(onlyIf = NativeOrNativeSourcesBuild.class)\n void runtimeInitializedClasses(BuildProducer<RuntimeInitializedPackageBuildItem> runtimeInitilizedPackages) {\n /*\n * Note that this initialization is not enough if user wants to deserialize actual images\n * (e.g. from XML). AWT Extension must be loaded for decoding JDK supported image formats.\n */\n Stream.of(\n \"com.sun.imageio\",\n \"java.awt\",\n \"javax.imageio\",\n \"sun.awt\",\n \"sun.font\",\n \"sun.java2d\")\n .map(RuntimeInitializedPackageBuildItem::new)\n .forEach(runtimeInitilizedPackages::produce);\n }", "public static Object createObject(String className) throws Exception {\n return createObject(Class.forName(className));\n }", "private ClassLoader createHostClassLoader() throws MojoExecutionException {\n \n Set<URL> hostClasspath = artifactHelper.resolve(\"org.codehaus.fabric3\", \"fabric3-api\", runtimeVersion, Artifact.SCOPE_RUNTIME, \"jar\");\n hostClasspath.addAll(artifactHelper.resolve(\"org.codehaus.fabric3\", \"fabric3-host-api\", runtimeVersion, Artifact.SCOPE_RUNTIME, \"jar\"));\n hostClasspath.addAll(artifactHelper.resolve(\"javax.servlet\", \"servlet-api\", \"2.4\", Artifact.SCOPE_RUNTIME, \"jar\"));\n \n return new URLClassLoader(hostClasspath.toArray(new URL[] {}), getClass().getClassLoader());\n \n }", "public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderSystem system, ClassLoaderPolicy policy, String... parentPackages)\n {\n // The parent filter\n PackageClassFilter filter = new PackageClassFilter(parentPackages);\n filter.setIncludeJava(true);\n return initializeClassLoader(clazz, system, filter, ClassFilterUtils.NOTHING, policy);\n }", "YobBuilderOrBuiltObject(String qualifiedClassName,\n ClassLoader registeredAppClassLoader) {\n try {\n yangDefaultClass =\n registeredAppClassLoader.loadClass(qualifiedClassName);\n yangBuilderClass = yangDefaultClass.getDeclaredClasses()[0];\n setBuilderObject(yangBuilderClass.newInstance());\n } catch (ClassNotFoundException e) {\n log.error(L_FAIL_TO_LOAD_CLASS, qualifiedClassName);\n throw new YobException(E_FAIL_TO_LOAD_CLASS + qualifiedClassName);\n } catch (InstantiationException | IllegalAccessException e) {\n log.error(L_FAIL_TO_CREATE_OBJ, qualifiedClassName);\n throw new YobException(E_FAIL_TO_CREATE_OBJ + qualifiedClassName);\n } catch (NullPointerException e) {\n log.error(L_REFLECTION_FAIL_TO_CREATE_OBJ, qualifiedClassName);\n throw new YobException(E_REFLECTION_FAIL_TO_CREATE_OBJ +\n qualifiedClassName);\n }\n }", "public static void main(String[] args) throws IOException {\n \n CreateInstance createInstance = new CreateInstance();\n\n try {\n createInstance.init(args);\n Flavor flavor = createInstance.getFlavor();\n createInstance.createInstance(flavor);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n createInstance.close();\n }\n }", "public static Object createObject(String className) {\n try {\n Class<?> aClass = Class.forName(className);\n return createObject(aClass);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return null;\n }", "private void createClassPath() {\n classPath = classFactory.createClassPath();\n }", "public static Object createObject( String className )\n throws WfControllerException\n {\n Object object = null;\n try\n {\n Class classDefinition = Class.forName( className );\n object = classDefinition.newInstance();\n }\n catch ( InstantiationException e )\n {\n WfControllerException controlException = new WfControllerException( e.getMessage() );\n throw controlException;\n }\n catch ( IllegalAccessException e )\n {\n WfControllerException controlException = new WfControllerException( e.getMessage() );\n throw controlException;\n }\n catch ( ClassNotFoundException e )\n {\n WfControllerException controlException = new WfControllerException( e.getMessage() );\n throw controlException;\n }\n return object;\n }", "public T Create(String input) {\n\t\t\n\t\tArrayList<String> params = ParseInput(input);\n\n\t\tClass<T> cls = classMap.get(params.get(0));\n\n\t\tif(cls == null) {\n\t\t\t//Class is not registered, error.\n\t\t\tMain.error(params.get(0) + \" is not recognized by Factory\");\n\t\t}\n\n\t\ttry{\n\t\t Method make = cls.getDeclaredMethod(\"Make\",new Class[] {ArrayList.class});\n\t\t T ret = cls.cast(make.invoke(null,new Object[]{params}));\n\t\t return ret;\n\t\t} catch(java.lang.NoSuchMethodException e){\n\t\t\tMain.error(params.get(0) + \" does not have required Make method\");\n\t\t} catch(java.lang.IllegalAccessException e){\n\t\t\tMain.error(\"Access problems with constructor for \" +\n\t\t\t\t params.get(0));\n\t\t} catch(java.lang.reflect.InvocationTargetException e){\n\t\t Main.error(\"Make method for \" + params.get(0) +\n\t\t\t \" threw an exception. Check code\");\n\t\t} catch(java.lang.Exception e){\n\t\t Main.error(\"Problems with \"+params.get(0)+\"; check code.\");\n\t\t}\n\n\t\t//We never get here\n\t\tMain.error(\"Reached end of creation method without creating \"\n\t\t\t + params.get(0));\n\t\treturn null;\n\t}", "public ResourceFactory(){}", "protected JvmClassLoadingMeta createJvmClassLoadingMetaNode(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer) {\n/* 622 */ return new JvmClassLoadingMeta(this, this.objectserver);\n/* */ }", "private String doDynamicImport(String name) {\n\t\t// Trim any added spaces\n\t\tname = name.trim();\n\t\ttry {\n\t\t\t//If the class name is the SymbolicNameVersion class then we want the object's\n\t\t\t//toString, otherwise the Class's toString is fine, and allows us to load interfaces\n\t\t\tif(\"org.osgi.test.cases.framework.weaving.tb2.SymbolicNameVersion\".equals(name))\n\t\t\t\treturn Class.forName(name)\n\t\t\t\t\t\t.getConstructor()\n\t\t\t\t\t\t.newInstance()\n\t\t\t\t\t\t.toString();\n\t\t\telse\n\t\t\t\treturn Class.forName(name).toString();\n\t\t} catch (Throwable t) {\n\t\t\tthrow new RuntimeException(t);\n\t\t}\n\t}", "public String getRuntimeClass();", "public Class<?> loadClass(String name, byte[] bytes){\n return this.defineClass(name, bytes, 0, bytes.length);\n }", "private ClassLoader createBundleClassLoader(final FileSystemManager fileSystemManager,\n final FileObject bundleFile, final ClassLoader parentClassLoader)\n throws FileSystemException, ClassNotFoundException {\n logger.debug(\"Loading Bundle file: \" + bundleFile.getURL());\n final ClassLoader bundleClassLoader = new VfsBundleClassLoader.Builder()\n .withFileSystemManager(fileSystemManager).withBundleFile(bundleFile)\n .withParentClassloader(parentClassLoader).build();\n logger.info(\n \"Loaded Bundle file: \" + bundleFile.getURL() + \" as class loader \" + bundleClassLoader);\n return bundleClassLoader;\n }", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "String generateRuntimeInitialization();", "@JsonCreator\n public static LinuxUpdateClasses fromString(String name) {\n return fromString(name, LinuxUpdateClasses.class);\n }", "private void init() throws ClassNotFoundException{\n }", "private static byte[] loadClass(String action) throws IOException {\n switch (action.toLowerCase()) {\n case \"resetpassword\" :\n return readClassAsResource(ResetPassword.class);\n case \"manualresetpassword\" :\n return readClassAsResource(ManualResetPassword.class);\n case \"activeusers\" :\n return readClassAsResource(ActiveUsers.class);\n }\n\n throw new RuntimeException(\"Not supported operation.\");\n }", "HxType createType(final String className);", "public <T> Class<T> defineAndLoadClass(ClassLoader classLoader, String proxyName, byte[] proxyBytes,\n Class<?> parent)\n throws ProxyGenerationException\n {\n Class<?> definedClass = null;\n try\n {\n // CHECKSTYLE:OFF\n switch (defineClassImpl) {\n case 0: // unset\n case 1: // classloader\n {\n if (defineClassMethod == null)\n {\n Method defineClassMethodTmp;\n try\n {\n // defineClass is a final method on the abstract base ClassLoader\n // thus we need to cache it only once\n defineClassMethodTmp = ClassLoader.class.getDeclaredMethod(\n \"defineClass\", String.class, byte[].class, int.class, int.class);\n if (!defineClassMethodTmp.isAccessible())\n {\n try\n {\n defineClassMethodTmp.setAccessible(true);\n defineClassMethod = defineClassMethodTmp;\n }\n catch (final RuntimeException re)\n {\n // likely j9 or not accessible via security, let's use unsafe or MethodHandle as fallbacks\n }\n }\n }\n catch (final NoSuchMethodException e)\n {\n // all fine, we just skip over from here\n }\n }\n\n if (defineClassMethod != null)\n {\n try\n {\n definedClass = Class.class.cast(defineClassMethod.invoke(\n classLoader, proxyName, proxyBytes, 0, proxyBytes.length));\n defineClassImpl = 1;\n break;\n }\n catch (final Throwable t)\n {\n definedClass = handleLinkageError(t, proxyName, classLoader);\n if (definedClass != null)\n {\n defineClassImpl = 1;\n break;\n }\n }\n }\n }\n case 2: // lookup\n {\n if (privateLookup == null)\n {\n synchronized (this)\n {\n if (privateLookup == null)\n {\n try\n {\n lookup = MethodHandles.lookup();\n defineClass = lookup.getClass().getMethod(\"defineClass\", byte[].class);\n privateLookup = MethodHandles.class.getDeclaredMethod(\n \"privateLookupIn\", Class.class, MethodHandles.Lookup.class);\n }\n catch (final Exception re)\n {\n // no-op\n }\n }\n }\n }\n\n if (privateLookup != null)\n {\n try\n {\n final MethodHandles.Lookup lookupInstance = MethodHandles.Lookup.class.cast(\n privateLookup.invoke(\n null,\n proxyName.startsWith(\"org.apache.webbeans.custom.signed.\") ?\n CustomSignedProxyPackageMarker.class :\n proxyName.startsWith(\"org.apache.webbeans.custom.\") ?\n CustomProxyPackageMarker.class : parent,\n lookup));\n definedClass = (Class<T>) defineClass.invoke(lookupInstance, proxyBytes);\n defineClassImpl = 2;\n break;\n }\n catch (final Exception e)\n {\n definedClass = handleLinkageError(e, proxyName, classLoader);\n if (definedClass != null)\n {\n defineClassImpl = 2;\n break;\n }\n }\n }\n }\n case 3: // unlikely - unsafe\n try\n {\n definedClass = Class.class.cast(unsafeDefineClass().invoke(\n internalUnsafe, proxyName, proxyBytes, 0, proxyBytes.length, classLoader, null));\n defineClassImpl = 3;\n }\n catch (final Throwable t)\n {\n definedClass = handleLinkageError(t, proxyName, classLoader);\n }\n break;\n default:\n throw new IllegalAccessError(\"Unknown defineClass impl: \" + defineClassImpl);\n }\n\n // CHECKSTYLE:ON\n if (definedClass == null)\n {\n throw new IllegalStateException(\"Can't define proxy \" + proxyName);\n }\n\n return (Class<T>) Class.forName(definedClass.getName(), true, classLoader);\n }\n catch (final Throwable e)\n {\n return onProxyGenerationError(e, proxyName, classLoader);\n }\n }", "protected VaryGrammarRuntimeModule createRuntimeModule() {\n\t\treturn new VaryGrammarRuntimeModule() {\n\t\t\t@Override\n\t\t\tpublic ClassLoader bindClassLoaderToInstance() {\n\t\t\t\treturn VaryGrammarInjectorProvider.class\n\t\t\t\t\t\t.getClassLoader();\n\t\t\t}\n\t\t};\n\t}", "LoadGenerator createLoadGenerator();", "LoadGenerator createLoadGenerator();", "public static void main(String[] args) {\r\n callFactory(new BicycleFactory());\r\n callFactory(new UnicycleFactory());\r\n callFactory(new TricycleFactory());\r\n }", "abstract AbstractRuntimeServiceNode<T> newRuntimeNode();", "private void init() {\n safeLevel = config.getSafeLevel();\n \n // Construct key services\n loadService = config.createLoadService(this);\n posix = POSIXFactory.getPOSIX(new JRubyPOSIXHandler(this), RubyInstanceConfig.nativeEnabled);\n javaSupport = new JavaSupport(this);\n \n if (RubyInstanceConfig.POOLING_ENABLED) {\n executor = new ThreadPoolExecutor(\n RubyInstanceConfig.POOL_MIN,\n RubyInstanceConfig.POOL_MAX,\n RubyInstanceConfig.POOL_TTL,\n TimeUnit.SECONDS,\n new SynchronousQueue<Runnable>(),\n new DaemonThreadFactory());\n }\n \n // initialize the root of the class hierarchy completely\n initRoot();\n \n // Set up the main thread in thread service\n threadService.initMainThread();\n \n // Get the main threadcontext (gets constructed for us)\n ThreadContext tc = getCurrentContext();\n \n // Construct the top-level execution frame and scope for the main thread\n tc.prepareTopLevel(objectClass, topSelf);\n \n // Initialize all the core classes\n bootstrap();\n \n // Initialize the \"dummy\" class used as a marker\n dummyClass = new RubyClass(this, classClass);\n dummyClass.freeze(tc);\n \n // Create global constants and variables\n RubyGlobal.createGlobals(tc, this);\n \n // Prepare LoadService and load path\n getLoadService().init(config.loadPaths());\n \n booting = false;\n \n // initialize builtin libraries\n initBuiltins();\n \n if(config.isProfiling()) {\n getLoadService().require(\"jruby/profiler/shutdown_hook\");\n }\n \n // Require in all libraries specified on command line\n for (String scriptName : config.requiredLibraries()) {\n loadService.require(scriptName);\n }\n }", "private ResourceFactory() {\r\n\t}", "public static DOMImplementationRegistry newInstance() \t\t\n throws ClassNotFoundException, InstantiationException, \n IllegalAccessException\n {\n Vector _sources = new Vector(); \n\n // fetch system property:\n String p = System.getProperty(PROPERTY);\n if (p != null) {\n StringTokenizer st = new StringTokenizer(p);\n while (st.hasMoreTokens()) {\n String sourceName = st.nextToken();\n // Use context class loader, falling back to Class.forName\n // if and only if this fails...\n Object source = getClass(sourceName).newInstance();\n _sources.add(source);\n }\n }\n return new DOMImplementationRegistry(_sources);\n }", "public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderSystem system, ClassLoaderPolicy policy, Set<String> parentPackages)\n {\n String[] parentPkgs = parentPackages.toArray(new String[parentPackages.size()]);\n return initializeClassLoader(clazz, system, policy, parentPkgs);\n }", "public static Factory factory() {\n return ext_h::new;\n }", "public static void main(String args[]) throws InterruptedException {\n int genClassCount = Integer.parseInt(System.getenv(\"DYN_CLASS_COUNT\"));\n\n // memory to consume by each instantiated object\n int memToConsumeMb = Integer.parseInt(System.getenv(\"MEM_USAGE_PER_OBJECT_MB\"));\n\n\n System.out.println(\"Generating and instantiating \" + genClassCount + \" classes.\");\n System.out.println(\"Each instantiated class will consume \" + memToConsumeMb + \" MB of memory.\");\n System.out.println(\"Available CPUs:\" + Runtime.getRuntime().availableProcessors());\n\n List<MemoryConsumer> memoryConsumers = new ArrayList<>();\n\n ClassPool pool = ClassPool.getDefault();\n pool.insertClassPath(new ClassClassPath(DynamicClassGen.class));\n\n try {\n\n for (int i = 0; i < genClassCount; i++) {\n // generate a new class from DynClassBase\n String className = DynClassBase.class.getCanonicalName();\n CtClass cc = pool.get(className);\n cc.setName(className + i);\n\n Class genClass = cc.toClass();\n Class<?> []ctorPrms = null;\n\n Constructor ctor = genClass.getConstructor(ctorPrms);\n\n MemoryConsumer memConsumer = (MemoryConsumer)ctor.newInstance(null);\n memoryConsumers.add(memConsumer);\n\n System.out.println(\"Instantiated class \" + memConsumer.getClass().getSimpleName());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // gradually increase memory consumption\n for (MemoryConsumer consumer: memoryConsumers) {\n int memToConsumeInBytes = memToConsumeMb * 1024 * 1024;\n consumer.consumeSomeMemory(memToConsumeInBytes);\n\n System.out.println(consumer.getClass().getSimpleName() + \" instance consuming \" + memToConsumeMb + \"MB\");\n }\n\n while(true){\n Thread.sleep(1000);\n }\n }", "public static <T> T construct(String classname, String readable) throws ConfigurationException\n {\n Class<T> cls = FBUtilities.classForName(classname, readable);\n return construct(cls, classname, readable);\n }", "public DefaultJvmLauncher()\n {\n }", "public void instantiate(List<String> vtlFolders) throws OrccException {\r\n \t\tString className = new File(clasz).getName();\r\n \t\tactor = Network.getActorFromPool(className);\r\n \t\tif (actor == null) {\r\n \t\t\tfor (String path : vtlFolders) {\r\n \t\t\t\tfile = new File(path, className.replace('.', '/') + \".json\");\r\n \t\t\t\tif (file.exists()) {\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t} else {\r\n \t\t\t\t\tfile = null;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \r\n \t\t\tif (file == null) {\r\n \t\t\t\tthrow new OrccException(\"Actor \\\"\" + className\r\n \t\t\t\t\t\t+ \"\\\" not found! Did you compile the VTL?\");\r\n \t\t\t}\r\n \r\n \t\t\t// try and load the actor\r\n \t\t\ttry {\r\n \t\t\t\tInputStream in = new FileInputStream(file);\r\n \t\t\t\tactor = new IRParser().parseActor(in);\r\n \t\t\t\tNetwork.putActorInPool(className, actor);\r\n \t\t\t} catch (OrccException e) {\r\n \t\t\t\tthrow new OrccException(\"Could not parse instance \\\"\" + id\r\n \t\t\t\t\t\t+ \"\\\" because: \" + e.getLocalizedMessage(), e);\r\n \t\t\t} catch (FileNotFoundException e) {\r\n \t\t\t\tthrow new OrccException(\"Actor \\\"\" + className\r\n \t\t\t\t\t\t+ \"\\\" not found! Did you compile the VTL?\", e);\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// replace path-based class by actor class\r\n \t\tclasz = className;\r\n \r\n \t\t// and update hierarchical class\r\n \t\tif (!hierarchicalClass.isEmpty()) {\r\n \t\t\tint last = hierarchicalClass.size() - 1;\r\n \t\t\thierarchicalClass.remove(last);\r\n \t\t\thierarchicalClass.add(clasz);\r\n \t\t}\r\n \t}", "public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderSystem system, ClassFilter parentFilter, ClassLoaderPolicy policy)\n {\n Set<String> parentPackages = getParentPackages();\n String[] parentPkgs = parentPackages.toArray(new String[parentPackages.size()]);\n PackageClassFilter filter = new PackageClassFilter(parentPkgs);\n filter.setIncludeJava(true);\n CombiningClassFilter beforeFilter = CombiningClassFilter.create(filter, parentFilter);\n ParentPolicy parentPolicy = new ParentPolicy(beforeFilter, ClassFilterUtils.NOTHING);\n return initializeClassLoader(clazz, system, parentPolicy, policy);\n }", "System createSystem();", "public static void main(String[] args) throws IOException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n }", "private static void zza(java.lang.ClassLoader r3) throws com.google.android.gms.dynamite.DynamiteModule.zzc {\n /*\n r0 = 0\n java.lang.String r1 = \"com.google.android.gms.dynamiteloader.DynamiteLoaderV2\"\n java.lang.Class r3 = r3.loadClass(r1) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n r1 = 0\n java.lang.Class[] r2 = new java.lang.Class[r1] // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n java.lang.reflect.Constructor r3 = r3.getConstructor(r2) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n java.lang.Object[] r1 = new java.lang.Object[r1] // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n java.lang.Object r3 = r3.newInstance(r1) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n android.os.IBinder r3 = (android.os.IBinder) r3 // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n if (r3 != 0) goto L_0x001a\n r3 = r0\n goto L_0x002e\n L_0x001a:\n java.lang.String r1 = \"com.google.android.gms.dynamite.IDynamiteLoaderV2\"\n android.os.IInterface r1 = r3.queryLocalInterface(r1) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n boolean r2 = r1 instanceof com.google.android.gms.dynamite.zzl // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n if (r2 == 0) goto L_0x0028\n r3 = r1\n com.google.android.gms.dynamite.zzl r3 = (com.google.android.gms.dynamite.zzl) r3 // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n goto L_0x002e\n L_0x0028:\n com.google.android.gms.dynamite.zzm r1 = new com.google.android.gms.dynamite.zzm // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n r1.<init>(r3) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n r3 = r1\n L_0x002e:\n zzaSH = r3 // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n return\n L_0x0031:\n r3 = move-exception\n com.google.android.gms.dynamite.DynamiteModule$zzc r1 = new com.google.android.gms.dynamite.DynamiteModule$zzc\n java.lang.String r2 = \"Failed to instantiate dynamite loader\"\n r1.<init>(r2, r3, r0)\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zza(java.lang.ClassLoader):void\");\n }", "public interface BuiltInsLoader {\n public static final Companion Companion = Companion.$$INSTANCE;\n\n PackageFragmentProvider createPackageFragmentProvider(StorageManager storageManager, ModuleDescriptor moduleDescriptor, Iterable<? extends ClassDescriptorFactory> iterable, PlatformDependentDeclarationFilter platformDependentDeclarationFilter, AdditionalClassPartsProvider additionalClassPartsProvider, boolean z);\n\n /* compiled from: BuiltInsLoader.kt */\n public static final class Companion {\n static final /* synthetic */ Companion $$INSTANCE = new Companion();\n private static final Lazy<BuiltInsLoader> Instance$delegate = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, BuiltInsLoader$Companion$Instance$2.INSTANCE);\n\n private Companion() {\n }\n\n public final BuiltInsLoader getInstance() {\n return Instance$delegate.getValue();\n }\n }\n}", "private static native void classInitNative();", "public void load() throws ClassNotFoundException, IOException;", "abstract public Core createCore(String configPath, String factoryConfigPath, Object systemContext);", "ClassLoaderConfigType createClassLoaderConfigType();", "public static void main(String[] args) {\n testFactoryMethod();\n }", "@Override\n public Class<?> loadClassBytes(String name, ClassLoader cl) {\n return dexFile.loadClass(name.replace('.', '/'), cl);\n }", "CodegenFactory getCodegenFactory();" ]
[ "0.63929224", "0.6144889", "0.5728908", "0.56968856", "0.5646337", "0.56107616", "0.5531011", "0.55257213", "0.54828364", "0.5469556", "0.54501396", "0.5422869", "0.5397772", "0.53825974", "0.5379704", "0.53761876", "0.53567183", "0.5303817", "0.52956605", "0.52948225", "0.52939326", "0.5251792", "0.52392167", "0.5228642", "0.52260995", "0.5214856", "0.52123684", "0.5204507", "0.5150959", "0.5131833", "0.5120664", "0.51165104", "0.5104726", "0.5098667", "0.50977093", "0.5096308", "0.5094131", "0.5065549", "0.5050006", "0.5042264", "0.50421005", "0.50383145", "0.50340307", "0.5015657", "0.50091493", "0.5000697", "0.49972808", "0.4991219", "0.4987943", "0.49809593", "0.49780262", "0.4965328", "0.49495518", "0.4944842", "0.49415287", "0.49404234", "0.4938487", "0.49378037", "0.49294266", "0.4929018", "0.49222505", "0.49139282", "0.49112794", "0.49092266", "0.49067876", "0.49058285", "0.48994324", "0.4877964", "0.48763424", "0.48722264", "0.48619792", "0.4860741", "0.48453796", "0.48438957", "0.48402306", "0.48370594", "0.48370594", "0.483599", "0.48260087", "0.48211214", "0.48165074", "0.48129588", "0.47984853", "0.47924003", "0.47905567", "0.47898448", "0.47881255", "0.47877717", "0.4778028", "0.477678", "0.477126", "0.4770444", "0.47691", "0.47597906", "0.47498995", "0.4739982", "0.47380266", "0.47375676", "0.4734965", "0.47334358" ]
0.62855303
1
check if class has been excluded during resource generation
@Override protected ClassDef findClassDef(String className) { if (excludedClassNames.contains(className)) { String message = String.format("Class definition not found in test data: %s", className); throw new TestDataException(message); } return classDefs.get(className); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean shouldSkipClass(Class<?> classe) {\n\t\t\n\t\t \n\t\treturn false;\n\t}", "@Override\n\tpublic boolean classIsMissing() {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean shouldSkipClass(Class<?> clazz)\r\n\t{\n\t\treturn false;\r\n\t}", "@Test\n\tpublic void testExcludeGeneratedClasses() throws Exception {\n\t\tnew $$ExcludeGeneratedClasses().bar();\n\t\tassertNull(spanCapturingReporter.get());\n\t}", "@Override\n public boolean shouldSkipClass(Class<?> arg0) {\n return false;\n }", "public boolean shouldSkipClass(Class<?> clazz) {\n\t\t\treturn false;\r\n\t\t}", "public boolean shouldSkipClass(Class<?> clazz) {\n\t\t\treturn false;\n\t\t}", "ExcludeType createExcludeType();", "private boolean filterClass(Class<?> clz) {\n String name = clz.getSimpleName();\n return !clz.isMemberClass() && (scans.size() == 0 || scans.contains(name)) && !skips.contains(name);\n }", "boolean isExcluded();", "protected boolean isInDerivedClass() {\n\t\treturn (getClass() != Main.class);\n\t}", "private boolean isSourceExcluded(IClasspathEntry entry) {\n IPath[] exclusionPatterns = entry.getExclusionPatterns();\n if (exclusionPatterns != null) {\n for (IPath exclusionPattern : exclusionPatterns) {\n if (\"**\".equals(exclusionPattern.toString())) {\n return true;\n }\n }\n }\n return false;\n }", "@Override\r\n\t\tpublic boolean shouldSkipClass(Class<?> clazz) {\n\t\t\tif (clazz.equals(BeanPropertyBindingResult.class)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "protected boolean includeClassAttribute() {\r\n return true;\r\n }", "default boolean isClass() {\n return false;\n }", "public List<ExcludeClasses> getExcludes()\n {\n return excludes;\n }", "public boolean isExcluded()\n {\n return project.isExcluded(this);\n }", "protected boolean isOutOfMigrationClass(Class<?> clazz) {\n for (String pkg : outOfMigrationPackageSet) {\n if (clazz.getPackage().getName().startsWith(pkg)) {\n return true;\n }\n }\n return outOfMigrationClassSet.contains(clazz);\n }", "boolean hasClassname();", "@Override\n\tpublic void setClassMissing() {\n\n\t}", "private boolean isIncluded(StackTraceElementProxy step) {\n if (!excludes.isEmpty()) {\n StackTraceElement stackTraceElement = step.getStackTraceElement();\n String testString = stackTraceElement.getClassName() + \".\" + stackTraceElement.getMethodName();\n \n for (Pattern exclusionPattern : excludes) {\n if (exclusionPattern.matcher(testString).find()) {\n return false;\n }\n }\n }\n return true;\n }", "boolean isClassMapping() {\n return !path.isEmpty() && !targetClass.isEmpty()\n && condAttr.isEmpty() && condAttrValue.isEmpty() && source.isEmpty()\n && sourceName.isEmpty() && targetProperty.isEmpty() && targetType.isEmpty();\n }", "public void setExcludes( List<ExcludeClasses> excludes )\n {\n this.excludes = excludes;\n }", "public boolean isExcluded()\n {\n return excluded.booleanValue();\n }", "@Test\n public void testIgnore_excludedClasses() throws Throwable {\n RunNotifier notifier = spy(new RunNotifier());\n RunListener listener = mock(RunListener.class);\n notifier.addListener(listener);\n Bundle ignores = new Bundle();\n ignores.putString(LongevityClassRunner.FILTER_OPTION, FailingTest.class.getCanonicalName());\n mRunner = spy(new LongevityClassRunner(FailingTest.class, ignores));\n mRunner.run(notifier);\n verify(listener, times(1)).testIgnored(any());\n }", "boolean hasResourceType();", "boolean isOmitResourceId();", "private static boolean isClassFile(WebFile aFile)\n {\n String path = aFile.getPath();\n if (!path.endsWith(\".class\"))\n return false;\n if (isIgnorePath(path))\n return false;\n return true;\n }", "private boolean checkUnreachedClassesForContainersAndSubclasses() {\n Iterator<EClass> iterator = unreachedClasses.iterator();\n while (iterator.hasNext()) {\n EClass eClass = iterator.next();\n\n if (grabIncomingContainments && addIfContainer(eClass) || grabSubClasses && addIfContainedSubClass(eClass)) {\n iterator.remove();\n return true;\n }\n }\n return false;\n }", "public boolean isMissingDescriptor(final String className) {\n return _missingTypes.contains(className);\n }", "public boolean isInstantiationAllowed(Class cl) {\r\n\t\tif (_sess.isNew())\r\n\t\t\treturn false;\r\n\t\tBoolean bAllowed = (Boolean) _sess.getAttribute(_reflectionallowedattribute);\r\n\t\tif (bAllowed != null && !bAllowed.booleanValue())\r\n\t\t\treturn false;\r\n\t\treturn super.isInstantiationAllowed(cl);\r\n\t}", "private void setExcludeUnlistedClasses(String value) {\n if (!_excludeUnlistedSet) {\n BigDecimal version = getPersistenceVersion();\n boolean excludeUnlisted;\n if (version.compareTo(VERSION_1_0) > 0) {\n excludeUnlisted = !(\"false\".equalsIgnoreCase(value));\n } else {\n excludeUnlisted = \"true\".equalsIgnoreCase(value);\n }\n _info.setExcludeUnlistedClasses(excludeUnlisted);\n _excludeUnlistedSet = true;\n }\n }", "public void setExcludes(String excludes)\n {\n this.excludes = excludes;\n }", "private static boolean willGenerateExtensionFor(IInterfaceDefinition iDef,\n\t\t\tEnvironment base)\n\t{\n\t\tIInterfaceDefinition overtureEquivalent = base.lookUpType(iDef.getName().getName());\n\t\tboolean hasSameTag = overtureEquivalent == null ? false\n\t\t\t\t: iDef.getName().getTag().equals(overtureEquivalent.getName().getTag());\n\t\treturn hasSameTag && !isUtilityOrTemplateClass(iDef, base);\n\t}", "protected boolean isExcluded(String name) {\r\n return (this.excludeRE == null) ? false : this.excludeRE.match(name);\r\n }", "private boolean isInstanceOfNoAnnotationURLClassLoader(ClassLoader loader)\r\n {\r\n Class parent = loader.getClass();\r\n while (parent != null)\r\n {\r\n if (\"NoAnnotationURLClassLoader\".equals(parent.getSimpleName()))\r\n {\r\n return true;\r\n }\r\n parent = parent.getSuperclass();\r\n }\r\n return false;\r\n }", "private boolean isPackageExcluded(final FullIdent fullIdent) {\n Boolean result = null;\n final String packageName = fullIdent.getText();\n for (final String excludesPackageName : excludePackages) {\n if (packageName.startsWith(excludesPackageName)) {\n result = true;\n break;\n }\n }\n if (result == null) {\n for (final String includePackageName : packages) {\n if (packageName.startsWith(includePackageName)) {\n result = false;\n break;\n }\n }\n }\n if (result == null) {\n result = true;\n }\n return result;\n }", "@Override\n\t/**\n\t * returns a false because a class cannot be static\n\t * \n\t * @return false\n\t */\n\tpublic boolean getStatic() {\n\t\treturn false;\n\t}", "private String[] getExcluded(Resource resource) {\n\n\t\tCollection<String> excludes = new LinkedList<String>();\n\n\t\tString relativePath = PathUtils.subtract(resource.getDirectory(),\n\t\t\t\tthis.project.getBasedir().getAbsolutePath()\n\t\t\t\t\t\t+ PathSeparator.get());\n\n\t\tfor (Platform platform : Platform.fromString(this.platforms)) {\n\n\t\t\tString preStart = platform.behave(this.preStart);\n\n\t\t\texcludes.add(PathUtils.subtract(preStart, relativePath));\n\t\t}\n\n\t\treturn excludes.toArray(new String[] {});\n\t}", "private boolean isSkippedProxyClass(Class<?> clazz) {\n for (Class<?> skipClazz : proxyClassesToSkip) {\n if (skipClazz.equals(clazz)) {\n return true;\n } else if (clazz.getSuperclass() != null) {\n boolean skipSuperClass = isSkippedProxyClass(clazz.getSuperclass());\n if (skipSuperClass) {\n return true;\n }\n }\n }\n return false;\n }", "protected boolean isExcluded( String name )\n {\n for( int i = 0; i < excludes.length; i++ )\n {\n if( matchPath( excludes[ i ], name, isCaseSensitive ) )\n {\n return true;\n }\n }\n return false;\n }", "private boolean isIgnoredFile(String filename) {\n String[] splitClassName = filename.split(\"\\\\.\");\n return Arrays.asList(IGNORE_FILE).contains(splitClassName[splitClassName.length - 1]);\n }", "@Override\n public boolean getInstantiateForClass() throws G2AccessException {\n java.lang.Object retnValue = getStaticAttributeValue (SystemAttributeSymbols.INSTANTIATE_);\n return ((Boolean)retnValue).booleanValue ();\n }", "@Test\n public void testDisableResourceType()\n {\n ResourceType resourceType = new ResourceType(schemaFactory,\n JsonHelper.loadJsonDocument(ClassPathReferences.USER_RESOURCE_TYPE_JSON));\n Assertions.assertNotNull(resourceType.getFeatures());\n\n resourceType.setDisabled(true);\n Assertions.assertTrue(resourceType.isDisabled());\n Assertions.assertTrue(resourceType.getFeatures().isResourceTypeDisabled());\n Assertions.assertFalse(resourceType.getFeatures().getEndpointControlFeature().isResourceTypeDisabled());\n\n resourceType.setDisabled(false);\n Assertions.assertFalse(resourceType.isDisabled());\n Assertions.assertFalse(resourceType.getFeatures().isResourceTypeDisabled());\n Assertions.assertFalse(resourceType.getFeatures().getEndpointControlFeature().isResourceTypeDisabled());\n }", "protected static String createClassPathExcludingTestClasses()\n {\n String sSep;\n if (\"\\\\\".endsWith(File.separator))\n {\n sSep = \"\\\\\\\\\";\n }\n else\n {\n sSep = File.separator;\n }\n String sPattern = String.format(\".*%sio%starget%s.*\", sSep, sSep, sSep);\n return ClassPath.automatic().excluding(sPattern).toString();\n }", "boolean isDoNotRegenerateJspFiles();", "public boolean hasNotClass(final String elementLocator, final String clazz);", "public boolean getErrorOnUseBeanInvalidClassAttribute();", "@Override\n\tpublic boolean shouldSkipField(FieldAttributes classe) {\n\t\t\n\t\tfinal Expose expose = classe.getAnnotation(Expose.class);\n return expose != null && !expose.serialize();\n\t\t\n/*\t\tString className = classe.getDeclaringClass().getName();\n\t\tString fieldName = classe.getName();\n\t\t\n\t\t\t\n\t\t\n\t\treturn \n\t className.equals(Produto.class.getName())\n\t && (fieldName.equals(\"versoes\") || fieldName.equals(\"clientes\"));*/\n\t}", "private XIncluder() {}", "private boolean examineName(String name) {\r\n resourceName = null;\r\n resourceIsClass = false;\r\n\r\n if (name.endsWith(\".java\")) {\r\n return false;\r\n }\r\n\r\n if (name.endsWith(\".class\")) {\r\n name = name.substring(0, name.length() - 6);\r\n if (classMap.containsKey(name)) {\r\n return false;\r\n }\r\n resourceIsClass = true;\r\n } else {\r\n if (resourceMap.containsKey(name)) {\r\n return false;\r\n }\r\n }\r\n\r\n resourceName = name;\r\n return true;\r\n }", "boolean ignoreExternal();", "private static boolean willGenerateExtentionFor(IInterfaceDefinition iDef, Environment base)\n \t{\n \t\treturn base.lookUpType(iDef.getName().getName()) != null && !isUtilityOrTemplateClass(iDef, base);\n \t}", "public boolean isDontCare(){\n return hasDontCare;\n }", "boolean isHasResources();", "public void addProgenyBlacklist(Class...clazz);", "@Ignore\n @Test\n public void discoverNoTypes() throws Exception {\n }", "@Override\n\tpublic boolean concernsSystem(Class class1) {\n\t\treturn false;\n\t}", "boolean hasProduceResType();", "@Test\n\tpublic void testGetDriverExcludeAllocations(){ \n\t\tassertNotNull(driverService.getDriverExcludeAllocations(239537L)); \n\t}", "public boolean excludeUnmated() {\n return mExcludeUnmated;\n }", "public boolean doGeneration(Class<?> clazz);", "public boolean isClass() {\n return operation == null;\n }", "public boolean hasAuxClass(IJavaClassFile auxClassToCheck);", "boolean isHandled(Class<?> type);", "boolean isNilRequiredResources();", "public boolean validate() {\n\t\tif (StringUtils.isEmpty(className) && !isFinal) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private boolean isIgnored(DetailAST ast) {\n final String name = ast.findFirstToken(TokenTypes.IDENT).getText();\n return ignoreNamePattern != null && ignoreNamePattern.matcher(name).matches()\n || \"serialVersionUID\".equals(name);\n }", "public boolean isResourceType(String resourceType) {\n return false;\n }", "static void ignore() {\n }", "public boolean getSkipAssemble() {\n return skipAssemble;\n }", "@Override\n\tpublic boolean isStatic() {\n\t\treturn false;\n\t}", "public boolean isExcludeSubtype() {\n\t\treturn excludeSubtypes;\n\t}", "@Override\n public byte[] getClassBytes(String name) {\n return null;\n }", "public String[] getExcludes()\n {\n return m_excludes;\n }", "public boolean isClass () throws java.io.IOException, com.linar.jintegra.AutomationException;", "boolean canBeSkipped();", "protected boolean skip(Annotation annotation) {\n \t\treturn false;\n \t}", "boolean checkShouldSkipTarget(String target) {\n return Boolean.TRUE.equals(SKIP_TARGETS.retrieve(target));\n }", "@Test\n public void testAcceptingExternalClassesWithoutEnablingExternalClasses() {\n try (ScanResult scanResult = new ClassGraph()\n .acceptPackages(InternalExternalTest.class.getPackage().getName(),\n ExternalAnnotation.class.getName())\n .enableAllInfo().scan()) {\n assertThat(scanResult.getAllStandardClasses().getNames()).containsOnly(\n InternalExternalTest.class.getName(), InternalExtendsExternal.class.getName(),\n InternalImplementsExternal.class.getName(), InternalAnnotatedByExternal.class.getName());\n assertThat(scanResult.getSubclasses(ExternalSuperclass.class).getNames())\n .containsOnly(InternalExtendsExternal.class.getName());\n assertThat(scanResult.getAllInterfaces()).isEmpty();\n assertThat(scanResult.getClassesImplementing(ExternalInterface.class).getNames())\n .containsOnly(InternalImplementsExternal.class.getName());\n assertThat(scanResult.getAllAnnotations().getNames()).isEmpty();\n assertThat(scanResult.getClassesWithAnnotation(ExternalAnnotation.class).getNames())\n .containsOnly(InternalAnnotatedByExternal.class.getName());\n }\n }", "public Boolean isProhibited() {\n throw new NotImplementedException();\n }", "boolean isBlacklisted(ComputationTargetSpecification target);", "public boolean isDescriptorOnly();", "boolean hasResource();", "public void processClassResourceAnnotations ()\n throws Exception\n {\n List<Class<?>> classes = _finder.getClassesForAnnotation(Resource.class);\n for (Class<?> clazz:classes)\n {\n if (!isServletType(clazz))\n {\n Log.debug(\"Ignoring @Resource annotation on on-servlet type class \"+clazz.getName());\n continue;\n }\n //Handle Resource annotation - add namespace entries\n Resource resource = (Resource)clazz.getAnnotation(Resource.class);\n if (resource != null)\n {\n String name = resource.name();\n String mappedName = resource.mappedName();\n Resource.AuthenticationType auth = resource.authenticationType();\n Class type = resource.type();\n boolean shareable = resource.shareable();\n \n if (name==null || name.trim().equals(\"\"))\n throw new IllegalStateException (\"Class level Resource annotations must contain a name (Common Annotations Spec Section 2.3)\");\n \n try\n {\n //TODO don't ignore the shareable, auth etc etc\n if (!org.mortbay.jetty.plus.naming.NamingEntryUtil.bindToENC(_webApp, name,mappedName))\n if (!org.mortbay.jetty.plus.naming.NamingEntryUtil.bindToENC(_webApp.getServer(), name,mappedName))\n throw new IllegalStateException(\"No resource at \"+(mappedName==null?name:mappedName));\n }\n catch (NamingException e)\n {\n throw new IllegalStateException(e);\n }\n }\n }\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "boolean is(Class<? extends DownloaderConfiguration> type);", "boolean exclude(V1Secret secret);", "public void testShaderWithoutExcludesShouldRemoveReferencesOfOriginalPattern() throws Exception {\n shaderWithPattern(\"org/shaded/plexus/util\", new File(\"target/foo-custom-without-excludes.jar\"), new String[]{});\n }", "@Override\n public boolean ignoreAbsorbedDamage() {\n return false;\n }", "@Override\n public boolean ignoreAbsorbedDamage() {\n return false;\n }", "private boolean getClassificationResult(String imgPath) {\n return false;\n }", "@Test\n\tvoid testCheckClass4() {\n\t\tassertFalse(DataChecker.checkClass(null, null));\n\t}", "@Test\n public void shouldAllowClassOnWhitelistedClassAndNonWhitelistedPackage() {\n // given\n validator.setAllowedClasses(SOME_CLASS);\n validator.setAllowedPackages(ANOTHER_PACKAGE);\n // then\n assertThat(validator.validate(SOME_CLASS)).isTrue();\n }", "boolean isOnlyAssignedInInitializer();", "private void enforceTransitiveClassUsage() {\n HashSet<String> tmp = new HashSet<String>(usedAppClasses);\n for(String className : tmp) {\n enforceTransitiveClassUsage(className);\n }\n }", "boolean isArchiveSuppress();", "private boolean isIgnoredByTag(ExtensionContext context) {\n AnnotatedElement element = context.getElement().get();\n return isIgnoredByTag(element);\n }" ]
[ "0.67293674", "0.6444671", "0.63859147", "0.6350117", "0.633326", "0.6224639", "0.61606044", "0.606255", "0.60095596", "0.59194434", "0.5918723", "0.5857064", "0.5851676", "0.5850003", "0.57022005", "0.56979406", "0.56908643", "0.56752694", "0.5652516", "0.5583704", "0.55762273", "0.5571578", "0.55589354", "0.555295", "0.55092555", "0.55056643", "0.5502019", "0.5479771", "0.54475445", "0.53616625", "0.5344318", "0.5338255", "0.5325837", "0.5307401", "0.52653795", "0.52542895", "0.5250574", "0.5247184", "0.5234129", "0.5223043", "0.52177227", "0.51985276", "0.5175514", "0.51654637", "0.51550055", "0.5145033", "0.51413", "0.5135122", "0.5133394", "0.51295555", "0.51163703", "0.51085854", "0.5100583", "0.5071261", "0.5058613", "0.50466573", "0.5041439", "0.50391805", "0.50268584", "0.50209004", "0.5019553", "0.5013692", "0.50068086", "0.49874306", "0.49849713", "0.49763477", "0.4967065", "0.4961492", "0.4956425", "0.49523354", "0.49480993", "0.49414903", "0.49391696", "0.4934503", "0.49137387", "0.49066412", "0.4894796", "0.48913944", "0.4885728", "0.4881105", "0.48696885", "0.48688862", "0.48687726", "0.4862976", "0.48535883", "0.48481265", "0.48481265", "0.48481265", "0.48480248", "0.4843405", "0.48411113", "0.48387235", "0.48310247", "0.48310247", "0.4827694", "0.48251495", "0.4816002", "0.48084053", "0.4804143", "0.48038536", "0.48020324" ]
0.0
-1
Small Java application to generate the test resource "classesoraclejdk1.8.0_144.dat.gz", given the path to the rt.jar file of an Oracle JDK/JRE 1.8.0_144.
public static void main(String[] args) throws IOException { // get path to rt.jar file String rtPath = args[0]; File rtFile = new File(rtPath); if (!rtFile.isFile()) { System.err.println("File not found: " + rtFile.getAbsolutePath()); System.exit(1); } // load all classes from rt.jar file into memory ClasspathLoader loader = LoaderBuilder.create().forClassLoader("Runtime").buildClasspathLoader(); Classpath classpath = loader.load(Collections.singletonList(rtFile)); JarFile jarFile = classpath.getJarFiles().get(0); List<ClassDef> classDefs = jarFile.getClassDefs(); // list of packages which will be added to resource file List<String> includedPackageNames = Arrays.asList( "com.sun.net.httpserver", "com.sun.xml.internal.ws.addressing", "java.applet", "java.awt", "java.beans", "java.io", "java.lang", "java.math", "java.net", "java.nio", "java.rmi", "java.security", "java.sql", "java.text", "java.time", "java.util", "javax.activation", "javax.annotation", "javax.imageio", "javax.jws", "javax.management", "javax.naming", "javax.net", "javax.script", "javax.security.auth", "javax.sql", "javax.transaction", "javax.xml", "org.w3c.dom", "org.xml.sax", "sun.misc" ); // split into included classes (class defs) and excluded classes (names) List<ClassDef> includedClassDefs = new ArrayList<>(); List<String> excludedClassNames = new ArrayList<>(); for (ClassDef classDef : classDefs) { String className = classDef.getClassName(); boolean include = includedPackageNames.stream().anyMatch(p -> className.startsWith(p + ".")); if (include) { includedClassDefs.add(classDef); } else { excludedClassNames.add(className); } } // open compressed output stream to test resource file String resourcePath = "./src/test/resources/classes-oracle-jdk-1.8.0_144.dat.gz"; File resourceFile = new File(resourcePath); try (FileOutputStream fos = new FileOutputStream(resourceFile)) { try (GZIPOutputStream zos = new GZIPOutputStream(fos)) { try (DataOutputStream dos = new DataOutputStream(zos)) { // write list of included class definitions dos.writeInt(includedClassDefs.size()); for (ClassDef classDef : includedClassDefs) { ClassDefUtils.write(classDef, dos); } // write list of excluded class names dos.writeInt(excludedClassNames.size()); for (String className : excludedClassNames) { dos.writeUTF(className); } } } } System.out.println("Runtime file : " + rtFile.getAbsolutePath()); System.out.println("Total classes found: " + classDefs.size()); System.out.println("Included classes : " + includedClassDefs.size()); System.out.println("Excluded classes : " + excludedClassNames.size()); System.out.println("Resource file : " + resourceFile.getAbsolutePath()); System.out.println("Final file size : " + FileUtils.formatFileSize(resourceFile.length())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void exportOracleDatabaseScriptFromAnnotations() throws Exception\r\n {\r\n Properties props = PropertyLoader.loadProperties(\"./build.properties\");\r\n String classesDirPath = props.getProperty(\"classes.dir\");\r\n SchemaGenerator sgen = new SchemaGenerator(new String[] {\"uk.co.utilisoft.parms.domain\"},\r\n classesDirPath,\r\n new String[] {\".*UnitTest.*\", \".*Test.*\", \".*Interface.*\", \".*\\\\$.*\"});\r\n sgen.generate(Dialect.ORACLE, mTestFilePath);\r\n mTestFiles = getSavedFiles(mTestFilePath);\r\n assertTrue(!mTestFiles.isEmpty());\r\n\r\n for (int i = 0; i < mTestFiles.size(); i++)\r\n {\r\n File file = mTestFiles.get(i);\r\n InputStream is = new FileInputStream(file);\r\n long length = file.length();\r\n\r\n if (length > Integer.MAX_VALUE)\r\n {\r\n fail(\"Failed to read file \" + file.getName() + \" because file length \" + length + \" is too long\");\r\n }\r\n\r\n byte[] bytes = new byte[(int)length];\r\n int offset = 0;\r\n int numRead = 0;\r\n\r\n while (offset < bytes.length\r\n && (numRead = is.read(bytes, offset, bytes.length - offset)) >= 0)\r\n {\r\n offset += numRead;\r\n }\r\n\r\n if (offset < bytes.length)\r\n {\r\n fail(\"Failed to finish reading file \" + file.getName());\r\n }\r\n\r\n is.close();\r\n\r\n // test file contains some data\r\n assertNotNull(bytes);\r\n assertTrue(\"File \" + file.getName() + \" contains zero bytes\", bytes.length > 0);\r\n }\r\n }", "public void testMain() {\n System.out.println(\"main\");\n String[] args = new String[]{\n \n \"-out\", \"ausgabe.jar\",\n \"-mc\", \"inteco.Saukopf\",\n// \"-m manifest.mf \" \n// \"-v\",\n \"-l\",\n \"-lib\", \"CustJar.jar\", \"./asm.jar\", \"D:\\\\Development\\\\Java\\\\Componenten\\\\Hibernate\\\\hibernate-3.0.2\\\\hibernate-3.0\\\\lib\"\n // -mainclass\n };\n CustJar.main(args);\n\n \n }", "protected abstract void generatePackageFiles(ClassTree classtree) throws Exception;", "public void runit(String class_name, String vm_options[])\n {\n String jre_home = System.getProperty(\"java.home\");\n String sdk_home = (jre_home.endsWith(\"jre\") ?\n (jre_home + File.separator + \"..\") :\n jre_home );\n String cdir = System.getProperty(\"test.classes\", \".\");\n String os_arch = System.getProperty(\"os.arch\");\n boolean d64 = os_arch.equals(\"sparcv9\") ||\n os_arch.equals(\"amd64\");\n String isa_dir = d64?(File.separator+os_arch):\"\";\n String java = jre_home\n + File.separator + \"bin\" + isa_dir\n + File.separator + \"java\";\n String jhat = sdk_home + File.separator + \"bin\"\n + File.separator + \"jhat\";\n /* Array of strings to be passed in for exec:\n * 1. java\n * 2. -Dtest.classes=.\n * 3. -d64 (optional)\n * 4. -Xcheck:jni (Just because it finds bugs)\n * 5. -Xverify:all (Make sure verification is on full blast)\n * 6. -agent\n * vm_options\n * 7+i. classname\n */\n int nvm_options = 0;\n if ( vm_options != null ) nvm_options = vm_options.length;\n String cmd[] = new String[1 + (d64?1:0) + 7 + nvm_options];\n int i,j;\n \n i = 0;\n cmd[i++] = java;\n cmd[i++] = \"-cp\";\n cmd[i++] = cdir;\n cmd[i++] = \"-Dtest.classes=\" + cdir;\n if ( d64 ) {\n cmd[i++] = \"-d64\";\n }\n cmd[i++] = \"-Xcheck:jni\";\n cmd[i++] = \"-Xverify:all\";\n dumpfile= cdir + File.separator + class_name + \".hdump\";\n cmd[i++] = \"-agentlib:hprof=\" + all_hprof_options\n + \",format=b,file=\" + dumpfile;\n /* Add any special VM options */\n for ( j = 0; j < nvm_options; j++ ) {\n cmd[i++] = vm_options[j];\n }\n /* Add classname */\n cmd[i++] = class_name;\n \n /* Execute process */\n execute(cmd);\n \n /* Run jhat */\n String jhat_cmd[] = new String[4];\n jhat_cmd[0] = jhat;\n jhat_cmd[1] = \"-debug\";\n jhat_cmd[2] = \"2\";\n jhat_cmd[3] = dumpfile;\n \n /* Execute process */\n execute(jhat_cmd);\n \n }", "@Test\n\t@Ignore\n\tpublic void test14InstallAndStartSunJersey() throws Exception {\n\t\ttry {\n\t\t\tfinal Map<String, String> launchArgs = new HashMap<String, String>();\n\t\t\tlaunchArgs.put(\"org.osgi.framework.bootdelegation\", \"sun.,\");\n\t\t\tlaunchArgs\n\t\t\t\t\t.put(\"org.osgi.framework.system.packages.extra\",\n\t\t\t\t\t\t\t\"javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,org.w3c.dom,org.xml.sax\");\n\t\t\tstartFrameworkClean(launchArgs);\n\t\t\tfinal Bundle[] bundles = installAndStartBundles(new String[] {\n\t\t\t\t\t\"org.codehaus.jackson.core_1.6.0.v20101005-0925.jar\",\n\t\t\t\t\t\"org.codehaus.jackson.mapper_1.6.0.v20101005-0925.jar\",\n\t\t\t\t\t\"javax.ws.rs_1.1.1.v20130318-1750.jar\",\n\t\t\t\t\t\"com.sun.jersey_1.17.0.v20130314-2020.jar\" });\n\t\t\tassertBundlesResolved(bundles);\n\t\t} finally {\n\t\t\tstopFramework();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tString className = \"TryWithResourcesTestCode\";\n\t\tStringBuilder builder=new StringBuilder();\n String[] testStrings = getTestStrings();\n\n\t\tbuilder.append(\n\t\t\"public class \"+className+\" {\\n\"\n\t\t);\n\t for (int i=0; i< testStrings.length; i++) {\n\t\tbuilder.append(\n\t\t\" static boolean s\"+i+\"=false;\\n\"\n\t\t);\n\t }\n\t for (int i=0; i< testStrings.length; i++) {\n\t\tbuilder.append(\n\t\t\" class \"+testStrings[i]+\" implements AutoCloseable{\\n\"+\n\t\t\" \"+testStrings[i]+\"() {\\n\"+\n\t\t\" //System.out.println(\\\"\"+testStrings[i]+\"\\\");\\n\"+\n\t\t\" }\\n\"+\n\t\t\" public String toString(){\\n\"+\n\t\t\" return \\\"\"+testStrings[i]+\"\\\";\\n\"+\n\t\t\" }\\n\"+\n\t\t\" public void close() throws Exception{\\n\"+\n\t\t\" s\"+i+\" = true;\\n\"+\n\t\t\"\t//System.out.println(\\\"closing \"+testStrings[i]+\"\\\");\\n\"+\n\t\t\" }\\n\"+\n\t\t\" }\\n\"\n\t\t);\n\t }\n\t\tbuilder.append(\n\t\t\" public \"+className+\"() {\\n\"+\n\t\t\" boolean flag = false;\\n\"+\n\t\t\" try(\\n\"\n\t\t);\n\t for (int i=0; i< testStrings.length-1; i++) {\n\t builder.append(\n\t\t\" \"+testStrings[i]+\" s\"+i+\" = new \"+testStrings[i]+\"();\\n\"\n\t\t);\n\t }\n\t\t// The lastone should not have ';'.\n\t\tint index = testStrings.length-1;\n\t builder.append(\n\t\t\" \"+testStrings[index]+\" s\"+index+\" = new \"+testStrings[index]+\"()\\n\"+\n\t\t\" ){\\n\"\n\t\t);\n\t for (int i=0; i< testStrings.length; i++) {\n\t builder.append(\n\t\t\" if (!s\"+i+\".toString().equals(\\\"\"+testStrings[i]+\"\\\")){\\n\"+\n\t\t\" System.out.println(\\\"Error: mismatch \\\"+s\"+i+\"+\\\" - \"+\n\t\t className+\"$\"+testStrings[i]+\"\\\");\\n\"+\n\t\t\" flag = true;\\n\"+\n\t\t\" }\\n\"\n\t\t);\n\t }\n\t builder.append(\n\t\t\" }catch(Exception e){\\n\"+\n\t\t\" System.out.println(e);\\n\"+\n\t\t\" }\\n\"\n\t\t);\n\n\t for (int i=0; i< testStrings.length; i++) {\n\t builder.append(\n\t\t\" if (!s\"+i+\"){\\n\"+\n\t\t\" System.out.println(\\\"Error: Not closed of \"+testStrings[i]+\"\\\");\\n\"+\n\t\t\" flag = true;\\n\"+\n\t\t\" }\\n\"\n\t\t);\n\t }\n\n\t\tbuilder.append(\n\t\t\" if (!flag){\\n\"+\n\t\t\" System.out.println(\\\"Try-with-resources test passed\\\");\\n\"+\n\t\t\" }else{\\n\"+\n\t\t\" System.out.println(\\\"Try-with-resources test failed\\\");\\n\"+\n\t\t\" }\\n\"+\n\t\t\" }\\n\"+\n\t\t\" public static void main(String[] args) {\\n\"+\n\t\t\" \"+className+\" test = new \"+className+\"();\\n\"+\n\t\t\" }\\n\"+\n\t\t\"}\\n\"\n\t\t);\n\n\t\tSystem.out.println(builder.toString());\n\t\tCompilerAPI compiler = new CompilerAPI(className, builder.toString());\n\t}", "private void createTar() {\n File tgzFile = new File(\".\" + File.separator + Arguments.JRE_DEFAULT_NAME);\n File tgzMd5File = new File(tgzFile.getPath() + \".md5\");\n if (tgzFile.exists()) {\n tgzFile.delete();\n m_logger.debug(\"Removed the old tgz file\");\n }\n if (tgzMd5File.exists()) {\n tgzMd5File.delete();\n m_logger.debug(\"Removed the old md5 file\");\n }\n\n try {\n m_logger.debug(\"Starting zip\");\n tgzFile.createNewFile();\n TarArchiveOutputStream tgzStream = new TarArchiveOutputStream(new GZIPOutputStream(\n new BufferedOutputStream(new FileOutputStream(tgzFile))));\n addFileToTarGz(tgzStream, m_jreLocation, \"\");\n tgzStream.finish();\n tgzStream.close();\n m_logger.debug(\"Finished zip, starting md5 hash\");\n\n Platform.runLater(() -> fileLabel.setText(\"Generating md5 hash\"));\n String md5Hash = MainApp.hashFile(tgzFile);\n OutputStream md5Out = new BufferedOutputStream(new FileOutputStream(tgzMd5File));\n md5Out.write(md5Hash.getBytes());\n md5Out.flush();\n md5Out.close();\n m_logger.debug(\"Finished md5 hash, hash is \" + md5Hash);\n final boolean interrupted = Thread.interrupted();\n\n // Show the connect roboRio screen\n Platform.runLater(() -> {\n if (!interrupted) {\n m_args.setArgument(Arguments.Argument.JRE_TAR, tgzFile.getAbsolutePath());\n moveNext(Arguments.Controller.CONNECT_ROBORIO_CONTROLLER);\n }\n });\n } catch (IOException | NoSuchAlgorithmException e) {\n m_logger.error(\"Could not create the tar gz file. Do we have write permissions to the current working directory?\", e);\n showErrorScreen(e);\n }\n }", "@Test\n\tpublic void test03JavaxActivationJavaxImageIOAsSystemPackageExtra()\n\t\t\tthrows Exception {\n\t\tfinal Map<String, String> launchArgs = new HashMap<String, String>();\n\t\tlaunchArgs.put(\"org.osgi.framework.system.packages.extra\",\n\t\t\t\t\"javax.imageio,javax.imageio.metadata\");\n\t\tstartFramework(launchArgs);\n\t\tfinal Bundle bundle = installAndStartBundle(\"javax.activation_1.1.0.v201211130549.jar\");\n\t\tassertBundleResolved(bundle);\n\t\tstopFramework();\n\t}", "private JavaRuntimeMock(String resource) {\n\n\t\t// open test resource for reading\n\t\ttry (InputStream is = TestUtils.getResourceAsStream(resource)) {\n\t\t\tDataInputStream dis = new DataInputStream(new GZIPInputStream(is));\n\n\t\t\t// read compressed class definitions\n\t\t\tint numClassDefs = dis.readInt();\n\t\t\tfor (int c = 0; c < numClassDefs; c++) {\n\t\t\t\tClassDef classDef = ClassDefUtils.read(dis);\n\t\t\t\tString className = classDef.getClassName();\n\t\t\t\tclassDefs.put(className, classDef);\n\t\t\t\tString packageName = classDef.getPackageName();\n\t\t\t\tpackageNames.add(packageName);\n\t\t\t}\n\n\t\t\t// read excluded class names\n\t\t\tint numExcludedClassNames = dis.readInt();\n\t\t\tfor (int i = 0; i < numExcludedClassNames; i++) {\n\t\t\t\tString className = dis.readUTF();\n\t\t\t\texcludedClassNames.add(className);\n\t\t\t\tString packageName = getPackageName(className);\n\t\t\t\tpackageNames.add(packageName);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tthrow new TestDataException(e);\n\t\t}\n\t}", "public String automate(AutomatorRequest req) throws Exception {\n generateJAXBClasses(req.getSourceArgs());\n\n // 2. Generate JAXB class files from target schema.\n\n generateJAXBClasses(req.getTargetArgs());\n\n // 3. Compile\n Compiler compiler = new Compiler();\n List<String> fileNames = compiler.getFileNames(req.getGeneratedDir());\n\n compiler.compile(req.getCompiledDir(), fileNames.toArray(new String[0]));\n\n // 4. create JAR\n new JarMaker().createJar(req.getCompiledDir(), req.getJarFile());\n\n // 5. classload the JAR\n JarClassLoader jcl = new JarClassLoader();\n jcl.add(req.getJarFile());\n\n Object srcObject = null;\n // 6. Load source XML instance.\n if (req.srcFormat == FORMAT.XML) {\n JAXBContext context = JAXBContext.newInstance(req.getSourcePkg(), jcl);\n\n Unmarshaller unMarshaller = context.createUnmarshaller();\n srcObject = unMarshaller.unmarshal(new StreamSource(new StringReader(req.sourceInstance)), Class.forName(req\n .getSourcePkg() + \".\" + req.srcRoot, true, jcl));\n if (JAXBElement.class.isInstance(srcObject)) {\n srcObject = ((JAXBElement<?>) srcObject).getValue();\n }\n } else if (req.srcFormat == FORMAT.JSON) {\n ObjectMapper mapper = new ObjectMapper();\n srcObject = mapper.readValue(new StringReader(req.sourceInstance), Class.forName(req.getSourcePkg()\n + \".\"\n + req.srcRoot, true, jcl));\n } else {\n return \"Flat file support is yet to be implemented\";\n }\n // 7. Instantiate target type & update mapping\n Object targetObject = JclObjectFactory.getInstance().create(jcl, req.getTargetPkg() + \".\" + req.tgtRoot);\n\n // 7.5 Mappings\n mpg = new Properties();\n mpg.load(FileUtils.openInputStream(new File(req.getMappingFile())));\n\n tools = new Properties();\n tools.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"operations.properties\"));\n\n for (Object key : mpg.keySet()) {\n String destProperty = (String) key;\n handleMapping(destProperty, srcObject, targetObject);\n }\n\n if (req.destFormat == FORMAT.JSON) {\n // 8. To JSON\n ObjectMapper mpr = new ObjectMapper();\n String json = mpr.writerWithDefaultPrettyPrinter().writeValueAsString(targetObject);\n System.out.println(json);\n return json;\n } else if (req.destFormat == FORMAT.XML) {\n JAXBContext context = JAXBContext.newInstance(req.getTargetPkg(), jcl);\n\n Marshaller marshaller = context.createMarshaller();\n StringWriter writer = new StringWriter();\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n marshaller.marshal(targetObject, writer);\n String xml = writer.toString();\n System.out.println(xml);\n return xml;\n } else {\n return \"Flat file support is yet to be implemented\";\n }\n }", "public static void main (String[] args) {import java.util.*;%>\n//&&&staticSymbol&&&<%import org.eclipse.emf.codegen.ecore.genmodel.*;%>\n//&&&staticSymbol&&&<%\n\n/**\n * Copyright (c) 2002-2010 IBM Corporation and others.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors:\n * IBM - Initial API and implementation\n */\n\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nGenPackage genPackage = (GenPackage)((Object[])argument)[0]; GenModel genModel=genPackage.getGenModel(); /* Trick to import java.util.* without warnings */Iterator.class.getName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nboolean isInterface = Boolean.TRUE.equals(((Object[])argument)[1]); boolean isImplementation = Boolean.TRUE.equals(((Object[])argument)[2]);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nString publicStaticFinalFlag = isImplementation ? \"public static final \" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%include(\"../Header.javajetinc\");%>\n//&&&staticSymbol&&&<%\nif (isInterface || genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getReflectionPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getClassPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EClass\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EObject\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genPackage.hasJavaLangConflict() && !genPackage.hasInterfaceImplConflict() && !genPackage.getClassPackageName().equals(genPackage.getInterfacePackageName())) genModel.addImport(genPackage.getInterfacePackageName() + \".*\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.markImportLocation(stringBuffer);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isInterface) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * The <b>Factory</b> for the model.\n//&&&staticSymbol&&& * It provides a create method for each non-abstract class of the model.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&&<%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @see <%\n//&&&staticSymbol&&&=genPackage.getQualifiedPackageInterfaceName()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * An implementation of the model <b>Factory</b>.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public class <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.impl.EFactoryImpl\")\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%> implements <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public interface <%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EFactory\")\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&{\n//&&&staticSymbol&&&<%\nif (genModel.hasCopyrightField()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.String\")\n//&&&staticSymbol&&&%> copyright = <%\n//&&&staticSymbol&&&=genModel.getCopyrightFieldLiteral()\n//&&&staticSymbol&&&%>;<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation && (genModel.isSuppressEMFMetaData() || genModel.isSuppressInterfaces())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> eINSTANCE = init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isInterface && genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> INSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isInterface && !genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> eINSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates the default factory implementation.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&<%\nString factoryType = genModel.isSuppressEMFMetaData() ? genPackage.getFactoryClassName() : genPackage.getImportedFactoryInterfaceName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> init()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> = (<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EPackage\")\n//&&&staticSymbol&&&%>.Registry.INSTANCE.getEFactory(<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%>.eNS_URI);\n//&&&staticSymbol&&&\t\t\tif (the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> != null)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception exception)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.plugin.EcorePlugin\")\n//&&&staticSymbol&&&%>.INSTANCE.log(exception);\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryClassName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates an instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tsuper();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic EObject create(EClass eClass)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eClass.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genClass.getClassifierID()\n//&&&staticSymbol&&&%>: return <%\n//&&&staticSymbol&&&*%%storeSymbol%%*0\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The class '\" + eClass.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (!genPackage.getAllGenDataTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic Object createFromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convertToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genClass.isDynamic()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = <%\n//&&&staticSymbol&&&=genClass.getCastFromEObject()\n//&&&staticSymbol&&&%>super.create(<%\n//&&&staticSymbol&&&=genClass.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = new <%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%>()<%\nif (genModel.isSuppressInterfaces() && !genPackage.getReflectionPackageName().equals(genPackage.getInterfacePackageName())) {\n//&&&staticSymbol&&&%>{}<%\n}\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%>String <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>literal<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getCreatorBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(literal);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + literal + \"' is not a valid enumerator of '\" + <%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(literal); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(literal))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null && <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(result)<%\n} else {\n//&&&staticSymbol&&&%>result<%\n}\n//&&&staticSymbol&&&%>, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null || <%\n}\n//&&&staticSymbol&&&%>exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(literal);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn ((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal)).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (!genPackage.isDataTypeConverters() && genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(initialValue);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + initialValue + \"' is not a valid enumerator of '\" + eDataType.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.getObjectInstanceClassName().equals(genBaseType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(initialValue); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(initialValue))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\nif (!genItemType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = null;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType() && !genDataType.getObjectInstanceClassName().equals(genMemberType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (result != null && <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(eDataType, result, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (result != null || exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getConverterBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genBaseType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedFactoryInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\tif (instanceValue.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = instanceValue.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : instanceValue)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getQualifiedInstanceClassName().equals(genDataType.getQualifiedInstanceClassName())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (genMemberType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue).<%\n//&&&staticSymbol&&&=genMemberType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>());\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) { genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName());\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && (genDataType.getItemType() != null || genDataType.isUncheckedCast()) && (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else { final String singleWildcard = genModel.useGenerics() ? \"<?>\" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%> list = (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%>)instanceValue;\n//&&&staticSymbol&&&\t\tif (list.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = list.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : list)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue)<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+eDataType.getName());\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>(<%\n}\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genClass.hasFactoryInterfaceCreateMethod()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>' corresponding the given literal.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param literal a literal of the data type.\n//&&&staticSymbol&&&\t * @return a new instance value of the data type.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(String literal);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a literal representation of an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param instanceValue an instance value of the data type.\n//&&&staticSymbol&&&\t * @return a literal representation of the instance value.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tString convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> instanceValue);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!isImplementation && !genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns the package supported by this factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return the package supported by this factory.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>)getEPackage();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @deprecated\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Deprecated\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> getPackage()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&} //<%\n//&&&staticSymbol&&&*%%storeSymbol%%*1\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.emitSortedImports();\n//&&&staticSymbol&&&%>\n\n}", "@Test\n public void source8() throws Exception {\n ImmutableList<String> options = (GeneratedAnnotationsTest.isJdk9OrLater()) ? ImmutableList.of(\"--release\", \"8\") : ImmutableList.of(\"-source\", \"8\", \"-target\", \"8\");\n String generated = runProcessor(options, null);\n assertThat(generated).contains(GeneratedAnnotationsTest.JAVAX_ANNOTATION_GENERATED);\n assertThat(generated).doesNotContain(GeneratedAnnotationsTest.JAVAX_ANNOTATION_PROCESSING_GENERATED);\n }", "private void createSupportFiles(@NonNull final CommandLineRunner launcher,\n @NonNull final Map<String, String> env)\n throws IOException, InterruptedException, LoggedErrorException {\n File rawFolder = new File(mResOutputDir, SdkConstants.FD_RES_RAW);\n\n SourceSearcher searcher = new SourceSearcher(\n Collections.singletonList(rawFolder), EXT_BC);\n FileGatherer fileGatherer = new FileGatherer();\n searcher.search(fileGatherer);\n\n WaitableExecutor<Void> mExecutor = new WaitableExecutor<Void>();\n\n for (final File bcFile : fileGatherer.getFiles()) {\n String name = bcFile.getName();\n final String objName = name.replaceAll(\"\\\\.bc\", \".o\");\n final String soName = \"librs.\" + name.replaceAll(\"\\\\.bc\", \".so\");\n\n for (final Abi abi : ABIS) {\n if (mAbiFilters != null && !mAbiFilters.contains(abi.mDevice)) {\n continue;\n }\n\n // make sure the dest folders exist\n final File objAbiFolder = new File(mObjOutputDir, abi.mDevice);\n if (!objAbiFolder.isDirectory() && !objAbiFolder.mkdirs()) {\n throw new IOException(\"Unable to create dir \" + objAbiFolder.getAbsolutePath());\n }\n\n final File libAbiFolder = new File(mLibOutputDir, abi.mDevice);\n if (!libAbiFolder.isDirectory() && !libAbiFolder.mkdirs()) {\n throw new IOException(\"Unable to create dir \" + libAbiFolder.getAbsolutePath());\n }\n\n mExecutor.execute(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n File objFile = createSupportObjFile(bcFile, abi, objName, objAbiFolder,\n launcher, env);\n createSupportLibFile(objFile, abi, soName, libAbiFolder, launcher, env);\n return null;\n }\n });\n }\n }\n\n mExecutor.waitForTasksWithQuickFail(true /*cancelRemaining*/);\n }", "@Test\n\tpublic void test02JavaxActivationJavaxImageIOAsSystemPackageExtraWithBootdelegation()\n\t\t\tthrows Exception {\n\t\tfinal Map<String, String> launchArgs = new HashMap<String, String>();\n\t\tlaunchArgs.put(\"org.osgi.framework.system.packages.extra\",\n\t\t\t\t\"javax.imageio,javax.imageio.metadata\");\n\t\tlaunchArgs.put(\"org.osgi.framework.bootdelegation\",\n\t\t\t\t\"javax.imageio,javax.imageio.metadata\");\n\t\tstartFramework(launchArgs);\n\t\tfinal Bundle bundle = installAndStartBundle(\"javax.activation_1.1.0.v201211130549.jar\");\n\t\tassertBundleResolved(bundle);\n\t\tstopFramework();\n\t}", "public void run() throws Exception {\n\t\tJavaCompiler compiler = ToolProvider.getSystemJavaCompiler();\n\t\tStandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null);\n\t\tPath tempFolder = Files.createTempDirectory(\"gwt-jackson-apt-tmp\", new FileAttribute[0]);\n\t\tfileManager.setLocation(StandardLocation.CLASS_OUTPUT, Arrays.asList(tempFolder.toFile()));\n\t\tfileManager.setLocation(StandardLocation.SOURCE_OUTPUT, Arrays.asList(tempFolder.toFile()));\n\t\tCompilationTask task = compiler.getTask(\n\t\t\t\tnew PrintWriter(System.out), \n\t\t\t\tfileManager, \n\t\t\t\tnull, \n\t\t\t\tnull, \n\t\t\t\tnull, \n\t\t\t\tfileManager.getJavaFileObjects(\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicTest.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicBaseInterface.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicBaseClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicChildClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicChildClass2.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/SecondPolymorphicBaseClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/SecondPolymorphicChildClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/SimpleGenericBeanObject.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicGenericClass.java\")));\n\n\n\t\ttask.setProcessors(Arrays.asList(new ObjectMapperProcessor()));\n\t\ttask.call();\n\t}", "public static void main(String[] args) {\r\n\t\tSPECCompressCountingStarter sccs = new SPECCompressCountingStarter();\r\n\t\tsccs.runAll();\r\n\t}", "public static void main(String[] args) {\n\t\n\tList<Class<?>> test_classes = new ArrayList<Class<?>>(); //List of loaded classes\n\tList<String> class_names = new ArrayList<String>(); \n\tString[] jar_pathes = new String[args.length -1];\n\tSystem.arraycopy(args, 0, jar_pathes, 0, args.length-1);\n\t\n\tfor (String jar_path : jar_pathes) {\t\n\t\ttry {\n\t\t\tJarFile jarFile = new java.util.jar.JarFile(jar_path);\n\t\t\tEnumeration<JarEntry> jar_entries_enum = jarFile.entries();\n\t\t\t\n\t\t\tURL[] urls = { new URL(\"jar:file:\" + jar_pathes[0]+\"!/\") };\n\t\t\tURLClassLoader cl = URLClassLoader.newInstance(urls);\n\t\t\t\n\t\t\twhile (jar_entries_enum.hasMoreElements()) {\n\t\t JarEntry jar_entry = (JarEntry) jar_entries_enum.nextElement();\n\t\t if(jar_entry.isDirectory() || !jar_entry.getName().endsWith(\".class\")) {\n\t\t \tcontinue;\n\t\t }\n\n\t\t\t String className = jar_entry.getName().substring(0,jar_entry.getName().length()-6); //-6 == len(\".class\")\n\t\t\t className = className.replace('/', '.');\n\t\t\t \n\t\t\t Class<?> c = cl.loadClass(className);\n\t\t\t if (TestCase.class.isAssignableFrom(c) || has_annotations(c)){ \n\t\t\t \ttest_classes.add(c);\n\t\t\t \tclass_names.add(className);\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tjarFile.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t}\n\t\n\tif (test_classes.isEmpty())\n\t{\n\t\tSystem.err.println(\"There is nothing to test.\");\n\t\tSystem.exit(1);\n\t}\n\telse{\n\t\tSystem.out.println(Arrays.toString(class_names.toArray()));\n\t\t\n\tJUnitCore runner = new JUnitCore();\n\tCustomListener custom_listener = new CustomListener();\n\tcustom_listener.reporter = new Reporter(args[args.length-1]);\n\trunner.addListener(custom_listener);\n\trunner.run(test_classes.toArray(new Class[test_classes.size()]));\n\t\t}\n\t}", "@BeforeClass\n public static void setup() throws Exception{\n byte[] jar = JarBuilder.buildJarForMainClassAndExplicitClassNamesAndBytecode(TestResource.class, Collections.emptyMap());\n ABICompiler compiler = ABICompiler.compileJarBytes(jar);\n byte[] optimizedDappBytes = new JarOptimizer(true).optimize(compiler.getJarFileBytes());\n optimizedDappBytes = UnreachableMethodRemover.optimize(optimizedDappBytes);\n byte[] data = new CodeAndArguments(optimizedDappBytes, null).encodeToBytes();\n AvmRule.ResultWrapper deployResult = avmRule.deploy(sender, value, data);\n assertTrue(deployResult.getTransactionResult().transactionStatus.isSuccess());\n contract = deployResult.getDappAddress();\n }", "public void testChangeZIPArchive1() throws Exception {\n String externalLib = Util.getOutputDirectory() + File.separator + \"externalLib.abc\";\n IPath projectPath = env.addProject(\"Project\");\n try {\n org.eclipse.jdt.core.tests.util.Util.createJar(new String[] { \"p/X.java\", \"package p;\\n\" + \"public class X {\\n\" + \" public void foo() {\\n\" + \" }\\n\" + \"}\" }, externalLib, \"1.4\");\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n env.addExternalJars(projectPath, new String[] { externalLib });\n //$NON-NLS-1$\n IPath root = env.getPackageFragmentRootPath(projectPath, \"\");\n env.setOutputFolder(projectPath, \"\");\n IPath classY = env.addClass(root, \"q\", \"Y\", \"package q;\\n\" + \"public class Y {\\n\" + \" void bar(p.X x) {\\n\" + \" x.foo();\\n\" + \" }\\n\" + \"}\");\n fullBuild(projectPath);\n expectingNoProblems();\n org.eclipse.jdt.core.tests.util.Util.createJar(new String[] { \"p/X.java\", \"package p;\\n\" + \"public class X {\\n\" + \"}\" }, externalLib, \"1.4\");\n IJavaProject p = env.getJavaProject(projectPath);\n p.getJavaModel().refreshExternalArchives(new IJavaElement[] { p }, null);\n incrementalBuild(projectPath);\n expectingProblemsFor(classY, \"Problem : The method foo() is undefined for the type X [ resource : </Project/q/Y.java> range : <54,57> category : <50> severity : <2>]\");\n } finally {\n new File(externalLib).delete();\n env.removeProject(projectPath);\n }\n }", "@Test\n @Disabled(\"Not work in Java >=9\")\n void printAllClassJars() {\n var sysClassLoader = org.apache.commons.io.FileUtils.class.getClassLoader();\n var urLs = ((URLClassLoader) sysClassLoader).getURLs();\n for (var url : urLs) {\n System.out.println(url.getFile());\n }\n }", "public static void \n main\n (\n String[] args /* IN: command line arguments */\n )\n {\n FileCleaner.init();\n\n try {\n TestJarReaderApp app = new TestJarReaderApp();\n app.run();\n } \n catch (Exception ex) {\n ex.printStackTrace();\n System.exit(1);\n } \n \n System.exit(0);\n }", "public static JARArchive createDefaultJar(Class<?> aClass) {\n JARArchive archive = ShrinkWrap.create(JARArchive.class);\n ClassLoader cl = aClass.getClassLoader();\n\n Set<CodeSource> codeSources = new HashSet<>();\n\n URLPackageScanner.Callback callback = (className, asset) -> {\n ArchivePath classNamePath = AssetUtil.getFullPathForClassResource(className);\n ArchivePath location = new BasicPath(\"\", classNamePath);\n archive.add(asset, location);\n\n try {\n Class<?> cls = cl.loadClass(className);\n codeSources.add(cls.getProtectionDomain().getCodeSource());\n } catch (ClassNotFoundException | NoClassDefFoundError e) {\n e.printStackTrace();\n }\n };\n\n URLPackageScanner scanner = URLPackageScanner.newInstance(\n true,\n cl,\n callback,\n aClass.getPackage().getName());\n\n scanner.scanPackage();\n\n Set<String> prefixes = codeSources.stream().map(e -> e.getLocation().toExternalForm()).collect(Collectors.toSet());\n\n try {\n List<URL> resources = Collections.list(cl.getResources(\"\"));\n\n resources.stream()\n .filter(e -> {\n for (String prefix : prefixes) {\n if (e.toExternalForm().startsWith(prefix)) {\n return true;\n }\n }\n return false;\n })\n .filter(e -> e.getProtocol().equals(\"file\"))\n .map(e -> getPlatformPath(e.getPath()))\n .map(e -> Paths.get(e))\n .filter(e -> Files.isDirectory(e))\n .forEach(e -> {\n try {\n Files.walkFileTree(e, new SimpleFileVisitor<Path>() {\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n if (!file.toString().endsWith(\".class\")) {\n Path location = e.relativize(file);\n archive.add(new FileAsset(file.toFile()), javaSlashize(location));\n }\n return super.visitFile(file, attrs);\n }\n });\n } catch (IOException e1) {\n }\n });\n\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n return archive;\n }", "private CompressionTools() {}", "private void dumpClassBytesToFile ()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int lastSlash =\n\t\t\t\tclassInternalName.lastIndexOf('/');\n\t\t\tfinal String pkg =\n\t\t\t\tclassInternalName.substring(0, lastSlash);\n\t\t\tfinal Path tempDir = Paths.get(\"debug\", \"jvm\");\n\t\t\tfinal Path dir = tempDir.resolve(Paths.get(pkg));\n\t\t\tFiles.createDirectories(dir);\n\t\t\tfinal String base = classInternalName.substring(lastSlash + 1);\n\t\t\tfinal Path classFile = dir.resolve(base + \".class\");\n\t\t\tFiles.write(classFile, stripNull(classBytes));\n\t\t}\n\t\tcatch (final IOException e)\n\t\t{\n\t\t\tInterpreter.log(\n\t\t\t\tInterpreter.loggerDebugJVM,\n\t\t\t\tLevel.WARNING,\n\t\t\t\t\"unable to write class bytes for generated class {0}\",\n\t\t\t\tclassInternalName);\n\t\t}\n\t}", "private void generateClassFiles(ClassTree classtree) {\n String[] packageNames = configuration.classDocCatalog.packageNames();\n for (int packageNameIndex = 0; packageNameIndex < packageNames.length;\n packageNameIndex++) {\n generateClassFiles(configuration.classDocCatalog.allClasses(\n packageNames[packageNameIndex]), classtree);\n }\n }", "public void testWeaveJavaxClassesNo() { runTest(\"weave javax classes - no\");}", "@Override\r\n public void pack() {\r\n super.pack();\r\n JkFileTree.of(this.classDir()).exclude(\"**/*.jar\").zip().to(packer().jarFile(\"lean\"));\r\n distrib();\r\n }", "private void createClassPath() {\n classPath = classFactory.createClassPath();\n }", "@Classpath\n @Incremental\n public abstract ConfigurableFileCollection getFeatureJavaResourceFiles();", "public static void main(final String[] args) { // CSIGNORE\n final boolean success = new DbCreateTool().initAndRun(args, DbToolContext.class);\n System.exit(success ? 0 : 1);\n }", "public static void main(String[] args) {\n\n\t\t// File file=new File(\"./testClasses/binarysearch.java\");\n\t\tCharStream input = null;\n\t\tif (args.length > 0) {\n\t\t\ttry {\n\t\t\t\tinput = CharStreams.fromFileName(args[0]);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(BGSTYLE + RED + BOLD + UNDERLINE\n\t\t\t\t\t\t+ \"THE GIVEN FILE PATH IS WRONG!\" + RESET);\n\t\t\t\tSystem.out.println(YELLOW + BOLD\n\t\t\t\t\t\t+ \"IF EXECUTING THE JAR, CHECK YOUR COMMAND \"\n\t\t\t\t\t\t+ \" java -jar MJCompiler <filePath> \\n\"\n\t\t\t\t\t\t+ \"OTHERWISE CHECK THE MAIN METHOD\" + RESET);\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\n\t\t\ttry {\n\t\t\t\tinput = CharStreams.fromFileName(\"./testFiles/factorial.java\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(BGSTYLE + RED + BOLD + UNDERLINE\n\t\t\t\t\t\t+ \"THE GIVEN FILE PATH IS WRONG!!\" + RESET);\n\t\t\t\tSystem.out.println(YELLOW + BOLD\n\t\t\t\t\t\t+ \"IF EXECUTING THE JAR, CHECK YOUR COMMAND \"\n\t\t\t\t\t\t+ \" java -jar MJCompiler <filePath> \\n\"\n\t\t\t\t\t\t+ \"OTHERWISE CHECK THE MAIN METHOD\" + RESET);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tMiniJavaLexer lexer = new MiniJavaLexer(input);\n\t\tMiniJavaParser parser = new MiniJavaParser(new BufferedTokenStream(\n\t\t\t\tlexer));\n\t\tParseTree tree = parser.program();\n\t\tTrees.inspect(tree, parser);\n\n\t\t// ---------PrintVisitor-------------\n\t\tPrintVisitor pv = new PrintVisitor();\n\t\tpv.visitMiniJava(tree);\n\n\t\t// --------SymbolTableVisitor--------\n\t\tSymbolTableVisitor symbolTableVisitor = new SymbolTableVisitor();\n\t\tSymbolTable visitedST = (SymbolTable) symbolTableVisitor.visit(tree);\n\t\tif (symbolTableVisitor.getErrorFlag()) {\n\t\t\tSystem.err\n\t\t\t\t\t.println(BGSTYLE\n\t\t\t\t\t\t\t+ RED\n\t\t\t\t\t\t\t+ \"THE PROGRAM COTAINS ERRORS! \\n CHECK CONSOLE AND PARSE TREE WINDOW FOR MORE INFO!\");\n\t\t} else {\n\t\t\tvisitedST.printTable();\n\t\t\tvisitedST.resetTable();\n\n\t\t\t// ------TypeCheckVisitor\n\t\t\tTypeCheckVisitor tcv = new TypeCheckVisitor(visitedST);\n\t\t\ttcv.visit(tree);\n\t\t\tif (tcv.getErrorCount() > 0) {\n\t\t\t\tSystem.err.println(\"The Program contains \"\n\t\t\t\t\t\t+ tcv.getErrorCount() + \" Type Errors!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"TypeChecking Done With No Errors!\");\n\t\t\t}\n\t\t}\n\n\t}", "@Test\n\tpublic void testClassAndFileLinks() throws Exception\n\t{\n\t\tFile file = new File(System.getProperty(\"user.dir\"));\n\t\twhile (! file.getName().equals(\"swac-testbed\")) {\n\t\t\tfile = file.getParentFile();\n\t\t\tif (file == null)\n\t\t\t\tAssert.fail(\"Could not find create scenario scripts. Started from \" + System.getProperty(\"user.dir\") + \" and went up\");\n\t\t}\n\t\t\n\t\t// Find swac-assembly dir\n\t\tFile swacParent = file.getParentFile();\n\t\tif (swacParent == null)\n\t\t\tAssert.fail(\"Could not find create scenario scripts, no dir above swac-controller\");\n\t\t\n\t\tFile swacAssembly = new File(swacParent, \"swac-assembly\");\n\t\tif (swacAssembly == null || ! swacAssembly.exists())\n\t\t\tAssert.fail(\"Could not find create scenario scripts, swac-assembly not parallel to swac-controller\");\n\t\t\n\t\t// Find windows and unix creat scenario scripts\n\t\tchar sep = File.separatorChar; \n\t\tFile swacAssemblyBin = new File(swacAssembly.getAbsolutePath() + sep + \"src\" + sep + \"main\" + sep + \"bin\");\n\t\tif (swacAssemblyBin == null || ! swacAssemblyBin.exists())\n\t\t\tAssert.fail(\"Could not find create scenario scripts in swac-assembly/src/main/bin\");\n\t\t\n\t\tFile windowsScript = new File(swacAssemblyBin, \"swac-create-scenario.bat\");\n\t\tif (! windowsScript.exists())\n\t\t\tAssert.fail(\"Could not find windows create scenario script in swac-assembly/src/main/bin/swac-create-scenario.bat\");\n\t\t\n\t\tFile unixScript = new File(swacAssemblyBin, \"new-swac-create-scenario.sh\");\n\t\tif (! unixScript.exists())\n\t\t\tAssert.fail(\"Could not find unix create scenario script in swac-assembly/src/main/bin/new-swac-create-scenario.sh\");\n\n\n\t\t// Read in windows create scenario script, parse out file and class lists.\n\t\tSet<String> winFilesSet = new LinkedHashSet<String>();\n\t\tparseWindowsScript(\"file_name_templates\", windowsScript, winFilesSet);\n\t\tSet<String> winClassSet = new LinkedHashSet<String>();\n\t\tparseWindowsScript(\"file_classes\", windowsScript, winClassSet);\n\t\tAssert.assertEquals(\"For windows create scenario script, num of files != num of classes, file \" + winFilesSet.size() + \", classes \" + winClassSet.size(),\n\t\t\t\t\t\t\twinFilesSet.size(), winClassSet.size());\n\t\tMap<String, String> winFileClassMap = new HashMap<String, String>();\n\t\tcombineToMap(winFilesSet, winClassSet, winFileClassMap);\n\t\t\n\t\t// Read in unix create scenario script, parse out file and class lists. \n\t\t// Adjust some values to align with windows style to allow apple to apples comparisons\n\t\tSet<String> unixFilesSet = new LinkedHashSet<String>();\n\t\tparseUnixScript(\"Files\", unixScript, unixFilesSet);\n\t\tunixFilesSet = adjustUnixFiles(unixFilesSet, new LinkedHashSet<String>());\n\t\tSet<String> unixClassSet = new LinkedHashSet<String>();\n\t\tparseUnixScript(\"Classes\", unixScript, unixClassSet);\n\t\tunixClassSet = adjustUnixClasses(unixClassSet, new LinkedHashSet<String>());\n\t\tAssert.assertEquals(\"For unix create scenario script, num of files != num of classes, file \" + unixFilesSet.size() + \", classes \" + unixClassSet.size(),\n\t\t\t\tunixFilesSet.size(), unixClassSet.size());\n\t\tMap<String, String> unixFileClassMap = new HashMap<String, String>();\n\t\tcombineToMap(unixFilesSet, unixClassSet, unixFileClassMap); \n\n\t\t// Test if the classes in windows and unix scripts match up\n\t\tif (! winClassSet.equals(unixClassSet)) {\n\t\t\tLinkedHashSet<String> uniqueWindowClasses = new LinkedHashSet<String>(winClassSet);\n\t\t\tuniqueWindowClasses.removeAll(unixClassSet);\n\t\t\t\n\t\t\tLinkedHashSet<String> uniqueUnixClasses = new LinkedHashSet<String>(unixClassSet);\n\t\t\tuniqueUnixClasses.removeAll(winClassSet);\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(\"Create scenario script mismatch error between windows and unix. \");\n\t\t\tif(! uniqueWindowClasses.isEmpty()) \n\t\t\t\tsb.append(\"Unique windows class(es): \").append(uniqueWindowClasses).append(\". \");\n\t\t\tif(! uniqueUnixClasses.isEmpty()) \n\t\t\t\tsb.append(\"Unique unix class(es): \").append(uniqueUnixClasses).append(\". \");\n\t\t\t\n\t\t\tSystem.out.println(sb);\n\t\t\tAssert.fail(sb.toString());\n\t\t}\n\t\t\n\t\t// Test if the files in windows and unix scripts match up\n\t\tStringBuilder sb = null;\n\t\tfor (Entry<String, String> winEntry : winFileClassMap.entrySet()) {\n\t\t\tString winFile = winEntry.getValue();\n\t\t\tString unixFile = unixFileClassMap.get(winEntry.getKey());\n\t\t\tif (! winFile.equals(unixFile)) {\n\t\t\t\tif (sb == null) {\n\t\t\t\t\tsb = new StringBuilder();\n\t\t\t\t\tsb.append(\"Create scenario script mismatch error between windows and unix. \");\n\t\t\t\t}\n\t\t\t\tsb.append(\"Different files specified for class '\" + winEntry.getKey() + \"': windows: '\" + winFile + \"', unix: '\" + unixFile + \"'. \");\n\t\t\t}\n\t\t}\n\t\tif (sb != null) {\n\t\t\tSystem.out.println(sb);\n\t\t\tAssert.fail(sb.toString());\n\t\t}\n\t}", "public void execute()\n throws BuildException\n {\n if (_resinHome == null)\n throw new BuildException(\"resinHome is required by jspc\");\n\n if (_rootDirectory == null)\n throw new BuildException(\"rootDirectory is required by jspc\");\n\n File resinJar = new File(_resinHome,\n \"lib\" + File.separatorChar + \"resin.jar\");\n\n if (! resinJar.exists())\n throw new BuildException(\"resinHome '\"\n + _resinHome\n + \"' does not appear to be valid\");\n\n Java java = new Java(this);\n java.setFailonerror(true);\n java.setFork(true);\n java.setJar(resinJar);\n\n List<String> args = new ArrayList<String>();\n args.add(\"jspc\");\n args.add(\"-app-dir\");\n args.add(_rootDirectory.getPath());\n\n for (String arg : args)\n java.createArg().setLine(arg);\n\n log(java.getCommandLine().toString(), _level.intValue());\n\n java.executeJava();\n }", "private void createCache(byte[] buf) throws IOException {\n\t\tByteArrayInputStream bais = null;\n\t\tJarInputStream jis = null;\n\t\tbyte[] buffer = new byte[1024 * 4];\n\t\t\n\t\ttry {\n\t\t\tbais = new ByteArrayInputStream(buf);\n\t\t\tjis = new JarInputStream(bais);\n\t\t\tAttributes attr = jis.getManifest().getMainAttributes();\n\t\t\tmainClassName = attr != null ? attr.getValue(Attributes.Name.MAIN_CLASS) : null;\n\t\t\t\n\t\t\tfor (JarEntry entry = null; (entry = jis.getNextJarEntry()) != null; ) {\n\t\t\t\tString name = entry.getName();\n\t\t\t\t\n\t\t\t\tif (!entry.isDirectory()) {\n\t\t\t\t\tByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n\t\t\t\t\t\n\t\t\t\t\tfor (int n = 0; -1 != (n = jis.read(buffer)); ) {\n\t\t\t\t\t\tbyteStream.write(buffer, 0, n);\n\t\t\t }\n\t\t\t\t\t\n\t\t\t\t\tif (name.endsWith(\".class\")) {\n\t\t\t\t\t\tString className = name.substring(0, name.indexOf('.')).replace('/', '.');\n\t\t\t\t\t\tresources.put(className, byteStream.toByteArray());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresources.put(name, byteStream.toByteArray());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbyteStream.close();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tIOUtils.closeQuietly(jis);\n\t\t\tIOUtils.closeQuietly(bais);\n\t\t}\n\t}", "java.lang.String getOutputjar();", "public static void main(String[] args) {\n\t\tString path = System.getProperty(\"user.dir\") + File.separator + \"src\" + File.separator + \"encodingtest.java\";\n\t\tSystem.out.println(path);\n\t\tFile file = new File(path);\n\t\tif(file.exists()){\n\t\t\ttry {\n\t String s = FileUtils.readFileToString(file, \"GBK\");\n\t System.out.println(\"convert \" + file.getPath());\n\t FileUtils.writeStringToFile(file, s, \"UTF-8\");\n\t } catch (IOException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t\t}else{\n\t\t\tSystem.out.println(\"File not exist. \" + path);\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n String string0 = \".JAR\";\n ClassWriter classWriter0 = new ClassWriter((-2450));\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 1048575, \"?1>nq\\\"Hq%p1,uL\", \"Fj)3/|(;sZXz$\", \".JAR\", (String[]) null, false, false);\n classWriter0.newConst(\".JAR\");\n methodWriter0.visitVarInsn((-1456293090), 475);\n String string1 = \"Signature\";\n ClassReader classReader0 = null;\n try {\n classReader0 = new ClassReader(\"Signature\");\n fail(\"Expecting exception: IOException\");\n \n } catch(Throwable e) {\n //\n // Class not found\n //\n verifyException(\"org.objectweb.asm.jip.ClassReader\", e);\n }\n }", "default void buildMainGenerateCustomRuntimeImage() {\n if (!bach().project().settings().tools().enabled(\"jlink\")) return;\n say(\"Assemble custom runtime image\");\n var image = bach().folders().workspace(\"image\");\n Paths.deleteDirectories(image);\n bach().run(buildMainJLink(image));\n }", "public static void main(String[] args) throws Exception {\n printClassPath();\n int res = ToolRunner.run(new SessionBinning(), args);\n System.exit(res);\n }", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = new String[]{\"-i\", \"-p\", \"src/test/resources/problems_resp.xml\", \"src/test/resources/context.txt\"};\n PrintStream prev = System.out;\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n System.setOut(new PrintStream(bos));\n XpathGenerator.main(args);\n System.setOut(prev);\n System.out.println(bos.toString());\n assertTrue(bos.toString().startsWith(\"/fhir:Bundle[1]\"));\n }", "@Test\n void findSourceJar() {\n Class<?> klass = org.apache.commons.io.FileUtils.class;\n var codeSource = klass.getProtectionDomain().getCodeSource();\n if (codeSource != null) {\n System.out.println(codeSource.getLocation());\n }\n }", "@Timeout(10)\n @TestFactory\n public DynamicContainer generateTestsForAllClasses() throws URISyntaxException {\n List<DynamicNode> tests = new ArrayList<>();\n\n if (structureOracleJSON == null) {\n fail(\"The ClassTest test can only run if the structural oracle (test.json) is present. If you do not provide it, delete ClassTest.java!\");\n }\n\n for (int i = 0; i < structureOracleJSON.length(); i++) {\n JSONObject expectedClassJSON = structureOracleJSON.getJSONObject(i);\n JSONObject expectedClassPropertiesJSON = expectedClassJSON.getJSONObject(JSON_PROPERTY_CLASS);\n\n // Only test the classes that have additional properties (except name and package) defined in the structure oracle.\n if (expectedClassPropertiesJSON.has(JSON_PROPERTY_NAME) && expectedClassPropertiesJSON.has(JSON_PROPERTY_PACKAGE) && hasAdditionalProperties(expectedClassPropertiesJSON)) {\n String expectedClassName = expectedClassPropertiesJSON.getString(JSON_PROPERTY_NAME);\n String expectedPackageName = expectedClassPropertiesJSON.getString(JSON_PROPERTY_PACKAGE);\n ExpectedClassStructure expectedClassStructure = new ExpectedClassStructure(expectedClassName, expectedPackageName, expectedClassJSON);\n tests.add(dynamicTest(\"testClass[\" + expectedClassName + \"]\", () -> testClass(expectedClassStructure)));\n }\n }\n if (tests.size() == 0) {\n fail(\"No tests for classes available in the structural oracle (test.json). Either provide attributes information or delete ClassTest.java!\");\n }\n // Using a custom URI here to workaround surefire rendering the JUnit XML without the correct test names.\n return dynamicContainer(getClass().getName(), new URI(getClass().getName()), tests.stream());\n }", "public void testChangeZIPArchive2() throws Exception {\n IPath projectPath = env.addProject(\"Project\");\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n String internalLib = env.getProject(\"Project\").getLocation().toOSString() + File.separator + \"internalLib.abc\";\n org.eclipse.jdt.core.tests.util.Util.createJar(new String[] { \"p/X.java\", \"package p;\\n\" + \"public class X {\\n\" + \" public void foo() {\\n\" + \" }\\n\" + \"}\" }, internalLib, \"1.4\");\n env.getProject(projectPath).refreshLocal(IResource.DEPTH_INFINITE, null);\n env.addEntry(projectPath, JavaCore.newLibraryEntry(new Path(\"/Project/internalLib.abc\"), null, null));\n //$NON-NLS-1$\n IPath root = env.getPackageFragmentRootPath(projectPath, \"\");\n env.setOutputFolder(projectPath, \"\");\n IPath classY = env.addClass(root, \"q\", \"Y\", \"package q;\\n\" + \"public class Y {\\n\" + \" void bar(p.X x) {\\n\" + \" x.foo();\\n\" + \" }\\n\" + \"}\");\n fullBuild(projectPath);\n expectingNoProblems();\n org.eclipse.jdt.core.tests.util.Util.createJar(new String[] { \"p/X.java\", \"package p;\\n\" + \"public class X {\\n\" + \"}\" }, internalLib, \"1.4\");\n env.getProject(projectPath).refreshLocal(IResource.DEPTH_INFINITE, null);\n incrementalBuild(projectPath);\n expectingProblemsFor(classY, \"Problem : The method foo() is undefined for the type X [ resource : </Project/q/Y.java> range : <54,57> category : <50> severity : <2>]\");\n env.removeProject(projectPath);\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1983180370));\n classWriter0.addType(\"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"\\\"\";\n stringArray0[1] = \"\\\"\";\n classWriter0.newLong(32L);\n stringArray0[2] = \"\";\n stringArray0[3] = \"\\\"\";\n classWriter0.newClass(\"\\\"\");\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1983180370), \"\", \"<T'RwU+).UKJX>\", \"\", stringArray0, true, true);\n methodWriter0.visitAnnotation(\"\", true);\n methodWriter0.visitFieldInsn(1, \"\\\"\", \"char\", \"3<|siktz\");\n Label label0 = new Label();\n label0.toString();\n ByteVector byteVector0 = new ByteVector(1);\n byteVector0.putUTF8(\"Label offset position has not been resolved yet\");\n ByteVector byteVector1 = classWriter0.pool;\n byteVector1.putInt(1);\n methodWriter0.put(byteVector1);\n methodWriter0.signature = \"\";\n methodWriter0.getSize();\n methodWriter0.visitFieldInsn(102, \"char\", \"Code\", \"\");\n methodWriter0.visitTypeInsn(4, \"zaxCQe&RK=9\");\n }", "protected void addJDKToolsJar(ClassPathBuilder cpb) {\n try {\n\n File jdkToolsJar = helper.getJDKToolsJar();\n if (jdkToolsJar.exists()) {\n cpb.addJar(jdkToolsJar);\n } else {\n // on the mac, it happens all the time\n logger.fine(\"JDK tools.jar does not exist at \" + jdkToolsJar);\n }\n } catch (IOException e) {\n throw new Error(e);\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tFile targetFile = new File(\"D:\\\\program\\\\360cse\\\\360Chrome\\\\test.zip\");\n\t\tFile sourceFiles = new File(\"D:\\\\temple\\\\sysMenu-add.html\");\n\t\tboolean flag = compressZip(false, targetFile, sourceFiles);\n\t\tSystem.out.println(flag);\n\t}", "public static void main(String[] args) throws Exception {\n String path = \"D:\\\\下载\\\\openjdk-8u41-src-b04-14_jan_2020.zip\";\n// ioCopy(path);\n nioCopyTest1(path);\n// nioCopyTest2(path);\n// nioCopy3(path);\n }", "@Test\n public void run_main(){\n\n String resource_folder = (new File(\"src/test/resources/\")).getAbsolutePath()+ File.separator ;\n\n String[] args = new String[7];\n args[0] = \"-run\";\n args[1] = resource_folder + \"test_configs/line_ctm.xml\";\n args[2] = \"mytest\";\n args[3] = resource_folder+\"sample_output_request.xml\";\n args[4] = \"temp\";\n args[5] = \"0\";\n args[6] = \"100\";\n\n OTM.main(args);\n\n }", "void compileToJava();", "native void nativeSetJavaTmpDir(String path);", "public void generateByteCode(Optimizer opt) {}", "public static void main(String[] args) throws FileNotFoundException, IOException, ClassNotFoundException {\n\t\tseri(\"/Volumes/HDD/java/test/testfile/objectzhu\");\n\t\tread(\"/Volumes/HDD/java/test/testfile/objectzhu\");\n\t}", "@PostConstruct // bcoz of java 9 and higher version i need to download jar file\r\n\tpublic void doMyStartupStuff() {\r\n\t\tSystem.out.println(\">> TennisCoach: inside of doMyStrtupStuff()\");\r\n\t}", "private static void makeJar(String jarPath, String classPath) throws IOException {\n File jarFile = new File(jarPath);\n File parent = jarFile.getParentFile();\n if (parent != null) {\n parent.mkdirs();\n }\n jarFile.createNewFile();\n String newClassPath = classPath.substring(classPath.indexOf(\"tmp/\") + 4);\n FileOutputStream fout = new FileOutputStream(jarFile);\n Manifest manifest = new Manifest();\n manifest.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, \"1.0\");\n JarOutputStream jarOut = new JarOutputStream(fout, manifest);\n jarOut.putNextEntry(new ZipEntry(newClassPath));\n FileInputStream fit = new FileInputStream(classPath);\n BufferedInputStream bis = new BufferedInputStream(fit);\n byte[] buff = new byte[10000];\n int bytesRead;\n while ((bytesRead = bis.read(buff)) != -1) {\n jarOut.write(buff, 0, bytesRead);\n }\n jarOut.closeEntry();\n jarOut.close();\n fout.close();\n }", "private void copyNGClientJar(File file, File targetLibDir) throws IOException\n\t{\n\t\tFile dest = new File(targetLibDir, file.getName());\n\t\tZipInputStream zin = new ZipInputStream(new FileInputStream(file));\n\t\tZipOutputStream zout = new ZipOutputStream(new FileOutputStream(dest));\n\t\tbyte[] buf = new byte[1024];\n\n\t\tZipEntry entry = zin.getNextEntry();\n\t\twhile (entry != null)\n\t\t{\n\t\t\tString name = entry.getName();\n\t\t\tboolean toBeDeleted = false;\n\t\t\tfor (String f : EXCLUDE_FROM_NG_JAR)\n\t\t\t{\n\t\t\t\tif (name.startsWith(f))\n\t\t\t\t{\n\t\t\t\t\ttoBeDeleted = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!toBeDeleted)\n\t\t\t{\n\t\t\t\t// Add ZIP entry to output stream.\n\t\t\t\tzout.putNextEntry(new ZipEntry(name));\n\t\t\t\t// Transfer bytes from the ZIP file to the output file\n\t\t\t\tint len;\n\t\t\t\twhile ((len = zin.read(buf)) > 0)\n\t\t\t\t{\n\t\t\t\t\tzout.write(buf, 0, len);\n\t\t\t\t}\n\t\t\t}\n\t\t\tentry = zin.getNextEntry();\n\t\t}\n\t\t// Close the streams\n\t\tzin.close();\n\t\t// Compress the files\n\t\t// Complete the ZIP file\n\t\tzout.close();\n\t}", "@Test\n public void test() throws Exception {\n List<Class<?>> parentClasses =\n ImmutableList.of(\n Parent.class,\n Parent.Inner1.class,\n Parent.Inner2.class,\n Parent.Inner3.class,\n Parent.Inner4.class);\n\n Path parent =\n testForD8()\n .addProgramClasses(parentClasses)\n .setMinApi(parameters.getApiLevel())\n .compile()\n .writeToZip();\n\n Path child =\n testForD8()\n .addProgramClasses(Child.class)\n .addClasspathClasses(parentClasses)\n .setMinApi(parameters.getApiLevel())\n .compile()\n .writeToZip();\n\n // Run the classloader test loading the two dex applications.\n testForD8()\n .addProgramFiles(\n Paths.get(\"build/test/examplesAndroidApi/classes/classloader/Runner.class\"))\n .setMinApi(parameters.getApiLevel())\n .compile()\n .run(\n parameters.getRuntime(),\n \"classloader.Runner\",\n parent.toString(),\n child.toString(),\n Child.class.getTypeName())\n .assertSuccessWithOutput(\"SUCCESS\");\n }", "public static void main(String[] args) throws Exception {\n\n Path rootDir = Paths.get(\".\").normalize().toAbsolutePath();\n if (!rootDir.endsWith(TEST_MODULE_NAME)) {\n rootDir = Paths.get(\".\" + File.separator + TEST_MODULE_NAME).normalize().toAbsolutePath();\n }\n final Path resourcesDir = rootDir.resolve(\"src\").resolve(\"main\").resolve(\"resources\");\n final Path schemaFile = resourcesDir.resolve(\"jaxb2-plugin-test.xsd\");\n final Path bindingFile = resourcesDir.resolve(\"binding-config.xjb\");\n // Use the same dir that the maven plugin uses\n final Path outputDir = rootDir\n .resolve(\"target\")\n .resolve(\"generated-sources\")\n .resolve(\"xjc\");\n\n System.out.println(\"rootDir: \" + rootDir.toAbsolutePath().toString());\n System.out.println(\"schemaFile: \" + schemaFile.toAbsolutePath().toString());\n System.out.println(\"bindingFile: \" + bindingFile.toAbsolutePath().toString());\n System.out.println(\"outputDir: \" + outputDir.toAbsolutePath().toString());\n\n clearDirectory(outputDir);\n\n // Ensure the full path exists\n Files.createDirectories(outputDir);\n\n final String[] xjcOptions = new String[]{\n \"-xmlschema\",\n \"-nv\",\n \"-extension\",\n \"-verbose\",\n// \"-p\", PACKAGE_NAME,\n \"-d\", outputDir.toAbsolutePath().toString(),\n \"-b\", bindingFile.toAbsolutePath().toString(),\n// \"-quiet\",\n schemaFile.toAbsolutePath().toString(), //the source schema to gen classes from\n \"-Ximmutable\",\n \"-Xfluent-builder\",\n \"-generateJavadocFromAnnotations=true\",\n \"-Xclone\",\n // TODO Not sure how to handle the episodes file that group-contract needs\n// \"-Xgroup-contract\",\n };\n\n System.out.println(\"Running XJC with arguments:\");\n Arrays.stream(xjcOptions)\n .map(str -> \" \" + str)\n .forEach(System.out::println);\n\n // Run the xjc code generation process\n final int exitStatus = Driver.run(xjcOptions, System.out, System.out);\n\n if (exitStatus != 0) {\n System.out.print(\"Executing xjc failed\");\n System.exit(1);\n }\n }", "@Test\n\t@Ignore\n\tpublic void test15SunJerseyLoadJacksonClasses() throws Exception {\n\t\ttry {\n\t\t\tfinal Map<String, String> launchArgs = new HashMap<String, String>();\n\t\t\tlaunchArgs.put(\"org.osgi.framework.bootdelegation\", \"sun.,\");\n\t\t\tlaunchArgs\n\t\t\t\t\t.put(\"org.osgi.framework.system.packages.extra\",\n\t\t\t\t\t\t\t\"javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,org.w3c.dom,org.xml.sax\");\n\t\t\tstartFrameworkClean(launchArgs);\n\t\t\tfinal Bundle[] bundles = installAndStartBundles(new String[] {\n\t\t\t\t\t\"org.codehaus.jackson.core_1.6.0.v20101005-0925.jar\",\n\t\t\t\t\t\"org.codehaus.jackson.mapper_1.6.0.v20101005-0925.jar\",\n\t\t\t\t\t\"javax.ws.rs_1.1.1.v20130318-1750.jar\", });\n\t\t\tassertBundlesResolved(bundles);\n\n\t\t\tfinal Bundle bundleUnderTest = installAndStartBundle(\"com.sun.jersey_1.17.0.v20130314-2020.jar\");\n\t\t\tSystem.out.println(bundleUnderTest.getHeaders());\n\t\t\tObject o = bundleUnderTest.adapt(BundleWiring.class);\n\t\t\tSystem.out.println(o);\n\t\t\tBundleWiring w = (BundleWiring) o;\n\t\t\tSystem.out.println(w);\n\t\t\t// TODO check why jackson packages are missing\n\n\t\t\tRunInClassLoader runner = new RunInClassLoader(bundleUnderTest);\n\t\t\tClass<?> clazz = runner\n\t\t\t\t\t.getClass(\"org.codehaus.jackson.map.JsonSerializableWithType\");\n\t\t\tAssert.assertNotNull(clazz);\n\t\t\tAssert.assertEquals(\n\t\t\t\t\t\"org.codehaus.jackson.map.JsonSerializableWithType\",\n\t\t\t\t\tclazz.getName());\n\t\t} finally {\n\t\t\tstopFramework();\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n\t\tLogger.getRootLogger().setLevel(Level.OFF);\n\t\tConfigurationLib configLib = new ConfigurationLib();\n\t\tString binPath = configLib.getTestSuitePath();\n\t\tTestNG testng = new TestNG();\n\t\tList<XmlSuite> suites = new ArrayList<XmlSuite>();\n\t\tXmlSuite mySuite = new XmlSuite();\n\t\tList<XmlClass> xmlClasses = new ArrayList<XmlClass>();\n\t\tXmlTest test = null;\n\t\tString className = null;\n\t\tbinPath = binPath.replace(\"null\", \"\");\n\n\t\tFile dir = new File(binPath);\n\t\tList<File> files = (List<File>) FileUtils.listFiles(dir, TrueFileFilter.INSTANCE, TrueFileFilter.INSTANCE);\n\t\tfor (File f : files) {\n\t\t\ttest = new XmlTest(mySuite);\n\t\t\tclassName = ((f.getCanonicalPath().replace(configLib.getBinaryPath(), \"\")).replace(\"\\\\\", \".\"));\n\t\t\tclassName = StringUtils.removeEnd(className, \".class\");\n\t\t\ttest.setName(className);\n\t\t\txmlClasses.add(new XmlClass(Class.forName(className)));\n\t\t}\n\n\t\ttest.setXmlClasses(xmlClasses);\n\t\tAnnotationTransformerImpl myTransformer = new AnnotationTransformerImpl();\n\t\ttestng.addListener(myTransformer);\n\t\tAlterSuiteImpl alterSuite = new AlterSuiteImpl();\n\t\ttestng.addListener(alterSuite);\n\t\tsuites.add(mySuite);\n\t\ttestng.setXmlSuites(suites);\n\t\tsuiteExec = true;\n\t\ttestng.run();\n\t}", "@Test\n\tpublic void prepSourceFile() throws Exception {\n\t\t\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(\"source/source.txt\"));\n\t\tfor (int i = 0; i < 125; i++) {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"source/small-source.txt\"));\n\t\t\tfor (int j = 0; j < 80000; j++) {\n\t\t\t\tbw.write(br.readLine() + \"\\n\");\t\t\n\t\t\t}\n\t\t\tbr.close();\n\t\t}\n\t\tbw.close();\n\t}", "private Path compileTestClass(\n String packageName, String classname, String classSource, Path destinationDir)\n throws FileCompiler.FileCompilerException {\n // TODO: The use of FileCompiler is temporary. Should be replaced by use of SequenceCompiler,\n // which will compile from source, once it is able to write the class file to disk.\n Path sourceFile;\n try {\n sourceFile = javaFileWriter.writeClassCode(packageName, classname, classSource);\n } catch (RandoopOutputException e) {\n throw new RandoopBug(\"Output error during flaky-test filtering\", e);\n }\n FileCompiler fileCompiler = new FileCompiler();\n fileCompiler.compile(sourceFile, destinationDir);\n return sourceFile;\n }", "@BeforeClass\n\tpublic static void setUpClass() {\n\t\tString resourcesDir = System.getProperty(\"user.dir\") + File.separator + \"src\" +\n File.separator + \"test\" + File.separator + \"resources\";\n\n tsmResources = resourcesDir + File.separator + \"tsm\";\n //testDir = new File(resourcesDir, \"tsm-output\"); \n\t}", "@Override\r\n\tpublic void decompileFromArchive( String archivePath, String packege, String className )\r\n\t{\r\n\t\tstart = System.currentTimeMillis( );\r\n\t\tFile workingDir = new File(\r\n\t\t\t\tJavaDecompilerPlugin.getDefault( ).getPreferenceStore( ).getString( JavaDecompilerPlugin.TEMP_DIR )\r\n\t\t\t\t\t\t+ \"/\" //$NON-NLS-1$\r\n\t\t\t\t\t\t+ System.currentTimeMillis( ) );\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tworkingDir.mkdirs( );\r\n\t\t\tJarClassExtractor.extract( archivePath, packege, className, true, workingDir.getAbsolutePath( ) );\r\n\t\t\tdecompile( workingDir.getAbsolutePath( ), \"\", className ); //$NON-NLS-1$\r\n\t\t}\r\n\t\tcatch ( Exception e )\r\n\t\t{\r\n\t\t\texcList.add( e );\r\n\t\t\t// logExceptions();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tFileUtil.deltree( workingDir );\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void decompile( String root, String packege, String className )\r\n\t{\r\n\t\tlog = new StringBuffer( );\r\n\t\tsource = \"\"; //$NON-NLS-1$\r\n\t\tFile workingDir = new File( root + \"/\" + packege ); //$NON-NLS-1$\r\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream( );\r\n\t\tByteArrayOutputStream errors = new ByteArrayOutputStream( );\r\n\t\tPrintWriter errorsP = new PrintWriter( new OutputStreamWriter( errors ) );\r\n\t\t// errorsP.println(\"\\n\\n\\n/***** DECOMPILE LOG *****\\n\");\r\n\t\tint status = 0;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tstart = System.currentTimeMillis( );\r\n\t\t\terrorsP.println( \"\\tJad reported messages/errors:\" ); //$NON-NLS-1$\r\n\t\t\tProcess p = Runtime.getRuntime( ).exec( buildCmdLine( className ), new String[]{}, workingDir );\r\n\t\t\tStreamRedirectThread outRedirect = new StreamRedirectThread( \"output_reader\", //$NON-NLS-1$\r\n\t\t\t\t\tp.getInputStream( ),\r\n\t\t\t\t\tbos );\r\n\t\t\tStreamRedirectThread errRedirect = new StreamRedirectThread( \"error_reader\", //$NON-NLS-1$\r\n\t\t\t\t\tp.getErrorStream( ),\r\n\t\t\t\t\terrors );\r\n\t\t\toutRedirect.start( );\r\n\t\t\terrRedirect.start( );\r\n\t\t\tstatus = p.waitFor( ); // wait for jad to finish\r\n\t\t\toutRedirect.join( ); // wait until output stream content is fully\r\n\t\t\t// copied\r\n\t\t\terrRedirect.join( ); // wait until error stream content is fully\r\n\t\t\t// copied\r\n\t\t\tif ( outRedirect.getException( ) != null )\r\n\t\t\t\texcList.add( outRedirect.getException( ) );\r\n\t\t\tif ( errRedirect.getException( ) != null )\r\n\t\t\t\texcList.add( errRedirect.getException( ) );\r\n\t\t}\r\n\t\tcatch ( Exception e )\r\n\t\t{\r\n\t\t\texcList.add( e );\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tbos.flush( );\r\n\t\t\t\tbos.close( );\r\n\t\t\t\terrorsP.println( \"\\tExit status: \" + status ); //$NON-NLS-1$\r\n\t\t\t\t// errorsP.print(\" *************************/\");\r\n\t\t\t\terrors.flush( );\r\n\t\t\t\terrorsP.close( );\r\n\t\t\t}\r\n\t\t\tcatch ( Exception e )\r\n\t\t\t{\r\n\t\t\t\texcList.add( e ); // will never get here...\r\n\t\t\t}\r\n\t\t\ttime = System.currentTimeMillis( ) - start;\r\n\t\t}\r\n\r\n\t\tsource = UnicodeUtil.decode( bos.toString( ) );\r\n\r\n\t\tlog = new StringBuffer( errors.toString( ) );\r\n\t\t// logExceptions();\r\n\t\t// result = new DecompiledClassFile(classFile, source.toString());\r\n\t}", "public static void main(String[] args) {\n Map<String, TableInfo> map = TableContext.tables;\n for (TableInfo t : map.values()) {\n createJavaPOFile(t, new MySqlTypeConvertor());\n }\n }", "private java.security.cert.X509Certificate generateJcaObject(com.android.org.bouncycastle.asn1.x509.TBSCertificate r1, byte[] r2) throws java.security.cert.CertificateEncodingException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.generateJcaObject(com.android.org.bouncycastle.asn1.x509.TBSCertificate, byte[]):java.security.cert.X509Certificate, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.generateJcaObject(com.android.org.bouncycastle.asn1.x509.TBSCertificate, byte[]):java.security.cert.X509Certificate\");\n }", "public Path createDynamicFile(Path otherBasePath, String generatedCode, String newClassPackage, String newClassName, String extension) {\n Path packagePath;\n try {\n packagePath = otherBasePath.resolve(newClassPackage.replace(\".\", \"/\"));\n Files.createDirectories(packagePath);\n } catch (IOException e) {\n throw new RuntimeException(String.format(\"Cannot create %s package directory under %s\", newClassPackage, otherBasePath.toString()), e);\n }\n\n // create java file\n Path javaFilePath = packagePath.resolve(newClassName + extension);\n String javaFilePathString = javaFilePath.toAbsolutePath().toString();\n try {\n Files.write(javaFilePath, generatedCode.getBytes(Charset.forName(\"UTF-8\")));\n return javaFilePath;\n } catch (IOException e) {\n throw new RuntimeException(String.format(\"Cannot create form java file %s\", javaFilePathString), e);\n }\n }", "private static Object createStandaloneTester() {\n List<URL> urls = new ArrayList<>();\n for (String path : Splitter.on(':').split(System.getProperty(\"java.class.path\"))) {\n\n // A small hack is needed since we didn't make example application under different groupId and not prefixed\n // the artifactId with something special (cdap- and hive-)\n // Check for io/cdap/cdap\n if (path.contains(\"/io/cdap/cdap/\")) {\n String artifactFile = Paths.get(path).getFileName().toString();\n if (!artifactFile.startsWith(\"cdap-\") && !artifactFile.startsWith(\"hive-\")) {\n continue;\n }\n }\n\n try {\n urls.add(Paths.get(path).toUri().toURL());\n } catch (MalformedURLException e) {\n throw Throwables.propagate(e);\n }\n }\n\n ClassLoader classLoader = new MainClassLoader(urls.toArray(new URL[urls.size()]), null);\n try {\n Class<?> clz = classLoader.loadClass(StandaloneTester.class.getName());\n Constructor<?> constructor = clz.getConstructor(Object[].class);\n return constructor.newInstance((Object) new Object[0]);\n } catch (Exception e) {\n throw Throwables.propagate(e);\n }\n }", "private static void deployStaticHEResources(String targetDir, boolean bootstrappingEnabled) throws URISyntaxException, IOException{\r\n \t\r\n\t\tClassLoader loader = ServiceGenerator.class.getClassLoader();\r\n\t\tURI jniInterfaceFilePath = loader.getResource(Constants.HE_SERVICE_RESOURCES_FOLDER \r\n\t\t\t\t+ Constants.SERVICE_JNI_INTERFACE_FILE_NAME).toURI();\r\n\t\tURI jniInterfaceHeaderFilePath = loader.getResource(Constants.HE_SERVICE_RESOURCES_FOLDER \r\n\t\t\t\t+ Constants.SERVICE_JNI_INTERFACE_HEADER_FILE_NAME).toURI();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tFile origJniInterfaceFile = new File(jniInterfaceFilePath);\r\n\t\tFile newJniInterfaceFile = new File(targetDir + origJniInterfaceFile.getName());\r\n\t\t\r\n\t\tFile origJniInterfaceHeaderFile = new File(jniInterfaceHeaderFilePath);\r\n\t\tFile newJniInterfaceHeaderFile = new File(targetDir + origJniInterfaceHeaderFile.getName());\r\n\t\t\t\t\t\t\r\n\t\t \t\t\r\n\t\tUtils.deployStaticResource(origJniInterfaceFile, newJniInterfaceFile);\r\n\t\tUtils.deployStaticResource(origJniInterfaceHeaderFile, newJniInterfaceHeaderFile);\r\n }", "public boolean generate(Document doc, String templateName, String packge, String cli_src_dir, String l2p_src_dir, String resource, JsonNode bindings_schema) {\n try {\n String bn=templateNameClass(templateName);\n String destinationDir=l2p_src_dir + \"/\" + packge.replace('.', '/') + \"/\";\n String destinationDir2=cli_src_dir + \"/\" + packge.replace('.', '/') + \"/\" + \"client\" + \"/\";\n \n String destination=destinationDir + bn + \".java\";\n String destination2=destinationDir2 + bn + \".java\";\n JavaFile spec=generateBuilderSpecification(doc,bn,templateName,packge, resource, bindings_schema);\n \n boolean val1=saveToFile(destinationDir, destination, spec);\n JavaFile spec2=generateClientLib(doc,bn,templateName,packge+ \".client\", resource, bindings_schema);\n\n boolean val2=saveToFile(destinationDir2, destination2, spec2);\n \n \n return val1 & val2;\n\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n\n }\n }", "String generateRuntimeInitialization();", "private String generateJUnitTestCasesSkeletonCode(List<TestCaseList> testCases, ProductMaster product, String packageName, String refClassName, String destinationDirectory, int nameSource, String testExecutionEngine, String testStepOption) {\n\t\tJCodeModel codeModel = new JCodeModel();\r\n\t\tString message = null;\r\n\t\ttry {\r\n\t\t\tif (testExecutionEngine == null)\r\n\t\t\t\ttestExecutionEngine = TAFConstants.TESTENGINE_SEETEST;\r\n\t\t\tlog.info(\"Test Execution Engine : \" + testExecutionEngine);\r\n\t\t\t\t\r\n\t\t\tJClass junitAfterReference = null;\r\n\t\t\tJClass junitBeforeReference = null;\r\n\t\t\tJClass junitTestReference = null;\r\n\t\t\tJClass junitFixMethodOrderReference = null;\r\n\t\t\tJClass junitMethodSortersReference = null;\r\n\t\t\tjunitAfterReference = codeModel.ref(\"org.junit.After\");\r\n\t\t\tjunitBeforeReference = codeModel.ref(\"org.junit.Before\");\r\n\t\t\tjunitTestReference = codeModel.ref(\"org.junit.Test\");\r\n\t\t\tjunitFixMethodOrderReference = codeModel.ref(\"org.junit.FixMethodOrder\");\r\n\t\t\tjunitMethodSortersReference = codeModel.ref(\"org.junit.runners.MethodSorters\");\r\n\r\n\t\t\tfor (TestCaseList testCase : testCases) {\r\n\r\n\t\t\t\t// 1. Create the class for the test case\r\n\t\t\t\tString testCaseName = null;\r\n\t\t\t\tString classPackageName = null;\r\n\t\t\t\tif (testCase.getTestCaseScriptFileName() == null || testCase.getTestCaseScriptFileName().trim().isEmpty()) {\r\n\t\t\t\t\ttestCaseName = ScriptGeneratorUtilities.getTestCaseClassName(testCase.getTestCaseName(), testCase.getTestCaseId(), testCase.getTestCaseCode(), nameSource);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttestCaseName = testCase.getTestCaseScriptFileName();\r\n\t\t\t\t\tif(testCaseName.contains(\".java\")){\r\n\t\t\t\t\t\ttestCaseName = testCaseName.replace(testCaseName.substring(testCaseName.lastIndexOf(\".\")),\"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (testCase.getTestCaseScriptQualifiedName() == null || testCase.getTestCaseScriptQualifiedName().trim().isEmpty()) {\r\n\t\t\t\t\tclassPackageName = packageName;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tclassPackageName = testCase.getTestCaseScriptQualifiedName();\r\n\t\t\t\t}\r\n\t\t\t\tJDefinedClass testCaseClass = codeModel._class(classPackageName + \".\" + testCaseName);\r\n\t\t\t\tJDocComment classComment = testCaseClass.javadoc();\r\n\t\t\t\tString javadocCommentClass = \"Automation Script for Testcase : \" + testCase.getTestCaseName()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Product \t\t\t: \" + product.getProductDescription()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Testcase ID\t\t: \" + testCase.getTestCaseId()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Testcase Code \t: \" + testCase.getTestCaseCode()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Description \t\t: \" + testCase.getTestCaseDescription()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Test case type \t: \" + testCase.getTestCaseType()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Script Type \t\t: \" + TAFConstants.TESTSCRIPT_TYPE_JUNIT\r\n\t\t\t\t\t\t+ \"\\n\" + \"Test Execution Engine \t: \" + testExecutionEngine\r\n\t\t\t\t\t\t+ \"\\n\" + \"Code generated by TAF on \t: \" + new Date(System.currentTimeMillis());\r\n\t\t\t\tclassComment.append(javadocCommentClass);\r\n\t\t\t\ttestCaseClass.annotate(junitFixMethodOrderReference).param(\"value\", MethodSorters.NAME_ASCENDING);\r\n\r\n\t\t\t\ttestCaseClass = addClassVariablesForTestCaseClass(codeModel, testCaseClass, testExecutionEngine);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (testStepOption == null)\r\n\t\t\t\t\ttestStepOption = \"SINGLE_METHOD\";\r\n\t\t\t\t// 4. Add methods for the test steps of the test case\r\n\t\t\t\t// 4.a Add the setup and tear down methods\r\n\t\t\t\tJMethod setUpMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"setUp\");\r\n\t\t\t\tJDocComment methodComment1 = setUpMethod.javadoc();\r\n\t\t\t\tString commentString = \"Setup method for testcase\";\r\n\t\t\t\tmethodComment1.append(commentString);\r\n\t\t\t\tsetUpMethod = constructSetUpMethodForTestCase(setUpMethod, testExecutionEngine, refClassName, testCaseName);\r\n\t\t\t\tsetUpMethod.annotate(junitBeforeReference);\r\n\t\t\t\t\r\n\t\t\t\tJMethod tearDownMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"tearDown\");\r\n\t\t\t\tJDocComment methodComment2 = tearDownMethod.javadoc();\r\n\t\t\t\tcommentString = \"Teardown method for the testcase\";\r\n\t\t\t\tmethodComment2.append(commentString);\r\n\t\t\t\ttearDownMethod = constructTearDownMethodForTestCase(tearDownMethod, testExecutionEngine);\r\n\t\t\t\ttearDownMethod.annotate(junitAfterReference);\r\n\t\t\t\t\r\n\t\t\t\tList<TestCaseStepsList> testSteps = testCaseService.listTestCaseSteps(testCase.getTestCaseId());\r\n\t\t\t\tif (testSteps == null || testSteps.isEmpty()) {\r\n\t\t\t\t\tlog.debug(\"No steps in the testcase : \" + testCaseName);\r\n\t\t\t\t\tJMethod testCaseMethod = testCaseClass.method(JMod.PUBLIC, void.class, testCaseName + \"_Test\");\r\n\t\t\t\t\ttestCaseMethod.annotate(junitTestReference);\r\n\t\t\t\t\ttestCaseMethod = constructDefaultTestCaseMethodForTestCase(testCaseMethod, testExecutionEngine, testCase);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif(testStepOption.contains(\"SEPARATE_METHOD\")) {\r\n\t\t\t\t\t\tJMethod mainTestStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"mainTest\");\r\n\t\t\t\t\t\tmainTestStepMethod.annotate(junitTestReference);\r\n\t\t\t\t\t\tString stepMethod = \"\";\r\n\t\t\t\t\t\tfor (TestCaseStepsList testStep : testSteps) {\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString testStepName = ScriptGeneratorUtilities.getTestStepMethodName(testCaseName, testStep.getTestStepName(), testStep.getTestStepId(), testStep.getTestStepCode(), 1 );\r\n\t\t\t\t\t\t\tJMethod testStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, testStepName);\r\n\t\t\t\t\t\t\ttestStepMethod = constructTestStepMethodForTestCase(testStepMethod, testExecutionEngine, refClassName, testCaseName, testStepName, testStep);\r\n\t\t\t\t\t\t\tstepMethod = testStepName+\"();\";\r\n\t\t\t\t\t\t\tmainTestStepMethod.body().directStatement(stepMethod);\r\n\t\t\t\t\t\t\tstepMethod = \"\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tJMethod singleTestStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, testCaseName + \"_Test\");\r\n\t\t\t\t\t\tsingleTestStepMethod.annotate(junitTestReference);\r\n\t\t\t\t\t\tfor (TestCaseStepsList testStep : testSteps) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString testStepName = ScriptGeneratorUtilities.getTestStepMethodName(testCaseName, testStep.getTestStepName(), testStep.getTestStepId(), testStep.getTestStepCode(), 1 );\r\n\t\t\t\t\t\t\tsingleTestStepMethod = addTestStepForSingleTestStepMethodForTestCase(singleTestStepMethod, testExecutionEngine, refClassName, testCaseName, testStepName, testStep);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\tFile sourceFile = new File(destinationDirectory);\r\n\t\t\t\tif (!sourceFile.exists()) {\r\n\t\t\t\t\tlog.info(\"Created Directory for source code generation : \" + destinationDirectory);\r\n\t\t\t\t\tsourceFile.mkdirs();\r\n\t\t\t\t}\r\n\t\t\t\tcodeModel.build(sourceFile);\r\n\t\t\t\tString CLASS_PACKAGE_NAME_FOLDER = classPackageName.replace(\".\", File.separator);\r\n\t\t\t\tlog.info(\"CLASS_PACKAGE_NAME_FOLDER : \" + CLASS_PACKAGE_NAME_FOLDER);\r\n\t\t\t\tmessage = sourceFile.getAbsolutePath() + File.separator + CLASS_PACKAGE_NAME_FOLDER + File.separator + testCaseName + \".java\";\r\n\t\t\t}\r\n\t\t} catch (JClassAlreadyExistsException e) {\r\n\t\t\tlog.error(\"Unable to generate testcase ref source code class\", e);\r\n\t\t\tmessage = \"Failed : Unable to generate testcase ref source code class\";\r\n\t\t} catch (IOException io) {\r\n\t\t\tlog.error(\"Unable to create file in file system\", io);\r\n\t\t\tmessage = \"Failed : Unable to create file in file system\";\r\n\t\t}\r\n\t\t\r\n\t\tlog.debug(\"Success : Generated Testcases source code framework.\" );\r\n\t\treturn message;\r\n\r\n\t}", "@Test\r\n public void exportSQLServerDatabaseScriptFromAnnotations() throws Exception\r\n {\r\n Properties props = PropertyLoader.loadProperties(\"./build.properties\");\r\n String classesDirPath = props.getProperty(\"classes.dir\");\r\n SchemaGenerator sgen = new SchemaGenerator(new String[] {\"uk.co.utilisoft.parms.domain\"},\r\n classesDirPath,\r\n new String[] {\".*UnitTest.*\", \".*Test.*\", \".*Interface.*\", \".*\\\\$.*\"});\r\n sgen.generate(Dialect.SQLSERVER, mTestFilePath);\r\n mTestFiles = getSavedFiles(mTestFilePath);\r\n assertTrue(!mTestFiles.isEmpty());\r\n\r\n for (int i = 0; i < mTestFiles.size(); i++)\r\n {\r\n File file = mTestFiles.get(i);\r\n InputStream is = new FileInputStream(file);\r\n long length = file.length();\r\n\r\n if (length > Integer.MAX_VALUE)\r\n {\r\n fail(\"Failed to read file \" + file.getName() + \" because file length \" + length + \" is too long\");\r\n }\r\n\r\n byte[] bytes = new byte[(int)length];\r\n int offset = 0;\r\n int numRead = 0;\r\n\r\n while (offset < bytes.length\r\n && (numRead = is.read(bytes, offset, bytes.length - offset)) >= 0)\r\n {\r\n offset += numRead;\r\n }\r\n\r\n if (offset < bytes.length)\r\n {\r\n fail(\"Failed to finish reading file \" + file.getName());\r\n }\r\n\r\n is.close();\r\n\r\n // test file contains some data\r\n assertNotNull(bytes);\r\n assertTrue(\"File \" + file.getName() + \" contains zero bytes\", bytes.length > 0);\r\n }\r\n }", "@Test(timeout = 4000)\n public void test083() throws Throwable {\n Label label0 = new Label();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"oc[MfnZM[~MHOK iO\");\n ClassWriter classWriter0 = new ClassWriter((-2450));\n classWriter0.newInteger((-2450));\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n classWriter0.newConst(\"Code\");\n String[] stringArray0 = new String[9];\n stringArray0[0] = \"Fj)3/|(;sZXz$\";\n stringArray0[1] = \"Code\";\n stringArray0[2] = \"oc[MfnZM[~MHOK iO\";\n stringArray0[3] = \"~)yCTRxQ#s$y[Ly%\";\n stringArray0[4] = \"Fj)3/|(;sZXz$\";\n stringArray0[5] = \"oc[MfnZM[~MHOK iO\";\n stringArray0[6] = \"Code\";\n stringArray0[7] = \"oc[MfnZM[~MHOK iO\";\n stringArray0[8] = \"Code\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 3, \"\\\".3t\\\"0\", \"~)yCTRxQ#s$y[Ly%\", \"\\\".3t\\\"0\", stringArray0, true, false);\n Label label1 = new Label();\n byte[] byteArray0 = new byte[0];\n label1.resolve(methodWriter0, 168, byteArray0);\n classWriter0.newNameTypeItem(\"Code\", \"Fj)3/|(;sZXz$\");\n Label label2 = new Label();\n methodWriter0.visitFieldInsn(3, \"oc[MfnZM[~MHOK iO\", \"oc[MfnZM[~MHOK iO\", \"*/TEiGBLds&\");\n methodWriter0.visitLdcInsn(\"java/lang/dyn/Dynamic\");\n }", "public static void main(String[] args) {\n new GoldenCopyCreationTool().invokeAndTerminate(args);\n }", "protected abstract void generateClassFiles(ClassDoc[] arr, ClassTree classtree);", "public static void main(String[] args) {\n System.out.println(\" System Properties ===> \"+System.getProperties());\n System.out.println(\" get system enviornment variable classpath ===> \"+System.getenv(\"classpath\"));\n System.out.println(\" get system enviornment variable java_home ===> \"+System.getenv(\"java_home\")); \n System.out.println(\" calling system.gc ===> \"); \n System.gc();\n System.out.println(\"get time in milliseconds ===> \"+System.currentTimeMillis()); \n }", "@Test\n public void testGeneratorWithCustomResolverDirectory() throws Exception\n {\n File jarFile = new File(_tempDir, \"testWithResolverDirectory.jar\");\n Map<String, String> jarEntries = new HashMap<>();\n jarEntries.put(\"custom/CustomResolverFoo.pdl\", \"record CustomResolverFoo {}\");\n createJarFile(jarFile, jarEntries);\n\n // Define the expected output\n Map<String, String> expectedTypeNamesToSourceFileMap = new HashMap<>();\n expectedTypeNamesToSourceFileMap.put(\"NeedsCustomResolver\", PEGASUS_DIR + FS + \"NeedsCustomResolver.pdl\");\n expectedTypeNamesToSourceFileMap.put(\"CustomResolverFoo\", jarFile + \":custom/CustomResolverFoo.pdl\");\n\n testRunGenerator(\"NeedsCustomResolver.pdl\", expectedTypeNamesToSourceFileMap, jarFile.getCanonicalPath(),\n Collections.singletonList(\"custom\"), null);\n }", "@Test\n\tpublic void generateCompressedFile() throws Exception {\n\t\tint sourceRecords = 10000000;\n\t\tint bufferSize = 1000;\n\t\tAssert.isTrue(sourceRecords % bufferSize == 0); // make sure its divisible without the remainder\n\t\tfinal int outerLoop = sourceRecords / bufferSize;\n\t\tfinal CountDownLatch latch = new CountDownLatch(outerLoop);\n\t\t\n\t\tExecutorService executor = Executors.newFixedThreadPool(8);\n\n\t\tfinal FileOutputStream fos = new FileOutputStream(new File(\"source/compressed.txt\"));\n\t\tfinal BufferedReader br = new BufferedReader(new FileReader(\"source/source.txt\"));\n\t\t\n\t\tfinal ArrayBlockingQueue<String> recordQueue = new ArrayBlockingQueue<String>(outerLoop);\n\t\texecutor.execute(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < outerLoop; i++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfos.write(recordQueue.poll(1000, TimeUnit.MILLISECONDS).getBytes());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tlatch.countDown();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tlong start = System.currentTimeMillis();\n\t\tfor (int i = 0; i < outerLoop; i++) {\n\t\t\tStringBuffer buffer = new StringBuffer(bufferSize * 230);\n\t\t\tfor (int j = 0; j < bufferSize; j++) {\n\t\t\t\tString line = br.readLine();\n\t\t\t\tbuffer.append(line + \"\\n\");\n\t\t\t}\n\t\t\tfinal String bufferString = buffer.toString();\n\t\t\t\n\t\t\texecutor.execute(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString compressedRecord = compressRecord(bufferString) + \"\\n\";\n\t\t\t\t\t\trecordQueue.offer(compressedRecord);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t}\n\n\t\tlatch.await();\n\t\tlong stop = System.currentTimeMillis();\n\t\tSystem.out.println(\"Compressed and written \" + sourceRecords + \" records in \" + (stop - start) + \" milliseconds\");\n\t\tfos.close();\n\t\tbr.close();\n\t}", "private void buildClassPath() throws InterruptedException, IOException, CheckedAnalysisException {\n IClassPathBuilder builder = classFactory.createClassPathBuilder(bugReporter);\n\n for (String path : project.getFileArray()) {\n builder.addCodeBase(classFactory.createFilesystemCodeBaseLocator(path), true);\n }\n for (String path : project.getAuxClasspathEntryList()) {\n builder.addCodeBase(classFactory.createFilesystemCodeBaseLocator(path), false);\n }\n\n builder.scanNestedArchives(analysisOptions.scanNestedArchives);\n\n builder.build(classPath, progress);\n\n appClassList = builder.getAppClassList();\n\n if (PROGRESS) {\n System.out.println(appClassList.size() + \" classes scanned\");\n }\n\n // If any of the application codebases contain source code,\n // add them to the source path.\n // Also, use the last modified time of application codebases\n // to set the project timestamp.\n for (Iterator<? extends ICodeBase> i = classPath.appCodeBaseIterator(); i.hasNext();) {\n ICodeBase appCodeBase = i.next();\n\n if (appCodeBase.containsSourceFiles()) {\n String pathName = appCodeBase.getPathName();\n if (pathName != null) {\n project.addSourceDir(pathName);\n }\n }\n\n project.addTimestamp(appCodeBase.getLastModifiedTime());\n }\n\n }", "public static void main(String... args) throws Exception {\n //ScanUtils.getPrivateFields(PkgMain.class);\n// byte[] testPkg = new byte[]{\n// 0x1c,0x2d,0x3e,0x4f,\n// 0x13,0x00,0x00,0x00,\n// 0x06,0x00,0x00,0x00,\n// 0x01,0x00,0x00,0x00,\n// (byte) 0xE1,0x07,0x7,0x0f,\n// 0x16,0x35,0x0b,\n// 0x6e,0x01\n// };\n//\n// PkgTime tmpTestTime = new PkgTime(new Date());\n// PkgMain tmpTestMain = new PkgMain();\n// tmpTestMain.setInfo(tmpTestTime);\n// tmpTestMain.setSerialsNo(6);\n// tmpTestMain.setPyType(1);\n// tmpTestMain.setHeader(0x4f3e2d1c);\n// tmpTestMain.getPackageLength();\n// byte[] tmpbuffer = tmpTestMain.getThisBytes();\n//\n// PkgMain pkgMain = new PkgMain();\n// pkgMain.checkPackageIsReady(testPkg);\n// pkgMain.resolvePackage(testPkg,0);\n// byte[] testPk = new byte[100];\n// ByteBuffer byteBuffer = ByteBuffer.wrap(testPkg,0,testPkg.length);\n// byteBuffer.order(ByteOrder.LITTLE_ENDIAN);\n// byteBuffer.getInt(12);\n// byteBuffer = ByteBuffer.wrap(testPk);\n// byteBuffer.putInt(10);\n// byteBuffer.putInt(16);\n//\n// PackageUtil.resolvePackage(testPkg,0,pkgMain);\n// ScanUtils.setFieldValue(pkgMain,\"header\",0x6c7d8e9f);\n// PkgTime pkgTime = (PkgTime)ScanUtils.makeFieldInst(PkgTime.class);\n// PkgTD pkgTD =new PkgTD();\n// //pkgTD.setTest(pkgTime);\n// pkgMain.setInfo(pkgTD);\n// System.out.println(ScanUtils.getObjectSize(pkgMain));\n// return;\n if(args == null || args.length==0){\n System.out.println(\"arg = s or arg = c\");\n }else{\n if(args[0].equals(\"s\")){\n LabServer labServer = new LabServer();\n labServer.startTest();\n }\n if(args[0].equals(\"c\")){\n LabClient labClient = new LabClient();\n labClient.sendTest();\n }\n }\n }", "public static void startJar(String src, String... parms) throws Exception {\n final String command[] = new String[3 + parms.length];\n command[0] = isSoWindows() ? \"java.exe\" : \"java\";\n command[1] = \"-jar\";\n command[2] = src;\n\n for (int i = 3; i < command.length; i++) {\n command[i] = parms[i - 3];\n }\n\n runProcessInSo(command);\n\n }", "private ByteTools(){}", "public static void main(String[] args) throws IOException {\n\n _project _sc = _project.of();\n //reads from a maven-central jar file\n _downloadArchiveConsumer.of(\"https://search.maven.org/remotecontent?filepath=com/github/javaparser/javaparser-core/3.15.18/javaparser-core-3.15.18-sources.jar\",\n (ZipEntry ze, InputStream is)-> {\n if( ze.getName().endsWith(\".java\")){\n _sc.add( _codeUnit.of(is) );\n }\n });\n System.out.println( _sc.size() );\n\n _project _src = _githubProject.of(\"https://github.com/edefazio/bincat\").load();\n //_sources _src = _sources.of();\n //_downloadArchive _da = _downloadArchive.of(url, (ZipEntry ze,InputStream is)-> {\n // if( ze.getName().endsWith(\".java\")){\n // _src.add( _codeUnit.of(is) );\n // }\n //});\n /*\n try( InputStream inputStream = url.openStream();\n ZipInputStream zis = new ZipInputStream(inputStream) ) {\n\n byte[] buffer = new byte[2048];\n\n while (zis.available() > 0) {\n ZipEntry ze = zis.getNextEntry();\n System.out.println(\"reading \" + ze.getName());\n\n if( ze.isDirectory() ){\n ze.\n } else if( ze.)\n\n if (!ze.isDirectory() && ze.getName().endsWith(\".java\")) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n int len;\n while ((len = zis.read(buffer)) > 0) {\n baos.write(buffer, 0, len);\n }\n try {\n System.out.println(\"adding\" + ze.getName());\n _src.add(_codeUnit.of(baos.toString()));\n } catch (Exception e) {\n throw new _ioException(\"could not read from entry \" + ze.getName());\n }\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n */\n\n System.out.println( \"finished reading \"+ _src.size());\n }", "static public void main(String[] args) throws IOException, ClassNotFoundException\n\t{\n\t\tString loggingPath = \"logging.properties\";\n\t\tSystem.setProperty(\"java.util.logging.config.file\", loggingPath);\n\n\t\tString kbPath = \"/opt/data/nlp/sumo/SumoKB\";\n\t\tSystem.out.printf(\"Kb building%n\");\n\t\tfinal KB kb = new SUMOKb().make(kbPath);\n\t\tSystem.out.printf(\"%nKb built%n\");\n\t\tSystem.out.printf(\"Kb1%n\");\n\t\tdumpKb(kb);\n\t\tmakeClausalForms(kb);\n\n\t\tSystem.out.printf(\"%nKb serializing%n\");\n\t\tSerializer.serializeFile(\"./sumokb.ser\", kb);\n\t\tSerializer.serializeZip(\"./sumo.zip\", \"kb\", kb);\n\t\tSystem.out.printf(\"Kb serialized%n\");\n\n\t\tSystem.out.printf(\"%nKb de-serializing%n\");\n\t\tKB kb2 = (KB) DeSerializer.deserializeZip(\"./sumo.zip\", \"kb\");\n\t\tKB kb3 = (KB) DeSerializer.deserializeFile(\"./sumokb.ser\");\n\t\tSystem.out.printf(\"Kb de-serialized%n\");\n\t\tSystem.out.printf(\"Kb2%n\");\n\t\tdumpKb(kb2);\n\t\tSystem.out.printf(\"Kb3%n\");\n\t\tdumpKb(kb3);\n\n\t\tSystem.out.printf(\"%nDone\");\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException {\n\t\tIOUtils.loadMethodIODeps(\"cb\");\n\t\t\n\t\tFile clazz = new File(args[0]);\n\n\t\tfinal ClassReader cr1 = new ClassReader(new FileInputStream(clazz));\n//\t\tPrintWriter pw = new PrintWriter(new FileWriter(\"z.txt\"));\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t/*ClassWriter cw1 = new ClassWriter(ClassWriter.COMPUTE_FRAMES) {\n\t\t\t@Override\n\t\t\tprotected String getCommonSuperClass(String type1, String type2) {\n\t\t\t\ttry {\n\t\t\t\t\treturn super.getCommonSuperClass(type1, type2);\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t//\t\t\t\t\tSystem.err.println(\"err btwn \" + type1 + \" \" +type2);\n\t\t\t\t\treturn \"java/lang/Unknown\";\n\t\t\t\t}\n\t\t\t}\n\t\t};*/\n\t\t\n\t\tClassWriter cw1 = new ClassWriter(ClassWriter.COMPUTE_MAXS);\n\t\t\n\t\tcr1.accept(new ClassVisitor(Opcodes.ASM5, cw1) {\n\t\t\t@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new JSRInlinerAdapter(super.visitMethod(access, name, desc, signature, exceptions), access, name, desc, signature, exceptions);\n\t\t\t}\n\t\t}, ClassReader.EXPAND_FRAMES);\n\t\t\n\t\tfinal ClassReader cr = new ClassReader(cw1.toByteArray());\n\t\tTraceClassVisitor tcv = new TraceClassVisitor(null,new Textifier(),pw);\n\t\t//ClassWriter tcv = new ClassWriter(cr, ClassWriter.COMPUTE_MAXS);\n\t\tClassVisitor cv = new ClassVisitor(Opcodes.ASM5, tcv) {\n\t\t\tString className;\n\n\t\t\t@Override\n\t\t\tpublic void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {\n\t\t\t\tsuper.visit(version, access, name, signature, superName, interfaces);\n\t\t\t\tthis.className = name;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcr.accept(cv, ClassReader.EXPAND_FRAMES);\n\t\tpw.flush();\n\t}", "public static void main(String args[]) throws Exception {\n obj.runLoadTest1(flag);\n }", "@Test\n\tpublic void test01JavaxActivationJavaxImageIOMissing() throws Exception {\n\t\tstartFramework();\n\t\ttry {\n\t\t\tinstallAndStartBundle(\"javax.activation_1.1.0.v201211130549.jar\");\n\t\t} catch (BundleException ex) {\n\t\t\t// we will expect a resolution failed exception\n\t\t\tAssert.assertTrue(\"Bundle will not resolve\", ex.getMessage()\n\t\t\t\t\t.contains(\"Resolution failed\"));\n\t\t\tAssert.assertTrue(\"Bundle will not resolve\", ex.getMessage()\n\t\t\t\t\t.contains(\"javax.imageio\"));\n\t\t\tAssert.assertTrue(\"Bundle will not resolve\", ex.getMessage()\n\t\t\t\t\t.contains(\"javax.imageio.metadata\"));\n\t\t}\n\t\tstopFramework();\n\t}", "public static void main(String[] args) {\n\t\tgetJredispool();\n\t}", "public static void main(String[] args) {\n\r\n\t\tFile sourceFileListing = new File(\"files/SortedSourceFilePathsTMP.txt\");\r\n\t\tSourceFileIterator sourceFileIterator = new SourceFileIterator(\r\n\t\t\t\tsourceFileListing);\r\n\t\tcountStatements(sourceFileIterator);\r\n\t\tcountClasses(sourceFileIterator);\r\n\t\t// countSystemOuts(sourceFileListing);\r\n\t}", "private void init() {\r\n try {\r\n // extracts just sizes only.\r\n ZipFile zf = new ZipFile(jarFileName);\r\n Enumeration e = zf.entries();\r\n ZipEntry zentry = null;\r\n while (e.hasMoreElements()) {\r\n zentry = (ZipEntry) e.nextElement();\r\n if (debugOn) {\r\n System.out.println(dumpZipEntry(zentry));\r\n }\r\n htSizes.put(zentry.getName(), (int) zentry.getSize());\r\n }\r\n if (zf != null) {\r\n zf.close();\r\n }\r\n zf = null;\r\n e = null;\r\n zentry = null;\r\n // extract resources and put them into the hashtable.\r\n FileInputStream fis = new FileInputStream(jarFileName);\r\n BufferedInputStream bis = new BufferedInputStream(fis);\r\n ZipInputStream zis = new ZipInputStream(bis);\r\n ZipEntry ze = null;\r\n while ((ze = zis.getNextEntry()) != null) {\r\n if (ze.isDirectory()) {\r\n continue;\r\n }\r\n if (debugOn) {\r\n System.out.println(\"ze.getName()=\" + ze.getName() + \",\" + \"getSize()=\" + ze.getSize());\r\n }\r\n int size = (int) ze.getSize();\r\n // -1 means unknown size.\r\n if (size == -1) {\r\n size = ((Integer) htSizes.get(ze.getName())).intValue();\r\n }\r\n byte[] b = new byte[size];\r\n int rb = 0;\r\n int chunk = 0;\r\n while ((size - rb) > 0) {\r\n chunk = zis.read(b, rb, size - rb);\r\n if (chunk == -1) {\r\n break;\r\n }\r\n rb += chunk;\r\n }\r\n // add to internal resource hashtable\r\n htJarContents.put(ze.getName(), b);\r\n b = null;\r\n if (debugOn) {\r\n System.out.println(ze.getName() + \" rb=\" + rb + \",size=\" + size + \",csize=\"\r\n + ze.getCompressedSize());\r\n }\r\n }\r\n if (fis != null) {\r\n fis.close();\r\n }\r\n if (bis != null) {\r\n bis.close();\r\n }\r\n if (zis != null) {\r\n zis.close();\r\n }\r\n fis = null;\r\n bis = null;\r\n zis = null;\r\n ze = null;\r\n } catch (NullPointerException e) {\r\n System.out.println(\"done.\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public static void main(String[] args) {\n\t\textractedMain(JarFolders.SRC_FOLDER);\r\n\t}", "@SuppressWarnings(\"unused\")\n\tpublic static final void main(final String[] args) {\n\t\tfinal ResourceSet resourceSet = new ResourceSetImpl();\n\n\t\tresourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(\"ecore\",\n\t\t\t\tnew EcoreResourceFactoryImpl());\n\t\tresourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(\"genmodel\",\n\t\t\t\tnew EcoreResourceFactoryImpl());\n\t\tresourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()\n\t\t\t\t.put(Resource.Factory.Registry.DEFAULT_EXTENSION, new XMIResourceFactoryImpl());\n\n\t\tEcorePackageImpl.init();\n\t\tGenModelPackageImpl.init();\n\n\t\tfinal String installationRootAsURI = \"file:/C:/Download/eclipse-galileo\";\n\t\tfinal String installationRootAsFile = \"C:\\\\Download\\\\eclipse-galileo\";\n\t\tfinal String workspaceRootAsURI = \"file:/C:/Dokumente und Einstellungen/varro/workspace\";\n\t\tfinal String workspaceRootAsFile = \"C:\\\\Dokumente und Einstellungen\\\\varro\\\\workspace\";\n\n\t\t// Accessing the generated version of ECore.ecore:\n\t\t// \"http://www.eclipse.org/emf/2002/Ecore\" -> mapping to genmodel?\n\t\t// Accessing the file version of ECore.ecore in standalone mode\n\t\tfinal String ecoreJarLocation = installationRootAsURI\n\t\t\t\t+ \"/plugins/org.eclipse.emf.ecore_2.5.0.v200906151043.jar\";\n\t\tURI.createURI(\"archive:\" + ecoreJarLocation + JAR_SEPARATOR + \"/model/Ecore.ecore\", true);\n\t\tURI.createURI(\"archive:\" + ecoreJarLocation + JAR_SEPARATOR + \"/model/Ecore.genmodel\", true);\n\t\t// Accessing the file version of ECore.ecore in Eclipse mode\n\t\tURI.createPlatformPluginURI(\"/org.eclipse.emf.ecore\" + \"/model/Ecore.ecore\", true);\n\t\tURI.createPlatformPluginURI(\"/org.eclipse.emf.ecore\" + \"/model/Ecore.genmodel\", true);\n\n\t\t// Remappings for standalone mode\n\t\tresourceSet.getURIConverter().getURIMap().put(URI.createPlatformPluginURI(\"/org.eclipse.emf.ecore/\", true),\n\t\t\t\tURI.createURI(\"archive:\" + ecoreJarLocation + JAR_SEPARATOR + \"/\", true));\n\t\tresourceSet.getURIConverter().getURIMap().put(URI.createPlatformResourceURI(\"/\", true),\n\t\t\t\tURI.createFileURI(workspaceRootAsFile + \"\\\\\"));\n\n\t\t// Only makes sense in Eclipse mode:\n\t\t// resourceSet.getURIConverter().getURIMap().putAll(EcorePlugin.computePlatformURIMap());\n\n\t\t// (1) Load ECore file (platform:/plugin/projectName/model/file.ecore)\n\t\tfinal URI ecoreModelLocation = URI\n\t\t\t\t.createPlatformResourceURI(\"/org.gervarro.democles.emoflon/model/Moflon.ecore\", true);\n\t\tfinal Resource ecoreModelResource = resourceSet.getResource(ecoreModelLocation, true);\n\t\tEcoreUtil.resolveAll(resourceSet);\n\n\t\tfinal List<EPackage> interestingRootEPackages = new ConverterUtil.EPackageList();\n\t\tinterestingRootEPackages.addAll(\n\t\t\t\tEcoreUtil.<EPackage>getObjectsByType(ecoreModelResource.getContents(), EcorePackage.Literals.EPACKAGE));\n\n\t\tfinal List<EPackage> referencedRootEPackages = new ConverterUtil.EPackageList();\n\t\tfor (final Resource resource : resourceSet.getResources()) {\n\t\t\treferencedRootEPackages.addAll(\n\t\t\t\t\tEcoreUtil.<EPackage>getObjectsByType(resource.getContents(), EcorePackage.Literals.EPACKAGE));\n\t\t}\n\t\treferencedRootEPackages.removeAll(interestingRootEPackages);\n\n\t\t// (2) Prepare GenModel file (platform:/plugin/projectName/model/file.genmodel)\n\t\tfinal GenModel genModel = GenModelFactory.eINSTANCE.createGenModel();\n\n\t\tfinal URI genModelURI = URI.createPlatformResourceURI(\"/org.gervarro.democles.emoflon/model/Moflon.genmodel\",\n\t\t\t\ttrue);\n\t\tfinal Resource genModelResource = resourceSet.createResource(genModelURI);\n\t\tgenModelResource.getContents().add(genModel);\n\n\t\t// (3) Produce GenModel contents from scratch (GenPackages and referred\n\t\t// GenPackages)\n\n\t\tfinal List<GenPackage> referencedGenPackages = new ConverterUtil.GenPackageList();\n\t\tfor (final EPackage ePackage : referencedRootEPackages) {\n\t\t\tfinal URI ecoreFileURI = ePackage.eResource().getURI();\n\t\t\tfinal URI genmodelFileURI = ecoreFileURI.trimFileExtension().appendFileExtension(\"genmodel\");\n\t\t\tfinal Resource tempGenModelResource = resourceSet.getResource(genmodelFileURI, true);\n\t\t\tfinal GenModel tempGenModel = (GenModel) tempGenModelResource.getContents().get(0);\n\t\t\tfinal GenPackage tempGenPackage = tempGenModel.findGenPackage(ePackage);\n\t\t\treferencedGenPackages.add(tempGenPackage);\n\t\t}\n\n\t\tfinal Map<GenPackage, EPackage> genPackageToReferredEPackage = new LinkedHashMap<GenPackage, EPackage>();\n\t\tfinal Map<String, GenPackage> referredEPackageNSURIToGenPackage = new HashMap<String, GenPackage>();\n\t\tfor (final GenPackage genPackage : referencedGenPackages) {\n\t\t\tfinal EPackage referredEPackage = genPackage.getEcorePackage();\n\t\t\tif (referredEPackage != null) {\n\t\t\t\tgenPackageToReferredEPackage.put(genPackage, referredEPackage);\n\t\t\t\treferredEPackageNSURIToGenPackage.put(referredEPackage.getNsURI(), genPackage);\n\t\t\t}\n\t\t}\n\n\t\t// Create resources for all the referenced EPackages\n\t\t// The referencedEPackage is a \"local\" instance of the realEPackage. We\n\t\t// will add the former to a resource that has the same URI of the later.\n\t\tfor (final Map.Entry<GenPackage, EPackage> entry : genPackageToReferredEPackage.entrySet()) {\n\t\t\tfinal GenPackage genPackage = entry.getKey();\n\t\t\tfinal EPackage referredEPackage = entry.getValue();\n\t\t\tfinal EPackage realEPackage = genPackage.getEcorePackage();\n\n\t\t\tif (referredEPackage != realEPackage) {\n\t\t\t\tfinal EPackage eSuperPackage = realEPackage.getESuperPackage();\n\t\t\t\tif (eSuperPackage == null) {\n\t\t\t\t\tfinal URI ecoreURI = realEPackage.eResource().getURI();\n\t\t\t\t\tfinal Resource resource = resourceSet.createResource(ecoreURI);\n\t\t\t\t\tresource.getContents().add(referredEPackage);\n\t\t\t\t} else {\n\t\t\t\t\tfinal GenPackage genSuperPackage = referredEPackageNSURIToGenPackage.get(eSuperPackage.getNsURI());\n\t\t\t\t\tif (genSuperPackage != null) {\n\t\t\t\t\t\tfinal EPackage referredESuperPackage = genSuperPackage.getEcorePackage();\n\t\t\t\t\t\treferredESuperPackage.getESubpackages().add(referredEPackage);\n\t\t\t\t\t\treferencedGenPackages.remove(genPackage);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Initialize the GenModel with all the computed data.\n\t\tgenModel.initialize(interestingRootEPackages);\n\t\tgenModel.getForeignModel().add(\"Moflon.ecore\");\n\t\tgenModel.getUsedGenPackages().addAll(referencedGenPackages);\n\n\t\tfinal String modelPluginID = genModel.eResource().getURI().segment(1);\n\t\tString modelName = genModel.eResource().getURI().trimFileExtension().lastSegment();\n\t\tmodelName = CodeGenUtil.capName(modelName);\n\t\tgenModel.setModelName(modelName);\n\t\tgenModel.setModelPluginID(modelPluginID);\n\t\tgenModel.setModelDirectory(\"/\" + modelPluginID + \"/src\");\n\t\tgenModel.setImporterID(\"org.eclipse.emf.importer.ecore\");\n\t\tgenModel.setComplianceLevel(GenJDKLevel.JDK60_LITERAL);\n\t\tgenModel.reconcile();\n\n\t\t// (4) Save GenModel file\n\t\tfinal Map<Object, Object> genModelSaveOptions = new HashMap<Object, Object>();\n\t\tgenModelSaveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED,\n\t\t\t\tResource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);\n\t\tgenModelSaveOptions.put(Resource.OPTION_LINE_DELIMITER, WorkspaceHelper.DEFAULT_RESOURCE_LINE_DELIMITER);\n\t\ttry {\n\t\t\tgenModelResource.save(genModelSaveOptions);\n\t\t} catch (final IOException e) {\n\t\t\tLogUtils.error(logger, e);\n\t\t}\n\n\t\t// (5) Compile template\n\n\t\t// (6) Invoke code generation\n\t\tfinal DelegatingRegistry generatorRegistry = new DelegatingRegistry();\n\t\tgeneratorRegistry.addDescriptor(\"http://www.eclipse.org/emf/2002/GenModel\", GeneratorAdapterFactory.DESCRIPTOR);\n\n\t\tfinal Generator generator = new Generator(generatorRegistry);\n\t\tgenerator.setInput(genModel);\n\n\t\tgenerator.generate(genModel, GenBaseGeneratorAdapter.MODEL_PROJECT_TYPE, new BasicMonitor.Printing(System.out));\n\t}", "public void run(){\n\t\tGlobal.printer.print(\"\\ngetting resource from \"+apkName+\" ... \");\n\t\tString cmd = \"java -jar \\\"\"+this.apktoolPath+\"\\\" d \\\"\"+this.filePath+\"\\\" -f -o \\\"\"+ this.apkPath+\"\\\"\";\n\t\t//Global.copyDir(this.tmpResPath, this.apkPath);\n\t\ttry {\n\t\t\tGlobal.sysCmd(cmd );//,Global.printer);\n\t\t\tGlobal.printer.print(\"succeed!!\");\n\t\t} catch (Exception e) {\n\t\t\tGlobal.printer.print(\"error!!\");\n\t\t\t//Global.printer.print(e.getMessage());\n\t\t}\n\t}", "public void execute() throws XDocletException {\n\t\tsetPublicId(DD_PUBLICID_20);\n\t\tsetSystemId(DD_SYSTEMID_20);\n\n\t\t// will not work .... dumper.xdt does not exist\n\t\t/*\n\t\tsetTemplateURL(getClass().getResource(\"resources/dumper.xdt\"));\n\t\tsetDestinationFile(\"dump\");\n\t\tSystem.out.println(\"Generating dump\");\n\t\tstartProcess();\n\t\t*/\n\n\n\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_EJB_JAR_XML_TEMPLATE_FILE));\n\t\tsetDestinationFile(\"ejb-jar.xml\");\n\t\tSystem.out.println(\"Generating ejb-jar.xml\");\n\t\tstartProcess();\n\n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_BND_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_BND_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_BND_FILE_NAME);\n startProcess();\n\n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_EXT_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_EXT_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_EXT_FILE_NAME);\n startProcess();\n \n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_EXT_PME_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_EXT_PME_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_EXT_PME_FILE_NAME);\n startProcess();\n\n /*\n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_ACCESS_BEAN_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_ACCESS_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_ACCESS_FILE_NAME);\n startProcess();\n */\n \n\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_MAPXMI_TEMPLATE_FILE));\n\t\tsetDestinationFile(\"backends/\" + getDb() + \"/Map.mapxmi\");\n\t\tSystem.out.println(\"Generating backends/\" + getDb() + \"/Map.mapxmi\");\n\t\tstartProcess();\n \n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_DBXMI_TEMPLATE_FILE));\n setDestinationFile(\"backends/\" + getDb() + \"/\" + getSchema() + \".dbxmi\");\n System.out.println(\"Generating backends/\" + getDb() + \"/\" + getSchema() + \".dbxmi\");\n startProcess();\n \n\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_SCHXMI_TEMPLATE_FILE));\n\t\tsetDestinationFile(\"backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql.schxmi\");\n\t\tSystem.out.println(\"Generating backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql.schxmi\");\n\t\tstartProcess();\n\t\t\n\t\tCollection classes = getXJavaDoc().getSourceClasses();\n\t\tfor (ClassIterator i = XCollections.classIterator(classes); i.hasNext();) {\n\t\t\tXClass clazz = i.next();\n\t\t\t//System.out.print(\">> \" + clazz.getName());\n\t\t\t// check tag ejb:persistence + sub tag table-name\n\t\t\tXTag tag = clazz.getDoc().getTag(\"ejb:persistence\");\n\t\t\tif (tag != null) {\n\t\t\t\tString tableName = tag.getAttributeValue(\"table-name\");\n\t\t\t\t//System.out.println(\"ejb:persistence table-name = '\" + tableName + \"'\");\n\t\t\t\tString destinationFileName = \"backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql_\" + tableName + \".tblxmi\";\n\t\t\t\tSystem.out.println(\"Generating \" + destinationFileName);\n\t\t\t\t\n\t\t\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_TBLXMI_TEMPLATE_FILE));\n\t\t\t\tsetDestinationFile(destinationFileName);\n\t\t\t\tsetHavingClassTag(\"ejb:persistence\");\n\t\t\t\tsetCurrentClass(clazz);\n\t\t\t\tstartProcess();\n\t\t\t}\n\t\t\t// Now, check for relationships \n\t\t\tfor (Iterator methods = clazz.getMethods().iterator(); methods.hasNext();) {\n\t\t\t\tXMethod method = (XMethod)methods.next();\n\t\t\t\tif (method.getDoc().hasTag(\"websphere:relation\")) {\n\t\t\t\t\tString tableName = method.getDoc().getTagAttributeValue(\"websphere:relation\",\"table-name\");\n\t\t\t\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_RELATIONSHIP_TBLXMI_TEMPLATE_FILE));\n\t\t\t\t\tString destinationFileName = \"backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql_\" + tableName + \".tblxmi\";\n\t\t\t\t\tsetDestinationFile(destinationFileName);\n\t\t\t\t\tsetCurrentClass(clazz);\n\t\t\t\t\tsetCurrentMethod(method);\n\t\t\t\t\tSystem.out.println(\"\\tGenerating M-M Relationship table: \" + destinationFileName);\n\t\t\t\t\tstartProcess();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\t\n\n\t\t}\n\n/*\n if (atLeastOneCmpEntityBeanExists()) {\n setTemplateURL(getClass().getResource(WEBSPHERE_SCHEMA_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_SCHEMA_FILE_NAME);\n startProcess();\n }\n*/\n }", "@Test\n public void testScanFile() throws DatabaseException {\n try (Engine instance = new Engine(getSettings())) {\n instance.addFileTypeAnalyzer(new JarAnalyzer());\n File file = BaseTest.getResourceAsFile(this, \"dwr.jar\");\n Dependency dwr = instance.scanFile(file);\n file = BaseTest.getResourceAsFile(this, \"org.mortbay.jmx.jar\");\n instance.scanFile(file);\n assertEquals(2, instance.getDependencies().length);\n\n file = BaseTest.getResourceAsFile(this, \"dwr.jar\");\n Dependency secondDwr = instance.scanFile(file);\n\n assertEquals(2, instance.getDependencies().length);\n }\n }", "public static void main(String[] args) {\n\t\tPath path = Paths.get(\"F:\\\\AccentureMayBatch\\\\JSTLProject\");\r\n\r\n\t\r\n\r\n\t\tSystem.out.format(\"toString: %s%n\", path.toString());\r\n\t\tSystem.out.format(\"getFileName: %s%n\", path.getFileName());\r\n\t\tSystem.out.format(\"getName(0): %s%n\", path.getName(0));\r\n\t\tSystem.out.format(\"getNameCount: %d%n\", path.getNameCount());\r\n\t\tSystem.out.format(\"subpath(0,2): %s%n\", path.subpath(0,2));\r\n\t\tSystem.out.format(\"getParent: %s%n\", path.getParent());\r\n\t\tSystem.out.format(\"getRoot: %s%n\", path.getRoot());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFiles.list(new File(\".\").toPath())\r\n\t\t\t .forEach(System.out::println);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tFiles.walk(new File(\".\").toPath())\r\n\t\t .filter(p -> !p.getFileName()\r\n\t\t .toString().startsWith(\".\"))\r\n\t\t .forEach(System.out::println);\r\n\t\t\t\r\n\t\t\tFiles.lines(new File(\"./src/com/polaris/utility/PathDemo.java\").toPath())\r\n\t\t .map(s -> s.trim())\r\n\t\t .filter(s -> !s.isEmpty())\r\n\t\t .forEach(System.out::println);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//finding path and sub path into string\r\n\t\t Path start = Paths.get(\".\");\r\n\t\t int maxDepth = 5;\r\n\t\t try (Stream<Path> stream = Files.find(start, maxDepth, (path2, attr) -> String.valueOf(path2).endsWith(\".java\"))) \r\n\t\t {\r\n\t\t String joined = stream\r\n\t\t .sorted()\r\n\t\t .map(String::valueOf)\r\n\t\t .collect(Collectors.joining(\"; \"));\r\n\t\t System.out.println(\"Found: \" + joined);\r\n\t\t } catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t \r\n\t\t\r\n\t\tPath source = Paths.get(\"./src/com/polaris/utility/PathDemo.java\");\r\n\t\tPath target = Paths.get(\"F:/yatrabakup\");\r\n\t\t\r\n/*\r\n\t\ttry {\r\n\t\t // Files.copy(source, target);\r\n\t\t} catch(FileAlreadyExistsException fae) {\r\n\t\t fae.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t // something else went wrong\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\t*/\r\n\t\ttry (BufferedReader reader = Files.newBufferedReader(Paths.get(\"f:\\\\yatrabakup\\\\EmployeeData.csv\"))) {\r\n\t\t reader.lines().map(String::toLowerCase).forEach(System.out::println);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "static URL[] getClassPath() throws MalformedURLException {\n List<URL> classPaths = new ArrayList<>();\n\n classPaths.add(new File(\"target/test-classes\").toURI().toURL());\n\n // Add this test jar which has some frontend resources used in tests\n URL jar = getTestResource(\"jar-with-frontend-resources.jar\");\n classPaths.add(jar);\n\n // Add other paths already present in the system classpath\n ClassLoader classLoader = ClassLoader.getSystemClassLoader();\n URL[] urls = URLClassLoader.newInstance(new URL[] {}, classLoader)\n .getURLs();\n for (URL url : urls) {\n classPaths.add(url);\n }\n return classPaths.toArray(new URL[0]);\n }", "@Ignore(\"Disabled due to missing functionality in Oracle XE.\")\n @Test\n public void javaSource() throws FlywayException, SQLException {\n flyway.setLocations(\"migration/dbsupport/oracle/sql/javasource\");\n flyway.migrate();\n flyway.clean();\n }", "@BeforeClass\n public void loadGeneratedClasses() throws IOException, ClassNotFoundException {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n assertNotNull(classLoader, \"Unable to load ClassLoader to find generated JPA Java classes.\");\n \n Enumeration<URL> jpaClassFileURL = classLoader.getResources(\"com/goldstandard/model/\");\n assertTrue(jpaClassFileURL.hasMoreElements(), \"Cannot find com/goldstandard/model/ resource\");\n \n // There should only be one base resource directory\n File jpaClassFileDir = new File(jpaClassFileURL.nextElement().getFile());\n \n generatedClassList = new ArrayList<Class<?>>();\n generatedClassNameMap = new HashMap<String, Class<?>>();\n generatedEnumNameMap = new HashMap<String, Class<?>>();\n \n // Loop through all the class files in the com.goldstandard.model package\n for (File classFile : jpaClassFileDir.listFiles()) {\n Matcher matcher = GENERATED_CLASS_PATTERN.matcher(classFile.getCanonicalPath());\n if (matcher.matches()) {\n String packageName = matcher.group(1).replace('/', '.');\n String className = matcher.group(2);\n \n // Load up the generated class and add it to the data provider\n Class<?> generatedClass = Class.forName(packageName + \".\" + className);\n if (!generatedClass.isEnum()) {\n generatedClassList.add(generatedClass);\n generatedClassNameMap.put(generatedClass.getAnnotation(Table.class).name(), generatedClass);\n } else {\n generatedEnumNameMap.put(className, generatedClass);\n }\n }\n }\n \n assertTrue(generatedClassList.size() > 0, \"Did not find any generated classes\");\n }" ]
[ "0.52682334", "0.5211287", "0.51999533", "0.49297616", "0.47531202", "0.47464347", "0.47239047", "0.47009984", "0.46977624", "0.46855178", "0.4651404", "0.464598", "0.46374074", "0.4620888", "0.46183404", "0.46145707", "0.46144655", "0.46057466", "0.46014246", "0.45887578", "0.45864642", "0.4585491", "0.45558506", "0.4550197", "0.45245832", "0.45152217", "0.45062718", "0.4492557", "0.44710672", "0.4467935", "0.44670388", "0.44591442", "0.44550753", "0.4454837", "0.4427774", "0.4411682", "0.44101506", "0.4409285", "0.43985808", "0.43946534", "0.43926215", "0.4392509", "0.4386799", "0.43784842", "0.43782675", "0.43671787", "0.43629837", "0.43543583", "0.4350109", "0.43105388", "0.43105307", "0.43085903", "0.43008712", "0.42927927", "0.42924115", "0.42822674", "0.42812067", "0.42756748", "0.42711163", "0.42696673", "0.4268017", "0.4267539", "0.42641145", "0.42635843", "0.42559576", "0.42542544", "0.42388508", "0.42371225", "0.42366037", "0.42365074", "0.42354506", "0.42293906", "0.4228635", "0.42279196", "0.42219195", "0.4219966", "0.4216941", "0.42088082", "0.42012724", "0.41986164", "0.41983408", "0.4197504", "0.41941938", "0.4194049", "0.41932797", "0.41911367", "0.41860843", "0.41775927", "0.4177353", "0.41773212", "0.41717902", "0.41708276", "0.41614", "0.4154047", "0.41526705", "0.41508526", "0.41427663", "0.4142681", "0.41424412", "0.41402036" ]
0.5852141
0
0 is create new, 1 is update claim limit of player, 2 is update player claims total.
public void postUD(String UUID, int updateOrNew, long newLimit, int oldClaims) throws Exception{ if(updateOrNew ==0){ try{ Connection con = getConnection(); PreparedStatement posted = con.prepareStatement("INSERT INTO userClaimData(UUID, claimMax, totalClaims) VALUES ('"+UUID+", "+getConfig().getString("maxClaimStart")+", 0')ON DUPLICATE KEY UPDATE placeholder=1"); posted.executeUpdate(); con.close(); }catch(Exception e){} }else if (updateOrNew == 1){ try{ Connection con = getConnection(); PreparedStatement posted = con.prepareStatement("UPDATE userClaimData SET claimMax="+newLimit+" WHERE UUID="+UUID+""); posted.executeUpdate(); con.close(); }catch(Exception e){} }else{ int newClaims = oldClaims+1; try{ Connection con = getConnection(); PreparedStatement posted = con.prepareStatement("UPDATE userClaimData SET totalClaims="+newClaims+" WHERE UUID="+UUID+""); posted.executeUpdate(); con.close(); }catch(Exception e){} } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}", "@Override\r\n\tpublic int update(SpUser t) {\n\t\treturn 0;\r\n\t}", "public abstract void onContribution(int amount, Player player);", "protected void apply() {\r\n\t\tplayer.setAutoRoll(autoroll);\r\n\t\tplayer.setMission(mission);\r\n\t\tplayer.setState(state);\r\n\t\tplayer.getCards().setArtillery(cards.getArtillery());\r\n\t\tplayer.getCards().setCavalry(cards.getCavalry());\r\n\t\tplayer.getCards().setInfantry(cards.getInfantry());\r\n\t\tplayer.getCards().setJokers(cards.getJokers());\r\n\t\tMember member = player.getMember();\r\n\t\tif(score == Score.WIN) {\r\n\t\t\tmember.setScore(member.getScore() + player.getGame().getPlayers().size() - 1);\r\n\t\t\tmember.setWins(member.getWins() + 1);\r\n\t\t} else if(score == Score.LOSS) {\r\n\t\t\tmember.setScore(member.getScore() - 1);\r\n\t\t\tmember.setLosses(member.getLosses() + 1);\r\n\t\t}\r\n\t}", "public void increaseClaimProgress(JuggernautPlayer player, double partialValue){\n if(!player.isAlive()){ //if the player is not alive, we dont want him here.\n return;\n }\n\n //get the current progress\n double currentProgress;\n if(claimProgress.containsKey(player)) {\n currentProgress = claimProgress.get(player);\n }else{\n currentProgress = 0d;\n }\n\n //add progress depending on how long it takes to claim an item, and the given partialValue.\n currentProgress += (((double)100/secondsToClaimItem)/10)*partialValue;\n\n //if the progress is 100% (or higher), and the player has NOT yet claimed this (failsafe), give them the claim!\n if(currentProgress>=100 && player.getChestBonus(chestID)<level){\n player.setChestBonus(chestID, level);\n applyItem(player, level);\n\n //reset experience bar\n player.getPlayer().setLevel(0);\n player.getPlayer().setExp(0f);\n\n //update the playerclaims\n updatePlayerClaim();\n }else{\n //its not 100% claimed yet, so we just update the claim progress\n claimProgress.put(player, currentProgress);\n\n //update their experience bar/level to indicate how far they are.\n player.getPlayer().setLevel((int) currentProgress);\n player.getPlayer().setExp((float) (currentProgress/100d));\n updatePlayerClaim(); //todo this may not be of any influence here.\n }\n }", "public Player updatePlayer(Player player);", "public void update(Limit limit);", "void updateOTPRecord(int numofAttempts, int otpId, int otp);", "Response updatePlayerStats(String jsonMessage);", "@Override\n\tpublic int update(ShiroRolesPermissionsPoEntity entity) {\n\t\treturn 0;\n\t}", "public void updateMana(String target, Integer amount){\n if(target == \"player\"){\n playerMana+=amount;\n if (playerMana > playerManaMax){playerMana = playerManaMax;}\n } else if (target == \"enemy\"){\n enemyMana+=amount;\n if (enemyMana > enemyManaMax){enemyMana = enemyManaMax;}\n }\n }", "public int getPlayerCount() {\n return 0;\n }", "void updatePlayer(Player player);", "@Test\n public void shouldIncrementAndThenReleaseScorePlayerOne() {\n int expected = 0 ;\n scoreService.incrementScorePlayerOne() ;\n scoreService.incrementScorePlayerOne() ;\n scoreService.releaseScores() ;\n int scorePlayerOne = scoreService.getScorePlayerOne() ;\n assertThat(scorePlayerOne, is(expected)) ;\n }", "void setPlayerId(int playerId);", "public void incrementPlayerRating(long increment, IServerCallback callback) {\n try {\n JSONObject data = new JSONObject();\n data.put(Parameter.playerRating.name(), increment);\n\n ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.INCREMENT_PLAYER_RATING, data, callback);\n _client.sendRequest(sc);\n\n } catch (JSONException ignored) {\n }\n }", "public void action(Player myPlayer)\n {\n if (getNbUtilisation() == 0) {\n System.out.println(\"Not possible\");\n } else {\n int nHealthy = getPointsHealthy();\n myPlayer.addLifePoints(nHealthy);\n\n }\n }", "@RequestMapping(method = RequestMethod.POST, value = \"/{playerID}/{newHP}\")\n public void setHealthPointsOfPlayer(@PathVariable int playerID, @PathVariable int newHP){\n playerService.setPlayerHealthPoint(playerID,newHP);\n }", "private void updatePlayerClaim(){\n if(chestProgressLevel!=1){\n return; //the chest isnt unlocked!\n }\n\n //count the total players, and the players who unlocked it.\n int totalPlayers = 0;\n int unlockedPlayers = 0;\n for(JuggernautPlayer player: JuggernautGame.getInstance().getPlayers()){\n if(!player.isSurvivor() || !player.isAlive()){\n continue; //they be dead, they dont count! (Juggy also doesnt count, he doesnt get to unlock items)\n }\n totalPlayers++; //+1 total players\n if(player.isSurvivor() && player.getChestBonus(chestID)>=level){\n unlockedPlayers++; //they unlocked it, +1 unlocked players\n }\n }\n\n //all players unlocked it\n if(totalPlayers<=unlockedPlayers && chestProgressLevel==1){\n //lock the chest before respawning.\n lockChest();\n new BukkitRunnable() {\n\n int timeTillRespawn = 3; //3 seconds to respawn a chest\n @Override\n public void run() {\n //runs every second\n for(JuggernautPlayer jp : JuggernautGame.getInstance().getAllPeople()){\n //check if the player is in the radius of the chest (ignore Y)\n if(SkyMathHelper.isInRadius(location, jp.getPlayer().getLocation(), nametagRadius, false)) {\n //show them the hologram. Update if they already have the hologram active.\n //If this chest will not respawn, we tell them \"Good Luck!\" instead of the respawning message.\n if (jp.getLoadedEntities().containsKey(armorstandResetChestID)) {\n if(level==getMaxLevel()){\n jp.updateHologram(armorstandResetChestID, \"\\u00A76Good Luck!\");\n }else {\n jp.updateHologram(armorstandResetChestID, \"\\u00A76Respawning in \" + timeTillRespawn);\n }\n } else {\n if(level==getMaxLevel()) {\n jp.displayHologram(location.getX(), location.getY() + armorstandProgressbarHeight, location.getZ(), \"\\u00A76Good Luck!\", armorstandResetChestID);\n }else{\n jp.displayHologram(location.getX(), location.getY() + armorstandProgressbarHeight, location.getZ(), \"\\u00A76Respawning in \" + timeTillRespawn, armorstandResetChestID);\n }\n }\n }else{\n //they arent in range, so we remove this entity for them\n jp.removeEntities(armorstandResetChestID);\n }\n }\n\n //check if its time to respawn.\n if(timeTillRespawn--<=0){\n //its time! respawn the chest!\n respawnChest();\n for(JuggernautPlayer jp: JuggernautGame.getInstance().getPlayers()){\n //remove the countdown armorstand for all players\n jp.removeEntities(armorstandResetChestID);\n }\n this.cancel(); //cancel this runnable, we no longer need it.\n return;\n }\n }\n }.runTaskTimer(Juggernaut.pluginInstance, 0L, 20L); //every 20 ticks (1s)\n }else{\n //not all players unlocked the item yet. Lets indicate how many did.\n String emptyDisplayText = unlockedPlayers + \"/\" + totalPlayers + \" Claimed\";\n for(JuggernautPlayer JP: JuggernautGame.getInstance().getPlayers()){\n if(!SkyMathHelper.isInRadius(location, JP.getPlayer().getLocation(), nametagRadius, false)){\n //they arent in the radius, so we remove their armorstand again (if they had it).\n if(JP.getLoadedEntities().containsKey(this.armorstandClaimProgressID)) {\n JP.removeEntities(armorstandClaimProgressID);\n }\n continue;\n }\n\n //generate the color of the display text we need to show them. green if they claimed it, otherwise red.\n String displayText;\n if(JP.getChestBonus(chestID)>=level){\n displayText = \"\\u00A72\" + emptyDisplayText;\n }else{\n displayText = \"\\u00A7c\" + emptyDisplayText;\n }\n\n //update, or show the hologram to them.\n if(JP.getLoadedEntities().containsKey(this.armorstandClaimProgressID)){\n JP.updateHologram(armorstandClaimProgressID, displayText);\n }else{\n JP.displayHologram(this.location.getX(), this.location.getY()+this.armorstandClaimProgressHeight, this.location.getZ(), displayText, armorstandClaimProgressID);\n }\n }\n }\n }", "private void increaseCurrentPlayerIndex() {\n\t\tcurrentPlayer++;\n\t\tif(currentPlayer>3)\n\t\t\tcurrentPlayer=0;\n\t}", "@Override\r\n\tpublic int update(User user) {\n\t\treturn 0;\r\n\t}", "public int addPlayer(String name) {\n\t\tUser user = users.get(userTurn);\n\t\tFootballPlayer player = market.findPlayer(name);\n\t\tdouble marketValue = player.getMarketValue();\n\t\tSystem.out.println(\"budget before buy\" + user.getBudget());\n\t\t\n\t\tif(tmpTeam.containsPlayer(name)) {\n\t\t\treturn 1;\n\t\t} \n\t\telse if(user.hasEnoughBudget(marketValue)) {\n\t\t\ttmpTeam.addPlayer(name, player);\n\t\t\tuser.updateBudget(marketValue, \"-\");\n\t\t\tSystem.out.println(\"budget \" + user.getBudget());\n\t\t\tSystem.out.println(\"marketvalue \" +marketValue);\n\t\t\tSystem.out.println(\"budget after buy\" + user.getBudget());\n\t\t\treturn 0;\n\t\t}\n\t\treturn -1;\n\t}", "private void updatePlayersWorth(){\n for (Player e : playerList) {\n e.setPlayerWorth(getTotalShareValue(e) + e.getFunds());\n }\n }", "@Override\r\n\tpublic int update(PtHrUserBak t) {\n\t\treturn 0;\r\n\t}", "public int calculatePlayerAge(int player_id) throws Exception;", "Account.Update update();", "public static void playerWonInc(){\r\n\t\t_playerWon++;\r\n\t}", "public void increaseWins(){\n this.numberOfWins=this.numberOfWins+1;\n }", "@Test\r\n\tvoid testUpdateSkillRecordShouldPass() {\r\n\t\tController ctrl = new Controller();\r\n\t\t\r\n\t\tint playerSru = 1000;\r\n\t\t\r\n\t\t//Passing\r\n\t\tint standardLevel = 5;\r\n\t\tint spinLevel = 4;\r\n\t\tint popLevel = 3;\r\n\t\tString passingNotes = \"Passing\";\r\n\t\t\r\n\t\t//Tackling\r\n\t\tint frontLevel= 4;\r\n\t\tint rearLevel = 4;\r\n\t\tint sideLevel = 3;\r\n\t\tint scrabbleLevel = 2;\r\n\t\tString tacklingNotes = \"Tackling\";\r\n\t\t\r\n\t\t//Kicking\r\n\t\tint dropLevel= 4;\r\n\t\tint puntLevel = 5;\r\n\t\tint grubberLevel = 3;\r\n\t\tint goalLevel = 3;\r\n\t\tString kickingNotes = \"Kicking\";\r\n\t\r\n\t\tboolean successful = ctrl.createNewSkillRecord(playerSru, standardLevel, spinLevel, popLevel, passingNotes,\r\n\t\t\t\tfrontLevel, rearLevel, sideLevel, scrabbleLevel, tacklingNotes,\r\n\t\t\t\tdropLevel, puntLevel, grubberLevel, goalLevel, kickingNotes);\r\n\t\t\r\n\t\tassertTrue(successful);\r\n\t}", "private void rewardPlayer(Player player) {\n\t\tRandom number = new Random();\n\t\tint num = number.nextInt(100);\n\t\t\n\t\tif(num >= 80 && num < 90) {\n\t\t\tplayer.increaseAttacks();\n\t\t\tserver.addTextToLoggingWindow(\"Player (\" + player.getName() + \") got rewarded one attack\");\n\t\t\tserver.sendMessageToClient(player.getName(), \"@134@\" + \"0\" + \"@\");\n\t\t}\n\t\telse if(num >= 90 && num <= 100) {\n\t\t\tplayer.increaseSafeTP();\n\t\t\tserver.addTextToLoggingWindow(\"Player (\" + player.getName() + \") got rewarded one safe teleport\");\n\t\t\tserver.sendMessageToClient(player.getName(), \"@134@\" + \"1\" + \"@\");\n\t\t}\n\t}", "@Override\n public void updateScore(int winner)\n {\n if (winner == 0)\n {\n playerOneScore++;\n }\n else\n {\n playerTwoScore++;\n }\n }", "@Test\n public void shouldIncrementAndThenReleaseScorePlayerTwo() {\n int expected = 0 ;\n scoreService.incrementScorePlayerTwo() ;\n scoreService.incrementScorePlayerTwo() ;\n scoreService.releaseScores() ;\n int scorePlayerTwo = scoreService.getScorePlayerTwo() ;\n assertThat(scorePlayerTwo, is(expected)) ;\n }", "@Override\n\tpublic int update(MemberVO memberVo) {\n\t\treturn 0;\n\t}", "public int incrementPlayersNumber(){//setter/incrementer di numberofplayers chiamato da ServerRoom: qua ho cambiato! è qui che si setta il client id, e il primo della stanza ha id=1 scritta come era prima!\r\n\t\tint idToSend=numberOfPlayers;\r\n\t\tnumberOfPlayers++;\r\n\t\treturn idToSend;\r\n\t}", "public void updatePlayerShotData(ActionRequest request, ActionResponse response)\r\n\t throws Exception {\r\n\r\n\t long shotDataKey = ParamUtil.getLong(request, \"resourcePrimKey\");\r\n\t ArrayList<String> errors = new ArrayList<String>();\r\n\t if (Validator.isNotNull(shotDataKey)) {\r\n\t ESPlayerShotData shotData =\r\n\t ESPlayerShotDataLocalServiceUtil.getESPlayerShotData(shotDataKey);\r\n\t ESPlayerShotData requestPlayerShotData = ActionUtil.playerShotDataFromRequest(request);\r\n\r\n\t if (ShotDataValidator.validateShotData(requestPlayerShotData, errors)) {\r\n\t \t\r\n\t \t//Club.setClubName(requestClub.getClubName());\r\n\t \t//Club.setClubDesc(requestClub.getClubDesc());\r\n\t //Club.setClubSpecs(requestClub.getClubSpecs());\r\n\t //ESClubLocalServiceUtil.updateESClub(Club);\r\n\t //SessionMessages.add(request, \"ClubUpdated\");\r\n\r\n\t }\r\n\t else {\r\n\t for (String error : errors) {\r\n\t SessionErrors.add(request, error);\r\n\r\n\t }\r\n\r\n\t }\r\n\r\n\t }\r\n\t else {\r\n\t SessionErrors.add(request, \"error-updating\");\r\n\t }\r\n\r\n\t }", "@Test\n void updateScore() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setTurn(true);\n p.updateScore(3);\n assertTrue(p.getScore()==3);\n\n p = new RealPlayer('b', \"ciccia\");\n p.updateScore(-1);\n assertTrue(p.getScore()==0);\n }", "@Test\n public void shouldIncrementScorePlayerOne() {\n scoreService.incrementScorePlayerOne() ;\n int expected = 1 ;\n int scorePlayerOne = scoreService.getScorePlayerOne() ;\n assertThat(scorePlayerOne, is(expected)) ;\n }", "final int getShareOfOne() { return getPlayerId() == 0 ? 1 : 0; }", "public void Action(Player p) {\n int x = p.getMoney();\n int a = super.getAmount();\n if (x - a < 0) {\n p.setLoan((a - x) + 1000);\n p.setMoney((a - x) + 1000);\n p.setMoney(-a);\n } else {\n p.setMoney(-a);\n }\n this.JackMoney = a;\n }", "public void updatePatience(){\n Patience = Patience - 1;\n }", "@Override\n\tpublic int doCreate(Player player) throws Exception {\n\t\tif(player==null){\n\t\t\treturn 400;\n\t\t}\n\t\ttry {\n\t\t\tdao.doCreate(player);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\t//e.printStackTrace();\n\t\t\treturn 300;\n\t\t}\n\t\treturn 100;\n\t}", "public void updateUndo() {\n\n\t\t// player A clicked undo, special case (freeTurn)\n\t\tif (a.getFreeTurn() == true) {\n\t\t\tif (a.getUndoLimit() == 3)\n\t\t\t\treturn;\n\n\t\t\ta.setTurn(true);\n\t\t\tb.setTurn(false);\n\n\t\t\ta.setFreeTurn(false);\n\t\t\ta.incrementUndo();\n\t\t}\n\n\t\t// player B clicked undo, special case (freeTurn)\n\t\telse if (b.getFreeTurn() == true) {\n\t\t\tif (b.getUndoLimit() == 3)//\n\t\t\t\treturn;\n\n\t\t\tb.setTurn(true);\n\t\t\ta.setTurn(false);\n\n\t\t\tb.setFreeTurn(false);\n\t\t\tb.incrementUndo();\n\t\t}\n\n\t\t// player A clicked undo\n\t\telse if (a.getTurn() == false) {\n\t\t\tif (a.getUndoLimit() == 3)\n\t\t\t\treturn;\n\n\t\t\ta.setTurn(true);\n\t\t\tb.setTurn(false);\n\n\t\t\ta.incrementUndo();\n\t\t}\n\n\t\t// player B clicked undo\n\t\telse {\n\t\t\tif (b.getUndoLimit() == 3)//\n\t\t\t\treturn;\n\n\t\t\tb.setTurn(true);\n\t\t\ta.setTurn(false);\n\n\t\t\tb.incrementUndo();\n\t\t}\n\n\t\tfor (int x = 0; x < 14; x++) {\n\t\t\tint prevNumber = bucket[x].gePrevNumOfRocks();\n\t\t\tbucket[x].setnumOfRocks(prevNumber, false);\n\t\t}\n\t}", "public synchronized void updatePlayerPoint(long playerId, String playerName, int point) {\n/* 98 */ if (point <= this.component.getMinPoint()) {\n/* */ return;\n/* */ }\n/* 101 */ int level = MentalUtil.getShowLevel();\n/* 102 */ ZhenfaTempleWorldBean zhenfaTempleWorldBean = JsonTableService.<ZhenfaTempleWorldBean>getJsonData(level, ZhenfaTempleWorldBean.class);\n/* 103 */ if (point < zhenfaTempleWorldBean.getEntryScore()) {\n/* */ return;\n/* */ }\n/* 106 */ for (MentalRankStruct rankInfo : this.component.getRankList()) {\n/* 107 */ if (playerId == rankInfo.playerId) {\n/* 108 */ rankInfo.point = point;\n/* 109 */ this.component.setUpdate(\"rankList\");\n/* 110 */ this.component.saveToDB();\n/* 111 */ this.component.sortRank();\n/* */ \n/* */ return;\n/* */ } \n/* */ } \n/* 116 */ MentalRankStruct struct = new MentalRankStruct();\n/* 117 */ struct.playerId = playerId;\n/* 118 */ struct.playerName = playerName;\n/* 119 */ struct.point = point;\n/* */ \n/* 121 */ this.component.getRankList().add(struct);\n/* 122 */ this.component.setUpdate(\"rankList\");\n/* 123 */ this.component.saveToDB();\n/* */ \n/* 125 */ this.component.sortRank();\n/* */ }", "void givePlayerExp(BPlayer bPlayer, int exp);", "@Override\n public int getNextPlayer() {\n //TODO Implement this method\n if(isPlayerOne){\n return 0;\n }else {\n return 1;\n }\n }", "@Override\n public boolean updateExpenseLimit(int userId, double limit){\n return userDAO.updateExpenseLimit(userId,limit);\n }", "int updateParticipant(TccTransaction tccTransaction);", "int playerMoveStart(Player player, int oldAmount);", "public void setUserStatus(int online, int id){\n\n try{\n\n String query = \"UPDATE PlayerF \"\n + \"SET Online = \" + online\n + \" WHERE Id = \"+ id;\n\n int result = stmt.executeUpdate(query);\n\n if(result > 0){\n\n System.out.println(\"@setUserStatus: possible success\");\n\n }\n else{\n System.out.println(\"@setUserStatus: Error result returned false\");\n }\n\n }catch (SQLException e){\n e.printStackTrace();\n }\n\n }", "private void wins(Player player){\n int win = 1;\n player.setWins(win);\n }", "public void newPlayer() {\r\n\t\tthis.nbMonster ++;\r\n\t\tthis.nbPlayer ++;\r\n\t}", "void changeSkill(Long pokemonId, int newSkill);", "@Override\r\n\tpublic int updateUser(User user, String userName) {\n\t\treturn 0;\r\n\t}", "public void setUpdateTickets (int updateTickets)\n {\n this.unsoldTickets=this.unsoldTickets + updateTickets; \n }", "public float handleClaim(){\r\n float re_amount = amount;\r\n depreciate();\r\n return re_amount;\r\n }", "public void win(int player)\r\n\t{\r\n\t\taccountValue[player]+=pool;\r\n\t\tendRund();\r\n\t}", "public void update(Player player) {\n\t\t\n\t}", "public void updatePlayer(Player player) {\n\t\t// update the flag GO TO JAIL in Player class\n\t}", "private void claim(int proposal) {\n this.claimStatus = new ClaimOrConcession(proposal);\n }", "private void updateNrPlayerValues(String target) {\n database.getReference(gameCodeRef).child(target).addListenerForSingleValueEvent(new ValueEventListener()\n {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n String value = String.valueOf(snapshot.getValue());\n if (value.isEmpty() || value == null || value.equals(null) || value.contains(\"null\")){\n startDBValue(target);\n value = \"1\";\n }\n else {\n increaseDBValue(target, Integer.parseInt(value));\n }\n switch (target){\n case \"NumberOfPlayers\":\n break;\n case \"PlayersDoneBrainstorming\":\n checkPlayersDoneBrainstorming(Integer.parseInt(value)+1);\n break;\n case \"PlayersDoneEliminating\":\n checkPlayersDoneEliminating(Integer.parseInt(value)+1);\n break;\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.w(TAG,\"loadGamecode:onCancelled\", error.toException());\n }\n\n });\n }", "int updateByPrimaryKeySelective(GpPubgPlayer record);", "abstract void updatePlayer();", "public int incrementMaxRealPlayer() {\n if ((maxRealPlayer + maxVirtualPlayer) >= MAX_GAME_PLAYER) {\n return -1;\n }\n maxRealPlayer++;\n return maxRealPlayer;\n }", "public void ability(LevelManager lm){\n\n int prevDamage = lm.player.getDamage();\n int newDamage = prevDamage+12;\n lm.player.setDamage(newDamage);\n }", "private void addPlayerSheild() {\n this.playerShield += 1;\n }", "public void update() {\n\t\n\tif(getBalance() > 0) {\n\t\tcanWithdraw = true;\n\t}else {canWithdraw = false;}//end else statement\n}", "@Test\n public void shouldIncrementScorePlayerTwo() {\n scoreService.incrementScorePlayerTwo() ;\n int expected = 1 ;\n int scorePlayerTwo = scoreService.getScorePlayerTwo() ;\n assertThat(scorePlayerTwo, is(expected)) ;\n }", "@Override\r\n\tpublic int updateUser(Users user) {\n\t\treturn 0;\r\n\t}", "public void refresh() {\r\n if (!(entity instanceof Player)) {\r\n return;\r\n }\r\n Player player = (Player) entity;\r\n for (int i = 0; i < 24; i++) {\r\n PacketRepository.send(SkillLevel.class, new SkillContext(player, i));\r\n }\r\n }", "public void setPlayerCount(short pPlayerCount) {\n\t\tthis.mPlayerCount = pPlayerCount;\n\t}", "int getKills(UUID player);", "int updateByPrimaryKey(UserCount record);", "public int getPlayerId();", "@SqlUpdate(\"insert into PLAYERSTATS (SCOREID, USERID, TIMESTAMP, KILLS, SCORE) values \"\n + \"(:scoreId, :userId, :timestamp, :kills, :score)\")\n int insert(@BindBean PlayerStats playerStats);", "public int getCurrentPlayerFunds(){return currentPlayerTurn.getFunds();}", "public void increaseTurnCount()\n\t{\n\t\tturnNumber++;\n\t\tthis.currentPlayerID++;\n\t\tthis.currentPlayerID = this.currentPlayerID % this.playerList.size();\n\t}", "public void nextPlayer() {\r\n if (currentPlayer == totalPlayer) {\r\n currentPlayer = 1;\r\n } else {\r\n currentPlayer++;\r\n }\r\n }", "public synchronized static void updatePlayerStats(Message message) {\n String profileId = message.getHeader().getProfileId();\n\n PlayerStats playerStats = playerStatsMap.getOrDefault(profileId, new PlayerStats(profileId));\n\n playerStats.logInteractionDate(message.getHeader().getServerDate());\n\n if (message.getHeader().getEventType().equals(\"context.stop.MATCH\"))\n playerStats.incrementNumOfMatchesPlayed();\n if (message.getHeader().getEventType().equals(\"custom.RoundWin\"))\n playerStats.incrementNumOfRoundWins();\n if (message.getHeader().getEventType().equals(\"custom.player.MatchWin\"))\n playerStats.incrementNumOfMatchWins();\n\n playerStatsMap.put(profileId, playerStats);\n }", "public void givePlayerLevelBonus() {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\t\tp.addScore(5 * (currentLevel-1));\n\t\t\t}\n\t\t}\n\t\tserver.updateHighscoreList();\n\t\tserver.addTextToLoggingWindow(\"Server gives all players level bonus\");\n\t}", "private void updateSeekingSlider(){\r\n\t\t//UPDATE seekingSlider SET pGenderMin = int, pGenderMax = int, pExpressionMin = int, pExpressionMax = int\r\n\t\t//pOrientationMin = int, pOrientation = int WHERE userName = \"userName\"\r\n\t\tString sqlCmd = \"UPDATE seekingSlider SET pGenderMin = \" + commandList.get(2) + \", pGenderMax = \" + commandList.get(3)\r\n\t\t+ \", pExpressionMin = \" + commandList.get(4) + \", pExpressionMax = \" + commandList.get(5)\r\n\t\t+ \", pOrientationMin = \" + commandList.get(6) + \", pOrientationMax = \" + commandList.get(7)\r\n\t\t+ \" WHERE userName = \\\"\" + commandList.get(1) + \"\\\";\";\r\n\t\tSystem.out.println(sqlCmd);\r\n\t\ttry {//send the SQL command\r\n\t\t\tint changed = stmt.executeUpdate(sqlCmd);//send command\r\n\t\t\tif(changed == 0){\r\n\t\t\t\terror = true;\r\n\t\t\t\tout.println(\"User not found, no record updated\");\r\n\t\t\t\tSystem.out.println(\"User not found, no record updated\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\terror = true;//set error condition\r\n\t\t\tSystem.out.println(\"sliderError\");//write the error code to the client\r\n\t\t\tout.println(e.getMessage());\r\n\t\t\te.printStackTrace();//send to console\r\n\t\t}\r\n\t\tif (error == false)//if there is no error caught\r\n\t\t\tout.println(\"true\");//send success to the client\r\n\t}", "@Override\n\tpublic int update(TestPoEntity entity) {\n\t\treturn 0;\n\t}", "public int updateLevel(int skill, int amount, int maximum) {\r\n if (amount > 0 && dynamicLevels[skill] > maximum) {\r\n return -amount;\r\n }\r\n int left = (dynamicLevels[skill] + amount) - maximum;\r\n int level = dynamicLevels[skill] += amount;\r\n if (level < 0) {\r\n dynamicLevels[skill] = 0;\r\n } else if (amount < 0 && level < maximum) {\r\n dynamicLevels[skill] = maximum;\r\n } else if (amount > 0 && level > maximum) {\r\n dynamicLevels[skill] = maximum;\r\n }\r\n if (restoration[skill] != null) {\r\n int ticks = 100;\r\n if (entity instanceof Player) {\r\n if (((Player) entity).getPrayer().get(PrayerType.BERSERKER)) {\r\n ticks = 75;\r\n }\r\n }\r\n restoration[skill].restart(ticks);\r\n }\r\n if (entity instanceof Player) {\r\n PacketRepository.send(SkillLevel.class, new SkillContext((Player) entity, skill));\r\n }\r\n return left;\r\n }", "void updatePassengerInCheck(int passengerInCheck);", "public static void setPlayerCount(int playerCount) {\n PLAYER_COUNT = playerCount;\n }", "public void incOWins() {\n oWins++;\n }", "public void updateScore(int score){ bot.updateScore(score); }", "private void updateRewardsPoints(int amount)\n\t{\n\t\tif(\tfileIO.rewardPoints - amount >= 0){\n\t\t\tfileIO.getPrefs();\n\t\t\tfileIO.rewardPoints = fileIO.rewardPoints - amount;\n\t\t\tfileIO.setPrefs();\n\t\t\trewardPointsTV.setText(Integer.toString(fileIO.rewardPoints));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmakeToast(\"You don't have enough points for that reward. You can earn more points by completing tasks.\", true);\n\t\t}\n\t}", "public abstract boolean updatePlayerInGame(int gameId, String username, String role) throws SQLException;", "public int checkNoOfExplosivesPlayerHolds () { return noOfExplosives; }", "public void updatePlayer(Player player) {\n Duration playDuration = Duration.ofMinutes(player.getStatistic(Statistic.PLAY_ONE_MINUTE) / 20 / 60);\n int hoursPlayed = Math.toIntExact(playDuration.toHours());\n this.objective.getScore(player.getName()).setScore(hoursPlayed);\n }", "public int incrementScore(int player) {\n switch (player) {\n case PLAYER_A:\n return ++scoreA;\n case PLAYER_B:\n return ++scoreB;\n }\n return -1;\n }", "public void setNumberOfPlayers(int numberOfPlayers) {\n this.numberOfPlayers = numberOfPlayers;\n }", "public void update(int count){\n\t\tthis.count += count;\n\n\t\tif(this.count >= totalCount)\n\t\t\tachieved = true;\n\t}", "long getPlayerId();", "public void updateDuration(User user);", "public void createNewPlayer()\n\t{\n\t\t// Set up all badges.\n\t\tm_badges = new byte[42];\n\t\tfor(int i = 0; i < m_badges.length; i++)\n\t\t\tm_badges[i] = 0;\n\t\tm_isMuted = false;\n\t}", "Integer update(BoardCell cell, int newPlayerId);", "@Override\n public double grantOrRefund(Player player) {\n Map<Commodity, Double> result = wants.stream()\n .collect(Collectors.toMap(Function.identity(), want -> want.grantOrRefund(player)));\n\n Map.Entry<Commodity, Double> maxRefund = Collections.max(result.entrySet(), Comparator.comparingDouble(Map.Entry::getValue));\n if (maxRefund != null && maxRefund.getValue() != 0) {\n result.forEach((want, refund)->{\n if (want != maxRefund.getKey()) {\n double refundDifference = maxRefund.getValue() - refund;\n want.multiply(refundDifference).deduct(player);\n }\n });\n return maxRefund.getValue();\n }\n return 0;\n }", "private void scoregain() {\n \tif (playerturn%2==0) {\n \tscoreplayer1 = scoreplayer1+2;}\n if(playerturn%2==1) {\n \tscoreplayer2 = scoreplayer2+2;\n }\n }", "int getPlayerId();" ]
[ "0.594796", "0.59243125", "0.5921912", "0.58194697", "0.58061284", "0.5799634", "0.57426214", "0.57333493", "0.5707991", "0.5653585", "0.56324047", "0.5606045", "0.55981475", "0.5587892", "0.5576321", "0.55492014", "0.5534344", "0.5533565", "0.5514982", "0.5492016", "0.5457078", "0.5455058", "0.5448504", "0.54471314", "0.5439137", "0.543877", "0.5438192", "0.5437873", "0.54079974", "0.54052484", "0.5404877", "0.5401095", "0.53788465", "0.5365957", "0.53553146", "0.53229904", "0.5322273", "0.5321871", "0.531581", "0.5314074", "0.53117645", "0.5303667", "0.5297862", "0.5297324", "0.52875495", "0.52828556", "0.52791446", "0.52688205", "0.5265272", "0.5250186", "0.52433515", "0.5231816", "0.5225407", "0.52204293", "0.5219785", "0.52186036", "0.5216725", "0.5215992", "0.52136296", "0.52116424", "0.5209173", "0.5207831", "0.52044564", "0.5203922", "0.52020067", "0.52006686", "0.51992154", "0.51985794", "0.51983243", "0.5195696", "0.5194777", "0.51918447", "0.5190098", "0.5187664", "0.51839024", "0.5183399", "0.5182943", "0.51758575", "0.5172917", "0.51692486", "0.51672626", "0.5161579", "0.5157477", "0.51553357", "0.5150421", "0.51474667", "0.51437265", "0.51430804", "0.5140204", "0.5138824", "0.5126554", "0.5123095", "0.5117293", "0.5107859", "0.5105636", "0.5104322", "0.5100122", "0.5098011", "0.509773", "0.509413" ]
0.63328975
0
2, 1, 2, 3, 2, 4, 2, 5
public List<Integer> crateSecond(int size) { int[] arr = {2, 1, 2, 3, 2, 4, 2, 5}; int arrSize = 8; List<Integer> secondAnswer = new ArrayList<>(size); for (int i = 0; i < size; i++) { int index = i%arrSize; secondAnswer.add(arr[index]); } return secondAnswer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void first() {\n int[] answers = {1,2,3,4,5,1,2,3,4,5};\n int[] first = {1,2,3,4,5};\n int collect = 0;\n for (int i=0; i < answers.length ; i++) {\n if (answers[i] == first[i % 5]) {\n //0 0\n //1 1\n //2 2\n //3 3\n //4 4\n //5 0\n //6 1\n //7 2\n collect++;\n }\n }\n assertThat(collect).isEqualTo(10);\n }", "public static void main(String[] args) {\n System.out.print(unique(new int[]{100, 11, 34, 11, 52, 61, 1, 34}));\n // should print: `[1, 11, 34, 52, 61]`\n\n\n }", "int getUniqueNumbersCount();", "public static void main(String[] args)throws IOException {\n int n = 5; //Integer.parseInt(rd.readLine());\n// String str[] = rd.readLine().split(\" \");\n// int arr[] = new int[n];\n// for(int i=0; i<n; i++){\n// arr[i] = Integer.parseInt(str[i]);\n// }\n int arr[] = {1, 3, 2, 1, 2};\n int freq = 0;\n Arrays.sort(arr);\n for(int i=0; i<n-1; i++){\n if(arr[i] != arr[i+1]){\n freq++;\n break;\n }\n i++;\n }\n if(freq==0) {\n System.out.println(arr[n-1]); //the unique no is tha last no\n }\n else{\n System.out.println(freq); //unique no is somewhere in between\n }\n }", "public static void main(String[] args) {\n\t\tint[] arr = { 4, 1, 1, 4, 2, 3, 4, 4, 1, 2, 4, 9, 3 };\n\t\tint number;\n\t\tint count = 1;\n\t\tint maxCount = 1;\n\t\tint index=0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tnumber = arr[i];\n\t\t\tfor (int j = i + 1; j < arr.length; j++) {\n\t\t\t\tif (number == arr[j]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (maxCount < count) {\n\t\t\t\tmaxCount = count;\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t\tcount=1;\n\t\t}\n\t\tSystem.out.println(arr[index]+\"->\"+maxCount+\" times\");\n\t}", "public int repeated() {\n this.order();\n int counter = 1;\n int currentCounter = 1;\n for (int i = 0; i < this.size() - 1; i++) {\n if(this.getListaAt(i).x == this.getListaAt(i + 1).x) {\n currentCounter += 1;\n }\n else {\n if (currentCounter > counter) {\n counter = currentCounter;\n }\n currentCounter = 1;\n }\n }\n if (currentCounter > counter) {\n counter = currentCounter;\n }\n return counter;\n }", "public int findDuplicatesB(int[] input) {\n ArrayList<Integer> nonDuplicates = new ArrayList<>();\n for (int value : input) {\n if (!nonDuplicates.contains(value)) {\n nonDuplicates.add(value);\n }\n }\n return input.length - nonDuplicates.size();\n }", "public static void findNumberOccurringOddTimes() {\n int arr[] = {1, 1, 2, 2, 3, 3, 3};\n int result = 0;\n for (int num : arr)\n result ^= num;\n System.out.println(\"Odd times occurring number : \" + result);\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n ArrayList<Integer> set = new ArrayList<>();\n for(int i=0;i<n;i++)\n {\n arr[i] = sc.nextInt();\n \n if(!set.contains(arr[i]))\n set.add(arr[i]);\n }\n \n HashMap<Integer,Integer> map = new HashMap<>();\n for(int i:arr)\n {\n if(map.containsKey(i))\n map.put(i,map.get(i)+1);\n else\n map.put(i,1);\n }\n \n for(int i:set)\n {\n System.out.println(i+\" : \"+map.get(i));\n }\n \n \n }", "public static int pickingNumbers(List<Integer> a) {\n Collections.sort(a);\n List<Integer> result = new ArrayList<>();\n int counter = 0;\n\n for (int i = 0; i < a.size(); i++) {\n for (int j = i; j < a.size(); j++) {\n if(a.get(i)+1 >= a.get(j)){\n counter ++;\n }else{\n result.add(counter);\n counter = 0;\n break;\n }\n }\n result.add(counter);\n counter = 0;\n }\n return Collections.max(result);\n }", "public static void main(String[] args) {\n int a[]={1,2,3,4,4,3,2,6,6,9,9,6,7,4,7};\n\n ArrayList<Integer> al= new ArrayList<Integer>();\n\n for (int i =0;i<a.length;i++){\n int k=0;\n if (!al.contains(a[i])){\n al.add(a[i]);\n k++;\n\n for (int j=0;j<a.length;j++){\n if(a[i]==a[j]){\n k++;\n }\n }\n System.out.println(\"The number \"+ a[i] +\"repeats \"+ k+\" number of times.\");\n if (1==k)\n System.out.println(a[i]+ \" is the unique number.\");\n }\n\n\n }\n\n\n\n }", "public static int degreeOfArray(List<Integer> arr) { arr.length = n\n // num of Keys = k\n // O(n + k)\n // max value count = m\n //\n PriorityQueue<Node> pq = new PriorityQueue<>((i, j)-> j.count - i.count);\n Map<Integer, NodePosition> posMap = new HashMap<>();\n Map<Integer, Node> countMap = new HashMap<>();\n // [1, 2, 3, 4, 5, 6]\n for (int i = 0; i < arr.size(); i++) {\n int cur = arr.get(i);\n\n if (!countMap.containsKey(cur)) {\n countMap.put(cur, new Node(cur, 1));\n } else {\n Node curNode = countMap.get(cur);\n curNode.count++;\n countMap.put(cur, curNode);\n }\n\n if (!posMap.containsKey(cur)) {\n posMap.put(cur, new NodePosition(i, i));\n } else {\n NodePosition curNodePos = posMap.get(cur);\n curNodePos.endIndex = i;\n posMap.put(cur, curNodePos);\n }\n }\n //Iterator<Map.Entry<Integer, Node> it = new Iterator<>(countMap);\n for (Map.Entry<Integer, Node> e : countMap.entrySet()) {\n pq.add(e.getValue());\n }\n\n // [1, 2, 1, 3 ,2]\n // 1 , 2 , 3\n Node curNode = pq.remove();\n int maxCount = curNode.count;\n\n int minRange = posMap.get(curNode.num).endIndex - posMap.get(curNode.num).startIndex;\n\n while (!pq.isEmpty() && maxCount == pq.peek().count) {\n curNode = pq.remove();\n NodePosition nPos = posMap.get(curNode.num);\n minRange = Math.min(minRange, nPos.endIndex - nPos.startIndex);\n }\n\n return minRange + 1;\n }", "int getNextCount(int vids);", "private int chunks(List<Integer> S){\n\t\tint c = 1;\n\t\tfor(int i = 0; i < S.size() -1; i++) {\n\t\t\tif(comps(S.get(i), S.get(i+1)) && S.get(i+1) < S.get(i)){\t\t\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\treturn c;\n\t}", "private int countOccurrence(Integer valueToCount) {\n int count = 0;\n\n for(Integer currentValue : list) {\n if (currentValue == valueToCount) {\n count++;\n }\n }\n\n return count;\n }", "static int migratoryBirds(List<Integer> arr) {\n int count=1;\n int max=arr.get(0);\n HashMap<Integer,Integer> map=new HashMap<>();\n for(int i=0;i<arr.size();i++) {\n \tif(map.containsKey(arr.get(i))) {\n \t\tmap.replace(arr.get(i), map.get(arr.get(i))+1);\n \t}else {\n \t\tmap.put(arr.get(i), count);\n \t}\n }\n \n int ans=0;\n for(Integer i:map.keySet()) {\n \t int n=map.get(i);\n \t if(n>max) {\n \t\t max=n;\n \t\t \tans=i;\n\n \t }\n }\n /*int comp[]=new int[256];\n for(int i=0;i<arr.size();i++){\n comp[arr.get(i)]++;\n }\n for(int i=0;i<comp.length;i++){\n if(comp[i]>max)\n max=comp[i];\n }*/\n return ans;\n }", "public static void main(String[] args) {\n int []a={1,2,1,2,1,2,2,1,2,1,2,2};\r\n int count=1;\r\n Arrays.sort(a); ///1 1 1 2 2 3 3 3 \r\n int n=a.length;\r\n int temp=0,dum=0,countaaa=1;\r\n for(int i=0;i<n-1;i++)\r\n {\r\n\t if(a[i]==a[i+1])\r\n\t {\r\n\t\t count++;//1 ///how many \r\n\t\t temp=a[i];//1///tamil nadu\r\n\t }\r\n\t else\r\n\t { \r\n\t\t if(x>=y)\r\n\t\t {\r\n\t\t\t if(a[i])\r\n\t\tdum=a[i];//1///andhra\r\n\t\tcountaaa=count;//2///how many\r\n\t\tcount=1;\r\n\t\t }\r\n\t }\r\n }\r\n System.out.println(countaaa);\r\n System.out.println(count);\r\n if(countaaa>count)\r\n\t System.out.println(\"A: \"+dum+\" count: \"+countaaa);\r\n else\r\n System.out.println(temp+\" \"+count);\r\n\t}", "static void minimumBribes(int[] q) {\nint count =0;\nboolean isprint = true;\nint first = 1;\nint second = 2;\nint third = 3;\n\n for(int i=0;i< q.length-1;i++){\n \n if (q[i] == first) {\n first = second;\n second = third;\n third++;\n }else if(q[i]== second){\n second = third;\n third++;\n count++;\n }else if(q[i]==third){\n third++;\n count++;\n count++;\n }else{\n isprint = false;\n }\n }\n\n // if((q[i-1]-q[i]) > 2){\n // System.out.println(\"Too chaotic\");\n // isprint = false;\n // break; \n // }else if((q[i-1]-q[i])==1){\n // count++;\n // }else if((q[i-1]-q[i])==2){\n // count+=2;\n // }\n \n //}\n if(isprint){\n System.out.println(count);\n }else{\n System.out.println(\"Too chaotic\");\n }\n }", "static void find(int[] x) {\n\t\tint currentIndex = 0;\n\t\tint count = 1;\n\t\tint prevValue = x[0];\n\t\tint prevCount = 0;\n\t\t\n\t\tfor (int i = 0; i < x.length-1; i++) {\n\t\t\tif(x[i] == x[i+1]) {\n\t\t\t\tcount++;\n\t\t\t}else {\n\t\t\t\tif(count > prevCount) {\n\t\t\t\t\tprevCount = count;\n\t\t\t\t\tprevValue = x[i];\n\t\t\t\t\tcount = 1;\n\t\t\t\t}\n\n\t\t\t\tcurrentIndex = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(count > prevCount) {\n\t\t\tprevCount = count;\n\t\t\tprevValue = x[currentIndex + 1];\n\t\t}\n\t\tSystem.out.println(String.format(\"\\nPhan tu %d xuat hien %d lan\", prevValue, prevCount));\n\t}", "public int removeDuplicatesMethod2(int[] nums) {\n \tint len = 0;\n \tfor(int num : nums) {\n \t\tif(len < 2 || num > nums[len - 2]) {\n \t\t\tnums[len++] = num;\n \t\t}\n \t}\n \treturn len;\n }", "int getRepeatCount();", "public static int bigStraightYahtzee(int... result) {\n\n Arrays.sort(result);\n\n int[] uniqueValues = IntStream.of(result).distinct().sorted().toArray();\n long noUniqVals = IntStream.of(uniqueValues).distinct().count();\n int score = 0;\n\n if (noUniqVals >= 5) {\n ArrayList<int[]> matchArrays = new ArrayList<>();\n matchArrays.add(new int[]{1, 2, 3, 4, 5});\n matchArrays.add(new int[]{2, 3, 4, 5, 6});\n\n ArrayList<int[]> resultSubArrays = new ArrayList<>();\n for (int i = 0; i < noUniqVals - 4; i++) {\n resultSubArrays.add(Arrays.copyOfRange(uniqueValues, i, i + 5));\n }\n\n for (int[] arr : resultSubArrays) {\n for (int[] match : matchArrays) {\n if (Arrays.equals(arr, match)) {\n score = 40;\n }\n\n }\n }\n }\n return score;\n }", "private static void findMultipleMissing(int[] arr, int count) {\n int missingCount = count - arr.length;\n BitSet bitSet = new BitSet(count);\n\n for (int i : arr) {\n bitSet.set(i - 1);\n }\n\n int lastMissingIndex = 0;\n for (int i = 0; i < missingCount; i++) {\n lastMissingIndex = bitSet.nextClearBit(lastMissingIndex);\n System.out.println(++lastMissingIndex);\n }\n }", "public static int repeatedNumber(final List<Integer> a) {\n\t\tint n = a.size();\n\t\tHashMap<Integer, Integer> map_a=new HashMap<>();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tmap_a.put(a.get(i), map_a.getOrDefault(a.get(i), 0)+1);\n\t\t}\n\t\tSystem.out.println(map_a);\n\t\tfor(int i:map_a.values()) {\n\t\t\tif(i>n/3)\n\t\t\t{\n\t\t\t\tSet<Integer> set= getKeysByValue(map_a, i);\n\t\t\t\treturn set.stream().findFirst().get();\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t\t\n\t\t//solution at site\n\n\t /* int num;\n\t int n = A.size();\n\t Collections.sort(A);\n\t for (int i = 0; i < n;) {\n\t int freq = 0;\n\t num = A.get(i);\n\t while (i < n && A.get(i) == num) {\n\t freq++;\n\t i++;\n\t }\n\t if (freq * 3 > n)\n\t return num;\n\t }\n\t return -1;*/\n\t}", "public static int ombyttinger(int[] a) {\n int count=0;\n for (int i = 0; i < a.length-1; i++) {\n if (a[i] > a[i+1]) {\n int temp = a[i];\n a[i] = a[i+1];\n a[i+1] = temp;\n count++;\n\n }\n }\n return count;\n }", "int getNumberOfDetectedDuplicates();", "@Test\n public void findFrequency(){\n\n int[] input = {2,2,4,12,7,2,7,2,7,7};\n List<Integer> expected = new ArrayList<>(Arrays.asList(4,12));\n assertEquals(expected , Computation.findOdd(input));\n }", "public static void main(String[] args) {\n List<Integer> nums = new ArrayList<>(Arrays.asList(5, 7, 3, 7, 2, 8, 3, 7, 2));\n //Map<Integer, Integer> numCount = countOccurance(nums);\n Map<Integer, Long> numCount = nums.stream().collect(Collectors.groupingBy(num -> num, Collectors.counting()));\n Set<Integer> numSet = new LinkedHashSet<>(nums);\n numSet.forEach(num -> System.out.println(num + \" \" + numCount.get(num)));\n }", "public int removeDuplicates(int[] nums) {\n int integer=0;\n for (int i=0; i<nums.length; i++){\n if (nums[i]!=nums[integer]){\n integer++;\n nums[integer]=nums[i];\n }\n }\n return integer+1;\n }", "static void getdonein(int arr[], int val) {\n\t\tint div = arr.length / val;\n\t\tint count = 0;\n\t\tArrayList<ArrayList<Integer>> finalarray = new ArrayList<ArrayList<Integer>>();\n\t\tCollections.sort(finalarray, (a, b) -> {\n\t\t\treturn b.get(0) - a.get(0);\n\t\t});\n\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tArrayList<Integer> store = new ArrayList<Integer>();\n\t\t\tstore.add(arr[i]);\n\t\t\tif (count == val - 1) {\n\t\t\t\tfinalarray.add(new ArrayList<Integer>(store));\n\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\t\tPriorityQueue<Integer> pr = new PriorityQueue<Integer>();\n\n\t\tfor (int i = 0; i < finalarray.size(); i++) {\n\t\t\tpr.add(finalarray.get(i).get(0));\n\t\t\tfinalarray.get(i).remove(0);\n\t\t}\n\n\t\tArrayList<Integer> finalstore = new ArrayList<Integer>();\n\t\twhile (!finalarray.isEmpty()) {\n\t\t\tfor (int i = 0; i < finalarray.size(); i++) {\n\t\t\t\tif (pr.peek() <= finalarray.get(i).get(0)) {\n\t\t\t\t\tfinalstore.add(pr.poll());\n\t\t\t\t\tpr.add(finalarray.get(i).get(0));\n\t\t\t\t\tfinalarray.get(i).remove(0);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(finalstore);\n\n\t}", "int[] getGivenByOrder();", "public int removeDuplicates(int[] nums) {\n int repeat = 2;\n if (nums.length <= 2) {\n return nums.length;\n }\n int i = 1, j = 1;\n int count = 1;\n while (j < nums.length) {\n if (nums[j] != nums[j - 1]) {\n count = 1;\n nums[i] = nums[j];\n i++;\n } else {\n if (count < repeat) {\n nums[i] = nums[j];\n i++;\n count++;\n }\n }\n j++;\n }\n return i;\n }", "void reduceStarsBy(final int amount);", "public int findDuplicatesD(int[] input) {\n HashSet<Integer> nonDuplicates = new HashSet<>();\n for (int value : input) {\n nonDuplicates.add(value);\n }\n return input.length - nonDuplicates.size();\n }", "public static void main(String[] args) {\n\n\n int[] r = {1, 2, 3, 1, 2, 3, 10, 20, 30};\n\n int total = 0;\n\n for (int i = 0; i < r.length; i++) {\n int count = 0;\n\n for (int j = 0; j < r.length; j++) {\n if (r[i] == r[j]) {\n count++;\n }\n }\n if (count > 1) {\n total++;\n }\n\n }\n System.out.println(total);\n\n }", "private static List<Integer> nextInt() {\n\t\tRandom rnd = new Random();\n\t\tList<Integer> l = new ArrayList<Integer>();\n\t\tfor (;;) {\n\t\t\tfinal int r = rnd.nextInt(5);\n\t\t\tif (!l.contains(r)) {\n\t\t\t\tl.add(r);\n\t\t\t}\n\t\t\tif (l.size() == 5)\n\t\t\t\treturn l;\n\t\t}\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int k = in.nextInt();\n ArrayList<Integer> list = new ArrayList<>();\n for(int arr_i=0; arr_i < n; arr_i++){\n int integer = in.nextInt();\n list.add(new Integer(integer));\n }\n in.close();\n\n\n\n if(k == 1){\n System.out.println(k);\n return;\n }\n\n for(int i = 0;i < list.size();i ++){\n int x = list.get(i) % k;\n list.set(i, x);\n }\n\n int[] kx = new int[k];\n for(int i = 0;i < k;i ++){\n kx[i] = 0;\n }\n for(int i = 0;i < list.size();i ++){\n int x = list.get(i);\n kx[x] ++;\n }\n\n\n int num = 0;\n int A = 0;\n if(k % 2 == 0){\n A = k / 2 - 1;\n }else{\n A = k / 2;\n }\n if(kx[0] != 0){\n num += 2;\n }\n for(int i = 1; i <= A;i ++){\n if(kx[i] >= kx[k - i]){\n num += kx[i];\n }else {\n\n num += kx[k - i];\n }\n\n }\n System.out.println(num);\n }", "public static int ulam(int n) {\n\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n\n int i = 3;\n while (list.size() < n) {\n\n int count = 0;\n for (int j = 0; j < list.size() - 1; j++) {\n\n for (int k = j + 1; k < list.size(); k++) {\n if (list.get(j) + list.get(k) == i)\n count++;\n if (count > 1)\n break;\n }\n if (count > 1)\n break;\n }\n if (count == 1)\n list.add(i);\n i++;\n }\n return list.get(n - 1);\n }", "int getMaxCount();", "int getMaxCount();", "public int findPairs(int[] nums, int k) {\n if (k < 0) {\n return 0;\n }\n Set<Integer> unique = new HashSet<>();\n Set<Integer> duplicate = new HashSet<>();\n for (int n : nums) {\n if (!unique.add(n)) {\n duplicate.add(n);\n }\n }\n if (k == 0) {\n return duplicate.size();\n }\n int count = 0;\n for (int v : unique) {\n if (unique.contains(v + k)) {\n count += 1;\n }\n }\n return count;\n }", "static int jumpingOnClouds(int[] arr) {\n int i = 0;\n int count = 0;\n while (i < arr.length - 2) {\n if (arr[i + 1] == 1) {\n count++;\n i += 2;\n } else if (arr[i + 2] == 1) {\n count++;\n i += 1;\n } else {\n count++;\n i += 2;\n }\n }\n //System.out.println(count);\n if (i<arr.length-1)\n count++;\n return count;\n\n\n }", "Object getNumberMatched();", "public int findDuplicatesC(int[] input) {\n TreeSet<Integer> nonDuplicates = new TreeSet<>();\n for (int value : input) {\n nonDuplicates.add(value);\n }\n return input.length - nonDuplicates.size();\n }", "static int beautifulTriplets(int d, int[] arr) {\n int result = 0;\n\n for (int i = 0; i < arr.length; i++) {\n int prev = arr[i];\n int arrCount = 1;\n\n for (int j = i+1; j < arr.length; j++) {\n if (prev + d == arr[j]) {\n arrCount++;\n prev = arr[j];\n if (arrCount == 3) {\n result++;\n break;\n }\n }\n }\n }\n\n return result;\n }", "int minOperations(int[] arr) {\n // Write your code here\n Set<String> set = new HashSet<>();//store visited string\n Queue<String> queue = new LinkedList<>(); // store next strs\n int counter = 0;\n\n queue.offer(getKey(arr));\n set.add(getKey(arr));\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n List<String> curs = new ArrayList<>();\n while (size > 0) {\n curs.add(queue.poll());\n size--;\n }\n\n for(String cur : curs) {\n if (isIncreasing(cur)) {\n return counter;\n }\n\n for(int i = 0; i < cur.length(); i++) {\n String next = reverseString(cur, i);\n if (!set.contains(next)) {\n set.add(next);\n queue.offer(next);\n }\n }\n }\n\n counter++;\n }\n\n return counter;\n }", "public List<Integer> getRepetitiveElementsUnBounded(int[] array) {\n if (array== null) return null;\n\n List<Integer> result = new ArrayList<>();\n Arrays.sort(array); // complexity: O(nlogn)\n\n int startIndex = 0;\n // O(n)\n while (startIndex < array.length) {\n while (startIndex+1 < array.length && array[startIndex] == array[startIndex+1]){\n startIndex++;\n }\n if (startIndex-1 >= 0 && array[startIndex-1] == array[startIndex]) {\n result.add(array[startIndex]);\n }\n startIndex++;\n }\n return result;\n }", "public static void main(String[] args) {\n\r\n\t\tint arr[]={2, 3, 2, 4, 5, 12, 2, 3, 3, 3, 12};\r\n\t\tMap<Integer,Data> map = new HashMap<>();\r\n\t\tfor(int a :arr)\r\n\t\t{\r\n\t\t\tif(map.containsKey(a))\r\n\t\t\t{\r\n\t\t\t\tmap.get(a).incrementFrequency();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmap.put(a, new Data(a));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSet<Data> sortedData = new TreeSet<>(map.values());\r\n\t\tList<Integer> result = new ArrayList<>();\r\n\t\tfor(Data d : sortedData)\r\n\t\t{\r\n\t\t\tfor(int i=0;i<d.frequency;i++)\r\n\t\t\t\tresult.add(d.number);\r\n\t\t}\r\n\t\tSystem.out.println(result);\r\n\t}", "private static void findMissingAndDuplicateNumberFrom1toN(int[] input) {\n\t\tint len = input.length;\n\t\tint i = 0;\n\n\t\twhile (i < len) {\n\t\t\t//if its already in correct place\n\t\t\tif (input[i] == i + 1) {\n\t\t\t\ti++;\n\t\t\t\tcontinue;\n\t\t\t} else if (input[i] == input[input[i] - 1]) { //if the elment to be swapped with are same\n\t\t\t\ti++;\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tint temp = input[i];\n\t\t\t\tinput[i] = input[input[i] - 1];\n\t\t\t\tinput[temp - 1] = temp;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (input[i] != i + 1) {\n\t\t\t\tSystem.out.println(\"Missing number : \" + (i + 1));\n\t\t\t\tSystem.out.println(\"Duplicate number : \" + input[i]);\n\t\t\t}\n\t\t}\n\n\t}", "public static void main(String[] args) {\n Integer[] arr = {0,1,2};\n HashSet<Integer> IDs = new HashSet<>(Arrays.asList(arr));\n //books.forEach(e-> IDs.add(e.getId()));\n int i=-1;\n while(i<Integer.MAX_VALUE){\n if (!IDs.contains(++i)) {\n System.out.println(i);\n break;\n }\n }\n System.out.println(-1);\n }", "int getInCount();", "public static void main(String[] args) {\r\n Scanner sc= new Scanner(System.in);\r\n int n = sc.nextInt();\r\n int[] arr = new int[n];\r\n //getting all the numbers\r\n for(int i=0;i<n;i++)\r\n arr[i]=sc.nextInt();\r\n //assigning 0th element as unique\r\n int unique=0;\r\n unique=arr[0];\r\n for(int i=1;i<arr.length;i++)\r\n {\r\n unique^=arr[i];\r\n }\r\n System.out.println(unique);\r\n\r\n\t}", "public int numberOfOccorrence();", "@Test\n public void test_kmax_Integer_Collection5() {\n List<Integer> i5 = new ArrayList<Integer>();\n i5.add(3);\n i5.add(7);\n i5.add(3);\n i5.add(3);\n i5.add(1);\n i5.add(9);\n i5.add(1);\n i5.add(1);\n i5.add(1);\n i5.add(5);\n int actual = Selector.kmax(i5, 5, new CompareIntegerAscending());\n int expected = 1;\n Assert.assertEquals(\"Failed in duplicate, size 10 list\", expected, actual);\n }", "public static List<Integer> findDisappearedNumbers_best(int[] nums) {\n List<Integer> ans = new ArrayList<>();\n int len = nums.length;\n for (int num : nums) {\n int x = (num - 1) % len;\n nums[x] += len;\n }\n\n for (int i = 0; i < len; i++) {\n if (nums[i] <= len) {\n ans.add(i + 1);\n }\n }\n\n return ans;\n }", "public static int pickingNumbers(List<Integer> a) {\n \n int[] freq = new int[100]; \n int max = 0;\n \n for(int i = 0; i < a.size(); i++){\n freq[a.get(i)]++;\n }\n \n for(int i = 0; i < 99; i++){\n if((freq[i] + freq[i+1]) > max)\n max = freq[i] + freq[i+1];\n }\n \n return max;\n }", "public static void main(String[] args) {\n int[] listOfNumbers = {1, 11, 34, 11, 52, 61, 1, 34};\n System.out.println(Arrays.toString(unique(listOfNumbers)));\n // should print: `[1, 11, 34, 52, 61]`\n\n\n }", "public static void main(String[] args) {\n\t\tint a[] = {4,4,4,5,5,5,6,6,6,9};\n\t\t\n\t\tArrayList<Integer> ab = new ArrayList<Integer>();\n\t\t\n\t\tfor(int i=0; i<a.length; i++)\n\t\t{\n\t\t\tint k =0;\n\t\t\tif(!ab.contains(a[i]))\n\t\t\t{\n\t\t\t\tab.add(a[i]);\n\t\t\t\tk++;\n\t\t\t\tfor(int j=i+1; j<a.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif(a[i]==a[j])\n\t\t\t\t\t{\n\t\t\t\t\t\tk++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(a[i]);\n\t\t\t//System.out.println(k);\n\t\t\tif(k==1)\n\t\t\t\tSystem.out.println(a[i] +\" is unique number \");\n\t\t}\n\t\t\n\t}", "public ArrayList<Integer> repeatedNumber(final List<Integer> a) {\n long sum = 0, ssum = 0;\n for(int i = 0 ; i < a.size(); i++){\n long curi = i+1; // importnt to prevent overflow.\n long curn = a.get(i); // importnt to prevent overflow.\n sum += curn - curi;\n ssum +=curn*curn - curi*curi ;\n }\n ssum /= sum; // A + B \n long first = (sum + ssum)/2;\n long second = (ssum - first); \n ArrayList<Integer> result = new ArrayList<>();\n result.add((int)first);\n result.add((int)second);\n return result;\n }", "public List<Integer> majorityElementBruteForce(int[] nums) {\n List<Integer> result=new ArrayList<Integer>();\n int num=0,count=0;\n for(int i=0;i<nums.length;i++){\n num=nums[i];\n count=0;\n for(int j=0;j<nums.length;j++){\n if(nums[j]==num)count++;\n }\n if(count>nums.length/3 && !result.contains(num)){\n result.add(num);\n }\n }\n return result;\n \n }", "public int removeDuplicatesV2(int[] values) {\n // i represents the pointer to the next value\n int n = 0;\n\n // j represents the pointer for the next value to examine\n for (int j = 0; j < values.length; j++) {\n int v = values[j];\n values[n++] = v;\n\n for (; j < values.length && values[j] == v; j++) {\n }\n j--;\n }\n\n return n;\n }", "public static int majorityIn2N(int[] a)\n {\n int i=0;\n //case1: check if the array is like this: 1, 1, 2, 3, 4, 1...\n //this case is the opposite one to the second one\n for(; i<a.length-1; i++)\n {\n if(a[i]==a[i+1])\n return a[i];\n }\n //case2: if we get here, the array must be like 1, 3, 1, 4, 1, 5\n for(i=0; i<a.length-2; i++)\n {\n if(a[i]==a[i+2])\n return a[i];\n }\n return Integer.MIN_VALUE;\n }", "public static void main(String[] args) {\n\t\tint d;\n\t\tint index = -1;\n\t\tint count=0;\n\t\tint max=1;\n List <Integer>list=new ArrayList<Integer>();\n Scanner input = new Scanner(System.in);\n d=input.nextInt();\n while(d!=0)\n {\n \tlist.add(d);\n \td=input.nextInt();\n }\n System.out.println(list.get(index)+\"出现了\"+max+\"次\");\n //System.out.println(index);\n //求其他出现最多次数的字符。\n \n\t}", "static void countDistinct(int arr[], int k) \n {\n HashMap<Integer, Integer> hM = new HashMap<Integer, Integer>(); \n \n // Traverse the first window and store count \n // of every element in hash map \n for (int i = 0; i < k; i++) \n hM.put(arr[i], hM.getOrDefault(arr[i], 0) + 1); \n \n // Print count of first window \n System.out.println(hM.size()); \n \n // Traverse through the remaining array \n for (int i = k; i < arr.length; i++) { \n \n // Remove first element of previous window \n // If there was only one occurrence \n if (hM.get(arr[i - k]) == 1) { \n hM.remove(arr[i - k]); \n } \n \n else // reduce count of the removed element \n hM.put(arr[i - k], hM.get(arr[i - k]) - 1); \n \n // Add new element of current window \n // If this element appears first time, \n // set its count as 1, \n hM.put(arr[i], hM.getOrDefault(arr[i], 0) + 1); \n \n // Print count of current window \n System.out.println(hM.size()); \n } \n }", "@Test\r\n public void repeatedValuesTest() {\r\n int[] unsorted = new int[]{1,33,1,0,33,-23,1,-23,1,0,-23};\r\n int[] expResult = new int[]{-23,-23,-23,0,0,1,1,1,1,33,33};\r\n int[] result = arraySorter.sort(unsorted);\r\n assertArrayEquals(expResult, result);\r\n }", "int fillCount();", "int countSusbset(int n, int w){\n //i.e target sum achieved\n if(w == 0){\n return 1;\n }\n \n //if sum not achieved and no items left\n if(n == 0){\n return 0;\n }\n \n //if item is gretart than target weight, we have to exclude it\n if(arr[n-1] > w){\n return countSusbset(n-1, w)\n }else{ \n return countSusbset(n-1, w) + countSusbset(n-1, w - arr[n-1]);\n }\n}", "static ArrayList<Integer> getMajortiy(int arr[]){\n int num1=-1, num2=-1, count1=0, count2=0;\n for(int i:arr){\n if(i==num1) count1++;\n else if(i ==num2) count2++;\n else if(count1==0){\n num1=i;\n count1=1;\n }\n else if(count2==0){\n num2=i;\n count2=1;\n }\n else{\n count1--;\n count2--;\n }\n }\n count1=0; count2=0;\n for(int i:arr){\n if(i==num1) count1++;\n if(i==num2) count2++;\n }\n ArrayList<Integer>res= new ArrayList<>();\n if(count1>arr.length/3) res.add(num1);\n if(count2>arr.length/3) res.add(num2);\n return res;\n\n }", "int getBlockNumbers(int index);", "public static List<Integer> getRepetitiveElements(int[] array) {\n if (array == null) {\n return null;\n }\n\n ArrayList<Integer> result = new ArrayList<>();\n int toVisit;\n int nextStep;\n\n // for loop to iterate through array\n for (int i = 0; i < array.length; i++) {\n if (array[i] <= 0) { // duplicate or visited, no point to handle it anymore\n continue;\n // 0 for duplicate\n // -1 for visited\n // if ith index <-> number i has been visited, we can just skip this entry\n\n } else {\n // ith index <-> number i is not visited\n // so read the value of array[i]\n toVisit = array[i]; // starting from unexplored i index value\n // this logic keep exploring til reaching a visited one\n while(array[toVisit] > 0) {\n nextStep = array[toVisit]; // record nextPos\n array[toVisit] = -1; // mark curPos as visited\n // update curPos\n toVisit = nextStep;\n }\n\n // array[toVisit] either -1 or 0\n // -1: meaning visited before\n // 0: not only visited, but duplicate found already\n if (array[toVisit] != 0) {\n array[toVisit] = 0; // mark once\n result.add(toVisit);\n }\n }\n }\n\n return result;\n }", "public static void main(String[] args) {\n int [] arry = {1,2,2,2,3,4,5,5,6,7,8,9,};\n HashMap<Integer,Integer> hashMap = new HashMap<>();\n for(int i =0; i<arry.length;i++){\n if(hashMap.containsKey(arry[i])) {\n hashMap.put(arry[i], hashMap.get(arry[i]) + 1);\n }\n else {\n hashMap.put(arry[i],1);\n }\n }\n Set<Map.Entry<Integer, Integer>> set=hashMap.entrySet();\n for(Map.Entry<Integer,Integer> in:set){\n if (in.getValue()>1){\n System.out.println(in.getValue());\n }\n }\n\n\n\n }", "public static void main(String[] args) {\n int[] nums = {0,0,1,1,1,2,2,3,3,4};\n int val = removeDuplicates(nums);\n System.out.println(val);\n\t}", "public int findDuplicate(int[] nums) {\n int low = 1, high = nums.length - 1;\n while (low < high) {\n int mid = low + (high - low) / 2;\n int cnt = 0;\n for (int n : nums) {\n if (n <= mid) {\n cnt++;\n }\n }\n if (cnt <= mid) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return low;\n\n }", "public static int smallStraightYahtzee(int... result) {\n\n Arrays.sort(result);\n\n int[] uniqueValues = IntStream.of(result).distinct().sorted().toArray();\n long noUniqVals = IntStream.of(uniqueValues).distinct().count();\n\n int score = 0;\n\n if (noUniqVals >= 4) {\n\n ArrayList<int[]> matchArrays = new ArrayList<>();\n matchArrays.add(new int[] {1, 2, 3, 4});\n matchArrays.add(new int[] {2, 3, 4, 5});\n matchArrays.add(new int[] {3, 4, 5, 6});\n\n ArrayList<int[]> resultSubArrays = new ArrayList<>();\n for (int i = 0; i < noUniqVals - 3; i++) {\n int[] testArr = Arrays.copyOfRange(uniqueValues, i, i + 4);\n resultSubArrays.add(testArr);\n }\n\n for (int[] arr : resultSubArrays) {\n for (int[] match : matchArrays) {\n if (Arrays.equals(arr, match)) {\n score = 30;\n }\n }\n }\n }\n return score;\n }", "public int repeatedNTimes(int[] A) {\n List<Integer> visited = new ArrayList<>();\n int result = A[0];\n for (int i = 0; i < A.length; i++) {\n if (!visited.contains(A[i])) {\n visited.add(A[i]);\n } else {\n result = A[i];\n break;\n }\n }\n return result;\n }", "public static void main(String args[])\n {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int ar[] = new int[n];\n for(int i=0 ; i<n ; i++)\n {\n \n ar[i] = in.nextInt(); \n }\n for(int j=1; j<=n;j++)\n { int count =0;\n for(int k=0 ; k<n ; k++) \n { \n if(j==ar[k])\n count++;\n \n }\n if(count == 0)\n {\n System.out.print(j); \n \n }\n }\n}", "BigInteger getCount();", "private int hashFunc2(String word) {\n int hashVal = word.hashCode();\n hashVal = hashVal % arraySize;\n\n if (hashVal < 0) {\n hashVal += arraySize;\n }\n\n // Research shows that you can use a Prime number Less than the array size to calculate the step value.\n // Prime Number 3 arbitrarily chosen.\n return 3 - hashVal % 3;\n }", "public int findDuplicatesE(int[] input) {\n int duplicates = 0;\n for (int i = 0; i < input.length; i++) {\n for (int j = i + 1; j < input.length; j++) {\n if (input[i] == input[j]) {\n duplicates++;\n break;\n }\n }\n }\n return duplicates;\n }", "public int repeatedNumber(final List<Integer> a) {\n\t List<Integer> B = new ArrayList<Integer>(a);\n\t ArrayList<Integer> result=new ArrayList<Integer>();\n int len = B.size();\n \n int repeated = -1;\n //int indexOfMissing = -1;\n for (int i = 0; i < len; i++) {\n // until B[i] stores the right number (i.e. i + 1)\n // or we meet the duplicated number\n while (B.get(i) != i + 1) {\n int num = B.get(i);\n if (num == B.get(B.get(i) -1)) {\n // met with duplicated number\n repeated = B.get(num - 1);\n //indexOfMissing = i;\n break;\n }\n // swap B[i] with B[num - 1]\n int temp = B.get(i);\n B.set(i, B.get(num - 1));\n B.set(num - 1, temp);\n }\n }\n \n //result.add(repeated);\n //result.add(indexOfMissing + 1);\n return repeated;\n\t}", "int reps() {\n\tint b[] = new int[64];\n\tint c = 0; /*\n\t* count of squares that are different from the current\n\t* position\n\t*/\n\tint r = 0; /* number of repetitions */\n\n\t/* is a repetition impossible? */\n\tif (fifty <= 3)\n\treturn 0;\n\n\t/* loop through the reversible moves */\n\tfor (int i = hply - 1; i >= hply - fifty - 1; --i) {\n\tif (++b[histDat[i].m.getFrom()] == 0)\n\t--c;\n\telse\n\t++c;\n\tif (--b[histDat[i].m.getTo()] == 0)\n\t--c;\n\telse\n\t++c;\n\tif (c == 0)\n\t++r;\n\t}\n\n\treturn r;\n\t}", "public static void inversecount(int a[]) {\r\n int count=0;\r\n for(int i=0;i<a.length;i++){\r\n for(int j=i+1;j<a.length;j++)\r\n if(a[i]>a[j]){\r\n int temp=a[i];\r\n a[i]=a[j];\r\n a[j]=temp;\r\n count++;\r\n }\r\n }\r\n System.out.println(\"The Answer is: \");\r\n System.out.println(count);//The final answer is printed using this line\r\n }", "int getMarbles(int remainingMarbles) ;", "public int collect(int n){\r\n\t\tint counter=0;\r\n\t\tint distinctValue=0;\r\n\t\tboolean[] collectedvalue=new boolean[n];\r\n\t\twhile(distinctValue<n){\r\n\t\t\tint v=generateRandomCoupon(n);\r\n\t\t\tcounter++;\r\n\t\t\tif(collectedvalue[v]){\r\n\t\t\t\tdistinctValue++;\r\n\t\t\t\tcollectedvalue[v]=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn counter++;\r\n\t}", "public void findHighestConsecutive(){\r\n\r\n int maxSame = 1;\r\n int tempSame = 1;\r\n\r\n int testArr[] = getIntArr();\r\n\r\n for(int i = 0; i < testArr.length; i++){\r\n\r\n for(int j = i + 1; j < testArr.length; j++){\r\n if(testArr[i] == testArr[j]){\r\n tempSame++;\r\n }\r\n }\r\n if(tempSame > maxSame) {\r\n maxSame = tempSame;\r\n }\r\n\r\n tempSame = 1;\r\n }\r\n\r\n setHighestConsecutive(maxSame);\r\n }", "static void findTwoMissingNumber(int a[]) {\n int miss1 = 0;\n int miss2;\n int miss1miss2 = 0;\n\n int size = a.length;\n for (int i = 0; i < size; i++) {\n miss1miss2 ^= ((i + 1) ^ a[i]);\n }\n\n miss1miss2 ^= (size + 1);\n miss1miss2 ^= (size + 2);\n\n int diff = miss1miss2 & (-miss1miss2);\n\n for (int i = 0; i < size; i++) {\n if (((i + 1) & diff) > 0)\n miss1 ^= (i + 1);\n\n if ((a[i] & diff) > 0)\n miss1 ^= a[i];\n }\n\n if (((size + 1) ^ diff) > 0)\n miss1 ^= (size + 1);\n\n if (((size + 2) ^ diff) > 0)\n miss1 ^= (size + 2);\n\n miss2 = miss1miss2 ^ miss1;\n\n System.out.println(miss1);\n System.out.println(miss2);\n }", "public static void main(String[] args) {\n int[] arr={1,2,2,2,3,4,4,45}; // 1 3 45\n int[] array={};\n int j=0;\n for (int each:arr){\n int count=0;\n for (int i = 0; i <arr.length ; i++) {\n if (each==arr[i]){\n count++;\n }\n }\n if (count==1){\n System.out.println(each+\" \");\n // array[j++]=each;\n }\n }\n System.out.println(Arrays.toString(array));\n }", "public int solution(int[] A) {\n Map<Integer, Integer> map = new HashMap<>();\n\n// for (int i = 0; i < A.length; i++) {\n// map.computeIfPresent(A[i], (key, value) -> ++value);\n// map.putIfAbsent(A[i], 1);\n// }\n IntStream.range(0, A.length)\n .forEach(i -> {\n map.computeIfPresent(A[i], (key, value) -> ++value);\n map.putIfAbsent(A[i], 1);\n });\n\n // TODO: case01. entrySet 2021/04/22 2:03 오후\n map.entrySet().stream()\n .filter(key -> (map.get(key.getKey()) % 2) == 1)\n .forEach(entry -> {\n System.out.println(entry.getKey());\n });\n\n // TODO: case02. entrySet 2021/04/22 2:03 오후\n map.entrySet().stream()\n .map(Map.Entry::getKey)\n .filter(key -> map.get(key) % 2 == 1)\n .forEach(System.out::println);\n\n // TODO: case03. keySet 2021/04/22 2:04 오후\n map.keySet().stream()\n .filter(value -> map.get(value) % 2 == 1)\n .forEach(System.out::println);\n\n // TODO: case04. keySet 2021/04/22 2:04 오후\n return map.keySet().stream()\n .filter(value -> map.get(value) % 2 == 1)\n .findFirst()\n .get();\n\n\n// int result = 0;\n// for (Integer i : map.keySet()) {\n// int value = map.get(i);\n//\n// System.out.println(value);\n// if (value % 2 == 1) {\n// result = i;\n// break;\n// }\n// }\n//\n// return result;\n }", "public int findDuplicate(int[] nums) {\n int max = Integer.MIN_VALUE, min = Integer.MAX_VALUE;\n for(int num : nums){\n max = Math.max(max, num);\n min = Math.min(min, num);\n }\n\n int l = min, r = max;\n while(l < r){\n int mid = l + (r-l)/2;\n\n int cnt = 0;\n for(int num : nums){\n if(num <= mid) ++cnt;\n }\n\n if(cnt <= mid) l = mid+1;\n else r = mid;\n }\n\n return l;\n }", "LengthDistinct createLengthDistinct();", "public static boolean find3Numbers(int A[], int n, int X) { \n \n // Your code \n for(int i=0;i<n-2;i++)\n {\n HashSet<Integer> set = new HashSet<>();\n int toFind=X-A[i];\n for(int j=i+1;j<n;j++)\n {\n if(set.contains(toFind-A[j]))\n {\n return true;\n }\n set.add(A[j]);\n }\n }\n return false;\n }", "public int findRepeatNumber(int[] nums) {\n for(int i = 0;i<nums.length;i++){\n while(nums[i]!=i){\n if(nums[i]==nums[nums[i]]) {\n return nums[i];\n }\n else{\n int tmp = nums[nums[i]];\n nums[nums[i]] = nums[i];\n nums[i]= tmp;\n }\n }\n }\n return -1;\n }", "int countDuplicateNo(int a[], int x) {\n\t\tint firstOccurrence = firstOccurrence(a, x);\n\t\tint lastOccurrence = lastOccurrence(a, x);\n\t\treturn (lastOccurrence - firstOccurrence) + 1;\n\t}", "public int[] coldN(ArrayList<LottoDay> list)\n\t{ \n\t\tint low=200;//set low to 200\n\t\tint[] numF = new int [48]; //create array of occurrences\n\t\tint[] check = new int [5]; //create an array for the first five numbers and the five lowest numbers\n\t\tint counter =0; //counts number of occurrences\n\t\t//cold numbers for 1-47\n\t\tfor(int i=0; i<list.size();i++)\n\t\t{\n\t\t\tone = list.get(i);//get object\n\t\t\tcheck = one.getWNum();//store the 5 lotto numbers\n\t\t\tfor(int j=0; j<numF.length;j++)\n\t\t\t{\n\t\t\t\tfor(int k =0; k<check.length;k++)\n\t\t\t\t{\n\t\t\t\t\t//if lotto number equals the index\n\t\t\t\t\tif(check[k]==j)\n\t\t\t\t\t{\n\t\t\t\t\t\tcounter++; //add one to counter\n\t\t\t\t\t\tnumF[j]=counter+numF[j];//add one to occurrence\n\t\t\t\t\t\tcounter=0;//reset counter\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//check for lowest number\n\t\tfor(int j=0; j<check.length; j++)\n\t\t{\n\t\t\tfor(int i=0; i<numF.length;i++)\n\t\t\t{\n\t\t\t\t//occurrence isn't zero and is lower than low\n\t\t\t\tif(numF[i]<low &&numF[i]!=0)\n\t\t\t\t{\n\t\t\t\t\tlow = numF[i]; //set low to new low of occurrence\n\t\t\t\t\tcheck[j]=i; //store new low occurrence\n\t\t\t\t\tindex=i; //store index of occurrence\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tlow=200;//reset low\n\t\t\tnumF[index]=0;//sets the lowest occurrence to zero\n\n\t\t}\n\n\n\n\t\treturn check;//return 5 lowest numbers\n\n\n\t}", "public static void main(String[] args) {\n\t\tint a[] = {3,4,4,6,1,4,4};\n\t\tint counter[] = new int[5];\n\t\tint max_counter = 0;\n\t\tint start_line = 0;\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t\n\t\t\tint x = a[i] - 1;\n\t\t\t\n\t\t\tif(a[i] > counter.length) {\n\t\t\t\t//max counter\n\t\t\t\tstart_line = max_counter;\n\t\t\t}else {\n\t\t\t\tif(counter[x] < start_line) {\n\t\t\t\t\tcounter[x] = counter[x] + start_line;\n\t\t\t\t}\n\t\t\t\t\tcounter[x]++;\n\t\t\t\t\t\n\t\t\t\t\tif(counter[x] > max_counter) {\n\t\t\t\t\t\tmax_counter = counter[x];\n\t\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tfor(int i=0;i<counter.length;i++) {\n\t\t\tif(counter[i] < start_line) {\n\t\t\t\tcounter[i] = start_line;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(Arrays.toString(counter));\n\t\t\n\t\t\n\t}", "public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter the size of the array\");\n int n = sc.nextInt();\n int arr[] = new int[n];\n System.out.println(\"enter the elements in the array\");\n for (int i = 0; i < arr.length; i++) {\n arr[i] = sc.nextInt();\n }\n HashSet<Integer> set = new HashSet<Integer>();\n for (int k = 0; k < n; k++) {\n set.add(arr[k]);\n }\n LinkedList list = new LinkedList(set);\n for (int l = 0; l < list.size(); l++) {\n int val = ((Integer) list.get(l)).intValue();\n if (duplicate(arr, val) > 1)\n System.out.println(\"Occurence of \" + val + \" is \" + duplicate(arr, val));\n }\n }", "static int findMajority(int[] nums) {\n if (nums.length == 1) {//one element in array\n return nums[0];\n }\n\n Map<Integer, Integer> occurrencesCountMap = new HashMap<>();// element - times occured\n\n for (int n : nums) {//traverse nums\n\n if (occurrencesCountMap.containsKey(n) //if in map\n &&//and\n occurrencesCountMap.get(n) + 1 > nums.length / 2) {//times occurred +1 ( for current iteration ) > len/2\n\n return n;\n\n } else {//not in map yet\n\n occurrencesCountMap.put(n, occurrencesCountMap.getOrDefault(n, 0) + 1);//add 1 to existing , or inti with 1\n\n }\n }\n return -1;//no majority ( no one length/2 times occurred )\n }", "@Test\n public void test_kmin_Integer_Collection5() {\n List<Integer> i5 = new ArrayList<Integer>();\n i5.add(3);\n i5.add(7);\n i5.add(3);\n i5.add(3);\n i5.add(1);\n i5.add(9);\n i5.add(1);\n i5.add(1);\n i5.add(1);\n i5.add(5);\n int actual = Selector.kmin(i5, 2, new CompareIntegerAscending());\n int expected = 3;\n Assert.assertEquals(\"Failed in duplicate, size 10 list\", expected, actual);\n }", "static int uniqueNumbers(int arr[], int n)\n {\n // Sorting the given array\n Arrays.sort(arr);\n\n // This array will store the frequency\n // of each number in the array\n // after performing the given operation\n int freq[] = new int[n + 2];\n\n // Initialising the array with all zeroes\n for(int i = 0; i < n + 2; i++)\n freq[i] = 0;\n\n // Loop to apply operation on\n // each element of the array\n for (int x = 0; x < n; x++) {\n\n // Incrementing the value at index x\n // if the value arr[x] - 1 is\n // not present in the array\n if (freq[arr[x] - 1] == 0) {\n freq[arr[x] - 1]++;\n }\n\n // If arr[x] itself is not present, then it\n // is left as it is\n else if (freq[arr[x]] == 0) {\n freq[arr[x]]++;\n }\n\n // If both arr[x] - 1 and arr[x] are present\n // then the value is incremented by 1\n else {\n freq[arr[x] + 1]++;\n }\n }\n\n // Variable to store the number of unique values\n int unique = 0;\n\n // Finding the unique values\n for (int x = 0; x <= n + 1; x++) {\n if (freq[x] != 0) {\n unique++;\n }\n }\n\n // Returning the number of unique values\n return unique;\n }", "public int findDuplicate(int[] nums) {\n int low = 1;\n int high = nums.length - 1;\n while (low <= high) {\n int mid = low + (high - low) / 2;\n int count = 0;\n for (int num : nums) {\n if (num <= mid) {\n count++;\n }\n }\n if (count <= mid) {\n low = mid + 1;\n } else {\n high = mid - 1;\n }\n }\n return low;\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tList<Integer> nums = new ArrayList<>();\r\n\t\t\r\n\t\tnums.add(10);nums.add(10);nums.add(10);nums.add(8);\r\n\t\tnums.add(11);nums.add(10);nums.add(10);nums.add(10);\r\n\r\n\t\tSystem.out.println(nums);\r\n\t\t\r\n\t\tList<Integer> unique1 = new ArrayList<>(); \r\n\t\t\r\n\t\t\r\n\t\t // find unique NON DUPLICATE VALUES\r\n\t\tfor(Integer num: nums) {\r\n\t\t\tif(!unique1.contains(num)) { // if unique1 doesn't contains num add it\r\n\t\t\t\tunique1.add(num); //<<<<<======= adding to unique1 num one by one\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(unique1.toString());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t \r\n\t\t\r\n\t\tList<Integer> unique2 = new ArrayList<>();\r\n\t\t\r\n\t\tfor(int i =0; i<nums.size(); i++) { // find unique ( appearence once)\r\n\t\t\tint count=0;\r\n\t\t\t\r\n\t\t\tInteger value = nums.get(i);\r\n\t\t\tfor(int k =0; k<nums.size(); k++) {\r\n\t\t\t\tif(nums.get(k)== value && i != k) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(count == 0) {\r\n\t\t\t\tunique2.add(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(unique2);\r\n\t\t\r\n\t}" ]
[ "0.59160846", "0.58387023", "0.5816487", "0.56862026", "0.5576033", "0.55192864", "0.54783005", "0.5467676", "0.54412645", "0.5436561", "0.5412211", "0.5403908", "0.5389534", "0.5383537", "0.5376291", "0.5353839", "0.5348272", "0.5345564", "0.53436744", "0.5339477", "0.5338164", "0.5334689", "0.5328332", "0.53279644", "0.5327758", "0.5318463", "0.5312602", "0.53094256", "0.53075194", "0.5305425", "0.5299141", "0.52950835", "0.52878743", "0.5269519", "0.52630436", "0.526152", "0.526097", "0.52468", "0.5245608", "0.5245608", "0.52434385", "0.52326614", "0.52242035", "0.5223756", "0.52057177", "0.52024156", "0.520201", "0.5183586", "0.5181668", "0.5164188", "0.51559496", "0.51538336", "0.51501244", "0.51460105", "0.51434654", "0.51354337", "0.5123971", "0.5118484", "0.51059216", "0.51025796", "0.51004505", "0.5096038", "0.50950664", "0.50917345", "0.5088763", "0.50867456", "0.50848544", "0.5084131", "0.50832057", "0.5082285", "0.5082195", "0.50704443", "0.5064721", "0.506147", "0.50554866", "0.50526744", "0.5051599", "0.50394225", "0.5037336", "0.50348055", "0.50232774", "0.50182295", "0.5012336", "0.5008387", "0.50082", "0.5007641", "0.500409", "0.5001848", "0.5000315", "0.4998544", "0.4998294", "0.4986978", "0.4986259", "0.49827704", "0.49809757", "0.49805605", "0.49805245", "0.49781153", "0.49756125", "0.49729565", "0.49726325" ]
0.0
-1
Creates a new instance of DefaultCommand.
public DefaultCommand(com.netflix.hystrix.HystrixCommand.Setter setter) { super(setter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initDefaultCommand() {\n \n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n\n setDefaultCommand(new DriveWithJoystick());\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n }", "public void initDefaultCommand()\n {\n }", "public Command() {\r\n\t\t// If default, use a local one.\r\n\t\tmYCommandRegistry = LocalCommandRegistry.getGlobalRegistryStatic();\r\n\t}", "public void initDefaultCommand() {\n\t}", "public void initDefaultCommand() {\n \n }", "public void initDefaultCommand() {\n\t\tsetDefaultCommand(new Intake());\n\t}", "public void initDefaultCommand()\n\t{\n\t}", "public void initDefaultCommand() \n {\n }", "protected void initDefaultCommand() {\n \t\t\n \t}", "protected void initDefaultCommand() {\n\t\tsetDefaultCommand(CommandBase.scs);\r\n\t}", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n\t\t// Don't do anything\n }", "public void initDefaultCommand() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\t\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "public void initDefaultCommand() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\t\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\t\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand(new MySpecialCommand());\r\n \tisPID = true;\r\n \trampingCoeff = 20;\r\n }", "@Override\n public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n\t\t// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\n\n\t\t// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\n\t\t// Set the default command for a subsystem here.\n\t\t// setDefaultCommand(new MySpecialCommand());\n\t}", "public void initDefaultCommand() {\n\t\tsetDefaultCommand(new HatchExtenderCommand());\n\t}", "public void initDefaultCommand() {\n \tsetDefaultCommand(new TestCommandEye());\n }", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new Climb());\n }", "public void initDefaultCommand() {\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n setDefaultCommand(new drive_w_joysticks());\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\t\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand(new MySpecialCommand());\r\n }", "public void initDefaultCommand() {\n setDefaultCommand(new IdentifyBestTarget());\n }", "public void initDefaultCommand() {\n setDefaultCommand(new shooterStart());\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new VelocityDriveCommand());\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n setDefaultCommand(new GearPickupClampIn());\n }", "@Override\n public void initDefaultCommand() {\n\n }", "public void initDefaultCommand() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n setDefaultCommand(new joystickDrive());\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\t\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \n \n \n }", "public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand(new MySpecialCommand());\r\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "@Override\n public void initDefaultCommand() \n {\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new DriveWithJoyStickCommand()); // TBD for Commandbased programming\n }", "public void initDefaultCommand() {\n\t\tsetDefaultCommand(new UserDriveCommand());\n\t}", "@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "public void initDefaultCommand() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\n setDefaultCommand(new EnableLight());\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "public void initDefaultCommand() {\n\t\tsetDefaultCommand(new JoystickLiftCommand());\n\t}", "public void initDefaultCommand() {\n\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \t\n }", "public void initDefaultCommand() {\n setDefaultCommand(new TankDrive());\n }", "public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand\r\n }", "public void initDefaultCommand() {\n \tsetDefaultCommand(new Drive());\n }", "public void initDefaultCommand() {\n // Set the default command, if any, for a subsystem here. Example:\n // setDefaultCommand(new MySpecialCommand());\n }", "public void initDefaultCommand() {\r\n setDefaultCommand(new TankDrive());\r\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n \tsetDefaultCommand(new DriveWithJoystick());\n }", "public void initDefaultCommand() {\n\t\t//System.out.println(\"initDefaultCommand()\");\n\t\tJoystickControlCommand JCC = new JoystickControlCommand();\n\t\tthis.setDefaultCommand(JCC);\n\t}", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new ValidTarget());\n }", "public void initDefaultCommand() {\n \tsetDefaultCommand(new SetCanMove());\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "public void initDefaultCommand() {\n \tsetDefaultCommand(new SetPlungerMove());\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "Command createCommand();", "@Override\n public void initDefaultCommand() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n \t\n setDefaultCommand(new VariableIntake());\n \n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n setDefaultCommand(new tankDrive());\n }", "@Override\n\tprotected void initDefaultCommand() {\n\t\tsetDefaultCommand(new ReverseBatterShot());\n\t}", "@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "public void initDefaultCommand() {\n super.setDefaultCommand(new DriveJoystick());\n }" ]
[ "0.7460105", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73746735", "0.73628", "0.7341253", "0.73259276", "0.7309798", "0.7254709", "0.72452074", "0.7237491", "0.72289354", "0.7192014", "0.71830547", "0.7183013", "0.7183013", "0.7183013", "0.7183013", "0.7183013", "0.7183013", "0.7168799", "0.7160375", "0.7133654", "0.71137255", "0.71137255", "0.71137255", "0.71137255", "0.71137255", "0.71137255", "0.71137255", "0.71101207", "0.710997", "0.7094035", "0.709367", "0.7063565", "0.70633274", "0.7029953", "0.7002532", "0.7001663", "0.6998294", "0.6994752", "0.6981051", "0.6968411", "0.6966029", "0.696524", "0.6959297", "0.69560975", "0.69548506", "0.69514376", "0.69397044", "0.69397044", "0.69397044", "0.69397044", "0.69355744", "0.6933656", "0.6933656", "0.6931632", "0.6931632", "0.6931632", "0.6927005", "0.6913761", "0.6909999", "0.6901507", "0.6898047", "0.68672353", "0.68639547", "0.685743", "0.6804401", "0.6804046", "0.6801872", "0.6786227", "0.6782333", "0.67746514", "0.6749327", "0.67401457", "0.67371005", "0.6693561", "0.6693561", "0.6677788" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { ListeF liste = new ListeF(8); liste.sortedInsert("MiniEL"); liste.sortedInsert("Dorf"); liste.sortedInsert("Bahn"); liste.sortedInsert("Turbodiesel"); liste.sortedInsert("Auto"); liste.sortedInsert("Chemiker"); liste.sortedInsert("Brot mit Brot"); liste.sortedInsert("Güterzug"); //liste.sortedInsert("Benziner"); liste.ausgeben(); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { if(v.getId() == R.id.data_ok_btn){ saveData(); }else if(v.getId() == R.id.data_image){ doPickPhotoAction(); }else if(v.getId() == R.id.data_user_change){ m_editor.putBoolean(Config.SHARED_FLAG, false); m_editor.commit(); Intent intent = new Intent(getActivity(),Login.class); getActivity().startActivity(intent); getActivity().finish(); }else if(v.getId() == R.id.data_image_clock){ Intent intent = new Intent(getActivity(),EncryptionImage.class); getActivity().startActivity(intent); } }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
/ renamed from: a
public static boolean m121746a(Context context, Intent intent) { List<ResolveInfo> queryIntentActivities = context.getPackageManager().queryIntentActivities(intent, 0); if (queryIntentActivities == null || queryIntentActivities.size() <= 0) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public static void m121745a(Context context, String str) { Intent intent = new Intent(C6969H.m41409d("G688DD108B039AF67EF00844DFCF18DD66A97DC15B17E980CC82A")); intent.putExtra(C6969H.m41409d("G688DD108B039AF67EF00844DFCF18DD27197C71BF1048E11D2"), str); intent.setType("text/plain"); context.startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.58274275", "0.5794977", "0.57889086", "0.57837564", "0.5775938", "0.57696944", "0.57688814", "0.5752557", "0.5690739", "0.5678386", "0.567034", "0.56661606", "0.56595623", "0.56588095", "0.56576085", "0.5654566", "0.56445956", "0.56401736", "0.5638699", "0.56305", "0.56179273", "0.56157446", "0.5607045", "0.5605239", "0.5600648", "0.5595156", "0.55912733", "0.5590759", "0.5573802", "0.5556659", "0.55545336", "0.5550466", "0.5549409", "0.5544484", "0.55377364", "0.55291194", "0.55285007", "0.55267704", "0.5525843", "0.5522067", "0.5520236", "0.55098593", "0.5507351", "0.5488173", "0.54860324", "0.54823226", "0.5481975", "0.5481588", "0.5480086", "0.5478032", "0.54676044", "0.5463578", "0.54506475", "0.54438734", "0.5440832", "0.5440053", "0.5432095", "0.5422814", "0.5421934", "0.54180306", "0.5403851", "0.5400144", "0.5400042", "0.5394655", "0.53891194", "0.5388751", "0.53749055", "0.53691155", "0.53590924", "0.5356525", "0.5355397", "0.535498", "0.5354871", "0.535003", "0.5341249", "0.5326222", "0.53232485", "0.53197914", "0.5316941", "0.5311645", "0.5298656" ]
0.0
-1
TODO Autogenerated method stub
@Override public int hashFunction(int key) { return key%M; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_add_info, container, false); //Initialise UI elements saveButton = view.findViewById(R.id.save_button); saveButton.setOnClickListener(this); EditText titleEdit = view.findViewById(R.id.maze_title_edit); loadingScreen = view.findViewById(R.id.loading_screen); titleEdit.addTextChangedListener(createMazeTextWatcher); publicToggle = view.findViewById(R.id.public_switch); initPublicToggle(); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
default YES use LRU cache
public MLNKVMemoryCache(String name) { this.name = name; LRUCountLimit = 10000; FIFOCountLimit = 1000; memorySizeLimit = 100 << 20; releaseOnMainThread = false; useFIFO = true; useLRU = true; weakMap = new HashMap<>(); LRUCache = new MLNKVCache(); FIFOCache = new MLNKVCache(); LRUCache.releaseOnMainThread = releaseOnMainThread; FIFOCache.releaseOnMainThread = releaseOnMainThread; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isCaching() {\n return false;\n }", "@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}", "boolean isCachingEnabled();", "public boolean isCached() {\n return true;\n }", "public boolean useCache() {\n return !pathRepositoryCache.isEmpty();\n }", "public boolean inCache(String key);", "public boolean isUseCache() {\n return mUseCache;\n }", "public boolean existCache() {\n return false;\n }", "public boolean shouldCache() {\n return this.shouldCache;\n }", "protected boolean getStravaUseCache()\n {\n return true;\n }", "public final boolean isUseCache() {\n\t\treturn useCache;\n\t}", "public void setCached() {\n }", "public boolean getMayUseCache () {\n\treturn mayUseCache;\n }", "public boolean getMayCache () {\n\treturn mayCache;\n }", "boolean isNoCache();", "public static void main(String[] args) {\n LRUCache cach = new LRUCache(2);\r\n cach.set(2, 1);\r\n cach.set(1, 1);\r\n cach.set(2, 3);\r\n cach.set(4,1);\r\n cach.doubly.display();\r\n System.out.println (cach.get(1));\r\n //cach.doubly.display();\r\n //cach.set(1,1);\r\n \r\n cach.doubly.display();\r\n System.out.println (cach.get(2));\r\n // cach.doubly.display();\r\n // System.out.println (cach.get(2));\r\n // cach.doubly.display();\r\n\t}", "private boolean updateCache(String type) {\n\t\treturn false;\n\t}", "protected boolean shouldUseCache()\n/* */ {\n/* 384 */ return ((isCacheable()) && (this.painters != null) && (this.painters.length > 0)) || (super.shouldUseCache());\n/* */ }", "public static void main(String args[]){\n LRUCache cache = new LRUCache(2);\n\n cache.put(1, 1);\n cache.put(2, 2);\n System.out.println(cache.get(1)); // returns 1\n cache.put(3, 3); // evicts key 2\n System.out.println(cache.get(2)); // returns -1 (not found)\n cache.put(4, 4); // evicts key 1\n System.out.println(cache.get(1)); // returns -1 (not found)\n System.out.println(cache.get(3)); // returns 3\n System.out.println(cache.get(4)); // returns 4\n }", "boolean isCacheable();", "public boolean isLoadCache() {\n return mLoadCache;\n }", "public boolean isCachedMemory() {\n return false;\n }", "public void setUseCache(final boolean argUseCache) {\n mUseCache = argUseCache;\n }", "private void initializeCache(int cacheSize){\n \t\tlruCache = new LRUCache(cacheSize);\n \t}", "boolean isCacheInitialized();", "public void setMayUseCache (boolean useCache) {\n\tmayUseCache = mayUseCache && useCache;\n }", "protected void createLookupCache()\n/* */ {\n/* 1260 */ this.lookup = new SimpleCache(1, Math.max(getSize() * 2, 64));\n/* */ }", "@Override\n\tpublic boolean hasCachedData() {\n\t\treturn false;\n\t}", "public boolean checkNoCache() {\n\treturn getBoolean(ATTR_NOCACHE, false);\n }", "public static void enableCache(boolean useCache) {\n OntologyTextProvider.useCache = useCache;\n }", "public void limpaCache()\n\t{\n\t\tpoolMensagens.clear();\n\t}", "@Override\n\tpublic void setCaching(boolean caching) {\n\t\t\n\t}", "public abstract boolean isCachable();", "public boolean getNoCache() {\n return noCache;\n }", "public interface ILeveledCache<K, V> extends ICache<K, V>{\n void reCache() throws IOException, ClassNotFoundException;\n Map<K, V> add(K key, V object) throws IOException, ClassNotFoundException;\n List<K> sortedKeys();\n int maxLevel1size();\n Set<K> level1keys();\n}", "boolean isCached(int userId);", "public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\n }", "public boolean isStoredInCache() {\r\n return lockValueStored == IN_CACHE;\r\n }", "public DBMaker enableHardCache() {\n cacheType = DBCacheRef.HARD;\n return this;\n }", "public LruSoftCache(int maxSize) {\n\t\tif (maxSize <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"maxSize <= 0\");\n\t\t}\n\t\tthis.maxSize = maxSize;\n\t\tthis.map = new LinkedHashMap<K, SoftReference<V>>(0, 0.75f, true);\n\t}", "long getCacheHits();", "private <K extends Resource> K addToCache(K res, String uri) {\n\t\tif (res == null)\n\t\t\tnegCache.put(uri, null);\n\t\treturn res;\n\t}", "public LRUCache(int capacity) {\n this.capacity = capacity;\n cache = new HashMap<Integer, DoubleListNode>();\n head = new DoubleListNode(-1,-1); //dummy\n tail = new DoubleListNode(-1,-1); //dummy\n head.next = tail;\n tail.prev = head;\n }", "@Override\r\n public void setCacheBlocks(boolean b) {\n\r\n }", "public boolean isCachedFile() {\n return true;\n }", "public void cache(){\n\t\t\n\t\t/*\n\t\t * second, check if there is a cache file\n\t\t * if yes, then check date\n\t\t * if no, then create a cache file \n\t\t*/\n\t\tif(cacheExist()){\n\t\t\t//check date and decide which file to update\n\t\t\tSystem.out.println(\" hahahaha, cache already there! \");\n\t\t\t\n\t\t\tFile cache = new File(\"./cache.txt\");\n\t\t\tsource = readFile(\"./cache.txt\",source);\n\t\t\tSystem.out.println(\"the size of source hashmap : \"+ source.size());\n\t\t\t\n\t\t\tfor(int i = 1; i < fileList.length;i++){\n\t\t\t\t//if this file need to be updated, write the data to source array\n\t\t\t\tif(needToUpdate(fileList[i], cache)){\n\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n\t\t\t\t\tSystem.out.println(\"S: \"+ sdf.format(fileList[i].lastModified()) + \" c: \"+ sdf.format(cache.lastModified()));\n\t\t\t\t\tsource = readFile(fileList[i].getPath(), source);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//after checking the whole source file and add the new data to source array\n\t\t\t//then sort the source array and write it to cache\n\t\t\tsort(source);\n\t\t\ttry\n\t\t\t{\n\t\t\t String filename= \"./cache.txt\";\n\t\t\t FileWriter fw = new FileWriter(filename,true); //the true will append the new data\n\t\t\t for(int j = 0; j < writeList.size(); j++){\n\t\t\t\t\tfw.write(writeList.get(j));\n\t\t\t\t}\n\t\t\t fw.close();\n\t\t\t}\n\t\t\tcatch(IOException ioe)\n\t\t\t{\n\t\t\t System.err.println(\"IOException: \" + ioe.getMessage());\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t//there are is no cache, need to create a cache file\n\t\telse{\n\t\t\tSystem.out.println(\" create new cache file !\");\n\t\t\t//create cache file and copy sort the data from source file\n\t\t\t//1. read all the source file and store the data to an arrayList\n\t\t\tfor(int i = 1; i < fileList.length; i++){\n\t\t\t\tsource = readFile(fileList[i].getPath(), source);\t\t\t\n\t\t\t}\n\t\t\tsort(source);\n//\t\t\tSystem.out.println(source);\n\t\t\t\n\t\t\t//2.write the data to the cache file\n\t\t\tPrintWriter writer;\n\t\t\ttry {\n\t\t\t\twriter = new PrintWriter(\"cache.txt\", \"UTF-8\");\t\t\t\n\t\t\t\twriter.println(writeList.size());\n\t\t\t\tfor(int j = 0; j < writeList.size(); j++){\n\t\t\t\t\twriter.println(writeList.get(j));\n\t\t\t\t}\n\t\t\t\twriter.close();\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t \n\t\t\n\t}", "@Override\n\tpublic void setUseCaches(boolean usecaches) {\n\t\tthis.usecaches.add(usecaches);\n\t}", "public void refreshObjectCache();", "private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n \n @Override\n public Integer get(AccessPointIdentifier key) {\n if (cache.containsKey(key)) {\n hitRate++;\n }\n return cache.get(key);\n }\n \n \n };\n }", "@Override\n public Set keySet() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.keySet();\n }", "public DBMaker disableCacheAutoClear(){\n this.autoClearRefCacheOnLowMem = false;\n return this;\n }", "interface Cache {\n\n /** @return A cache entry for given path string or <code>null</code> (if file cannot be read or too large to cache).\n * This method increments CacheEntry reference counter, caller must call {@link #checkIn(CacheEntry)} to release returned entry (when not null). */\n CacheEntry checkOut(CacheEntryLoader cacheEntryLoader);\n\n /**\n * Method to release cache entry previously obtained from {@link #checkOut(CacheEntryLoader)} call.\n * This method decrements CacheEntry reference counter.\n */\n void checkIn(CacheEntry key);\n\n /** Invalidates cached entry for given path string (if it is cached) */\n void invalidate(String pathString);\n\n void rename(String fromPathString, String toPathString);\n\n// /** Preload given file path in cache (if cache has vacant spot). Preloading happens in background. Preloaded pages initially have zero reference counter. */\n// void preload (String pathString);\n\n /** Clears the cache of all entries (even if some entries are checked out) */\n void clear();\n\n /** Allocates entry of given size for writing.\n * It will not be visible to others until caller calls {@link #update(String, CacheEntry)}.*/\n CacheEntry alloc(long size);\n\n /** Registers recently writtien cache entry as available for reading */\n void update(String pathString, CacheEntry cacheEntry);\n}", "int getCacheConcurrency();", "public void setLoadCache(final boolean argLoadCache) {\n mLoadCache = argLoadCache;\n }", "@PostConstruct\n public void initCache() {\n cache = Collections.synchronizedMap(new HashMap<>(cacheCapacity, 1));\n }", "public boolean searchCache(String url) {\n\t\tif (imageViewReference != null) {\n\t\t\tImageView imageView = imageViewReference.get();\n\t\t\tif (imageView != null) { \t\n\n\t\t\t\t// check for cached copy\n\t\t\t\tif (cache.containsKey(url)) {\n\n\t\t\t\t\t// set bitmap on image view\n\t\t\t\t\timageView.setImageBitmap(cache.get(url));\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public final void setUseCache(boolean useCache) {\n\t\tthis.useCache = useCache;\n\t}", "void resetCache();", "@Test\n\tpublic void test3() throws InterruptedException {\n\t\tDeadElementCallBack<String, Integer> callback = new DeadElementCallBack<String, Integer>() {\n\n\t\t\t@Override\n\t\t\tpublic void notify(String key, Integer elements) {\n\t\t\t}\n\t\t}; \n\t\tLRUCache<String, Integer> cache = new LRUCache<String, Integer>(2000, 2, callback);\n\t\tcache.put(\"hello\", 1);\n\t\tcache.put(\"yo\", 2);\n\t\tcache.put(\"hola\", 4);\n\t\tThread.sleep(1500);\n\t\tcache.get(\"yo\"); // Using a value.\n\t\tThread.sleep(1000);\n\t\tcache.put(\"sup\", 3);\n\t\tassertTrue(cache.size() == 3);\n\t\tassertTrue(cache.get(\"sup\") != null);\n\t\tassertTrue(cache.get(\"yo\") != null);\n\t}", "public interface ICache {\n\t\n\t/**\n\t * <p>\n\t * get the Cached Object from cache pool by the cache String key\n\t * @param key\n\t * @return\n\t */\n\tpublic Object get(String key);\n\t\n\t\n\t\n\t/**\n\t * <p>\n\t * \n\t * @param key\n\t * @return old cache object \n\t */\n\tpublic Object put(String key,Object value);\n\t\n\t/**\n\t * <p>\n\t * get the Cached Object from cache pool by the cache String key quietly,\n\t * without update the statistic data\n\t * @param key\n\t * @return\n\t */\n\tpublic Object getQuiet(String key);\n\t\n\t\n\t/**\n\t * <p>\n\t * remove the cached object from cache pool by the cache String key\n\t * @param key\n\t * @return\n\t */\n\tpublic Object remove(String key);\n\t\n\t/**\n\t * <p>\n\t * free specied size mem\n\t * @param size unit in Byte\n\t * @return\n\t */\n\tpublic long free(long size);\n\t\n\t\n\t/**\n\t * <p>\n\t * flush to the underly resource\n\t */\n\tpublic void flush();\n\t\n}", "public boolean isCaching(Player player) {\n\t\treturn this.caching.contains(player);\n\t}", "@Override\n public boolean deleteFromCache(String k)\n {\n if (this.maxCacheSize>0) {\n if ((!this.keyMap.isEmpty()) && (this.keyMap.containsKey(k))) {\n LRUNode ndToDelete = this.keyMap.get(k);\n if ((!this.lruQueue.isEmpty()) && (this.lruQueue.contains(ndToDelete))) {\n this.lruQueue.remove(ndToDelete);//remove from queue\n this.keyMap.remove(ndToDelete.getKey());//remove from map\n\n return true;\n }\n }\n }\n\n return false;\n }", "protected void createLookupCache() {\n }", "public LRUCache(int capacity) {\n cache = new LinkedHashMap<>(capacity);\n this.capacity = capacity;\n }", "public void setNoCache() {\n noCache= true;\n }", "public boolean useCache(QueryInfo queryInfo) {\n return TextUtils.isEmpty(queryInfo.getParam(\"extraInfo\"));\n }", "@Override\r\n public void setCaching(int parseInt) {\n\r\n }", "public LRUMapCache(int maxObjects) {\n\t\tthis.maxObjects = maxObjects;\n\t\tcacheMap = new HashMap<K, V>(maxObjects);\n\t\thitMap = new HashMap<K, Integer>();\n\t}", "public ArticleListAdapter(LruCache<String, Bitmap> cache) {\n this.mLruCache = cache;\n }", "@Override\n public boolean put(K key, V object){\n if ((this.maxSize > 0) && !this.cache.containsKey(key) && (this.cache.size() == this.maxSize)){\n // if add new element than exceed maximum limit\n return false;\n }\n\n CacheObject<K, V> cacheObject = new CacheObject<>(key, object);\n this.cache.put(key, cacheObject);\n\n return true;\n }", "protected void initializeCache() {\n\t\tif (cache == null){\n\t\t\tcache = Collections.synchronizedMap(new HashMap());\n\t\t}\n\t\telse{\n\t\t\tcache.clear();\n\t\t}\n\t}", "public StaticScript cache(boolean shouldCache) {\n this.shouldCache = shouldCache;\n return this;\n }", "void invalidateCache();", "@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}", "public int getCacheSize();", "public boolean isNoCache() {\n\t\treturn myNoCache;\n\t}", "protected boolean getUsed(){\n\t\treturn alreadyUsed;\n\t}", "private void invalidateCache() {\n\t}", "public boolean isPrefetch ();", "public void setClassCaching( boolean cc )\r\n {\r\n useClassCaching = cc;\r\n }", "int getCurrentCacheSize();", "public boolean isSaveCache() {\n return mSaveCache;\n }", "@Override\n\t\t\tprotected boolean removeEldestEntry(final Map.Entry<K, V> eldest) {\n\t\t\t\treturn super.size() > LRUCache.this.cacheSize;\n\t\t\t}", "public CacheStrategy getCacheStrategy();", "@Override\n public boolean put(CacheObject<K, V> cacheObject){\n K key = cacheObject.getKey();\n if ((this.maxSize > 0) && !this.cache.containsKey(key) && (this.cache.size() == this.maxSize)){\n // if add new element than exceed maximum limit\n return false;\n }\n\n this.cache.put(key, cacheObject);\n\n return true;\n }", "public DBMaker enableSoftCache() {\n cacheType = DBCacheRef.SOFT;\n return this;\n }", "public DBMaker enableWeakCache() {\n cacheType = DBCacheRef.WEAK;\n return this;\n }", "@Test\n public void testCoh3710_containsKey()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertFalse(getNamedCache(getCacheName0()).containsKey(Integer.valueOf(1)));\n }\n });\n }", "void clearCache();", "void clearCache();", "public void gotCachedData() {\n\t\tneedsRecaching = false;\n\t}", "private boolean isRowCached(int rowIndexInTable) {\n return getIndexOfRowInCache(rowIndexInTable) >= 0;\n }", "private void ensureRatingCache() {\n if (cache == null) {\n synchronized (this) {\n if (cache == null) {\n cache = new EventCollectionDAO(Cursors.makeList(csvDao.streamEvents()));\n }\n }\n }\n }", "private static boolean assetIsInPersistentCache(Asset asset) {\n \t\treturn assetIsInPersistentCache(asset.getId());\n \t}", "public interface ContentCache extends Cache<List<byte[]>>{\n int notCacheSize();\n}", "private void pageCacheChanged() {\n // Ok to have a race here, see the field javadoc.\n if (!pageCacheChanged)\n pageCacheChanged = true;\n }", "public boolean hasL1Cache() {\r\n return (getSubFamily() == SubFamily.PIC32MZ ||\r\n getCpuName().equals(\"cortex-m7\") ||\r\n getCpuName().equals(\"cortex-m55\") ||\r\n getCpuName().startsWith(\"cortex-a\"));\r\n }", "static int[] implement_LRU_cache(int capacity, int[] query_type, int[] key, int[] value) {\n // Stores the key as key of map and value as position of this provided value in linkedlist\n Map<Integer, Node> cacheMap = new HashMap<Integer, Node>();\n LinkedList keyList = new LinkedList();\n List<Integer> returnedValues = new ArrayList<Integer>();\n for(int i=0;i<query_type.length;i++){\n if(query_type[i]==0){\n // Add the linked list node to head if its accessed\n if(cacheMap.containsKey(key[i])){\n Node valueNode = cacheMap.get(key[i]);\n returnedValues.add(valueNode.value);\n // refresh the position of this element in the list\n keyList.replaceNode(valueNode);\n }else{\n returnedValues.add(-1);\n }\n\n }else{\n Node node = new Node(key[i], value[i]);\n if(cacheMap.containsKey(key[i])) {\n node = cacheMap.get(key[i]);\n node.value = value[i];\n keyList.replaceNode(node);\n }\n else {\n if (capacity > cacheMap.size()) {\n keyList.addFirst(node);\n cacheMap.put(key[i], node);\n\n }else{\n cacheMap.remove(keyList.tail.key);\n keyList.deleteNode();\n\n keyList.addFirst(node);\n cacheMap.put(node.key, node);\n }\n\n }\n }\n }\n int[] returnArray = new int[returnedValues.size()];\n for(int i=0;i<returnedValues.size();i++){\n returnArray[i] = returnedValues.get(i);\n }\n return returnArray;\n }", "public boolean addCacheElement(K key, V value) {\n\t\tif (cacheMap.containsKey(key)) {\n\t\t\telementHit(key);\n\t\t\tInputUtils.printConsoleMessage(\"Hit\");\n\t\t\treturn false;\n\t\t} else if (maxObjects > cacheMap.size()) {\n\t\t\tcacheMap.put(key, value);\n\t\t\thitMap.put(key, 0);\n\t\t\treturn true;\n\t\t} else {\n\t\t\tInputUtils.printConsoleMessage(\"Miss\");\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tK searchedKey = null;\n\t\t\tfor (K i : hitMap.keySet()) {\n\t\t\t\tint val = hitMap.get(i);\n\t\t\t\tif (min > val) {\n\t\t\t\t\tsearchedKey = i;\n\t\t\t\t\tmin = val;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcacheMap.remove(searchedKey);\n\t\t\thitMap.remove(searchedKey);\n\t\t\tcacheMap.put(key, value);\n\t\t\thitMap.put(key, 0);\n\t\t\treturn true;\n\t\t}\n\t}", "Cache<String, YourBean> getMyCache() {\n\treturn myCache;\n }" ]
[ "0.68489814", "0.68051225", "0.6782455", "0.6635582", "0.66135657", "0.65620786", "0.6557986", "0.63974714", "0.6383542", "0.6346436", "0.63394135", "0.63124007", "0.63110787", "0.62732375", "0.62566775", "0.6242181", "0.6241801", "0.62042457", "0.61918133", "0.6184366", "0.61614805", "0.6147562", "0.61023444", "0.6075114", "0.60109687", "0.5998191", "0.59868014", "0.5979744", "0.5965982", "0.5930166", "0.59266853", "0.5920586", "0.5870197", "0.5842541", "0.58151245", "0.58017397", "0.58012724", "0.57946813", "0.57881284", "0.57818556", "0.57768196", "0.57279307", "0.5719776", "0.5719679", "0.57144743", "0.56980497", "0.5694827", "0.5686544", "0.5679274", "0.5677088", "0.56756693", "0.56694454", "0.5662583", "0.5654984", "0.5637269", "0.56187963", "0.56157756", "0.5601537", "0.5593256", "0.5577657", "0.5561643", "0.55543494", "0.55457646", "0.55313885", "0.5514736", "0.55070865", "0.55067617", "0.55032086", "0.5499067", "0.5491308", "0.54868996", "0.5484757", "0.5475477", "0.5466676", "0.54646116", "0.54642934", "0.5463857", "0.5461178", "0.5460791", "0.5458689", "0.5457845", "0.5453868", "0.5451922", "0.5450815", "0.5448529", "0.5445092", "0.5436928", "0.5418946", "0.5398066", "0.5398066", "0.5394569", "0.53882253", "0.53869575", "0.53858536", "0.53858066", "0.53809", "0.53775436", "0.5375733", "0.5375253", "0.5374812" ]
0.58911055
32
Get the subnet property: The subnet.
public ApiEntityReference subnet() { return this.subnet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Required\n public String getSubnet() {\n return subnet;\n }", "public SubnetInner subnet() {\n return this.subnet;\n }", "public String subnetId() {\n return this.subnetId;\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "com.google.protobuf.ByteString getSubnetBytes();", "public String getSubnetId() {\n return this.SubnetId;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public String subnetName() {\n return this.subnetName;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "java.lang.String getSubnet();", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "entities.Torrent.SubnetResponse getSubnetResponse();", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "entities.Torrent.SubnetRequest getSubnetRequest();", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "public Inet4Address getNetworkAddress() {\n\t\treturn subnetAddress;\n\t}", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "public HashMap<String, String> getSubnetAddressDetail() {\n\t\tHashMap<String, String> subnetDetailMap = new HashMap<>();\n\t\tif (state == BridgeState.NON_EXISTENT) {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\t// checks if this subnet is properly running\n\t\tif (state == BridgeState.RUNNING) {\n\t\t\tsubnetDetailMap.put(\"state\", \"running\");\n\t\t\tsubnetDetailMap.put(\"network_address\", getNetworkAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"netmask\", getNetMask().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"broadcast_address\", getBroadcastAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"gateway_address\", getGatewayAddress().getHostAddress());\n\t\t\tsubnetDetailMap.put(\"num_ip\", Integer.toString(usedAddresses.size()));\n\t\t\tsubnetDetailMap.put(\"bridge\", bridgeName);\n\t\t}else {\n\t\t\tsubnetDetailMap.put(\"state\", \"non-existent\");\n\t\t}\n\t\t\n\t\treturn subnetDetailMap;\n\t}", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>\n getSubnetResponseFieldBuilder() {\n if (subnetResponseBuilder_ == null) {\n subnetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetResponse, entities.Torrent.SubnetResponse.Builder, entities.Torrent.SubnetResponseOrBuilder>(\n getSubnetResponse(),\n getParentForChildren(),\n isClean());\n subnetResponse_ = null;\n }\n return subnetResponseBuilder_;\n }", "public void setSubnetArn(String subnetArn) {\n this.subnetArn = subnetArn;\n }", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }", "public PetriNetModel getSubNet() {\n subNetOk = false;\n String fileName = getProperty(PROP_SUBNET);\n if (fileName == null) \n return null;\n if (fileName.length() == 0) \n return null;\n // Create initial ProcessModel\n ProcessModel model = null;\n\n // Try to open the model\n try {\n FileInputStream in = new FileInputStream(fileName);\n model = ProcessUtils.parseProcessModelSerialization(in);\n } catch (Exception ex) {\n return null;\n }\n\n // Return model if type is PetriNetModel\n if (model instanceof PetriNetModel) {\n subNetOk = true;\n return (PetriNetModel) model;\n }\n\n // Return null otherwise\n return null;\n }", "public String getCidr() {\n return cidr;\n }", "boolean hasSubnetRequest();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getZone() != null)\n sb.append(\"Zone: \").append(getZone()).append(\",\");\n if (getSubnetArn() != null)\n sb.append(\"SubnetArn: \").append(getSubnetArn());\n sb.append(\"}\");\n return sb.toString();\n }", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "boolean hasSubnetResponse();", "public String getNetwork() {\n String[] ipOctets = ipAddress.split(\"\\\\.\");\n String[] subnetOctets = subnetMask.split(\"\\\\.\");\n String[] result = ipOctets;\n\n for (int i = 0; i < 4; i++) {\n if (!\"255\".equals(subnetOctets[i])) {\n int sub = Integer.parseInt(subnetOctets[i]);\n int ip = Integer.parseInt(ipOctets[i]);\n result[i] = String.format(\"%s\", (ip & sub));\n }\n }\n\n return String.join(\".\", result);\n }", "@ZAttr(id=562)\n public String[] getVirtualIPAddress() {\n return getMultiAttr(Provisioning.A_zimbraVirtualIPAddress);\n }", "public List<Subnet> selectSubnet() {\n\n\t\tList<Subnet> customers = new ArrayList<Subnet>();\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\n\t\t\tconnection = (Connection) DBConnection.getConnection();\n\t\t\tString sql = \"select * from subnet\";\n\t\t\tpreparedStatement = (PreparedStatement) connection.prepareStatement(sql);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\n\t\t\tSubnet customer = null;\n\t\t\twhile (resultSet.next()) {\n\n\t\t\t\tcustomer = new Subnet();\n\t\t\t\tcustomer.setVpc_name(resultSet.getString(1));\n\t\t\t\tcustomer.setSubnet_name(resultSet.getString(2));\n\t\t\t\tcustomer.setCidr(resultSet.getString(3));\n\t\t\t\tcustomer.setAcl(resultSet.getString(4));\n\t\t\t\tcustomer.setSubnetId(resultSet.getString(5));\n\t\t\t\tcustomer.setVpcId(resultSet.getString(6));\n\n\t\t\t\tcustomers.add(customer);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.error(e.getMessage());\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tresultSet.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLOGGER.error(e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\treturn customers;\n\t}", "public Rectangle getBoundingBox() {\n\t\treturn getBounds();\n\t}", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withSubnet(ApiEntityReference subnet) {\n this.subnet = subnet;\n return this;\n }", "public SubResource frontendIpConfiguration() {\n return this.frontendIpConfiguration;\n }", "public double getNetBalance() {\r\n\t\treturn netBalance;\r\n\t}", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "public java.lang.String getNetAddress() {\n\t\t return netAddress;\n\t }", "com.google.protobuf.ByteString\n getSnIpBytes();", "com.google.protobuf.ByteString\n getSnIpBytes();", "public String getRectangleBounds() {\n checkAvailable();\n return impl.getRectangle();\n }", "public Inet4Address getNetMask() {\n\t\t//TODO hardcoding it with assumption that it's 255.255.255.0\n\t\tbyte[] netmask = new byte[]{(byte) 255,(byte) 255,(byte) 255,0};\n\t\ttry {\n\t\t\treturn (Inet4Address) Inet4Address.getByAddress(netmask);\n\t\t} catch (UnknownHostException e) {\n\t\t\t//Weird shouldn't happen\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@JsonProperty(\"podCIDR\")\n public String getPodCIDR() {\n return podCIDR;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>\n getSubnetRequestFieldBuilder() {\n if (subnetRequestBuilder_ == null) {\n subnetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.SubnetRequest, entities.Torrent.SubnetRequest.Builder, entities.Torrent.SubnetRequestOrBuilder>(\n getSubnetRequest(),\n getParentForChildren(),\n isClean());\n subnetRequest_ = null;\n }\n return subnetRequestBuilder_;\n }", "public Rectangle getClipBounds()\r\n\t{\r\n\t\treturn _g2.getClipBounds();\r\n\t}", "public String getPropertyName() {\r\n\treturn \"background-clip\";\r\n }", "public boolean hasSubnetResponse() {\n return subnetResponseBuilder_ != null || subnetResponse_ != null;\n }", "public java.lang.String getSnIp() {\n java.lang.Object ref = snIp_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n snIp_ = s;\n return s;\n }\n }", "public java.lang.String getSnIp() {\n java.lang.Object ref = snIp_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n snIp_ = s;\n return s;\n }\n }", "public com.google.protobuf.ByteString\n getSnIpBytes() {\n java.lang.Object ref = snIp_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n snIp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSnIpBytes() {\n java.lang.Object ref = snIp_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n snIp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public BigDecimal getValorSubsc() {\n\t\treturn valorSubsc;\n\t}", "public AWSLocation withSubnetArn(String subnetArn) {\n setSubnetArn(subnetArn);\n return this;\n }", "public java.math.BigDecimal getOctroi () {\n\t\treturn octroi;\n\t}", "public String getVpnIpRange() {\n return vpnIpRange;\n }", "public java.lang.String getSnIp() {\n java.lang.Object ref = snIp_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n snIp_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getSnIp() {\n java.lang.Object ref = snIp_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n snIp_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getPolySub() {\n return this.polysubtract;\n }", "java.lang.String getIpv6();", "public String getLb() {\n return lb;\n }", "public java.lang.String getIpv6() {\n java.lang.Object ref = ipv6_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n ipv6_ = s;\n return s;\n }\n }", "public com.google.protobuf.ByteString\n getSnIpBytes() {\n java.lang.Object ref = snIp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n snIp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSnIpBytes() {\n java.lang.Object ref = snIp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n snIp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Rectangle getBounds() {\r\n\t\treturn new Rectangle((int) (x * scalingX), (int) (y * scalingY), (int) rocketWidth, (int) rocketHeight);\r\n\t}", "protected void addVpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReferencePropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__VPC_SUBNETS_WITH_SUBNET_SELECTION_SOFTWARE_AMAZON_AWSCDK_SERVICES_EC2_SUBNET_SELECTION_AS_REFERENCE,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public SpatialRelation getPolygonRectangleRelation() {\n return polygonRectangleRelation;\n }", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public PrivateAccessVirtualNetwork withSubnets(List<PrivateAccessSubnet> subnets) {\n this.subnets = subnets;\n return this;\n }", "public Bounds get() {\n\treturn bounds;\n }", "public final BoundingBox getBounds() {\n\t\tif (bounds==null) {\n\t\t\tint srsID =( (Geometry)this.get(0).getDefaultGeometry()).getSRID();\n\t\t\tBoundingBox re = new BoundingBoxImpl(\"\"+srsID);\n\t\t\tfor (SimpleFeature f : this) {\n\t\t\t\tre.include(f.getBounds());\n\t\t\t}\n\t\t\tbounds = re;\n\t\t}\n\t\treturn bounds;\n\t}", "protected Bnet getBnet(int id) {\n\t\treturn bnetMap.get(id);\n\t}", "@JsonGetter(\"subaccount_id\")\r\n public int getSubaccountId ( ) { \r\n return this.subaccountId;\r\n }", "public Rectangle getBounds() {\n return super.getBounds();\n }", "@JsonGetter(\"blockCellular\")\r\n public boolean getBlockCellular ( ) { \r\n return this.blockCellular;\r\n }" ]
[ "0.8440771", "0.8432556", "0.8066457", "0.802757", "0.80229586", "0.8002602", "0.7835706", "0.7835706", "0.7834121", "0.77873826", "0.7781745", "0.7781004", "0.7781004", "0.77715605", "0.7500888", "0.73398113", "0.7163004", "0.7096574", "0.70370996", "0.7036774", "0.7036774", "0.7036774", "0.70045817", "0.6920383", "0.6911041", "0.6895196", "0.6880106", "0.67654175", "0.6715729", "0.6636877", "0.6620404", "0.66058064", "0.6416347", "0.6164176", "0.59475225", "0.58801967", "0.5725245", "0.5685779", "0.5642852", "0.555839", "0.55415475", "0.551378", "0.551378", "0.551378", "0.54699695", "0.5455683", "0.5305691", "0.52817684", "0.5254204", "0.52516633", "0.52431345", "0.5234132", "0.5230325", "0.5208515", "0.51973295", "0.51902103", "0.51881284", "0.5158941", "0.5157405", "0.51567245", "0.515563", "0.5136665", "0.511645", "0.51146704", "0.51146704", "0.510756", "0.5073677", "0.5045481", "0.5044718", "0.50038534", "0.4986467", "0.4980341", "0.49787852", "0.49787852", "0.49778476", "0.49778476", "0.49547458", "0.49520722", "0.49461174", "0.4941577", "0.49382702", "0.49264032", "0.49264032", "0.49188492", "0.49119523", "0.49090424", "0.49020147", "0.48948509", "0.48948509", "0.4890871", "0.48729184", "0.4871568", "0.48556548", "0.48387766", "0.48368645", "0.4827306", "0.48249188", "0.48192364", "0.48152363", "0.47986254" ]
0.8447743
0
Set the subnet property: The subnet.
public VirtualMachineScaleSetUpdateIpConfigurationProperties withSubnet(ApiEntityReference subnet) { this.subnet = subnet; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Required\n public String getSubnet() {\n return subnet;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }", "public String getSubnetArn() {\n return this.subnetArn;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public String getSubnetId() {\n return this.SubnetId;\n }", "public void setSubnetId(String SubnetId) {\n this.SubnetId = SubnetId;\n }", "public ApiEntityReference subnet() {\n return this.subnet;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "@java.lang.Override\n public int getSubnetId() {\n return subnetId_;\n }", "public String subnetId() {\n return this.subnetId;\n }", "com.google.protobuf.ByteString getSubnetBytes();", "public void setSubnetArn(String subnetArn) {\n this.subnetArn = subnetArn;\n }", "public Builder setSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetRequest_ = value;\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "public SubnetInner subnet() {\n return this.subnet;\n }", "entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder();", "@java.lang.Override\n public entities.Torrent.SubnetResponse getSubnetResponse() {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }", "public InterfaceEndpointInner withSubnet(SubnetInner subnet) {\n this.subnet = subnet;\n return this;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n return getSubnetRequest();\n }", "public Builder setSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n subnetResponse_ = value;\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(value);\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.SubnetRequest getSubnetRequest() {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }", "java.lang.String getSubnet();", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "public String subnetName() {\n return this.subnetName;\n }", "public entities.Torrent.SubnetResponse getSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n return subnetResponse_ == null ? entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n } else {\n return subnetResponseBuilder_.getMessage();\n }\n }", "public Builder setSubnetRequest(\n entities.Torrent.SubnetRequest.Builder builderForValue) {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = builderForValue.build();\n onChanged();\n } else {\n subnetRequestBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "@java.lang.Override\n public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n return getSubnetResponse();\n }", "entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder();", "public entities.Torrent.SubnetResponseOrBuilder getSubnetResponseOrBuilder() {\n if (subnetResponseBuilder_ != null) {\n return subnetResponseBuilder_.getMessageOrBuilder();\n } else {\n return subnetResponse_ == null ?\n entities.Torrent.SubnetResponse.getDefaultInstance() : subnetResponse_;\n }\n }", "int getSubnetId();", "int getSubnetId();", "int getSubnetId();", "public entities.Torrent.SubnetRequestOrBuilder getSubnetRequestOrBuilder() {\n if (subnetRequestBuilder_ != null) {\n return subnetRequestBuilder_.getMessageOrBuilder();\n } else {\n return subnetRequest_ == null ?\n entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n }\n }", "public Builder setSubnetResponse(\n entities.Torrent.SubnetResponse.Builder builderForValue) {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = builderForValue.build();\n onChanged();\n } else {\n subnetResponseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public AWSLocation withSubnetArn(String subnetArn) {\n setSubnetArn(subnetArn);\n return this;\n }", "public PrivateAccessVirtualNetwork withSubnets(List<PrivateAccessSubnet> subnets) {\n this.subnets = subnets;\n return this;\n }", "public entities.Torrent.SubnetRequest getSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n return subnetRequest_ == null ? entities.Torrent.SubnetRequest.getDefaultInstance() : subnetRequest_;\n } else {\n return subnetRequestBuilder_.getMessage();\n }\n }", "Subnet(String subnetString, Map<String,NetNode> addresses) {\n\t\t\tthis.members = members(subnetString, addresses);\n\t\t\tthis.groups = groups(subnetString, members);\n\t\t}", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSubnetId() {\n\n subnetId_ = 0;\n onChanged();\n return this;\n }", "public String targetSubnetName() {\n return this.targetSubnetName;\n }", "entities.Torrent.SubnetRequest getSubnetRequest();", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "private boolean isSubnetInUse(String subnetId) {\n return false;\n }", "public Builder mergeSubnetResponse(entities.Torrent.SubnetResponse value) {\n if (subnetResponseBuilder_ == null) {\n if (subnetResponse_ != null) {\n subnetResponse_ =\n entities.Torrent.SubnetResponse.newBuilder(subnetResponse_).mergeFrom(value).buildPartial();\n } else {\n subnetResponse_ = value;\n }\n onChanged();\n } else {\n subnetResponseBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest);", "public Builder mergeSubnetRequest(entities.Torrent.SubnetRequest value) {\n if (subnetRequestBuilder_ == null) {\n if (subnetRequest_ != null) {\n subnetRequest_ =\n entities.Torrent.SubnetRequest.newBuilder(subnetRequest_).mergeFrom(value).buildPartial();\n } else {\n subnetRequest_ = value;\n }\n onChanged();\n } else {\n subnetRequestBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "entities.Torrent.SubnetResponse getSubnetResponse();", "Expression subnet(Expression p) {\n\t\treturn p.join(subnet);\n\t}", "public void destroySubnetAddress() {\n\t\t// remove bridge for this subnet\n\t\tif (destroyBridgeOnHost() == 0) {\n\t\t\t//TODO error handling?\n\t\t}\n\t\t\n\t\t// remove this from controller\n\t\tcontroller.deregisterSubnetAddrFromController(this);\n\t}", "void setNetworkMask(byte[] networkMask);", "protected void addVpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReferencePropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_vpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReference_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__VPC_SUBNETS_WITH_SUBNET_SELECTION_SOFTWARE_AMAZON_AWSCDK_SERVICES_EC2_SUBNET_SELECTION_AS_REFERENCE,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public void setClipPolygon(PolygonSimple polygon) {\n\t\tclipPolygon = polygon;\n\t\tif (diagram != null)\n\t\t\tdiagram.setClipPoly(polygon);\n\t}", "public entities.Torrent.SubnetResponse.Builder getSubnetResponseBuilder() {\n\n onChanged();\n return getSubnetResponseFieldBuilder().getBuilder();\n }", "protected void setNet(BigDecimal net){\n\t\tsynchronized(this){\n\t\t\tthis.net = net;\n\t\t}\n\t}", "public Inet4Address getNetworkAddress() {\n\t\treturn subnetAddress;\n\t}", "public Builder clearSubnetResponse() {\n if (subnetResponseBuilder_ == null) {\n subnetResponse_ = null;\n onChanged();\n } else {\n subnetResponse_ = null;\n subnetResponseBuilder_ = null;\n }\n\n return this;\n }", "public DescribeSubnetsResponse describeSubnets(DescribeSubnets describeSubnets) {\n \t\treturn null;\r\n \t}", "public Builder setSnIpBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n snIp_ = value;\n onChanged();\n return this;\n }", "public Builder setSnIpBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n snIp_ = value;\n onChanged();\n return this;\n }", "@Test\n public void configuration() throws ConstructionException {\n Node node1 = new Node(Node.NodeIDType.OPENFLOW, 1L);\n Node node2 = new Node(Node.NodeIDType.OPENFLOW, 2L);\n Node node3 = new Node(Node.NodeIDType.OPENFLOW, 3L);\n NodeConnector nc1 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)1, node1);\n NodeConnector nc2 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)2, node2);\n NodeConnector nc3 = new NodeConnector(NodeConnector.NodeConnectorIDType.OPENFLOW, (short)3, node3);\n List<String> portList = new ArrayList<String>();\n portList.add(nc1.toString());\n portList.add(nc2.toString());\n portList.add(nc3.toString());\n\n // Full subnet creation\n SubnetConfig config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", portList);\n Status status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // No port set specified\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", null);\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Empty port set\n config = new SubnetConfig(\"eng\", \"11.1.1.254/16\", new ArrayList<String>(0));\n status = config.validate();\n Assert.assertTrue(status.isSuccess());\n\n // Zero subnet\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", null);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n\n // Port set with invalid port notation\n List<String> badPortList = new ArrayList<String>();\n badPortList.add(\"1/1\");\n config = new SubnetConfig(\"eng\", \"1.2.3.254/1\", badPortList);\n status = config.validate();\n Assert.assertFalse(status.isSuccess());\n }", "public Builder setIpv6(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public boolean hasSubnetRequest() {\n return subnetRequest_ != null;\n }", "public void setSubNet(PetriNetModel m) {\n //subModel = m;\n }", "boolean hasSubnetRequest();", "private void setBounds(RectProto.Builder builderForValue) {\n this.bounds_ = (RectProto) builderForValue.build();\n this.bitField0_ |= 8;\n }", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "public void setBounds(Rectangle b);", "@ZAttr(id=562)\n public void setVirtualIPAddress(String[] zimbraVirtualIPAddress) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraVirtualIPAddress, zimbraVirtualIPAddress);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setBin(final ByteArray bin) {\n this.bin = bin;\n }", "public SubnetAddress(Controller controller, Inet4Address subnetAddress, int mask, long subnetID, String bridgeName) throws Exception {\n\t\tthis.controller = controller;\n\t\tthis.subnetAddress = subnetAddress;\n\t\tthis.mask = mask;\n\t\tthis.usedAddresses = new ArrayList<Inet4Address>();\n\t\tthis.state = BridgeState.NON_EXISTENT;\n\t\t\n\t\t//add broadcast and gateway to usedAddress\n\t\tthis.usedAddresses.add(getNetworkAddress());\n\t\tthis.usedAddresses.add(getGatewayAddress());\n\t\tthis.usedAddresses.add(getBroadcastAddress());\n\t\t\n\t\tthis.subnetID = subnetID;\n\t\tthis.bridgeName = bridgeName;\n\n\t\tthis.scriptDirectory = controller.configMap.get(\"LocScript\");\n\t\tthis.processMap = new HashMap<>();\n\t\t\n\t\tthis.updateTimer = new Timer();\n\t\tthis.updateTask = new UpdateStateTask();\n\t\t\n\t\t// create bridge on host machine\n\t\tif (createBridgeOnHost() == 0) {\n\t\t\tDebug.redDebug(\"createBridgeOnHost() FAILED!\");\n\t\t\tthrow new Exception(\"Error when creating a bridge on host for the subnet: \" + subnetID);\n\t\t}\n\t}", "public Builder clearSubnetRequest() {\n if (subnetRequestBuilder_ == null) {\n subnetRequest_ = null;\n onChanged();\n } else {\n subnetRequest_ = null;\n subnetRequestBuilder_ = null;\n }\n\n return this;\n }", "private void setBounds(RectProto value) {\n if (value != null) {\n this.bounds_ = value;\n this.bitField0_ |= 8;\n return;\n }\n throw new NullPointerException();\n }", "CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest);", "public void setNetAddress(java.lang.String netAddress) {\n\t\t this.netAddress = netAddress;\n\t }", "public DelegatedSubnetUsage() {\n }", "@Override\r\n public void setIPAddress(String address) {\r\n this.address = address;\r\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "public StochasticSamplingSubnetLayer(final Layer subnetwork, final int samples) {\n super(subnetwork);\n this.samples = samples;\n }", "public Builder setIp(int value) {\n bitField0_ |= 0x00000100;\n ip_ = value;\n onChanged();\n return this;\n }", "public void setRectangleBounds(String bounds) {\n checkAvailable();\n impl.setRectangle(bounds);\n }", "public Bounds bounds(String ipAddrsFile, String subnetsFile) throws IOException {\n\t\tfinal Map<String,NetNode> nodes = parseAddresses(ipAddrsFile);\n\t\tfinal Map<NetNode,Subnet> subnets = parseSubnets(subnetsFile, nodes);\n\n\t\tfinal Universe universe = universe(nodes.keySet());\n\t\tfinal Bounds bounds = new Bounds(universe);\n\t\tfinal TupleFactory factory = universe.factory();\n\n\t\t// bind the integers\n\t\tfor (int i = 0; i < 32; i++) {\n\t\t\tbounds.boundExactly(1 << i, factory.setOf(Integer.valueOf(1 << i)));\n\t\t}\n\n\t\t// bind the port relation exactly to the port names\n\t\tbounds.boundExactly(port, factory.range(factory.tuple(universe.atom(0)),\n\t\t\t\tfactory.tuple(universe.atom(nodes.keySet().size() - 1))));\n\n\t\t// bind the unknown relation exactly to the port names of ports with\n\t\t// unknown addresses or masks\n\t\tfinal TupleSet unknownBound = factory.noneOf(1);\n\t\tfor (NetNode n : nodes.values()) {\n\t\t\tif (!n.known()) {\n\t\t\t\tunknownBound.add(factory.tuple(n.port));\n\t\t\t}\n\t\t}\n\t\tbounds.boundExactly(unknown, unknownBound);\n\n\t\t// bind the subnet relation exactly, choosing the first element of each\n\t\t// subnet as the representative\n\t\tfinal TupleSet subnetBound = factory.noneOf(2);\n\t\tfor (Map.Entry<NetNode,Subnet> entry : subnets.entrySet()) {\n\t\t\tfinal NetNode rep = entry.getKey();\n\t\t\tfor (NetNode member : entry.getValue().members) {\n\t\t\t\tsubnetBound.add(factory.tuple(rep.port, member.port));\n\t\t\t}\n\t\t}\n\t\tbounds.boundExactly(subnet, subnetBound);\n\n\t\t// bind the addr relation so that each address is guaranteed to be\n\t\t// between minAddr (121.96.0.0) and maxAddr (121.96.255.255), inclusive\n\t\tfinal TupleSet lAddr = factory.noneOf(2), uAddr = factory.noneOf(2);\n\t\tfor (NetNode node : nodes.values()) {\n\t\t\tif (node.varAddress) { // unknown address\n\t\t\t\tlAddr.addAll(portToBits(factory, node.port, minAddr));\n\t\t\t\tuAddr.addAll(portToBits(factory, node.port, maxAddr));\n\t\t\t} else { // known address\n\t\t\t\tfinal TupleSet portToAddrBits = portToBits(factory, node.port, node.address);\n\t\t\t\tlAddr.addAll(portToAddrBits);\n\t\t\t\tuAddr.addAll(portToAddrBits);\n\t\t\t}\n\t\t}\n\t\tbounds.bound(addr, lAddr, uAddr);\n\n\t\t// bind the group and groupMask relations so that all ports with the\n\t\t// same interface on the same subnet are guaranteed to have the same\n\t\t// mask\n\t\tfinal TupleSet lMask = factory.noneOf(2), uMask = factory.noneOf(2), groupBound = factory.noneOf(2);\n\t\tfor (Subnet sub : subnets.values()) {\n\t\t\tfor (Map.Entry<NetNode,Set<NetNode>> entry : sub.groups.entrySet()) {\n\t\t\t\tfinal NetNode rep = entry.getKey();\n\t\t\t\tfor (NetNode member : entry.getValue()) {\n\t\t\t\t\tgroupBound.add(factory.tuple(member.port, rep.port));\n\t\t\t\t\tnodes.remove(member.port); // remove a grouped member out of\n\t\t\t\t\t\t\t\t\t\t\t\t// the addresses set\n\t\t\t\t}\n\t\t\t\tif (rep.varMask) { // unknown mask for the representative\n\t\t\t\t\tuMask.addAll(portToBits(factory, rep.port, 31));\n\t\t\t\t} else { // known mask for the representative\n\t\t\t\t\tfinal TupleSet portToMaskBits = portToBits(factory, rep.port, rep.mask);\n\t\t\t\t\tlMask.addAll(portToMaskBits);\n\t\t\t\t\tuMask.addAll(portToMaskBits);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// bind the group and groupMask relations for ports that are not a part\n\t\t// of any subnet\n\t\tfor (NetNode ungrouped : nodes.values()) {\n\t\t\tgroupBound.add(factory.tuple(ungrouped.port, ungrouped.port));\n\t\t\tif (ungrouped.varMask) { // unknown mask for the representative\n\t\t\t\tuMask.addAll(portToBits(factory, ungrouped.port, 31));\n\t\t\t} else { // known mask for the representative\n\t\t\t\tfinal TupleSet portToMaskBits = portToBits(factory, ungrouped.port, ungrouped.mask);\n\t\t\t\tlMask.addAll(portToMaskBits);\n\t\t\t\tuMask.addAll(portToMaskBits);\n\t\t\t}\n\t\t}\n\n\t\tbounds.bound(groupMask, lMask, uMask);\n\t\tbounds.boundExactly(group, groupBound);\n\n\t\t// System.out.println(\"groupMask.size: \" + uMask.size() + \", group.size:\n\t\t// \" + groupBound.size());\n\t\t// System.out.println(\"ports.size: \" + bounds.upperBound(port).size() +\n\t\t// \", unknown.size: \" + unknownBound.size());\n\t\treturn bounds;\n\n\t}", "public Builder setSnIp(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n snIp_ = value;\n onChanged();\n return this;\n }", "public Builder setSnIp(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n snIp_ = value;\n onChanged();\n return this;\n }", "public void setBounds(Rectangle bounds) {\r\n this.bounds = bounds;\r\n }", "boolean hasSubnetResponse();", "@JsonSetter(\"blockCellular\")\r\n public void setBlockCellular (boolean value) { \r\n this.blockCellular = value;\r\n }", "void setBounds(Rectangle rectangle);", "protected void setNeuralNetwork(NeuralNetwork nnet) {\n\t\tthis.nnet = nnet;\n\t}", "public VMwareCbtEnableMigrationInput withTargetSubnetName(String targetSubnetName) {\n this.targetSubnetName = targetSubnetName;\n return this;\n }", "public void setBina(Bina bina) {\r\n\t\tthis.bina = bina;\r\n\t}", "public Builder setIpv6Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n ipv6_ = value;\n onChanged();\n return this;\n }", "public DeleteSubnetResponse deleteSubnet(DeleteSubnet deleteSubnet) {\n \t\treturn null;\r\n \t}", "public entities.Torrent.SubnetRequest.Builder getSubnetRequestBuilder() {\n\n onChanged();\n return getSubnetRequestFieldBuilder().getBuilder();\n }" ]
[ "0.7387464", "0.6797755", "0.6797755", "0.6797755", "0.6689258", "0.66176116", "0.66172415", "0.66172415", "0.6549346", "0.6547719", "0.65374297", "0.6521088", "0.6521088", "0.65191364", "0.63733417", "0.63375473", "0.62170386", "0.62105143", "0.6188936", "0.61839455", "0.6125263", "0.6124952", "0.611937", "0.6071876", "0.6071803", "0.5960814", "0.58653873", "0.5823008", "0.58161294", "0.5798915", "0.5789484", "0.57341707", "0.5689365", "0.5660211", "0.5660211", "0.5660211", "0.55968815", "0.55809355", "0.5520766", "0.5503336", "0.54849017", "0.5447878", "0.5440698", "0.5440698", "0.5440698", "0.53237045", "0.5306572", "0.5217567", "0.51105994", "0.5110213", "0.5069288", "0.50665486", "0.5065189", "0.49875557", "0.49802098", "0.49362028", "0.48963526", "0.47535068", "0.47199804", "0.47050652", "0.46808052", "0.46556732", "0.46195108", "0.4617929", "0.4617929", "0.46156314", "0.46013558", "0.45988634", "0.45650524", "0.45609248", "0.45520762", "0.45397365", "0.45193797", "0.45157057", "0.4502365", "0.4497966", "0.44956943", "0.44790867", "0.44767115", "0.4464848", "0.4427963", "0.44109404", "0.4368505", "0.4368505", "0.43599135", "0.43048358", "0.42961708", "0.42922905", "0.4287455", "0.4287455", "0.42796385", "0.42564413", "0.4246215", "0.42457163", "0.42395785", "0.42328417", "0.42242298", "0.42156625", "0.42128995", "0.4212249" ]
0.63385284
15
Get the primary property: Specifies the primary IP Configuration in case the network interface has more than one IP Configuration.
public Boolean primary() { return this.primary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int get_configured_primary () {\n\t\treturn configured_primary;\n\t}", "public NetworkInterfaceIpConfigurationInner ipConfiguration() {\n return this.ipConfiguration;\n }", "public final String get_configured_primary_as_string () {\n\t\treturn \"P\" + configured_primary;\n\t}", "public String primary() {\n return this.primary;\n }", "public SubResource frontendIpConfiguration() {\n return this.frontendIpConfiguration;\n }", "public boolean getIsPrimary();", "public PrimaryElements getPrimaryAccess() {\n\t\treturn pPrimary;\n\t}", "public Resource getPrimaryResource() {\n return primaryResource;\n }", "public Image getPrimaryImage() {\n return primaryImage;\n }", "public boolean isPrimary()\r\n\t{\treturn this.primary;\t}", "public PrimaryGridUnit getPrimary() {\n return primary;\n }", "public boolean isIsPrimary() {\r\n return isPrimary;\r\n }", "public boolean isPrimary() {\n return this.placement.isIsPtlp();\n }", "public static ReadShellPreference primary() {\n return PRIMARY;\n }", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withPrimary(Boolean primary) {\n this.primary = primary;\n return this;\n }", "public ProfileStoreCollectionInfo primaryInfo() {\n return this.primaryInfo;\n }", "public VirtualMachineScaleSetUpdatePublicIpAddressConfiguration publicIpAddressConfiguration() {\n return this.publicIpAddressConfiguration;\n }", "public Boolean getPerClientIp() {\n return perClientIp;\n }", "public String getEmailPrimary() {\n\t\t\treturn emailPrimary;\n\t\t}", "public boolean isIsPrimary();", "public java.lang.Boolean getPrimaryProduct() {\n return primaryProduct;\n }", "static ReadShellPreference primaryPreferred() {\n return PRIMARY_PREFERRED;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "public IPAddress getIPAddress() {\n return iPAddress;\n }", "public IpAddress getIpAddress1Value() throws JNCException {\n return (IpAddress)getValue(\"ip-address1\");\n }", "public InputProcessor getIP() {\r\n return ip;\r\n }", "public Boolean getPrimaryNode() {\n return primaryNode;\n }", "public int getInIp() {\n return instance.getInIp();\n }", "public int getInIp() {\n return instance.getInIp();\n }", "public boolean isPrimary() {\n return false;\n }", "public boolean isPrimary() {\n return false;\n }", "public Integer getPortperip() {\r\n return portperip;\r\n }", "public String getIP() {\n return this.IP;\n }", "public int getIp() {\n return instance.getIp();\n }", "public int getIp() {\n return instance.getIp();\n }", "@Required\n public PublicIpAddressResource getPublicIpAddress() {\n return publicIpAddress;\n }", "public abstract boolean isPrimary();", "public int getInIp() {\n return inIp_;\n }", "public int getInIp() {\n return inIp_;\n }", "public String getIpa() {\n return ipa;\n }", "public LinkAddress getInitialLinkAddress() {\n if (mIpConfiguration != null && mIpConfiguration.getStaticIpConfiguration() != null) {\n return mIpConfiguration.getStaticIpConfiguration().ipAddress;\n } else {\n return null;\n }\n }", "public java.lang.String getIP() {\r\n return IP;\r\n }", "public ForecastingPrimaryMetrics primaryMetric() {\n return this.primaryMetric;\n }", "public YangString getLocalConfigApnValue() throws JNCException {\n YangString localConfigApn = (YangString)getValue(\"local-config-apn\");\n if (localConfigApn == null) {\n localConfigApn = new YangString(\"default.apnni.com\"); // default\n }\n return localConfigApn;\n }", "public int getIp() {\n return ip_;\n }", "public boolean is_pdl_primary () {\n\n\t\t// Check if mode is forced\n\n\t\tswitch (force_primary) {\n\t\tcase 1:\n\t\t\treturn true;\n\t\tcase 2:\n\t\t\treturn false;\n\t\t}\n\n\t\t// Get the primary mode from the relay link\n\n\t\treturn sg.relay_link.is_primary_state();\n\n\t\t// // For now, just assume primary\n\t\t// \n\t\t// return true;\n\t}", "public Ipv4Config ipv4Configuration() {\n return this.ipv4Configuration;\n }", "public java.lang.String getIpaddress() {\n return ipaddress;\n }", "public Single<LocalConfigModel> getActiveConfig() {\n\t\treturn getMap().flatMap(map -> map.rxGet(LOCAL_CONFIG_KEY).toSingle());\n\t}", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public String getIpaddress ()\n {\n return ipaddress;\n }", "public int getS1Ip() {\n return instance.getS1Ip();\n }", "public IndexShard getPrimary() {\n return primary;\n }", "public int getPrimarySnId() {\n return primarySnId_;\n }", "public int getPrimarySnId() {\n return primarySnId_;\n }", "public int getPrimarySnId() {\n return primarySnId_;\n }", "public int getPrimarySnId() {\n return primarySnId_;\n }", "private DefaultCniNetworkProperties innerProperties() {\n return this.innerProperties;\n }", "public java.lang.String getPrimaryName() {\n return primaryName;\n }", "public String getIpaddress() {\n\t\treturn ipaddress;\n\t}", "public String ipv6ConnectedPrefix() {\n return this.innerProperties() == null ? null : this.innerProperties().ipv6ConnectedPrefix();\n }", "public java.lang.String getPrimaryContact() {\n return primaryContact;\n }", "public IpAddress getIpAddressValue() throws JNCException {\n return (IpAddress)getValue(\"ip-address\");\n }", "public String getIpSource() {\n return getPropertyAsString(IP_SOURCE, \"\");\n }", "int getPrimarySnId();", "int getPrimarySnId();", "public String getPrimaryUser () {\n return primaryUser;\n }", "public InstanceConfigId getId() {\n return id;\n }", "public ConnectorFigure getPrimaryShape() {\r\n\t\treturn (ConnectorFigure) primaryShape;\r\n\t}", "public java.lang.String getIpadress() {\r\n return ipadress;\r\n }", "public String getIp() {\n return getIpString(inetAddress);\n }", "public String getPublicIpAddress() {\n return publicIpAddress;\n }", "public String getIp() {\n return (String) get(24);\n }", "private static Ip4Address getInterfaceIp(int interfaceIndex) {\n Ip4Address ipAddress = null;\n try {\n NetworkInterface networkInterface = NetworkInterface.getByIndex(interfaceIndex);\n Enumeration ipAddresses = networkInterface.getInetAddresses();\n while (ipAddresses.hasMoreElements()) {\n InetAddress address = (InetAddress) ipAddresses.nextElement();\n if (!address.isLinkLocalAddress()) {\n ipAddress = Ip4Address.valueOf(address.getAddress());\n break;\n }\n }\n } catch (Exception e) {\n log.debug(\"Error while getting Interface IP by index\");\n return OspfUtil.DEFAULTIP;\n }\n return ipAddress;\n }", "@Override\n public Integer getPrimaryASP(String name) {\n // for now, we are suppressing the local subnet search \n if (name.equals(\"local\")){\n return 0;\n }\n else if (name.equals(\"osinfo\")){\n return 1;\n }\n else if (name.equals(\"timeout\")){\n return 15;\n }\n\n return 0;\n }", "FrontendIpConfiguration destinationLoadBalancerFrontEndIpConfiguration();", "public CniBgpConfiguration cniBgpConfiguration() {\n return this.innerProperties() == null ? null : this.innerProperties().cniBgpConfiguration();\n }", "public String getDeviceIp(){\n\t return deviceIP;\n }", "public String toString() {\n\n\t\treturn \"only one ip: \";\n\t}", "public String getClientip() {\n return clientip;\n }", "public String getShopperIP() {\n return shopperIP;\n }", "public Integer getPrimaryOwnerId() {\n return primaryOwnerId;\n }", "public String getUpnpExternalIpaddress();", "public int get(int id) {\r\n return configurations[id];\r\n }", "public java.lang.String getPrimaryCuid() {\n return primaryCuid;\n }", "public static String getIP() {\n\t\treturn ip;\r\n\t}", "public String getConfigurationID() {\n return configurationID;\n }", "public String ipAddress() {\n return this.ipAddress;\n }", "public String getIpAddr() {\r\n return ipAddr;\r\n }", "protected String getConfigurationElementValue(String property) {\n return ServiceReferenceHolder.getInstance().getAPIManagerConfigurationService().getAPIManagerConfiguration().\n getFirstProperty(property);\n }", "public Reference individual() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_INDIVIDUAL);\n }", "public java.lang.String getIp() {\r\n return ip;\r\n }", "public static String Ipconfig(){\n StringBuilder sbuf = new StringBuilder();\n InetAddress ip;\n String hostname;\n // Inet6Address ipv6; *add a ipv6 to get the ipv6 address\n try {\n ip = InetAddress.getLocalHost();\n hostname = ip.getHostName();\n\n //NetworkInterface network = NetworkInterface.getByInetAddress(ip);\n NetworkInterface nif = NetworkInterface.getByName(\"localhost\");\n //InetAddress[] inet = InetAddress.getAllByName(ip.getHostName());\n //String address = getAddress(inet).getHostAddress();\n\n sbuf.append(\"Default gateway: \"+ip.getLocalHost());\n //fmt.format(\"MAc address:\" + nif.getHardwareAddress());\n sbuf.append(\"\\nCurrent Name : \" + ip.getHostName());\n sbuf.append(\"\\nCurrent IP address : \" + ip.getHostAddress());\n //System.out.println(\"Current IPv6 address : \"+ getByAddress(hostname,inet,nets));// + ipv6.getHostAddress());\n //System.out.println(\"Current IPv6 Temp address : \");// + ipv6.getHostAddress());\n sbuf.append(\"\\nCurrent IPv6 Local : \");// + ipv6.getHostAddress());\n \n } catch(Throwable se){\n se.printStackTrace();\n }\n return sbuf.toString();\n }", "public String getIPAddress()\n {\n return fIPAddress;\n }", "public String getIpAddr() {\n return ipAddr;\n }", "public String ipv4ConnectedPrefix() {\n return this.innerProperties() == null ? null : this.innerProperties().ipv4ConnectedPrefix();\n }", "public String getIp() {\r\n return ip;\r\n }", "public String getInsipaddr() {\r\n return insipaddr;\r\n }" ]
[ "0.7072067", "0.64150184", "0.6394411", "0.6183878", "0.6143763", "0.61335295", "0.59934026", "0.59798706", "0.5969049", "0.5968652", "0.59357834", "0.59328616", "0.59290826", "0.5888499", "0.586913", "0.58305806", "0.5806146", "0.5803221", "0.57546717", "0.5735184", "0.569536", "0.5672528", "0.56293654", "0.55492413", "0.5494316", "0.54874814", "0.54406846", "0.5429991", "0.5429991", "0.5398739", "0.5398739", "0.5378126", "0.5377467", "0.5374546", "0.5374546", "0.5351638", "0.5350978", "0.5338296", "0.5338296", "0.5314761", "0.53048116", "0.53045523", "0.52844244", "0.5256913", "0.52550167", "0.5245239", "0.523177", "0.52297515", "0.5227688", "0.5217851", "0.5217851", "0.5217851", "0.5216605", "0.5211701", "0.51951015", "0.5184786", "0.5184786", "0.51820916", "0.51820916", "0.5180221", "0.5179335", "0.5177563", "0.5150825", "0.51459426", "0.5141166", "0.51324296", "0.51304585", "0.51304585", "0.51294357", "0.51205766", "0.51205343", "0.5115431", "0.5113062", "0.509654", "0.50757533", "0.5060175", "0.50543976", "0.50521654", "0.5049031", "0.5032907", "0.5029195", "0.5025946", "0.5023352", "0.50220436", "0.5020922", "0.5019319", "0.5019278", "0.5015244", "0.50129396", "0.50092065", "0.5006374", "0.50042427", "0.50004435", "0.49989462", "0.4997024", "0.4992531", "0.49839106", "0.4978025", "0.49641702", "0.49634466" ]
0.6076136
6
Set the primary property: Specifies the primary IP Configuration in case the network interface has more than one IP Configuration.
public VirtualMachineScaleSetUpdateIpConfigurationProperties withPrimary(Boolean primary) { this.primary = primary; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setPrimary(boolean primary)\r\n\t{\tthis.primary = primary;\t}", "public final int get_configured_primary () {\n\t\treturn configured_primary;\n\t}", "public void setIsPrimary(boolean value) {\r\n this.isPrimary = value;\r\n }", "public void set_force_primary (int the_force_primary) {\n\t\tforce_primary = the_force_primary;\n\t\treturn;\n\t}", "public void setPrimaryProduct(java.lang.Boolean primaryProduct) {\n this.primaryProduct = primaryProduct;\n }", "public void setPerClientIp(Boolean perClientIp) {\n this.perClientIp = perClientIp;\n }", "public void setIsPrimary(boolean isPrimary);", "public boolean isPrimary() {\n return this.placement.isIsPtlp();\n }", "public boolean isPrimary()\r\n\t{\treturn this.primary;\t}", "private void setS1Ip(int value) {\n \n s1Ip_ = value;\n }", "public final String get_configured_primary_as_string () {\n\t\treturn \"P\" + configured_primary;\n\t}", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "public boolean getIsPrimary();", "public final void mT__210() throws RecognitionException {\r\n try {\r\n int _type = T__210;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:211:8: ( 'primary=' )\r\n // InternalSpringConfigDsl.g:211:10: 'primary='\r\n {\r\n match(\"primary=\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "public boolean isIsPrimary() {\r\n return isPrimary;\r\n }", "public void setPrimaryUser ( final String primaryUser ) {\n this.primaryUser = primaryUser;\n }", "public void setPrimaryKey(boolean isPrimary) {\n\t\tm_primarykey = isPrimary;\n\t\tif (isPrimary)\n\t\t\tsetNullable(false);\n\t}", "public void setPrimaryExec(String primaryExec) {\n this.primaryExec = primaryExec;\n }", "public void setIPAddress(final IPAddress iPAddress) {\n this.iPAddress = iPAddress;\n }", "public Boolean primary() {\n return this.primary;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "public boolean isIsPrimary();", "public void setPrimaryColor(String primaryColor) {\r\n //System.out.print(\"Setting PrimaryColor...\");\r\n this.PrimaryColor = primaryColor;\r\n }", "public String primary() {\n return this.primary;\n }", "public boolean isPrimary() {\n return false;\n }", "public boolean isPrimary() {\n return false;\n }", "public void loadPRIConfiguration()\r\n\t{\r\n\t\tString httpId = (String) globalConfigurationService.getProperty(\"sapproductrecommendation_httpdest\");\t\t\r\n\t\tthis.setHttpDestinationId(httpId);\r\n\t\tloadHTTPDestination();\r\n\t}", "public void setPortperip(Integer portperip) {\r\n this.portperip = portperip;\r\n }", "public void dhcpConf() throws ConfException, UnknownHostException {\n\t\tLOGGER.info(\"start LAN IP Assignment DHCP with options configuration\");\n\t\tString lanIp = service.leaf(nfv._lan_ip).valueAsString();\n\t\tTemplate dhcpTemplate = new Template(context, Commons.dhcpTemplate);\n\t\tNavuList dhcpList = service.list(nfv._dhcp_param);\n\t\tint dhcpOutercount = 0;\n\t\tint dhcpInnercount = 0;\n\t\tfor (NavuNode dhcpElem : dhcpList) {\n\t\t\tString modifyParam = dhcpElem.leaf(nfv._modify_dhcp_param).valueAsString();\n\t\t\tString interfaceId = dhcpElem.leaf(nfv._interface_id).valueAsString();\n\t\t\tString lanNetwork = dhcpElem.leaf(nfv._lan_network).valueAsString();\n\t\t\tLOGGER.info(\"DHCP - modifyparam : \" + modifyParam);\n\t\t\tLOGGER.info(\"DHCP - Interface ID : \" + interfaceId);\n\t\t\tLOGGER.info(\"DHCP - LAN Network : \" + lanNetwork);\n\t\t\tdhcpOutercount++;\n\t\t\tdhcpInnercount = 0;\n\t\t\tif (interfaceId == null)\n\t\t\t\tinterfaceId = \"\";\n\t\t\telse{\n\t\t\t\tinterfaceId = \"Pool\" + interfaceId;\n\t\t\t\tLOGGER.info(\"******************** Pool\"+interfaceId);}\n\t\t\tif (modifyParam != null && modifyParam.equals(\"No\")) {\n\t\t\t\tString DhcplanIp=\"\";\n\t\t\t\tString mask=\"\";\n\t\t\t\t\n\t\t\t\tif(interfaceId.substring(4).equals(\"3\")){\n\t\t\t\t\t DhcplanIp = Utility.getIPAddress(lanIp);\n\t\t\t\t\t mask = Utility.getNetMask(lanIp);\n\t\t\t\t}\n\t\t\t\telse if(interfaceId.substring(4).startsWith(\"3.\")){\t\t\t\t\t\n\t\t\t\t\tString lanipAddress=null;\n\t\t\t\t\tfor (NavuNode cVlan : service.list(\"lan-cvlans\")) {\n\t\t\t\t\tif((interfaceId.substring(6)).equals((cVlan.leaf(\"lan-cvlan-id\").valueAsString()))){\n\t\t\t\t\tlanipAddress = cVlan.leaf(\"lan-cvlan-ip\").valueAsString();\n\t\t\t\t\t\tLOGGER.info(\"*******lanipAddress \"+lanipAddress); \n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t}\t\t\n\t\t\t\t\tif(lanipAddress !=null){\n\t\t\t\t\t DhcplanIp = Utility.getIPAddress(lanipAddress);\n\t\t\t\t\t mask = Utility.getNetMask(lanipAddress);\t}\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\tLOGGER.info(\"Dhcp support only lan interface\");\n\t\t\t\t}\n\t\t\t\tLOGGER.info(\"************************* DhcplanIp: \" + DhcplanIp +\" \"+mask);\n\t\t\t\tdhcpListNoCall(service, dhcpTemplate, csrName, DhcplanIp, mask, interfaceId,dhcpOutercount);\n\t\t\t} else {\n\t\t\t\tString dhcpLanNmask = \"\";\n\t\t\t\tString startaddress = \"\";\n\t\t\t\tString endaddress = \"\";\n\n\t\t\t\tif (lanNetwork != null) {\n\t\t\t\t\tdhcpLanNmask = Utility.getNetMask(lanNetwork);\n\t\t\t\t\tlanNetwork = Utility.getIPAddress(lanNetwork);\n\t\t\t\t} else{\n\t\t\t\t\tdhcpLanNmask = \"\";\n\t\t\t\t\tlanNetwork=\"\";\n\t\t\t\t}\n\t\t\t\tNavuList excludeaddrs = dhcpElem.list(\"exclude-address\");\n\n\t\t\t\tfor (NavuNode excludeaddressElem : excludeaddrs) {\n\t\t\t\t\tstartaddress = excludeaddressElem.leaf(\"start-address\").valueAsString();\n\t\t\t\t\tendaddress = excludeaddressElem.leaf(\"end-address\").valueAsString();\n\t\t\t\t\tif(endaddress==null)\n\t\t\t\t\t endaddress=\"\";\n\t\t\t\t\tLOGGER.info(\"start address\" + startaddress);\n\t\t\t\t\tLOGGER.info(\"end address\" + endaddress);\n\t\t\t\t\tdhcpListYesCall(service, dhcpTemplate, csrName, dhcpLanNmask, lanNetwork, interfaceId, startaddress,\n\t\t\t\t\t\t\tendaddress,dhcpOutercount);\n\t\t\t\t}\n\t\t\t\tif (startaddress.equals(\"\") && endaddress.equals(\"\")) {\n\t\t\t\t\tdhcpListYesCall(service, dhcpTemplate, csrName, dhcpLanNmask, lanNetwork, interfaceId, startaddress,\n\t\t\t\t\t\t\tendaddress,dhcpOutercount);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (dhcpElem.list(\"option\") != null) {\n\t\t\t\tfor (NavuNode option : dhcpElem.list(\"option\")) {\n\t\t\t\t\tdhcpInnercount++;\n\t\t\t\t\tdhcpListOptionCall(service, dhcpTemplate, csrName, dhcpOutercount, dhcpInnercount);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tLOGGER.info(\"end LAN IP Assignment DHCP with options configuration\");\n\t}", "public JVMControllerDiagnosticsSnapshotDTOBuilder setPrimaryNode(final Boolean primaryNode) {\n this.primaryNode = primaryNode;\n return this;\n }", "void setPrimaryColor(String primaryColor){\n this.primaryColor = primaryColor;\n }", "public SubResource frontendIpConfiguration() {\n return this.frontendIpConfiguration;\n }", "public void setPrimaryOwnerId(Integer primaryOwnerId) {\n this.primaryOwnerId = primaryOwnerId;\n }", "public String getEmailPrimary() {\n\t\t\treturn emailPrimary;\n\t\t}", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "public Image getPrimaryImage() {\n return primaryImage;\n }", "public NetworkInterfaceIpConfigurationInner ipConfiguration() {\n return this.ipConfiguration;\n }", "public void setPrimaryCuid(java.lang.String primaryCuid) {\n this.primaryCuid = primaryCuid;\n }", "public AgentRegistrationKeys withPrimary(String primary) {\n this.primary = primary;\n return this;\n }", "public PrimaryElements getPrimaryAccess() {\n\t\treturn pPrimary;\n\t}", "public boolean is_pdl_primary () {\n\n\t\t// Check if mode is forced\n\n\t\tswitch (force_primary) {\n\t\tcase 1:\n\t\t\treturn true;\n\t\tcase 2:\n\t\t\treturn false;\n\t\t}\n\n\t\t// Get the primary mode from the relay link\n\n\t\treturn sg.relay_link.is_primary_state();\n\n\t\t// // For now, just assume primary\n\t\t// \n\t\t// return true;\n\t}", "public void setPrimaryName(java.lang.String primaryName) {\n this.primaryName = primaryName;\n }", "public abstract boolean isPrimary();", "public void setSingleInterface(final boolean isSingleInterface) {\n this.isSingleInterface = isSingleInterface;\n }", "public synchronized void setPrimaryBroker(GSelectionBroker<E> newPrimaryBroker) {\n\n broadcasting = true;\n GSelection<E> prev = getSelection();\n primaryBroker = newPrimaryBroker;\n GSelection<E> newSelection = getSelection();\n LOGGER.fine(\"New Primary Broker: selection set: + \" + newSelection);\n for (GSelectionBroker<E> b: brokers)\n if (b != primaryBroker)\n b.setSelection(newSelection);\n pcs.firePropertyChange(PROP_SELECTION, prev, newSelection);\n broadcasting = false;\n\n }", "public static ReadShellPreference primary() {\n return PRIMARY;\n }", "public Builder setPrimarySnId(int value) {\n \n primarySnId_ = value;\n onChanged();\n return this;\n }", "public Builder setPrimarySnId(int value) {\n \n primarySnId_ = value;\n onChanged();\n return this;\n }", "public VirtualMachineScaleSetUpdatePublicIpAddressConfiguration publicIpAddressConfiguration() {\n return this.publicIpAddressConfiguration;\n }", "public Resource getPrimaryResource() {\n return primaryResource;\n }", "public PrimaryGridUnit getPrimary() {\n return primary;\n }", "public Builder setS1Ip(int value) {\n copyOnWrite();\n instance.setS1Ip(value);\n return this;\n }", "private int setUpAlternativePrimaryImplementation() throws SQLException\n {\n DatabaseOperationMonitoring.instance().dropMonitoringTriggers(testClassSetup.dataSource());\n\n /* determine the model containing the process definition whose primary implementation we'd like to change */\n final Models models = sf.getQueryService().getModels(DeployedModelQuery.findActiveForId(MODEL_ID));\n assertThat(models.size(), equalTo(1));\n final int modelOid = models.get(0).getModelOID();\n\n /* set primary implementation to the alternative one */\n sf.getAdministrationService().setPrimaryImplementation(modelOid, TransientProcessInstanceModelConstants.PROCESS_DEF_ID_PROCESS_INTERFACE_UNQUALIFIED, ALTERNATIVE_IMPL_MODEL_ID, null);\n\n /* restart monitoring */\n DatabaseOperationMonitoring.instance().createMonitoringTriggers(testClassSetup.dataSource());\n\n return modelOid;\n }", "public java.lang.Boolean getPrimaryProduct() {\n return primaryProduct;\n }", "public void setIpSourceType(int value) {\n setProperty(IP_SOURCE_TYPE, value, SOURCE_TYPE_DEFAULT);\n }", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "public void setVIP(boolean VIP);", "public void setIpSource(String value) {\n setProperty(IP_SOURCE, value, \"\");\n }", "public void setPrimaryContact(java.lang.String primaryContact) {\n this.primaryContact = primaryContact;\n }", "public void setIP(String IP) {\n this.IP = IP;\n }", "public final void rulePrimaryProcess() throws RecognitionException {\n\n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:1772:2: ( ( ( rule__PrimaryProcess__Alternatives ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:1773:1: ( ( rule__PrimaryProcess__Alternatives ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:1773:1: ( ( rule__PrimaryProcess__Alternatives ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:1774:1: ( rule__PrimaryProcess__Alternatives )\n {\n before(grammarAccess.getPrimaryProcessAccess().getAlternatives()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:1775:1: ( rule__PrimaryProcess__Alternatives )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:1775:2: rule__PrimaryProcess__Alternatives\n {\n pushFollow(FOLLOW_rule__PrimaryProcess__Alternatives_in_rulePrimaryProcess3340);\n rule__PrimaryProcess__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getPrimaryProcessAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n \tmyHiddenTokenState.restore();\n\n }\n return ;\n }", "static ReadShellPreference primaryPreferred() {\n return PRIMARY_PREFERRED;\n }", "public void setIP(java.lang.String IP) {\r\n this.IP = IP;\r\n }", "private void setupconfigIpCPoints() {\n for (int i = 1; i <= 3; i++) {\n ConnectPoint connectPoint = new ConnectPoint(\n getDeviceId(i),\n PortNumber.portNumber(1));\n configIpCPoints.add(connectPoint);\n }\n }", "public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }", "public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }", "public interface IpConfig {\n String ip=\"192.168.43.217:8080\";\n}", "public void setPrimaryContactEmail(String newValue) {\n String oldValue = _primaryContactEmail;\n if (!oldValue.equals(newValue)) {\n _primaryContactEmail = newValue;\n firePropertyChange(NGO_CONTACT_EMAIL_PROP, oldValue, newValue);\n }\n }", "public void setPrimaryVisibility(int visibility) {\n if (mPrimaryView != null && mPrimaryView.getVisibility() != visibility) {\n mPrimaryView.setVisibility(visibility);\n }\n }", "public int getPrimarySnId() {\n return primarySnId_;\n }", "public int getPrimarySnId() {\n return primarySnId_;\n }", "public void setIpAddress(String ipAddress) {\n this.standardPairs.put(Parameters.IP_ADDRESS, ipAddress);\n }", "public Builder setPrimaryIcon(Bitmap bitmap){\n this.primaryIcon = bitmap;\n return this;\n }", "public ProfileStoreCollectionInfo primaryInfo() {\n return this.primaryInfo;\n }", "public int getPrimarySnId() {\n return primarySnId_;\n }", "public int getPrimarySnId() {\n return primarySnId_;\n }", "public Boolean getPrimaryNode() {\n return primaryNode;\n }", "FrontendIpConfiguration destinationLoadBalancerFrontEndIpConfiguration();", "private boolean isConnectedToPrimary(SRVRecord[] recs)\n\t{\n\t\tString primaryAddress = getPrimaryServerRecord(recs).getTarget();\n\t\tif (primaryAddress != null && primaryAddress.equals(currentAddress))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public final void rule__PredicatePrimary__ExpressionAssignment_1_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10025:1: ( ( rulePredicatePrimary ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10026:1: ( rulePredicatePrimary )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10026:1: ( rulePredicatePrimary )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10027:1: rulePredicatePrimary\n {\n before(grammarAccess.getPredicatePrimaryAccess().getExpressionPredicatePrimaryParserRuleCall_1_2_0()); \n pushFollow(FOLLOW_rulePredicatePrimary_in_rule__PredicatePrimary__ExpressionAssignment_1_219682);\n rulePredicatePrimary();\n\n state._fsp--;\n\n after(grammarAccess.getPredicatePrimaryAccess().getExpressionPredicatePrimaryParserRuleCall_1_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Builder setIp(int value) {\n bitField0_ |= 0x00000100;\n ip_ = value;\n onChanged();\n return this;\n }", "public Builder setInIp(int value) {\n copyOnWrite();\n instance.setInIp(value);\n return this;\n }", "public Builder setInIp(int value) {\n copyOnWrite();\n instance.setInIp(value);\n return this;\n }", "public void setIp(String value) {\n set(24, value);\n }", "public abstract String associatePredefinedAddress(NodeMetadata node, String ip);", "public void setPrimaryContact(String contact);", "public Builder setIp(int value) {\n copyOnWrite();\n instance.setIp(value);\n return this;\n }", "public Builder setIp(int value) {\n copyOnWrite();\n instance.setIp(value);\n return this;\n }", "public InputProcessor getIP() {\r\n return ip;\r\n }", "public final void primary() throws RecognitionException {\n int primary_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"primary\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(835, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 124) ) { return ; }\n // Java.g:836:5: ( parExpression | 'this' ( '.' Identifier )* ( identifierSuffix )? | 'super' superSuffix | literal | 'new' creator | Identifier ( '.' Identifier )* ( identifierSuffix )? | primitiveType ( '[' ']' )* '.' 'class' | 'void' '.' 'class' )\n int alt153=8;\n try { dbg.enterDecision(153);\n\n switch ( input.LA(1) ) {\n case 66:\n {\n alt153=1;\n }\n break;\n case 69:\n {\n alt153=2;\n }\n break;\n case 65:\n {\n alt153=3;\n }\n break;\n case FloatingPointLiteral:\n case CharacterLiteral:\n case StringLiteral:\n case HexLiteral:\n case OctalLiteral:\n case DecimalLiteral:\n case 70:\n case 71:\n case 72:\n {\n alt153=4;\n }\n break;\n case 113:\n {\n alt153=5;\n }\n break;\n case Identifier:\n {\n alt153=6;\n }\n break;\n case 56:\n case 57:\n case 58:\n case 59:\n case 60:\n case 61:\n case 62:\n case 63:\n {\n alt153=7;\n }\n break;\n case 47:\n {\n alt153=8;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 153, 0, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n\n } finally {dbg.exitDecision(153);}\n\n switch (alt153) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:836:9: parExpression\n {\n dbg.location(836,9);\n pushFollow(FOLLOW_parExpression_in_primary5093);\n parExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // Java.g:837:9: 'this' ( '.' Identifier )* ( identifierSuffix )?\n {\n dbg.location(837,9);\n match(input,69,FOLLOW_69_in_primary5103); if (state.failed) return ;\n dbg.location(837,16);\n // Java.g:837:16: ( '.' Identifier )*\n try { dbg.enterSubRule(148);\n\n loop148:\n do {\n int alt148=2;\n try { dbg.enterDecision(148);\n\n int LA148_0 = input.LA(1);\n\n if ( (LA148_0==29) ) {\n int LA148_2 = input.LA(2);\n\n if ( (LA148_2==Identifier) ) {\n int LA148_3 = input.LA(3);\n\n if ( (synpred236_Java()) ) {\n alt148=1;\n }\n\n\n }\n\n\n }\n\n\n } finally {dbg.exitDecision(148);}\n\n switch (alt148) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:837:17: '.' Identifier\n \t {\n \t dbg.location(837,17);\n \t match(input,29,FOLLOW_29_in_primary5106); if (state.failed) return ;\n \t dbg.location(837,21);\n \t match(input,Identifier,FOLLOW_Identifier_in_primary5108); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop148;\n }\n } while (true);\n } finally {dbg.exitSubRule(148);}\n\n dbg.location(837,34);\n // Java.g:837:34: ( identifierSuffix )?\n int alt149=2;\n try { dbg.enterSubRule(149);\n try { dbg.enterDecision(149);\n\n try {\n isCyclicDecision = true;\n alt149 = dfa149.predict(input);\n }\n catch (NoViableAltException nvae) {\n dbg.recognitionException(nvae);\n throw nvae;\n }\n } finally {dbg.exitDecision(149);}\n\n switch (alt149) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:0:0: identifierSuffix\n {\n dbg.location(837,34);\n pushFollow(FOLLOW_identifierSuffix_in_primary5112);\n identifierSuffix();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n } finally {dbg.exitSubRule(149);}\n\n\n }\n break;\n case 3 :\n dbg.enterAlt(3);\n\n // Java.g:838:9: 'super' superSuffix\n {\n dbg.location(838,9);\n match(input,65,FOLLOW_65_in_primary5123); if (state.failed) return ;\n dbg.location(838,17);\n pushFollow(FOLLOW_superSuffix_in_primary5125);\n superSuffix();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 4 :\n dbg.enterAlt(4);\n\n // Java.g:839:9: literal\n {\n dbg.location(839,9);\n pushFollow(FOLLOW_literal_in_primary5135);\n literal();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 5 :\n dbg.enterAlt(5);\n\n // Java.g:840:9: 'new' creator\n {\n dbg.location(840,9);\n match(input,113,FOLLOW_113_in_primary5145); if (state.failed) return ;\n dbg.location(840,15);\n pushFollow(FOLLOW_creator_in_primary5147);\n creator();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 6 :\n dbg.enterAlt(6);\n\n // Java.g:841:9: Identifier ( '.' Identifier )* ( identifierSuffix )?\n {\n dbg.location(841,9);\n match(input,Identifier,FOLLOW_Identifier_in_primary5157); if (state.failed) return ;\n dbg.location(841,20);\n // Java.g:841:20: ( '.' Identifier )*\n try { dbg.enterSubRule(150);\n\n loop150:\n do {\n int alt150=2;\n try { dbg.enterDecision(150);\n\n int LA150_0 = input.LA(1);\n\n if ( (LA150_0==29) ) {\n int LA150_2 = input.LA(2);\n\n if ( (LA150_2==Identifier) ) {\n int LA150_3 = input.LA(3);\n\n if ( (synpred242_Java()) ) {\n alt150=1;\n }\n\n\n }\n\n\n }\n\n\n } finally {dbg.exitDecision(150);}\n\n switch (alt150) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:841:21: '.' Identifier\n \t {\n \t dbg.location(841,21);\n \t match(input,29,FOLLOW_29_in_primary5160); if (state.failed) return ;\n \t dbg.location(841,25);\n \t match(input,Identifier,FOLLOW_Identifier_in_primary5162); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop150;\n }\n } while (true);\n } finally {dbg.exitSubRule(150);}\n\n dbg.location(841,38);\n // Java.g:841:38: ( identifierSuffix )?\n int alt151=2;\n try { dbg.enterSubRule(151);\n try { dbg.enterDecision(151);\n\n try {\n isCyclicDecision = true;\n alt151 = dfa151.predict(input);\n }\n catch (NoViableAltException nvae) {\n dbg.recognitionException(nvae);\n throw nvae;\n }\n } finally {dbg.exitDecision(151);}\n\n switch (alt151) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:0:0: identifierSuffix\n {\n dbg.location(841,38);\n pushFollow(FOLLOW_identifierSuffix_in_primary5166);\n identifierSuffix();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n } finally {dbg.exitSubRule(151);}\n\n\n }\n break;\n case 7 :\n dbg.enterAlt(7);\n\n // Java.g:842:9: primitiveType ( '[' ']' )* '.' 'class'\n {\n dbg.location(842,9);\n pushFollow(FOLLOW_primitiveType_in_primary5177);\n primitiveType();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(842,23);\n // Java.g:842:23: ( '[' ']' )*\n try { dbg.enterSubRule(152);\n\n loop152:\n do {\n int alt152=2;\n try { dbg.enterDecision(152);\n\n int LA152_0 = input.LA(1);\n\n if ( (LA152_0==48) ) {\n alt152=1;\n }\n\n\n } finally {dbg.exitDecision(152);}\n\n switch (alt152) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:842:24: '[' ']'\n \t {\n \t dbg.location(842,24);\n \t match(input,48,FOLLOW_48_in_primary5180); if (state.failed) return ;\n \t dbg.location(842,28);\n \t match(input,49,FOLLOW_49_in_primary5182); if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop152;\n }\n } while (true);\n } finally {dbg.exitSubRule(152);}\n\n dbg.location(842,34);\n match(input,29,FOLLOW_29_in_primary5186); if (state.failed) return ;\n dbg.location(842,38);\n match(input,37,FOLLOW_37_in_primary5188); if (state.failed) return ;\n\n }\n break;\n case 8 :\n dbg.enterAlt(8);\n\n // Java.g:843:9: 'void' '.' 'class'\n {\n dbg.location(843,9);\n match(input,47,FOLLOW_47_in_primary5198); if (state.failed) return ;\n dbg.location(843,16);\n match(input,29,FOLLOW_29_in_primary5200); if (state.failed) return ;\n dbg.location(843,20);\n match(input,37,FOLLOW_37_in_primary5202); if (state.failed) return ;\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 124, primary_StartIndex); }\n }\n dbg.location(844, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"primary\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_candidate.setPrimaryKey(primaryKey);\n\t}", "void setAssociatedPart(int asProID) {\n this.asProID = asProID;\n }", "public void setIpAddress1Value(IpAddress ipAddress1Value)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address1\",\n ipAddress1Value,\n childrenNames());\n }", "public final void rulePredicatePrimary() throws RecognitionException {\n\n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:692:2: ( ( ( rule__PredicatePrimary__Alternatives ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:693:1: ( ( rule__PredicatePrimary__Alternatives ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:693:1: ( ( rule__PredicatePrimary__Alternatives ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:694:1: ( rule__PredicatePrimary__Alternatives )\n {\n before(grammarAccess.getPredicatePrimaryAccess().getAlternatives()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:695:1: ( rule__PredicatePrimary__Alternatives )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:695:2: rule__PredicatePrimary__Alternatives\n {\n pushFollow(FOLLOW_rule__PredicatePrimary__Alternatives_in_rulePredicatePrimary1275);\n rule__PredicatePrimary__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getPredicatePrimaryAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n \tmyHiddenTokenState.restore();\n\n }\n return ;\n }", "public final void rule__PredicateProcess__RefAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10641:1: ( ( rulePrimaryProcess ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10642:1: ( rulePrimaryProcess )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10642:1: ( rulePrimaryProcess )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10643:1: rulePrimaryProcess\n {\n before(grammarAccess.getPredicateProcessAccess().getRefPrimaryProcessParserRuleCall_2_0()); \n pushFollow(FOLLOW_rulePrimaryProcess_in_rule__PredicateProcess__RefAssignment_220948);\n rulePrimaryProcess();\n\n state._fsp--;\n\n after(grammarAccess.getPredicateProcessAccess().getRefPrimaryProcessParserRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void setIntProperty(@PropertyId int propertyId, int area, int val)\n throws CarNotConnectedException {\n if (mHvacPropertyIds.contains(propertyId)) {\n mCarPropertyMgr.setIntProperty(propertyId, area, val);\n }\n }", "public void setIDINTERNOPE1(int value) {\n this.idinternope1 = value;\n }", "public final void mPRIMARY() throws RecognitionException {\n try {\n int _type = PRIMARY;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:362:9: ( P R I M A R Y )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:362:11: P R I M A R Y\n {\n mP(); \n mR(); \n mI(); \n mM(); \n mA(); \n mR(); \n mY(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }" ]
[ "0.65360683", "0.6082789", "0.58468705", "0.5812838", "0.57156307", "0.56146777", "0.5594981", "0.544699", "0.5415773", "0.53885037", "0.53812003", "0.5365484", "0.5365484", "0.5354696", "0.53490186", "0.53134793", "0.52996135", "0.5291685", "0.52908677", "0.52821004", "0.5238556", "0.5229225", "0.5229225", "0.52176327", "0.52133167", "0.5201524", "0.51602226", "0.51602226", "0.5138516", "0.5079962", "0.5070092", "0.50695175", "0.5044303", "0.50355923", "0.50240177", "0.50224775", "0.49963352", "0.49913642", "0.49879512", "0.4980019", "0.49774632", "0.4977108", "0.4972258", "0.4967243", "0.49402744", "0.49260142", "0.49244928", "0.49221626", "0.49185637", "0.49185637", "0.49048927", "0.4898614", "0.48896125", "0.48801455", "0.48625106", "0.48615047", "0.48331714", "0.48260167", "0.47806385", "0.47741565", "0.47718626", "0.47689316", "0.4764273", "0.47544748", "0.47402042", "0.47347453", "0.47291607", "0.47291607", "0.468821", "0.46849194", "0.4684248", "0.4660218", "0.4660218", "0.46553797", "0.46539056", "0.46537417", "0.46535122", "0.46535122", "0.46362945", "0.46345857", "0.46305856", "0.46049637", "0.46012548", "0.45893165", "0.45893165", "0.45848635", "0.4561877", "0.45614046", "0.45575833", "0.45575833", "0.45518848", "0.45432803", "0.4530708", "0.4527046", "0.4524737", "0.45238146", "0.45203835", "0.45092565", "0.45089692", "0.45060885" ]
0.6599882
0
Get the publicIpAddressConfiguration property: The publicIPAddressConfiguration.
public VirtualMachineScaleSetUpdatePublicIpAddressConfiguration publicIpAddressConfiguration() { return this.publicIpAddressConfiguration; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPublicIpAddress() {\n return publicIpAddress;\n }", "@Required\n public PublicIpAddressResource getPublicIpAddress() {\n return publicIpAddress;\n }", "public NetworkInterfaceIpConfigurationInner ipConfiguration() {\n return this.ipConfiguration;\n }", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withPublicIpAddressConfiguration(\n VirtualMachineScaleSetUpdatePublicIpAddressConfiguration publicIpAddressConfiguration) {\n this.publicIpAddressConfiguration = publicIpAddressConfiguration;\n return this;\n }", "public void setPublicIpAddress(String publicIpAddress) {\n this.publicIpAddress = publicIpAddress;\n }", "public String getIpAddress() {\n return ipAddress;\n }", "public String getIpAddress() {\n return ipAddress;\n }", "public String getIpAddress() {\n return ipAddress;\n }", "public NatGatewayAddress [] getPublicIpAddressSet() {\n return this.PublicIpAddressSet;\n }", "public String [] getPublicIpAddresses() {\n return this.PublicIpAddresses;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "public Ipv4Config ipv4Configuration() {\n return this.ipv4Configuration;\n }", "public String getUpnpExternalIpaddress();", "public IPAddress getIPAddress() {\n return iPAddress;\n }", "public String ipAddress() {\n return this.ipAddress;\n }", "String getCsPublicIp() {\n String ip = null;\n try {\n URL url = new URL(\"http://169.254.169.254/latest/meta-data/public-ipv4\");\n URLConnection conn = url.openConnection();\n Scanner s = new Scanner(conn.getInputStream());\n if (s.hasNext()) {\n ip = s.next();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return ip;\n }", "public InetAddress getIpAddress() \n\t{\n\t\treturn ipAddress;\n\t}", "FrontendIpConfiguration destinationLoadBalancerFrontEndIpConfiguration();", "public IpAddress getIpAddressValue() throws JNCException {\n return (IpAddress)getValue(\"ip-address\");\n }", "public String getClientIpAddress() {\n return clientIpAddress;\n }", "Ip4Address interfaceIpAddress();", "public String getIpAddressType() {\n return this.ipAddressType;\n }", "public String getIp() {\n return getIpString(inetAddress);\n }", "String getRemoteIpAddress();", "public SubResource frontendIpConfiguration() {\n return this.frontendIpConfiguration;\n }", "public int getInIp() {\n return instance.getInIp();\n }", "public int getInIp() {\n return instance.getInIp();\n }", "public String getPrivateIpAddress() {\n return this.PrivateIpAddress;\n }", "public int getInIp() {\n return inIp_;\n }", "public int getInIp() {\n return inIp_;\n }", "public String sourceIPAddress() {\n return this.sourceIPAddress;\n }", "public String getIpaddress() {\n\t\treturn ipaddress;\n\t}", "public java.lang.String getIpaddress() {\n return ipaddress;\n }", "public String getIpAddr() {\n return ipAddr;\n }", "public String getIpAddr() {\r\n return ipAddr;\r\n }", "public String getIpaddress ()\n {\n return ipaddress;\n }", "public String getIp() {\n return (String) get(24);\n }", "String getOriginIpAddress() {\n return originIpAddress;\n }", "public String getIPAddress()\n {\n return fIPAddress;\n }", "String getExternalIPAddress() throws NotDiscoverUpnpGatewayException, UpnpException;", "public Ipv6Config ipv6Configuration() {\n return this.ipv6Configuration;\n }", "public String getIpAddress()\n\t{\n\t\t/* TODO: The IP address returned is in this format: /127.0.0.1:9845\n\t\t * Rewrite to remove the unnessecary data. */\n\t\treturn getSession().getIpAddress();\n\t}", "@Nullable public abstract String ipAddress();", "public DataSourceVpcConfiguration getVpcConfiguration() {\n return this.vpcConfiguration;\n }", "public int getIp() {\n return instance.getIp();\n }", "public int getIp() {\n return instance.getIp();\n }", "public String getIp();", "public ForwardedIPConfig getForwardedIPConfig() {\n return this.forwardedIPConfig;\n }", "public IpAddress getIpAddress1Value() throws JNCException {\n return (IpAddress)getValue(\"ip-address1\");\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return ip;\n }", "public String getIp() {\n return ip;\n }", "int getInIp();", "int getInIp();", "public String get_ipaddress() throws Exception {\n\t\treturn this.ipaddress;\n\t}", "public String getGatewayIp() {\n return gatewayIp;\n }", "public static String getServerIpAddress() {\n return _serverIpAddress;\n }", "public NetworkConfiguration getNetworkConfiguration() {\n return this.networkConfiguration;\n }", "public NetworkConfiguration getNetworkConfiguration() {\n return this.networkConfiguration;\n }", "public InetAddress getIPAddress ( ) { return _IPAddress; }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public int getIp() {\n return ip_;\n }", "public String getIp() {\r\n return ip;\r\n }", "public String getIp() {\n return ip;\n }", "public IpVersion privateIpAddressVersion() {\n return this.privateIpAddressVersion;\n }", "public int getIp() {\n return ip_;\n }", "public String getIp() {\n return ip;\n }", "private static void getTcpPublicAddress() {\n\n\t\tString address = readFileString(FileConstant.FILE_NAME_TCP_ADDRESS_PUBLIC);\n\n\t\tif (Utils.isNotEmpty(address)) {\n\n\t\t\tint start = 0;\n\t\t\tint end = address.indexOf(FileConstant.FILE_STRING_SPLIP_SYMBOL, start);\n\n\t\t\tif (end < address.length()) {\n\n\t\t\t\tConfigureVariable.Tcp_Address_Ip_Public = address.substring(start, end);\n\n\t\t\t\tstart = end + 1;\n\t\t\t\tend = address.length();\n\n\t\t\t\tConfigureVariable.Tcp_Address_Port_Public = address.substring(start, end);\n\t\t\t}\n\t\t}\n\t}", "public CniBgpConfiguration cniBgpConfiguration() {\n return this.innerProperties() == null ? null : this.innerProperties().cniBgpConfiguration();\n }", "public InetAddress getGatewayIPAddress()\n {\n return gatewayIPAddress;\n }", "com.google.container.v1.NetworkPolicyConfig getNetworkPolicyConfig();", "public String getLocalIpAddress()\n {\n \t\n \treturn null;\n }", "public InetAddress getIP();", "public String destinationIPAddress() {\n return this.destinationIPAddress;\n }", "public String getClientIp() {\n return clientIp;\n }", "private String getIpAddress() throws SocketException {\n String ip = null;\n\n Enumeration networkInterfaces = NetworkInterface.getNetworkInterfaces();\n\n while (networkInterfaces.hasMoreElements()) {\n NetworkInterface networkInterface = (NetworkInterface) networkInterfaces.nextElement();\n\n if (networkInterface.getName().equals(\"eth0\") || networkInterface.getName().equals(\"wlan0\")) {\n Enumeration inetAddresses = networkInterface.getInetAddresses();\n\n while (inetAddresses.hasMoreElements()) {\n InetAddress inetAddress = (InetAddress) inetAddresses.nextElement();\n if (inetAddress instanceof Inet4Address) {\n ip = inetAddress.getHostAddress();\n }\n }\n }\n }\n \n return ip;\n }", "public static String Ipconfig(){\n StringBuilder sbuf = new StringBuilder();\n InetAddress ip;\n String hostname;\n // Inet6Address ipv6; *add a ipv6 to get the ipv6 address\n try {\n ip = InetAddress.getLocalHost();\n hostname = ip.getHostName();\n\n //NetworkInterface network = NetworkInterface.getByInetAddress(ip);\n NetworkInterface nif = NetworkInterface.getByName(\"localhost\");\n //InetAddress[] inet = InetAddress.getAllByName(ip.getHostName());\n //String address = getAddress(inet).getHostAddress();\n\n sbuf.append(\"Default gateway: \"+ip.getLocalHost());\n //fmt.format(\"MAc address:\" + nif.getHardwareAddress());\n sbuf.append(\"\\nCurrent Name : \" + ip.getHostName());\n sbuf.append(\"\\nCurrent IP address : \" + ip.getHostAddress());\n //System.out.println(\"Current IPv6 address : \"+ getByAddress(hostname,inet,nets));// + ipv6.getHostAddress());\n //System.out.println(\"Current IPv6 Temp address : \");// + ipv6.getHostAddress());\n sbuf.append(\"\\nCurrent IPv6 Local : \");// + ipv6.getHostAddress());\n \n } catch(Throwable se){\n se.printStackTrace();\n }\n return sbuf.toString();\n }", "public static String getLocalIPAddress() {\r\n return (localIPAddress);\r\n }", "@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}", "public InetAddress getAddress() {\n return ip;\n }", "public interface IpConfig {\n String ip=\"192.168.43.217:8080\";\n}", "String getInternalHostAddress() throws NotDiscoverUpnpGatewayException;", "public String getContainerIp() {\n return containerIp;\n }", "public InetAddress getSuggestedExternalIpAddress() {\n return suggestedExternalIpAddress;\n }", "public int getS1Ip() {\n return instance.getS1Ip();\n }", "String getIp();", "String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "java.lang.String getIp();", "public java.lang.String getIp() {\r\n return ip;\r\n }" ]
[ "0.75118023", "0.73542756", "0.69383585", "0.65093833", "0.6338129", "0.6307799", "0.6307799", "0.62551504", "0.62458694", "0.62326473", "0.61220384", "0.61026245", "0.60937375", "0.6054516", "0.6028024", "0.59364617", "0.5914083", "0.59122205", "0.58797854", "0.5838753", "0.5798257", "0.57762283", "0.5768305", "0.5766327", "0.57032907", "0.5702599", "0.5702599", "0.5684255", "0.5668885", "0.5668885", "0.56612575", "0.5626661", "0.5621525", "0.5618574", "0.558794", "0.55805945", "0.55663824", "0.55345976", "0.55291903", "0.55287474", "0.551595", "0.5506648", "0.5491565", "0.54694086", "0.54683375", "0.54683375", "0.5440021", "0.5412843", "0.53917277", "0.5367742", "0.5367742", "0.5367742", "0.5367742", "0.5367742", "0.5367742", "0.53599083", "0.53599083", "0.5350544", "0.5349433", "0.5345232", "0.5342815", "0.5342815", "0.5341573", "0.5332235", "0.5332235", "0.5332235", "0.5325664", "0.5324842", "0.5321731", "0.53193086", "0.5315412", "0.5313625", "0.53079355", "0.52916104", "0.5290147", "0.5279362", "0.5260678", "0.52554053", "0.52538896", "0.5253051", "0.5220082", "0.51990455", "0.5189379", "0.51851135", "0.5183077", "0.51677364", "0.51656103", "0.5137945", "0.5137902", "0.5137752", "0.5137752", "0.51285505", "0.51285505", "0.51285505", "0.51285505", "0.51285505", "0.51285505", "0.51285505", "0.51285505", "0.5125917" ]
0.82207
0
Set the publicIpAddressConfiguration property: The publicIPAddressConfiguration.
public VirtualMachineScaleSetUpdateIpConfigurationProperties withPublicIpAddressConfiguration( VirtualMachineScaleSetUpdatePublicIpAddressConfiguration publicIpAddressConfiguration) { this.publicIpAddressConfiguration = publicIpAddressConfiguration; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPublicIpAddress(String publicIpAddress) {\n this.publicIpAddress = publicIpAddress;\n }", "public VirtualMachineScaleSetUpdatePublicIpAddressConfiguration publicIpAddressConfiguration() {\n return this.publicIpAddressConfiguration;\n }", "public String getPublicIpAddress() {\n return publicIpAddress;\n }", "public void setPublicIpAddressSet(NatGatewayAddress [] PublicIpAddressSet) {\n this.PublicIpAddressSet = PublicIpAddressSet;\n }", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "@Required\n public PublicIpAddressResource getPublicIpAddress() {\n return publicIpAddress;\n }", "public void setIpAddress(String ipAddress) {\n this.ipAddress = ipAddress;\n }", "public void setIpAddress(String ipAddress) {\n this.standardPairs.put(Parameters.IP_ADDRESS, ipAddress);\n }", "public void setIPAddress(final IPAddress iPAddress) {\n this.iPAddress = iPAddress;\n }", "public void setPublicIpAddresses(String [] PublicIpAddresses) {\n this.PublicIpAddresses = PublicIpAddresses;\n }", "public void setIpAddress(InetAddress addr) \n\t{\n\t\tthis.ipAddress = addr;\n\t}", "public void setGatewayIPAddress(InetAddress gatewayIPAddress)\n {\n this.gatewayIPAddress = gatewayIPAddress;\n }", "public void setPrivateIpAddress(String PrivateIpAddress) {\n this.PrivateIpAddress = PrivateIpAddress;\n }", "NetworkInterfaceIpConfiguration destinationNetworkInterfaceIpConfiguration();", "public NatGatewayAddress [] getPublicIpAddressSet() {\n return this.PublicIpAddressSet;\n }", "FrontendIpConfiguration destinationLoadBalancerFrontEndIpConfiguration();", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "public InputEndpoint withPublicPort(Integer publicPort) {\n this.publicPort = publicPort;\n return this;\n }", "public String [] getPublicIpAddresses() {\n return this.PublicIpAddresses;\n }", "public void host (String ipAddress) {\n this.ipAddress = ipAddress;\n }", "public void setIpAddressValue(IpAddress ipAddressValue) throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address\",\n ipAddressValue,\n childrenNames());\n }", "@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}", "public Builder setInIp(int value) {\n copyOnWrite();\n instance.setInIp(value);\n return this;\n }", "public Builder setInIp(int value) {\n copyOnWrite();\n instance.setInIp(value);\n return this;\n }", "public void setIpaddress(java.lang.String ipaddress) {\n this.ipaddress = ipaddress;\n }", "public void setIpaddress(String ipaddress) {\n\t\tthis.ipaddress = ipaddress;\n\t}", "public void setIpAddress(String ipAddress) {\n this.ipAddress = WordCache.getWordCache(ipAddress);\n }", "public void setHostAddress(int value) {\n this.hostAddress = value;\n }", "public void setIp(String value) {\n set(24, value);\n }", "@Override\r\n public void setIPAddress(String address) {\r\n this.address = address;\r\n }", "public Builder setIp(int value) {\n bitField0_ |= 0x00000100;\n ip_ = value;\n onChanged();\n return this;\n }", "public String getIpAddress() {\n return ipAddress;\n }", "public String getIpAddress() {\n return ipAddress;\n }", "public Builder setIp(int value) {\n copyOnWrite();\n instance.setIp(value);\n return this;\n }", "public Builder setIp(int value) {\n copyOnWrite();\n instance.setIp(value);\n return this;\n }", "public void setVIP(boolean VIP);", "public String getIpAddress() {\n return ipAddress;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "public NetworkInterfaceIpConfigurationInner ipConfiguration() {\n return this.ipConfiguration;\n }", "public void setIpAddressValue(String ipAddressValue) throws JNCException {\n setIpAddressValue(new IpAddress(ipAddressValue));\n }", "public void setIpadress(java.lang.String ipadress) {\r\n this.ipadress = ipadress;\r\n }", "public void setPublicKey(PublicKey publicKey) {\n this.publicKey = publicKey;\n }", "public ManagedHsmProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {\n this.publicNetworkAccess = publicNetworkAccess;\n return this;\n }", "public void setVpcConfiguration(DataSourceVpcConfiguration vpcConfiguration) {\n this.vpcConfiguration = vpcConfiguration;\n }", "public ApplicationGatewayBackendHealthServerInner withIpConfiguration(\n NetworkInterfaceIpConfigurationInner ipConfiguration) {\n this.ipConfiguration = ipConfiguration;\n return this;\n }", "public Builder setS1Ip(int value) {\n copyOnWrite();\n instance.setS1Ip(value);\n return this;\n }", "private void setS1Ip(int value) {\n \n s1Ip_ = value;\n }", "public void setVideoMulticastAddr(String ip);", "private static void getTcpPublicAddress() {\n\n\t\tString address = readFileString(FileConstant.FILE_NAME_TCP_ADDRESS_PUBLIC);\n\n\t\tif (Utils.isNotEmpty(address)) {\n\n\t\t\tint start = 0;\n\t\t\tint end = address.indexOf(FileConstant.FILE_STRING_SPLIP_SYMBOL, start);\n\n\t\t\tif (end < address.length()) {\n\n\t\t\t\tConfigureVariable.Tcp_Address_Ip_Public = address.substring(start, end);\n\n\t\t\t\tstart = end + 1;\n\t\t\t\tend = address.length();\n\n\t\t\t\tConfigureVariable.Tcp_Address_Port_Public = address.substring(start, end);\n\t\t\t}\n\t\t}\n\t}", "public void setPublicKey(PublicKey newPublicKey) {\r\n publicKey = newPublicKey;\r\n }", "public T withIpAddress(final String ipAddress) {\n requireNonNull(ipAddress);\n with(Dbms.class, d -> d.mutator().setIpAddress(ipAddress));\n return self();\n }", "public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }", "public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }", "public void setNetworkConfiguration(NetworkConfiguration networkConfiguration) {\n this.networkConfiguration = networkConfiguration;\n }", "public void setNetworkConfiguration(NetworkConfiguration networkConfiguration) {\n this.networkConfiguration = networkConfiguration;\n }", "public void setBlockPublicPolicy(Boolean blockPublicPolicy) {\n this.blockPublicPolicy = blockPublicPolicy;\n }", "public AuditDataBuilder clientIpAddress(final String clientIpAddress) {\n this.clientIpAddress = clientIpAddress;\n return this;\n }", "public void setPublicURL(URI publicURL) {\n this.publicURL = publicURL;\n }", "public void addIpAddress() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address\",\n null,\n childrenNames());\n }", "public void setIpAddressType(String ipAddressType) {\n this.ipAddressType = ipAddressType;\n }", "private static void init() {\n System.setProperty(\"java.net.preferIPv4Stack\", \"true\");\r\n }", "public interface IpConfig {\n String ip=\"192.168.43.217:8080\";\n}", "@ZAttr(id=699)\n public Map<String,Object> setPublicServicePort(int zimbraPublicServicePort, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraPublicServicePort, Integer.toString(zimbraPublicServicePort));\n return attrs;\n }", "public void setPublicKey(String publicKey) {\n this.publicKey = publicKey;\n }", "@ZAttr(id=699)\n public void setPublicServicePort(int zimbraPublicServicePort) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraPublicServicePort, Integer.toString(zimbraPublicServicePort));\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setIpAddress1Value(IpAddress ipAddress1Value)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address1\",\n ipAddress1Value,\n childrenNames());\n }", "public void setIpAddress1Value(String ipAddress1Value) throws JNCException {\n setIpAddress1Value(new IpAddress(ipAddress1Value));\n }", "Ip4Address interfaceIpAddress();", "private void setupconfigIpCPoints() {\n for (int i = 1; i <= 3; i++) {\n ConnectPoint connectPoint = new ConnectPoint(\n getDeviceId(i),\n PortNumber.portNumber(1));\n configIpCPoints.add(connectPoint);\n }\n }", "public void unsetIpAddressValue() throws JNCException {\n delete(\"ip-address\");\n }", "public String getUpnpExternalIpaddress();", "public IPAddress getIPAddress() {\n return iPAddress;\n }", "public void setV6Address(Ip6Address v6Address) {\n this.v6Address = v6Address;\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "public InetAddress getIpAddress() \n\t{\n\t\treturn ipAddress;\n\t}", "public void setIpSource(String value) {\n setProperty(IP_SOURCE, value, \"\");\n }", "@ZAttr(id=562)\n public Map<String,Object> setVirtualIPAddress(String[] zimbraVirtualIPAddress, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraVirtualIPAddress, zimbraVirtualIPAddress);\n return attrs;\n }", "public String getPrivateIpAddress() {\n return this.PrivateIpAddress;\n }", "public String getIpAddressType() {\n return this.ipAddressType;\n }", "@Test\n public void testSetInterfaceIp() throws Exception {\n isisNeighbor.setInterfaceIp(interfaceIp);\n result2 = isisNeighbor.interfaceIp();\n assertThat(result2, is(interfaceIp));\n }", "public String ipAddress() {\n return this.ipAddress;\n }", "@ZAttr(id=562)\n public void setVirtualIPAddress(String[] zimbraVirtualIPAddress) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraVirtualIPAddress, zimbraVirtualIPAddress);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setNatAddress(String addr);", "public static boolean IpAddress(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"IpAddress\")) return false;\n if (!nextTokenIs(b, \"<ip address>\", JB_TOKEN_IP, JB_TOKEN_WORD)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, \"<ip address>\");\n r = consumeToken(b, JB_TOKEN_IP);\n if (!r) r = IpAddress_1(b, l + 1);\n exit_section_(b, l, m, JB_IP_ADDRESS, r, false, null);\n return r;\n }", "public void setIp(final String ip) {\n this.ip = ip;\n }", "public void setBindAddress(String bindAddress) {\n agentConfig.setBindAddress(bindAddress);\n }", "public void setPluginPublicId(String pluginPublicId) {\n this.pluginPublicId = pluginPublicId;\n }", "public String getIpaddress() {\n\t\treturn ipaddress;\n\t}", "public void setIp(int portNum){\n \ttry {\n\t\t\tserverIp.setText(\"Server ip: \" + Inet4Address.getLocalHost().getHostAddress());\n\t\t\tportLbl.setText(\"Port: \" + portNum);\n\t\t} catch (UnknownHostException e) {\n\t\t\tlogTxtArea.appendText(\"Failed to set IP and port fialds\");\n\t\t\te.printStackTrace();\n\t\t}\n }", "public Builder setIp(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n ip_ = value;\n onChanged();\n return this;\n }", "Update withNextHopToVirtualAppliance(String ipAddress);", "public void setVirtualHost(Boolean virtualHostIn) {\n virtualHost = virtualHostIn;\n }", "public Builder setIp(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n ip_ = value;\n onChanged();\n return this;\n }", "public String sourceIPAddress() {\n return this.sourceIPAddress;\n }", "public synchronized static void setConfiguration( WPVSConfiguration wpvsConfiguration ) {\n CONFIG = wpvsConfiguration;\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "public Builder setIp(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n ip_ = value;\n onChanged();\n return this;\n }" ]
[ "0.73913395", "0.6840056", "0.6336792", "0.6079276", "0.607174", "0.60481405", "0.60034513", "0.5886453", "0.584008", "0.58003134", "0.55160826", "0.54729986", "0.53605384", "0.52981144", "0.5284474", "0.5252749", "0.5249501", "0.5249501", "0.52403384", "0.5189208", "0.51509356", "0.51486045", "0.51465344", "0.51387334", "0.51387334", "0.51299506", "0.51013273", "0.50984365", "0.50870293", "0.5081959", "0.50764596", "0.4999137", "0.4979169", "0.4979169", "0.49782884", "0.49782884", "0.49612054", "0.49484408", "0.4939899", "0.4939899", "0.49360383", "0.49232364", "0.48951417", "0.48869532", "0.48641768", "0.4838861", "0.48370934", "0.48133263", "0.47827426", "0.4780125", "0.47613358", "0.47554162", "0.4716103", "0.4713755", "0.4713755", "0.4713531", "0.4713531", "0.47064802", "0.47032857", "0.46978638", "0.46941847", "0.46929988", "0.46876428", "0.4681694", "0.46775818", "0.46681285", "0.46553326", "0.46543804", "0.46168312", "0.46138662", "0.46035403", "0.45939395", "0.45860657", "0.45824066", "0.4569344", "0.45587763", "0.45527178", "0.45392016", "0.4538241", "0.45344728", "0.45193875", "0.45139483", "0.4505392", "0.45017388", "0.4476146", "0.44728798", "0.4466316", "0.44600266", "0.4451912", "0.44490436", "0.44485056", "0.44459713", "0.44412127", "0.44346216", "0.4433277", "0.44291693", "0.4420703", "0.44162259", "0.44162259", "0.44125077" ]
0.6975615
1
Get the privateIpAddressVersion property: Available from ApiVersion 20170330 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
public IpVersion privateIpAddressVersion() { return this.privateIpAddressVersion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VirtualMachineScaleSetUpdateIpConfigurationProperties withPrivateIpAddressVersion(\n IpVersion privateIpAddressVersion) {\n this.privateIpAddressVersion = privateIpAddressVersion;\n return this;\n }", "public void setPrivateIpAddress(String PrivateIpAddress) {\n this.PrivateIpAddress = PrivateIpAddress;\n }", "public String getPrivateIpAddress() {\n return this.PrivateIpAddress;\n }", "private static InetAddress getPrivateIpAddress(Server server) {\n\t Preconditions.checkNotNull(server, \"instance is null\");\n\t InetAddress privateIpAddress;\n\t try {\n\t privateIpAddress = InetAddress.getByName(server.getAccessIPv4());\n\t } catch (UnknownHostException e) {\n\t throw new IllegalArgumentException(\"Invalid private IP address\", e);\n\t }\n\t return privateIpAddress;\n\t}", "public String getPrivateKey() {\n return privateKey;\n }", "public String getPrivateKey() {\n return privateKey;\n }", "public String getPrivateKey() {\n return privateKey;\n }", "public InputEndpoint withPrivatePort(Integer privatePort) {\n this.privatePort = privatePort;\n return this;\n }", "public BigInteger getPrivateKey()\n {\n\treturn privateKey;\n }", "public static String getPrivateKeyPath() {\n return privateKeyPath;\n }", "public PrivateKey getPrivateKey(){\n\t\treturn this.privatekey;\n\t}", "public void setPrivateKey(String privateKey) {\n this.privateKey = privateKey;\n }", "public void setPrivateKey(String privateKey) {\n this.privateKey = privateKey;\n }", "public void setPrivateKey(String privateKey) {\n this.privateKey = privateKey;\n }", "private static void getTcpPrivateAddress() {\n\n\t\tString address = readFileString(FileConstant.FILE_NAME_TCP_ADDRESS_PRIVATE);\n\n\t\tif (Utils.isNotEmpty(address)) {\n\n\t\t\tint start = 0;\n\t\t\tint end = address.indexOf(FileConstant.FILE_STRING_SPLIP_SYMBOL, start);\n\n\t\t\tif (end < address.length()) {\n\n\t\t\t\tConfigureVariable.Tcp_Address_Ip_Private = address.substring(start, end);\n\n\t\t\t\tstart = end + 1;\n\t\t\t\tend = address.length();\n\n\t\t\t\tConfigureVariable.Tcp_Address_Port_Private = address.substring(start, end);\n\t\t\t}\n\t\t}\n\t}", "public boolean isPrivate() {\n\t\t// refer to RFC 1918\n // 10/8 prefix\n // 172.16/12 prefix (172.16.0.0 – 172.31.255.255)\n // 192.168/16 prefix\n\t\tIPv4AddressSegment seg0 = getSegment(0);\n\t\tIPv4AddressSegment seg1 = getSegment(1);\n\t\treturn seg0.matches(10)\n\t\t\t|| seg0.matches(172) && seg1.matchesWithPrefixMask(16, 4)\n\t\t\t|| seg0.matches(192) && seg1.matches(168);\n\t}", "public Integer privatePort() {\n return this.privatePort;\n }", "public void setPrivateKey(PrivateKey privateKey) {\n this.privateKey = privateKey;\n }", "@NonNull\n public PrivateKey getPrivateKey() {\n return mPrivateKey;\n }", "private boolean isPrivateIpRange(String ipAddress)\n {\n InetAddress inetAddress = null;\n\n try {\n byte[] ip = InetAddress.getByName(ipAddress).getAddress();\n inetAddress = InetAddress.getByAddress(ip);\n return inetAddress.isSiteLocalAddress(); // let java sort it out.\n } catch (UnknownHostException e) {\n log.debug(\"Ip private range check failed \", e);\n return false;\n }\n }", "public String getPrivateKeyPassword() {\n\t\treturn privateKeyPassword;\n\t}", "public char[] getPrivateKey() {\n\t\treturn privateKey;\n\t}", "public ConnectInfo setPrivateKey(final String privateKey) {\n\t\tif(privateKey==null) throw new IllegalArgumentException(\"The passed privateKey was null\");\n\t\tthis.privateKey = privateKey.toCharArray();\n\t\treturn this;\t\t\n\t}", "public List<MhsmPrivateEndpointConnectionItem> privateEndpointConnections() {\n return this.privateEndpointConnections;\n }", "protected final String getPrivateKeyLocation() {\n return this.privateKeyLocation;\n }", "public IpAddress getIpAddress2Value() throws JNCException {\n return (IpAddress)getValue(\"ip-address2\");\n }", "public void setPrivateKey(java.nio.ByteBuffer privateKey) {\n this.privateKey = privateKey;\n }", "public boolean isPrivate() {\n return privateMode;\n }", "public String getPrivateKey();", "public String getPrivateKey();", "public PrivateKey getMyPrivateKey() {\n return myKeyPair.getPrivate();\n }", "public static PrivateKeyInfo createPrivateKeyInfo(AsymmetricKeyParameter privateKey) throws IOException\n {\n return createPrivateKeyInfo(privateKey, null);\n }", "public String getIpAddressType() {\n return this.ipAddressType;\n }", "public boolean isPrivate() {\n return isPrivate;\n }", "public ConnectInfo setPrivateKey(final File privateKey) {\n\t\tif(privateKey==null) throw new IllegalArgumentException(\"The passed privateKey was null\");\n\t\tif(!privateKey.canRead()) throw new IllegalArgumentException(\"The passed privateKey file [\" + privateKey.getAbsolutePath() + \"] cannot be read\");\n\t\tthis.privateKey = URLHelper.getCharsFromURL(privateKey.getAbsolutePath());\n\t\treturn this;\t\t\n\t}", "public static String[] getAllPrivateAddress() {\n\t\tArrayList<String> a = new ArrayList<String>();\n\t\ttry {\n\t\t\tEnumeration<NetworkInterface> enums = NetworkInterface.getNetworkInterfaces();\n\t\t\twhile (enums.hasMoreElements()) {\n\t\t\t\tNetworkInterface ni = enums.nextElement();\n\t\t\t\tEnumeration<InetAddress> hosts = ni.getInetAddresses();\n\t\t\t\twhile (hosts.hasMoreElements()) {\n\t\t\t\t\tInetAddress local = hosts.nextElement();\n\t\t\t\t\tString localIP = local.getHostAddress();\n\t\t\t\t\tif (IP4Style.isPrivateIP(localIP)) {\n\t\t\t\t\t\ta.add(localIP);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SocketException exp) {\n\n\t\t}\n\t\tif(a.isEmpty()) return null;\n\t\tString[] all = new String[a.size()];\n\t\treturn a.toArray(all);\n\t}", "public IpAddress getIpAddress2Value() throws JNCException {\n IpAddress ipAddress2 = (IpAddress)getValue(\"ip-address2\");\n if (ipAddress2 == null) {\n ipAddress2 = new IpAddress(\"0.0.0.0\"); // default\n }\n return ipAddress2;\n }", "public ManagedClusterApiServerAccessProfile withPrivateDnsZone(String privateDnsZone) {\n this.privateDnsZone = privateDnsZone;\n return this;\n }", "public String privateLinkServiceId() {\n return this.privateLinkServiceId;\n }", "public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {\n return this.privateLinkServiceConnectionState;\n }", "public ConnectInfo setPrivateKey(final char[] privateKey) {\n\t\tif(privateKey==null) throw new IllegalArgumentException(\"The passed privateKey was null\");\n\t\tthis.privateKey = privateKey;\n\t\treturn this;\n\t}", "public PrivateKey getPrivateKey() {\n \tif(testingPrivateKey!=null){\n\t\t\t//for unit testing\n\t\t\treturn testingPrivateKey;\t\n\t\t}\n\t\treturn keypair.getPrivate();\n }", "public void setPrivateKey(PrivateKey privateKey)\n \t\tthrows SignatureException {\n \t\tif (this.signed) {\n \t\t\tthrow new SignatureException(\"Attributes cannot be modified after document is signed\");\n \t\t}\n \t\tthis.privateKey = privateKey;\n \t}", "public PrivateKey getPrivateList() {\n return this.privateList;\n }", "public static String getServerIpAddress() {\n return _serverIpAddress;\n }", "public boolean isPrivate() {\n return this.priv;\n }", "public static PrivateKey getPrivateKey(String privKey) {\n try {\n PemReader pemReader = new PemReader(new StringReader(privKey));\n byte[] content = pemReader.readPemObject().getContent();\n PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec(content);\n KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n return kf.generatePrivate(spec);\n } catch (IOException | NoSuchAlgorithmException | InvalidKeySpecException ex) {\n return null;\n }\n }", "public final PrivateKey getPrivateKey() {\n return this.key;\n }", "public void setIpAddress2Value(IpAddress ipAddress2Value)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address2\",\n ipAddress2Value,\n childrenNames());\n }", "public void setIpAddress2Value(IpAddress ipAddress2Value)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address2\",\n ipAddress2Value,\n childrenNames());\n }", "public PrivateKey getPrivateKey() {\n File keyFile = new File(baseDirectory, pvtKeyFileName);\n if (!keyFile.exists()) {\n if (!generateKeys()) {\n return null;\n }\n }\n if (!keyFile.exists()) {\n return null;\n }\n try {\n byte[] bytes = FileUtils.readFileToByteArray(keyFile);\n PKCS8EncodedKeySpec ks = new PKCS8EncodedKeySpec(bytes);\n KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n PrivateKey pvt = kf.generatePrivate(ks);\n return pvt;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "protected final void setPrivateKeyLocation(final String privateKeyLocation) {\n this.privateKeyLocation = privateKeyLocation;\n }", "@Accessor(qualifier = \"privateKey\", type = Accessor.Type.GETTER)\n\tpublic String getPrivateKey()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(PRIVATEKEY);\n\t}", "public void addIpAddress2() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address2\",\n null,\n childrenNames());\n }", "public void addIpAddress2() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address2\",\n null,\n childrenNames());\n }", "@java.lang.Override\n public boolean getPrivateInstance() {\n return privateInstance_;\n }", "public BigInteger getPrivKey() {\n if (priv == null)\n throw new MissingPrivateKeyException();\n return priv;\n }", "@ZAttr(id=562)\n public String[] getVirtualIPAddress() {\n return getMultiAttr(Provisioning.A_zimbraVirtualIPAddress);\n }", "public String privateDnsZone() {\n return this.privateDnsZone;\n }", "@ApiModelProperty(value = \"Count of private projects.\")\n\t@JsonProperty(\"privateProjectCount\")\n\tpublic Integer getPrivateProjectCount() {\n\t\treturn privateProjectCount;\n\t}", "public String virtualIP() {\n return this.virtualIP;\n }", "@Test\n public void testAddressVersion() {\n assertThat(Ip4Address.VERSION, is(IpAddress.Version.INET));\n }", "com.google.protobuf.ByteString getClientIpV6();", "public String getKeyPrivate() throws LibMCryptException {\n\t\t\r\n\t\tString privateK = priK.getModulus().toString(16);\r\n\t\treturn privateK;\r\n\t}", "public Builder setPrivateInstance(boolean value) {\n\n privateInstance_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "boolean isInPrivateMode() {\n return inPrivateMode;\n }", "@java.lang.Override\n public boolean getPrivateInstance() {\n return privateInstance_;\n }", "public CustomizationPolicyInner withPrivateCloudId(String privateCloudId) {\n this.privateCloudId = privateCloudId;\n return this;\n }", "public void setPrivateApp(java.lang.Boolean privateApp) {\r\n this.privateApp = privateApp;\r\n }", "public Long getServerVersion() {\n\t\treturn serverVersion;\n\t}", "public String getServerIp() {\r\n\t\treturn serverIp;\r\n\t}", "public void unsetIpAddress2Value() throws JNCException {\n delete(\"ip-address2\");\n }", "public void unsetIpAddress2Value() throws JNCException {\n delete(\"ip-address2\");\n }", "public String getNiceServerIP(){\n\t\treturn(niceServerAddress);\n\t}", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenter()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n VLANNetwork vlan2 = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan2.getConfiguration(), vlan2);\n\n IPAddress ip2 =\n IPAddress.newIPAddress(vlan2.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP2 =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan2.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan2.getConfiguration().getMask()));\n\n persistIP(ip2, lastIP2, vdc, vlan2);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n\n }", "public IPAddress getIPAddress() {\n return iPAddress;\n }", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenterOrderByVirtualMachine()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?by=virtualmachine\";\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public ImportCertificateRequest withPrivateKey(java.nio.ByteBuffer privateKey) {\n setPrivateKey(privateKey);\n return this;\n }", "public ProcessInfoInner withPrivateMemorySize64(Long privateMemorySize64) {\n this.privateMemorySize64 = privateMemorySize64;\n return this;\n }", "public boolean isAccessLevelPrivate() {\r\n String level = getOption(OPTION_ACCESS_LEVEL, ACCESS_LEVEL_PUBLIC);\r\n return ACCESS_LEVEL_PRIVATE.equals(level);\r\n }", "public String getServerIp() {\n return serverIp;\n }", "public String getServerIp() {\n return serverIp;\n }", "public boolean getVIP();", "public String privateCloudId() {\n return this.privateCloudId;\n }", "public int getInIp() {\n return inIp_;\n }", "public int getInIp() {\n return inIp_;\n }", "@java.lang.Override\n public com.google.protobuf.TimestampOrBuilder getWaypointsVersionOrBuilder() {\n return getWaypointsVersion();\n }", "public PrivateKey getPrivKey() {\r\n\t\treturn this.privKey;\r\n\t}", "public Class<PRIV> getPrivateKeyClass() {\n return privKeyType;\n }", "public static void setPrivateKeyPath(String privateKeyPath) {\n Program.privateKeyPath = privateKeyPath;\n Program.authType = AUTH_TYPE.CERT;\n }", "com.google.protobuf.ByteString getIpBytes();", "@JsonIgnore\n public Boolean isPrivate()\n {\n return isPrivate;\n }", "public String get_snmpprivprotocol()\r\n\t{\r\n\t\treturn this.snmpprivprotocol;\r\n\t}", "com.google.protobuf.ByteString\n getIpv6Bytes();", "public void setServerVersion(Long serverVersion) {\n\t\tthis.serverVersion = serverVersion;\n\t}", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenterOrderByVirtualAppliance()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?by=virtualappliance\";\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n }", "PrivateKey getPrivateKey();", "public boolean isPrivate() {\n return false;\n }", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenterOrderByIp()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?by=ip\";\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n }" ]
[ "0.7570029", "0.66717756", "0.66652817", "0.5113756", "0.50924474", "0.50924474", "0.50924474", "0.504539", "0.49125168", "0.4823726", "0.47955003", "0.47800934", "0.47800934", "0.47800934", "0.47493306", "0.47219583", "0.4713083", "0.4691235", "0.4579547", "0.4523756", "0.44959483", "0.44935307", "0.44669273", "0.4466299", "0.44372818", "0.441459", "0.4388711", "0.43693876", "0.43608624", "0.43608624", "0.434675", "0.43465945", "0.43264523", "0.43252245", "0.43175185", "0.43149698", "0.4304201", "0.4297313", "0.42861995", "0.42732063", "0.4271518", "0.42705557", "0.42417532", "0.42385665", "0.42372498", "0.42039305", "0.4203339", "0.41825652", "0.41804567", "0.41804567", "0.41802937", "0.41752282", "0.41752166", "0.4169176", "0.4169176", "0.41605434", "0.41586423", "0.41540617", "0.41536275", "0.4129879", "0.41246098", "0.4124285", "0.41158357", "0.41077334", "0.41026753", "0.41026685", "0.40938386", "0.40927124", "0.40880036", "0.40857762", "0.4031185", "0.4031032", "0.4031032", "0.40243864", "0.4024377", "0.40192586", "0.40191063", "0.40166312", "0.40070525", "0.4005877", "0.40009326", "0.39968532", "0.39968532", "0.39955354", "0.39905098", "0.3983182", "0.3983182", "0.39778116", "0.3976654", "0.39733046", "0.396316", "0.39597765", "0.39562285", "0.39534482", "0.39469633", "0.3941344", "0.39410967", "0.39314482", "0.39233494", "0.3907633" ]
0.8100624
0
Set the privateIpAddressVersion property: Available from ApiVersion 20170330 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
public VirtualMachineScaleSetUpdateIpConfigurationProperties withPrivateIpAddressVersion( IpVersion privateIpAddressVersion) { this.privateIpAddressVersion = privateIpAddressVersion; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPrivateIpAddress(String PrivateIpAddress) {\n this.PrivateIpAddress = PrivateIpAddress;\n }", "public IpVersion privateIpAddressVersion() {\n return this.privateIpAddressVersion;\n }", "public void setPrivateKey(String privateKey) {\n this.privateKey = privateKey;\n }", "public void setPrivateKey(String privateKey) {\n this.privateKey = privateKey;\n }", "public void setPrivateKey(String privateKey) {\n this.privateKey = privateKey;\n }", "public String getPrivateIpAddress() {\n return this.PrivateIpAddress;\n }", "public void setPrivateKey(PrivateKey privateKey) {\n this.privateKey = privateKey;\n }", "public ConnectInfo setPrivateKey(final String privateKey) {\n\t\tif(privateKey==null) throw new IllegalArgumentException(\"The passed privateKey was null\");\n\t\tthis.privateKey = privateKey.toCharArray();\n\t\treturn this;\t\t\n\t}", "public ConnectInfo setPrivateKey(final File privateKey) {\n\t\tif(privateKey==null) throw new IllegalArgumentException(\"The passed privateKey was null\");\n\t\tif(!privateKey.canRead()) throw new IllegalArgumentException(\"The passed privateKey file [\" + privateKey.getAbsolutePath() + \"] cannot be read\");\n\t\tthis.privateKey = URLHelper.getCharsFromURL(privateKey.getAbsolutePath());\n\t\treturn this;\t\t\n\t}", "public void setPrivateKey(java.nio.ByteBuffer privateKey) {\n this.privateKey = privateKey;\n }", "public ConnectInfo setPrivateKey(final char[] privateKey) {\n\t\tif(privateKey==null) throw new IllegalArgumentException(\"The passed privateKey was null\");\n\t\tthis.privateKey = privateKey;\n\t\treturn this;\n\t}", "public void setPrivateKey(PrivateKey privateKey)\n \t\tthrows SignatureException {\n \t\tif (this.signed) {\n \t\t\tthrow new SignatureException(\"Attributes cannot be modified after document is signed\");\n \t\t}\n \t\tthis.privateKey = privateKey;\n \t}", "public InputEndpoint withPrivatePort(Integer privatePort) {\n this.privatePort = privatePort;\n return this;\n }", "protected final void setPrivateKeyLocation(final String privateKeyLocation) {\n this.privateKeyLocation = privateKeyLocation;\n }", "public void setIpAddress2Value(IpAddress ipAddress2Value)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address2\",\n ipAddress2Value,\n childrenNames());\n }", "public void setIpAddress2Value(IpAddress ipAddress2Value)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address2\",\n ipAddress2Value,\n childrenNames());\n }", "public void setExposeVersion(boolean exposeVersion) {\n\t\tthis.exposeVersion = exposeVersion;\n\n\t\t// Changing this means our User-Agent header value needs updating\n resetUserAgent();\n\t}", "public void setServerVersion(Long serverVersion) {\n\t\tthis.serverVersion = serverVersion;\n\t}", "public static void setPrivateKeyPath(String privateKeyPath) {\n Program.privateKeyPath = privateKeyPath;\n Program.authType = AUTH_TYPE.CERT;\n }", "public ConnectInfo setPrivateKeyPassword(final String privateKeyPassword) {\n\t\tif(privateKeyPassword==null) throw new IllegalArgumentException(\"The passed privateKeyPassword was null\");\n\t\tthis.privateKeyPassword = privateKeyPassword;\n\t\treturn this;\n\t}", "public void setPrivateApp(java.lang.Boolean privateApp) {\r\n this.privateApp = privateApp;\r\n }", "private static InetAddress getPrivateIpAddress(Server server) {\n\t Preconditions.checkNotNull(server, \"instance is null\");\n\t InetAddress privateIpAddress;\n\t try {\n\t privateIpAddress = InetAddress.getByName(server.getAccessIPv4());\n\t } catch (UnknownHostException e) {\n\t throw new IllegalArgumentException(\"Invalid private IP address\", e);\n\t }\n\t return privateIpAddress;\n\t}", "public Builder setPrivateInstance(boolean value) {\n\n privateInstance_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public void unsetIpAddress2Value() throws JNCException {\n delete(\"ip-address2\");\n }", "public void unsetIpAddress2Value() throws JNCException {\n delete(\"ip-address2\");\n }", "public void setIp(String value) {\n set(24, value);\n }", "public void setIpAddress2Value(String ipAddress2Value) throws JNCException {\n setIpAddress2Value(new IpAddress(ipAddress2Value));\n }", "public void setIpAddress2Value(String ipAddress2Value) throws JNCException {\n setIpAddress2Value(new IpAddress(ipAddress2Value));\n }", "public ManagedClusterApiServerAccessProfile withPrivateDnsZone(String privateDnsZone) {\n this.privateDnsZone = privateDnsZone;\n return this;\n }", "public void setVersion(int version)\n\t{\n\t\tconferenceInfo.setAttribute(VERSION_ATTR_NAME, Integer.toString(version));\n\t}", "private static void getTcpPrivateAddress() {\n\n\t\tString address = readFileString(FileConstant.FILE_NAME_TCP_ADDRESS_PRIVATE);\n\n\t\tif (Utils.isNotEmpty(address)) {\n\n\t\t\tint start = 0;\n\t\t\tint end = address.indexOf(FileConstant.FILE_STRING_SPLIP_SYMBOL, start);\n\n\t\t\tif (end < address.length()) {\n\n\t\t\t\tConfigureVariable.Tcp_Address_Ip_Private = address.substring(start, end);\n\n\t\t\t\tstart = end + 1;\n\t\t\t\tend = address.length();\n\n\t\t\t\tConfigureVariable.Tcp_Address_Port_Private = address.substring(start, end);\n\t\t\t}\n\t\t}\n\t}", "public ImportCertificateRequest withPrivateKey(java.nio.ByteBuffer privateKey) {\n setPrivateKey(privateKey);\n return this;\n }", "public void setVersion(int version)\n {\n encryptionDictionary.setInt( \"V\", version );\n }", "public void addIpAddress2() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address2\",\n null,\n childrenNames());\n }", "public void addIpAddress2() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address2\",\n null,\n childrenNames());\n }", "@ZAttr(id=562)\n public void setVirtualIPAddress(String[] zimbraVirtualIPAddress) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraVirtualIPAddress, zimbraVirtualIPAddress);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setHttpServerVersion(String httpServerVersion) {\n this.httpServerVersion = httpServerVersion;\n }", "public void setSnmpVersionView(String snmpVersionView) {\r\n if (\"全部\".equals(snmpVersionView)) {\r\n this.snmpVersion = null;\r\n } else {\r\n this.snmpVersion = Byte.valueOf(snmpVersionView);\r\n }\r\n }", "public void setIPAddress(final IPAddress iPAddress) {\n this.iPAddress = iPAddress;\n }", "@Accessor(qualifier = \"privateKey\", type = Accessor.Type.SETTER)\n\tpublic void setPrivateKey(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(PRIVATEKEY, value);\n\t}", "public Builder setIp(int value) {\n bitField0_ |= 0x00000100;\n ip_ = value;\n onChanged();\n return this;\n }", "public void setIpAddress(String ipAddress) {\n this.standardPairs.put(Parameters.IP_ADDRESS, ipAddress);\n }", "public void setPrivate(Boolean isPrivate)\n {\n this.isPrivate = isPrivate;\n }", "public void setIpAddressType(String ipAddressType) {\n this.ipAddressType = ipAddressType;\n }", "public void setBookVersion(Integer bookVersion) {\n this.bookVersion = bookVersion;\n }", "public PrivateAccessVirtualNetwork withSubnets(List<PrivateAccessSubnet> subnets) {\n this.subnets = subnets;\n return this;\n }", "public void setPrivate(boolean b) {\n isPrivate = b;\n }", "public void setV6Address(Ip6Address v6Address) {\n this.v6Address = v6Address;\n }", "public void setServerIp(String serverIp) {\n this.serverIp = serverIp;\n }", "public void setServerIp(String serverIp) {\n this.serverIp = serverIp;\n }", "public void setVersionNumber(java.lang.String versionNumber) {\n this.versionNumber = versionNumber;\n }", "public void setIpServer(String ipServer)\n \t{\n \t\tthis.ipServer = ipServer;\n \t}", "public Builder setIp(int value) {\n copyOnWrite();\n instance.setIp(value);\n return this;\n }", "public Builder setIp(int value) {\n copyOnWrite();\n instance.setIp(value);\n return this;\n }", "public void setIpAddressValue(IpAddress ipAddressValue) throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ip-address\",\n ipAddressValue,\n childrenNames());\n }", "private void setVersionNumber(int version) {\n versionNumber = version;\n }", "public void setVersionNumber(String versionNumber) {\n this.versionNumber = versionNumber;\n }", "public void setIpAddress(String ipAddress) {\n this.ipAddress = ipAddress;\n }", "public void setServerIp(String serverIp) {\r\n\t\tthis.serverIp = serverIp;\r\n\t}", "public void setVIP(boolean VIP);", "@ZAttr(id=562)\n public void unsetVirtualIPAddress() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraVirtualIPAddress, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }", "public CustomizationPolicyInner withPrivateCloudId(String privateCloudId) {\n this.privateCloudId = privateCloudId;\n return this;\n }", "public void setVersionNumber(Long versionNumber){\r\n this.versionNumber = versionNumber;\r\n }", "public void setVersionNumber(Long versionNumber){\r\n this.versionNumber = versionNumber;\r\n }", "public boolean isPrivate() {\n\t\t// refer to RFC 1918\n // 10/8 prefix\n // 172.16/12 prefix (172.16.0.0 – 172.31.255.255)\n // 192.168/16 prefix\n\t\tIPv4AddressSegment seg0 = getSegment(0);\n\t\tIPv4AddressSegment seg1 = getSegment(1);\n\t\treturn seg0.matches(10)\n\t\t\t|| seg0.matches(172) && seg1.matchesWithPrefixMask(16, 4)\n\t\t\t|| seg0.matches(192) && seg1.matches(168);\n\t}", "@SuppressWarnings(\"unused\")\n private void setVersion(final Integer version) {\n this.version = version;\n }", "@SuppressWarnings(\"unused\")\n private void setVersion(final Integer version) {\n this.version = version;\n }", "public Builder setWaypointsVersion(com.google.protobuf.Timestamp value) {\n if (waypointsVersionBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n waypointsVersion_ = value;\n onChanged();\n } else {\n waypointsVersionBuilder_.setMessage(value);\n }\n\n return this;\n }", "public ProcessInfoInner withPrivateMemorySize64(Long privateMemorySize64) {\n this.privateMemorySize64 = privateMemorySize64;\n return this;\n }", "public void setAddressLine2(String addressLine2) {\n this.addressLine2 = addressLine2;\n }", "public String getPrivateKey() {\n return privateKey;\n }", "public String getPrivateKey() {\n return privateKey;\n }", "public String getPrivateKey() {\n return privateKey;\n }", "private boolean isPrivateIpRange(String ipAddress)\n {\n InetAddress inetAddress = null;\n\n try {\n byte[] ip = InetAddress.getByName(ipAddress).getAddress();\n inetAddress = InetAddress.getByAddress(ip);\n return inetAddress.isSiteLocalAddress(); // let java sort it out.\n } catch (UnknownHostException e) {\n log.debug(\"Ip private range check failed \", e);\n return false;\n }\n }", "public void setAddressLine2(String value) {\n setAttributeInternal(ADDRESSLINE2, value);\n }", "public Builder setClientIpV6(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n clientIpV6_ = value;\n onChanged();\n return this;\n }", "protected void addIpAddressType_software_amazon_awscdk_services_elasticloadbalancingv2_IpAddressType_PropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_ipAddressType_software_amazon_awscdk_services_elasticloadbalancingv2_IpAddressType__feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_ipAddressType_software_amazon_awscdk_services_elasticloadbalancingv2_IpAddressType__feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__IP_ADDRESS_TYPE_SOFTWARE_AMAZON_AWSCDK_SERVICES_ELASTICLOADBALANCINGV2_IP_ADDRESS_TYPE_,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public static PrivateKeyInfo createPrivateKeyInfo(AsymmetricKeyParameter privateKey) throws IOException\n {\n return createPrivateKeyInfo(privateKey, null);\n }", "public void setVersion(Integer version) {\n\t\tthis.version = version;\n\t}", "public void setSecretVersion(String secret, long versionId) throws IOException {\n SetSecretVersionRequestV2 secretVerReq = SetSecretVersionRequestV2.fromParts(secret, versionId);\n httpPost(baseUrl.resolve(String.format(\"/automation/v2/secrets/%s/setversion\", secret)), secretVerReq);\n }", "public void setVersion(Number value) {\n setAttributeInternal(VERSION, value);\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "public void setVersionNo(Integer versionNo) {\r\n\t\tthis.versionNo = versionNo;\r\n\t}", "public Builder setIpBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n ip_ = value;\n onChanged();\n return this;\n }", "public void setVersion(Integer version) {\n this.version = version;\n }", "public void setVersion(Integer version) {\n this.version = version;\n }", "public void setVersion(Integer version) {\n this.version = version;\n }", "public void setVersion(Integer version) {\n this.version = version;\n }", "public void setVersion(Integer version) {\n this.version = version;\n }", "public void setVersion(Integer version) {\n this.version = version;\n }", "public void setVersion(Integer version) {\r\n this.version = version;\r\n }", "public void setVersion(int version) {\n this.version = version;\n }", "public void setVersion(int version) {\n this.version = version;\n }", "public void setServiceVersion(String serviceVersion);", "public void setFileVersion(int fileVersion) {\r\n\t\tthis.fileVersion = fileVersion;\r\n\t}", "public void setPrivate( boolean newValue ) {\n privateMode = newValue;\n }", "public void markIpAddress2Replace() throws JNCException {\n markLeafReplace(\"ipAddress2\");\n }", "public void markIpAddress2Replace() throws JNCException {\n markLeafReplace(\"ipAddress2\");\n }", "public Builder setIp(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n ip_ = value;\n onChanged();\n return this;\n }" ]
[ "0.6966355", "0.68630373", "0.5485252", "0.5485252", "0.5485252", "0.54711217", "0.5462656", "0.54368126", "0.5356326", "0.5338895", "0.52811664", "0.5251071", "0.51148504", "0.50835574", "0.507316", "0.507316", "0.4774014", "0.47185966", "0.47136068", "0.45449105", "0.45259598", "0.45071977", "0.44698173", "0.44460505", "0.44460505", "0.44408897", "0.44197443", "0.44197443", "0.44057497", "0.43990088", "0.43711427", "0.43629858", "0.4348009", "0.43283516", "0.43283516", "0.43044397", "0.4286373", "0.42863402", "0.42823496", "0.4261607", "0.4229056", "0.42228815", "0.41689754", "0.41523507", "0.4125998", "0.4124708", "0.4122389", "0.41186714", "0.4117423", "0.4117423", "0.4105408", "0.4092537", "0.40914172", "0.40914172", "0.40798503", "0.40735292", "0.40723917", "0.40698105", "0.4066482", "0.4065034", "0.40597865", "0.40419003", "0.4011278", "0.4011278", "0.4009526", "0.40048125", "0.40048125", "0.40043536", "0.39957854", "0.39954072", "0.3994179", "0.3994179", "0.3994179", "0.3988573", "0.39871946", "0.39858502", "0.39795414", "0.39734998", "0.39730436", "0.39691776", "0.39630753", "0.3958914", "0.3958914", "0.39478436", "0.3945112", "0.3940905", "0.3940905", "0.3940905", "0.3940905", "0.3940905", "0.3940905", "0.39403376", "0.39305076", "0.39305076", "0.39238155", "0.3913001", "0.39055678", "0.39046896", "0.39046896", "0.39038002" ]
0.8059813
0
Get the applicationGatewayBackendAddressPools property: The application gateway backend address pools.
public List<SubResource> applicationGatewayBackendAddressPools() { return this.applicationGatewayBackendAddressPools; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<SubResource> loadBalancerBackendAddressPools() {\n return this.loadBalancerBackendAddressPools;\n }", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withApplicationGatewayBackendAddressPools(\n List<SubResource> applicationGatewayBackendAddressPools) {\n this.applicationGatewayBackendAddressPools = applicationGatewayBackendAddressPools;\n return this;\n }", "public SubResource backendAddressPool() {\n return this.backendAddressPool;\n }", "final ConcurrentMap<Object, ManagedConnectionPool> getManagedConnectionPools()\n {\n return mcpPools;\n }", "@Updatable\n public Set<BackendHttpConfiguration> getBackendHttpConfiguration() {\n if (backendHttpConfiguration == null) {\n backendHttpConfiguration = new HashSet<>();\n }\n\n return backendHttpConfiguration;\n }", "public ApplicationGatewayBackendHttpSettings backendHttpSettings() {\n return this.backendHttpSettings;\n }", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withLoadBalancerBackendAddressPools(\n List<SubResource> loadBalancerBackendAddressPools) {\n this.loadBalancerBackendAddressPools = loadBalancerBackendAddressPools;\n return this;\n }", "public BackendConfig getBackendConfiguration() {\n return backendConfiguration;\n }", "public List<LoadBalancerConfiguration> loadBalancerConfigurations() {\n return this.loadBalancerConfigurations;\n }", "public List<SubResource> loadBalancerInboundNatPools() {\n return this.loadBalancerInboundNatPools;\n }", "public List<AppServiceEnvironmentInner> hostingEnvironments() {\n return this.hostingEnvironments;\n }", "@Updatable\n public Set<Backend> getBackend() {\n if (backend == null) {\n backend = new HashSet<>();\n }\n\n return backend;\n }", "public LoadBalancingRulePropertiesFormat withBackendAddressPool(SubResource backendAddressPool) {\n this.backendAddressPool = backendAddressPool;\n return this;\n }", "public static Set getAllManagedPools() {\n\t\treturn (SQLConnectionManager.managerByPool == null) ? Collections\n\t\t\t\t.emptySet() : SQLConnectionManager.managerByPool.keySet();\n\t}", "public AddressSpace vpnClientAddressPool() {\n return this.vpnClientAddressPool;\n }", "public String getBackendUrl() {\n\t\treturn backendUrl;\n\t}", "public List<ApplicationGatewayBackendHealthServerInner> servers() {\n return this.servers;\n }", "public ArrayList<PoolMap> get_P_maps(){\n\n\t\treturn poolMaps;\n\t}", "public java.util.List<LoadBalancer> getLoadBalancers() {\n if (loadBalancers == null) {\n loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>();\n }\n return loadBalancers;\n }", "public java.util.List<LoadBalancer> getLoadBalancers() {\n if (loadBalancers == null) {\n loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>();\n }\n return loadBalancers;\n }", "public static AABBPool getAABBPool() {\n\t\treturn (AABBPool) theAABBLocalPool.get();\n\t}", "public com.profitbricks.api.ws.LoadBalancerAlgorithm getLoadBalancerAlgorithm() {\r\n return loadBalancerAlgorithm;\r\n }", "public java.util.List<yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Builder> \n getBackupsBuilderList() {\n return getBackupsFieldBuilder().getBuilderList();\n }", "public List<DatabaseAccountConnectionString> connectionStrings() {\n return this.connectionStrings;\n }", "public BoneCP getPool() {\n return pool;\n }", "public List<Address> getAllAddresses() throws BackendException;", "public AddressSpace databricksAddressSpace() {\n return this.innerProperties() == null ? null : this.innerProperties().databricksAddressSpace();\n }", "public String getDatabaseConnectionPoolMaxNumberConnections(){\n \t\treturn getProperty(\"org.sagebionetworks.pool.max.number.connections\");\n \t}", "@Override\n\tpublic final List<Thing42orNull<K, D>> getPoolAsList() {\n\t\treturn this.pool;\n\t}", "@java.lang.Override\n public java.util.List<yandex.cloud.api.ydb.v1.BackupOuterClass.Backup> getBackupsList() {\n return backups_;\n }", "public List<EquivalentAddressGroup> getAddressGroups() {\n List<EquivalentAddressGroup> groups;\n try {\n synchronized (this.lock) {\n groups = this.addressIndex.getGroups();\n }\n this.syncContext.drain();\n return groups;\n } catch (Throwable th) {\n this.syncContext.drain();\n throw th;\n }\n }", "public List<String> applicationGroupReferences() {\n return this.innerProperties() == null ? null : this.innerProperties().applicationGroupReferences();\n }", "public java.util.List<yandex.cloud.api.ydb.v1.BackupOuterClass.Backup> getBackupsList() {\n if (backupsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(backups_);\n } else {\n return backupsBuilder_.getMessageList();\n }\n }", "Executor getWorkerpool() {\n\t return pool.getWorkerpool();\n\t}", "public Integer backendPort() {\n return this.backendPort;\n }", "List<storage_server_connections> getAllForStoragePool(Guid pool);", "@java.lang.Override\n public java.util.List<? extends yandex.cloud.api.ydb.v1.BackupOuterClass.BackupOrBuilder> \n getBackupsOrBuilderList() {\n return backups_;\n }", "public NamePool getNamePool() {\n return config.getNamePool();\n }", "EndpointBalancerConfig getConfig();", "public List<ConnectionHandler> getClientConnections() {\r\n return clientConnections;\r\n }", "public FreeClientPool getClientPool()\n\t{\n\t\treturn this.peer.getClientPool();\n\t}", "public int getMaxPoolSize() {\n return maxPoolSize;\n }", "public java.util.List<? extends yandex.cloud.api.ydb.v1.BackupOuterClass.BackupOrBuilder> \n getBackupsOrBuilderList() {\n if (backupsBuilder_ != null) {\n return backupsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(backups_);\n }\n }", "@JSProperty(\"plotBands\")\n @Nullable\n Array<ZAxisPlotBandsOptions> getPlotBands();", "public int getPoolSize() {\n return poolSize;\n }", "public ApplicationGatewayBackendHealthServerHealth health() {\n return this.health;\n }", "public int getPoolIndex() {\n return poolIndex;\n }", "public int getPoolIndex() {\n return poolIndex;\n }", "public List<Connection> getConnections() {\n\t\treturn new ArrayList<Connection>(connectionsByUri.values());\n\t}", "AddressMapDB getAddressMap() {\n\t\treturn addrMap;\n\t}", "public InetAddress getGatewayIPAddress()\n {\n return gatewayIPAddress;\n }", "public BgpProcess getBgpConfig() {\n\t\treturn this.bgpConfig;\n\t}", "public Map<String, Integer> getBungeeServerProtocols() {\n return get(\"bungee-servers\", Map.class, new HashMap<>());\n }", "public NatGatewayAddress [] getPublicIpAddressSet() {\n return this.PublicIpAddressSet;\n }", "public java.util.List<com.google.analytics.data.v1beta.Cohort.Builder> getCohortsBuilderList() {\n return getCohortsFieldBuilder().getBuilderList();\n }", "int getMaximumPoolSize();", "public String getDatabaseConnectionPoolMinNumberConnections(){\n \t\treturn getProperty(\"org.sagebionetworks.pool.min.number.connections\");\n \t}", "public ArrayList<Connection> getConnections(){\n\t\treturn manager.getConnectionsWith(this);\n\t}", "public Map<String, FacebookAppModel> getAppModels()\n {\n return apps;\n }", "public String getSbpbs() {\n return sbpbs;\n }", "public ProxyConfig[] getProxyConfigList();", "public int getMaxPoolSize(Env env) {\n return client.getMaxPoolSize();\n }", "public Map<String, Object> getBzlGlobals() {\n return bzlGlobals;\n }", "public DestAddress[] getPushProxyAddresses()\r\n {\r\n return pushProxyAddresses;\r\n }", "public BackingMapManager getBackingMapManager();", "public java.util.List<yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database.Builder> \n getDatabasesBuilderList() {\n return getDatabasesFieldBuilder().getBuilderList();\n }", "public static BoneCP getPool() throws Exception\n {\n if (_pool == null)\n {\n throw new Exception(\"The connection pool was not initialized!\");\n }\n\n return _pool;\n }", "int getMaxPoolSize();", "public String getBwxs() {\n return bwxs;\n }", "public com.vmware.converter.HostProxySwitchHostLagConfig[] getHostProxySwitchHostLagConfig() {\r\n return hostProxySwitchHostLagConfig;\r\n }", "public ArrayList<OsgiBundle> getOsgiBundles() {\n return osgiBundles;\n }", "public String getGatewayIp() {\n return gatewayIp;\n }", "public HostID[] getChunkServers()\n {\n return chunkServers;\n }", "@java.lang.Override\n public yandex.cloud.api.ydb.v1.BackupOuterClass.Backup getBackups(int index) {\n return backups_.get(index);\n }", "public List<BoundingRegion> getBoundingRegions() {\n return this.boundingRegions;\n }", "public List<HostingEnvironmentDeploymentInfo> hostingEnvironmentDeploymentInfos() {\n return this.hostingEnvironmentDeploymentInfos;\n }", "@Override\n\tpublic synchronized StorageOperationResponse<GetStoragePoolsResponse> getStoragePools(\n\t\t\tGetStoragePoolsRequest request) {\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools: request:\" + request, null);\n\t\tGetStoragePoolsResponse payload = new GetStoragePoolsResponse();\n\t\tArrayList<StoragePool> storagePools = new ArrayList<StoragePool>();\n\t\tList<String> zones = null;\n\t\t BlockLimits blockLimits=openstackClient.getBlockStorageLimits();\n\t\t long totalSpaceGB=blockLimits.getAbsolute().getMaxTotalVolumeGigabytes();\n\t\t long usedSpaceGB=blockLimits.getAbsolute().getTotalGigabytesUsed();\n\t\t \n\t\tif (request.storageSystemId != null) {\n\t\t\tString region = openstackClient.getOpenstackId(request.storageSystemId);\n\t\t\ttry {\n\t\t\t\tzones = openstackClient.listAvailabilityZones(region);\n\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools:\" + e.getMessage(), null,e);\n\t\t\t \treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStoragePoolsResponse.class); \n\t\t\t}\n\t\t\n\t\t\tfor (String zone:zones) {\n\t\t\t\tstoragePools.add(OpenstackAdapterUtil.createStoragePool(zone, region, accountId, totalSpaceGB, usedSpaceGB));\n\t\t\t}\n\t\t\n\t\t} else {\n\t\t if (request.storagePoolIds == null || request.storagePoolIds.isEmpty()) {\n\t\t\t return StorageAdapterImplHelper.createFailedResponse(\"Bad request: both storageSystemId and storagePoolIds are null\", GetStoragePoolsResponse.class); \n\t\t }\n\t\t try {\n \n\t\t\t String zone = null;\n\t\t\t String region = null;\t\t \n\t\t\t for (String poolId:request.storagePoolIds) {\n\t\t\t\tif (poolId == null || poolId.indexOf(':') == -1) {\n\t\t\t\t\tstoragePools.add(null);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tzone = openstackClient.getOpenstackId(poolId);\n\t\t\t\tregion = openstackClient.getRegion(poolId);\n\t\t\t\t if (zone.equals(OpenstackConstants.Openstack_POOL_SNAPSHOTS)) {\n\t\t\t\t\t storagePools.add(OpenstackAdapterUtil.createStoragePool(OpenstackConstants.Openstack_POOL_SNAPSHOTS, region, accountId,totalSpaceGB, usedSpaceGB));\n\t\t\t\t } else {\n\t\t\t\t zones = openstackClient.listAvailabilityZones(region);\n\t\t\t\t if (zones.contains(zone)) {\n\t\t\t\t \tstoragePools.add(OpenstackAdapterUtil.createStoragePool(zone, region, accountId,totalSpaceGB, usedSpaceGB));\t\n\t\t\t\t\t} else {\n\t\t\t\t storagePools.add(null);\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\n\t\t } catch (Exception e) {\n\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools:\" + e.getMessage(), null,e);\n\t\t\treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStoragePoolsResponse.class); \n\t\t }\n\t\t \n\t\t}\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools: pools found: \" + storagePools.size() + \" pools: \" + storagePools , null);\n\t\tpayload.storagePools = storagePools;\n\t\tStorageOperationResponse<GetStoragePoolsResponse> response = new StorageOperationResponse<GetStoragePoolsResponse>(payload);\n\t\tresponse.setPercentCompleted(100);\n\t\tresponse.setStatus(StorageOperationStatus.COMPLETED);\n\t\treturn response;\n\t}", "protected ArrayList<Person> getPersonsInPool() {\n return this.personsInPool;\n }", "public cto.framework.service.schema.types.PoolClassType getPoolClass() {\r\n return this._poolClass;\r\n }", "@OAMany(toClass = Application.class, reverseName = Application.P_ApplicationType, createMethod = false)\n\tprivate Hub<Application> getApplications() {\n\t\treturn null;\n\t}", "public java.util.List<hr.client.appuser.CouponCenter.AppCoupon.Builder> \n getCouponListBuilderList() {\n return getCouponListFieldBuilder().getBuilderList();\n }", "public List<Endpoint> getEndpoints()\n\t\t{\n\t\t\treturn endpointsList;\n\t\t}", "public Connections getConnections() {\r\n return connections;\r\n }", "public DBObject[] getDbObjects() {\n return dbObjects;\n }", "public String getBackupServerName(){\n\t return backupServerName;\n }", "public java.util.List<edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation.Builder> \n getChunksLocationBuilderList() {\n return getChunksLocationFieldBuilder().getBuilderList();\n }", "@Nonnull\n public com.microsoft.graph.requests.ManagedAppPolicyCollectionRequestBuilder managedAppPolicies() {\n return new com.microsoft.graph.requests.ManagedAppPolicyCollectionRequestBuilder(getRequestUrlWithAdditionalSegment(\"managedAppPolicies\"), getClient(), null);\n }", "public PolicyGroup [] getPolicyGroups() {\n return this.PolicyGroups;\n }", "public String getEmailAddresses()\n {\n return this.emailAddresses;\n }", "public List<String> getAddresses() {\n return mIPs;\n }", "protected ClassPool getClassPool() {\r\n return pool;\r\n }", "public boolean getPool() {\n\t\treturn this.pool;\n\t}", "public HashMap<IClassDefinition, BindingDatabase> getBindingMap(){\n return bindingMap;\n }", "public Map getESBComponents()\n\t{\t\n\t\tMap endPoints = (Map)cache( \"components\" );\t\t\n\t\t\n\t\tif ( endPoints == null )\n\t\t{\n\t\t\tendPoints = new HashMap();\n\t\t\tCollection names \t= getESBComponentNames();\n\t\t\tIterator iter\t\t= names.iterator();\n\t\t\tString name\t\t\t= null;\n\t\t\t\t\n\t\t\twhile( iter.hasNext() )\n\t\t\t{\n\t\t\t\tname = (String)iter.next();\n\t\t\t\tendPoints.put( name, getESBComponentData( name ) );\n\t\t\t}\n\t\t\t\n\t\t\tcache( \"components\", endPoints );\n\t\t}\n\t\t\n\t\treturn( endPoints );\n\t}", "public String [] getPublicIpAddresses() {\n return this.PublicIpAddresses;\n }", "public server.SayHello.shandong.ScenicBranchPictureBean[] getBranchPictures() {\n return branchPictures;\n }", "public byte getBNumConfigurations() {\r\n\t\treturn bNumConfigurations;\r\n\t}", "public int getBackupsCount() {\n if (backupsBuilder_ == null) {\n return backups_.size();\n } else {\n return backupsBuilder_.getCount();\n }\n }", "public List<BrokerStatus> getBrokers()\r\n {\r\n return Collections.unmodifiableList(brokers);\r\n }", "public JobServiceBusBrokeredMessageProperties getBrokeredMessageProperties() {\n return this.brokeredMessageProperties;\n }" ]
[ "0.78320825", "0.68846214", "0.65599656", "0.603366", "0.6020726", "0.60125124", "0.58616173", "0.57120794", "0.56486374", "0.54208666", "0.53500766", "0.52340496", "0.51550305", "0.5106186", "0.5104928", "0.50841814", "0.50558424", "0.5054913", "0.5016005", "0.5016005", "0.4999386", "0.48882356", "0.48633125", "0.4842374", "0.48209953", "0.47946313", "0.47371092", "0.4721664", "0.4721205", "0.47180513", "0.47083142", "0.46797535", "0.45942563", "0.45921686", "0.45900416", "0.4588299", "0.45642406", "0.45529127", "0.45436332", "0.45401448", "0.45401347", "0.45349124", "0.45337728", "0.45151493", "0.45149598", "0.45088026", "0.44816923", "0.44816923", "0.44802698", "0.44667163", "0.44645014", "0.44589168", "0.4439478", "0.44370452", "0.44343823", "0.44182372", "0.44035897", "0.44030908", "0.43918625", "0.43826637", "0.43763232", "0.43749005", "0.43748292", "0.4354596", "0.43543926", "0.43449306", "0.434393", "0.4343373", "0.43419307", "0.43333846", "0.4314921", "0.43050697", "0.4291568", "0.42761615", "0.42609283", "0.42584592", "0.4257317", "0.4245731", "0.42348272", "0.4232322", "0.42318183", "0.4225086", "0.42229825", "0.42186007", "0.4216347", "0.4215627", "0.42133665", "0.42106017", "0.42075962", "0.41993627", "0.4199044", "0.41972172", "0.4195981", "0.41929927", "0.41869968", "0.4186471", "0.41847327", "0.4184546", "0.41836593", "0.4178402" ]
0.880859
0
Set the applicationGatewayBackendAddressPools property: The application gateway backend address pools.
public VirtualMachineScaleSetUpdateIpConfigurationProperties withApplicationGatewayBackendAddressPools( List<SubResource> applicationGatewayBackendAddressPools) { this.applicationGatewayBackendAddressPools = applicationGatewayBackendAddressPools; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<SubResource> applicationGatewayBackendAddressPools() {\n return this.applicationGatewayBackendAddressPools;\n }", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withLoadBalancerBackendAddressPools(\n List<SubResource> loadBalancerBackendAddressPools) {\n this.loadBalancerBackendAddressPools = loadBalancerBackendAddressPools;\n return this;\n }", "public List<SubResource> loadBalancerBackendAddressPools() {\n return this.loadBalancerBackendAddressPools;\n }", "public SubResource backendAddressPool() {\n return this.backendAddressPool;\n }", "public LoadBalancingRulePropertiesFormat withBackendAddressPool(SubResource backendAddressPool) {\n this.backendAddressPool = backendAddressPool;\n return this;\n }", "public void setBackendConfiguration(BackendConfig backendConfiguration) {\n this.backendConfiguration = backendConfiguration;\n }", "public ApplicationGatewayBackendHttpSettings backendHttpSettings() {\n return this.backendHttpSettings;\n }", "@Updatable\n public Set<BackendHttpConfiguration> getBackendHttpConfiguration() {\n if (backendHttpConfiguration == null) {\n backendHttpConfiguration = new HashSet<>();\n }\n\n return backendHttpConfiguration;\n }", "public static void setConnectionPool(BoneCP connectionPool) {\n\t\tSQLDataBaseConnector.connectionPool = connectionPool;\n\t}", "final ConcurrentMap<Object, ManagedConnectionPool> getManagedConnectionPools()\n {\n return mcpPools;\n }", "@BindAttribute(name = \"backendUrl\")\n\tpublic void setBackendUrl(String backendUrl) {\n\t\tthis.backendUrl = backendUrl;\n\t}", "public ApplicationGatewayBackendHealthHttpSettings withBackendHttpSettings(ApplicationGatewayBackendHttpSettings backendHttpSettings) {\n this.backendHttpSettings = backendHttpSettings;\n return this;\n }", "public void deleteBackends(Map<String, Backend> zonesToBackend) throws IOException {\n for (Map.Entry<String, Backend> zoneToBackend : zonesToBackend.entrySet()) {\n String zone = zoneToBackend.getKey();\n Backend backend = zoneToBackend.getValue();\n String instanceGroupUrl = backend.getGroup();\n String instanceGroupName = CloudAPI.getResourceNameFromResourceUrl(instanceGroupUrl);\n log.warn(\"Deleting instance group: \" + instanceGroupName);\n Operation response =\n compute.instanceGroups().delete(project, zone, instanceGroupName).execute();\n operationPoller.waitForOperationCompletion(response);\n log.info(\"Sucessfully deleted instance group: \" + instanceGroupName);\n }\n }", "public void setWorkerpool(Executor workerpool) {\n\t pool.setWorkerpool(workerpool);\n\t}", "public void setGatewayIPAddress(InetAddress gatewayIPAddress)\n {\n this.gatewayIPAddress = gatewayIPAddress;\n }", "public BackendConfig getBackendConfiguration() {\n return backendConfiguration;\n }", "void bind(WorkerPool workerPool);", "public String getBackendUrl() {\n\t\treturn backendUrl;\n\t}", "public void backend (String backend) {\n if (isRunning ())\n throw new IllegalArgumentException (\"Can not change the backend of a running server\");\n\n this.backend = backend;\n }", "public static BackendServices newBackendServices(BackendService... backendServices) {\n return new BackendServices(arrayToSet(backendServices), true);\n }", "default void listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureNodePoolsMethod(), responseObserver);\n }", "@Override\n public void batchAdd(List<CmdbIpConfPoolEntity> data) {\n confPoolMapper.batchAdd(data);\n }", "private void setPersonsInPool(ArrayList<Person> personsInPool) {\n this.personsInPool = personsInPool;\n }", "protected void configureConnectionPool() {\n JdbcPropertyAdapter adapter = getPropertyAdapter(dbType, properties);\n JdbcConnectionProvider cp = new JdbcConnectionProvider(this.translator, adapter);\n this.connectionPool = new PoolConnectionProvider(cp, this.maxConnectionPoolSize);\n this.transactionProvider = new SimpleTransactionProvider(this.connectionPool);\n }", "public void setPolicyGroups(PolicyGroup [] PolicyGroups) {\n this.PolicyGroups = PolicyGroups;\n }", "@Updatable\n public Set<Backend> getBackend() {\n if (backend == null) {\n backend = new HashSet<>();\n }\n\n return backend;\n }", "public void listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getListAzureNodePoolsMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "public void setPoolSize(int aPoolSize) {\n poolSize = aPoolSize;\n }", "public void setChunkServers(HostID[] chunkServers)\n {\n this.chunkServers = chunkServers;\n }", "public ApplicationGatewayBackendHealthHttpSettings withServers(List<ApplicationGatewayBackendHealthServerInner> servers) {\n this.servers = servers;\n return this;\n }", "public static Set getAllManagedPools() {\n\t\treturn (SQLConnectionManager.managerByPool == null) ? Collections\n\t\t\t\t.emptySet() : SQLConnectionManager.managerByPool.keySet();\n\t}", "public Future<ExtensionPool> postTelephonyProvidersEdgesExtensionpoolsAsync(PostTelephonyProvidersEdgesExtensionpoolsRequest request, final AsyncApiCallback<ExtensionPool> callback) {\n try {\n final SettableFuture<ExtensionPool> future = SettableFuture.create();\n final boolean shouldThrowErrors = pcapiClient.getShouldThrowErrors();\n pcapiClient.invokeAsync(request.withHttpInfo(), new TypeReference<ExtensionPool>() {}, new AsyncApiCallback<ApiResponse<ExtensionPool>>() {\n @Override\n public void onCompleted(ApiResponse<ExtensionPool> response) {\n notifySuccess(future, callback, response.getBody());\n }\n\n @Override\n public void onFailed(Throwable exception) {\n if (shouldThrowErrors) {\n notifyFailure(future, callback, exception);\n }\n else {\n notifySuccess(future, callback, null);\n }\n }\n });\n return future;\n }\n catch (Throwable exception) {\n return Futures.immediateFailedFuture(exception);\n }\n }", "public void setApplications(List<Application> apps)\n {\n _apps.clear();\n\n if (apps != null) {\n _apps.addAll(apps);\n\n for (Application app : _apps) {\n app.setDataSource(this);\n }\n }\n }", "Future<UpdateBackendSetResponse> updateBackendSet(\n UpdateBackendSetRequest request,\n AsyncHandler<UpdateBackendSetRequest, UpdateBackendSetResponse> handler);", "public List<AppServiceEnvironmentInner> hostingEnvironments() {\n return this.hostingEnvironments;\n }", "public void setMaxPoolSize(int maxPoolSize) {\n this.maxPoolSize = maxPoolSize;\n }", "private void initialisePools() {\r\n Integer[] bigPoolInts = {25, 50, 75, 100};\r\n Integer[] smallPoolInts = {1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10};\r\n bigPool = new ArrayList<Integer>( Arrays.asList(bigPoolInts) );\r\n smallPool = new ArrayList<Integer>(Arrays.asList(smallPoolInts));\r\n //mix them up\r\n Collections.shuffle( bigPool );\r\n Collections.shuffle( smallPool );\r\n }", "public void setBranchPictures(server.SayHello.shandong.ScenicBranchPictureBean[] branchPictures) {\n this.branchPictures = branchPictures;\n }", "public void setAddresses(final SessionContext ctx, final List<Address> value)\n\t{\n\t\tsetProperty(ctx, ADDRESSES,value == null || !value.isEmpty() ? value : null );\n\t}", "public void setMaximumPoolSize(int maximumPoolSize) {\n this.maximumPoolSize = maximumPoolSize;\n }", "public List<ApplicationGatewayBackendHealthServerInner> servers() {\n return this.servers;\n }", "public void setBindings(Binding[] binds) {\n this.binds = binds;\n }", "public void setBindings(Binding[] binds) {\n this.binds = binds;\n }", "public void setAddresses(final List<Address> value)\n\t{\n\t\tsetAddresses( getSession().getSessionContext(), value );\n\t}", "public List<SubResource> loadBalancerInboundNatPools() {\n return this.loadBalancerInboundNatPools;\n }", "public PoolBoneCpManager() {\n pool = null;\n }", "@JSProperty(\"plotBands\")\n void setPlotBands(Array<ZAxisPlotBandsOptions> value);", "public void addPoolMap(PoolMap poolMap){\n\n\t\tpoolMaps.add(poolMap);\n\t}", "@ZAttr(id=97)\n public Map<String,Object> setSmtpHostname(String[] zimbraSmtpHostname, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraSmtpHostname, zimbraSmtpHostname);\n return attrs;\n }", "public AddressSpace vpnClientAddressPool() {\n return this.vpnClientAddressPool;\n }", "public void updateVillagePools(){\r\n\t\tCollections.shuffle(this.marketPool);\r\n\t\tfor(int i = 0; i < this.getnVillages(); i++){\r\n\t\t\tVillage curr = this.vVillages[i];\r\n\t\t\tcurr.setMarketPool(this.marketPool);\r\n\t\t}\r\n\t}", "private void setConfigNumMaxBgJobs(int value) {\n this.bitField0_ |= 2;\n this.configNumMaxBgJobs_ = value;\n }", "private void addThreadPools(Supplier<ThreadPoolExecutor> batchPool,\n Supplier<ThreadPoolExecutor> metaPool) {\n batchPools.add(batchPool);\n metaPools.add(metaPool);\n }", "@Override\n\tpublic synchronized StorageOperationResponse<GetStoragePoolsResponse> getStoragePools(\n\t\t\tGetStoragePoolsRequest request) {\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools: request:\" + request, null);\n\t\tGetStoragePoolsResponse payload = new GetStoragePoolsResponse();\n\t\tArrayList<StoragePool> storagePools = new ArrayList<StoragePool>();\n\t\tList<String> zones = null;\n\t\t BlockLimits blockLimits=openstackClient.getBlockStorageLimits();\n\t\t long totalSpaceGB=blockLimits.getAbsolute().getMaxTotalVolumeGigabytes();\n\t\t long usedSpaceGB=blockLimits.getAbsolute().getTotalGigabytesUsed();\n\t\t \n\t\tif (request.storageSystemId != null) {\n\t\t\tString region = openstackClient.getOpenstackId(request.storageSystemId);\n\t\t\ttry {\n\t\t\t\tzones = openstackClient.listAvailabilityZones(region);\n\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools:\" + e.getMessage(), null,e);\n\t\t\t \treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStoragePoolsResponse.class); \n\t\t\t}\n\t\t\n\t\t\tfor (String zone:zones) {\n\t\t\t\tstoragePools.add(OpenstackAdapterUtil.createStoragePool(zone, region, accountId, totalSpaceGB, usedSpaceGB));\n\t\t\t}\n\t\t\n\t\t} else {\n\t\t if (request.storagePoolIds == null || request.storagePoolIds.isEmpty()) {\n\t\t\t return StorageAdapterImplHelper.createFailedResponse(\"Bad request: both storageSystemId and storagePoolIds are null\", GetStoragePoolsResponse.class); \n\t\t }\n\t\t try {\n \n\t\t\t String zone = null;\n\t\t\t String region = null;\t\t \n\t\t\t for (String poolId:request.storagePoolIds) {\n\t\t\t\tif (poolId == null || poolId.indexOf(':') == -1) {\n\t\t\t\t\tstoragePools.add(null);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tzone = openstackClient.getOpenstackId(poolId);\n\t\t\t\tregion = openstackClient.getRegion(poolId);\n\t\t\t\t if (zone.equals(OpenstackConstants.Openstack_POOL_SNAPSHOTS)) {\n\t\t\t\t\t storagePools.add(OpenstackAdapterUtil.createStoragePool(OpenstackConstants.Openstack_POOL_SNAPSHOTS, region, accountId,totalSpaceGB, usedSpaceGB));\n\t\t\t\t } else {\n\t\t\t\t zones = openstackClient.listAvailabilityZones(region);\n\t\t\t\t if (zones.contains(zone)) {\n\t\t\t\t \tstoragePools.add(OpenstackAdapterUtil.createStoragePool(zone, region, accountId,totalSpaceGB, usedSpaceGB));\t\n\t\t\t\t\t} else {\n\t\t\t\t storagePools.add(null);\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\n\t\t } catch (Exception e) {\n\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools:\" + e.getMessage(), null,e);\n\t\t\treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStoragePoolsResponse.class); \n\t\t }\n\t\t \n\t\t}\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools: pools found: \" + storagePools.size() + \" pools: \" + storagePools , null);\n\t\tpayload.storagePools = storagePools;\n\t\tStorageOperationResponse<GetStoragePoolsResponse> response = new StorageOperationResponse<GetStoragePoolsResponse>(payload);\n\t\tresponse.setPercentCompleted(100);\n\t\tresponse.setStatus(StorageOperationStatus.COMPLETED);\n\t\treturn response;\n\t}", "public void setSbpbs(String sbpbs) {\n this.sbpbs = sbpbs == null ? null : sbpbs.trim();\n }", "public void setPushRulesManager(BingRulesManager bingRulesManager) {\n if (isAlive()) {\n mBingRulesManager = bingRulesManager;\n\n mBingRulesManager.loadRules(new SimpleApiCallback<Void>() {\n @Override\n public void onSuccess(Void info) {\n onBingRulesUpdate();\n }\n });\n }\n }", "public List<LoadBalancerConfiguration> loadBalancerConfigurations() {\n return this.loadBalancerConfigurations;\n }", "public DeploymentLocationsInner withHostingEnvironments(List<AppServiceEnvironmentInner> hostingEnvironments) {\n this.hostingEnvironments = hostingEnvironments;\n return this;\n }", "@Override\n\tpublic void setConnectionPoolSize(int arg0) {\n\n\t}", "public void setPoolDataSource(ConnectionPoolDataSource poolDataSource)\n throws SQLException\n {\n DriverConfig driver;\n \n if (_driverList.size() > 0)\n driver = _driverList.get(0);\n else\n driver = createDriver();\n \n driver.setPoolDataSource(poolDataSource);\n }", "@Nonnull\n public com.microsoft.graph.requests.ManagedAppPolicyCollectionRequestBuilder managedAppPolicies() {\n return new com.microsoft.graph.requests.ManagedAppPolicyCollectionRequestBuilder(getRequestUrlWithAdditionalSegment(\"managedAppPolicies\"), getClient(), null);\n }", "public void setPublicIpAddressSet(NatGatewayAddress [] PublicIpAddressSet) {\n this.PublicIpAddressSet = PublicIpAddressSet;\n }", "@Override\n public void configureMessageBroker(MessageBrokerRegistry brokerRegistry) {\n brokerRegistry.setApplicationDestinationPrefixes(\"/app\");\n\n /*\n * The list of destination prefixes provided in this are based on what broker is\n * getting used. In this case we will use in-memory broker which doesn't have\n * any such requirements. For the purpose of maintaining convention the \"/topic\"\n * and the \"/queue\" prefixes are chosen. The convention dictates usage of\n * \"/topic\" destination for pub-sub model targeting many subscribers and the\n * \"/queue\" destination for point to point messaging.\n */\n brokerRegistry.enableSimpleBroker(\"/topic\", \"/queue\");\n\n /*\n * For configuring dedicated broker use the below code.\n */\n // brokerRegistry.enableStompBrokerRelay(\"/topic\", \"/queue\");\n }", "void setPoolName(java.lang.String poolName);", "public void setDnsServersApp(String[] servers);", "void setPoolNumber(int poolNumber);", "Future<ListBackendSetsResponse> listBackendSets(\n ListBackendSetsRequest request,\n AsyncHandler<ListBackendSetsRequest, ListBackendSetsResponse> handler);", "private void addDefaultMonitoredPools() {\n\t\tfor (MemoryPoolMXBean pool : ManagementFactory.getMemoryPoolMXBeans()) {\n\t\t\tif (pool.isUsageThresholdSupported()) {\n\t\t\t\tmonitoredPools.add(pool);\n\t\t\t\tif (CoreMoSyncPlugin.getDefault().isDebugging()) {\n\t\t\t\t\tCoreMoSyncPlugin.trace(\"Monitoring memory pool {0}\", pool.getName());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void shutdownConnPool() {\n\t\ttry {\n\t\t\tBoneCP connectionPool = SQLDataBaseConnector.getConnectionPool();\n\t\t\tif (connectionPool != null) {\n\t\t\t\tconnectionPool.shutdown(); // this method must be called only\n\t\t\t\t\t\t\t\t\t\t\t// once when the application stops.\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public int getMaxPoolSize(Env env) {\n return client.getMaxPoolSize();\n }", "public void setPoolPartyRequests(\n final PoolPartyRequest[] thePoolPartyRequests) {\n poolPartyRequests = thePoolPartyRequests;\n }", "private void readPools(String bucketToFind) throws ConfigurationException {\n // the intent with this method is to encapsulate all of the walking of URIs\n // and populating an internal object model of the configuration to one place\n for (URI baseUri : baseList) {\n try {\n // get and parse the response from the current base uri\n URLConnection baseConnection = urlConnBuilder(null, baseUri);\n String base = readToString(baseConnection);\n if (\"\".equals(base)) {\n getLogger().warn(\"Provided URI \" + baseUri + \" has an empty response... skipping\");\n continue;\n }\n Map<String, Pool> pools = this.configurationParser.parseBase(base);\n\n // check for the default pool name\n if (!pools.containsKey(DEFAULT_POOL_NAME)) {\n getLogger().warn(\"Provided URI \" + baseUri + \" has no default pool... skipping\");\n continue;\n }\n // load pools\n for (Pool pool : pools.values()) {\n URLConnection poolConnection = urlConnBuilder(baseUri, pool.getUri());\n String poolString = readToString(poolConnection);\n configurationParser.loadPool(pool, poolString);\n URLConnection poolBucketsConnection = urlConnBuilder(baseUri, pool.getBucketsUri());\n String sBuckets = readToString(poolBucketsConnection);\n Map<String, Bucket> bucketsForPool = configurationParser.parseBuckets(sBuckets);\n pool.replaceBuckets(bucketsForPool);\n\n }\n // did we find our bucket?\n boolean bucketFound = false;\n for (Pool pool : pools.values()) {\n if (pool.hasBucket(bucketToFind)) {\n bucketFound = true;\n\t\t\tbreak;\n }\n }\n if (bucketFound) {\n for (Pool pool : pools.values()) {\n for (Map.Entry<String, Bucket> bucketEntry : pool.getROBuckets().entrySet()) {\n this.buckets.put(bucketEntry.getKey(), bucketEntry.getValue());\n }\n }\n this.loadedBaseUri = baseUri;\n return;\n }\n } catch (ParseException e) {\n\t\tgetLogger().warn(\"Provided URI \" + baseUri + \" has an unparsable response...skipping\", e);\n\t\tcontinue;\n } catch (IOException e) {\n\t\tgetLogger().warn(\"Connection problems with URI \" + baseUri + \" ...skipping\", e);\n\t\tcontinue;\n }\n\t throw new ConfigurationException(\"Configuration for bucket \" + bucketToFind + \" was not found.\");\n }\n }", "private void setBindingKeys(RabbitMQConfiguration config, String queueName) throws IOException {\n for (String bindingKey : config.getBindingKeys()) {\n channel.queueBind(queueName, config.getExchange(), bindingKey);\n }\n }", "public final void rule__BSOperation__BopAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:3168:1: ( ( ruleBoolOperation ) )\n // InternalBSQL2Java.g:3169:2: ( ruleBoolOperation )\n {\n // InternalBSQL2Java.g:3169:2: ( ruleBoolOperation )\n // InternalBSQL2Java.g:3170:3: ruleBoolOperation\n {\n before(grammarAccess.getBSOperationAccess().getBopBoolOperationParserRuleCall_0_0()); \n pushFollow(FOLLOW_2);\n ruleBoolOperation();\n\n state._fsp--;\n\n after(grammarAccess.getBSOperationAccess().getBopBoolOperationParserRuleCall_0_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void setHostProxySwitchHostLagConfig(com.vmware.converter.HostProxySwitchHostLagConfig[] hostProxySwitchHostLagConfig) {\r\n this.hostProxySwitchHostLagConfig = hostProxySwitchHostLagConfig;\r\n }", "public String getDatabaseConnectionPoolMaxNumberConnections(){\n \t\treturn getProperty(\"org.sagebionetworks.pool.max.number.connections\");\n \t}", "@ZAttr(id=562)\n public Map<String,Object> setVirtualIPAddress(String[] zimbraVirtualIPAddress, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraVirtualIPAddress, zimbraVirtualIPAddress);\n return attrs;\n }", "FrontendIpConfiguration destinationLoadBalancerFrontEndIpConfiguration();", "public void setPoolSize(final int poolSize) {\n this.poolSize = poolSize;\n }", "void closeConnectionsPool();", "void setPoolId(java.lang.String poolId);", "public void setBackendDOMNodeId(Integer backendDOMNodeId) {\n this.backendDOMNodeId = backendDOMNodeId;\n }", "public AddressSpace databricksAddressSpace() {\n return this.innerProperties() == null ? null : this.innerProperties().databricksAddressSpace();\n }", "public HttpServerConfiguration() {\n this.sessionsEnabled = true;\n this.connectors = new ArrayList<HttpConnectorConfiguration>();\n this.sslConnectors = new ArrayList<HttpSslConnectorConfiguration>();\n this.minThreads = 5;\n this.maxThreads = 50;\n }", "public void setEmailAddresses(String emailAddr)\n {\n this.emailAddresses = StringTools.trim(emailAddr);\n }", "private static BackendInstanceWrapper backendInstanceWrapper(\r\n final DBInfo theSettings) {\r\n final Iterator<BackendType> beItr = BackendServiceLoader.getInstance()\r\n .availableBackends();\r\n while (beItr.hasNext()) {\r\n final BackendType betype = beItr.next();\r\n if (betype.name().equals(theSettings.backendType())) {\r\n for (final BackendInstance ins : betype.instances()) {\r\n if (ins.name().equals(theSettings.instanceName()))\r\n return new BackendInstanceWrapper(betype.name(),\r\n ins.description(), ins.name(),\r\n theSettings.dbName());\r\n }\r\n }\r\n }\r\n throw new IllegalArgumentException(\"Either Database type :\"\r\n + theSettings.backendType() + \" or Instance :\"\r\n + theSettings.instanceName() + \" not found\");\r\n }", "public void setbottomBunToppings(String ...bottomBunToppings)\n\t{\n\t\tfor(String x : bottomBunToppings)\n\t\t{\n\t\t\tthis.bottomBunToppings.add(x);\n\t\t}\t\t\n\t}", "public void updateBackendService(String region, BackendService backendService)\n throws IOException {\n String backendServiceUrl = backendService.getSelfLink();\n String backendServiceName = CloudAPI.getResourceNameFromResourceUrl(backendServiceUrl);\n Operation response =\n compute\n .regionBackendServices()\n .update(project, region, backendServiceName, backendService)\n .execute();\n operationPoller.waitForOperationCompletion(response);\n }", "public static void setBesState(\n SyncBusinessEntity[] syncBes, int beState)\n {\n if (syncBes != null)\n {\n for (int i=0; i<syncBes.length; i++)\n syncBes[i].getBusinessEntity().setState(beState);\n }\n }", "@ZAttr(id=671)\n public Map<String,Object> setSkinLogoAppBanner(String zimbraSkinLogoAppBanner, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraSkinLogoAppBanner, zimbraSkinLogoAppBanner);\n return attrs;\n }", "public void addPool(ArrayList al) {\n\tsynchronized (al) {\n\t for (int i = 0; i < al.size(); i++) {\n\t\taddProcessor((TaskProcessorHandle)al.get(i));\n\t }\n\t}\n }", "public List<Address> getAllAddresses() throws BackendException;", "private void setAdditionalBindings(\n int index, com.google.api.HttpRule.Builder builderForValue) {\n ensureAdditionalBindingsIsMutable();\n additionalBindings_.set(index, builderForValue.build());\n }", "public void setHttpProxyHost(String host);", "public void setEEGroups(){\r\n\t\tComboItem[] comboItems;\r\n\t\t//array list is used as interim solution due to the fact that regular arrays size is immutable\r\n\t\tArrayList<ComboItem> itemList = new ArrayList<ComboItem>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//Query database and populate array list with values. \r\n\t\t\tResultSet result = EE_GROUPS.executeQuery();\r\n\t\t\twhile(result.next()){\r\n\t\t\t\titemList.add(new ComboItem(result.getInt(1), result.getString(2)));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Initialise new array with needed size\r\n\t\t\tcomboItems = new ComboItem[itemList.size()];\r\n\t\t\t//convert arraylist object into array\r\n\t\t\tcomboItems = itemList.toArray(comboItems);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t//initialise empty array to be returned\r\n\t\t\tcomboItems = new ComboItem[0];\r\n\t\t\tlogger.log(Level.SEVERE, e.getMessage());\r\n\t\t} \r\n\t\tthis.ee_groups = comboItems;\r\n\t}", "public BoneCP getPool() {\n return pool;\n }", "private void init() {\n if (adminConnectionFactory != null) {\n throw new IllegalStateException(\"Provider already initialized.\");\n }\n\n // setup admin connection pool\n LdapConnectionConfig cc = createConnectionConfig();\n String bindDN = config.getBindDN();\n if (bindDN != null && !bindDN.isEmpty()) {\n cc.setName(bindDN);\n cc.setCredentials(config.getBindPassword());\n }\n adminConnectionFactory = new ValidatingPoolableLdapConnectionFactory(cc);\n if (config.getAdminPoolConfig().lookupOnValidate()) {\n adminConnectionFactory.setValidator(new LookupLdapConnectionValidator());\n } else {\n adminConnectionFactory.setValidator(new DefaultLdapConnectionValidator());\n }\n if (config.getAdminPoolConfig().getMaxActive() != 0) {\n adminPool = new LdapConnectionPool(adminConnectionFactory);\n adminPool.setTestOnBorrow(true);\n adminPool.setMaxTotal(config.getAdminPoolConfig().getMaxActive());\n adminPool.setBlockWhenExhausted(true);\n adminPool.setMinEvictableIdleTimeMillis(config.getAdminPoolConfig().getMinEvictableIdleTimeMillis());\n adminPool.setTimeBetweenEvictionRunsMillis(config.getAdminPoolConfig().getTimeBetweenEvictionRunsMillis());\n adminPool.setNumTestsPerEvictionRun(config.getAdminPoolConfig().getNumTestsPerEvictionRun());\n }\n\n // setup unbound connection pool. let's create a new version of the config\n cc = createConnectionConfig();\n\n userConnectionFactory = new PoolableUnboundConnectionFactory(cc);\n if (config.getUserPoolConfig().lookupOnValidate()) {\n userConnectionFactory.setValidator(new UnboundLookupConnectionValidator());\n } else {\n userConnectionFactory.setValidator(new UnboundConnectionValidator());\n }\n if (config.getUserPoolConfig().getMaxActive() != 0) {\n userPool = new UnboundLdapConnectionPool(userConnectionFactory);\n userPool.setTestOnBorrow(true);\n userPool.setMaxTotal(config.getUserPoolConfig().getMaxActive());\n userPool.setBlockWhenExhausted(true);\n userPool.setMinEvictableIdleTimeMillis(config.getUserPoolConfig().getMinEvictableIdleTimeMillis());\n userPool.setTimeBetweenEvictionRunsMillis(config.getUserPoolConfig().getTimeBetweenEvictionRunsMillis());\n userPool.setNumTestsPerEvictionRun(config.getUserPoolConfig().getNumTestsPerEvictionRun());\n }\n\n log.info(\"LdapIdentityProvider initialized: {}\", config);\n }", "public CacheConfig<K, V> setAsyncBackupCount(final int asyncBackupCount) {\n if (asyncBackupCount < MIN_BACKUP_COUNT) {\n throw new IllegalArgumentException(\"map async backup count must be equal to or bigger than \" + MIN_BACKUP_COUNT);\n }\n if ((this.backupCount + asyncBackupCount) > MAX_BACKUP_COUNT) {\n throw new IllegalArgumentException(\"total (sync + async) map backup count must be less than \" + MAX_BACKUP_COUNT);\n }\n this.asyncBackupCount = asyncBackupCount;\n return this;\n }", "public final void setKafkaBrokerConfig(String configKey, String configValue) {\n kafkaBrokerConfig.setProperty(configKey, configValue);\n }", "public int getMaxPoolSize() {\n return maxPoolSize;\n }" ]
[ "0.7416894", "0.66031295", "0.6568029", "0.53379464", "0.53353024", "0.52540857", "0.50483215", "0.5038345", "0.48238063", "0.47900406", "0.47834972", "0.45677167", "0.45264587", "0.44870356", "0.435428", "0.4328196", "0.43269044", "0.4291328", "0.42882583", "0.42806223", "0.42645016", "0.42350352", "0.42298287", "0.41880584", "0.41733378", "0.41652235", "0.4158542", "0.41234452", "0.41068837", "0.40947044", "0.4066364", "0.40590742", "0.40227666", "0.40017158", "0.3996879", "0.39929166", "0.39594537", "0.39554888", "0.39550698", "0.39547655", "0.39519206", "0.39414036", "0.39414036", "0.3934323", "0.3927489", "0.3915914", "0.39091578", "0.38884035", "0.3884042", "0.38629127", "0.3857863", "0.38567585", "0.3849684", "0.38335198", "0.383256", "0.38312954", "0.38276508", "0.38225192", "0.38132113", "0.3810293", "0.38089952", "0.38036665", "0.38029954", "0.38023326", "0.37950066", "0.37943447", "0.37906802", "0.37787172", "0.3762087", "0.376031", "0.37592134", "0.37459695", "0.3743891", "0.37433317", "0.3735705", "0.37282568", "0.37276974", "0.37258974", "0.3725892", "0.3722245", "0.37188116", "0.37173706", "0.37166005", "0.368866", "0.36783376", "0.36780113", "0.36740512", "0.3672907", "0.36728534", "0.3668471", "0.3635788", "0.3632094", "0.3631685", "0.36195102", "0.3615118", "0.36105308", "0.3609133", "0.3607899", "0.36075127", "0.3597693" ]
0.7630904
0
Get the applicationSecurityGroups property: Specifies an array of references to application security group.
public List<SubResource> applicationSecurityGroups() { return this.applicationSecurityGroups; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Required\n @Updatable\n public Set<SecurityGroupResource> getSecurityGroups() {\n if (securityGroups == null) {\n securityGroups = new HashSet<>();\n }\n\n return securityGroups;\n }", "public String [] getSecurityGroupSet() {\n return this.SecurityGroupSet;\n }", "public List<String> getAuthorizedSeriesSecurityGroups() {\n return getAuthorizedSeriesSecurityGroups(RoleType.READ);\n }", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withApplicationSecurityGroups(\n List<SubResource> applicationSecurityGroups) {\n this.applicationSecurityGroups = applicationSecurityGroups;\n return this;\n }", "public List<String> getAuthorizedSeriesSecurityGroups(RoleType role) {\n return findValuesFromAuthorizationData(PROT_ELEM_GENERAL_SERIES,\n PROT_ELEM_SECURITY_GROUP,\n role);\n }", "private List<String> getEc2SecurityGroups(AmazonEC2 ec2) throws AmazonClientException {\n List<String> groupIds = new ArrayList<>();\n\n DescribeSecurityGroupsResult groupResult = getSecurityGroupsBy(\"group-name\", securityGroupSet, ec2);\n if (groupResult.getSecurityGroups().size() == 0) {\n groupResult = getSecurityGroupsBy(\"group-id\", securityGroupSet, ec2);\n }\n\n for (SecurityGroup group : groupResult.getSecurityGroups()) {\n if (group.getVpcId() != null && !group.getVpcId().isEmpty()) {\n List<Filter> filters = new ArrayList<>();\n filters.add(new Filter(\"vpc-id\").withValues(group.getVpcId()));\n filters.add(new Filter(\"state\").withValues(\"available\"));\n filters.add(new Filter(\"subnet-id\").withValues(getCurrentSubnetId()));\n\n DescribeSubnetsRequest subnetReq = new DescribeSubnetsRequest();\n subnetReq.withFilters(filters);\n DescribeSubnetsResult subnetResult = ec2.describeSubnets(subnetReq);\n\n List<Subnet> subnets = subnetResult.getSubnets();\n if (subnets != null && !subnets.isEmpty()) {\n groupIds.add(group.getGroupId());\n }\n }\n }\n\n if (securityGroupSet.size() != groupIds.size()) {\n throw new AmazonClientException(\"Security groups must all be VPC security groups to work in a VPC context\");\n }\n\n return groupIds;\n }", "public EC2DescribeSecurityGroupsResponse describeSecurityGroups(EC2DescribeSecurityGroups request) {\n EC2DescribeSecurityGroupsResponse response = new EC2DescribeSecurityGroupsResponse();\n try {\n response = listSecurityGroups(request.getGroupSet());\n EC2GroupFilterSet gfs = request.getFilterSet();\n if (gfs != null) {\n response = gfs.evaluate(response);\n }\n } catch (Exception e) {\n logger.error(\"EC2 DescribeSecurityGroups - \", e);\n handleException(e);\n }\n return response;\n }", "public String[] getSecureContainerList() throws RemoteException;", "@Schema(description = \"Id(s) of user groups that the user belongs to. This provides access to exclusive assets that are hidden to the public. Id's are agreed upon by TO and MP.\")\n \n public List<String> getUserGroups() {\n return userGroups;\n }", "public List<SecGroup> getAllGroups();", "@JsonProperty(\"statementGroups\")\n public List<WbStatementGroupExpr> getStatementGroups() {\n return Collections.unmodifiableList(statementGroups);\n }", "@Accessor(qualifier = \"UserGroups\", type = Accessor.Type.GETTER)\n\tpublic List<B2BUserGroupModel> getUserGroups()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(USERGROUPS);\n\t}", "public void setSecurityGroupSet(String [] SecurityGroupSet) {\n this.SecurityGroupSet = SecurityGroupSet;\n }", "public String[] getStudents() {\n\t\treturn students;\n\t}", "@Transient\r\n\t@ManyToMany\r\n\t@AccelaQuery(queryClass=\"com.accela.aa.datamanager.service.EmptyQueryImpl\", \r\n\t\tisQl=false, targetEntity=ACASecurityPolicy.class)\r\n\t@XmlElementWrapper(name = \"policySecuritys\")\r\n\t@XmlElement(name = \"policySecurity\")\r\n\tpublic List<ACASecurityModel> getPolicySecurityModels()\r\n\t{\r\n\t\treturn policySecurityModels;\r\n\t}", "public List<String> applicationGroupReferences() {\n return this.innerProperties() == null ? null : this.innerProperties().applicationGroupReferences();\n }", "public YangString getCsgListValue() throws JNCException {\n return (YangString)getValue(\"csg-list\");\n }", "public List<OSSGroup> getGroups() {\r\n\t\treturn groups;\r\n\t}", "public Integer getSecurity() {\n return security;\n }", "public IdentifierSearch getSecurityKeys() {\n return _securityKeys;\n }", "public String[] getSecureContainerList() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getSecureContainerList, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createStringArray();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }", "public PolicyGroup [] getPolicyGroups() {\n return this.PolicyGroups;\n }", "@ApiModelProperty(value = \"List of access groups that the user should belong to. Effect: The user will be assigned to each group that can be located. If a group does not already exist, it will NOT be created. \")\n public List<String> getAccessGroups() {\n return accessGroups;\n }", "private EC2AuthorizeRevokeSecurityGroup toSecurityGroup( String groupName, IpPermissionType[] items ) {\r\n EC2AuthorizeRevokeSecurityGroup request = new EC2AuthorizeRevokeSecurityGroup();\r\n \r\n request.setName( groupName );\r\n \r\n for( int i=0; i < items.length; i++ ) {\r\n \t EC2IpPermission perm = new EC2IpPermission(); \t\r\n \t perm.setProtocol( items[i].getIpProtocol());\r\n \t perm.setFromPort( items[i].getFromPort());\r\n \t perm.setToPort( items[i].getToPort());\r\n \t\r\n \t UserIdGroupPairSetType groups = items[i].getGroups();\r\n \t if (null != groups) {\r\n \t\t UserIdGroupPairType[] groupItems = groups.getItem();\r\n \t\t for( int j=0; j < groupItems.length; j++ ) {\r\n \t\t\t EC2SecurityGroup user = new EC2SecurityGroup();\r\n \t\t\t user.setName( groupItems[j].getUserId());\r\n \t\t\t user.setAccount( groupItems[j].getGroupName());\r\n \t\t\t perm.addUser( user );\r\n \t\t } \t\t\r\n \t } \t\r\n \r\n \t IpRangeSetType ranges = items[i].getIpRanges();\r\n \t if (null != ranges) {\r\n \t\t IpRangeItemType[] rangeItems = ranges.getItem();\r\n \t\t for( int k=0; k < rangeItems.length; k++ ) \r\n \t\t\t perm.addIpRange( rangeItems[k].getCidrIp());\r\n \t } \r\n \r\n \t request.addIpPermission( perm );\r\n }\r\n return request;\r\n }", "@OAMany(displayName = \"Application Groups\", toClass = ApplicationGroup.class, reverseName = ApplicationGroup.P_ExcludeApplicationTypes, createMethod = false)\n\t@OALinkTable(name = \"ApplicationGroupExcludeApplicationType\", indexName = \"ApplicationGroupExcludeApplicationType\", columns = {\n\t\t\t\"ApplicationTypeId\" })\n\tprivate Hub<ApplicationGroup> getExcludeApplicationGroups() {\n\t\treturn null;\n\t}", "public List<SprinklerGroup> getSprinklerGroups() {\n\t\treturn SprinklerGroups;\n\t}", "public ArrayList<Student> getStudents() {\r\n\t\treturn this.students;\r\n\t}", "@ApiModelProperty(value = \"Usergroups (only when requesting a single user)\")\n public List<Group> getGroups() {\n return groups;\n }", "public ArrayList<String> getSubscribedGroups() {\n return subscribedGroups;\n }", "public com.google.protobuf.ProtocolStringList\n getApiGroupsList() {\n return apiGroups_.getUnmodifiableView();\n }", "@OAMany(displayName = \"Include Application Groups\", toClass = ApplicationGroup.class, reverseName = ApplicationGroup.P_IncludeApplicationTypes, createMethod = false)\n\t@OALinkTable(name = \"ApplicationGroupIncludeApplicationType\", indexName = \"ApplicationGroupIncludeApplicationType\", columns = {\n\t\t\t\"ApplicationTypeId\" })\n\tprivate Hub<ApplicationGroup> getIncludeApplicationGroups() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Student[] getStudents() {\n\t\treturn this.students;\r\n\t}", "public int[] getCapitalSMIds() {\r\n\t\treturn capitalSMIds;\r\n\t}", "public com.google.protobuf.ProtocolStringList\n getApiGroupsList() {\n return apiGroups_;\n }", "public NetworkSecurityGroupGetResponse() {\n super();\n this.setRules(new LazyArrayList<NetworkSecurityRule>());\n }", "public ArrayList<Student> getStudents() {\r\n\t\treturn students;\r\n\t}", "public String getGroupUserIds() {\n return groupUserIds;\n }", "List<SecuritySchemeRef> securedBy();", "public List<SecGroupright> getAllGroupRights();", "public List <String> getGroups ()\n {\n return groups;\n }", "public ArrayList<Role> getRoles()\r\n {\r\n return this.securityInfo.getRoles();\r\n }", "public List<PrivateAccessSubnet> subnets() {\n return this.subnets;\n }", "public Set<String> listPrivilegesForGroup(String groupName) throws SentryConfigurationException;", "protected void addSecurityGroupWithISecurityGroup_software_amazon_awscdk_services_ec2_ISecurityGroup_AsReferencePropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_securityGroupWithISecurityGroup_software_amazon_awscdk_services_ec2_ISecurityGroup_AsReference_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_securityGroupWithISecurityGroup_software_amazon_awscdk_services_ec2_ISecurityGroup_AsReference_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__SECURITY_GROUP_WITH_ISECURITY_GROUP_SOFTWARE_AMAZON_AWSCDK_SERVICES_EC2_ISECURITY_GROUP_AS_REFERENCE,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public Collection<String> getGroups() {\r\n \t\tCollection<String> serverGroups = this.groupList.getGroups();\r\n \r\n \t\treturn serverGroups;\r\n \t}", "@XmlElement(required = true)\n public List<Application> getApplications() {\n return applications;\n }", "List<RoleEntity> getSystemRoles();", "public List getSysRoles(SysRole sysRole);", "public int getApplications() {\r\n return applications;\r\n }", "public List<User> getStudents(Group currentGroup);", "public ComboItem[] getEe_groups() {\r\n\t\treturn ee_groups;\r\n\t}", "public List<Yng_Security> findAll() {\n\t\treturn securityDao.findAll();\r\n\t}", "private String[] getArrayGroupName() {\n java.util.List<StudentGroupThrift> studentGroupThrifts = mainWindow.getStudentClient().getAllStudentGroup();\n List<String> groupName = studentGroupThrifts.stream()\n .map(StudentGroupThrift::getName).collect(Collectors.toList());\n return groupName.toArray(new String[groupName.size()]);\n }", "public DescribeInstanceSecurityGroupResponse DescribeInstanceSecurityGroup(DescribeInstanceSecurityGroupRequest req) throws TencentCloudSDKException{\n JsonResponseModel<DescribeInstanceSecurityGroupResponse> rsp = null;\n try {\n Type type = new TypeToken<JsonResponseModel<DescribeInstanceSecurityGroupResponse>>() {\n }.getType();\n rsp = gson.fromJson(this.internalRequest(req, \"DescribeInstanceSecurityGroup\"), type);\n } catch (JsonSyntaxException e) {\n throw new TencentCloudSDKException(e.getMessage());\n }\n return rsp.response;\n }", "public static void getSecurityApplicationsBySpecificApplicationId(\n com.azure.resourcemanager.security.SecurityManager manager) {\n manager\n .securityConnectorApplicationOperations()\n .getWithResponse(\n \"gcpResourceGroup\",\n \"gcpconnector\",\n \"ad9a8e26-29d9-4829-bb30-e597a58cdbb8\",\n com.azure.core.util.Context.NONE);\n }", "public SegmentGroupList getSegmentGroupList()\n\t{\n\t\treturn segmentGroupList;\n\t}", "public static ArrayList<Student> getLockedStudenti() {\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.GET_LOCKED_STUDENTS;\n\t\tReceiveContent rpp = sendReceive(rp);\n\t\tArrayList<Student> studentiBloccati = (ArrayList<Student>) rpp.parameters[0];\n\t\treturn studentiBloccati;\n\t}", "public Security getSecurity()\n {\n return __m_Security;\n }", "public String[] getSynExpressionGroup(String name) {\r\n\t\treturn synExpressionGroups.get(name);\r\n\t}", "List<SecurityScheme> securitySchemes();", "public List<String> getAllSIDs() {\n\t\tSet<String> r = new HashSet<String>();\n\t\tfor (Set<String> set : grantedPermissions.values())\n\t\t\tr.addAll(set);\n\t\tr.remove(\"anonymous\");\n\n\t\tString[] data = r.toArray(new String[r.size()]);\n\t\tArrays.sort(data);\n\t\treturn Arrays.asList(data);\n\t}", "public List<IpSecurityRestrictionRule> ipSecurityRestrictions() {\n return this.ipSecurityRestrictions;\n }", "@ApiModelProperty(value = \"List of agent groups that the user should be assigned to. Effect: The user will be assigned to each group that already exists. If a particular group is not already in the system it will be created. \")\n public List<String> getAgentGroups() {\n return agentGroups;\n }", "Group[] getParents() throws AccessManagementException;", "public Square[][] getSquares() {\n \treturn squares;\n }", "public String getSeGrpUuid() {\n return seGrpUuid;\n }", "public String getAccountsSupervisorySystemsIdentifier() {\n return accountsSupervisorySystemsIdentifier;\n }", "public List<String> groupIds() {\n return this.groupIds;\n }", "Student[] getStudents(){\n\t\treturn enrolled.toArray(new Student[enrolled.size()]);\n\t}", "public wbemdisp.ISWbemSecurity getSecurity_ () throws java.io.IOException, com.linar.jintegra.AutomationException;", "@ApiModelProperty(required = true, value = \"`apiGroups` is a list of matching API groups and may not be empty. \\\"*\\\" matches all API groups and, if present, must be the only entry. Required.\")\n\n public List<String> getApiGroups() {\n return apiGroups;\n }", "Collection getAccessPatternsInGroup(Object groupID) throws Exception;", "public ArrayList getSchools();", "@ApiModelProperty(value = \"The list of Software Statement roles\")\n\n\n public List<String> getRoles() {\n return roles;\n }", "public RemoteIdentityGroups remoteIdentityGroups() {\n return this.remoteIdentityGroups;\n }", "public SecRolegroup getNewSecRolegroup();", "public SecurityType getSecurityType() {\n return securityType;\n }", "com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints[] getScansArray();", "public ArrayList getStudents();", "@GetMapping(\"/skillgroups\")\n @Timed\n public List<Skillgroup> getAllSkillgroups() {\n log.debug(\"REST request to get all Skillgroups\");\n return skillgroupService.findAll();\n }", "ConsumerGroups consumerGroups();", "public Square[][] getSquares()\n {\n return squares;\n }", "public Student getStudents() {\n\t\treturn this.student;\n\t}", "public java.lang.String getApiGroups(int index) {\n return apiGroups_.get(index);\n }", "@Required\n @Updatable\n public Set<SubnetResource> getSubnets() {\n if (subnets == null) {\n subnets = new HashSet<>();\n }\n\n return subnets;\n }", "public ArrayList<Student> getStudents()\n {\n return students;\n }", "java.util.List<com.google.analytics.data.v1alpha.UserSegmentSequenceGroup>\n getAndSequenceGroupsList();", "public List<Application> getApplications()\n {\n return _apps;\n }", "public java.lang.String getApiGroups(int index) {\n return apiGroups_.get(index);\n }", "public String getSGroupName() {\n return sGroupName;\n }", "public int[] getSupportedOrganisms() {\n if (datasources==null) return new int[0];\n int size=datasources.size();\n HashSet<Integer> map=new HashSet<Integer>(3);\n for (DataSource source:datasources) {\n map.add(new Integer(source.getOrganism()));\n }\n int[] result=new int[map.size()];\n int i=0;\n for (Integer integer:map) {\n result[i]=integer.intValue();\n i++;\n }\n return result;\n }", "public String getStudents(){\n\t\treturn this.students;\n\t}", "public ArrayList<NetworkSecurityRule> getRules() {\n return this.rules;\n }", "List<String> getRoles();", "List<Group> getGroups();", "@Nonnull\n List<UserGroup> getGroups();", "public java.util.List<ReservationCoverageGroup> getGroups() {\n return groups;\n }", "public List<Group> getGroups() {\n return groups;\n }", "public String get_snmpsecurityname()\r\n\t{\r\n\t\treturn this.snmpsecurityname;\r\n\t}", "public ScheduleGroups getScheduleGroups() throws ScheduleGroupException {\r\n ScheduleGroups sGroups = null;\r\n\r\n try {\r\n ScheduleGroupDAO sGroupDao = new ScheduleGroupDAO();\r\n sGroups = (ScheduleGroups) sGroupDao.list();\r\n\r\n } catch (DataAccessException dae) {\r\n throw new ScheduleGroupException(dae);\r\n } catch (Exception e) {\r\n throw new ScheduleGroupException(e);\r\n }\r\n\r\n return sGroups;\r\n }" ]
[ "0.7121816", "0.66912264", "0.6155129", "0.5777681", "0.564326", "0.56322855", "0.5574587", "0.51819676", "0.5128822", "0.50217193", "0.5000372", "0.4968736", "0.494431", "0.49440408", "0.48493025", "0.47640702", "0.47187316", "0.4663128", "0.4649249", "0.464418", "0.464405", "0.46237257", "0.46206397", "0.4618637", "0.46160248", "0.46144298", "0.46070117", "0.45962763", "0.45940244", "0.45828658", "0.4576345", "0.45731592", "0.45696008", "0.45654693", "0.45513842", "0.45280483", "0.4515573", "0.45095712", "0.44974047", "0.44782737", "0.44460595", "0.44414628", "0.4429565", "0.44289097", "0.44174823", "0.4412502", "0.44096372", "0.44073084", "0.43965617", "0.4382022", "0.43757787", "0.43602154", "0.43537533", "0.4350372", "0.4340595", "0.43326637", "0.4330668", "0.4330379", "0.4327948", "0.43255794", "0.4305297", "0.42852274", "0.42765427", "0.42753804", "0.4268932", "0.4247617", "0.42412582", "0.42403692", "0.42383966", "0.42326647", "0.42321324", "0.42309687", "0.42302623", "0.42272097", "0.42231196", "0.4202729", "0.41988593", "0.4194675", "0.41931486", "0.41904333", "0.41879892", "0.4184742", "0.41812867", "0.41799143", "0.4179102", "0.41787356", "0.41763434", "0.41721803", "0.41696152", "0.41635057", "0.4159975", "0.41544706", "0.41539514", "0.41519076", "0.41476712", "0.41433087", "0.41417906", "0.41404948", "0.41397905", "0.4134067" ]
0.81132877
0
Set the applicationSecurityGroups property: Specifies an array of references to application security group.
public VirtualMachineScaleSetUpdateIpConfigurationProperties withApplicationSecurityGroups( List<SubResource> applicationSecurityGroups) { this.applicationSecurityGroups = applicationSecurityGroups; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<SubResource> applicationSecurityGroups() {\n return this.applicationSecurityGroups;\n }", "public void setSecurityGroupSet(String [] SecurityGroupSet) {\n this.SecurityGroupSet = SecurityGroupSet;\n }", "@Required\n @Updatable\n public Set<SecurityGroupResource> getSecurityGroups() {\n if (securityGroups == null) {\n securityGroups = new HashSet<>();\n }\n\n return securityGroups;\n }", "public String [] getSecurityGroupSet() {\n return this.SecurityGroupSet;\n }", "@Accessor(qualifier = \"UserGroups\", type = Accessor.Type.SETTER)\n\tpublic void setUserGroups(final List<B2BUserGroupModel> value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(USERGROUPS, value);\n\t}", "public EC2DescribeSecurityGroupsResponse describeSecurityGroups(EC2DescribeSecurityGroups request) {\n EC2DescribeSecurityGroupsResponse response = new EC2DescribeSecurityGroupsResponse();\n try {\n response = listSecurityGroups(request.getGroupSet());\n EC2GroupFilterSet gfs = request.getFilterSet();\n if (gfs != null) {\n response = gfs.evaluate(response);\n }\n } catch (Exception e) {\n logger.error(\"EC2 DescribeSecurityGroups - \", e);\n handleException(e);\n }\n return response;\n }", "private EC2AuthorizeRevokeSecurityGroup toSecurityGroup( String groupName, IpPermissionType[] items ) {\r\n EC2AuthorizeRevokeSecurityGroup request = new EC2AuthorizeRevokeSecurityGroup();\r\n \r\n request.setName( groupName );\r\n \r\n for( int i=0; i < items.length; i++ ) {\r\n \t EC2IpPermission perm = new EC2IpPermission(); \t\r\n \t perm.setProtocol( items[i].getIpProtocol());\r\n \t perm.setFromPort( items[i].getFromPort());\r\n \t perm.setToPort( items[i].getToPort());\r\n \t\r\n \t UserIdGroupPairSetType groups = items[i].getGroups();\r\n \t if (null != groups) {\r\n \t\t UserIdGroupPairType[] groupItems = groups.getItem();\r\n \t\t for( int j=0; j < groupItems.length; j++ ) {\r\n \t\t\t EC2SecurityGroup user = new EC2SecurityGroup();\r\n \t\t\t user.setName( groupItems[j].getUserId());\r\n \t\t\t user.setAccount( groupItems[j].getGroupName());\r\n \t\t\t perm.addUser( user );\r\n \t\t } \t\t\r\n \t } \t\r\n \r\n \t IpRangeSetType ranges = items[i].getIpRanges();\r\n \t if (null != ranges) {\r\n \t\t IpRangeItemType[] rangeItems = ranges.getItem();\r\n \t\t for( int k=0; k < rangeItems.length; k++ ) \r\n \t\t\t perm.addIpRange( rangeItems[k].getCidrIp());\r\n \t } \r\n \r\n \t request.addIpPermission( perm );\r\n }\r\n return request;\r\n }", "public void setSchools(ArrayList value);", "public void setEEGroups(){\r\n\t\tComboItem[] comboItems;\r\n\t\t//array list is used as interim solution due to the fact that regular arrays size is immutable\r\n\t\tArrayList<ComboItem> itemList = new ArrayList<ComboItem>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//Query database and populate array list with values. \r\n\t\t\tResultSet result = EE_GROUPS.executeQuery();\r\n\t\t\twhile(result.next()){\r\n\t\t\t\titemList.add(new ComboItem(result.getInt(1), result.getString(2)));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Initialise new array with needed size\r\n\t\t\tcomboItems = new ComboItem[itemList.size()];\r\n\t\t\t//convert arraylist object into array\r\n\t\t\tcomboItems = itemList.toArray(comboItems);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t//initialise empty array to be returned\r\n\t\t\tcomboItems = new ComboItem[0];\r\n\t\t\tlogger.log(Level.SEVERE, e.getMessage());\r\n\t\t} \r\n\t\tthis.ee_groups = comboItems;\r\n\t}", "public void setPolicyGroups(PolicyGroup [] PolicyGroups) {\n this.PolicyGroups = PolicyGroups;\n }", "protected void addSecurityGroupWithISecurityGroup_software_amazon_awscdk_services_ec2_ISecurityGroup_AsReferencePropertyDescriptor(\n\t\t\tObject object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_securityGroupWithISecurityGroup_software_amazon_awscdk_services_ec2_ISecurityGroup_AsReference_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_securityGroupWithISecurityGroup_software_amazon_awscdk_services_ec2_ISecurityGroup_AsReference_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__SECURITY_GROUP_WITH_ISECURITY_GROUP_SOFTWARE_AMAZON_AWSCDK_SERVICES_EC2_ISECURITY_GROUP_AS_REFERENCE,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "void setPermittedModules(ArrayList<Integer> permittedModules);", "public void setStudents(ArrayList value);", "private List<String> getEc2SecurityGroups(AmazonEC2 ec2) throws AmazonClientException {\n List<String> groupIds = new ArrayList<>();\n\n DescribeSecurityGroupsResult groupResult = getSecurityGroupsBy(\"group-name\", securityGroupSet, ec2);\n if (groupResult.getSecurityGroups().size() == 0) {\n groupResult = getSecurityGroupsBy(\"group-id\", securityGroupSet, ec2);\n }\n\n for (SecurityGroup group : groupResult.getSecurityGroups()) {\n if (group.getVpcId() != null && !group.getVpcId().isEmpty()) {\n List<Filter> filters = new ArrayList<>();\n filters.add(new Filter(\"vpc-id\").withValues(group.getVpcId()));\n filters.add(new Filter(\"state\").withValues(\"available\"));\n filters.add(new Filter(\"subnet-id\").withValues(getCurrentSubnetId()));\n\n DescribeSubnetsRequest subnetReq = new DescribeSubnetsRequest();\n subnetReq.withFilters(filters);\n DescribeSubnetsResult subnetResult = ec2.describeSubnets(subnetReq);\n\n List<Subnet> subnets = subnetResult.getSubnets();\n if (subnets != null && !subnets.isEmpty()) {\n groupIds.add(group.getGroupId());\n }\n }\n }\n\n if (securityGroupSet.size() != groupIds.size()) {\n throw new AmazonClientException(\"Security groups must all be VPC security groups to work in a VPC context\");\n }\n\n return groupIds;\n }", "public List<String> getAuthorizedSeriesSecurityGroups() {\n return getAuthorizedSeriesSecurityGroups(RoleType.READ);\n }", "void setSites(com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfguid sites);", "public void setStringArray(String[] value);", "@Override\r\n\tpublic void setStudents(Student[] students) {\n\t\tthis.students = students;\r\n\t}", "public void setApplications(int applications) {\r\n this.applications = applications;\r\n }", "public void setAsSecurityManager() {\r\n\t\tRemoteReflector.setSecurityPolicy(_sess, this);\r\n\t}", "void setScansArray(com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints[] scansArray);", "public void setCurrentStudents(int currentStudents)\n throws ArrayIndexOutOfBoundsException\n {\n if (students.size() >=0)\n if (students.size() <=5)\n this.currentStudents = students.size();\n else throw new ArrayIndexOutOfBoundsException();\n }", "public void setSecurityKeys(IdentifierSearch securityKeys) {\n this._securityKeys = securityKeys;\n }", "void updateUserGroupAssociation(Integer userId, Integer... userGroups);", "@Test(groups = \"wso2.am\", description = \"Edit application by application by user in application group\",\n dependsOnMethods = \"testEditApplicationByApplicationOwner\")\n public void testEditApplicationByUserInApplicationGroup() throws ApiException {\n List<ApplicationInfoDTO> user2AllAppsList = restAPIStoreClientUser2.getAllApps().getList();\n ApplicationDTO applicationDTO = restAPIStoreClientUser2.getApplicationById(userOneSharedApplicationId);\n Assert.assertNotNull(applicationDTO);\n Assert.assertEquals(applicationDTO.getName(), SHARED_APPLICATION_NAME);\n\n //Edit application by a user in application group\n HttpResponse serviceResponse = restAPIStoreClientUser2.updateApplicationByID(userOneSharedApplicationId,\n APPLICATION_NAME, \"This app has been edited by user1\",\n APIMIntegrationConstants.APPLICATION_TIER.TEN_PER_MIN, ApplicationDTO.TokenTypeEnum.JWT, groups);\n Assert.assertEquals(serviceResponse.getResponseCode(), HttpStatus.SC_FORBIDDEN);\n }", "public void saveOrUpdate(ActionForm form, HttpServletRequest request) {\n SecurityGroupsForm securityGroupsForm = (SecurityGroupsForm) form;\n ActionMessages errors = new ActionMessages();\n ActionMessages messages = new ActionMessages();\n\n validateForm(securityGroupsForm, errors);\n if (errors.isEmpty()) {\n saveOrUpdate(securityGroupsForm);\n }\n\n if (errors.isEmpty()) {\n messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(\"message.save.success\", \"Security Group\"));\n populateForm(securityGroupsForm);\n populateView(request);\n } else {\n populateView(request);\n }\n saveMessages(request, messages);\n saveErrors(request, errors);\n }", "public void setLookupGroups( String[] groups ) throws RemoteException {\n\t\tStringBuffer l = new StringBuffer();\n\t\tl.append(\"Set lookup groups:\");\n\t\tfor( int i = 0; i< groups.length; ++i ) {\n\t\t\tl.append(\" \"+groups[i] );\n\t\t}\n\t\tlog.log(Level.CONFIG, l.toString() );\n\t\ttry {\n\t\t\tPersistentData data = io.readState();\n\t\t\tdata.groups = groups;\n\t\t\tio.writeState( data );\n\t\t\tdisco.setGroups(data.groups);\n\t\t} catch( ClassNotFoundException ex ) {\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t} catch( IOException ex ) {\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t}\n\t}", "public void setSeasonGroups(final Set<SeasonGroup> value)\r\n\t{\r\n\t\tsetSeasonGroups( getSession().getSessionContext(), value );\r\n\t}", "public List<String> getAuthorizedSeriesSecurityGroups(RoleType role) {\n return findValuesFromAuthorizationData(PROT_ELEM_GENERAL_SERIES,\n PROT_ELEM_SECURITY_GROUP,\n role);\n }", "@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_scienceApp.setGroupId(groupId);\n\t}", "public synchronized void setConnectionArray(List<ServerThread> connectionArray) {\r\n this.connectionArray = connectionArray;\r\n }", "public static void setApplications(long pk, long[] applicationPKs)\n throws com.liferay.portal.kernel.exception.SystemException {\n getPersistence().setApplications(pk, applicationPKs);\n }", "public void setColgroupArray(com.walgreens.rxit.ch.cda.StrucDocColgroup[] colgroupArray)\n {\n synchronized (monitor())\n {\n check_orphaned();\n arraySetterHelper(colgroupArray, COLGROUP$4);\n }\n }", "public void setPolicyTransactions(entity.AppCritPolicyTransaction[] value);", "private static void genSecGroup() {\n\t\tSystem.out.println(\"This Program will generate a security group\");\n\t\tSystem.out.println(\"with the name bitcrusher and ssh ability for\");\n\t\tSystem.out.println(\"your ip address.\");\n\t\ttry{\n\t\t\tCreateSecurityGroupRequest secGrpRequest = new CreateSecurityGroupRequest(\"bitcrusher\", \"Ingress group for AWSTool\");\n\t\t\tCreateSecurityGroupResult res = ec2.createSecurityGroup(secGrpRequest);\n\t\t\tSystem.out.println(\"Group \" + res.getGroupId() + \"created.\");\n\t\t\t\n\t\t}catch(AmazonServiceException ase){\n\t\t\tSystem.out.println(\"Group exists. If needed set permissions with -ip option\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\tString ip = \"0.0.0.0/0\";\n\t\t\n\t\t\n\t\tList<String> ipRanges = Collections.singletonList(ip);\n\t\t\n\t\tIpPermission ipPerm = new IpPermission();\n\t\tipPerm.setFromPort(SSH);\n\t\tipPerm.setToPort(SSH);\n\t\tipPerm.setIpRanges(ipRanges);\n\t\tipPerm.setIpProtocol(\"tcp\");\n\t\t\n\t\tList<IpPermission> ipPermList = Collections.singletonList(ipPerm);\n\t\t\n\t\ttry{\n\t\t\tAuthorizeSecurityGroupIngressRequest ingRequest = \n\t\t\t\t\tnew AuthorizeSecurityGroupIngressRequest(\"bitcrusher\", ipPermList);\n\t\t\tec2.authorizeSecurityGroupIngress(ingRequest);\n\t\t\tSystem.out.println(\"Your ip has been authorized with the bitcrusher group.\");\n\t\t\t\n\t\t}catch(AmazonServiceException e){\n\t\t\tSystem.out.println(\"Ip already authorized\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private void addApplicationsPermissionsToRegistry() throws APIManagementException {\n Registry tenantGovReg = getRegistry();\n String permissionResourcePath = CarbonConstants.UI_PERMISSION_NAME + RegistryConstants.PATH_SEPARATOR + APPLICATION_ROOT_PERMISSION;\n try {\n if (!tenantGovReg.resourceExists(permissionResourcePath)) {\n String loggedInUser = CarbonContext.getThreadLocalCarbonContext().getUsername();\n UserRealm realm = (UserRealm) CarbonContext.getThreadLocalCarbonContext().getUserRealm();\n // Logged in user is not authorized to create the permission.\n // Temporarily change the user to the admin for creating the permission\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(realm.getRealmConfiguration().getAdminUserName());\n tenantGovReg = CarbonContext.getThreadLocalCarbonContext().getRegistry(RegistryType.USER_GOVERNANCE);\n Collection appRootNode = tenantGovReg.newCollection();\n appRootNode.setProperty(\"name\", \"Applications\");\n tenantGovReg.put(permissionResourcePath, appRootNode);\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(loggedInUser);\n }\n } catch (org.wso2.carbon.user.core.UserStoreException e) {\n throw new APIManagementException(\"Error while reading user store information.\", e);\n } catch (org.wso2.carbon.registry.api.RegistryException e) {\n throw new APIManagementException(\"Error while creating new permission in registry\", e);\n }\n }", "public void setSeasonGroups(final SessionContext ctx, final Set<SeasonGroup> value)\r\n\t{\r\n\t\tsetLinkedItems( \r\n\t\t\tctx,\r\n\t\t\ttrue,\r\n\t\t\tSslCoreConstants.Relations.DBS2SEASONGROUPRELATION,\r\n\t\t\tnull,\r\n\t\t\tvalue,\r\n\t\t\tfalse,\r\n\t\t\tfalse,\r\n\t\t\tUtilities.getMarkModifiedOverride(DBS2SEASONGROUPRELATION_MARKMODIFIED)\r\n\t\t);\r\n\t}", "@Test public void modifySecretGroups_success() throws Exception {\n createGroup(\"group8a\");\n createGroup(\"group8b\");\n createGroup(\"group8c\");\n create(CreateSecretRequestV2.builder()\n .name(\"secret8\")\n .content(encoder.encodeToString(\"supa secret8\".getBytes(UTF_8)))\n .groups(\"group8a\", \"group8b\")\n .build());\n\n // Modify secret\n ModifyGroupsRequestV2 request = ModifyGroupsRequestV2.builder()\n .addGroups(\"group8c\", \"non-existent1\")\n .removeGroups(\"group8a\", \"non-existent2\")\n .build();\n List<String> groups = modifyGroups(\"secret8\", request);\n assertThat(groups).containsOnly(\"group8b\", \"group8c\");\n }", "public void setCourses(ArrayList value);", "void setFinancialStatementsGroupArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement[] financialStatementsGroupArray);", "public void setArray(int[] array) {\r\n this.array = array;\r\n }", "private void populateForm(SecurityGroupsForm securityGroupsForm) {\n SecurityGroup group;\n if (IdUtil.isValidId(securityGroupsForm.getGroupId())) {\n group = securityManager.getSecurityGroup(securityGroupsForm.getGroupId());\n } else {\n group = new SecurityGroup();\n }\n\n securityGroupsForm.setGroupId(group.getId());\n securityGroupsForm.setGroupName(group.getName());\n securityGroupsForm.setDescription(group.getDescription());\n\n securityGroupsForm.getAuthorities().clear();\n for (SecurityAuthority authority : securityManager.getAllGrantedAuthorities()) {\n boolean checked = group.getGrantedAuthorities() != null && group.getGrantedAuthorities().contains(authority);\n securityGroupsForm.getAuthorities().add(new SecurityGroupsForm.Authority(authority, checked));\n }\n Collections.sort(securityGroupsForm.getAuthorities());\n }", "public void setSites(Integer[] sites)\n {\n if (sites == null)\n {\n throw new IllegalArgumentException(\"sites must not be null\");\n }\n m_sites = sites;\n }", "public void setSemUnits(ArrayList value);", "public void setSubscribedGroups(ArrayList<String> subscribedGroups) {\n this.subscribedGroups = subscribedGroups;\n }", "public void config(Group[] group) {\n\n }", "void setBusinessIndustryLicensesArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.BusinessIndustryLicense[] businessIndustryLicensesArray);", "public void setRatebooks(entity.ImpactTestingRateBook[] value);", "public void setArray(int[] array) {\r\n\t\tthis.array = array;\r\n\t}", "public void setCsgListValue(YangString csgListValue) throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"csg-list\",\n csgListValue,\n childrenNames());\n }", "void setStreams(StreamDescription[] streamDescriptionList)\n throws IOException, SoapException;", "void setArraySpec(ASTArraySpecNode arraySpecNode)\n {\n if (arraySpecNode != null)\n this.arraySpec = new ArraySpec(arraySpecNode);\n }", "public void setAttributesetarray(String attributesetarray) {\r\n this.attributesetarray = attributesetarray == null ? null : attributesetarray.trim();\r\n }", "private List<OptionBean> populateView(HttpServletRequest request) {\n List<OptionBean> groups = new ArrayList<OptionBean>();\n for (SecurityGroup group : securityManager.getAllGroups()) {\n groups.add(new OptionBean(group.getName(), group.getId()));\n }\n\n Collections.sort(groups);\n request.setAttribute(\"groups\", groups);\n\n return groups;\n }", "void setRoles(Set<String> roles);", "public void setGuiGrouperProvisioningAttributeValues(List<GuiGrouperProvisioningAttributeValue> guiGrouperProvisioningAttributeValues) {\r\n this.guiGrouperProvisioningAttributeValues = guiGrouperProvisioningAttributeValues;\r\n }", "public void setStatusCodes(int sc[])\n {\n this.statusCodes = ((sc != null) && (sc.length > 0))? sc : null;\n }", "public static void getSecurityApplicationsBySpecificApplicationId(\n com.azure.resourcemanager.security.SecurityManager manager) {\n manager\n .securityConnectorApplicationOperations()\n .getWithResponse(\n \"gcpResourceGroup\",\n \"gcpconnector\",\n \"ad9a8e26-29d9-4829-bb30-e597a58cdbb8\",\n com.azure.core.util.Context.NONE);\n }", "public SecRolegroup getNewSecRolegroup();", "@Schema(description = \"Id(s) of user groups that the user belongs to. This provides access to exclusive assets that are hidden to the public. Id's are agreed upon by TO and MP.\")\n \n public List<String> getUserGroups() {\n return userGroups;\n }", "void setCodes(Code[] codes);", "public void setCsgListValue(String csgListValue) throws JNCException {\n setCsgListValue(new YangString(csgListValue));\n }", "protected abstract Set getUserGroups();", "void setStarArray(stars.StarType[] starArray);", "void setFinancialStatementsGroupArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement financialStatementsGroup);", "public void setProcessorConfigs(List<UtteranceProcessorConfig> processorConfigs) {\n this.processorConfigs = processorConfigs;\n }", "public void setSynExpressionGroup(String name, String[] groups) {\r\n\t\t\r\n\t\tif(!synExpressionGroups.containsKey(name)) {\r\n\t\t\tsynExpressionGroups.put(name, groups);\r\n\t\t}\r\n\t\t\r\n\t}", "@Transient\r\n\t@ManyToMany\r\n\t@AccelaQuery(queryClass=\"com.accela.aa.datamanager.service.EmptyQueryImpl\", \r\n\t\tisQl=false, targetEntity=ACASecurityPolicy.class)\r\n\t@XmlElementWrapper(name = \"policySecuritys\")\r\n\t@XmlElement(name = \"policySecurity\")\r\n\tpublic List<ACASecurityModel> getPolicySecurityModels()\r\n\t{\r\n\t\treturn policySecurityModels;\r\n\t}", "void setScansArray(int i, com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints scans);", "public void setCurrentGroups(final Collection<BwGroup> val) {\n currentGroups = val;\n }", "public void setStudentList (Students studentList)\n\n {\n\n // studentList is set equal to studentList.\n this.studentList.add (studentList);\n\n }", "public void setLecturers(ArrayList value);", "@JsonSetter(\"capacityGroupId\")\r\n public void setCapacityGroupId (int value) { \r\n this.capacityGroupId = value;\r\n }", "public void setSupArray(com.walgreens.rxit.ch.cda.StrucDocSup[] supArray)\n {\n synchronized (monitor())\n {\n check_orphaned();\n arraySetterHelper(supArray, SUP$4);\n }\n }", "public final void setApplicationTypes(List<Application.ApplicationType> applicationTypes){\n\t\tJSONArray array = new JSONArray();\n\t\tfor(int i = 0; i < applicationTypes.size(); i++){\n\t\t\tarray.set(i, new JSONString(applicationTypes.get(i).toString().toUpperCase()));\n\t\t}\n\t\tthis.setApplicationTypes(array.getJavaScriptObject());\n\t}", "@JsonProperty(\"statementGroups\")\n public List<WbStatementGroupExpr> getStatementGroups() {\n return Collections.unmodifiableList(statementGroups);\n }", "public String[] getSecureContainerList() throws RemoteException;", "public void setApplications(List<Application> apps)\n {\n _apps.clear();\n\n if (apps != null) {\n _apps.addAll(apps);\n\n for (Application app : _apps) {\n app.setDataSource(this);\n }\n }\n }", "public void unsetCsgListValue() throws JNCException {\n delete(\"csg-list\");\n }", "@ApiModelProperty(value = \"List of access groups that the user should belong to. Effect: The user will be assigned to each group that can be located. If a group does not already exist, it will NOT be created. \")\n public List<String> getAccessGroups() {\n return accessGroups;\n }", "public Set getGroups() { return this.groups; }", "void setRole(String roles);", "public void setStages(ArrayList value);", "public void setSGroupName(String sGroupName) {\n this.sGroupName = sGroupName;\n }", "@JsonProperty(\"ipmiGlobalAggregateTemperatureMarginArray\")\r\n public void setIpmiGlobalAggregateTemperatureMarginArray(List<IpmiGlobalAggregateTemperatureMarginArray> ipmiGlobalAggregateTemperatureMarginArray) {\r\n this.ipmiGlobalAggregateTemperatureMarginArray = ipmiGlobalAggregateTemperatureMarginArray;\r\n }", "public void setRoles(Role a, Role b, Role c){\n roles = new Role[] {a, b, c};\n }", "@JsonProperty(\"ipmiHsbpArray\")\r\n public void setIpmiHsbpArray(List<IpmiHsbpArray> ipmiHsbpArray) {\r\n this.ipmiHsbpArray = ipmiHsbpArray;\r\n }", "public Builder setApiGroups(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureApiGroupsIsMutable();\n apiGroups_.set(index, value);\n onChanged();\n return this;\n }", "public org.ga4gh.models.CallSet.Builder setVariantSetIds(java.util.List<java.lang.String> value) {\n validate(fields()[3], value);\n this.variantSetIds = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public void setInValidGroup(boolean inValidGroup){this.inValidGroup = inValidGroup;}", "void setBusinessIndustryLicensesArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.BusinessIndustryLicense businessIndustryLicenses);", "private void setSewarageApplicationIdgenIds(SewerageConnectionRequest request) {\n\t\tList<String> applicationNumbers = new ArrayList<>();\n\t\tif (request.getSewerageConnection().getApplicationStatus() != null && request.isDisconnectRequest()) {\n\t\t\tapplicationNumbers = getIdList(request.getRequestInfo(),\n\t\t\t\t\trequest.getSewerageConnection().getTenantId(), config.getSewerageDisconnectionIdGenName(),\n\t\t\t\t\tconfig.getSewerageDisconnectionIdGenFormat(), 1);\n\t\t} else {\n\t\t\tapplicationNumbers = getIdList(request.getRequestInfo(),\n\t\t\t\t\trequest.getSewerageConnection().getTenantId(), config.getSewerageApplicationIdGenName(),\n\t\t\t\t\tconfig.getSewerageApplicationIdGenFormat(), 1);\n\t\t}\n\t\tif (CollectionUtils.isEmpty(applicationNumbers) || applicationNumbers.size() != 1) {\n\t\t\tMap<String, String> errorMap = new HashMap<>();\n\t\t\terrorMap.put(\"IDGEN ERROR \",\n\t\t\t\t\t\"The Id of SewerageConnection returned by idgen is not equal to number of SewerageConnection\");\n\t\t\tthrow new CustomException(errorMap);\n\t\t}\n\t\trequest.getSewerageConnection().setApplicationNo(applicationNumbers.listIterator().next());\n\t}", "@Generated(\"Oracle JDeveloper\")\n public static void setPortCredentialProviderList(Map<String, Object> tsRequestContext) \n throws Exception { \n String lsUsername = \"osbusrkey\";\n String lsPassword = \"password1\";\n List<CredentialProvider> laCredList = \n new ArrayList<CredentialProvider>();\n laCredList.add(getUNTCredentialProvider(lsUsername, lsPassword));\n tsRequestContext.put(WSSecurityContext.CREDENTIAL_PROVIDER_LIST, \n laCredList);\n }", "public void setSecurity(Security security)\n {\n __m_Security = security;\n }", "void setTopAvgScorers(UserProfile[] topAvgScorers) {\n this.topAvgScorers = topAvgScorers;\n }", "public void setSizeGroupId(String value) {\n setAttributeInternal(SIZEGROUPID, value);\n }", "public void setSocialSecurityNumber(int value) {\n this.socialSecurityNumber = value;\n }", "public void setCategoryScores(entity.ReviewSummaryCategoryScore[] value);", "@ApiModelProperty(value = \"List of agent groups that the user should be assigned to. Effect: The user will be assigned to each group that already exists. If a particular group is not already in the system it will be created. \")\n public List<String> getAgentGroups() {\n return agentGroups;\n }", "void setTrafficVolumeArray(org.landxml.schema.landXML11.TrafficVolumeDocument.TrafficVolume[] trafficVolumeArray);" ]
[ "0.6756967", "0.62530214", "0.5857713", "0.5817528", "0.52058095", "0.49124518", "0.48068815", "0.47634447", "0.4709885", "0.47090352", "0.4660233", "0.46413702", "0.46258035", "0.45469102", "0.45399493", "0.4526431", "0.45091063", "0.44569024", "0.44083974", "0.43797612", "0.4351639", "0.43265444", "0.43129528", "0.42996353", "0.4299146", "0.42157805", "0.41739914", "0.41642267", "0.41616932", "0.4150065", "0.414679", "0.41357717", "0.4132241", "0.41295025", "0.4110176", "0.41066456", "0.4099779", "0.40865335", "0.408497", "0.4063047", "0.40592277", "0.40435424", "0.40339714", "0.40118894", "0.4011274", "0.40043837", "0.40017384", "0.39901122", "0.3988677", "0.3985818", "0.3976574", "0.39656022", "0.39435494", "0.39399445", "0.39363843", "0.39297026", "0.39277306", "0.39228186", "0.39215162", "0.39151925", "0.3914667", "0.39094257", "0.3906131", "0.39033526", "0.39008948", "0.3898612", "0.38962257", "0.38951972", "0.38933423", "0.38882926", "0.38835686", "0.38750413", "0.38722256", "0.3864863", "0.38407773", "0.3832398", "0.38278311", "0.38236278", "0.38157603", "0.38044465", "0.38037953", "0.38012475", "0.38003227", "0.3794456", "0.37922078", "0.37885943", "0.37871203", "0.37713498", "0.37650838", "0.37610978", "0.37609863", "0.37536952", "0.3753405", "0.37352413", "0.3731328", "0.37262872", "0.37214833", "0.37066033", "0.37025526", "0.36983266" ]
0.6836741
0
Get the loadBalancerBackendAddressPools property: The load balancer backend address pools.
public List<SubResource> loadBalancerBackendAddressPools() { return this.loadBalancerBackendAddressPools; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<SubResource> applicationGatewayBackendAddressPools() {\n return this.applicationGatewayBackendAddressPools;\n }", "public List<LoadBalancerConfiguration> loadBalancerConfigurations() {\n return this.loadBalancerConfigurations;\n }", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withLoadBalancerBackendAddressPools(\n List<SubResource> loadBalancerBackendAddressPools) {\n this.loadBalancerBackendAddressPools = loadBalancerBackendAddressPools;\n return this;\n }", "public SubResource backendAddressPool() {\n return this.backendAddressPool;\n }", "public List<SubResource> loadBalancerInboundNatPools() {\n return this.loadBalancerInboundNatPools;\n }", "public java.util.List<LoadBalancer> getLoadBalancers() {\n if (loadBalancers == null) {\n loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>();\n }\n return loadBalancers;\n }", "public java.util.List<LoadBalancer> getLoadBalancers() {\n if (loadBalancers == null) {\n loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>();\n }\n return loadBalancers;\n }", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withApplicationGatewayBackendAddressPools(\n List<SubResource> applicationGatewayBackendAddressPools) {\n this.applicationGatewayBackendAddressPools = applicationGatewayBackendAddressPools;\n return this;\n }", "@Updatable\n public Set<BackendHttpConfiguration> getBackendHttpConfiguration() {\n if (backendHttpConfiguration == null) {\n backendHttpConfiguration = new HashSet<>();\n }\n\n return backendHttpConfiguration;\n }", "final ConcurrentMap<Object, ManagedConnectionPool> getManagedConnectionPools()\n {\n return mcpPools;\n }", "public com.profitbricks.api.ws.LoadBalancerAlgorithm getLoadBalancerAlgorithm() {\r\n return loadBalancerAlgorithm;\r\n }", "public ApplicationGatewayBackendHttpSettings backendHttpSettings() {\n return this.backendHttpSettings;\n }", "public List<ApplicationGatewayBackendHealthServerInner> servers() {\n return this.servers;\n }", "public LoadBalancingRulePropertiesFormat withBackendAddressPool(SubResource backendAddressPool) {\n this.backendAddressPool = backendAddressPool;\n return this;\n }", "@Updatable\n public Set<Backend> getBackend() {\n if (backend == null) {\n backend = new HashSet<>();\n }\n\n return backend;\n }", "public BackendConfig getBackendConfiguration() {\n return backendConfiguration;\n }", "public java.lang.String getLoadBalancerName() {\r\n return loadBalancerName;\r\n }", "public static Set getAllManagedPools() {\n\t\treturn (SQLConnectionManager.managerByPool == null) ? Collections\n\t\t\t\t.emptySet() : SQLConnectionManager.managerByPool.keySet();\n\t}", "public ArrayList<PoolMap> get_P_maps(){\n\n\t\treturn poolMaps;\n\t}", "public static AABBPool getAABBPool() {\n\t\treturn (AABBPool) theAABBLocalPool.get();\n\t}", "public AbstractLoadBalancer lb() {\n return lb;\n }", "public String getBackendUrl() {\n\t\treturn backendUrl;\n\t}", "public List<AppServiceEnvironmentInner> hostingEnvironments() {\n return this.hostingEnvironments;\n }", "EndpointBalancerConfig getConfig();", "public BoneCP getPool() {\n return pool;\n }", "@Override\n\tpublic final List<Thing42orNull<K, D>> getPoolAsList() {\n\t\treturn this.pool;\n\t}", "public List<DatabaseAccountConnectionString> connectionStrings() {\n return this.connectionStrings;\n }", "@java.lang.Override\n public java.util.List<yandex.cloud.api.ydb.v1.BackupOuterClass.Backup> getBackupsList() {\n return backups_;\n }", "@JSProperty(\"plotBands\")\n @Nullable\n Array<ZAxisPlotBandsOptions> getPlotBands();", "public java.util.List<yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Builder> \n getBackupsBuilderList() {\n return getBackupsFieldBuilder().getBuilderList();\n }", "public AddressSpace vpnClientAddressPool() {\n return this.vpnClientAddressPool;\n }", "public NamePool getNamePool() {\n return config.getNamePool();\n }", "public List<Address> getAllAddresses() throws BackendException;", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo getLoadBalancer() {\n if (loadBalancerBuilder_ == null) {\n if (stepInfoCase_ == 16) {\n return (com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.getDefaultInstance();\n } else {\n if (stepInfoCase_ == 16) {\n return loadBalancerBuilder_.getMessage();\n }\n return com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.getDefaultInstance();\n }\n }", "public void listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getListAzureNodePoolsMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing();", "public com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getListAzureNodePoolsMethod(), getCallOptions(), request);\n }", "Executor getWorkerpool() {\n\t return pool.getWorkerpool();\n\t}", "public ApplicationGatewayBackendHealthServerHealth health() {\n return this.health;\n }", "public List<BrokerStatus> getBrokers()\r\n {\r\n return Collections.unmodifiableList(brokers);\r\n }", "public List<EquivalentAddressGroup> getAddressGroups() {\n List<EquivalentAddressGroup> groups;\n try {\n synchronized (this.lock) {\n groups = this.addressIndex.getGroups();\n }\n this.syncContext.drain();\n return groups;\n } catch (Throwable th) {\n this.syncContext.drain();\n throw th;\n }\n }", "public java.util.List<com.google.analytics.data.v1beta.Cohort.Builder> getCohortsBuilderList() {\n return getCohortsFieldBuilder().getBuilderList();\n }", "public ProxyConfig[] getProxyConfigList();", "public static Set<KubevirtLoadBalancer> getLoadBalancerSetForRouter(KubevirtRouter router,\n KubevirtLoadBalancerService lbService) {\n\n return lbService.loadBalancers().stream()\n .filter(lb -> router.internal().contains(lb.networkId()))\n .collect(Collectors.toSet());\n }", "public Integer backendPort() {\n return this.backendPort;\n }", "public static BoneCP getPool() throws Exception\n {\n if (_pool == null)\n {\n throw new Exception(\"The connection pool was not initialized!\");\n }\n\n return _pool;\n }", "public List<String> getBcs() {\r\n\t\treturn bcs;\r\n\t}", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n listAzureNodePools(com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getListAzureNodePoolsMethod(), getCallOptions()), request);\n }", "public List<String> blobPrefixList() {\n return this.blobPrefixList;\n }", "public Map getESBComponents()\n\t{\t\n\t\tMap endPoints = (Map)cache( \"components\" );\t\t\n\t\t\n\t\tif ( endPoints == null )\n\t\t{\n\t\t\tendPoints = new HashMap();\n\t\t\tCollection names \t= getESBComponentNames();\n\t\t\tIterator iter\t\t= names.iterator();\n\t\t\tString name\t\t\t= null;\n\t\t\t\t\n\t\t\twhile( iter.hasNext() )\n\t\t\t{\n\t\t\t\tname = (String)iter.next();\n\t\t\t\tendPoints.put( name, getESBComponentData( name ) );\n\t\t\t}\n\t\t\t\n\t\t\tcache( \"components\", endPoints );\n\t\t}\n\t\t\n\t\treturn( endPoints );\n\t}", "@Override\n\tpublic synchronized StorageOperationResponse<GetStoragePoolsResponse> getStoragePools(\n\t\t\tGetStoragePoolsRequest request) {\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools: request:\" + request, null);\n\t\tGetStoragePoolsResponse payload = new GetStoragePoolsResponse();\n\t\tArrayList<StoragePool> storagePools = new ArrayList<StoragePool>();\n\t\tList<String> zones = null;\n\t\t BlockLimits blockLimits=openstackClient.getBlockStorageLimits();\n\t\t long totalSpaceGB=blockLimits.getAbsolute().getMaxTotalVolumeGigabytes();\n\t\t long usedSpaceGB=blockLimits.getAbsolute().getTotalGigabytesUsed();\n\t\t \n\t\tif (request.storageSystemId != null) {\n\t\t\tString region = openstackClient.getOpenstackId(request.storageSystemId);\n\t\t\ttry {\n\t\t\t\tzones = openstackClient.listAvailabilityZones(region);\n\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools:\" + e.getMessage(), null,e);\n\t\t\t \treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStoragePoolsResponse.class); \n\t\t\t}\n\t\t\n\t\t\tfor (String zone:zones) {\n\t\t\t\tstoragePools.add(OpenstackAdapterUtil.createStoragePool(zone, region, accountId, totalSpaceGB, usedSpaceGB));\n\t\t\t}\n\t\t\n\t\t} else {\n\t\t if (request.storagePoolIds == null || request.storagePoolIds.isEmpty()) {\n\t\t\t return StorageAdapterImplHelper.createFailedResponse(\"Bad request: both storageSystemId and storagePoolIds are null\", GetStoragePoolsResponse.class); \n\t\t }\n\t\t try {\n \n\t\t\t String zone = null;\n\t\t\t String region = null;\t\t \n\t\t\t for (String poolId:request.storagePoolIds) {\n\t\t\t\tif (poolId == null || poolId.indexOf(':') == -1) {\n\t\t\t\t\tstoragePools.add(null);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tzone = openstackClient.getOpenstackId(poolId);\n\t\t\t\tregion = openstackClient.getRegion(poolId);\n\t\t\t\t if (zone.equals(OpenstackConstants.Openstack_POOL_SNAPSHOTS)) {\n\t\t\t\t\t storagePools.add(OpenstackAdapterUtil.createStoragePool(OpenstackConstants.Openstack_POOL_SNAPSHOTS, region, accountId,totalSpaceGB, usedSpaceGB));\n\t\t\t\t } else {\n\t\t\t\t zones = openstackClient.listAvailabilityZones(region);\n\t\t\t\t if (zones.contains(zone)) {\n\t\t\t\t \tstoragePools.add(OpenstackAdapterUtil.createStoragePool(zone, region, accountId,totalSpaceGB, usedSpaceGB));\t\n\t\t\t\t\t} else {\n\t\t\t\t storagePools.add(null);\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\n\t\t } catch (Exception e) {\n\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools:\" + e.getMessage(), null,e);\n\t\t\treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStoragePoolsResponse.class); \n\t\t }\n\t\t \n\t\t}\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools: pools found: \" + storagePools.size() + \" pools: \" + storagePools , null);\n\t\tpayload.storagePools = storagePools;\n\t\tStorageOperationResponse<GetStoragePoolsResponse> response = new StorageOperationResponse<GetStoragePoolsResponse>(payload);\n\t\tresponse.setPercentCompleted(100);\n\t\tresponse.setStatus(StorageOperationStatus.COMPLETED);\n\t\treturn response;\n\t}", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfoOrBuilder\n getLoadBalancerOrBuilder() {\n if (stepInfoCase_ == 16) {\n return (com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.getDefaultInstance();\n }", "public List<BoundingRegion> getBoundingRegions() {\n return this.boundingRegions;\n }", "public List<Endpoint> getEndpoints()\n\t\t{\n\t\t\treturn endpointsList;\n\t\t}", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfoOrBuilder\n getLoadBalancerOrBuilder() {\n if ((stepInfoCase_ == 16) && (loadBalancerBuilder_ != null)) {\n return loadBalancerBuilder_.getMessageOrBuilder();\n } else {\n if (stepInfoCase_ == 16) {\n return (com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.getDefaultInstance();\n }\n }", "public com.vmware.converter.HostProxySwitchHostLagConfig[] getHostProxySwitchHostLagConfig() {\r\n return hostProxySwitchHostLagConfig;\r\n }", "public List<BossBullet> getBossBullets() {\n\t\treturn bossBullet;\n\t}", "@java.lang.Override\n public java.util.List<? extends yandex.cloud.api.ydb.v1.BackupOuterClass.BackupOrBuilder> \n getBackupsOrBuilderList() {\n return backups_;\n }", "public java.util.List<yandex.cloud.api.ydb.v1.BackupOuterClass.Backup> getBackupsList() {\n if (backupsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(backups_);\n } else {\n return backupsBuilder_.getMessageList();\n }\n }", "public Map<String, Integer> getBungeeServerProtocols() {\n return get(\"bungee-servers\", Map.class, new HashMap<>());\n }", "List<storage_server_connections> getAllForStoragePool(Guid pool);", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo getLoadBalancer() {\n if (stepInfoCase_ == 16) {\n return (com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.getDefaultInstance();\n }", "public String getDatabaseConnectionPoolMaxNumberConnections(){\n \t\treturn getProperty(\"org.sagebionetworks.pool.max.number.connections\");\n \t}", "public com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.Builder\n getLoadBalancerBuilder() {\n return getLoadBalancerFieldBuilder().getBuilder();\n }", "default void listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureNodePoolsMethod(), responseObserver);\n }", "public static List<String[]> getPluginDomains() {\r\n final List<String[]> ret = new ArrayList<String[]>();\r\n // each entry in List<String[]> will result in one PluginForHost, Plugin.getHost() will return String[0]->main domain\r\n ret.add(new String[] { \"brfiles.com\" });\r\n return ret;\r\n }", "String getLbPolicy() {\n return lbPolicy;\n }", "Collection<SSLConfiguration> getLoadedSSLConfigurations() {\n return Set.copyOf(sslContexts.keySet());\n }", "public List<B> getBins() {\n return ImmutableList.copyOf(bins);\n }", "public java.util.List<io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsVirtualDomain.Builder> \n getVirtualDomainsBuilderList() {\n return getVirtualDomainsFieldBuilder().getBuilderList();\n }", "public List<Connection> getConnections() {\n\t\treturn new ArrayList<Connection>(connectionsByUri.values());\n\t}", "List<AdminDomain> getDomains();", "public ArrayList<OsgiBundle> getOsgiBundles() {\n return osgiBundles;\n }", "public java.util.List<yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database.Builder> \n getDatabasesBuilderList() {\n return getDatabasesFieldBuilder().getBuilderList();\n }", "public java.util.List<org.mrk.grpc.catalog.Bundle.Builder> \n getBundlesBuilderList() {\n return getBundlesFieldBuilder().getBuilderList();\n }", "public HostID[] getChunkServers()\n {\n return chunkServers;\n }", "public int getPoolIndex() {\n return poolIndex;\n }", "public int getPoolIndex() {\n return poolIndex;\n }", "public ArrayList getBricks() {\r\n return totalBricks;\r\n }", "public server.SayHello.shandong.ScenicBranchPictureBean[] getBranchPictures() {\n return branchPictures;\n }", "public List<ConnectionHandler> getClientConnections() {\r\n return clientConnections;\r\n }", "public int getPoolSize() {\n return poolSize;\n }", "public java.util.List<org.mrk.grpc.catalog.Bundle> getBundlesList() {\n return bundles_;\n }", "public List<String> blobPathList() {\n return this.blobPathList;\n }", "public String getSbpbs() {\n return sbpbs;\n }", "public Map<String, Object> getBzlGlobals() {\n return bzlGlobals;\n }", "protected ArrayList<Person> getPersonsInPool() {\n return this.personsInPool;\n }", "public FreeClientPool getClientPool()\n\t{\n\t\treturn this.peer.getClientPool();\n\t}", "public java.util.List<? extends yandex.cloud.api.ydb.v1.BackupOuterClass.BackupOrBuilder> \n getBackupsOrBuilderList() {\n if (backupsBuilder_ != null) {\n return backupsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(backups_);\n }\n }", "public ArrayList<Connection> getConnections(){\n\t\treturn manager.getConnectionsWith(this);\n\t}", "protected ClassPool getClassPool() {\r\n return pool;\r\n }", "public PolicyGroup [] getPolicyGroups() {\n return this.PolicyGroups;\n }", "Map<Locality, LocalityLbEndpoints> getLocalityLbEndpointsMap() {\n return Collections.unmodifiableMap(localityLbEndpointsMap);\n }", "Rebalancer<K, V> getRebalancer() {\n return rebalancer.get();\n }", "public final List<Brush> getBrushes() {\n ArrayList<Brush> result = new ArrayList<Brush>(brushMap.values());\n Collections.sort(result);\n return result;\n }", "public ThreadPoolExecutor getForBackgroundTasks() {\n return mForBackgroundTasks;\n }", "public List<Node> bends() {\n return bends;\n }", "public String getBwxs() {\n return bwxs;\n }", "com.google.container.v1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder();", "public Map<String, List<Image>> getBackgroundImages(){\n return backgroundImages;\n }" ]
[ "0.82282376", "0.67892176", "0.677831", "0.6503486", "0.64955246", "0.6376161", "0.6376161", "0.62766427", "0.60353446", "0.5927158", "0.5726213", "0.54560256", "0.53838915", "0.5318606", "0.5283448", "0.52663827", "0.51346403", "0.49701616", "0.49523976", "0.49193016", "0.49088004", "0.48909503", "0.48266178", "0.47707906", "0.4762919", "0.46647483", "0.4656299", "0.4598557", "0.4588024", "0.4545047", "0.45431033", "0.45005235", "0.44838598", "0.446815", "0.44675374", "0.44639605", "0.44623822", "0.44538593", "0.44415292", "0.44383338", "0.44302946", "0.44192362", "0.4404989", "0.44035968", "0.44029444", "0.438903", "0.43857682", "0.43850124", "0.43793422", "0.43788502", "0.43765157", "0.4368622", "0.43661544", "0.4362955", "0.43534327", "0.43502423", "0.43431315", "0.43381697", "0.43353647", "0.43315095", "0.43204707", "0.43035087", "0.42960188", "0.42894238", "0.42885134", "0.4286754", "0.42817625", "0.42791805", "0.42762464", "0.42752075", "0.42620963", "0.42498037", "0.4247905", "0.42473355", "0.4236384", "0.42344052", "0.42328492", "0.42328492", "0.42328307", "0.423158", "0.42170313", "0.4205914", "0.42045325", "0.4200362", "0.41936558", "0.41924903", "0.41913444", "0.41891176", "0.41871706", "0.41849458", "0.41742122", "0.41741917", "0.41712943", "0.41442764", "0.4143722", "0.41436136", "0.4142863", "0.4141184", "0.41408402", "0.41404456" ]
0.88511217
0
Set the loadBalancerBackendAddressPools property: The load balancer backend address pools.
public VirtualMachineScaleSetUpdateIpConfigurationProperties withLoadBalancerBackendAddressPools( List<SubResource> loadBalancerBackendAddressPools) { this.loadBalancerBackendAddressPools = loadBalancerBackendAddressPools; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<SubResource> loadBalancerBackendAddressPools() {\n return this.loadBalancerBackendAddressPools;\n }", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withApplicationGatewayBackendAddressPools(\n List<SubResource> applicationGatewayBackendAddressPools) {\n this.applicationGatewayBackendAddressPools = applicationGatewayBackendAddressPools;\n return this;\n }", "public List<SubResource> applicationGatewayBackendAddressPools() {\n return this.applicationGatewayBackendAddressPools;\n }", "public LoadBalancingRulePropertiesFormat withBackendAddressPool(SubResource backendAddressPool) {\n this.backendAddressPool = backendAddressPool;\n return this;\n }", "public SubResource backendAddressPool() {\n return this.backendAddressPool;\n }", "public void setLoadBalancers(java.util.Collection<LoadBalancer> loadBalancers) {\n if (loadBalancers == null) {\n this.loadBalancers = null;\n return;\n }\n\n this.loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>(loadBalancers);\n }", "public void setLoadBalancers(java.util.Collection<LoadBalancer> loadBalancers) {\n if (loadBalancers == null) {\n this.loadBalancers = null;\n return;\n }\n\n this.loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>(loadBalancers);\n }", "@Updatable\n public Set<BackendHttpConfiguration> getBackendHttpConfiguration() {\n if (backendHttpConfiguration == null) {\n backendHttpConfiguration = new HashSet<>();\n }\n\n return backendHttpConfiguration;\n }", "public List<SubResource> loadBalancerInboundNatPools() {\n return this.loadBalancerInboundNatPools;\n }", "public List<LoadBalancerConfiguration> loadBalancerConfigurations() {\n return this.loadBalancerConfigurations;\n }", "public void listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getListAzureNodePoolsMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "default void listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureNodePoolsMethod(), responseObserver);\n }", "public void setLoadBalancerPolicy(String loadBalancerPolicy) {\n this.loadBalancerPolicy = loadBalancerPolicy;\n }", "final ConcurrentMap<Object, ManagedConnectionPool> getManagedConnectionPools()\n {\n return mcpPools;\n }", "public void setBackendConfiguration(BackendConfig backendConfiguration) {\n this.backendConfiguration = backendConfiguration;\n }", "public static void setConnectionPool(BoneCP connectionPool) {\n\t\tSQLDataBaseConnector.connectionPool = connectionPool;\n\t}", "public ApplicationGatewayBackendHealthHttpSettings withBackendHttpSettings(ApplicationGatewayBackendHttpSettings backendHttpSettings) {\n this.backendHttpSettings = backendHttpSettings;\n return this;\n }", "public void setWorkerpool(Executor workerpool) {\n\t pool.setWorkerpool(workerpool);\n\t}", "@BindAttribute(name = \"backendUrl\")\n\tpublic void setBackendUrl(String backendUrl) {\n\t\tthis.backendUrl = backendUrl;\n\t}", "public ApplicationGatewayBackendHealthHttpSettings withServers(List<ApplicationGatewayBackendHealthServerInner> servers) {\n this.servers = servers;\n return this;\n }", "public void setLoadBalancerAlgorithm(com.profitbricks.api.ws.LoadBalancerAlgorithm loadBalancerAlgorithm) {\r\n this.loadBalancerAlgorithm = loadBalancerAlgorithm;\r\n }", "public ApplicationGatewayBackendHttpSettings backendHttpSettings() {\n return this.backendHttpSettings;\n }", "private void setPersonsInPool(ArrayList<Person> personsInPool) {\n this.personsInPool = personsInPool;\n }", "public java.util.List<LoadBalancer> getLoadBalancers() {\n if (loadBalancers == null) {\n loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>();\n }\n return loadBalancers;\n }", "public java.util.List<LoadBalancer> getLoadBalancers() {\n if (loadBalancers == null) {\n loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>();\n }\n return loadBalancers;\n }", "public void setPolicyGroups(PolicyGroup [] PolicyGroups) {\n this.PolicyGroups = PolicyGroups;\n }", "public void setBranchPictures(server.SayHello.shandong.ScenicBranchPictureBean[] branchPictures) {\n this.branchPictures = branchPictures;\n }", "void bind(WorkerPool workerPool);", "public List<ApplicationGatewayBackendHealthServerInner> servers() {\n return this.servers;\n }", "public void backend (String backend) {\n if (isRunning ())\n throw new IllegalArgumentException (\"Can not change the backend of a running server\");\n\n this.backend = backend;\n }", "public PoolBoneCpManager() {\n pool = null;\n }", "public com.profitbricks.api.ws.LoadBalancerAlgorithm getLoadBalancerAlgorithm() {\r\n return loadBalancerAlgorithm;\r\n }", "public CloudServiceNetworkProfile withLoadBalancerConfigurations(List<LoadBalancerConfiguration> loadBalancerConfigurations) {\n this.loadBalancerConfigurations = loadBalancerConfigurations;\n return this;\n }", "private void readPools(String bucketToFind) throws ConfigurationException {\n // the intent with this method is to encapsulate all of the walking of URIs\n // and populating an internal object model of the configuration to one place\n for (URI baseUri : baseList) {\n try {\n // get and parse the response from the current base uri\n URLConnection baseConnection = urlConnBuilder(null, baseUri);\n String base = readToString(baseConnection);\n if (\"\".equals(base)) {\n getLogger().warn(\"Provided URI \" + baseUri + \" has an empty response... skipping\");\n continue;\n }\n Map<String, Pool> pools = this.configurationParser.parseBase(base);\n\n // check for the default pool name\n if (!pools.containsKey(DEFAULT_POOL_NAME)) {\n getLogger().warn(\"Provided URI \" + baseUri + \" has no default pool... skipping\");\n continue;\n }\n // load pools\n for (Pool pool : pools.values()) {\n URLConnection poolConnection = urlConnBuilder(baseUri, pool.getUri());\n String poolString = readToString(poolConnection);\n configurationParser.loadPool(pool, poolString);\n URLConnection poolBucketsConnection = urlConnBuilder(baseUri, pool.getBucketsUri());\n String sBuckets = readToString(poolBucketsConnection);\n Map<String, Bucket> bucketsForPool = configurationParser.parseBuckets(sBuckets);\n pool.replaceBuckets(bucketsForPool);\n\n }\n // did we find our bucket?\n boolean bucketFound = false;\n for (Pool pool : pools.values()) {\n if (pool.hasBucket(bucketToFind)) {\n bucketFound = true;\n\t\t\tbreak;\n }\n }\n if (bucketFound) {\n for (Pool pool : pools.values()) {\n for (Map.Entry<String, Bucket> bucketEntry : pool.getROBuckets().entrySet()) {\n this.buckets.put(bucketEntry.getKey(), bucketEntry.getValue());\n }\n }\n this.loadedBaseUri = baseUri;\n return;\n }\n } catch (ParseException e) {\n\t\tgetLogger().warn(\"Provided URI \" + baseUri + \" has an unparsable response...skipping\", e);\n\t\tcontinue;\n } catch (IOException e) {\n\t\tgetLogger().warn(\"Connection problems with URI \" + baseUri + \" ...skipping\", e);\n\t\tcontinue;\n }\n\t throw new ConfigurationException(\"Configuration for bucket \" + bucketToFind + \" was not found.\");\n }\n }", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n listAzureNodePools(com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getListAzureNodePoolsMethod(), getCallOptions()), request);\n }", "@Override\n public void batchAdd(List<CmdbIpConfPoolEntity> data) {\n confPoolMapper.batchAdd(data);\n }", "public void deleteBackends(Map<String, Backend> zonesToBackend) throws IOException {\n for (Map.Entry<String, Backend> zoneToBackend : zonesToBackend.entrySet()) {\n String zone = zoneToBackend.getKey();\n Backend backend = zoneToBackend.getValue();\n String instanceGroupUrl = backend.getGroup();\n String instanceGroupName = CloudAPI.getResourceNameFromResourceUrl(instanceGroupUrl);\n log.warn(\"Deleting instance group: \" + instanceGroupName);\n Operation response =\n compute.instanceGroups().delete(project, zone, instanceGroupName).execute();\n operationPoller.waitForOperationCompletion(response);\n log.info(\"Sucessfully deleted instance group: \" + instanceGroupName);\n }\n }", "public static BackendServices newBackendServices(BackendService... backendServices) {\n return new BackendServices(arrayToSet(backendServices), true);\n }", "public com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getListAzureNodePoolsMethod(), getCallOptions(), request);\n }", "@Updatable\n public Set<Backend> getBackend() {\n if (backend == null) {\n backend = new HashSet<>();\n }\n\n return backend;\n }", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withLoadBalancerInboundNatPools(\n List<SubResource> loadBalancerInboundNatPools) {\n this.loadBalancerInboundNatPools = loadBalancerInboundNatPools;\n return this;\n }", "public void setChunkServers(HostID[] chunkServers)\n {\n this.chunkServers = chunkServers;\n }", "public void setHostProxySwitchHostLagConfig(com.vmware.converter.HostProxySwitchHostLagConfig[] hostProxySwitchHostLagConfig) {\r\n this.hostProxySwitchHostLagConfig = hostProxySwitchHostLagConfig;\r\n }", "public void setPoolSize(int aPoolSize) {\n poolSize = aPoolSize;\n }", "protected void configureConnectionPool() {\n JdbcPropertyAdapter adapter = getPropertyAdapter(dbType, properties);\n JdbcConnectionProvider cp = new JdbcConnectionProvider(this.translator, adapter);\n this.connectionPool = new PoolConnectionProvider(cp, this.maxConnectionPoolSize);\n this.transactionProvider = new SimpleTransactionProvider(this.connectionPool);\n }", "public void setPoolPartyRequests(\n final PoolPartyRequest[] thePoolPartyRequests) {\n poolPartyRequests = thePoolPartyRequests;\n }", "public String getBackendUrl() {\n\t\treturn backendUrl;\n\t}", "public void setAngularControllers(List<AngularControllerBase> angularControllers)\n {\n this.angularControllers = angularControllers;\n }", "public void setPushRulesManager(BingRulesManager bingRulesManager) {\n if (isAlive()) {\n mBingRulesManager = bingRulesManager;\n\n mBingRulesManager.loadRules(new SimpleApiCallback<Void>() {\n @Override\n public void onSuccess(Void info) {\n onBingRulesUpdate();\n }\n });\n }\n }", "@Override\n\tpublic synchronized StorageOperationResponse<GetStoragePoolsResponse> getStoragePools(\n\t\t\tGetStoragePoolsRequest request) {\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools: request:\" + request, null);\n\t\tGetStoragePoolsResponse payload = new GetStoragePoolsResponse();\n\t\tArrayList<StoragePool> storagePools = new ArrayList<StoragePool>();\n\t\tList<String> zones = null;\n\t\t BlockLimits blockLimits=openstackClient.getBlockStorageLimits();\n\t\t long totalSpaceGB=blockLimits.getAbsolute().getMaxTotalVolumeGigabytes();\n\t\t long usedSpaceGB=blockLimits.getAbsolute().getTotalGigabytesUsed();\n\t\t \n\t\tif (request.storageSystemId != null) {\n\t\t\tString region = openstackClient.getOpenstackId(request.storageSystemId);\n\t\t\ttry {\n\t\t\t\tzones = openstackClient.listAvailabilityZones(region);\n\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools:\" + e.getMessage(), null,e);\n\t\t\t \treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStoragePoolsResponse.class); \n\t\t\t}\n\t\t\n\t\t\tfor (String zone:zones) {\n\t\t\t\tstoragePools.add(OpenstackAdapterUtil.createStoragePool(zone, region, accountId, totalSpaceGB, usedSpaceGB));\n\t\t\t}\n\t\t\n\t\t} else {\n\t\t if (request.storagePoolIds == null || request.storagePoolIds.isEmpty()) {\n\t\t\t return StorageAdapterImplHelper.createFailedResponse(\"Bad request: both storageSystemId and storagePoolIds are null\", GetStoragePoolsResponse.class); \n\t\t }\n\t\t try {\n \n\t\t\t String zone = null;\n\t\t\t String region = null;\t\t \n\t\t\t for (String poolId:request.storagePoolIds) {\n\t\t\t\tif (poolId == null || poolId.indexOf(':') == -1) {\n\t\t\t\t\tstoragePools.add(null);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tzone = openstackClient.getOpenstackId(poolId);\n\t\t\t\tregion = openstackClient.getRegion(poolId);\n\t\t\t\t if (zone.equals(OpenstackConstants.Openstack_POOL_SNAPSHOTS)) {\n\t\t\t\t\t storagePools.add(OpenstackAdapterUtil.createStoragePool(OpenstackConstants.Openstack_POOL_SNAPSHOTS, region, accountId,totalSpaceGB, usedSpaceGB));\n\t\t\t\t } else {\n\t\t\t\t zones = openstackClient.listAvailabilityZones(region);\n\t\t\t\t if (zones.contains(zone)) {\n\t\t\t\t \tstoragePools.add(OpenstackAdapterUtil.createStoragePool(zone, region, accountId,totalSpaceGB, usedSpaceGB));\t\n\t\t\t\t\t} else {\n\t\t\t\t storagePools.add(null);\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\n\t\t } catch (Exception e) {\n\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools:\" + e.getMessage(), null,e);\n\t\t\treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStoragePoolsResponse.class); \n\t\t }\n\t\t \n\t\t}\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools: pools found: \" + storagePools.size() + \" pools: \" + storagePools , null);\n\t\tpayload.storagePools = storagePools;\n\t\tStorageOperationResponse<GetStoragePoolsResponse> response = new StorageOperationResponse<GetStoragePoolsResponse>(payload);\n\t\tresponse.setPercentCompleted(100);\n\t\tresponse.setStatus(StorageOperationStatus.COMPLETED);\n\t\treturn response;\n\t}", "public void setLoadedBootstrapExtensions(BootstrapExtension...bootstrapExtensions) {\r\n \tthis.loadedBootstrapExtensions = bootstrapExtensions;\r\n }", "@JSProperty(\"plotBands\")\n void setPlotBands(Array<ZAxisPlotBandsOptions> value);", "public void setHosts(List<String> hosts) {\n setProperty(HOSTS, hosts);\n }", "public LoadBalancingRulePropertiesFormat withBackendPort(Integer backendPort) {\n this.backendPort = backendPort;\n return this;\n }", "public synchronized void setHosts(List<VirtualHost> hosts) {\r\n this.hosts.clear();\r\n \r\n if (hosts != null) {\r\n this.hosts.addAll(hosts);\r\n }\r\n }", "public void setBindings(Binding[] binds) {\n this.binds = binds;\n }", "public void setBindings(Binding[] binds) {\n this.binds = binds;\n }", "private void initialisePools() {\r\n Integer[] bigPoolInts = {25, 50, 75, 100};\r\n Integer[] smallPoolInts = {1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10};\r\n bigPool = new ArrayList<Integer>( Arrays.asList(bigPoolInts) );\r\n smallPool = new ArrayList<Integer>(Arrays.asList(smallPoolInts));\r\n //mix them up\r\n Collections.shuffle( bigPool );\r\n Collections.shuffle( smallPool );\r\n }", "public void setSbpbs(String sbpbs) {\n this.sbpbs = sbpbs == null ? null : sbpbs.trim();\n }", "public void setAngularModules(List<AngularModuleBase> angularModules)\n {\n this.angularModules = angularModules;\n }", "private void addThreadPools(Supplier<ThreadPoolExecutor> batchPool,\n Supplier<ThreadPoolExecutor> metaPool) {\n batchPools.add(batchPool);\n metaPools.add(metaPool);\n }", "public static Set getAllManagedPools() {\n\t\treturn (SQLConnectionManager.managerByPool == null) ? Collections\n\t\t\t\t.emptySet() : SQLConnectionManager.managerByPool.keySet();\n\t}", "Future<ListBackendSetsResponse> listBackendSets(\n ListBackendSetsRequest request,\n AsyncHandler<ListBackendSetsRequest, ListBackendSetsResponse> handler);", "public void setBaseUrl(final String baseUrl) {\n this.baseUrl = baseUrl;\n }", "public CreateTaskSetRequest withLoadBalancers(java.util.Collection<LoadBalancer> loadBalancers) {\n setLoadBalancers(loadBalancers);\n return this;\n }", "Future<UpdateBackendSetResponse> updateBackendSet(\n UpdateBackendSetRequest request,\n AsyncHandler<UpdateBackendSetRequest, UpdateBackendSetResponse> handler);", "public void setHttpProxyHost(String host);", "@Test(timeout = 10000L)\n public void testSetLoadBalancerInformation() throws Exception {\n CommonDriverAdminTests.testSetLoadBalancerInformation(client);\n }", "public BackendConfig getBackendConfiguration() {\n return backendConfiguration;\n }", "public void setMaximumPoolSize(int maximumPoolSize) {\n this.maximumPoolSize = maximumPoolSize;\n }", "public void setMaxPoolSize(int maxPoolSize) {\n this.maxPoolSize = maxPoolSize;\n }", "public void setLoadBalancerName(java.lang.String loadBalancerName) {\r\n this.loadBalancerName = loadBalancerName;\r\n }", "public void setBaseUrl(String baseUrl) {\n this.baseUrl = baseUrl;\n }", "public void setEndpoints(String... endpoints) {\n this.endpoints = endpoints;\n }", "void setPoolNumber(int poolNumber);", "public static void setBesState(\n SyncBusinessEntity[] syncBes, int beState)\n {\n if (syncBes != null)\n {\n for (int i=0; i<syncBes.length; i++)\n syncBes[i].getBusinessEntity().setState(beState);\n }\n }", "void setPoolName(java.lang.String poolName);", "public void setFrameworkPackages(final List<FrameworkPackage> frameworkPackages) {\n this.frameworkPackages = frameworkPackages;\n for (final FrameworkPackage frameworkPackage : frameworkPackages) {\n addDependencies(frameworkPackage.getDependenciesList());\n }\n }", "@JsonIgnore\n public boolean isLoadBalancersSet() { return isSet.contains(\"loadBalancers\"); }", "public void setRecursiveResourcePoolsSupported(boolean recursiveResourcePoolsSupported) {\r\n this.recursiveResourcePoolsSupported = recursiveResourcePoolsSupported;\r\n }", "public void addPool(ArrayList al) {\n\tsynchronized (al) {\n\t for (int i = 0; i < al.size(); i++) {\n\t\taddProcessor((TaskProcessorHandle)al.get(i));\n\t }\n\t}\n }", "Future<ListLoadBalancersResponse> listLoadBalancers(\n ListLoadBalancersRequest request,\n AsyncHandler<ListLoadBalancersRequest, ListLoadBalancersResponse> handler);", "@Reference(service = HttpService.class,\n cardinality = ReferenceCardinality.MULTIPLE,\n policy = ReferencePolicy.DYNAMIC,\n bind = \"bindHttpService\", unbind = \"unbindHttpService\")\n protected void bindHttpService(final ServiceReference reference) {\n String[] endpointUrls = toStringArray(reference.getProperty(REG_PROPERTY_ENDPOINTS));\n if ( endpointUrls == null ) {\n endpointUrls = toStringArray(reference.getProperty(REG_PROPERTY_ENDPOINTS_RFC));\n }\n if ( endpointUrls != null ) {\n synchronized ( lock ) {\n this.endpoints.put((Long)reference.getProperty(Constants.SERVICE_ID), endpointUrls);\n }\n }\n }", "@Override\r\n\tpublic boolean hasLoadBalancerSupport() {\n\t\treturn false;\r\n\t}", "public void setBcc(Collection<Address> bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "public HttpServerConfiguration() {\n this.sessionsEnabled = true;\n this.connectors = new ArrayList<HttpConnectorConfiguration>();\n this.sslConnectors = new ArrayList<HttpSslConnectorConfiguration>();\n this.minThreads = 5;\n this.maxThreads = 50;\n }", "public void setHosts(final List<String> hosts) {\n\t\tthis.hosts = hosts;\n\t}", "public Mono<PoolCollection> getPools(Integer limit, Integer offset) throws WebClientResponseException {\n Object postBody = null;\n // create path and map variables\n final Map<String, Object> pathParams = new HashMap<String, Object>();\n\n final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();\n final HttpHeaders headerParams = new HttpHeaders();\n final MultiValueMap<String, String> cookieParams = new LinkedMultiValueMap<String, String>();\n final MultiValueMap<String, Object> formParams = new LinkedMultiValueMap<String, Object>();\n\n queryParams.putAll(apiClient.parameterToMultiValueMap(null, \"limit\", limit));\n queryParams.putAll(apiClient.parameterToMultiValueMap(null, \"offset\", offset));\n\n final String[] localVarAccepts = { \n \"application/json\"\n };\n final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n final String[] localVarContentTypes = { };\n final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n\n String[] localVarAuthNames = new String[] { };\n\n ParameterizedTypeReference<PoolCollection> localVarReturnType = new ParameterizedTypeReference<PoolCollection>() {};\n return apiClient.invokeAPI(\"/pools\", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);\n }", "private void setConfigNumMaxBgJobs(int value) {\n this.bitField0_ |= 2;\n this.configNumMaxBgJobs_ = value;\n }", "private void updateBridgesList() {\n\n netBridgesPanel.removeAll();\n\n netManager.getAvailableNetworkBridges().entrySet().forEach(ab -> {\n netBridgesPanel.add(new BridgePanel(netManager, ab.getKey(), ab.getValue()));\n });\n\n netBridgesPanel.revalidate();\n netBridgesPanel.repaint();\n }", "public Builder urls(List<URI> urls) {\n if (CollectionUtils.isNotEmpty(urls)) {\n this.servers = Collections.unmodifiableList(urls);\n }\n return this;\n }", "public native final void setUrls(JsArrayString urls)/*-{\n this.urls = urls;\n }-*/;", "public void setDrivers(PriorityBlockingQueue<Driver> drivers) {\n this.drivers = drivers;\n }", "public void addPoolMap(PoolMap poolMap){\n\n\t\tpoolMaps.add(poolMap);\n\t}", "public Builder setLoadBalancer(\n com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.Builder builderForValue) {\n if (loadBalancerBuilder_ == null) {\n stepInfo_ = builderForValue.build();\n onChanged();\n } else {\n loadBalancerBuilder_.setMessage(builderForValue.build());\n }\n stepInfoCase_ = 16;\n return this;\n }", "@ZAttr(id=97)\n public Map<String,Object> setSmtpHostname(String[] zimbraSmtpHostname, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraSmtpHostname, zimbraSmtpHostname);\n return attrs;\n }", "public java.lang.String getLoadBalancerName() {\r\n return loadBalancerName;\r\n }", "@Override\n\tpublic void setConnectionPoolSize(int arg0) {\n\n\t}", "@ZAttr(id=97)\n public void setSmtpHostname(String[] zimbraSmtpHostname) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraSmtpHostname, zimbraSmtpHostname);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setBandwidthBand(List<Double> bandwidthBand) {\n this.bandwidthBand = bandwidthBand;\n }" ]
[ "0.7519155", "0.701474", "0.68140095", "0.5518795", "0.53208685", "0.5187719", "0.5187719", "0.50504434", "0.49763614", "0.49019727", "0.4780005", "0.47765923", "0.4772279", "0.474529", "0.47101465", "0.4682306", "0.46792114", "0.46610463", "0.46049038", "0.4599004", "0.45671663", "0.4531611", "0.44210368", "0.43502015", "0.43502015", "0.43247628", "0.43102157", "0.43091905", "0.4245914", "0.4236761", "0.42344153", "0.42303845", "0.42269757", "0.42114902", "0.41938925", "0.41810742", "0.41700077", "0.4162656", "0.4160992", "0.4158536", "0.41192082", "0.41080368", "0.41014874", "0.40740076", "0.40673643", "0.40364185", "0.4030563", "0.40297318", "0.40162164", "0.40027657", "0.39949864", "0.39882144", "0.39880964", "0.39424464", "0.3938349", "0.3903116", "0.3903116", "0.3898883", "0.38818935", "0.38807702", "0.38744453", "0.38642362", "0.3854986", "0.3851138", "0.38508272", "0.38451517", "0.38423964", "0.38384637", "0.38250503", "0.38180682", "0.38159987", "0.38153437", "0.38146135", "0.37996876", "0.37939507", "0.37925595", "0.37920934", "0.37918213", "0.37889916", "0.37868592", "0.3784063", "0.37832314", "0.37723458", "0.37612587", "0.37528536", "0.37490502", "0.37468594", "0.37464756", "0.3743536", "0.37347603", "0.37191364", "0.37157363", "0.37129954", "0.37128505", "0.3703875", "0.37013957", "0.36976507", "0.3694241", "0.36842394", "0.36795184" ]
0.75398403
0
Get the loadBalancerInboundNatPools property: The load balancer inbound nat pools.
public List<SubResource> loadBalancerInboundNatPools() { return this.loadBalancerInboundNatPools; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VirtualMachineScaleSetUpdateIpConfigurationProperties withLoadBalancerInboundNatPools(\n List<SubResource> loadBalancerInboundNatPools) {\n this.loadBalancerInboundNatPools = loadBalancerInboundNatPools;\n return this;\n }", "public List<InboundIpRule> inboundIpRules() {\n return this.inboundIpRules;\n }", "public List<SubResource> loadBalancerBackendAddressPools() {\n return this.loadBalancerBackendAddressPools;\n }", "public List<LoadBalancerConfiguration> loadBalancerConfigurations() {\n return this.loadBalancerConfigurations;\n }", "public java.util.List<LoadBalancer> getLoadBalancers() {\n if (loadBalancers == null) {\n loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>();\n }\n return loadBalancers;\n }", "public java.util.List<LoadBalancer> getLoadBalancers() {\n if (loadBalancers == null) {\n loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>();\n }\n return loadBalancers;\n }", "public DomainInner withInboundIpRules(List<InboundIpRule> inboundIpRules) {\n this.inboundIpRules = inboundIpRules;\n return this;\n }", "List<InboundNatRulePortMapping> inboundNatRulePortMappings();", "public List<SubResource> applicationGatewayBackendAddressPools() {\n return this.applicationGatewayBackendAddressPools;\n }", "public String getDatabaseConnectionPoolMinNumberConnections(){\n \t\treturn getProperty(\"org.sagebionetworks.pool.min.number.connections\");\n \t}", "public Integer getInlinkCount() {\r\n\t\treturn inlinks.size();\r\n\t}", "public Integer getIngressThreshold() {\n return ingressThreshold;\n }", "public Integer getInboundIid() {\n return inboundIid;\n }", "String getLbPolicy() {\n return lbPolicy;\n }", "final ConcurrentMap<Object, ManagedConnectionPool> getManagedConnectionPools()\n {\n return mcpPools;\n }", "public int getMinConnections() {\n return minConnections;\n }", "public ArrayList<String> getInlinks() {\r\n\t\treturn inlinks;\r\n\t}", "com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing();", "public SortedSet<WIpLink> getIncomingIpLinks () { return n.getIncomingLinks(getNet().getIpLayer().getNe()).stream().map(ee->new WIpLink(ee)).filter(e->!e.isVirtualLink()).collect(Collectors.toCollection(TreeSet::new)); }", "public int getMinPoolSize() {\n return minPoolSize;\n }", "protected ArrayList<Person> getPersonsInPool() {\n return this.personsInPool;\n }", "public NatGatewayAddress [] getPublicIpAddressSet() {\n return this.PublicIpAddressSet;\n }", "public ArrayList<Integer> getConnections() {\n\t\treturn connections;\n\t}", "public List<MhsmipRule> ipRules() {\n return this.ipRules;\n }", "boolean hasHttpLoadBalancing();", "public boolean isInbound() {\n return inbound;\n }", "@Override\n public int getNumIdle() {\n return _pool.size();\n }", "public com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getListAzureNodePoolsMethod(), getCallOptions(), request);\n }", "int getMinPoolSize();", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n listAzureNodePools(com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getListAzureNodePoolsMethod(), getCallOptions()), request);\n }", "public AbstractLoadBalancer lb() {\n return lb;\n }", "Collection<TcpIpConnection> getConnections();", "public Number getBlncRolls() {\n return (Number)getAttributeInternal(BLNCROLLS);\n }", "Collection<TcpIpConnection> getActiveConnections();", "public JwComparator<AcAirportProgressSummaryVo> getLoadItemCountComparatorNullsLower()\n {\n return LoadItemCountComparatorNullsLower;\n }", "public Long getLbId() {\n return lbId;\n }", "public java.lang.String getLoadBalancerName() {\r\n return loadBalancerName;\r\n }", "public int getMinLoad() {\n\n\t\treturn this.minLoad;\n\t}", "public void setInboundIid(Integer inboundIid) {\n this.inboundIid = inboundIid;\n }", "public com.profitbricks.api.ws.LoadBalancerAlgorithm getLoadBalancerAlgorithm() {\r\n return loadBalancerAlgorithm;\r\n }", "java.util.List<Integer> getSrcIdList();", "public int getNumLanes() {\n\t\treturn numLanes;\n\t}", "public int[][] getPoolingParameters() {\n return this.poolingParams;\n }", "public static ArrayList<Grid> getGrids() {\n\n return grids;\n }", "@Column(name = \"laps\", nullable = false, columnDefinition = \"int(11) default '0'\")\r\n public Integer getLaps() {\r\n return laps;\r\n }", "public int getNetworksCount() {\n return networks_.size();\n }", "public ArrayList<PoolMap> get_P_maps(){\n\n\t\treturn poolMaps;\n\t}", "@JsonProperty(PROP_SRC_IPS)\n public IpSpace getSrcIps() {\n return _srcIps;\n }", "@Updatable\n public List<String> getInclusionPrefixes() {\n if (inclusionPrefixes == null) {\n inclusionPrefixes = new ArrayList<>();\n }\n\n return inclusionPrefixes;\n }", "public List<arc> getIncomingLinks() {\r\n\t\treturn incoming;\r\n\t}", "public static Set getAllManagedPools() {\n\t\treturn (SQLConnectionManager.managerByPool == null) ? Collections\n\t\t\t\t.emptySet() : SQLConnectionManager.managerByPool.keySet();\n\t}", "public SECSItemNumLengthBytes getInboundNumberOfLengthBytes()\n {\n return inboundNumberOfLengthBytes;\n }", "public String getLb() {\n return lb;\n }", "public int getNumberInboundStops(){\n\t \treturn 0;\n\t \t\n\t }", "public SourceIpTranslationNatRule [] getSourceIpTranslationNatRuleSet() {\n return this.SourceIpTranslationNatRuleSet;\n }", "public Set<Integer> getHttpStatusCodesToRetry() {\r\n return configuration.getHttpStatusCodesToRetry();\r\n }", "public ArrayList<Integer> getConnections() {\n\t\tArrayList<Integer> connections = new ArrayList<Integer>();\n\t\tfor (Link l : links) {\n\t\t\tconnections.add(l.getDestination());\n\t\t}\n\t\treturn connections;\n\n\t}", "public int getIPCount() {\n return this.numberOfIPs;\n }", "public java.util.List<Integer>\n getSrcIdList() {\n return srcId_;\n }", "public int getInIp() {\n return inIp_;\n }", "public int getInIp() {\n return inIp_;\n }", "public List getSourceConnections() {\n return new ArrayList(sourceConnections);\n }", "public int getMinPSMs() {\n\t\treturn minPSMs;\n\t}", "public PoolPartyRequest[] getPoolPartyRequests() {\n return poolPartyRequests;\n }", "public int getNetworkIntervalSteps() {\n return networkIntervalSteps;\n }", "public static Set<KubevirtLoadBalancer> getLoadBalancerSetForRouter(KubevirtRouter router,\n KubevirtLoadBalancerService lbService) {\n\n return lbService.loadBalancers().stream()\n .filter(lb -> router.internal().contains(lb.networkId()))\n .collect(Collectors.toSet());\n }", "public String getInsipaddr() {\r\n return insipaddr;\r\n }", "Collection<SSLConfiguration> getLoadedSSLConfigurations() {\n return Set.copyOf(sslContexts.keySet());\n }", "com.google.container.v1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder();", "public List<OnlineObject> getOnlineObjects() {\n\t\tsynchronized (this.onlineObjects) {\n\t\t\treturn getOnlineObjects(this.onlineObjects.size());\n\t\t}\n\t}", "public int getMinInstances() {\n return minInstances;\n }", "public java.util.List<SimulationAppPortMapping> getIngressPortMappings() {\n return ingressPortMappings;\n }", "public List<B> getBins() {\n return ImmutableList.copyOf(bins);\n }", "public List<ConnectionHandler> getClientConnections() {\r\n return clientConnections;\r\n }", "public PolicyGroup [] getPolicyGroups() {\n return this.PolicyGroups;\n }", "public ArrayList<Integer> getNeighbors() {\n\t\treturn neighbors;\n\t}", "public static int getNumberCreated() {\n return numberOfPools;\n }", "public int getBinCapacityLeft() {\n return binCapacityHeight - getBinCapicityFilled();\n }", "List<String> getBins(String iisn);", "public Integer getMinProperties() {\n\t\treturn minProperties;\n\t}", "public ArrayList<RibbonNode> getRibbonNodes(int minX, int maxX,\n int zoomLevel, boolean isMiniMap) { \t\n \tArrayList<RibbonNode> result = ribbonController.getRibbonNodes(\n \t\t\tminX, maxX, zoomLevel, isMiniMap); \n return result;\n }", "@MetadataValueMatcher(metadataValue=20)\n\tpublic List<String> getIsbns() {\n\t\treturn isbns;\n\t}", "public ArrayList<Network> getMyNetworks() {\n\t\treturn myNetworks;\n\t}", "public int[] getInitialNodes() {\n return IntStream.range(0, links.length)\n .filter(i -> getPreviousNodes(i).length == 0)\n .toArray();\n }", "public int getLNSRequestId() {\n return LNSRequestId;\n }", "public List<NetworkInterfaceInner> networkInterfaces() {\n return this.networkInterfaces;\n }", "public int getNetworksCount() {\n if (networksBuilder_ == null) {\n return networks_.size();\n } else {\n return networksBuilder_.getCount();\n }\n }", "public String [] getIpList() {\n return this.IpList;\n }", "@Override\n\tpublic synchronized StorageOperationResponse<GetStoragePoolsResponse> getStoragePools(\n\t\t\tGetStoragePoolsRequest request) {\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools: request:\" + request, null);\n\t\tGetStoragePoolsResponse payload = new GetStoragePoolsResponse();\n\t\tArrayList<StoragePool> storagePools = new ArrayList<StoragePool>();\n\t\tList<String> zones = null;\n\t\t BlockLimits blockLimits=openstackClient.getBlockStorageLimits();\n\t\t long totalSpaceGB=blockLimits.getAbsolute().getMaxTotalVolumeGigabytes();\n\t\t long usedSpaceGB=blockLimits.getAbsolute().getTotalGigabytesUsed();\n\t\t \n\t\tif (request.storageSystemId != null) {\n\t\t\tString region = openstackClient.getOpenstackId(request.storageSystemId);\n\t\t\ttry {\n\t\t\t\tzones = openstackClient.listAvailabilityZones(region);\n\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools:\" + e.getMessage(), null,e);\n\t\t\t \treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStoragePoolsResponse.class); \n\t\t\t}\n\t\t\n\t\t\tfor (String zone:zones) {\n\t\t\t\tstoragePools.add(OpenstackAdapterUtil.createStoragePool(zone, region, accountId, totalSpaceGB, usedSpaceGB));\n\t\t\t}\n\t\t\n\t\t} else {\n\t\t if (request.storagePoolIds == null || request.storagePoolIds.isEmpty()) {\n\t\t\t return StorageAdapterImplHelper.createFailedResponse(\"Bad request: both storageSystemId and storagePoolIds are null\", GetStoragePoolsResponse.class); \n\t\t }\n\t\t try {\n \n\t\t\t String zone = null;\n\t\t\t String region = null;\t\t \n\t\t\t for (String poolId:request.storagePoolIds) {\n\t\t\t\tif (poolId == null || poolId.indexOf(':') == -1) {\n\t\t\t\t\tstoragePools.add(null);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tzone = openstackClient.getOpenstackId(poolId);\n\t\t\t\tregion = openstackClient.getRegion(poolId);\n\t\t\t\t if (zone.equals(OpenstackConstants.Openstack_POOL_SNAPSHOTS)) {\n\t\t\t\t\t storagePools.add(OpenstackAdapterUtil.createStoragePool(OpenstackConstants.Openstack_POOL_SNAPSHOTS, region, accountId,totalSpaceGB, usedSpaceGB));\n\t\t\t\t } else {\n\t\t\t\t zones = openstackClient.listAvailabilityZones(region);\n\t\t\t\t if (zones.contains(zone)) {\n\t\t\t\t \tstoragePools.add(OpenstackAdapterUtil.createStoragePool(zone, region, accountId,totalSpaceGB, usedSpaceGB));\t\n\t\t\t\t\t} else {\n\t\t\t\t storagePools.add(null);\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\n\t\t } catch (Exception e) {\n\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools:\" + e.getMessage(), null,e);\n\t\t\treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStoragePoolsResponse.class); \n\t\t }\n\t\t \n\t\t}\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools: pools found: \" + storagePools.size() + \" pools: \" + storagePools , null);\n\t\tpayload.storagePools = storagePools;\n\t\tStorageOperationResponse<GetStoragePoolsResponse> response = new StorageOperationResponse<GetStoragePoolsResponse>(payload);\n\t\tresponse.setPercentCompleted(100);\n\t\tresponse.setStatus(StorageOperationStatus.COMPLETED);\n\t\treturn response;\n\t}", "InConnection getInbound() throws IOException, WsConfigurationException;", "ArrayList<Integer> getWhiteboards(){\n return whiteboards;\n }", "public void listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getListAzureNodePoolsMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "public String [] getPublicIpAddresses() {\n return this.PublicIpAddresses;\n }", "public String workloadIdentityPoolId() {\n return this.workloadIdentityPoolId;\n }", "public ArrayList<Integer> getWinners() {\n return this.winners;\n }", "public int getLowerBound() {\r\n return lowerBound;\r\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo getLoadBalancer() {\n if (loadBalancerBuilder_ == null) {\n if (stepInfoCase_ == 16) {\n return (com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.getDefaultInstance();\n } else {\n if (stepInfoCase_ == 16) {\n return loadBalancerBuilder_.getMessage();\n }\n return com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.getDefaultInstance();\n }\n }", "public int getNumMinesLeft() {\n return numMinesLeft;\n }", "public java.util.List<NetworkInterface> getNetworkInterfaces() {\n return networkInterfaces;\n }", "public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}" ]
[ "0.67636406", "0.5819022", "0.5623608", "0.55612093", "0.5090921", "0.5090921", "0.48300853", "0.48269176", "0.4824993", "0.47700948", "0.4730515", "0.47075418", "0.4681029", "0.46199256", "0.45846343", "0.45680764", "0.4508551", "0.4453001", "0.44396135", "0.43715024", "0.43470615", "0.4337252", "0.42977", "0.42894056", "0.4257257", "0.4239864", "0.42389518", "0.42358232", "0.42179683", "0.41919225", "0.41885763", "0.41833782", "0.41827795", "0.41823503", "0.41614473", "0.4153719", "0.4151945", "0.41508958", "0.41462103", "0.41454503", "0.41147724", "0.4111843", "0.4108944", "0.41015935", "0.4096684", "0.4093773", "0.40911865", "0.4090168", "0.40865085", "0.40815985", "0.4077625", "0.4069075", "0.40538707", "0.4042972", "0.40425178", "0.40407", "0.4030298", "0.40288946", "0.4027825", "0.40258592", "0.40258592", "0.40240744", "0.40117267", "0.40051633", "0.4000981", "0.39995643", "0.39984518", "0.39802697", "0.39751413", "0.3973393", "0.39689386", "0.39657208", "0.3961233", "0.39562", "0.39549914", "0.39518404", "0.39446482", "0.39385015", "0.3926932", "0.3923478", "0.39203787", "0.39197075", "0.39176202", "0.39167514", "0.39145175", "0.39127854", "0.39090008", "0.39085427", "0.39076293", "0.39000803", "0.3898682", "0.38969564", "0.38968337", "0.38937464", "0.38933972", "0.3893146", "0.38896218", "0.38875175", "0.3886791", "0.38815495" ]
0.8393503
0
Set the loadBalancerInboundNatPools property: The load balancer inbound nat pools.
public VirtualMachineScaleSetUpdateIpConfigurationProperties withLoadBalancerInboundNatPools( List<SubResource> loadBalancerInboundNatPools) { this.loadBalancerInboundNatPools = loadBalancerInboundNatPools; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<SubResource> loadBalancerInboundNatPools() {\n return this.loadBalancerInboundNatPools;\n }", "public DomainInner withInboundIpRules(List<InboundIpRule> inboundIpRules) {\n this.inboundIpRules = inboundIpRules;\n return this;\n }", "private void setPersonsInPool(ArrayList<Person> personsInPool) {\n this.personsInPool = personsInPool;\n }", "public List<SubResource> loadBalancerBackendAddressPools() {\n return this.loadBalancerBackendAddressPools;\n }", "public void setLoadBalancerPolicy(String loadBalancerPolicy) {\n this.loadBalancerPolicy = loadBalancerPolicy;\n }", "default void listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureNodePoolsMethod(), responseObserver);\n }", "public void setMinConnections(int minConnections) {\n this.minConnections = minConnections;\n saveProperties();\n }", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withLoadBalancerBackendAddressPools(\n List<SubResource> loadBalancerBackendAddressPools) {\n this.loadBalancerBackendAddressPools = loadBalancerBackendAddressPools;\n return this;\n }", "public void listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getListAzureNodePoolsMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "public void setMinPoolSize(int minPoolSize) {\n this.minPoolSize = minPoolSize;\n }", "public void setLoadBalancers(java.util.Collection<LoadBalancer> loadBalancers) {\n if (loadBalancers == null) {\n this.loadBalancers = null;\n return;\n }\n\n this.loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>(loadBalancers);\n }", "public void setLoadBalancers(java.util.Collection<LoadBalancer> loadBalancers) {\n if (loadBalancers == null) {\n this.loadBalancers = null;\n return;\n }\n\n this.loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>(loadBalancers);\n }", "private void initialisePools() {\r\n Integer[] bigPoolInts = {25, 50, 75, 100};\r\n Integer[] smallPoolInts = {1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10};\r\n bigPool = new ArrayList<Integer>( Arrays.asList(bigPoolInts) );\r\n smallPool = new ArrayList<Integer>(Arrays.asList(smallPoolInts));\r\n //mix them up\r\n Collections.shuffle( bigPool );\r\n Collections.shuffle( smallPool );\r\n }", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n listAzureNodePools(com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getListAzureNodePoolsMethod(), getCallOptions()), request);\n }", "public void setPublicIpAddressSet(NatGatewayAddress [] PublicIpAddressSet) {\n this.PublicIpAddressSet = PublicIpAddressSet;\n }", "public com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getListAzureNodePoolsMethod(), getCallOptions(), request);\n }", "public void setInboundIid(Integer inboundIid) {\n this.inboundIid = inboundIid;\n }", "public List<InboundIpRule> inboundIpRules() {\n return this.inboundIpRules;\n }", "void setPoolNumber(int poolNumber);", "public void setPoolPartyRequests(\n final PoolPartyRequest[] thePoolPartyRequests) {\n poolPartyRequests = thePoolPartyRequests;\n }", "protected void initializePools(Class threadClass, int totalPoolSize) throws IllegalClassException, IllegalAccessException, InstantiationException{\n\n\tif(threadClass != null && !(Runnable.class.isAssignableFrom(threadClass)))throw new IllegalClassException();\n\telse{\n\n\t this.threadClass=threadClass;\n\t this.totalPoolSize=totalPoolSize;\n\n\t activePool=new ActivePool(threadClass);\n\t passivePool=new PassivePool(threadClass);\n\n\t for(int i=0;i<totalPoolSize;i++){\n\n\t\ttempThreadCapsule=new ThreadCapsule(threadClass);\n\t\ttempThreadCapsule.setActivePool(activePool);\n\t\ttempThreadCapsule.setPassivePool(passivePool);\n\t\tpassivePool.push(tempThreadCapsule);\n\n\t\tactivePoolSize=activePool.getPresentSize();\n\t\tpassivePoolSize=passivePool.getPresentSize();\n\n\t }//for closing\n\n\t}//else closing\n\n }", "public void setInsipaddr(String insipaddr) {\r\n this.insipaddr = insipaddr;\r\n }", "public InitialConfiguration inbound(Boolean inbound) {\n this.inbound = inbound;\n return this;\n }", "public void setPoolSize(int aPoolSize) {\n poolSize = aPoolSize;\n }", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withApplicationGatewayBackendAddressPools(\n List<SubResource> applicationGatewayBackendAddressPools) {\n this.applicationGatewayBackendAddressPools = applicationGatewayBackendAddressPools;\n return this;\n }", "public void setIngressThreshold(Integer ingressThreshold) {\n this.ingressThreshold = ingressThreshold;\n }", "public List<LoadBalancerConfiguration> loadBalancerConfigurations() {\n return this.loadBalancerConfigurations;\n }", "public void addPool(ArrayList al) {\n\tsynchronized (al) {\n\t for (int i = 0; i < al.size(); i++) {\n\t\taddProcessor((TaskProcessorHandle)al.get(i));\n\t }\n\t}\n }", "public void setMinTrials(int minTrials) {\n this.minTrials = minTrials;\n }", "public List<SubResource> applicationGatewayBackendAddressPools() {\n return this.applicationGatewayBackendAddressPools;\n }", "private void addDefaultMonitoredPools() {\n\t\tfor (MemoryPoolMXBean pool : ManagementFactory.getMemoryPoolMXBeans()) {\n\t\t\tif (pool.isUsageThresholdSupported()) {\n\t\t\t\tmonitoredPools.add(pool);\n\t\t\t\tif (CoreMoSyncPlugin.getDefault().isDebugging()) {\n\t\t\t\t\tCoreMoSyncPlugin.trace(\"Monitoring memory pool {0}\", pool.getName());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setNumOfWalls(Integer numOfWalls) {\n this.numOfWalls = numOfWalls;\n }", "void setPoolRaces(int poolRaces);", "public void setSourceIpTranslationNatRuleSet(SourceIpTranslationNatRule [] SourceIpTranslationNatRuleSet) {\n this.SourceIpTranslationNatRuleSet = SourceIpTranslationNatRuleSet;\n }", "public void setLowerBound(final int lowerBound) {\r\n this.lowerBound = lowerBound;\r\n }", "@Override\n\tpublic synchronized StorageOperationResponse<GetStoragePoolsResponse> getStoragePools(\n\t\t\tGetStoragePoolsRequest request) {\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools: request:\" + request, null);\n\t\tGetStoragePoolsResponse payload = new GetStoragePoolsResponse();\n\t\tArrayList<StoragePool> storagePools = new ArrayList<StoragePool>();\n\t\tList<String> zones = null;\n\t\t BlockLimits blockLimits=openstackClient.getBlockStorageLimits();\n\t\t long totalSpaceGB=blockLimits.getAbsolute().getMaxTotalVolumeGigabytes();\n\t\t long usedSpaceGB=blockLimits.getAbsolute().getTotalGigabytesUsed();\n\t\t \n\t\tif (request.storageSystemId != null) {\n\t\t\tString region = openstackClient.getOpenstackId(request.storageSystemId);\n\t\t\ttry {\n\t\t\t\tzones = openstackClient.listAvailabilityZones(region);\n\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools:\" + e.getMessage(), null,e);\n\t\t\t \treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStoragePoolsResponse.class); \n\t\t\t}\n\t\t\n\t\t\tfor (String zone:zones) {\n\t\t\t\tstoragePools.add(OpenstackAdapterUtil.createStoragePool(zone, region, accountId, totalSpaceGB, usedSpaceGB));\n\t\t\t}\n\t\t\n\t\t} else {\n\t\t if (request.storagePoolIds == null || request.storagePoolIds.isEmpty()) {\n\t\t\t return StorageAdapterImplHelper.createFailedResponse(\"Bad request: both storageSystemId and storagePoolIds are null\", GetStoragePoolsResponse.class); \n\t\t }\n\t\t try {\n \n\t\t\t String zone = null;\n\t\t\t String region = null;\t\t \n\t\t\t for (String poolId:request.storagePoolIds) {\n\t\t\t\tif (poolId == null || poolId.indexOf(':') == -1) {\n\t\t\t\t\tstoragePools.add(null);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tzone = openstackClient.getOpenstackId(poolId);\n\t\t\t\tregion = openstackClient.getRegion(poolId);\n\t\t\t\t if (zone.equals(OpenstackConstants.Openstack_POOL_SNAPSHOTS)) {\n\t\t\t\t\t storagePools.add(OpenstackAdapterUtil.createStoragePool(OpenstackConstants.Openstack_POOL_SNAPSHOTS, region, accountId,totalSpaceGB, usedSpaceGB));\n\t\t\t\t } else {\n\t\t\t\t zones = openstackClient.listAvailabilityZones(region);\n\t\t\t\t if (zones.contains(zone)) {\n\t\t\t\t \tstoragePools.add(OpenstackAdapterUtil.createStoragePool(zone, region, accountId,totalSpaceGB, usedSpaceGB));\t\n\t\t\t\t\t} else {\n\t\t\t\t storagePools.add(null);\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\n\t\t } catch (Exception e) {\n\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools:\" + e.getMessage(), null,e);\n\t\t\treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStoragePoolsResponse.class); \n\t\t }\n\t\t \n\t\t}\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStoragePools: pools found: \" + storagePools.size() + \" pools: \" + storagePools , null);\n\t\tpayload.storagePools = storagePools;\n\t\tStorageOperationResponse<GetStoragePoolsResponse> response = new StorageOperationResponse<GetStoragePoolsResponse>(payload);\n\t\tresponse.setPercentCompleted(100);\n\t\tresponse.setStatus(StorageOperationStatus.COMPLETED);\n\t\treturn response;\n\t}", "public void setNeighbours(ArrayList<ThresholdDataPoint> neighbours, int connec) {\n\t\tif(connec == 8){\n\t\t\tthis.eightNeighbours = neighbours;\n\t\t} else if(connec == 4){\n\t\t\tthis.fourNeighbours = neighbours;\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Invalid number of neighbours\");\n\t\t}\n\t}", "public void setMaxInboundMessageSize(Integer maxInboundMessageSize) {\n this.maxInboundMessageSize = maxInboundMessageSize;\n }", "private void setConfigNumMinBgJobs(int value) {\n this.bitField0_ |= 4;\n this.configNumMinBgJobs_ = value;\n }", "final ConcurrentMap<Object, ManagedConnectionPool> getManagedConnectionPools()\n {\n return mcpPools;\n }", "List<InboundNatRulePortMapping> inboundNatRulePortMappings();", "final public void setXMajorGridLineCount(int XMajorGridLineCount)\n {\n setProperty(XMAJOR_GRID_LINE_COUNT_KEY, Integer.valueOf(XMajorGridLineCount));\n }", "public void setPolicyGroups(PolicyGroup [] PolicyGroups) {\n this.PolicyGroups = PolicyGroups;\n }", "public void setLowerBound (int lowerBound) throws ModelException\n\t{\n\t\tif ((lowerBound > getUpperBound()) || (lowerBound < 0))\n\t\t{\n\t\t\tthrow new ModelException(I18NHelper.getMessage(getMessages(),\n\t\t\t\t\"jdo.relationship.lower_cardinality_invalid\"));\t\t// NOI18N\n\t\t}\n\n\t\tgetRelationshipImpl().setLowerBound(lowerBound);\n\t}", "public String getDatabaseConnectionPoolMinNumberConnections(){\n \t\treturn getProperty(\"org.sagebionetworks.pool.min.number.connections\");\n \t}", "public void setIPCount(int ipCount) {\n this.numberOfIPs = ipCount;\n }", "public void setMaxIdleConns(int value) {\n this.maxIdleConns = value;\n }", "public void setPoolSize(final int poolSize) {\n this.poolSize = poolSize;\n }", "int getMinPoolSize();", "public void setLb(String lb) {\n this.lb = lb;\n }", "public void setLowerBound(String lower) {\n lowerBound = lower;\n }", "public void setMyNetworks(ArrayList<Network> myNetworks) {\n\t\tthis.myNetworks = myNetworks;\n\t}", "public Builder httpStatusCodesToRetry(Set<Integer> httpStatusCodesToRetry) {\r\n configurationBuilder.httpStatusCodesToRetry(httpStatusCodesToRetry);\r\n return this;\r\n }", "public CreateTaskSetRequest withLoadBalancers(java.util.Collection<LoadBalancer> loadBalancers) {\n setLoadBalancers(loadBalancers);\n return this;\n }", "public void setNumOfPageRowPms(int numOfPageRowPms) { this.numOfPageRowPms = numOfPageRowPms; }", "boolean hasHttpLoadBalancing();", "public SetCustomizedConfigForLoadBalancerRequest(SetCustomizedConfigForLoadBalancerRequest source) {\n if (source.OperationType != null) {\n this.OperationType = new String(source.OperationType);\n }\n if (source.UconfigId != null) {\n this.UconfigId = new String(source.UconfigId);\n }\n if (source.ConfigContent != null) {\n this.ConfigContent = new String(source.ConfigContent);\n }\n if (source.ConfigName != null) {\n this.ConfigName = new String(source.ConfigName);\n }\n if (source.LoadBalancerIds != null) {\n this.LoadBalancerIds = new String[source.LoadBalancerIds.length];\n for (int i = 0; i < source.LoadBalancerIds.length; i++) {\n this.LoadBalancerIds[i] = new String(source.LoadBalancerIds[i]);\n }\n }\n }", "public int getMinPoolSize() {\n return minPoolSize;\n }", "public void loadTenPics(int startNum){\n for(int i = startNum; i < startNum + 5 && i < picObList.size(); i++){\n Bitmap bitmap = convertSingleBitmap(picObList.get(i));\n bitmaps.add(bitmap);\n picsLoadedSoFar++;\n }\n spinner.setVisibility(View.GONE);\n imageAdapter.notifyDataSetChanged();\n continueLoad = true;\n }", "public void setGridNumOfRows(int numOfRows) {\n getCellGrid().userSetNumOfRows(numOfRows);\n }", "public void setIngressPortMappings(java.util.Collection<SimulationAppPortMapping> ingressPortMappings) {\n if (ingressPortMappings == null) {\n this.ingressPortMappings = null;\n return;\n }\n\n this.ingressPortMappings = new java.util.ArrayList<SimulationAppPortMapping>(ingressPortMappings);\n }", "void xsetPoolNumber(org.apache.xmlbeans.XmlInt poolNumber);", "public void setInsights(java.util.Collection<EmailInsights> insights) {\n if (insights == null) {\n this.insights = null;\n return;\n }\n\n this.insights = new java.util.ArrayList<EmailInsights>(insights);\n }", "String getLbPolicy() {\n return lbPolicy;\n }", "public LbInstances addLbInstances(LbInstances lbInstances)\n throws JNCException {\n this.lbInstances = lbInstances;\n insertChild(lbInstances, childrenNames());\n return lbInstances;\n }", "public void setNatPolicy(NatPolicy policy);", "void setNilPoolId();", "public static GridPane createHorizontalGridPane(final Control... controls) {\n if (controls.length == 0) {\n return new GridPane();\n }\n\n final GridPane pane = new GridPane();\n final double sectionWidth = 100.0 / controls.length;\n\n for (final Control ignored : controls) {\n final ColumnConstraints constraints = new ColumnConstraints();\n constraints.setPercentWidth(sectionWidth);\n\n pane.getColumnConstraints().add(constraints);\n }\n\n for (int i = 0 ; i < controls.length ; i++) {\n pane.add(controls[i], i, 0);\n }\n\n return pane;\n }", "public void addConnections(ArrayList<Integer> connections) {\n\t\tthis.connections.addAll(connections);\n\t\tthis.d = this.connections.size();\n\t\tthis.invertedD = 1/d;\n\t}", "public void createOnlyLBPolicy(){\n\t\t\n\t\tIterator<CacheObject> ican = cacheList.iterator();\n\t\t\n\t\tint objcounter = 0;\n\t\t\n\t\twhile(ican.hasNext() && objcounter < (OBJ_FOR_REQ)){\n\t\t\t\n\t\t\tobjcounter ++;\n\t\t\tCacheObject tempCacheObject = ican.next();\n\t\t\tIterator<ASServer> itm = manager.getASServers().values().iterator();\n\t\t\twhile(itm.hasNext()){\n\t\t\t\t\n\t\t\t\tASServer as = itm.next();\n\t\t\t\tif(((ResourceToRequestMap) as.getStruct((String)RequestResourceMappingLogProcessor.OBJ_REQ_MAP)).map.get(tempCacheObject.cacheKey) == null){\n\t\t\t\t\t//System.out.println(\"Mapping Map is NULL\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tArrayList<String> urllist = new ArrayList<String>(((ResourceToRequestMap) as.getStruct((String)RequestResourceMappingLogProcessor.OBJ_REQ_MAP)).map.get(tempCacheObject.cacheKey));\n\t\t\t\tIterator<String> iurl = urllist.iterator();\n\t\t\t\twhile(iurl.hasNext()){\n\t\t\t\t\tString url = iurl.next();\n\t\t\t\t\tif(!urlList.contains(url)){\n\t\t\t\t\t\turlList.add(url);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tint urlcounter = 0;\n\t\tint urllistsize = urlList.size();\n\t\tCollection<String> it1 = serverList.keySet();\n\t\tArrayList<String> server = new ArrayList<String>(it1);\n\t\t\n\t\twhile(urlcounter < urllistsize){\n\t\t\t\n\t\t\tString serId = server.get( (urlcounter) % NO_SERVERS );\n\t\t\tthis.currentLBPolicy.mapUrlToServers(urlList.get(urlcounter++), Analyser.resolveHost(serId));\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"------------LBPolicy start---------------\");\n//\t\tSystem.out.println(currentLBPolicy);\n//\t\t\n\t\tSystem.out.println(\"Number of entries in LBPolicy are: \" + currentLBPolicy.policyMap.size() );\n//\t\n\t\tSystem.out.println(\"------------LBPolicy end-----------------\");\n\t\t/*\n\t\tif(mLogger.isInfoEnabled()){\n\t\t\tmLogger.log(Priority.INFO, \"LBPolicy being printed\");\n\t\tmLogger.log(Priority.INFO, \":\" + this.currentLBPolicy);\n\t\t\n\t}\n\t\t*/\n\t}", "public void setNumConnections(int connections) {\n\t\tnumConnects = connections;\n\t}", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "void setPermittedModules(ArrayList<Integer> permittedModules);", "protected void setMinLineCount(int minLineCount) {\n\t\tthis.minLineCount = minLineCount;\n\t}", "public void setHorizontalScrollBarPolicy(int paramInt) {\n/* 548 */ switch (paramInt) {\n/* */ case 30:\n/* */ case 31:\n/* */ case 32:\n/* */ break;\n/* */ default:\n/* 554 */ throw new IllegalArgumentException(\"invalid horizontalScrollBarPolicy\");\n/* */ } \n/* 556 */ int i = this.horizontalScrollBarPolicy;\n/* 557 */ this.horizontalScrollBarPolicy = paramInt;\n/* 558 */ firePropertyChange(\"horizontalScrollBarPolicy\", i, paramInt);\n/* 559 */ revalidate();\n/* 560 */ repaint();\n/* */ }", "void xsetPoolRaces(org.apache.xmlbeans.XmlInt poolRaces);", "public void setInPipelineId(final int inPipelineId) {\n this.inPipelineId = inPipelineId;\n }", "public static Set<KubevirtLoadBalancer> getLoadBalancerSetForRouter(KubevirtRouter router,\n KubevirtLoadBalancerService lbService) {\n\n return lbService.loadBalancers().stream()\n .filter(lb -> router.internal().contains(lb.networkId()))\n .collect(Collectors.toSet());\n }", "@Test\n public void testToVendorConfiguration_generateNatPoolIpSpaces() {\n A10Configuration a10Configuration = new A10Configuration();\n a10Configuration.setHostname(\"c\");\n String poolName = \"pool\";\n a10Configuration\n .getNatPools()\n .put(poolName, new NatPool(poolName, Ip.parse(\"1.1.1.1\"), Ip.parse(\"1.1.1.10\"), 24));\n Configuration c =\n Iterables.getOnlyElement(a10Configuration.toVendorIndependentConfigurations());\n\n assertThat(\n c.getIpSpaces(),\n equalTo(\n ImmutableMap.of(\n ipSpaceNameForNatPool(poolName),\n IpRange.range(Ip.parse(\"1.1.1.1\"), Ip.parse(\"1.1.1.10\")))));\n }", "public void setInSyncStackInstancesCount(Integer inSyncStackInstancesCount) {\n this.inSyncStackInstancesCount = inSyncStackInstancesCount;\n }", "public void updateVillagePools(){\r\n\t\tCollections.shuffle(this.marketPool);\r\n\t\tfor(int i = 0; i < this.getnVillages(); i++){\r\n\t\t\tVillage curr = this.vVillages[i];\r\n\t\t\tcurr.setMarketPool(this.marketPool);\r\n\t\t}\r\n\t}", "public void setBlncRolls(Number value) {\n setAttributeInternal(BLNCROLLS, value);\n }", "public void setLNSRequestId(int LNSRequestId) {\n this.LNSRequestId = LNSRequestId;\n }", "public void setNumOfConnections(int num) {\r\n\t\tnumOfConnections = num;\r\n\t}", "public ThreadPool( int totalPoolSize ) {\n\n\tpoolLocked = false;\n\n\ttry {\n\n\t initializePools( null, totalPoolSize );\n\n\t} catch( Exception exc ) {}\n\n }", "public void changeConstraintsToLessThan() throws IloException {\n /*\n IloRange notes:\n for expr == rhs, set lb = ub = rhs\n for expr <= rhs, set lb = -infinity and ub = rhs\n for expr >= rhs, set lb = rhs and ub = infinity\n */\n for (int i = 0; i < matrix.getNrows(); i++) {\n IloRange rangedExpression = matrix.getRange(i);\n if (rangedExpression.getUB() >= Double.POSITIVE_INFINITY) {\n rangedExpression.setBounds(Double.NEGATIVE_INFINITY, -rangedExpression.getUB());\n for (int j = 0; j < matrix.getNrows(); j++) {\n matrix.setNZ(i, j, -matrix.getNZ(i, j));\n }\n }\n }\n }", "private void addThreadPools(Supplier<ThreadPoolExecutor> batchPool,\n Supplier<ThreadPoolExecutor> metaPool) {\n batchPools.add(batchPool);\n metaPools.add(metaPool);\n }", "public void setLowerThumbEnabled(boolean lowerThumbEnabled) {\n this.lowerThumbEnabled = lowerThumbEnabled;\n }", "public MhsmNetworkRuleSet withIpRules(List<MhsmipRule> ipRules) {\n this.ipRules = ipRules;\n return this;\n }", "@Override\n public int getNumIdle() {\n return _pool.size();\n }", "private void addCopiesToPool(Establishment[] establishments, int numPlayers){\n for(Establishment c : establishments){\n c.setNumCopies(numPlayers);\n }\n }", "public void setLowerLimit(String lowerLimit) {\n this.lowerLimit = lowerLimit == null ? null : lowerLimit.trim();\n }", "@JsonIgnore\n public boolean isLoadBalancersSet() { return isSet.contains(\"loadBalancers\"); }", "public void setLineNumbers(int ln[]) {\n lineNos = ln;\n }", "private void updateBridgesList() {\n\n netBridgesPanel.removeAll();\n\n netManager.getAvailableNetworkBridges().entrySet().forEach(ab -> {\n netBridgesPanel.add(new BridgePanel(netManager, ab.getKey(), ab.getValue()));\n });\n\n netBridgesPanel.revalidate();\n netBridgesPanel.repaint();\n }", "private Pool setUpGamelin() {\n final int gamelinVolume = 4300;\n final int gamelinTemperature = 37;\n final double gamelinPH = 7.5;\n final double gamelinNutrientCoefficient = 1.0;\n final int gamelinNumberOfGuppies = 30;\n final int gamelinMinAge = 15;\n final int gamelinMaxAge = 49;\n final double gamelinMinHealthCoefficient = 0.0;\n final double gamelinMaxHealthCoefficient = 1.0;\n\n GuppySet gamelinGuppies = new GuppySet(gamelinNumberOfGuppies,\n gamelinMinAge, gamelinMaxAge, gamelinMinHealthCoefficient,\n gamelinMaxHealthCoefficient);\n\n Pool gamelin = setUpPool(\"Gamelin\", gamelinVolume, gamelinTemperature,\n gamelinPH, gamelinNutrientCoefficient, gamelinGuppies);\n\n return gamelin;\n }", "public ResourcePoolImpl(final ResourcePool resources) {\r\n this.resources = new HashMap<Resource, Integer>();\r\n if (resources != null) {\r\n for (final Entry<Resource, Integer> entry : resources.getContents()) {\r\n addResource(entry.getKey(), entry.getValue());\r\n }\r\n }\r\n }", "private void setIPv4HdrInclOpt(boolean hdrincl) {\n\t\tfinal byte[] VAL01={ 0x01 };\n\t\tfinal byte[] VAL00={ 0x00 }; \n\t\tsetsockopt(Ip4Packet.IPPROTO_IP,IP_HDRINCL,hdrincl?VAL01:VAL00,0,1);\n\t}", "public void setMinPSMs(int minPSMs) {\n\t\tthis.minPSMs = minPSMs;\n\t}" ]
[ "0.71241194", "0.49296463", "0.49100107", "0.48033315", "0.4736173", "0.45289642", "0.45257294", "0.4512688", "0.45123005", "0.4505636", "0.44228032", "0.44228032", "0.44031176", "0.4377823", "0.43407938", "0.42855635", "0.4163741", "0.41108853", "0.40954673", "0.40520114", "0.4051373", "0.4022679", "0.40182403", "0.40157905", "0.400704", "0.4006414", "0.39905378", "0.39827186", "0.39640412", "0.39604414", "0.3957494", "0.39499092", "0.3935606", "0.39260668", "0.38814503", "0.38776916", "0.38744795", "0.38615975", "0.385195", "0.38449565", "0.38377443", "0.38100743", "0.38084167", "0.3808056", "0.3805389", "0.37676758", "0.3760972", "0.3743334", "0.37320217", "0.3724349", "0.3696574", "0.3667591", "0.36639896", "0.3653763", "0.36526236", "0.36508226", "0.36408353", "0.36350387", "0.36344692", "0.3633797", "0.36326438", "0.3628934", "0.36258894", "0.36193842", "0.3616103", "0.36077034", "0.3601915", "0.3587004", "0.35861528", "0.3582481", "0.3578564", "0.3574439", "0.3574439", "0.35644102", "0.35632548", "0.3551381", "0.3542796", "0.35387343", "0.35366428", "0.3530494", "0.35296702", "0.3524294", "0.35161042", "0.35153347", "0.3511577", "0.35048866", "0.35044217", "0.3503046", "0.34999138", "0.34996504", "0.34981582", "0.34961003", "0.3495897", "0.34951556", "0.34910515", "0.34879705", "0.34844407", "0.3477514", "0.34744653", "0.3473373" ]
0.7328622
0
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public void print() { super.print(); System.out.println("album=" + album + ", year=" + year); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
/ renamed from: a
static String m13919a(Context context, C6924p paymentStateHandler) { JSONObject deviceInfo = new JSONObject(); try { String androidId = Secure.getString(context.getContentResolver(), "android_id"); deviceInfo.put("deviceFingerprintVersion", "1.0"); deviceInfo.put("platform", "android"); deviceInfo.put("apiVersion", "4"); deviceInfo.put("osVersion", VERSION.SDK_INT); deviceInfo.put("sdkVersion", "1.10.0"); deviceInfo.put("deviceIdentifier", androidId); deviceInfo.put("locale", C6912j.m14059a(context)); return Base64.encodeToString(deviceInfo.toString().getBytes(Charset.forName("UTF-8")), 2); } catch (JSONException jsonException) { Log.e(f12559a, "Token could not be created", jsonException); paymentStateHandler.mo22387b((Throwable) jsonException); return ""; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/Metodos setters y getters
public void setOponente(Jugador oponente) { this.oponente = oponente; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "@Override\n public void get() {}", "public Punto getCentro() {\r\n\treturn centro;\r\n}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "public void setNombre(String nombre) {this.nombre = nombre;}", "public void get() {\n }", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "public int getArmadura(){return armadura;}", "private GetProperty(Builder builder) {\n super(builder);\n }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "protected T getManusia(){\r\n return Manusia;\r\n }", "@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }", "@Test\r\n public void testSetMicentro() {\r\n System.out.println(\"setMicentro\");\r\n CentroEcu_Observado micentro = new CentroEcu_Observado();\r\n micentro.setCiudad(\"Loja\");\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n instance.setMicentro(micentro);\r\n assertEquals(instance.getMicentro().ciudad, \"Loja\");\r\n }", "public int getTipoAtaque(){return tipoAtaque;}", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public Genero getGenero()\r\n/* 143: */ {\r\n/* 144:261 */ return this.genero;\r\n/* 145: */ }", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public Empleado getEmpleado()\r\n/* 183: */ {\r\n/* 184:337 */ return this.empleado;\r\n/* 185: */ }", "private ReadProperty()\r\n {\r\n\r\n }", "public int getAge() {return age;}", "public void setdat()\n {\n }", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "@Override\n String get();", "public Value makeGetter() {\n Value r = new Value(this);\n r.getters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }", "private Get() {}", "private Get() {}", "@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}", "public String getNombre(){\n return nombre;\n }", "public String getNombre(){\n return nombre;\n }", "public void setTelefono(String telefono) {\r\n\tthis.telefono = telefono;\r\n}", "public abstract String get();", "public void setAge(int age) { this.age = age; }", "public void setPrice(double price){this.price=price;}", "public int getAge(){\n return age;\n }", "public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n if (myClass == TableEntity.class) {\n return;\n }\n\n for (Method m : myClass.getMethods()) {\n // Skip any non-getter methods\n if (m.getName().length() < 3\n || TABLE_ENTITY_METHODS.contains(m.getName())\n || (!m.getName().startsWith(\"get\") && !m.getName().startsWith(\"is\"))\n || m.getParameterTypes().length != 0\n || void.class.equals(m.getReturnType())) {\n continue;\n }\n\n // A method starting with `is` is only a getter if it returns a boolean\n if (m.getName().startsWith(\"is\") && m.getReturnType() != Boolean.class\n && m.getReturnType() != boolean.class) {\n continue;\n }\n\n // Remove the `get` or `is` prefix to get the name of the property\n int prefixLength = m.getName().startsWith(\"is\") ? 2 : 3;\n String propName = m.getName().substring(prefixLength);\n\n try {\n // Invoke the getter and store the value in the properties map\n entity.getProperties().put(propName, m.invoke(entity));\n } catch (ReflectiveOperationException | IllegalArgumentException e) {\n logger.logThrowableAsWarning(new ReflectiveOperationException(String.format(\n \"Failed to get property '%s' on type '%s'\", propName, myClass.getName()), e));\n }\n }\n }", "public T get() {\n return value;\n }", "public Person getDoctor(){\n return doctor;\n }", "public String getnombre(){\n return nombre;\n }", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "private SetProperty(Builder builder) {\n super(builder);\n }", "@Override\n protected void updateProperties() {\n }", "public String getNome () { return this.nome; }", "public String getNombre(){\r\n return nombre;\r\n }", "public String getNombre(){\n return nombre;\n }", "public String getNombre(){\n return nombre;\n }", "Objet getObjetAlloue();", "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "public String getTelefono() {\r\n\treturn telefono;\r\n}", "public int getYearsOffice()\n {\n return yearsOffice;\n}", "public PuntoDeVenta getPuntoDeVenta()\r\n/* 140: */ {\r\n/* 141:162 */ return this.puntoDeVenta;\r\n/* 142: */ }", "@Test\r\n public void testSetMiservicio() {\r\n System.out.println(\"setMiservicio\");\r\n Servicio miservicio = new Servicio();\r\n miservicio.descripcion=\"gestion de vigilancia\";\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n instance.setMiservicio(miservicio);\r\n assertEquals(instance.getMiservicio().descripcion, \"gestion de vigilancia\");\r\n }", "Nodo_B getPrimero(){\n return this.primero;\n }", "public CuentaContable getCuentaContable()\r\n/* 78: */ {\r\n/* 79: 99 */ return this.cuentaContable;\r\n/* 80: */ }", "public int getSet() {\n return set;\n }", "public String get();", "public interface Poulet {\n /*DEFINIT le nombre de like effectué par ce poulet */\n public void setnombreLike(int nombre_like);\n\n /*DEFINIT le nombre de match de ce poulet */\n public void setnombreMatch(int nombre_match);\n\n}", "public int getlife(){\r\n return life;\r\n}", "public MotivoLlamadoAtencion getMotivoLlamadoAtencion()\r\n/* 114: */ {\r\n/* 115:123 */ return this.motivoLlamadoAtencion;\r\n/* 116: */ }", "public String getNome(){\r\n return nome;\r\n }", "@Override\n protected void getExras() {\n }", "public Movie getMovie() { return movie; }", "public String getNome(){\r\n return this.nome;\r\n }", "public double getPrice(){return price;}", "public int getModopelea(){return modopelea;}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public String getTelefono(){\n return telefono;\n }", "String setValue();", "public ValoresCalculo getValorCalculo()\r\n/* 88: */ {\r\n/* 89:107 */ return this.valorCalculo;\r\n/* 90: */ }", "public CuentaContable getCuentaContableCierre()\r\n/* 98: */ {\r\n/* 99:115 */ return this.cuentaContableCierre;\r\n/* 100: */ }", "public int getPrice(){\n return price;\n }", "public Student getStudent() { return student; }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public Ejercicio getEjercicio()\r\n/* 145: */ {\r\n/* 146:183 */ return this.ejercicio;\r\n/* 147: */ }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Test\n public void gettersAndSettersShouldWorkForEachProperty() {\n assertThat(AssignForceBatch.class, hasValidGettersAndSetters());\n }", "@Test\n public void testSetNombre() {\n System.out.println(\"setNombre\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n String expResult = \"nom1\";\n String result = instance.getNombre();\n assertEquals(expResult, result);\n }", "Object getValor();", "public String getAuthor(){return author;}", "public String getNome(){\n return this.nome;\n }", "public int getAge()\r\n {\r\n return age;\r\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public Integer getLongitud()\n/* 37: */ {\n/* 38:55 */ return this.longitud;\n/* 39: */ }", "public CuentaContable getCuentaContable()\r\n/* 299: */ {\r\n/* 300:367 */ return this.cuentaContable;\r\n/* 301: */ }", "public interface SaleRowDTOProperties {\n\n Vehicle.KapschVehicle getVehicle();\n\n void setVehicle(Vehicle.KapschVehicle vehicle);\n\n}", "public abstract String getNombre();", "@Override\npublic void setAttributes() {\n\t\n}", "@Test\r\n public void testSetValor() {\r\n \r\n }", "public int getPrice(){\n return 80;\n }", "public String getNombre() {return nombre;}", "public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "public String getEtiqueta()\n/* 27: */ {\n/* 28:41 */ return this.etiqueta;\n/* 29: */ }", "@Override\n\tprotected void getExras() {\n\n\t}", "public Age getAge() {\n return age;\n }" ]
[ "0.6494834", "0.64928263", "0.6400483", "0.6331098", "0.625753", "0.6231761", "0.612818", "0.6118461", "0.6106001", "0.609014", "0.60853887", "0.6071667", "0.60514694", "0.6025997", "0.6025229", "0.6024262", "0.6024209", "0.60050267", "0.60016465", "0.5992898", "0.5984944", "0.5969107", "0.59580004", "0.5952129", "0.5936476", "0.5934685", "0.593005", "0.5914994", "0.5911792", "0.5901911", "0.5901911", "0.58969325", "0.5893273", "0.58876806", "0.5880435", "0.5869629", "0.5866801", "0.58385026", "0.5832267", "0.58254373", "0.581243", "0.5810533", "0.58105123", "0.5809232", "0.58085966", "0.58085966", "0.5804861", "0.5798576", "0.5797985", "0.5795883", "0.5794371", "0.5794371", "0.57909286", "0.5779954", "0.57709855", "0.5770716", "0.57692695", "0.57674813", "0.5767204", "0.5754813", "0.5748595", "0.57464457", "0.5739775", "0.5739111", "0.57382244", "0.5734064", "0.5733214", "0.57298726", "0.57240516", "0.5722569", "0.57210124", "0.5720812", "0.57069266", "0.569201", "0.5688659", "0.56856805", "0.5684309", "0.56801754", "0.56758994", "0.56684506", "0.5662641", "0.56570375", "0.5655984", "0.5654144", "0.56522024", "0.56517255", "0.56473684", "0.56430835", "0.56413674", "0.5640452", "0.56370914", "0.5620607", "0.5614183", "0.56135243", "0.5612434", "0.56102866", "0.56095684", "0.5605455", "0.56053805", "0.56026053", "0.56019664" ]
0.0
-1
/Metodos de Arma de Asedio
public void montarArma(ArmaDeAsedio arma) { this.esUnidadPropia(arma); arma.montarArma(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "@Override public String getMasa(){\n return \"gruesa \";\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "protected String getTitoloPaginaMadre() {\n return VUOTA;\n }", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "public abstract java.lang.String getAcma_descripcion();", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "String getCADENA_TRAMA();", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "private static void cajas() {\n\t\t\n\t}", "public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "public void Ordenamiento() {\n\n\t}", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "public void leerAlimentos();", "public abstract java.lang.String getAcma_cierre();", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "@Override\n public String toString() {\n return \"Ultima Manutencao em: \"+this.ultimaManun+\" km's.\";\n }", "public String verMarcacion(){\n\t\t limpiar();\n\t\t\tString vista=\"pretty:misMarcacionesPretty\";\n\t //CODIGO\n\t return vista;\n\t\t}", "private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }", "protected String elaboraHead() {\n String testo = VUOTA;\n String testoIncluso = VUOTA;\n\n // Avviso visibile solo in modifica\n testo += elaboraAvvisoScrittura();\n\n // Posiziona il TOC\n testoIncluso += elaboraTOC();\n\n // Posiziona il ritorno\n testoIncluso += elaboraRitorno();\n\n // Posizione il template di avviso\n testoIncluso += elaboraTemplateAvviso();\n\n // Ritorno ed avviso vanno (eventualmente) protetti con 'include'\n testo += elaboraInclude(testoIncluso);\n\n // Posiziona l'incipit della pagina\n testo += A_CAPO;\n testo += elaboraIncipit();\n\n // valore di ritorno\n return testo;\n }", "public String getMascara()\r\n/* 287: */ {\r\n/* 288:355 */ if (this.dimensionContable.getMascara() != null) {\r\n/* 289:356 */ if (this.dimensionContable.getDimensionPadre() != null) {\r\n/* 290:358 */ this.mascara = (this.dimensionContable.getDimensionPadre().getCodigo() + this.dimensionContable.getMascara().substring(this.dimensionContable.getDimensionPadre().getCodigo().length()));\r\n/* 291: */ } else {\r\n/* 292:360 */ this.mascara = this.dimensionContable.getMascara();\r\n/* 293: */ }\r\n/* 294: */ }\r\n/* 295:363 */ return this.mascara;\r\n/* 296: */ }", "public String annulerRv(){\n\t\t// Traitement ici ... \n\t\treturn AFFICHER;\n\t}", "@Override\n\tpublic void tipoMovimento() {\n\t\tSystem.out.println(super.getNome() + \" anda com 4 patas.\");\n\t}", "public String Dime_datos_generales() {\n\t\t\n\t\treturn \"la plataforma del veiculo tiene \"+ rueda+\" ruedas\"+\n\t\t\"\\nmide \"+ largo/1000+\" metros con un ancho de \"+ancho+\n\t\t\"cm\"+\"\\nun peso de platafrorma de \"+peso;\n\t}", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }", "public String toString(){\n return \"+-----------------------+\\n\" +\n \"| Boleto para el metro |\\n\" +\n \"|derjere0ranfeore |\\n\" +\n \"+-----------------------+\\n\" ;\n }", "@Override\n public void buildArma() {\n this.personaje.setArma(new Arma(\"Lanza\", 'A', 9));\n }", "public void Semantica() {\r\n int var, etq;\r\n double marca, valor;\r\n double[] punto = new double[3];\r\n double[] punto_medio = new double[2];\r\n\r\n /* we generate the fuzzy partitions of the variables */\r\n for (var = 0; var < n_variables; var++) {\r\n marca = (extremos[var].max - extremos[var].min) /\r\n ((double) n_etiquetas[var] - 1);\r\n for (etq = 0; etq < n_etiquetas[var]; etq++) {\r\n valor = extremos[var].min + marca * (etq - 1);\r\n BaseDatos[var][etq].x0 = Asigna(valor, extremos[var].max);\r\n valor = extremos[var].min + marca * etq;\r\n BaseDatos[var][etq].x1 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].x2 = BaseDatos[var][etq].x1;\r\n valor = extremos[var].min + marca * (etq + 1);\r\n BaseDatos[var][etq].x3 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].y = 1;\r\n BaseDatos[var][etq].Nombre = \"V\" + (var + 1);\r\n BaseDatos[var][etq].Etiqueta = \"E\" + (etq + 1);\r\n }\r\n }\r\n }", "@Override\r\n\tpublic final String[] getHabilidadesRaza() {\r\n\t\treturn new String[] {\"Golpe Defensa\", \"Mordisco de Vida\"};\r\n\t}", "public void mostrarAutomovil(){\r\n System.out.println(\"Marca: \" + automovil.getMarca());\r\n System.out.println(\"Modelo: \" + automovil.getModelo());\r\n System.out.println(\"Placa: \" + automovil.getPlaca());\r\n }", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}", "public Asiakas(){\n\t\tid++;\n\t\tbussiNumero = new Random().nextInt(OmaMoottori.bussienMaara);\n\t\tsaapumisaika = Kello.getInstance().getAika();\n\t}", "public String getAzione() {\n return azione;\n }", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "@Override\r\n\tpublic String sonido() {\n\t\treturn \"Miauu\";\r\n\t}", "@Override\n public int altura() {\n return altura(this.raiz);\n }", "int getNombreLignesPlateau();", "public void mostraDados() {\n System.out.println(\"O canal atual é: \" + tv.getCanal());\n System.out.println(\"O volume atual é: \" + tv.getVolume());\n System.out.println(\"--------------------------------------\");\n }", "public void enemigosCatacumba(){\n esq81 = new Esqueleto(1, 8, 400, 160, 30);\n esq82 = new Esqueleto(2, 8, 400, 160, 30);\n esq111 = new Esqueleto(1, 11, 800, 255, 50);\n esq112 = new Esqueleto(2, 11, 800, 255, 50);\n esq141 = new Esqueleto(1, 14, 1000, 265, 60);\n esq142 = new Esqueleto(2, 14, 1000, 265, 60);\n //\n zom81 = new Zombie(1, 8, 1000, 170, 40);\n zom82 = new Zombie(2, 8, 1000, 170, 40);\n zom111 = new Zombie(1, 11, 1300, 250, 50);\n zom112 = new Zombie(2, 11, 1300, 250, 50);\n zom141 = new Zombie(1, 14, 1700, 260, 60);\n zom142 = new Zombie(2, 14, 1700, 260, 60);\n //\n fana81 = new Fanatico(1, 8, 400, 190, 40);\n fana82 = new Fanatico(2, 8, 400, 190, 40);\n fana111 = new Fanatico(1, 11, 700, 250, 50);\n fana112 = new Fanatico(2, 11, 700, 250, 50);\n fana141 = new Fanatico(1, 14, 900, 260, 60);\n fana142 = new Fanatico(2, 14, 900, 260, 60);\n //\n mi81 = new Mimico(1, 8, 3, 1, 3000);\n mi111 = new Mimico(1, 11, 4, 1, 3000);\n mi141 = new Mimico(1, 14, 5, 1, 3200);\n }", "public void Caracteristicas(){\n System.out.println(\"La resbaladilla tiene las siguientes caracteristicas: \");\r\n if (escaleras==true) {\r\n System.out.println(\"Tiene escaleras\");\r\n }else System.out.println(\"No tiene escaleras\");\r\n System.out.println(\"Esta hecho de \"+material);\r\n System.out.println(\"Tiene una altura de \"+altura);\r\n }", "private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}", "@Override\n public String cualquierMetodo2() {\n return \"Método implementado en la clase hija viaje de incentivo\";\n }", "String getAnnoPubblicazione();", "public String getMarca()\n {\n return \"\\nDispositivo Marca \" + Marca; \n }", "public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}", "void mostrarAtributos() {\n\t\tString mensaje = \"nombre=\" + nombre + \", apellido=\" + apellido + \", tipoDocumento=\" + tipoDocumento\n\t\t\t\t+ \", numeroDocumento=\" + numeroDocumento + \", edad=\" + edad + \" y es \"\n\t\t\t\t+ (edad >= 18 ? \"mayor de edad\" : \"menor de edad\");\n\t\tSystem.out.println(mensaje);\n\t}", "@Override\n public void memoria() {\n \n }", "public String darMarca( )\n\t{\n\t\treturn marca;\n\t}", "@Override\n\tpublic String morder() {\n\t\treturn \"Los anelidos muerden y se aferran\";\n\t}", "public String getMarca(){\n return marca;\n }", "public NodoCaracter getArbolRaiz() {\n return inicio;\n }", "@Override public String getQueso(){\n return \"manchego \";\n }", "@Override\n\tvoid geraDados() {\n\n\t}", "private String mayorTurno(ABBTurnosTDA a){\t\t\n\t\tif(a.hijoDer().arbolVacio())\n\t\t\treturn a.turno();\n\t\telse\n\t\t\treturn mayorTurno(a.hijoDer());\n\t}", "public FaseDescartes faseJuego();", "public String getMarca()\n {\n return marca;\n }", "void establecerPuntoAM(int pos){\n this.emisoraAMActual = pos;\n }", "public Aritmetica(){ }", "protected String elaboraIncipitSpecifico() {\n return VUOTA;\n }", "public Arquero(){\n this.vida = 75;\n this.danioAUnidad = 15;\n this.danioAEdificio = 10;\n this.rangoAtaque = 3;\n this.estadoAccion = new EstadoDisponible();\n }", "@Test\n void mostraTutti() {\n EAMese[] matrice = EAMese.values();\n assertNotNull(matrice);\n assertEquals(12, matrice.length);\n\n System.out.println();\n String sep = \" - \";\n int k=0;\n for (EAMese mese : matrice) {\n System.out.println(++k+sep+mese.getLungo() + sep + mese.getBreve() + sep + mese.getGiorni());\n }// end of for cycle\n\n }", "public int getAnio() { return this.anio; }", "public java.lang.String getHora_hasta();", "public logicaEnemigos(){\n\t\t//le damos una velocidad inicial al enemigo\n\t\tsuVelocidad = 50;\n\t\tsuDireccionActual = 0.0;\n\t\tposX = 500 ;\n\t\tposY = 10;\n\t}", "public void asetaTeksti(){\n }", "public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}", "private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }", "String getArcrole();", "public void mo4359a() {\n }", "public Camion(int peso,Marcas marca,int kilometraje,int antiguedad) {\n super(peso,marca,kilometraje,antiguedad);\n if (super.getMarca().equals(\"FORD\")|| super.getMarca().equals(\"FIAT\"))\n {\n super.setArticulado();\n }\n if(super.getArticulado() && getPeso()<3000)\n {\n super.setCumpleNormativa();\n }\n if(!super.getArticulado() && getPeso()<2000)\n {\n super.setCumpleNormativa();\n }\n\n }", "List<Alimento> getAlimentos();", "public int getArmadura(){return armadura;}", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "@Override\n\tpublic String getTareas() {\n\t\treturn \"TAREA COMERCIAL 3: VENDE MUCHO TODOS LOS DÍAS\";\n\t}", "public void limpiarMemoria();", "public Maquina() {\n savia = 0;\n reflejosLagrimas = 0;\n estado = false;\n }", "@Override\r\n\tpublic String getOstatu_mota() {\n\t\treturn super.getOstatu_mota();\r\n\t}", "public void ektypwsiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR MEDICINE No.\" + (i+1) + \":\");\n\t\t\t\tmedicine[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMA FARMAKA PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }", "private DittaAutonoleggio(){\n \n }", "private TipoAtaque generateTipoAtaque() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}", "private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }", "public void mostrarEstadisticas(String promedio, int rechazados, String caracteristicas){\n System.out.println(\"El tiempo promedio es de: \" + promedio);\n System.out.println(\"La cantidad de carros rechazados es de: \" + rechazados);\n System.out.println(\"El modelo mas usado en parqueos es: \" + caracteristicas);\n }", "@Override\n\tpublic int sacameVida(ElementoAlien a) {\n\t\treturn 20;\n\t}", "@Override\n protected String elaboraBody() {\n String text = CostBio.VUOTO;\n int numCognomi = mappaCognomi.size();\n int numVoci = Bio.count();\n int taglioVoci = Pref.getInt(CostBio.TAGLIO_NOMI_ELENCO);\n\n text += A_CAPO;\n text += \"==Cognomi==\";\n text += A_CAPO;\n text += \"Elenco dei \";\n text += LibWiki.setBold(LibNum.format(numCognomi));\n text += \" cognomi '''differenti''' utilizzati nelle \";\n text += LibWiki.setBold(LibNum.format(numVoci));\n text += \" voci biografiche con occorrenze maggiori di \";\n text += LibWiki.setBold(taglioVoci);\n text += A_CAPO;\n text += creaElenco();\n text += A_CAPO;\n\n return text;\n }", "private String menorTurno(ABBTurnosTDA a){\t\t\n\t\tif(a.hijoIzq().arbolVacio())\n\t\t\treturn a.turno();\n\t\telse\n\t\t\treturn menorTurno(a.hijoIzq());\n\t}", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public Tequisquiapan()\n {\n nivel = new Counter(\"Barrio Tequisquiapan: \");\n \n nivel.setValue(5);\n hombre.escenario=5;\n\n casa5.creaCasa(4);\n addObject(casa5, 2, 3);\n \n arbol2.creaArbol(2);\n addObject(arbol2, 20, 3);\n arbol3.creaArbol(3);\n addObject(arbol3, 20, 16); \n \n addObject(letrero5, 15, 8);\n\n addObject(hombre, 11, 1);\n \n arbol4.creaArbol(4);\n addObject(arbol4, 20, 20);\n arbol5.creaArbol(5);\n addObject(arbol5, 3, 17);\n \n fuente2.creaAfuera(6);\n addObject(fuente2, 11, 19);\n \n lampara1.creaAfuera(2);\n addObject(lampara1, 8, 14);\n lampara2.creaAfuera(1);\n addObject(lampara2, 8, 7);\n \n addObject(nivel, 5, 0);\n addObject(atras, 20, 2); \n }", "protected String elaboraTemplateAvviso() {\n String testo = VUOTA;\n String dataCorrente = date.get();\n String personeTxt = \"\";\n personeTxt = text.format(numVoci);\n\n if (usaHeadTemplateAvviso) {\n testo += tagHeadTemplateAvviso;\n testo += \"|bio=\";\n testo += personeTxt;\n testo += \"|data=\";\n testo += dataCorrente.trim();\n testo += \"|progetto=\";\n testo += tagHeadTemplateProgetto;\n testo = LibWiki.setGraffe(testo);\n }// end of if cycle\n\n return testo;\n }", "public List<EntradaDeMaterial> buscarEntradasDisponibles(Almacen a);", "public abstract java.lang.String getAcma_valor();", "public String getMarca() {\n return Marca;\n }", "int getNombreColonnesPlateau();", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "private void populaAlimento()\n {\n Alimento a = new Alimento(\"Arroz\", 100d, 5d, 0.4d, 30d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Abacaxi\", 96.2d, 1.2d, 2.3d, 6d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Carne moida - Acem\", 212.4d, 26.7d, 9.8d, 0d, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pernil Assado\", 262.3d, 32.1d, 13.1d, 0, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pao de forma integral\", 253.2d, 9.4d, 2.9d, 49, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n }" ]
[ "0.63050175", "0.62364984", "0.6215398", "0.6078568", "0.60404074", "0.6000607", "0.59953177", "0.5994458", "0.5993937", "0.5988766", "0.58866113", "0.5873422", "0.586855", "0.58663654", "0.58426565", "0.5830035", "0.58271104", "0.58215886", "0.5791905", "0.5791506", "0.5789269", "0.5782083", "0.5777448", "0.57636374", "0.57533187", "0.5750654", "0.5748918", "0.57472664", "0.57426655", "0.5733879", "0.5732919", "0.57298917", "0.57296145", "0.57099813", "0.5700643", "0.569077", "0.56694555", "0.56642604", "0.56544846", "0.56518984", "0.5647329", "0.5644567", "0.5644324", "0.56414056", "0.5639787", "0.5634114", "0.563005", "0.5623246", "0.5618059", "0.56146926", "0.5607083", "0.5606469", "0.5599918", "0.55970025", "0.55930024", "0.5590638", "0.55867124", "0.5586488", "0.5583538", "0.5582653", "0.5581881", "0.55816466", "0.55815625", "0.55802673", "0.5577394", "0.5576441", "0.55730015", "0.5572102", "0.55696195", "0.556842", "0.5558069", "0.5554193", "0.55502766", "0.5550228", "0.5543934", "0.5540626", "0.5539979", "0.5539764", "0.55396795", "0.5528985", "0.5523843", "0.552291", "0.5520511", "0.5518293", "0.5517242", "0.55097145", "0.5507418", "0.55058557", "0.5503753", "0.5503434", "0.5501099", "0.5500101", "0.54988086", "0.54948986", "0.5493953", "0.5491442", "0.54912204", "0.54901016", "0.54861987", "0.54858315", "0.54849356" ]
0.0
-1
TODO Autogenerated method stub
public Map<String, String> getArgList() { return argMap; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public Map<String, String> getHeaderList() { return headerMap; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public String getTestData(RequestTestDataType testData) { return testDataMap.get(testData); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public String getOriginalRequestData() { return originalRequestData; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
method: getAllVariants Zwraca wszystkie warianty
public List<VariantDto> getAllVariants() { return variantRepository.findAll() .stream() .map(q -> mapper.toDto(q)) .collect(Collectors.toList()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QueryResult<Variant> getAllVariants(QueryOptions options);", "public List<TileVariant> getVariants() {\r\n\t\treturn this.variants;\r\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response findVariantInstances(@PathParam(\"variantID\") String variantId){\n MobileVariant mobileVariant = mobileApplicationService.findByVariantID(variantId);\n\n if(mobileVariant == null){\n return Response.status(Response.Status.NOT_FOUND).entity(\"Could not find requested Mobile Variant\").build();\n }\n\n return Response.ok(mobileVariant.getInstances()).build();\n }", "public QueryResult<Variant> getAllVariantsByRegion(Region region, QueryOptions options);", "public abstract ConnectorResultSet get_variants(DataRequest source, String field) throws ConnectorOperationException;", "public List<Variant> getVariantsByProductId(Long productID) {\n try {\n databaseManager.openReadableDb();\n //databaseManager.daoSession.clear();\n return databaseManager.daoSession.getVariantDao().queryBuilder()\n .where(VariantDao.Properties.Product_id.eq(productID))\n .list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "@NotNull\n @Override\n public Object[] getVariants() {\n final Set<String> alreadySeen = ContainerUtil.newHashSet();\n final List<LookupElement> results = ContainerUtil.newArrayList();\n ResolveUtil.treeWalkUp(myElement, new FrogBaseScopeProcessor() {\n @Override\n public boolean execute(@NotNull PsiElement element, ResolveState state) {\n if (element instanceof FrogNamedElement) {\n FrogNamedElement namedElement = (FrogNamedElement) element;\n String name = namedElement.getName();\n if (!alreadySeen.contains(name)) {\n alreadySeen.add(name);\n results.add(buildLookupElement(namedElement));\n }\n }\n return true;\n }\n });\n return ArrayUtil.toObjectArray(results);\n }", "@Override\r\n\tpublic List<Producto> getAll() throws Exception {\n\t\treturn productRepository.buscar();\r\n\t}", "private void getAllProducts() {\n }", "public int findTotalVariants() throws DAOException;", "@Test\n\tpublic void getAllByRegion() {\n\t\tList<String> consequenceTypeList = new ArrayList<String>();\n\t\tconsequenceTypeList.add(\"2KB_upstream_variant\");\n\t\tconsequenceTypeList.add(\"splice_region_variant\");\n\t\tList<Snp> snps = snpDBAdaptor.getAllByRegion(new Region(\"1\", 10327, 12807), consequenceTypeList);\n\t\tthis.printSNPList(\"getAllByRegion\", snps, 50);\n\t}", "@JsonProperty(\"variant_ids\")\n public List<Object> getVariantIds() {\n return variantIds;\n }", "public String[] getVariants(int[] randIds){\n Cursor crs;\n String[] variants = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants[i] = crs.getString(crs.getColumnIndex(\"name\"));\n }\n crs.close();\n }\n return variants;\n }", "public List<Ingrediente> verIngredientes(){\n\t\t// Implementar\n\t\treturn ingredientes;\n\t}", "public String[] getVariantNames() { return new String[] { \"normal\" }; }", "public List<Voto> getVotos(){\n\t\treturn em.createQuery(\"SELECT c from Voto c\", Voto.class).getResultList();\n\t}", "public String[] getVariants_ru(int[] randIds){\n Cursor crs;\n String[] variants_ru = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name_ru FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants_ru[i] = crs.getString(crs.getColumnIndex(\"name_ru\"));\n }\n crs.close();\n }\n return variants_ru;\n }", "public void registerVariants(){\n\t\tModelResourceLocation[] variants = new ModelResourceLocation[metaNames.length];\r\n\t\tfor(int i = 0; i < metaNames.length; i++){\r\n\t\t\tvariants[i] = new ModelResourceLocation(ElementsMod.MODID + \":\" + getNameFromDamage(i), \"inventory\");\r\n\t\t}\r\n\t\tModelBakery.registerItemVariants(ItemManager.apple, variants);\r\n\t}", "public List<Vet> getAllVets() {\n\t\tentityManager = JPAUtils.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\tvets = entityManager.createQuery(\"from Vet\", Vet.class).getResultList();\n\t\tentityManager.getTransaction().commit();\n\t\tentityManager.close();\n\t\treturn vets;\n\t}", "@Override\n public List<Revue> getAll() {\n return null;\n }", "List<Product> getAllProducts();", "List<Product> getAllProducts();", "List<Product> getAllProducts();", "@Override\n public List<DetalleVenta> all() {\n return detalleVentaJpaRepository.findAll();\n }", "private void subscribeVariantData() {\n mProductDetailsViewModel.getVariants().observe(this, integerObjectHashMap -> {\n mUnitId = (String) integerObjectHashMap.get(ONE);\n mStoreId = (String) integerObjectHashMap.get(TWO);\n ArrayList<VariantsData> variantsData = (ArrayList<VariantsData>) integerObjectHashMap.get(\n THREE);\n mOffersListData = (PdpOfferData) integerObjectHashMap.get(FOUR);\n mAvailableCount = (Integer) integerObjectHashMap.get(FIVE);\n // mCartCount=(Integer)integerObjectHashMap.get(SIX);\n mAvailableCount = (Integer) integerObjectHashMap.get(FIVE);\n if (variantsData != null) {\n mVariantsData.clear();\n mVariantsData.addAll(variantsData);\n mPdpVariantsAdapter.notifyDataSetChanged();\n }\n });\n }", "public List<Variant> getSizeVariantsByProductId(List<Long> productID) {\n try {\n databaseManager.openReadableDb();\n //databaseManager.daoSession.clear();\n\n return databaseManager.daoSession.getVariantDao().queryRawCreate(\" WHERE \" +\n VariantDao.Properties.Product_id.columnName +\n \" IN (\" + TextUtils.join(\",\", productID) + \")\" +\n \" GROUP BY \" + VariantDao.Properties.Size.columnName +\n \" ORDER BY \" + VariantDao.Properties.Size.columnName + \" ASC \")\n .list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "private Variant setVariantsFromApi(VariantsModel variantsModel, Long id, Long productID) {\n return new Variant(id,\n variantsModel.getId(),\n productID,\n variantsModel.getColor(),\n variantsModel.getSize(),\n variantsModel.getPrice()\n );\n }", "@GET\n public List<JsonGenre> getAll() {\n \tList<Genre> genres = genreDao.getGenres();\n \tLOGGER.info(\"find \"+genres.size()+\" genres in the database\");\n \tArrayList<JsonGenre> ls = new ArrayList<JsonGenre>();\n \tfor (Genre s:genres) {\n \t\tls.add(new JsonGenre(s.getId(), s.getName()));\n \t}\n \treturn ls;\n }", "public static void getListOfAllFileVarianta2() {\n\t\tPath pathToSrc = Paths.get(\"D:\\\\TorrentsMd\");\r\n\t\ttry {\r\n\t\t\t//cu method references\r\n//\t\t\tFiles.walk(pathToSrc)\r\n//\t\t\t\t.map(Path::toFile)\r\n//\t\t\t\t.filter(File::isFile)\r\n//\t\t\t\t.map(File::getName)\r\n//\t\t\t\t.sorted()\r\n//\t\t\t\t.forEach(System.out::println);\r\n\t\t\t\r\n\t\t\t//cu lambda, dar dpdv semantic sunt identice\r\n\t\t\tFiles.walk(pathToSrc)\r\n\t\t\t\t .map(path -> path.toFile()) //trasnform fiecare Path din stream intr-un File\r\n\t\t\t\t .filter(file -> file.isFile()) //filtrez doar fisierele\r\n\t\t\t\t .map(file -> file.getName())//transform fiecare File din stream intr-un String, care e numele sau\r\n\t\t\t\t .sorted()\r\n\t\t\t\t .forEach(file -> System.out.println(file));\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public List<String> getAvailableVoices() throws DynamicCallException, ExecutionException {\n return (List<String>)call(\"getAvailableVoices\").get();\n }", "@Override\r\n\tpublic List prodAllseach() {\n\t\treturn adminDAO.seachProdAll();\r\n\t}", "@Override\r\n\tpublic List<ManufacturersVO> k_getAll() {\n\t\treturn null;\r\n\t}", "@RequestMapping(value = \"/obtenerVeredas\", method = RequestMethod.GET)\n\tpublic Iterable<Vereda> obtenerListaVeredas() {\n\t\treturn veredaRepository.findAll();\n\t\t//return JsonManager.toJson(veredaRepository.findAll());\n\t}", "ItemVariant getItemVariant(Integer itemVariantId);", "public static void showAllVilla(){\n ArrayList<Villa> villaList = getListFromCSV(FuncGeneric.EntityType.VILLA);\n displayList(villaList);\n showServices();\n }", "public Future<List<String>> getAvailableVoices() throws DynamicCallException, ExecutionException {\n return call(\"getAvailableVoices\");\n }", "@Override\n\tpublic ArrayList<Carpo> getAllCars() {\n\t\treturn inList.getAll();\n\t}", "private static final String[] buildVariants(String root) {\r\n if (nlSuffixes == null) {\r\n // build list of suffixes for loading resource bundles\r\n String nl = Locale.getDefault().toString();\r\n ArrayList<String> result = new ArrayList<String>(4);\r\n int lastSeparator;\r\n while (true) {\r\n result.add('_' + nl + EXTENSION);\r\n lastSeparator = nl.lastIndexOf('_');\r\n if (lastSeparator == -1) {\r\n break;\r\n }\r\n nl = nl.substring(0, lastSeparator);\r\n }\r\n // add the empty suffix last (most general)\r\n result.add(EXTENSION);\r\n nlSuffixes = result.toArray(new String[result.size()]);\r\n }\r\n root = root.replace('.', '/');\r\n String[] variants = new String[nlSuffixes.length];\r\n for (int i = 0; i < variants.length; i++) {\r\n variants[i] = root + nlSuffixes[i];\r\n }\r\n return variants;\r\n }", "@Override\n public List<Item> viewAllItems() {\n // calls List<Item> itemRepo.findCatalog();\n return itemRepo.findCatalog();\n }", "private Set func_177575_g() {\n/* 450 */ HashSet var1 = Sets.newHashSet();\n/* 451 */ ArrayList<?> var2 = Lists.newArrayList(this.variants.keySet());\n/* 452 */ Collections.sort(var2, new Comparator()\n/* */ {\n/* */ private static final String __OBFID = \"CL_00002390\";\n/* */ \n/* */ public int func_177505_a(ModelResourceLocation p_177505_1_, ModelResourceLocation p_177505_2_) {\n/* 457 */ return p_177505_1_.toString().compareTo(p_177505_2_.toString());\n/* */ }\n/* */ \n/* */ public int compare(Object p_compare_1_, Object p_compare_2_) {\n/* 461 */ return func_177505_a((ModelResourceLocation)p_compare_1_, (ModelResourceLocation)p_compare_2_);\n/* */ }\n/* */ });\n/* 464 */ Iterator<?> var3 = var2.iterator();\n/* */ \n/* 466 */ while (var3.hasNext()) {\n/* */ \n/* 468 */ ModelResourceLocation var4 = (ModelResourceLocation)var3.next();\n/* 469 */ ModelBlockDefinition.Variants var5 = (ModelBlockDefinition.Variants)this.variants.get(var4);\n/* 470 */ Iterator<ModelBlockDefinition.Variant> var6 = var5.getVariants().iterator();\n/* */ \n/* 472 */ while (var6.hasNext()) {\n/* */ \n/* 474 */ ModelBlockDefinition.Variant var7 = var6.next();\n/* 475 */ ModelBlock var8 = (ModelBlock)this.models.get(var7.getModelLocation());\n/* */ \n/* 477 */ if (var8 == null) {\n/* */ \n/* 479 */ LOGGER.warn(\"Missing model for: \" + var4);\n/* */ \n/* */ continue;\n/* */ } \n/* 483 */ var1.addAll(func_177585_a(var8));\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 488 */ var1.addAll(field_177602_b);\n/* 489 */ return var1;\n/* */ }", "void tryRemoveMultipleVariants(Collection<Collection<Node>> variants) throws Exception;", "private static long getTotalVariants(String studyId, String sampleId, VariantStorageManager storageManager, String token) throws ToolException {\n Query query = new Query(VariantQueryParam.STUDY.key(), studyId)\n .append(VariantQueryParam.SAMPLE.key(), sampleId);\n\n QueryOptions queryOptions = new QueryOptions(QueryOptions.LIMIT, 0)\n .append(QueryOptions.COUNT, true);\n\n // Get total number of variants\n long numVariants;\n try {\n numVariants = storageManager.get(query, queryOptions, token).getNumMatches();\n } catch (CatalogException | StorageEngineException | IOException e) {\n throw new ToolException(e);\n }\n return numVariants;\n }", "private void getVoices() throws Exception{\r\n\r\n\t\tFestival f = new Festival(\"\",\"1\");\r\n\t\t_voices = f.listOfVoices();\r\n\r\n\t}", "public abstract List<Object> getAll();", "public Gel_BioInf_Models.File getClinicalRelevantVariants() {\n return clinicalRelevantVariants;\n }", "@Override\r\n public List<Product> findAll() {\r\n return productRepository.findAll();\r\n }", "public List<Product> getProducts();", "public List<Product> getProducts();", "@Override public ArrayList<Sample> getAllSamples()\n {\n try\n {\n return clientDoctor.getAllSamples();\n }\n catch (RemoteException e)\n {\n throw new RuntimeException(\"Error while fetching all samples. Please try again.\");\n }\n }", "public Vector<Artista> findAllArtisti();", "public Set<ProductBarcode> getProducts(boolean recursive);", "@Override\n\tpublic List<Product> getAllProduct() {\n\t\treturn productRepository.findAll();\n\t}", "@Override\n\tpublic List<Product> getAllProduct() {\n\t\treturn productRepository.findAll();\n\t}", "@Override\r\n\tpublic List prodStockseach() {\n\t\treturn adminDAO.seachProdStock();\r\n\t}", "@Test\n public void testGetAllProducts() throws Exception {\n when(repository.findAll()).thenReturn(Collections.singletonList(this.product));\n\n assertEquals(Collections.singletonList(this.product), service.getAllProducts());\n }", "@Override\r\n\tpublic List<ProductMaster> getAllProducts() {\n\t\treturn this.repository.findAll();\r\n\t}", "List<CatalogItem> getAllCatalogItems();", "@Override\n public List<Song> getAll() {\n return em.createQuery(\"SELECT s FROM Song s ORDER BY title\", Song.class)\n .getResultList();\n }", "private void initializeVariantsAdapter() {\n mPdpVariantsAdapter = new PdpVariantsAdapter(mVariantsData, this);\n mBinding.rvPdpVariants.setAdapter(mPdpVariantsAdapter);\n }", "@Test\r\n\tpublic void testGetAllVendors() throws Exception {\r\n\t\t// when\r\n\t\tMockHttpServletResponse response = mvc.perform(\r\n\t\t\tget(\"/vendors\")\r\n\t\t\t\t.accept(MediaType.APPLICATION_JSON))\r\n\t\t\t.andReturn().getResponse();\r\n\r\n\t\t// then\r\n\t\tassertEquals(response.getStatus(), HttpStatus.OK.value());\r\n\r\n\t\tString content = response.getContentAsString();\r\n\t\tVendor[] vendors = gson.fromJson(content, Vendor[].class);\r\n\t\tassertTrue(vendors.length == 0);\r\n\r\n\t}", "@Override\n\tpublic ArrayList<Carpo> showAllCars() {\n\t\treturn inList.showAll();\n\t}", "@Test\n public void testGetAllProduct() throws Exception {\n System.out.println(\"getAllProduct\");\n prs = dao.getAllProduct();\n \n assertArrayEquals(products.toArray(), prs.toArray());\n }", "public Gel_BioInf_Models.File getClinicalRelevantVariants() {\n return clinicalRelevantVariants;\n }", "@Override\r\n\tpublic List<Product> getAllProducts() {\n\t\treturn dao.getAllProducts();\r\n\t}", "public java.util.List<java.lang.String> getVariantSetIds() {\n return variantSetIds;\n }", "@Override\n\tpublic List<ProductGalleries> getAllProductImages() {\n\t\treturn (List<ProductGalleries>) this.productGaleryRepository.findAll();\n\t}", "public List<Product> getAll() {\n\t\treturn productRepository.findAll();\n\n\t}", "private void getVehicleList() {\n mApiCall.getVehicleList();\n }", "@Override\r\n\tpublic List<Product> getAllProducts(String filePath) {\r\n\t\treturn productDetailsRepository.getAllProducts(filePath);\r\n\t}", "public List<Region> getAllRegions() {\n\t\treturn regionDao.findWithNamedQuery(Region.QUERY_FIND_ALL, null);\n\t}", "@JsonProperty(\"variant_ids\")\n public void setVariantIds(List<Object> variantIds) {\n this.variantIds = variantIds;\n }", "public List<String> getNames(VariantContext variantContext);", "List<Recipe> getAllRecipes();", "public List<Ve> getAllVe(long idKhachHang);", "@Override\r\n\tpublic List<shopPet> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "public int[] getVariantMeta() { return new int[] { 0 }; }", "@Override\n public List<Track> getAllTracks() {\n return trackRepository.findAll();\n }", "@Override\n\tpublic List<DvdCd> getAll() {\n\t\tlogger.info(\"Listando todos os DVDs/CDs\");\n\t\treturn itemRepository.findAll(UserServiceImpl.authenticated().getId());\n\t}", "@Override\n public Iterable<Product> findAllProduct() {\n return productRepository.findAll();\n }", "public java.util.List<java.lang.String> getVariantSetIds() {\n return variantSetIds;\n }", "@Override\n\tpublic synchronized StorageOperationResponse<GetStorageVolumesResponse> getStorageVolumes(\n\t\t\tGetStorageVolumesRequest request) {\n\t\t\n\t\tStorageOperationResponse<GetStorageVolumesResponse> response = null;\n\t\ttry {\n\t\t\tList<StorageVolume> internalVolumes = null;\n\t\t\tList<Volume> volumeList = null;\n\t\t\tif (request.storageVolumeIds == null || request.storageVolumeIds.isEmpty()) {\n\t\t\t\tif (request.storageSystemId == null) {\n\t\t\t\t\tif (request.storagePoolId == null) {\n\t\t\t\t \treturn StorageAdapterImplHelper.createFailedResponse(\"Invalid Reqeust: all parameters are null\", GetStorageVolumesResponse.class); \n\t\t\t\t\t} else {\n\t\t\t\t\t\tvolumeList = openstackClient.listVolumes(request.storagePoolId);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (request.storagePoolId == null) {\n\t\t\t\t \tvolumeList = new ArrayList<Volume>();\n\t\t\t\t \tString region = openstackClient.getOpenstackId(request.storageSystemId);\n\t\t\t\t //\tfor (String zone:openstackClient.listAvailabilityZones(request.storageSystemId)) {\n\t\t\t\t \t\tvolumeList.addAll(openstackClient.listVolumes(region +\":\" + \"nova\"));\n\t\t\t\t //\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvolumeList = openstackClient.listVolumes(request.storagePoolId);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tinternalVolumes = OpenstackAdapterUtil.transformToStorageVolumeList(volumeList,request.storageSystemId);\n\t\t\t\t\t\n\t\t\t} else {\n\t\t\t internalVolumes = new ArrayList<StorageVolume>();\n\t\t for (String volumeId:request.storageVolumeIds) {\n\t\t \t Volume vol = openstackClient.getVolume(volumeId);\n\t\t \t if (vol == null) {\n\t\t \t\t internalVolumes.add(null);\n\t\t \t } else {\n\t\t \t\t internalVolumes.add(OpenstackAdapterUtil.toStorageVolume(vol, accountId +':'+ openstackClient.getRegion(volumeId)));\n\t\t \t }\n\t\t }\n\t\t\t}\n\t\t\t\n\t\t\tGetStorageVolumesResponse payload = new GetStorageVolumesResponse();\n\t\t\tpayload.storageVolumes = internalVolumes;\n\t\t\tresponse = new StorageOperationResponse<GetStorageVolumesResponse>(payload);\n\t\t\tresponse.setPercentCompleted(100);\n\t\t\tresponse.setStatus(StorageOperationStatus.COMPLETED);\n\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG , this.getClass().getName(), \"getStorageVolumes:\", null, e);\n\t\t\treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStorageVolumesResponse.class); \n\t\t}\n\t\t\n\t\treturn response;\n\t}", "@Override\r\n\tpublic List<Product> getallProducts() {\n\t\treturn dao.getallProducts();\r\n\t}", "public List<Ingredient> getAll() {\n return ingredientRepository.findAll();\n }", "public List<Cvpack> findAllCvpacks();", "@Override\n\tpublic List<Provincia> fiindAll() {\n\t\treturn provincieRepository.findAllByOrderByNameAsc();\n\t}", "@Override\n\tpublic List<Products> getAllProduct() {\n\t\treturn dao.getAllProduct();\n\t}", "@RequestMapping(value = \"\",\n method = RequestMethod.GET)\n @ResponseBody\n public ApiResponse<List<SupportedLanguage>> getAllLanguages() {\n LOG.debug(\"REST request to get all languages\");\n\n final ApiResponse <List <SupportedLanguage>> apiResponse = new ApiResponse <List<SupportedLanguage>>();\n\n List<SupportedLanguage> languageList = null;\n\n try {\n languageList = supportedLanguageService.findAllLanguages();\n apiResponse.setData(languageList);\n LOG.debug(\"Size{}\", languageList.size());\n } catch (Exception e) {\n throw new LucasRuntimeException(LucasRuntimeException.INTERNAL_ERROR, e);\n }\n\n return apiResponse;\n\n }", "private void getSongs() {\n new SongContent(this, Constants.URL).execute();\n }", "@Override\n\tpublic List<Equipo> getAll()\n\t{\n\t\treturn (ArrayList<Equipo>)equipoRepository.findAll();\n\t}", "@Override\n\tpublic DataResult<List<CurriculumVitae>> getAll() {\n\t\treturn null;\n\t}", "@RequestMapping(value = \"/get\", method = RequestMethod.GET)\n public List<Song> getAllSongs() {\n String message = messageSource.getMessage(\"song.get.all\", null,\"locale not found\", Locale.getDefault());\n logger.info(message);\n return songService.findAll();\n }", "@Allow(Permission.UpdateCatalog)\n public List<ProductVariant> createProductVariants(\n List<CreateProductVariantInput> input, DataFetchingEnvironment dfe) {\n RequestContext ctx = RequestContext.fromDataFetchingEnvironment(dfe);\n List<ProductVariantEntity> productVariantEntities = this.productVariantService.create(ctx, input);\n return productVariantEntities.stream()\n .map(variantEntity -> BeanMapper.map(variantEntity, ProductVariant.class))\n .collect(Collectors.toList());\n }", "public void listarProducto() {\n }", "public List<Integer> findTopGenesByVariantCnt( Integer n ) throws DAOException;", "List<ProductView> getAllByPage(PageableAndSortable pageableAndSortable) throws ProductException;", "public List<Variant> getCompositions() {\n return compositions;\n }", "@Override\r\n\tpublic List<SubstageDocument> getAll() throws Exception {\n\t\treturn null;\r\n\t}", "List<Videogioco> findAllVideogioco();", "@RequestMapping(value = \"/shopressources\", method = RequestMethod.GET)\n List<ShopRessource> getAllShopRessources();", "public ObservableList<String> getAllGenres(){\n return allGenres;\n }" ]
[ "0.7685769", "0.6596213", "0.6530714", "0.6467713", "0.6307461", "0.62140036", "0.6003501", "0.5850714", "0.5825898", "0.5746464", "0.5683518", "0.5659054", "0.5649835", "0.5643907", "0.5637265", "0.56167424", "0.56027406", "0.55684674", "0.5557564", "0.5544574", "0.5505413", "0.5505413", "0.5505413", "0.5438509", "0.542848", "0.5417138", "0.54060674", "0.5397448", "0.5396803", "0.5384839", "0.53847224", "0.53720474", "0.53518254", "0.53228086", "0.5321575", "0.5307186", "0.5295083", "0.5288921", "0.52594745", "0.5237821", "0.5230173", "0.52268285", "0.5219942", "0.5219521", "0.52114993", "0.5195565", "0.5189457", "0.5189457", "0.5179991", "0.5177578", "0.51747495", "0.5172935", "0.5172935", "0.51681745", "0.516036", "0.5151279", "0.51472205", "0.5133079", "0.51273054", "0.5122412", "0.51177317", "0.51142067", "0.51093036", "0.5104563", "0.5103922", "0.50965995", "0.5092652", "0.5090134", "0.5087453", "0.5085321", "0.50817025", "0.5070788", "0.506695", "0.50642955", "0.50616217", "0.505826", "0.5055264", "0.5052577", "0.5048375", "0.504441", "0.5044145", "0.50422907", "0.5041953", "0.5040216", "0.5035885", "0.50355655", "0.5031763", "0.5030044", "0.50298434", "0.5026699", "0.50155663", "0.50142133", "0.5010156", "0.50047904", "0.5003931", "0.5000986", "0.4989069", "0.4981462", "0.49800417", "0.4979962" ]
0.74786264
1
method: getVariantById Zwraca wariant po ID
public VariantDto getVariantById(String id) throws VariantNotFound { return variantRepository.findById(id) .map(q -> mapper.toDto(q)).orElseThrow(() -> new VariantNotFound()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ItemVariant getItemVariant(Integer itemVariantId);", "public int getVariantId() {\n return variantId_;\n }", "@NotNull\n @JsonProperty(\"variantId\")\n public Integer getVariantId();", "public int getVariantId() {\n return variantId_;\n }", "public void setVariantId(final Integer variantId);", "@Nullable\n public Long getVariantId() {\n return this.variantId;\n }", "public Voto find(int id ) { \n\t\treturn em.find(Voto.class, id);\n\t}", "public Product get(String id);", "private Variant setVariantsFromApi(VariantsModel variantsModel, Long id, Long productID) {\n return new Variant(id,\n variantsModel.getId(),\n productID,\n variantsModel.getColor(),\n variantsModel.getSize(),\n variantsModel.getPrice()\n );\n }", "public List<Variant> getVariantsByProductId(Long productID) {\n try {\n databaseManager.openReadableDb();\n //databaseManager.daoSession.clear();\n return databaseManager.daoSession.getVariantDao().queryBuilder()\n .where(VariantDao.Properties.Product_id.eq(productID))\n .list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "@Override\n\tpublic Vn getSong(int id) {\n\t\treturn songDao.getSong(id);\n\t}", "@Override\n\tpublic DvdCd getById(Integer id) {\n\t\tlogger.info(\"Buscando DVD/CD por ID \"+id);\n\t\tOptional<DvdCd> obj = itemRepository.findById(id);\n\t\tif (!obj.isPresent()) {\n\t\t\tlogger.error(\"DvdCd nao encontrado, \"+DvdCdServiceImpl.class);\n\t\t\tthrow new ObjectNotFoundException(\"DvdCd nao encontrado, id: \"+id);\n\t\t}\n\t\t\n\t\treturn obj.get();\n\t}", "protected abstract T getResource(ItemVariant currentVariant);", "public PurchaseVO PFindByID(String id) {\n\t\treturn purchase.find(id);\r\n\t}", "@Override\n\tpublic ProductVo selectOne(String id) {\n\t\treturn sqlSession.selectOne(\"product.selectOne\", id);\n\t}", "@Override\n public DetalleVenta get(int id) {\n return detalleVentaJpaRepository.getOne(id);\n }", "public static String getVariant(String localeID) {\n/* 300 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public Song getSong(long id) {\n Song s = null;\n try {\n s = em.createQuery(\"SELECT s FROM Song s WHERE s.id = :id\", Song.class)\n .setParameter(\"id\", id)\n .getSingleResult();\n } catch (NoResultException e) {\n\n }\n return s;\n }", "@Override\n @LogMethod\n public T get(long id) throws InventoryException {\n \tInventoryHelper.checkPositive(id, \"id\");\n T entity = repository.getByKey(id);\n InventoryHelper.checkEntityExist(entity, id);\n return entity;\n }", "@Override\r\n\tpublic Product get(int id) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Vtype findById(int id) {\n\t\tVtype v=null;\r\n\t\tHibernateUtil.getCurrentSession().beginTransaction();\r\n\t\ttry{\r\n\t\t\tv=this.vdao.findById(id);\r\n\t\t\tHibernateUtil.getCurrentSession().getTransaction().commit();\r\n\t\t}catch(Exception e){\r\n\t\t\ttry{\r\n\t\t\t\tHibernateUtil.getCurrentSession().getTransaction().rollback();\r\n\t\t\t}catch(Exception e1){\r\n\t\t\t\tthrow e1;\r\n\t\t\t}\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\treturn v;\r\n\t}", "String get(String id);", "V get(ObjectId objectId, VersionCorrection versionCorrection);", "Product getProductByID(Long id);", "V get(K id);", "@Override\r\n\tpublic ProductRaw getById(int id) {\n\t\treturn productRawDao.selectByPrimaryKey(id);\r\n\t}", "@RequestMapping(value = \"/get/{id}\", method = RequestMethod.GET)\n public Song getSongById(@PathVariable(\"id\") long id) {\n String message = messageSource.getMessage(\"song.get.id\", null,\"locale not found\", Locale.getDefault());\n logger.info(message);\n return songService.findById(id);\n }", "@Override\n\tpublic car getById(int id) {\n\t\ttry{\n\t\t\tcar so=carDataRepository.getById(id);\n\t\t\t\n\t\t\treturn so;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tex.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t}", "public VariantDto deleteVariantById(String id) throws VariantNotFound {\n Variant variant = variantRepository.findById(id).orElseThrow(() -> new VariantNotFound());\n variantRepository.delete(variant);\n return mapper.toDto(variant);\n }", "@Override\n\tpublic IDataResult<Product> getById(int id) {\n\t\tvar product = productDao.getById(id);\n\t\tif (product.id == 0) {\n\t\t\treturn new ErrorDataResult<Product>(\"Böyle bir ürün bulunmuyor.\");\n\t\t}\n\t\treturn new SuccessDataResult<Product>(product);\n\t}", "@Override\n public Revue getById(int id) {\n return null;\n }", "public Product getByID(int id) {\n if (!isValidID(id)) {\n System.out.println(\"Ese item no existe\");\n return null;\n }\n\n Product r = null;\n try {\n r = products[id].clone();\n } catch (CloneNotSupportedException e) {\n e.printStackTrace();\n }\n return r;\n }", "public AsxDataVO findOne(String id) {\n\t\t return (AsxDataVO) mongoTemplate.findOne(new Query(Criteria.where(\"id\").is(id)), AsxDataVO.class); \r\n\t}", "@Override\n\tpublic car getByVin(String vinId) {\n\t\t\t\ttry{\n\t\t\t\t\tcar so=carDataRepository.getByVin(vinId);\n\t\t\t\t\t\n\t\t\t\t\treturn so;\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception ex)\n\t\t\t\t\t{\n\t\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t}", "CafeProduct getProductById(final Integer productId);", "@Override\r\n\tpublic Libro read(int id) {\n\t\treturn libroRepository.findById(id).get();\r\n\t}", "public SimilarProductBuilder variantId(@Nullable final Long variantId) {\n this.variantId = variantId;\n return this;\n }", "Object get(ID id) throws Exception;", "public Vacuna findById(Long id) {\n\t\tVacuna vacuna = vacunaRepository.findById(id).orElseThrow(() -> new RuntimeException(\"La vacuna no existe...\"));\n\t\treturn vacuna;\n\t}", "CatalogItem getItembyId(final Long id);", "Videogioco findVideogiocoById(int id);", "@Override\r\n\tpublic Strumento getById(int id) throws StrumentoNotFoundException {\n\t\treturn strumentoRepository.getOne(id);\r\n\t}", "private Shop GetShopByIdFromRepository(UUID id) {\n\t\tShop shop = shopRepo.findById(id)\n\t\t\t\t.orElseThrow(() -> new ArgumentNotFoundException(\"Shop not found. The id: \" + id + \" doesn't exist\"));\n\t\treturn shop;\n\t}", "public Long getTaskVariantId() {\n return taskVariantId;\n }", "public Epreuve getById(Long id) {\n\t\tEntityManager em = EntityManagerHolder.getCurrentEntityManager();\n\t\tEpreuve epreuve = em.find(Epreuve.class, id);\n\t\tSystem.out.println(\"Epreuve lu\");\n\t\treturn epreuve;\n\t}", "V get(UniqueId uniqueId);", "public VariantDto updateVariant(CreateUpdateVariantDto dto, String id) throws VariantNotFound {\n Variant variant = variantRepository.findById(id).orElseThrow(() -> new VariantNotFound());\n\n variant.setQuestion(dto.getQuestion());\n variant.setVariant(dto.getVariant());\n\n return mapper.toDto(variant);\n }", "@Override\n\tpublic Equipo get(Long id)\n\t{\n\t\tOptional<Equipo> entity = equipoRepository.findById(id);\n\t\treturn entity.orElse(null);\n\t}", "@Override\r\n public Optional<Product> findbyId(Long id) {\r\n return productRepository.findById(id);\r\n }", "@Override\n public RiceptDto getRicept(int id) {\n Optional<Ricept> ricept = riceptRepository.findById(id);\n if (!ricept.isPresent()) {\n log.error(\"Ricept not found by id. Class RiceptServiceImpl, method getRicept\");\n throw new NotFoundException(\"Ricept not found by id\");\n }\n log.info(\"Get ingredient by id. Class RiceptServiceImpl, method getRicept\");\n return RiceptDto.of(ricept.get());\n }", "public Product findProduct(int id)\n {\n for(Product product : stock)\n {\n if(id == product.getID())\n {\n return product;\n }\n }\n System.out.println(\"Error: Could not find ID: \" + id);\n return null;\n }", "@Override\n public Vehicle findById(BigDecimal id) {\n List<AggregationOperation> operations = new ArrayList<>();\n operations.addAll(getVehicleAggregations());\n operations.add(getMatchOperation(\"cars.vehicles._id\", Operation.EQ, id));\n operations.add(getVehicleProjection());\n TypedAggregation<Warehouse> aggregation =\n Aggregation.newAggregation(Warehouse.class, operations);\n return mongoTemplate.aggregate(aggregation, Vehicle.class).getUniqueMappedResult();\n }", "@Override\n\tpublic Product getProduct(int id) {\n\t\treturn productDao.getProduct(id);\n\t}", "@Override\r\n\tOptional<Product> findById(String id);", "@Override\n\tpublic Products queryProductbyId(Integer id) {\n\t\treturn (Products)getSqlMapClientTemplate().queryForObject(buildId(SQL_PREFIX, \"queryProductbyId\"),id);\n\t}", "@Override\n\tpublic Object findByID(Serializable id) {\n\t\treturn getSession().get(DirectTalentAdvertBean.class, id);\n\t}", "@Override\r\n\tpublic Product showOne(int id) throws Exception {\n\t\treturn this.dao.showOne(id);\r\n\t}", "@Override\r\n\tpublic Product getProduct(String id) {\n\t\treturn null;\r\n\t}", "@Override\n @Transactional\n public Producto findById(long id) {\n return productoDao.findById(id);\n }", "@GetMapping(\"/{id}\")\n\tpublic Song getById(@PathVariable(\"id\") int id) {\n\t\tSystem.out.println(\"Searching by id: \" + id);\n\t\tSong song = songService.findById(id);\n\t\tif (song == null) {\n\t\t\tSystem.out.println(\"ID song: \" + id + \" not found\");\n\t\t}\n\t\treturn song;\n\t}", "@Override\n\tpublic Oeuvre findOeuvreById(Long id) {\n\t\treturn oeuvreDao.findById(id).get();\n\t}", "public So_cdVO getById(String so_cd);", "Product getProductById(Integer productID);", "@Override\n\tpublic T get(ID id) {\n\t\tOptional<T> obj = getDao().findById(id);\n\t\tif (obj.isPresent()) {\n\t\t\treturn obj.get();\n\t\t}\t\t\n\t\treturn null;\n\t}", "public Song findSong(Long id) {\n\t\tOptional<Song> optionalSong = lookifyRepository.findById(id);\n\t\tif (optionalSong.isPresent()) {\n\t\t\treturn optionalSong.get();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public abstract MediaItem getMediaItem(String id);", "T getbyId(I id);", "T get(Integer id);", "@Override\n\tpublic ClientResponse get(Integer id) {\n\t\tWebResource webResource = this.webResource.path(\"/location/\" + id);\n\t\treturn get(webResource);\n\t}", "@Transactional(readOnly = true)\n public Result get(Integer id) {\n Tag tag = TagService.find(id);\n if (tag == null) {\n return util.Json.jsonResult(response(), notFound(util.Json.generateJsonErrorMessages(Messages.get(\"error.not-found\", Messages.get(\"article.female-single\"), Messages.get(\"field.tag\"), id))));\n }\n return util.Json.jsonResult(response(), ok(Json.toJson(tag)));\n }", "public Product seekProduct(int id) throws Exception {\n\t\treturn this.dao.showOne(id);\r\n\t}", "Product getProductById(Serializable productId);", "public Asset getAssetById(UUID id) throws IOException {\n try {\n String strBody = null;\n Map<String, String> params = null;\n String correctPath = \"/Assets/{id}\";\n // Hacky path manipulation to support different return types from same endpoint\n String path = \"/Assets/{id}\";\n String type = \"/pdf\";\n if(path.toLowerCase().contains(type.toLowerCase()))\n {\n correctPath = path.replace(\"/pdf\",\"\");\n } \n\n // create a map of path variables\n final Map<String, String> uriVariables = new HashMap<String, String>();\n uriVariables.put(\"id\", id.toString());\n UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + correctPath);\n String url = uriBuilder.buildFromMap(uriVariables).toString();\n\n \n String response = this.DATA(url, strBody, params, \"GET\");\n TypeReference<Asset> typeRef = new TypeReference<Asset>() {};\n return apiClient.getObjectMapper().readValue(response, typeRef);\n\n } catch (IOException e) {\n throw xeroExceptionHandler.handleBadRequest(e.getMessage());\n } catch (XeroApiException e) {\n throw xeroExceptionHandler.handleBadRequest(e.getMessage(), e.getResponseCode(),JSONUtils.isJSONValid(e.getMessage()));\n }\n }", "public abstract Object get(String entityName, Serializable id);", "public Builder setVariantId(int value) {\n\n variantId_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic Item findItemById(Long id) {\n\t\tCriteriaBuilder cb=entityManager.getCriteriaBuilder();\n\t\t\n\t\tCriteriaQuery<Item> q = cb.createQuery(Item.class);\n\t\t Root<Item> c = q.from(Item.class);\n\t\t ParameterExpression<Long> p = cb.parameter(Long.class);\n\t\t q.select(c).where(cb.equal(c.get(\"id\"), p));\n\t\t TypedQuery<Item> query = entityManager.createQuery(q);\n\t\t query.setParameter(p, id);\n\t\t Item i = query.getSingleResult();\n\t\treturn i;\n\t}", "@Override\n\tpublic Carpo findCar(String id) {\n\t\treturn inList.find(id);\n\t}", "@Override\n\tpublic Product findProductById(Long id) {\n\t\treturn productDAO.findById(id).orElse(null);\n\t}", "@Override\n public Vehicle getByVehicleId(Integer id){\n VehicleDetails domain = throwIfNotFound(repo.findById(id));\n \n return mapper.map(domain, Vehicle.class);\n \n }", "RecipeObject getRecipe(int recipeID);", "public Ingredient getById(Long id) {\n return ingredientRepository.getOne(id);\n }", "@Override\n\tpublic Property selectById(String uuid) {\n\t\treturn pr.findByUuid(uuid);\n\t}", "byte[] get(byte[] id) throws RemoteException;", "public Product getProductWithId(int id) {\n for (Product s : products) {\n if (s.getId() == id) { return s;}\n }\n return null;\n }", "@Override\n public E getById(final I id) {\n LOG.info(\"[getById] Start: Id = \" + id);\n LOG.info(\"[getById] End\");\n return entityManager.find(entityClass, id);\n }", "@Override\n @Transactional(readOnly = true)\n public Optional<Avistamiento> findOne(Long id) {\n log.debug(\"Request to get Avistamiento : {}\", id);\n return avistamientoRepository.findOneWithEagerRelationships(id);\n }", "@Override\n\tpublic Product getById(int id) throws SQLException {\n\t\treturn productDao.getById(id);\n\t}", "@Override\n public Venda Buscar(int id) {\n Venda v;\n\n v = em.find(Venda.class, id);\n\n// transaction.commit();\n return v;\n }", "Object getProperty(Long id, String name) throws RemoteException;", "@Override\r\n public Asset findOne(Long id) {\n return assetDao.findById(id);\r\n }", "public asset getAssetById(int id) {\n return assetRepository.findById(id).get();\n }", "@Override\r\n\tpublic Product getProductById(String productId, String filePath) {\r\n\t\treturn productDetailsRepository.getProductById(productId, filePath);\r\n\t}", "@Transactional(readOnly = true) \n public Product findOne(Long id) {\n log.debug(\"Request to get Product : {}\", id);\n Product product = productRepository.findOne(id);\n return product;\n }", "@Transactional(readOnly = true)\n public Optional<ScriptParam> findOne(Long id) {\n log.debug(\"Request to get ScriptParam : {}\", id);\n return scriptParamRepository.findById(id);\n }", "@Override\n\tpublic Optional<Product> findById(Long id) {\n\t\t return productRepository.findById(id);\n\t}", "@Override\n public ServiceCall<NotUsed, Product> getProductById(String id) {\n return request -> CompletableFuture\n .completedFuture(productRepository.getProduct(id));\n }", "@Override\n\tpublic Product getProductByid(long id) {\n\t\treturn productDao.getProductByid(id);\n\t}", "@RequestMapping(method = RequestMethod.GET, value = \"/{id}\",\n produces = \"application/json\", headers = \"Accept=application/json\" )\n public ResponseEntity<InventoryResponse> getInventoryByProductId(@PathVariable(\"id\") Integer id){\n Inventory inventory = inventoryService.getInventoryItemByProductId(id);\n\n return ResponseEntity.ok(new InventoryResponse(\n inventory.getProduct().getId(), inventory.getAmount()));\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response findVariantInstances(@PathParam(\"variantID\") String variantId){\n MobileVariant mobileVariant = mobileApplicationService.findByVariantID(variantId);\n\n if(mobileVariant == null){\n return Response.status(Response.Status.NOT_FOUND).entity(\"Could not find requested Mobile Variant\").build();\n }\n\n return Response.ok(mobileVariant.getInstances()).build();\n }", "String getProductId();" ]
[ "0.74531573", "0.72391653", "0.7100471", "0.7099598", "0.6819085", "0.67017716", "0.64853907", "0.6387455", "0.63616747", "0.6269869", "0.6250986", "0.6209902", "0.6198072", "0.6185068", "0.61027503", "0.60932815", "0.6069636", "0.6045915", "0.60333043", "0.60240614", "0.6022635", "0.60153997", "0.601507", "0.5978408", "0.5971525", "0.59703165", "0.59673476", "0.59384996", "0.5938164", "0.59333855", "0.5931491", "0.59306693", "0.58874506", "0.5884767", "0.5855542", "0.5845849", "0.5844396", "0.5831871", "0.5818029", "0.58178395", "0.5817011", "0.58060706", "0.5799493", "0.5776459", "0.57621145", "0.5760344", "0.5753189", "0.574421", "0.57419115", "0.57411855", "0.5718832", "0.5714934", "0.56935394", "0.5683197", "0.568018", "0.5677438", "0.56582385", "0.56537735", "0.5644223", "0.5633157", "0.56275624", "0.5623007", "0.5620664", "0.56192774", "0.5605592", "0.56047106", "0.5602847", "0.56026477", "0.5593643", "0.5586596", "0.5584925", "0.558054", "0.5566714", "0.5565546", "0.5555622", "0.5551532", "0.5551444", "0.5550554", "0.5548983", "0.5546842", "0.5537608", "0.55374604", "0.55371577", "0.5535384", "0.5533465", "0.5526225", "0.5525519", "0.55231893", "0.55211467", "0.55209106", "0.55206734", "0.5519651", "0.5513834", "0.5510286", "0.5509355", "0.55084497", "0.5507017", "0.55061054", "0.5504841", "0.55040604" ]
0.7158779
2
method: deleteVariantById Usuwa wariant po ID
public VariantDto deleteVariantById(String id) throws VariantNotFound { Variant variant = variantRepository.findById(id).orElseThrow(() -> new VariantNotFound()); variantRepository.delete(variant); return mapper.toDto(variant); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Avistamiento : {}\", id);\n avistamientoRepository.deleteById(id);\n }", "public void deleteByVaiTroID(long vaiTroId);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Sintoma : {}\", id);\n sintomaRepository.delete(id);\n }", "void deleteArgumentById(UUID id);", "@RequestMapping(value = \"/{id}\", method = RequestMethod.DELETE)\n\tpublic ResponseEntity<Valute> obrisiValutu(@PathVariable Long id) {\n\t\tValute valuta = valuteService.delete(id);\n\t return new ResponseEntity<>(valuta, HttpStatus.OK);\n\t}", "public boolean deleteById(Object id);", "public boolean deleteById(Object id);", "void deleteStorageById(Integer id);", "public void delete(String idAvion)\n\t{\n\t}", "public void deleteByChucVuID(long chucVuId);", "@Override\r\n\tpublic void delete(int id) {\n\t\tlibroRepository.deleteById(id);\r\n\t}", "@Override\n\tpublic void deleteById(UUID id) {\n\t\t\n\t}", "void deleteProduct(Long id);", "public void setVariantId(final Integer variantId);", "void deletingCatalogItemById(final Long id);", "public void delete(int id){\n assetRepository.deleteById(id);\n }", "@ResponseStatus(HttpStatus.OK)\n\t@ResponseBody\n\t@DeleteMapping(value = \"/{id}\", produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic void deleteProductoById(@PathVariable(\"id\") Long id) {\n\t\t// Verifica si el producto existe\n\t\tProducto producto = productoService.findById(id);\n\n\t\tInventario invantario = inventarioService.findByCodProducto(producto.getCodProducto());\n\t\tinventarioService.delete(invantario);\n\t}", "void eliminarPedido(UUID idPedido);", "@DeleteMapping(\"/selo-cartaos/{id}\")\n public ResponseEntity<Void> deleteSeloCartao(@PathVariable Long id) {\n log.debug(\"REST request to delete SeloCartao : {}\", id);\n seloCartaoService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Radio : {}\", id);\n radioRepository.delete(id);\n }", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "@RequestMapping(value = \"/oeuvres/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteOeuvre(@PathVariable Long id) {\n log.debug(\"REST request to delete Oeuvre : {}\", id);\n oeuvreRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"oeuvre\", id.toString())).build();\n }", "public boolean remove(int idVoto ) { \n\t\ttry {\n\t\t\t//Voto voto = find(idVoto);\n\t\t\t//System.out.println(\"voto encontrado\"+voto);\n\t\treturn em.createNativeQuery(\"DELETE FROM tie_voto where car_numero = \"+idVoto).executeUpdate() != 0;\n\t\t\t \n\t\t \n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public void deleteById(String id);", "@Override\r\n\tpublic void delete(int idStrumento) {\n\t\tstrumentoRepository.delete(idStrumento);\r\n\t}", "void delete(UUID id);", "void delete(UUID id);", "void delete(UUID id);", "void delete(UUID id);", "@Override\n public int remove(int id) {\n detalleVentaJpaRepository.delete(id);\n return 0;\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete ShopImage : {}\", id);\n shopImageRepository.deleteById(id);\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Jeu : {}\", id);\n jeuRepository.delete(id);\n jeuSearchRepository.delete(id);\n }", "void deleteById(Integer id);", "void deleteById(Integer id);", "@Override\n\tpublic void deleteById(Integer id) {\n\t\t\n\t}", "void deleteAveria(Long idAveria) throws BusinessException;", "public void delete(Integer id) {\n\r\n\t}", "public void deletePagoById(String id){\n pagoMongoRepository.deleteById(id);\n }", "@Override\n\tpublic void delete(Integer id) {\n\n\t}", "@Override\n\tpublic void deleteById(String id) throws Exception {\n\t\t\n\t}", "public void deleteById(Integer id) {\n\n\t}", "@RequestMapping(value = \"/instEmpEduQualis/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteInstEmpEduQuali(@PathVariable Long id) {\n log.debug(\"REST request to delete InstEmpEduQuali : {}\", id);\n instEmpEduQualiRepository.delete(id);\n instEmpEduQualiSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"instEmpEduQuali\", id.toString())).build();\n }", "@Override\n public void deletePartida(String idPartida) {\n template.opsForHash().delete(idPartida, \"jugador1\");\n template.opsForHash().delete(idPartida, \"jugador2\");\n template.opsForSet().remove(\"partidas\",idPartida);\n }", "@Override\r\n\tpublic void delete(Integer id) {\n\r\n\t}", "@DeleteMapping(\"/productos/{id}\")\n @Timed\n public ResponseEntity<Void> deleteProducto(@PathVariable Long id) {\n log.debug(\"REST request to delete Producto : {}\", id);\n productoRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "void deletePokemon(Long pokemonId);", "@Override\n\tpublic void deleteById(String id) {\n\t\t\n\t}", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "public abstract void deleteByID( int id);", "public void deleteOne(String id) {\n\t\t mongoTemplate.remove(new Query(Criteria.where(\"id\").is(id)), AsxDataVO.class); \r\n\t}", "public boolean delete(String id);", "public boolean delete(String id);", "@Override\n\tpublic void delete(Serializable id) {\n\n\t}", "@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}", "ResponseEntity deleteById(UUID id);", "@Override\n\tpublic void deletebyid(Integer id) {\n\t\t\n\t}", "public boolean supprimerProduit(int id, Magasin mag);", "@Override\n public void delete(Long id) {\n log.debug(\"Solicitud para obtener borrar ProductPurchase : {}\", id);\n productPurchaseRepository.deleteById(id);\n }", "@Override\n\tpublic void delete(Integer id) {\n\t\t\n\t}", "@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}", "public void eliminar(Long id) throws AppException;", "@Override\n\tpublic void deleteById(Integer id) {\n\t\tfacturaRepository.deleteById(id);\n\t\t\n\t}", "void delete(Integer id);", "void delete(Integer id);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete TypeVehicule : {}\", id);\n typeVehiculeRepository.deleteById(id);\n }", "int deleteContent(@Param(\"id\") long id);", "@Override\n\t@Transactional // de escritura\n\tpublic void deleteById(Long id) {\n\t\tproductoDao.deleteById(id);\n\t}", "@Override\n\tpublic void delete(String id) throws Exception {\n\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\t\r\n\t}", "void delete( Integer id );", "@Override\n\tpublic void deleteById(Long id) {\n\n\t}", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "void deleteById(final String id);", "@RequestMapping(method = RequestMethod.DELETE, value = \"/{id}\",\n produces = \"application/json\", headers = \"Accept=application/json\" )\n public ResponseEntity<?> deleteInventoryByProductId(@PathVariable(\"id\") Integer id){\n Product product = productService.getProductById(id);\n\n //Desassociando o produto do estoque\n Inventory inventory = inventoryService.getInventoryItemByProductId(id);\n product.setInventory(null);\n inventory.setProduct(product);\n inventoryService.updateInventoryItem(inventory);\n\n //Deletando o produto do estoque\n inventoryService.deleteInventoryItem(inventory.getInventoryId());\n\n return ResponseEntity.noContent().build();\n }", "@DeleteMapping(path = \"{id}\")\n public ResponseEntity<?> deleteById(@PathVariable Long id) {\n prescriptionService.deleteById(id);\n\n return ResponseEntity.ok().body(\"Prescription with id: \" + id + \" deleted!\");\n }", "@RequestMapping(method=RequestMethod.DELETE, value = \"/item/{id}\")\n public void deleteItem(@PathVariable (name = \"id\") UUID id)\n {\n this.itemRepository.deleteItem(id);\n }", "@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"deleteItem\")\n\tpublic ZuelResult deleteItem(Long id) throws Exception {\n\t\treturn service.deleteItem(id);\n\t}", "public void deleteById(Long id);", "@Override\n\tpublic void deleteById(Integer id) throws Exception {\n\t\topcionRepository.deleteById(id);\n\t}", "public void delete(int id) \n{ \n\ttvShowRepo.deleteById(id); \n}", "@Override\n public void delete(Long id) throws Exception {\n\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete VanBan : {}\", id);\n vanBanRepository.deleteById(id);\n vanBanSearchRepository.deleteById(id);\n }", "@Override\n\t@Transactional\n\tpublic void deleteById(Integer id) throws Exception {\n\t\tdetalleCarritoRepository.deleteById(id);\n\t}", "@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}", "@Override\n\tpublic void delete(Serializable id) {\n\t\t\n\t}" ]
[ "0.6570798", "0.6536426", "0.64729863", "0.64326125", "0.63978136", "0.6375414", "0.6375414", "0.63285154", "0.6311697", "0.63111997", "0.62982714", "0.6297828", "0.628427", "0.62710947", "0.6257726", "0.62257737", "0.622321", "0.62207633", "0.6220725", "0.62154096", "0.6209989", "0.6209989", "0.6209989", "0.62087464", "0.61990017", "0.61926305", "0.6192527", "0.6189477", "0.6189477", "0.6189477", "0.6189477", "0.6184368", "0.61717606", "0.61707073", "0.61690265", "0.61690265", "0.6163996", "0.61454403", "0.6137379", "0.61355865", "0.613046", "0.6128485", "0.61283004", "0.6122257", "0.6121455", "0.61114854", "0.61078566", "0.61074495", "0.6103661", "0.6102363", "0.6102363", "0.6102363", "0.6102363", "0.6102363", "0.6102363", "0.6102363", "0.6102363", "0.6102363", "0.6102363", "0.61000586", "0.6096831", "0.60956496", "0.60956496", "0.60943913", "0.60924864", "0.60923827", "0.60892856", "0.60891974", "0.60842055", "0.60840356", "0.6082153", "0.6074133", "0.6073597", "0.6072059", "0.6072059", "0.6071449", "0.60692704", "0.606902", "0.6064417", "0.60643333", "0.6061331", "0.60613066", "0.605884", "0.605884", "0.605884", "0.605884", "0.605884", "0.6057767", "0.6057696", "0.60560256", "0.60558826", "0.6053607", "0.6050216", "0.6048147", "0.6046196", "0.6041076", "0.6041031", "0.60314053", "0.60300475", "0.6027288" ]
0.7195591
0
method: createVariant Tworzy wariant
public VariantDto createVariant(CreateUpdateVariantDto dto) throws VariantDataInvalid { if(dto.getVariant().isEmpty()) { throw new VariantDataInvalid(); } Variant variantToSave = mapper.toModel(dto); Variant savedVariant = variantRepository.save(variantToSave); return mapper.toDto(savedVariant); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected IVariant createVariant(IMachineRoot mch, String expression)\n\t\t\tthrows RodinDBException {\n\t\tIVariant variant = mch.createChild(IVariant.ELEMENT_TYPE, null, null);\n\t\tvariant.setExpressionString(expression, null);\n\t\treturn variant;\n\t}", "private Variant setVariantsFromApi(VariantsModel variantsModel, Long id, Long productID) {\n return new Variant(id,\n variantsModel.getId(),\n productID,\n variantsModel.getColor(),\n variantsModel.getSize(),\n variantsModel.getPrice()\n );\n }", "ItemVariant getItemVariant(Integer itemVariantId);", "@Generated(value = \"io.vrap.rmf.codegen.rendering.CoreCodeGenerator\", comments = \"https://github.com/commercetools/rmf-codegen\")\n@JsonDeserialize(as = ProductVariantImpl.class)\npublic interface ProductVariant {\n\n /**\n * <p>The product that contains this variant.</p>\n * @return product\n */\n @NotNull\n @Valid\n @JsonProperty(\"product\")\n public ProductReference getProduct();\n\n /**\n * <p>The state of the product variant.</p>\n * @return staged\n */\n @NotNull\n @JsonProperty(\"staged\")\n public Boolean getStaged();\n\n /**\n * <p>The id of the product variant.</p>\n * @return variantId\n */\n @NotNull\n @JsonProperty(\"variantId\")\n public Integer getVariantId();\n\n /**\n * <p>The product that contains this variant.</p>\n * @param product value to be set\n */\n\n public void setProduct(final ProductReference product);\n\n /**\n * <p>The state of the product variant.</p>\n * @param staged value to be set\n */\n\n public void setStaged(final Boolean staged);\n\n /**\n * <p>The id of the product variant.</p>\n * @param variantId value to be set\n */\n\n public void setVariantId(final Integer variantId);\n\n /**\n * factory method\n * @return instance of ProductVariant\n */\n public static ProductVariant of() {\n return new ProductVariantImpl();\n }\n\n /**\n * factory method to create a shallow copy ProductVariant\n * @param template instance to be copied\n * @return copy instance\n */\n public static ProductVariant of(final ProductVariant template) {\n ProductVariantImpl instance = new ProductVariantImpl();\n instance.setProduct(template.getProduct());\n instance.setStaged(template.getStaged());\n instance.setVariantId(template.getVariantId());\n return instance;\n }\n\n /**\n * factory method to create a deep copy of ProductVariant\n * @param template instance to be copied\n * @return copy instance\n */\n @Nullable\n public static ProductVariant deepCopy(@Nullable final ProductVariant template) {\n if (template == null) {\n return null;\n }\n ProductVariantImpl instance = new ProductVariantImpl();\n instance.setProduct(com.commercetools.ml.models.common.ProductReference.deepCopy(template.getProduct()));\n instance.setStaged(template.getStaged());\n instance.setVariantId(template.getVariantId());\n return instance;\n }\n\n /**\n * builder factory method for ProductVariant\n * @return builder\n */\n public static ProductVariantBuilder builder() {\n return ProductVariantBuilder.of();\n }\n\n /**\n * create builder for ProductVariant instance\n * @param template instance with prefilled values for the builder\n * @return builder\n */\n public static ProductVariantBuilder builder(final ProductVariant template) {\n return ProductVariantBuilder.of(template);\n }\n\n /**\n * accessor map function\n * @param <T> mapped type\n * @param helper function to map the object\n * @return mapped value\n */\n default <T> T withProductVariant(Function<ProductVariant, T> helper) {\n return helper.apply(this);\n }\n\n /**\n * gives a TypeReference for usage with Jackson DataBind\n * @return TypeReference\n */\n public static com.fasterxml.jackson.core.type.TypeReference<ProductVariant> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<ProductVariant>() {\n @Override\n public String toString() {\n return \"TypeReference<ProductVariant>\";\n }\n };\n }\n}", "public Builder setVariant(String variant) {\n/* 1620 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "void VariantInit(VARIANT pvarg);", "VariationPoint createVariationPoint();", "private Variant getVariantToIndex(Variant variant) {\n VariantBuilder variantBuilder = new VariantBuilder(variant.getChromosome(),\n variant.getStart(),\n variant.getEnd(),\n variant.getReference(),\n variant.getAlternate());\n\n variantBuilder.setAttributes(parseInfoAttributes(variant));\n\n // Samples data contains the phase\n if (variant.getStudies() != null && !variant.getStudies().isEmpty()) {\n variantBuilder.setSamplesData(variant.getStudies().get(0).getSamplesData());\n variantBuilder.setFormat(variant.getStudies().get(0).getFormat());\n }\n\n return variantBuilder.build();\n }", "public ChineseVariant()\n\t{\n\t\t/**\n\t\t * variants list contain the variant type that this variant can contaige\n\t\t */\n\t}", "private void _writeVariant(final Variant variant) throws IOException {\n _out.startObject();\n _writeReifier(variant);\n _writeItemIdentifiers(variant);\n _writeScope(variant);\n _writeDatatypeAware(variant);\n _out.endObject();\n }", "@Allow(Permission.UpdateCatalog)\n public List<ProductVariant> createProductVariants(\n List<CreateProductVariantInput> input, DataFetchingEnvironment dfe) {\n RequestContext ctx = RequestContext.fromDataFetchingEnvironment(dfe);\n List<ProductVariantEntity> productVariantEntities = this.productVariantService.create(ctx, input);\n return productVariantEntities.stream()\n .map(variantEntity -> BeanMapper.map(variantEntity, ProductVariant.class))\n .collect(Collectors.toList());\n }", "void VariantInit(VARIANT.ByReference pvarg);", "VariantConditionModel createInstanceOfVariantConditionModel();", "public void setVariantId(final Integer variantId);", "void addVariant(PushApplication pushApp, Variant variant);", "public static ProductVariant of(final ProductVariant template) {\n ProductVariantImpl instance = new ProductVariantImpl();\n instance.setProduct(template.getProduct());\n instance.setStaged(template.getStaged());\n instance.setVariantId(template.getVariantId());\n return instance;\n }", "public Variant(final Variant var) {\n filter = var.filter;\n qual = var.qual;\n info = var.info;\n varId = var.varId;\n chr = var.chr;\n pos = var.pos;\n referenceAlleleLength = var.referenceAlleleLength;\n ref = var.ref == null ? null : var.ref.clone();\n refDeleted = var.refDeleted;\n clippedSequence = var.clippedSequence;\n if (var.alts != null) {\n alts = new Alt[var.alts.length];\n for (int i = 0; i < var.alts.length; i++) {\n if (var.alts[i] != null) {\n alts[i] = var.alts[i].copy();\n } else {\n alts[i] = null;\n }\n }\n }\n\n this.chr2 = var.chr2;\n this.pos2 = var.pos2;\n this.end2 = var.end2;\n paternal = var.paternal;\n maternal = var.maternal;\n isPhased = var.isPhased;\n rand = var.rand;\n isinv = var.isinv;\n isLengthImprecise = var.isLengthImprecise;\n traid = var.traid;\n compositions = var.getCompositions();\n }", "public int getVariantId() {\n return variantId_;\n }", "public int[] getVariantMeta() { return new int[] { 0 }; }", "public DataResourceBuilder _variant_(Resource _variant_) {\n this.dataResourceImpl.setVariant(_variant_);\n return this;\n }", "VariationPointName createVariationPointName();", "protected abstract T getResource(ItemVariant currentVariant);", "public Object createLanguageSpecificVariant(String language)\n {\n LSData d = new LSData();\n d.language = language;\n return new ServiceDescriptionImpl(siCache, data, d);\n }", "public Builder addVariant(Variant variant) {\n variants.add(variant);\n return this;\n }", "public String getVariant() {\n/* 292 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Get\n public Representation represent(Variant variant) throws ResourceException {\n Representation resultRepresentation = null;\n try {\n //resultRepresentation = new StringRepresentation(\n // \t\t new JaxbRepresentation(MediaType.TEXT_XML, this.student).getText());\n resultRepresentation =\n new JaxbRepresentation(MediaType.TEXT_XML, this.student);\n } catch (Exception ex) {\n logger.log(Level.SEVERE, ex.toString(), ex);\n throw new ResourceException(Status.SERVER_ERROR_INTERNAL, ex);\n }\n return resultRepresentation; \n }", "public int getVariantId() {\n return variantId_;\n }", "public static ProductVariantBuilder builder() {\n return ProductVariantBuilder.of();\n }", "public static ProductVariantBuilder builder(final ProductVariant template) {\n return ProductVariantBuilder.of(template);\n }", "public abstract void createVMByISO(String vmUuid, String isoUuid,\r\n\t\t\tString srUuid, String name, int cpu, int memory, int volumeSize,\r\n\t\t\tString poolUuid, int userId);", "public TileVariant getBaseVariant() {\r\n\t\treturn baseVariant;\r\n\t}", "Traditional createTraditional();", "public void registerVariants(){\n\t\tModelResourceLocation[] variants = new ModelResourceLocation[metaNames.length];\r\n\t\tfor(int i = 0; i < metaNames.length; i++){\r\n\t\t\tvariants[i] = new ModelResourceLocation(ElementsMod.MODID + \":\" + getNameFromDamage(i), \"inventory\");\r\n\t\t}\r\n\t\tModelBakery.registerItemVariants(ItemManager.apple, variants);\r\n\t}", "HRESULT VariantCopy(Pointer pvargDest, VARIANT pvargSrc);", "public void addVariant(Feature feature){\r\n\t\tthis.alternativeFeatureGroup.get(0).addFeature(feature);\r\n\t}", "public SimilarProductBuilder variantId(@Nullable final Long variantId) {\n this.variantId = variantId;\n return this;\n }", "@Override\n\tpublic void createRelease(Version version) {\n\n\t}", "Vaisseau createVaisseau();", "public static String getVariant(String localeID) {\n/* 300 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String[] getVariantNames() { return new String[] { \"normal\" }; }", "@Override\r\n\tpublic ConventionStage create(ConventionStage obj) {\n\t\ttry {\r\n\t\t\tStatement request = this.connect.createStatement();\r\n\t\t\tString requete = \"INSERT INTO \" + ConventionStageDAO.TABLE + \" (NUM_CONVENTION, \"\r\n\t\t\t\t\t+ \"DATESIGNATURECONVENTION, \" + \"DUREECONVENTION ) \" + \"VALUES (\" + \"'\"\r\n\t\t\t\t\t+ obj.getNumeroConvention() + \"',\" + obj.getDateSignatureConvention() + \",\"\r\n\t\t\t\t\t+ \"'\" + obj.getDureeConvention() + \"')\";\r\n\r\n\t\t\trequest.executeUpdate(requete);\r\n\t\t\trequest.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn obj;\r\n\t\t\r\n\t}", "@Override\n\tpublic boolean create(Langues obj) {\n\t\treturn false;\n\t}", "@Override\n public boolean create(Revue objet) {\n return false;\n }", "public VariantDto updateVariant(CreateUpdateVariantDto dto, String id) throws VariantNotFound {\n Variant variant = variantRepository.findById(id).orElseThrow(() -> new VariantNotFound());\n\n variant.setQuestion(dto.getQuestion());\n variant.setVariant(dto.getVariant());\n\n return mapper.toDto(variant);\n }", "abstract public Vcard createVcard();", "public Builder setVariantId(int value) {\n\n variantId_ = value;\n onChanged();\n return this;\n }", "@Override\r\n\tpublic void creerTVA(TVA t) {\n\t\t\r\n\t}", "@Override public PVariant Execute(PScopeStack scope) throws Exception\n {\n return PVariant.BinaryOp(\n\t\t\targs[0].Execute(scope),\n\t\t\tm_binType,\n\t\t\targs[1].Execute(scope)\n\t\t);\n }", "public VariantDto getVariantById(String id) throws VariantNotFound {\n return variantRepository.findById(id)\n .map(q -> mapper.toDto(q)).orElseThrow(() -> new VariantNotFound());\n }", "@Override\n\tpublic Item create() {\n\t\tLOGGER.info(\"Shoe Name\");\n\t\tString item_name = util.getString();\n\t\tLOGGER.info(\"Shoe Size\");\n\t\tdouble size = util.getDouble();\n\t\tLOGGER.info(\"Set Price\");\n\t\tdouble price = util.getDouble();\n\t\tLOGGER.info(\"Number in Stock\");\n\t\tlong stock = util.getLong();\n\t\tItem newItem = itemDAO.create(new Item(item_name, size, price, stock));\n\t\tLOGGER.info(\"\\n\");\n\t\treturn newItem;\n\t}", "public static com.fasterxml.jackson.core.type.TypeReference<ProductVariant> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<ProductVariant>() {\n @Override\n public String toString() {\n return \"TypeReference<ProductVariant>\";\n }\n };\n }", "public Volume prepareVolume(Project project, VirtualArray varray,\n VirtualPool vpool, String size, Recommendation recommendation, String label, BlockConsistencyGroup consistencyGroup,\n String token, boolean remote, URI protectionStorageSystem,\n Volume.PersonalityTypes personality, String rsetName, String internalSiteName, String rpCopyName, URI srcVolumeId,\n VpoolProtectionVarraySettings protectionSettings) {\n StoragePool pool = null;\n Volume volume = new Volume();\n volume.setId(URIUtil.createId(Volume.class));\n\n if (personality.equals(Volume.PersonalityTypes.METADATA)) {\n URI vpoolUri = (protectionSettings != null ? protectionSettings.getJournalVpool() : URI.create(vpool.getJournalVpool()));\n vpool = _dbClient.queryObject(VirtualPool.class, vpoolUri);\n }\n volume.setLabel(label);\n volume.setCapacity(SizeUtil.translateSize(size));\n volume.setThinlyProvisioned(VirtualPool.ProvisioningType.Thin.toString().equalsIgnoreCase(vpool.getSupportedProvisioningType()));\n volume.setVirtualPool(vpool.getId());\n volume.setProject(new NamedURI(project.getId(), volume.getLabel()));\n volume.setTenant(new NamedURI(project.getTenantOrg().getURI(), volume.getLabel()));\n volume.setVirtualArray(varray.getId());\n if (null != recommendation.getSourcePool()) {\n pool = _dbClient.queryObject(StoragePool.class, recommendation.getSourcePool());\n if (null != pool) {\n volume.setProtocol(new StringSet());\n volume.getProtocol().addAll(\n VirtualPoolUtil.getMatchingProtocols(vpool.getProtocols(), pool.getProtocols()));\n }\n }\n volume.setPersonality(personality.toString());\n\n // Set all Journal Volumes to have the INTERNAL_OBJECT flag.\n if (personality.equals(Volume.PersonalityTypes.METADATA)) {\n volume.addInternalFlags(Flag.INTERNAL_OBJECT);\n volume.addInternalFlags(Flag.SUPPORTS_FORCE);\n volume.setAccessState(Volume.VolumeAccessState.NOT_READY.name());\n } else if (personality.equals(Volume.PersonalityTypes.SOURCE)) {\n volume.setAccessState(Volume.VolumeAccessState.READWRITE.name());\n volume.setLinkStatus(Volume.LinkStatus.OTHER.name());\n } else if (personality.equals(Volume.PersonalityTypes.TARGET)) {\n volume.setAccessState(Volume.VolumeAccessState.NOT_READY.name());\n volume.setLinkStatus(Volume.LinkStatus.OTHER.name());\n }\n\n volume.setProtectionController(protectionStorageSystem);\n volume.setRSetName(rsetName);\n volume.setInternalSiteName(internalSiteName);\n volume.setRpCopyName(rpCopyName);\n URI storagePoolUri = null;\n URI virtualArrayUri = varray.getId();\n\n if (NullColumnValueGetter.isNotNullValue(personality.toString())) {\n if (personality.equals(Volume.PersonalityTypes.SOURCE)) {\n storagePoolUri = recommendation.getSourcePool();\n } else {\n if (remote) {\n Protection protectionInfo = getProtectionInfo(varray, recommendation);\n if (personality.equals(Volume.PersonalityTypes.METADATA)) {\n // remote copy journal\n storagePoolUri = protectionInfo.getTargetJournalStoragePool();\n virtualArrayUri = protectionInfo.getTargetJournalVarray();\n } else {\n // remote copy\n storagePoolUri = protectionInfo.getTargetStoragePool();\n }\n } else {\n if (personality.equals(Volume.PersonalityTypes.METADATA)) {\n // protection settings is null only for production copy journal\n if (protectionSettings != null) {\n // local copy journal\n Protection protectionInfo = getProtectionInfo(varray, recommendation);\n storagePoolUri = protectionInfo.getTargetJournalStoragePool();\n virtualArrayUri = protectionInfo.getTargetJournalVarray();\n } else {\n // production copy journal\n storagePoolUri = ((RPProtectionRecommendation) recommendation).getSourceJournalStoragePool();\n virtualArrayUri = ((RPProtectionRecommendation) recommendation).getSourceJournalVarray();\n }\n } else if (personality.equals(Volume.PersonalityTypes.TARGET)) {\n // local copy\n Protection protectionInfo = getProtectionInfo(varray, recommendation);\n storagePoolUri = protectionInfo.getTargetStoragePool();\n }\n }\n }\n }\n\n volume.setVirtualArray(virtualArrayUri);\n volume.setPool(storagePoolUri);\n volume.setStorageController(_dbClient.queryObject(StoragePool.class, storagePoolUri).getStorageDevice());\n\n volume.setOpStatus(new OpStatusMap());\n Operation op = new Operation();\n op.setResourceType(ResourceOperationTypeEnum.CREATE_BLOCK_VOLUME);\n op.setStartTime(Calendar.getInstance());\n volume.getOpStatus().put(token, op);\n\n _dbClient.createObject(volume);\n\n // Keep track of target volumes associated with the source volume\n if (srcVolumeId != null) {\n Volume srcVolume = _dbClient.queryObject(Volume.class, srcVolumeId);\n if (srcVolume.getRpTargets() == null) {\n srcVolume.setRpTargets(new StringSet());\n }\n srcVolume.getRpTargets().add(volume.getId().toString());\n _dbClient.persistObject(srcVolume);\n }\n\n return volume;\n }", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "private void setUpVAO() {\n\t\tfloat[] vertices = { -1, -1, -1, 1, 1, -1, 1, -1, -1, 1, 1, 1 };\n\t\tquad = Loader.loadToVAO(vertices, 2);\n\t}", "Vehicle createVehicle();", "Vehicle createVehicle();", "Stone create();", "WithCreate withHyperVGeneration(HyperVGeneration hyperVGeneration);", "Slot createSlot();", "Quantity createQuantity();", "@Nullable\n public static ProductVariant deepCopy(@Nullable final ProductVariant template) {\n if (template == null) {\n return null;\n }\n ProductVariantImpl instance = new ProductVariantImpl();\n instance.setProduct(com.commercetools.ml.models.common.ProductReference.deepCopy(template.getProduct()));\n instance.setStaged(template.getStaged());\n instance.setVariantId(template.getVariantId());\n return instance;\n }", "Snapshot create();", "@Override\r\n\tpublic boolean create(Jeu obj) {\n\t\treturn false;\r\n\t}", "SpaceInvaderTest_test_VaisseauAvance_DeplacerVaisseauVersLaDroite createSpaceInvaderTest_test_VaisseauAvance_DeplacerVaisseauVersLaDroite();", "private void initialiseFromJson(){\n try {\n\t\t\t// The type adapter is only needed if you have a CharSequence in your model. If you're just using strings\n \t// you can just use Gson gson = new Gson();\n Gson gson = new GsonBuilder().registerTypeAdapter(CharSequence.class, new CharSequenceDeserializer()).create();\n Reader reader = new InputStreamReader(getAssets().open(VARIANTS_FILE));\n BaseVariants baseVariants = gson.fromJson(reader, BaseVariants.class);\n Neanderthal.initialise(this, baseVariants.variants, baseVariants.defaultVariant);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "private static void addTV() {\n\n TV newTV = new TV(); // create new TV object\n\n String TVMake = Validate.readString(ASK_MAKE_TV); // Ask for the make and store input\n\n newTV.setMake(TVMake); // set make of TV based on user input\n\n int screenSize = Validate.readInt(ASK_SCREENSIZE_TV); // Ask for the screen size\n\n newTV.setScreenSize(screenSize); // set screensize of TV based on user input\n\n int type = Validate.readInt(ASK_TYPE_TV,3); // Ask for type of TV\n\n newTV.setType(type); // set type of TV based on user input\n\n boolean capableOf3D = Validate.readBoolean(ASK_3D_TV); // Ask if 3d compatible\n\n newTV.set3DCapability(capableOf3D); // set 3d capability of TV based on user input\n\n double price = Validate.readDouble(ASK_PRICE_TV); // Ask for price of TV\n\n newTV.setPrice(price); // set price of TV based on user input\n\n ProductDB.addProduct(newTV); // add new TV to the product DB\n\n newTV.saveTV(); // saves new tv to productDB text file\n\n }", "@NotNull\n @JsonProperty(\"variantId\")\n public Integer getVariantId();", "Variable createVariable();", "Variable createVariable();", "WithCreate withSku(SnapshotSku sku);", "public static void createBundle() {\r\n\t\tint finished = 1;\r\n\t\tSystem.out.println(\"createBundle\");\r\n\r\n\t\tBundle b = new Bundle(index); // send id in\r\n\t\tList<Path> pathList = new ArrayList<Path>();\r\n\t\tContainerNII bundleNii = new ContainerNII();\r\n\t\tPath path;\r\n\t\t\r\n\t\tinsertNIIValues(bundleNii, strBundle);\r\n\t\tb.setNii(bundleNii);\r\n\r\n\t\twhile (finished == 1){\r\n\t\t\tpath = new Path();\r\n\t\t\tcreatePath(path);\r\n\t\t\tpathList.add(path);\r\n\t\t\tfinished = checkContinue(\"path\");\r\n\t\t}\t\t\r\n\t\tb.setPath(pathList);\r\n\t\t// Add bundle to map\r\n\t\tbundles.put(b.getId(), b);\r\n\t\tindex++;\r\n\t}", "protected abstract void makeItem();", "@Override\n\tpublic void create(ReplyVO4 vo) throws Exception {\n\t\tsession.insert(namespace+\".create4\",vo);\n\t\n\t}", "SubtitleType createSubtitleType();", "public Builder setVariant(String variant) {\n try {\n _locbld.setVariant(variant);\n } catch (InvalidLocaleIdentifierException e) {\n throw new IllegalArgumentException(e);\n }\n return this;\n }", "SpaceInvaderTest_test_VaisseauAvancePartiellement_DeplacerVaisseauVersLaDroite createSpaceInvaderTest_test_VaisseauAvancePartiellement_DeplacerVaisseauVersLaDroite();", "@Test\n public void Oriental()throws ParseException\n {\n System.out.println(\"Oriental Dish\");\n //Elementos del plato\n OrientalDish platoOriental;\n platoOriental = new OrientalDish(0.0);\n platoOriental.setBase(new Product(1, \"Shop Suey\", 5000d));\n platoOriental.addOption(new Product(4, \"Pollo Agridulce\", 5800d));\n platoOriental.setSize(Size.FAMILY);\n \n DishBuilder orientalBuilder = new OrientalDishBuilder();\n orientalBuilder.setDish(platoOriental);\n \n DishDirector director = new DishDirector(orientalBuilder);\n //director.create();\n Dish dish = director.getDish();\n assertEquals(32400, dish.getPrice()); \n }", "public abstract void create();", "void crear(Tonelaje tonelaje);", "WithCreate withSku(SkuName skuName);", "QualityScenario createQualityScenario();", "public createVertice_result(createVertice_result other) {\n __isset_bitfield = other.__isset_bitfield;\n this.success = other.success;\n if (other.isSetKau()) {\n this.kau = new KeyAlreadyUsed(other.kau);\n }\n if (other.isSetRiu()) {\n this.riu = new ResourceInUse(other.riu);\n }\n }", "abstract Object build();", "private void insert(String collection, List<Variant> variants) throws IOException, SolrException {\n if (variants != null && CollectionUtils.isNotEmpty(variants)) {\n List<VariantSearchModel> variantSearchModels = variantSearchToVariantConverter.convertListToStorageType(variants);\n\n if (!variantSearchModels.isEmpty()) {\n UpdateResponse updateResponse;\n try {\n updateResponse = solrManager.getSolrClient().addBeans(collection, variantSearchModels);\n if (updateResponse.getStatus() == 0) {\n solrManager.getSolrClient().commit(collection);\n }\n } catch (SolrServerException e) {\n throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, e.getMessage(), e);\n }\n }\n }\n }", "public IAspectVariable<V> createNewVariable(PartTarget target);", "public void testRestoreVU() {\r\n List<VariantReading> rdgs = createReadings();\r\n \r\n VariationUnit vu2 = repo.getVURepository().find(vu.getId());\r\n assertFalse(vu2 == vu);\r\n \r\n compareReadings(rdgs, vu2.getReadings());\r\n }", "public abstract Quantity<Q> create(Number value, Unit<Q> unit);", "private GeneProduct createGeneProduct( Gene gene ) {\n GeneProduct geneProduct = GeneProduct.Factory.newInstance();\n geneProduct.setGene( gene );\n geneProduct.setName( gene.getName() );\n geneProduct.setDescription( \"Gene product placeholder\" );\n return geneProduct;\n }", "public synchronized void setAllVariantInfo(int tagIndex, byte[][] defAndOffset) {\n myHDF5.writeByteMatrixBlockWithOffset(GBSHDF5Constants.VARIANTDEF, new byte[][]{defAndOffset[0]}, tagIndex, 0);\n myHDF5.writeByteMatrixBlockWithOffset(GBSHDF5Constants.VARIANTPOSOFF, new byte[][]{defAndOffset[1]}, tagIndex, 0);\n variantDefs[tagIndex]=defAndOffset[1];\n variantOffsets[tagIndex]=defAndOffset[1];\n }", "public abstract void createGenome(Genome newGenome);", "Argument createArgument();", "protected interface Variation {\r\n String vary(String root, int n) throws Exception;\r\n }", "Recipe createRecipe(String title, String description, String ingredients, String instructions, byte[] photo, byte[] photoSmall);", "void createSportItem (String name, String description, double price, String sportType);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Slot createSlot();", "@Override\n\tpublic void create() {\n\n\t}" ]
[ "0.67645264", "0.62290543", "0.615314", "0.6022129", "0.60093653", "0.59885645", "0.5865447", "0.5853629", "0.579842", "0.5747096", "0.5732234", "0.5668693", "0.55685145", "0.5464474", "0.54471874", "0.54431427", "0.5426205", "0.542245", "0.53919595", "0.5382653", "0.53579277", "0.53502303", "0.5320383", "0.5308728", "0.53028864", "0.52941763", "0.5293101", "0.52769405", "0.5215919", "0.52130574", "0.5211779", "0.5146754", "0.51362264", "0.51141304", "0.50962865", "0.5095702", "0.50812215", "0.5078945", "0.5062584", "0.50521785", "0.5034445", "0.50332797", "0.49899438", "0.49795642", "0.49791515", "0.49747235", "0.49724257", "0.49497482", "0.4938748", "0.4933471", "0.49282938", "0.49159724", "0.48882768", "0.48882768", "0.48882768", "0.48882768", "0.48838735", "0.4882888", "0.4882888", "0.48781186", "0.48673463", "0.486524", "0.48528948", "0.48524418", "0.4847876", "0.48450288", "0.48264694", "0.4825874", "0.48222923", "0.4815415", "0.4813974", "0.48100567", "0.48100567", "0.4792482", "0.47896838", "0.47776127", "0.47768733", "0.47736308", "0.47720477", "0.47611502", "0.47575215", "0.4755948", "0.4754556", "0.47501355", "0.47489187", "0.474639", "0.47426125", "0.47388083", "0.4735869", "0.47318769", "0.47261852", "0.4725184", "0.4717964", "0.47165984", "0.47095954", "0.4701096", "0.4692748", "0.46912292", "0.46852797", "0.46788096" ]
0.6349902
1
method: updateVariant Aktualizuje wariant
public VariantDto updateVariant(CreateUpdateVariantDto dto, String id) throws VariantNotFound { Variant variant = variantRepository.findById(id).orElseThrow(() -> new VariantNotFound()); variant.setQuestion(dto.getQuestion()); variant.setVariant(dto.getVariant()); return mapper.toDto(variant); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void updateProduct(ProductVO vo) {\n\n\t}", "void editAssetValue(int newVal);", "@Override\n\tpublic Item update() {\n\t\t\n\t\treadAll();\n\t\n\t\tLOGGER.info(\"State the shoe name you wish to update\");\n\t\tString name = util.getString().toLowerCase();;\n\t\tLOGGER.info(\"State the size you wish to update\");\n\t\tdouble size = util.getDouble();\n\t\tLOGGER.info(\"Change price\");\n\t\tdouble price = util.getDouble();\n\t\tLOGGER.info(\"Change amount in stock\");\n\t\tlong stock = util.getLong();\n\t\tLOGGER.info(\"\\n\");\n\t\treturn itemDAO.update(new Item(name,size,price,stock));\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void update(Unidade obj) {\n\n\t}", "public void update(Avion avion)\n\t{\n\t}", "@Override\n public boolean update(Revue objet) {\n return false;\n }", "public void update(){}", "public void update(){}", "public void update(BoardItemVersion object) {\n\n\t}", "public void setVariantId(final Integer variantId);", "@Override\n\tpublic void update(Recipe entity) {\n\t\t\n\t}", "@Override\n\tpublic void updatePet(PetVO vo) {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\tobj.update();\n\t}", "@Override\n public int update(J34SiscomexMercadoriaAdi j34SiscomexMercadoriaAdi) {\n return super.doUpdate(j34SiscomexMercadoriaAdi);\n }", "ItemVariant getItemVariant(Integer itemVariantId);", "@Override\n public int update(DataDict stu)\n {\n int rtn = 0;\n try\n {\n String sql = \"update data_dict set \" + \" dict_parent_id =\" + stu.getSuperId() + \", \" + \" dict_index = \"\n + stu.getIndex() + \", \" + \" dict_name = '\" + stu.getName() + \"', \" + \" dict_value = '\"\n + stu.getValue() + \"' \";\n\n sql += \" where dict_id = \" + stu.getId();\n DBUtil db = new DBUtil();\n db.openConnection();\n rtn = db.execCommand(sql);\n db.close();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n return rtn;\n }", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "protected abstract void update();", "protected abstract void update();", "public void updateInventory ( ) {\n\t\texecute ( handle -> handle.updateInventory ( ) );\n\t}", "public boolean update(BaseVo vo) {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n\tpublic boolean update(Langues obj) {\n\t\treturn false;\n\t}", "abstract void updateStructure();", "@Override\n public void update() {\n updateHealth();\n updateActiveWeapon();\n updateAmmunition();\n updateWaveCounter();\n updateReloading();\n }", "@Override\r\n\tpublic void update(Object object) {\n\t\t\r\n\t}", "public void update()\n\t{\n\t\tsuper.update();\n\t}", "private static void updateBundle() {\r\n\t\tSystem.out.println(\"updateBundle\");\r\n\t\tint id = -1;\r\n\t\t\r\n\t\tif (bundles.isEmpty()){\r\n\t\t\tSystem.out.println(\"There are no bundls added.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the id for the bundle you want to change: \\n\");\r\n\t\t\t\t\r\n\t\tid = insertInteger(\"id\");\r\n\t\tif (!bundles.containsKey(id)){\r\n\t\t\tSystem.out.println(\"There are no bundles with id \");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tBundle b = bundles.get(id);\r\n\t\tprintBundle(b);\r\n\t\tSystem.out.println(\"What do you want to change? \");\r\n\t\t\r\n\t\tint operation = 0;\r\n\t\twhile ((operation = insertInteger(\" \")) != 4){\r\n\t\t\tif (operation == 1){\r\n\t\t\t\tSystem.out.println(\"Change bundle \");\r\n\t\t\t} else if (operation == 2){\r\n\t\t\t\tSystem.out.println(\"Change path \");\r\n\t\t\t} else if (operation == 3){\r\n\t\t\t\tSystem.out.println(\"Change place \");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\" 1. Change bundle information: \\n 2. Change path information 3. Change place information\\n 4. Cancel\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public abstract void update(Object obj) ;", "Update withSku(SnapshotSku sku);", "@Override\r\n\tpublic void update(Cidade obj) {\n\r\n\t}", "public void update() {}", "public void update(Object obj) throws HibException;", "@Override\r\n\tpublic boolean update(Moteur obj) {\n\t\treturn false;\r\n\t}", "public void doUpdateOption(ActionEvent event) {\n selectedOptionEntityToUpdate = (OptionEntity) event.getComponent().getAttributes().get(\"optionEntityToUpdate\");\n allowChange = true;\n List<Subscription> subscriptions = selectedOptionEntityToUpdate.getSubscriptions();\n \n if(subscriptions.size() != 0) {\n allowChange = false;\n }\n System.out.println(\"I am at doUpdate\");\n }", "public void updateByObject()\r\n\t{\n\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "public void update(Integer id, DVD dvd, Categorie categorie);", "@Override\n public int update(J34SiscomexOrigemDi j34SiscomexOrigemDi) {\n return super.doUpdate(j34SiscomexOrigemDi);\n }", "public void update(Product product) {\n\n\t}", "@Override\n public void updateSongValue() {\n\n if (!MusicManager.isPlaying())\n {\n if (newFragAuto !=null)\n {\n newFragAuto.setPlaying(MusicManager.isPlaying());\n }\n playNewSong();\n } else\n {\n MusicManager.pause();\n Log.e(\"UpdateSongVal\", \"AlreadyPlaying\");\n }\n// newFragAuto.updateValues(MusicManager.isPlaying());\n\n }", "public void update( Observable o , Object arg )\n\t{\n\t\tif( o instanceof SpAvEditState )\n\t\t{\n\t\t\t// Set whether or not this is a standard\n\t\t\t_w.standard.setSelected( (( SpObs )_spItem).getIsStandard() ) ;\n\t\n\t\t\t_updateMsbDisplay() ; // MFO\n\t\t}\n\t}", "protected abstract void update();", "@Override\n\tpublic void update(Object o) {\n\n\t}", "@Override\n\tpublic void update(Object o) {\n\n\t}", "@Override\n public void update() {\n selectedLevel.update();\n }", "@Override\n\tpublic void update(Connection c, Genre v, Integer id) throws SQLException {\n\n\t}", "@Override\r\n\tpublic void update(BbsDto dto) {\n\t\t\r\n\t}", "@Override\n public void updateItem(P_CK t) {\n \n }", "@Override\r\n\tpublic void k_update(ManufacturersVO MANUFACTURERSVO) {\n\t\t\r\n\t}", "private Variant setVariantsFromApi(VariantsModel variantsModel, Long id, Long productID) {\n return new Variant(id,\n variantsModel.getId(),\n productID,\n variantsModel.getColor(),\n variantsModel.getSize(),\n variantsModel.getPrice()\n );\n }", "@Override\n\tpublic String updateInStorage(String hql) {\n\t\treturn super.updateByHql(hql);\n\t}", "@Generated(value = \"io.vrap.rmf.codegen.rendering.CoreCodeGenerator\", comments = \"https://github.com/commercetools/rmf-codegen\")\n@JsonDeserialize(as = ProductVariantImpl.class)\npublic interface ProductVariant {\n\n /**\n * <p>The product that contains this variant.</p>\n * @return product\n */\n @NotNull\n @Valid\n @JsonProperty(\"product\")\n public ProductReference getProduct();\n\n /**\n * <p>The state of the product variant.</p>\n * @return staged\n */\n @NotNull\n @JsonProperty(\"staged\")\n public Boolean getStaged();\n\n /**\n * <p>The id of the product variant.</p>\n * @return variantId\n */\n @NotNull\n @JsonProperty(\"variantId\")\n public Integer getVariantId();\n\n /**\n * <p>The product that contains this variant.</p>\n * @param product value to be set\n */\n\n public void setProduct(final ProductReference product);\n\n /**\n * <p>The state of the product variant.</p>\n * @param staged value to be set\n */\n\n public void setStaged(final Boolean staged);\n\n /**\n * <p>The id of the product variant.</p>\n * @param variantId value to be set\n */\n\n public void setVariantId(final Integer variantId);\n\n /**\n * factory method\n * @return instance of ProductVariant\n */\n public static ProductVariant of() {\n return new ProductVariantImpl();\n }\n\n /**\n * factory method to create a shallow copy ProductVariant\n * @param template instance to be copied\n * @return copy instance\n */\n public static ProductVariant of(final ProductVariant template) {\n ProductVariantImpl instance = new ProductVariantImpl();\n instance.setProduct(template.getProduct());\n instance.setStaged(template.getStaged());\n instance.setVariantId(template.getVariantId());\n return instance;\n }\n\n /**\n * factory method to create a deep copy of ProductVariant\n * @param template instance to be copied\n * @return copy instance\n */\n @Nullable\n public static ProductVariant deepCopy(@Nullable final ProductVariant template) {\n if (template == null) {\n return null;\n }\n ProductVariantImpl instance = new ProductVariantImpl();\n instance.setProduct(com.commercetools.ml.models.common.ProductReference.deepCopy(template.getProduct()));\n instance.setStaged(template.getStaged());\n instance.setVariantId(template.getVariantId());\n return instance;\n }\n\n /**\n * builder factory method for ProductVariant\n * @return builder\n */\n public static ProductVariantBuilder builder() {\n return ProductVariantBuilder.of();\n }\n\n /**\n * create builder for ProductVariant instance\n * @param template instance with prefilled values for the builder\n * @return builder\n */\n public static ProductVariantBuilder builder(final ProductVariant template) {\n return ProductVariantBuilder.of(template);\n }\n\n /**\n * accessor map function\n * @param <T> mapped type\n * @param helper function to map the object\n * @return mapped value\n */\n default <T> T withProductVariant(Function<ProductVariant, T> helper) {\n return helper.apply(this);\n }\n\n /**\n * gives a TypeReference for usage with Jackson DataBind\n * @return TypeReference\n */\n public static com.fasterxml.jackson.core.type.TypeReference<ProductVariant> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<ProductVariant>() {\n @Override\n public String toString() {\n return \"TypeReference<ProductVariant>\";\n }\n };\n }\n}", "Update withSku(Sku sku);", "void update(T objectToUpdate);", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "public void update() {\n\t\tthis.quantity = item.getRequiredQuantity();\n\t}", "public void updateVM() throws SQLException{\n\t\tDataBase db = DataBase.getInstance();\n\t\tResultSet rs;\n\t\tfor(VirtualMachine aux : vms){\n\t\t\tPreparedStatement ps = db.prepareStatement(\"SELECT id FROM vm WHERE id = ?\");\n\t\t\tps.setString(1, aux.getId());\n\t\t\tSystem.out.println(aux.getId());\n\t\t\tSystem.out.println(this.id);\n\t\t\trs = db.queryDB(ps); \n\t\t\tif(aux.checkRowDBVM(rs)){\n\t\t\t String id = aux.getId();\n\t\t\t\tString label = aux.getLabel();\n\t\t\t\tString flavorID = aux.getFlavorID();\n\t\t\t\tString flavorName = aux.getFlavorName();\n\t\t\t\tString image = aux.getImage();\n\t\t\t\tdb.newEntryDB(\"INSERT INTO vm VALUES ('\" + id + \"','\" + label + \"','\" + flavorID + \"','\" + flavorName + \"','\" + image + \"','\" + this.id + \"')\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tps = db.prepareStatement(\"UPDATE vm SET label=?,flavorID=?,flavorName=?,imageID=? WHERE id=?\");\n\t\t\t\tps.setString(1, aux.getLabel());\n\t\t\t\tps.setString(2, aux.getFlavorID());\n\t\t\t\tps.setString(3, aux.getFlavorName());\n\t\t\t\tps.setString(4, aux.getImage());\n\t\t\t\tps.setString(5, aux.getId());\n\t\t\t\tps.executeUpdate();\n\t\t\t}\n\t\t}\n\t}", "abstract public void update();", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update(int updateType);", "@Override\n\tpublic void updateGerant(Gerant g) {\n\t\t\n\t}", "void update(Type type);", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "public void actionPerformed(ActionEvent e) {\n Object source = e.getSource();\n GSelection<Variant> sel = viewer.getSelection();\n Variant v = sel.isEmpty() ? null : sel.first();\n\n ImOption.apply(viewer.getModel()).foreach(schedule -> {\n\n // Force a repaint of the action if it's a button. This is an AWT bug.\n if (source instanceof JButton)\n ((JButton) source).repaint();\n\n if (source == add) {\n\n // Add a new variant. Selection will not change but position might.\n VariantEditor ve = new VariantEditor(context.getShell().getPeer());\n if (JOptionPane.CANCEL_OPTION != ve.showNew(\"Untitled\", (byte) 0, (byte) 0, (byte) 0))\n schedule.addVariant(ve.getVariantName(), ve.getVariantConditions(), ve.getVariantWindConstraint(), ve.getVariantLgsConstraint());\n setUpDownEnabledState(sel);\n\n } else if (source == del) {\n\n // Delete the selected variant. Selection will change.\n if (JOptionPane.NO_OPTION == JOptionPane.showConfirmDialog(context.getShell().getPeer(),\n \"Do you really want to remove this variant?\",\n \"Confirm Remove\", JOptionPane.YES_NO_OPTION))\n return;\n\n schedule.removeVariant(v);\n\n } else if (source == up) {\n\n // Move up. Selection will not change but position will.\n schedule.moveVariant(v, -1);\n setUpDownEnabledState(sel);\n\n } else if (source == down) {\n\n // Move down. Selection will not change but position will.\n schedule.moveVariant(v, 1);\n setUpDownEnabledState(sel);\n\n } else if (source == dup) {\n\n // Duplicate. Selection will not change but position might.\n Variant dup = schedule.duplicateVariant(v);\n dup.setName(\"Copy of \" + dup.getName());\n setUpDownEnabledState(sel);\n\n }\n });\n }", "@DISPID(12)\n\t// = 0xc. The runtime will prefer the VTID if present\n\t@VTID(21)\n\tboolean updated();", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "public void update() {\n }", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "public void updateData() {}", "public abstract boolean update(T transientObject);", "public void update() {\n\t\t\n\t}", "@Override\r\n public void updatedSaleInventory(ItemAndQuantity lastItem) {\r\n }", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();" ]
[ "0.5711477", "0.5689982", "0.56026167", "0.5594273", "0.5579967", "0.5557158", "0.5548517", "0.5548517", "0.5548257", "0.5517538", "0.5498158", "0.54871225", "0.54709435", "0.5452811", "0.5446268", "0.54424196", "0.5412065", "0.53974164", "0.53974164", "0.53974164", "0.5380304", "0.5380304", "0.5372742", "0.5371882", "0.5369654", "0.5361493", "0.5356222", "0.53447306", "0.5331813", "0.5311032", "0.5278292", "0.52704084", "0.52640665", "0.52614343", "0.524842", "0.52454805", "0.52380395", "0.5234001", "0.5228638", "0.5228638", "0.52253485", "0.5213396", "0.5210608", "0.52079165", "0.5201894", "0.51980436", "0.51967835", "0.51967835", "0.5194484", "0.519298", "0.5190408", "0.51888096", "0.518541", "0.518137", "0.51805097", "0.5175797", "0.51745427", "0.51734996", "0.51662517", "0.5165953", "0.5165953", "0.5165953", "0.5165953", "0.5165953", "0.5165446", "0.51590705", "0.5156224", "0.51546985", "0.51546985", "0.51546985", "0.51546985", "0.51511073", "0.5149635", "0.5146886", "0.51396024", "0.5139162", "0.5131088", "0.51263744", "0.51263744", "0.51263744", "0.51263744", "0.51263744", "0.51263744", "0.5115049", "0.51137197", "0.51137197", "0.51075816", "0.51053977", "0.5100469", "0.5096608", "0.50957435", "0.509207", "0.509207", "0.509207", "0.509207", "0.509207", "0.509207", "0.509207", "0.509207", "0.509207" ]
0.62433624
0
TODO Autogenerated method stub
public static void main(String[] args) throws IOException, InterruptedException { System.setProperty("webdriver.chrome.driver", "C:\\webdriver\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.manage().window().maximize(); driver.manage().deleteAllCookies(); // driver.manage().deleteCookieNamed("sessionKey"); driver.get("https://rahulshettyacademy.com/AutomationPractice/"); File src = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(src,new File("D:\\screenshot.png")); Thread.sleep(2000); driver.quit(); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof MateriasHasEspacioHasHorariosPK)) { return false; } MateriasHasEspacioHasHorariosPK other = (MateriasHasEspacioHasHorariosPK) object; if (this.materiasIdmaterias != other.materiasIdmaterias) { return false; } if (this.espacioHasHorariosEspacioIdespacio != other.espacioHasHorariosEspacioIdespacio) { return false; } if (this.espacioHasHorariosHorariosIdhorarios != other.espacioHasHorariosHorariosIdhorarios) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "protected abstract String getId();", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public int getID() {return id;}", "public int getID() {return id;}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "private void clearId() {\n \n id_ = 0;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getID(){\n return id;\n }", "public int getId()\n {\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.68954784", "0.68378097", "0.6704338", "0.66405046", "0.66405046", "0.6591173", "0.6577649", "0.6577649", "0.657354", "0.657354", "0.657354", "0.657354", "0.657354", "0.657354", "0.65609664", "0.65609664", "0.6543523", "0.65234846", "0.6514877", "0.6486739", "0.64767367", "0.642598", "0.6418224", "0.6416077", "0.64008904", "0.63655996", "0.6354077", "0.63503945", "0.6346775", "0.6323574", "0.6318245", "0.63005674", "0.6292615", "0.6292615", "0.6282184", "0.6270863", "0.6265186", "0.6264375", "0.62613726", "0.62583315", "0.6255373", "0.6250626", "0.6246553", "0.6246553", "0.6243956", "0.6238707", "0.6238707", "0.6230739", "0.62232894", "0.62195456", "0.62184453", "0.6210688", "0.6208303", "0.6201759", "0.6200382", "0.61917084", "0.6188896", "0.6188896", "0.61881596", "0.61881596", "0.61881596", "0.6183394", "0.6182932", "0.617465", "0.6173436", "0.6166611", "0.6165045", "0.61600006", "0.61568975", "0.61568975", "0.61568975", "0.61568975", "0.61568975", "0.61568975", "0.61568975", "0.6154626", "0.6154626", "0.6141511", "0.61333525", "0.61282176", "0.6126933", "0.6104891", "0.61035514", "0.61035514", "0.6102866", "0.6102238", "0.61013037", "0.6099772", "0.6098166", "0.6093518", "0.6092529", "0.6091996", "0.6091996", "0.60906154", "0.6088676", "0.60753924", "0.6071486", "0.60712415", "0.6069405", "0.6068963", "0.6068712" ]
0.0
-1
shorter names actually reduce chance of misspelling
public ResourcePortfolio(String inputs) { Gson gson = new Gson(); Map<String, Object> map = gson.fromJson(inputs,Map.class); //check for typos anyway for(String key: map.keySet()) { if(!keys.contains(key)) { System.err.println("Key "+key+" Is not a resource!!!"); } } this.labor = MiscUtilities.extractDouble(map.get("L")); this.materials = MiscUtilities.extractDouble(map.get("M")); this.influence = MiscUtilities.extractDouble(map.get("I")); this.wealth = MiscUtilities.extractDouble(map.get("W")); this.education = MiscUtilities.extractDouble(map.get("E")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String shortPrefix(String name) {\r\n StringBuilder b = new StringBuilder();\r\n String[] splits = name.split(\"_\");\r\n for (int i = 0; i < splits.length; ++i) {\r\n if (splits[i].length() > 0) {\r\n b.append(splits[i].charAt(0));\r\n }\r\n }\r\n if (b.length() < 3) {\r\n b.append(Integer.toString(name.length() % 10));\r\n }\r\n return b.toString().toLowerCase();\r\n }", "String getShortName();", "public abstract String shortName();", "public java.lang.String shortName () { throw new RuntimeException(); }", "public abstract String getShortName();", "public abstract String getShortName();", "public abstract String getShortName();", "public interface AuthorNames {\n\n static String shortenName(String name) {\n return Arrays.asList(name.split(\" \")).\n stream().\n map(s -> s.substring(0, 1)).collect(Collectors.joining());\n }\n}", "static String m33125a(String name) {\n StringBuilder fieldNameBuilder = new StringBuilder();\n int index = 0;\n char firstCharacter = name.charAt(0);\n int length = name.length();\n while (index < length - 1 && !Character.isLetter(firstCharacter)) {\n fieldNameBuilder.append(firstCharacter);\n index++;\n firstCharacter = name.charAt(index);\n }\n if (Character.isUpperCase(firstCharacter)) {\n return name;\n }\n fieldNameBuilder.append(m33124a(Character.toUpperCase(firstCharacter), name, index + 1));\n return fieldNameBuilder.toString();\n }", "public void setShortName(String shortName) { this.shortName = shortName; }", "private String fixName(String aName) {\n final String firstToken = new StringTokenizer(aName, \" \").nextToken();\n int iRepeatedNamePos = aName.indexOf(firstToken, 1);\n if (iRepeatedNamePos > 0) {\n return aName.substring(0, iRepeatedNamePos).trim();\n }\n return aName;\n }", "Caseless getName();", "public String getShortName() { return shortName; }", "boolean hasLongNames();", "public static String getShortName(String name) {\n String[] strings = name.split(\" \");//no i18n\n String shortName;\n if (strings.length == 1) {\n shortName = strings[0].substring(0, 2);\n } else {\n shortName = strings[0].substring(0, 1) + strings[1].substring(0, 1);\n }\n return shortName.toUpperCase();\n }", "String getShortNameKey();", "private static String capName(String name) { return name.substring(0, 1).toUpperCase() + name.substring(1); }", "boolean getLongNames();", "private String fixName(String name, String prefix)\n {\n if (name.startsWith(prefix))\n return name.substring(prefix.length());\n return FIXME_INVALID_PREFIX + name;\n }", "private String preprocessName(String original){\n\t\t// Remove non-alphabetical characters from the name\n\t\toriginal = original.replaceAll( \"[^A-Za-z]\", \"\" );\n\t\t\t\t\n\t\t// Convert to uppercase to help us ignore case-sensitivity\n\t\toriginal = original.toUpperCase();\n\t\t\n\t\t// Remove all occurences of the letters outlined in step 3\n\t\toriginal = original.substring(0,1) + original.substring(1).replaceAll(\"[AEIHOUWY]\",\"\");\n\t\t\n\t\t// Return the result\n\t\treturn original;\n\t}", "@Override\n public String getShortName() {\n return NAME;\n }", "public String getShortName() {\n/* 118 */ return this.shortname;\n/* */ }", "public String mangle(String sName);", "private String getAbbreviatedName(String name) {\n if (!isTooLarge(name)) {\n return name;\n }\n\n String[] partNames = name.split(\" \");\n\n // Abbreviate middle names:\n for (int i = 1; i < partNames.length - 1 && isTooLarge(Utils.join(\" \", partNames)); i++) {\n partNames[i] = partNames[i].charAt(0) + \".\";\n }\n\n // Remove middle names:\n while (partNames.length > 2 && isTooLarge(Utils.join(\" \", partNames))) {\n String[] newPartNames = new String[partNames.length - 1];\n newPartNames[0] = partNames[0];\n for (int i = 1; i < newPartNames.length; i++) {\n newPartNames[i] = partNames[i + 1];\n }\n partNames = newPartNames;\n }\n\n if (!isTooLarge(Utils.join(\" \", partNames))) {\n return Utils.join(\" \", partNames);\n } else if (!isTooLarge(partNames[0].charAt(0) + \". \" + partNames[1])) {\n return partNames[0].charAt(0) + \". \" + partNames[1];\n } else if (!isTooLarge(partNames[0] + \" \" + partNames[1].charAt(0) + \".\")) {\n return partNames[0] + \" \" + partNames[1].charAt(0) + \".\";\n } else {\n return partNames[0].charAt(0) + \". \" + partNames[1].charAt(0) + \".\";\n }\n }", "@Nullable String getShortName();", "String getLongName();", "public String getName(){\n \treturn this.name().replace(\"_\", \" \");\n }", "@SuppressWarnings(\"checkstyle:avoidinlineconditionals\")\n private static void setUpNameList() {\n List<String> names = new ArrayList<>();\n String verb;\n String noun;\n for (int i = 0; i < NUMBER_OF_NAMES; i++) {\n verb = GenerationHelper.randomElement(verbs);\n noun = GenerationHelper.randomElement(nouns);\n String taskName = verb;\n taskName += \"aeiou\".contains(noun.subSequence(0, 1)) ? \" an \" : \" a \";\n taskName += noun;\n names.add(Character.toUpperCase(taskName.charAt(0)) + taskName.substring(1));\n }\n taskNames = new String[names.size()];\n names.toArray(taskNames);\n }", "public String newHumanName() {\n return String.format(\"%s %s\", newName(4, 6), newName(4, 8));\n }", "public String makeName() {\r\n String result = makeNameKOL();\r\n if(previousNames == null || previousNames.size() == maxNames) {\r\n return result;\r\n }\r\n \r\n while(previousNames.contains(result)) {\r\n result = makeNameKOL();\r\n }\r\n \r\n return result;\r\n }", "private static String expandUmlauts(String name) {\n return name.toLowerCase().replace(\"ä\", \"ae\").replace(\"ö\", \"oe\").replace(\"ü\", \"ue\");\n }", "public void setShortName() {\n\t\tgetAbsoluteName = false;\n\t}", "String getShortName() {\n final int lastSlash = name.lastIndexOf('/');\n final String fileName = name.substring(lastSlash + 1);\n final int lastDot = fileName.lastIndexOf('.');\n return fileName.substring(0, lastDot);\n }", "private String getFormattedName(String bossName) {\r\n\t\tString[] startingLetters = { \"corporeal\", \"king black\", \"nomad\", \"tormented\", \"avatar\" };\r\n\t\tfor(int i = 0; i < startingLetters.length; i++)\r\n\t\t\tif(bossName.toLowerCase().contains(startingLetters[i].toLowerCase()))\r\n\t\t\t\treturn \"the \"+bossName;\r\n\t\treturn bossName;\r\n\t}", "public String getName() {\r\n return \"Boyer/Moore-Suche in Strings\";\r\n }", "public void setShortName(String shortName) {\n this.shortName = shortName;\n }", "private String getSimpleName(String name) {\n\t\tint i = name.lastIndexOf(\".\");\n\t\treturn name.substring(i + 1);\n\t}", "String simpleName();", "public String toString() {return name().charAt(0) + name().substring(1).toLowerCase();}", "public String getShortName()\r\n\t{\r\n\t\treturn shortName;\r\n\t}", "private static String buildName(String title)\n {\n // The name is based on the title, but with underscores\n String name = title.replace(' ', '_');\n name = name.replaceAll(\"\\\"\", \"%22\");\n name = name.replaceAll(\"[*]\", \"%2a\");\n name = name.replaceAll(\"<\", \"%3c\");\n name = name.replaceAll(\">\", \"%3e\");\n name = name.replaceAll(\":\", \"%3a\");\n name = name.replaceAll(\"([.]?[.]+$)\", \"%2e\");\n return name;\n }", "@Test\n\tpublic void simpleNameNormalizationTest() {\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"MacMillan, Don\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"Jana, DK\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"A. Kruger\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"Peter axyz ac\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"Peter Ãac\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"Gestionnaire HAL-SU\"));\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleName(\"Christophe Penkerc'h\"));\n\t\t\n\t\tSet<String> wrongNameTokens = new HashSet<String>(2);\n\t\twrongNameTokens.add(\"phd\");\n\t\twrongNameTokens.add(\"professor\");\n\t\twrongNameTokens.add(\"of\");\n\t\twrongNameTokens.add(\"nutrition\");\n\t\tSystem.out.println(NDLDataUtils.normalizeSimpleNameByWrongNameTokens(\"A. Kruger PhD, Professor Of Nutrition\",\n\t\t\t\twrongNameTokens));\n\t}", "static public String sanitizeName(String origName) {\n char c[] = origName.toCharArray();\n StringBuffer buffer = new StringBuffer();\n\n // can't lead with a digit, so start with an underscore\n if ((c[0] >= '0') && (c[0] <= '9')) {\n buffer.append('_');\n }\n for (int i = 0; i < c.length; i++) {\n if (((c[i] >= '0') && (c[i] <= '9')) ||\n ((c[i] >= 'a') && (c[i] <= 'z')) ||\n ((c[i] >= 'A') && (c[i] <= 'Z')) ||\n ((i > 0) && (c[i] == '-')) ||\n ((i > 0) && (c[i] == '.'))) {\n buffer.append(c[i]);\n } else {\n buffer.append('_');\n }\n }\n // let's not be ridiculous about the length of filenames.\n // in fact, Mac OS 9 can handle 255 chars, though it can't really\n // deal with filenames longer than 31 chars in the Finder.\n // but limiting to that for sketches would mean setting the\n // upper-bound on the character limit here to 25 characters\n // (to handle the base name + \".class\")\n if (buffer.length() > 63) {\n buffer.setLength(63);\n }\n return buffer.toString();\n }", "public boolean isCompanyShortNameTaken(String shortName);", "static String normalizePropertyName(String name, String... ignorePrefixes) {\n if (ignorePrefixes.length > 0) {\n return normalizePropertyName(stripPrefixes(name, ignorePrefixes));\n }\n if (name == null || name.isEmpty()) {\n return name;\n } else if (!name.contains(\".\") && !name.contains(\"-\")) {\n return name;\n } else {\n String[] parts = name.replaceAll(\" \", \"\").split(\"-|\\\\.\");\n StringBuilder sb = new StringBuilder();\n if (parts.length > 0) {\n sb.append(parts[0]);\n for (int i = 1; i < parts.length; i++) {\n String s = parts[i-1].length() > 0 ?\n parts[i].substring(0, 1).toUpperCase() + parts[i].substring(1) :\n parts[i];\n sb.append(s);\n }\n }\n return sb.toString();\n }\n }", "public void updateClassNameinAST(List<String> originalNames, String newSuffix) {\n\t\t\n\t\tList<SimpleName> updateableNames;\n\t\tString originalName;\n\t\tSimpleName nameToUpdate;\n\t\t\t\n\t\tupdateableNames = this.gpMaterial.getUpdateableNames();\n\t\t\t\n\t\tCollections.sort(updateableNames, new Comparator<SimpleName>() {\n\t\t\tpublic int compare(SimpleName f1, SimpleName f2) {\n\t\t\t\treturn f1.toString().compareTo(f2.toString());\n\t\t\t}\n\t\t});\n\t\tCollections.sort(originalNames);\n\t\tint origNameIndex = 0;\n\t\tboolean foundAtLeastOnce = false;\n\t\t\n\t\tfor (int upNamesIndex = 0; upNamesIndex < updateableNames.size()\n\t\t\t\t&& origNameIndex < originalNames.size(); upNamesIndex++) {\n\t\t\t\t\t\n\t\t\t\tnameToUpdate = updateableNames.get(upNamesIndex);\n\t\t\t\toriginalName = originalNames.get(origNameIndex);\n\t\t\t\tif (nameToUpdate.toString().startsWith(originalName + \"_\")\n\t\t\t\t\t\t|| nameToUpdate.toString().equals(originalName)) {\n\n\t\t\t\t\tNodeOperators.rename(nameToUpdate,\n\t\t\t\t\t\t\toriginalName + newSuffix, getRewriter());\n\t\t\t\t\t\n\t\t\t\t\tfoundAtLeastOnce = true;\n\t\t\t\t} else if (foundAtLeastOnce) {\n\t\t\t\t\t// we've found at least one instance of the simpleName that\n\t\t\t\t\t// needed updating\n\t\t\t\t\torigNameIndex++; // on to the next name that needs to be\n\t\t\t\t\t\t\t\t\t\t// updated\n\t\t\t\t\tfoundAtLeastOnce = false;\n\t\t\t\t\tupNamesIndex--;\n\t\t\t\t}\n\t\t}\n\t\tgetCodeString();\n\t}", "public void setName(String newName) { throw new NotImplementedException(\"Variable names are final!\"); }", "synchronized String getFixedName(String originalName) {\r\n return originalNamesToFixedNames.get(originalName);\r\n }", "private static String removeCoherentUnderscores(final String testName) {\n final String validATXName = testName.replace(\"__\", \"_\");\n if (validATXName.equals(testName)) {\n return validATXName;\n } else {\n return removeCoherentUnderscores(validATXName);\n }\n }", "public static String getShortName(String longName) {\n StringTokenizer strtok = new StringTokenizer(longName,\",\");\n String shortUserName = null;\n if (strtok.countTokens() > 1) {\n while ((null!=strtok) && (strtok.hasMoreTokens())) {\n\n String mytok1 = strtok.nextToken();\n if (null!=mytok1) {\n //filter for the shortened name\n StringTokenizer innerToken = new StringTokenizer(mytok1,\"=\");\n if ((null!=innerToken)&&(innerToken.countTokens()==2)) {\n String key = innerToken.nextToken();\n if (null!=key) {\n if ((key.equalsIgnoreCase(\"cn\"))||(key.equalsIgnoreCase(\"uid\"))) {\n shortUserName = innerToken.nextToken();\n break;\n }\n }\n }\n } //end:if (null!=mytok1) {\n } //end: while\n } else if (longName.contains(\"@\")) {\n shortUserName = longName.substring(0, longName.indexOf(\"@\"));\n }\n return shortUserName;\n }", "SimpleName getName();", "private String upFirstLetter(){\n\t\tString firstLetter = nameField.substring(0,1);\n\t\tfirstLetter = firstLetter.toUpperCase();\n\t\treturn firstLetter + nameField.substring(1,nameField.length());\n\t}", "@Override\r\n protected String forumShortName() {\r\n return \"ilikeplaces\";\r\n }", "String getPreferredName();", "public String getName()\n/* */ {\n/* 336 */ return this.fullName;\n/* */ }", "public static String shortName(Class<?> someClass) {\r\n String fullName = someClass.getName();\r\n return fullName.substring(fullName.lastIndexOf('.') + 1);\r\n }", "public String getShortName() {\n return shortName;\n }", "public String getShortName() {\n return shortName;\n }", "public String getShortName() {\n return shortName;\n }", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();" ]
[ "0.73851174", "0.6965663", "0.67642134", "0.67472625", "0.66932565", "0.66932565", "0.66932565", "0.65873194", "0.648276", "0.6440352", "0.6376657", "0.6331058", "0.6321047", "0.6286892", "0.62635434", "0.62483776", "0.62373286", "0.6233535", "0.62111163", "0.6189592", "0.61807555", "0.6169879", "0.6162014", "0.612808", "0.6127701", "0.61226493", "0.6115657", "0.6100849", "0.6058157", "0.6052294", "0.60458565", "0.60428876", "0.60357344", "0.60347337", "0.6022985", "0.6010808", "0.600937", "0.6005883", "0.6004051", "0.59765154", "0.5974675", "0.5966733", "0.59619945", "0.5928791", "0.5928209", "0.592547", "0.5909233", "0.59027284", "0.5899308", "0.5891049", "0.58766943", "0.5864983", "0.5862839", "0.58546174", "0.584625", "0.5845508", "0.582947", "0.582947", "0.582947", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986", "0.58196986" ]
0.0
-1
Constructs a BucketHash using keys and values from a map.
public BucketHash(Map<K, V> m) { numBuckets = 101; buckets = new Object[numBuckets]; for (int i = 0; i < numBuckets; i++) { buckets[i] = new Bucket(); } putAll(m); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyHashMapImpl(int nr_buckets) {\n\t\tthis.b = new ArrayList<Bucket<K, V>>();\n\t\tfor (int i = 0; i < nr_buckets; i++) {\n\t\t\tb.add(new Bucket<K, V>());\n\t\t}\n\t\tnrb = nr_buckets;\n\t}", "public BOHMap(int partitionCount) {\n this(partitionCount, Arrays::hashCode);\n }", "public HashMapValueComparator(Map<Object, Object> m){\n\t\tsuper();\n\t\tthis.map = m;\n\t}", "public HashMap(Map<? extends K,? extends V> map) {\r\n\t\tthis();\r\n\t\tthis.putAll(map);\r\n\t}", "public MyHashMap() {\n this.key_space = 2069;\n this.hash_table = new ArrayList<Bucket>();\n for (int i = 0; i < this.key_space; ++i) {\n this.hash_table.add(new Bucket());\n }\n }", "public HashMap(){\n\t\tthis.numOfBins=10;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}", "public HashMap(int bins){\n\t\tthis.numOfBins=bins;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}", "EdgeIteratorState setKeyValues(List<KVStorage.KeyValue> map);", "public static <K, V> MapBuilder<HashMap<K, V>, K, V> hashMap()\n {\n return new MapBuilder<HashMap<K, V>, K, V>(new HashMap<K, V>());\n }", "public HashedVector(Map<Integer, Double> map) {\n\t\tthis.elements = new HashMap<Integer, Double>(map);\n\t}", "RegularImmutableBiMap(Map.Entry<?, ?>[] entriesToAdd) {\n/* 104 */ int n = entriesToAdd.length;\n/* 105 */ int tableSize = Hashing.closedTableSize(n, 1.2D);\n/* 106 */ this.mask = tableSize - 1;\n/* 107 */ ImmutableMapEntry[] arrayOfImmutableMapEntry1 = (ImmutableMapEntry[])createEntryArray(tableSize);\n/* 108 */ ImmutableMapEntry[] arrayOfImmutableMapEntry2 = (ImmutableMapEntry[])createEntryArray(tableSize);\n/* 109 */ ImmutableMapEntry[] arrayOfImmutableMapEntry3 = (ImmutableMapEntry[])createEntryArray(n);\n/* 110 */ int hashCode = 0;\n/* */ \n/* 112 */ for (int i = 0; i < n; i++) {\n/* */ \n/* 114 */ Map.Entry<?, ?> entry = entriesToAdd[i];\n/* 115 */ K key = (K)entry.getKey();\n/* 116 */ V value = (V)entry.getValue();\n/* 117 */ CollectPreconditions.checkEntryNotNull(key, value);\n/* 118 */ int keyHash = key.hashCode();\n/* 119 */ int valueHash = value.hashCode();\n/* 120 */ int keyBucket = Hashing.smear(keyHash) & this.mask;\n/* 121 */ int valueBucket = Hashing.smear(valueHash) & this.mask;\n/* */ \n/* 123 */ ImmutableMapEntry<K, V> nextInKeyBucket = arrayOfImmutableMapEntry1[keyBucket];\n/* 124 */ for (ImmutableMapEntry<K, V> keyEntry = nextInKeyBucket; keyEntry != null; \n/* 125 */ keyEntry = keyEntry.getNextInKeyBucket()) {\n/* 126 */ checkNoConflict(!key.equals(keyEntry.getKey()), \"key\", entry, keyEntry);\n/* */ }\n/* 128 */ ImmutableMapEntry<K, V> nextInValueBucket = arrayOfImmutableMapEntry2[valueBucket];\n/* 129 */ for (ImmutableMapEntry<K, V> valueEntry = nextInValueBucket; valueEntry != null; \n/* 130 */ valueEntry = valueEntry.getNextInValueBucket()) {\n/* 131 */ checkNoConflict(!value.equals(valueEntry.getValue()), \"value\", entry, valueEntry);\n/* */ }\n/* 133 */ ImmutableMapEntry<K, V> newEntry = (nextInKeyBucket == null && nextInValueBucket == null) ? new ImmutableMapEntry.TerminalEntry<K, V>(key, value) : new NonTerminalBiMapEntry<K, V>(key, value, nextInKeyBucket, nextInValueBucket);\n/* */ \n/* */ \n/* */ \n/* 137 */ arrayOfImmutableMapEntry1[keyBucket] = newEntry;\n/* 138 */ arrayOfImmutableMapEntry2[valueBucket] = newEntry;\n/* 139 */ arrayOfImmutableMapEntry3[i] = newEntry;\n/* 140 */ hashCode += keyHash ^ valueHash;\n/* */ } \n/* */ \n/* 143 */ this.keyTable = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry1;\n/* 144 */ this.valueTable = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry2;\n/* 145 */ this.entries = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry3;\n/* 146 */ this.hashCode = hashCode;\n/* */ }", "public MapVS(SetVS<T> keys, Map<K, V> entries) {\n this.keys = keys;\n this.entries = entries;\n this.concreteHash = computeConcreteHash();\n }", "public PutOperation(ClientNamespace namespace, Map<? extends K, ? extends V> values, PutOptions putOptions) {\n super(ClientOpType.PUT, namespace, values.keySet(), putOptions);\n // FUTURE - THINK ABOUT THIS. CONSIDER ALLOWING USERS TO GET RID OF\n // THIS COPY\n if (values instanceof HashMap) {\n this.values = new HashMap<>(values);\n } else {\n this.values = ImmutableMap.copyOf(values);\n }\n }", "public Bucket() {\n// this.bucketPath = bucketPath;\n keys = new Vector<>();\n }", "public ValueComparator(Map map){\n\t\t\tthis.map = map;\n\t\t}", "public AbstractIntHashMap(AbstractIntHashMap map) {\n if (map == null) {\n throw new IllegalArgumentException(\"m may not be null\");\n }\n\n //.... Determine parameters\n\n loadFactor = DEFAULT_LOADFACTOR;\n capacity = (int) (map.size() / loadFactor);\n if (capacity < DEFAULT_CAPACITY) {\n // Avoid underflow\n capacity = DEFAULT_CAPACITY;\n } else if (capacity % 2 == 0) {\n // Make sure we have an odd value\n capacity++;\n }\n\n //.... Standard initialization for the internal map elements\n\n maxLoad = (int) (loadFactor * capacity + 0.5f);\n //initialCap = capacity;\n\n objectCounter += 2;\n this.map = new MapElement[capacity];\n putAll(map);\n }", "public static <K, V> Hashtable<K, V> copy(Map<K, V> map) {\n Hashtable<K, V> copy = new Hashtable<K, V>();\n for (K key : map.keySet()) copy.put(key, map.get(key));\n return copy;\n }", "@SuppressWarnings(\"unchecked\")\n <HK, HV> Map<HK, HV> deserializeHashMap(Map<byte[], byte[]> entries) {\n if (entries == null) {\n return null;\n }\n\n Map<HK, HV> map = new HashMap<HK, HV>(entries.size());\n\n for (Map.Entry<byte[], byte[]> entry : entries.entrySet()) {\n map.put((HK) deserializeHashKey(entry.getKey()), (HV) deserializeHashValue(entry.getValue()));\n }\n\n return map;\n }", "public TOrderedHashMap(final Map<? extends K, ? extends V> map) {\n\t\tthis(map.size());\n\t\tputAll(map);\n\t}", "public static <KEY_1, KEY_2, VALUE> Map<KEY_1, Map<KEY_2, VALUE>> copyOf(\n Map<KEY_1, ? extends Map<KEY_2, VALUE>> map) {\n return new HashMap<>(Maps.transformValues(map, HashMap::new));\n }", "private static void doBucketCount(HashMap<String, Integer> bigramCount) {\n\t\t//bucketCountT\n\t\tbucketCountT= new HashMap<Integer,Double>();\n\t\t\t\t\n\t\tfor(String s:bigramCount.keySet()){\n\t\t\tdouble count= bucketCountT.getOrDefault(bigramCount.get(s), (double)0);\n\t\t\tbucketCountT.put(bigramCount.get(s), count+1);\n\t\t}\n\t}", "public HAMap(int initialCapacity, double loadFactor) {\n buckets = new ArrayList<>();\n for (int i = 0; i < initialCapacity; i++) {\n buckets.add(new ArrayList<>());\n }\n keySet = new HashSet<>();\n numBuckets = initialCapacity;\n numEntries = 0;\n this.loadFactor = loadFactor;\n }", "public CountingMap( Map<K, Integer> map ) {\n this.map = map;\n }", "MapBuilder<K,V> hashFunction(ToLongFunction<? super K> hashFunction);", "public BoxEnterprise(Map<String, Object> map) {\n super(map);\n }", "public Parameters(Map<String, String[]> map) {\n\t\trequireNonNull(map, \"Parameters map not speicifed\");\n\t\tthis.store = new ParametersMap(map);\n\t}", "RegularImmutableBiMap(int n, ImmutableMapEntry.TerminalEntry<?, ?>[] entriesToAdd) {\n/* 56 */ int tableSize = Hashing.closedTableSize(n, 1.2D);\n/* 57 */ this.mask = tableSize - 1;\n/* 58 */ ImmutableMapEntry[] arrayOfImmutableMapEntry1 = (ImmutableMapEntry[])createEntryArray(tableSize);\n/* 59 */ ImmutableMapEntry[] arrayOfImmutableMapEntry2 = (ImmutableMapEntry[])createEntryArray(tableSize);\n/* 60 */ ImmutableMapEntry[] arrayOfImmutableMapEntry3 = (ImmutableMapEntry[])createEntryArray(n);\n/* 61 */ int hashCode = 0;\n/* */ \n/* 63 */ for (int i = 0; i < n; i++) {\n/* */ \n/* 65 */ ImmutableMapEntry.TerminalEntry<?, ?> terminalEntry = entriesToAdd[i];\n/* 66 */ K key = (K)terminalEntry.getKey();\n/* 67 */ V value = (V)terminalEntry.getValue();\n/* */ \n/* 69 */ int keyHash = key.hashCode();\n/* 70 */ int valueHash = value.hashCode();\n/* 71 */ int keyBucket = Hashing.smear(keyHash) & this.mask;\n/* 72 */ int valueBucket = Hashing.smear(valueHash) & this.mask;\n/* */ \n/* 74 */ ImmutableMapEntry<K, V> nextInKeyBucket = arrayOfImmutableMapEntry1[keyBucket];\n/* 75 */ for (ImmutableMapEntry<K, V> keyEntry = nextInKeyBucket; keyEntry != null; \n/* 76 */ keyEntry = keyEntry.getNextInKeyBucket()) {\n/* 77 */ checkNoConflict(!key.equals(keyEntry.getKey()), \"key\", terminalEntry, keyEntry);\n/* */ }\n/* 79 */ ImmutableMapEntry<K, V> nextInValueBucket = arrayOfImmutableMapEntry2[valueBucket];\n/* 80 */ for (ImmutableMapEntry<K, V> valueEntry = nextInValueBucket; valueEntry != null; \n/* 81 */ valueEntry = valueEntry.getNextInValueBucket()) {\n/* 82 */ checkNoConflict(!value.equals(valueEntry.getValue()), \"value\", terminalEntry, valueEntry);\n/* */ }\n/* 84 */ ImmutableMapEntry<K, V> newEntry = (nextInKeyBucket == null && nextInValueBucket == null) ? (ImmutableMapEntry)terminalEntry : new NonTerminalBiMapEntry<K, V>((ImmutableMapEntry)terminalEntry, nextInKeyBucket, nextInValueBucket);\n/* */ \n/* */ \n/* */ \n/* 88 */ arrayOfImmutableMapEntry1[keyBucket] = newEntry;\n/* 89 */ arrayOfImmutableMapEntry2[valueBucket] = newEntry;\n/* 90 */ arrayOfImmutableMapEntry3[i] = newEntry;\n/* 91 */ hashCode += keyHash ^ valueHash;\n/* */ } \n/* */ \n/* 94 */ this.keyTable = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry1;\n/* 95 */ this.valueTable = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry2;\n/* 96 */ this.entries = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry3;\n/* 97 */ this.hashCode = hashCode;\n/* */ }", "public static void setBQAccountsInCache(Map<String,String> accountDFPMap, String key){ \n\t \tkey = ACCOUNTS_BQ_KEY+\"-\"+StringUtil.getHashedValue(key);\n\t\t\tlog.info(\"setBQAccountsInCache : memcache key:\"+key);\t\t\t\n\t\t\tif(memcache !=null && memcache.contains(key)){\n\t \t\tmemcache.delete(key);\n\t \t}\n\t \tmemcache.put(key, accountDFPMap, Expiration.byDeltaSeconds(expiredInTwoHours));\n\t\t}", "MapBuilder<K,V> hashSize(long size);", "private static <K extends Comparable<K>, V>\n ImmutableSortedMap<K, SortedSet<V>>\n copyMap(Map<K, ? extends SortedSet<V>> map) {\n final ImmutableSortedMap.Builder<K, SortedSet<V>> b =\n ImmutableSortedMap.naturalOrder();\n for (Map.Entry<K, ? extends SortedSet<V>> e : map.entrySet()) {\n b.put(e.getKey(), ImmutableSortedSet.copyOf(e.getValue()));\n }\n return b.build();\n }", "@Test\n public void hashMapInitialised()\n {\n Map<Integer, String> strings = MapUtil.<Integer, String>hashMap().keyValue(1, \"Me\").keyValue(2, \"You\");\n // Is this really better than calling strings.put(..)?\n\n assertEquals(\"You\", strings.get(2));\n }", "public HashMapValueComparator() {\n\t\tsuper();\n\t}", "public ValueMap(final String keyValuePairs)\n\t{\n\t\tthis(keyValuePairs, \",\");\n\t}", "public CompactHashMap() {\n\t\tthis(INITIAL_SIZE);\n\t}", "private static void fillListFromMap(List<Integer> bucketContents, Map<Double, List<Integer>> m) {\r\n\t\tIterator<Double> iter = m.keySet().iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tDouble key = iter.next();\r\n\t\t\tbucketContents.addAll(m.get(key));\r\n\t\t}\r\n\t}", "public BOHMap(int partitionCount, Function<byte[], Integer> hashFunction) {\n this.unsafe = getUnsafe();\n this.addressSize = unsafe.addressSize();\n this.partitionCount = partitionCount;\n this.hashFunction = hashFunction;\n \n this.partitionAddress = allocate(this.partitionCount * addressSize, true);\n }", "public Builder putAllTags(\n java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableTags().getMutableMap()\n .putAll(values);\n return this;\n }", "public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}", "public zzq(zzm zzm, Map<K, Collection<V>> map) {\n super(map);\n this.zza = zzm;\n }", "public static <K, V extends Copy<V>> Hashtable<K, V> deepCopy(Map<K, V> map) {\n Hashtable<K, V> copy = new Hashtable<K, V>();\n for (K key : map.keySet()) copy.put(key, map.get(key).copy());\n return copy;\n }", "public CountingMap() {\n this( new HashMap<K, Integer>() );\n }", "public StrStrMap(Map<String, String> map) {\n this.map.putAll(map);\n }", "public ValueMap(final String keyValuePairs, final String delimiter)\n\t{\n\t\tsuper();\n\n\t\tint start = 0;\n\t\tint equalsIndex = keyValuePairs.indexOf('=');\n\t\tint delimiterIndex = keyValuePairs.indexOf(delimiter, equalsIndex);\n\t\tif (delimiterIndex == -1)\n\t\t{\n\t\t\tdelimiterIndex = keyValuePairs.length();\n\t\t}\n\t\twhile (equalsIndex != -1)\n\t\t{\n\t\t\tif (delimiterIndex < keyValuePairs.length())\n\t\t\t{\n\t\t\t\tint equalsIndex2 = keyValuePairs.indexOf('=', delimiterIndex + 1);\n\t\t\t\tif (equalsIndex2 != -1)\n\t\t\t\t{\n\t\t\t\t\tdelimiterIndex = keyValuePairs.lastIndexOf(delimiter, equalsIndex2);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tdelimiterIndex = keyValuePairs.length();\n\t\t\t\t}\n\t\t\t}\n\t\t\tString key = keyValuePairs.substring(start, equalsIndex);\n\t\t\tString value = keyValuePairs.substring(equalsIndex + 1, delimiterIndex);\n\t\t\tadd(key, value);\n\t\t\tif (delimiterIndex < keyValuePairs.length())\n\t\t\t{\n\t\t\t\tstart = delimiterIndex + 1;\n\t\t\t\tequalsIndex = keyValuePairs.indexOf('=', start);\n\t\t\t\tif (equalsIndex != -1)\n\t\t\t\t{\n\t\t\t\t\tdelimiterIndex = keyValuePairs.indexOf(delimiter, equalsIndex);\n\t\t\t\t\tif (delimiterIndex == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tdelimiterIndex = keyValuePairs.length();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tequalsIndex = -1;\n\t\t\t}\n\t\t}\n\t}", "@Nonnull\n private static MultimapBuilder.SetMultimapBuilder<Comparable, Object> newMapBuilder()\n {\n return MultimapBuilder.SetMultimapBuilder\n .treeKeys()\n .hashSetValues();\n }", "public Builder putAllField(\n java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableField().getMutableMap()\n .putAll(values);\n return this;\n }", "public AgentBuilderDictionary(Map m) {\n\t\tsuper(m);\n\t}", "public void setBucket(String inBucket);", "public MyHashMap() {\n\n }", "public WriteToMap(BlockingQueue<Requests> blockingQueue,\n ConcurrentSkipListMap<String, Bucket> bucketMap,\n ConcurrentSkipListMap<Integer, Long> latencyMap) {\n this.blockingQueue = blockingQueue;\n this.bucketMapSecond = bucketMap;\n this.latencyMap = latencyMap;\n }", "public HashTable(int buckets)\n\t{\n\t\tentries = new LinkedList[buckets];\n\t}", "public ConfigurationHolderImpl(Map<String, String> map) {\n this(map, null);\n }", "public MyHashMap() {\n\n }", "public MyHashMap() {\n map = new HashMap();\n }", "public static <K, V> MapBuilder<HashMap<K, V>, K, V> hashMap(K k, V v)\n {\n MapBuilder<HashMap<K, V>, K, V> builder = new MapBuilder<HashMap<K, V>, K, V>(new HashMap<K, V>());\n builder.put(k, v);\n return builder;\n }", "public HashTable()\n\t{\n\t\tthis(NUM_BUCKETS);\n\t}", "public interface BucketKeyPair<B, K> {\n\n /**\n * Get the bucket representation.\n *\n * @return\n */\n B getBucket();\n\n /**\n * Get the key representation.\n *\n * @return\n */\n K getKey();\n\n}", "@SafeVarargs\n public static <K, V> Map<K, V> mapOf(Map.Entry<K, V>... entries) {\n Map<K, V> map = new LinkedHashMap<>();\n\n for (Map.Entry<K, V> entry : entries) {\n map.put(entry.getKey(), entry.getValue());\n }\n\n return java.util.Collections.unmodifiableMap(map);\n }", "public Bucket() {\n\t\t\te = new ArrayList<Entry<K, V>>();\n\t\t}", "public bc m21444a(Map<String, bb> map) {\n this.f18795a = map;\n return this;\n }", "public Builder putAllProperties(\n java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableProperties().getMutableMap()\n .putAll(values);\n bitField0_ |= 0x00000004;\n return this;\n }", "public ArrayHashMap() {\n super();\n }", "Bucket getBucket(K key) {\r\n\t\treturn (Bucket) buckets[key.hashCode() % numBuckets];\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public static Breadcrumb fromMap(\n @NotNull Map<String, Object> map, @NotNull SentryOptions options) {\n\n @NotNull Date timestamp = DateUtils.getCurrentDateTime();\n String message = null;\n String type = null;\n @NotNull Map<String, Object> data = new ConcurrentHashMap<>();\n String category = null;\n SentryLevel level = null;\n Map<String, Object> unknown = null;\n\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n Object value = entry.getValue();\n switch (entry.getKey()) {\n case JsonKeys.TIMESTAMP:\n if (value instanceof String) {\n Date deserializedDate =\n JsonObjectReader.dateOrNull((String) value, options.getLogger());\n if (deserializedDate != null) {\n timestamp = deserializedDate;\n }\n }\n break;\n case JsonKeys.MESSAGE:\n message = (value instanceof String) ? (String) value : null;\n break;\n case JsonKeys.TYPE:\n type = (value instanceof String) ? (String) value : null;\n break;\n case JsonKeys.DATA:\n final Map<Object, Object> untypedData =\n (value instanceof Map) ? (Map<Object, Object>) value : null;\n if (untypedData != null) {\n for (Map.Entry<Object, Object> dataEntry : untypedData.entrySet()) {\n if (dataEntry.getKey() instanceof String && dataEntry.getValue() != null) {\n data.put((String) dataEntry.getKey(), dataEntry.getValue());\n } else {\n options\n .getLogger()\n .log(SentryLevel.WARNING, \"Invalid key or null value in data map.\");\n }\n }\n }\n break;\n case JsonKeys.CATEGORY:\n category = (value instanceof String) ? (String) value : null;\n break;\n case JsonKeys.LEVEL:\n String levelString = (value instanceof String) ? (String) value : null;\n if (levelString != null) {\n try {\n level = SentryLevel.valueOf(levelString.toUpperCase(Locale.ROOT));\n } catch (Exception exception) {\n // Stub\n }\n }\n break;\n default:\n if (unknown == null) {\n unknown = new ConcurrentHashMap<>();\n }\n unknown.put(entry.getKey(), entry.getValue());\n break;\n }\n }\n\n final Breadcrumb breadcrumb = new Breadcrumb(timestamp);\n breadcrumb.message = message;\n breadcrumb.type = type;\n breadcrumb.data = data;\n breadcrumb.category = category;\n breadcrumb.level = level;\n\n breadcrumb.setUnknown(unknown);\n return breadcrumb;\n }", "@Override // io.reactivex.functions.Function\n public Iterable<? extends Map.Entry<? extends String, ? extends String>> apply(Map<String, ? extends String> map) {\n Map<String, ? extends String> map2 = map;\n Intrinsics.checkNotNullParameter(map2, \"it\");\n return map2.entrySet();\n }", "public void setFacets(java.util.Map<String, BucketInfo> facets) {\n this.facets = facets == null ? null : new com.amazonaws.internal.SdkInternalMap<String, BucketInfo>(facets);\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"ClusterId\", this.ClusterId);\n this.setParamSimple(map, prefix + \"ClusterName\", this.ClusterName);\n this.setParamSimple(map, prefix + \"ClusterType\", this.ClusterType);\n this.setParamSimple(map, prefix + \"ClusterTag\", this.ClusterTag);\n this.setParamSimple(map, prefix + \"Zone\", this.Zone);\n this.setParamSimple(map, prefix + \"Network\", this.Network);\n this.setParamSimple(map, prefix + \"MaxConn\", this.MaxConn);\n this.setParamSimple(map, prefix + \"MaxInFlow\", this.MaxInFlow);\n this.setParamSimple(map, prefix + \"MaxInPkg\", this.MaxInPkg);\n this.setParamSimple(map, prefix + \"MaxOutFlow\", this.MaxOutFlow);\n this.setParamSimple(map, prefix + \"MaxOutPkg\", this.MaxOutPkg);\n this.setParamSimple(map, prefix + \"MaxNewConn\", this.MaxNewConn);\n this.setParamSimple(map, prefix + \"HTTPMaxNewConn\", this.HTTPMaxNewConn);\n this.setParamSimple(map, prefix + \"HTTPSMaxNewConn\", this.HTTPSMaxNewConn);\n this.setParamSimple(map, prefix + \"HTTPQps\", this.HTTPQps);\n this.setParamSimple(map, prefix + \"HTTPSQps\", this.HTTPSQps);\n this.setParamSimple(map, prefix + \"ResourceCount\", this.ResourceCount);\n this.setParamSimple(map, prefix + \"IdleResourceCount\", this.IdleResourceCount);\n this.setParamSimple(map, prefix + \"LoadBalanceDirectorCount\", this.LoadBalanceDirectorCount);\n this.setParamSimple(map, prefix + \"Isp\", this.Isp);\n this.setParamObj(map, prefix + \"ClustersZone.\", this.ClustersZone);\n this.setParamSimple(map, prefix + \"ClustersVersion\", this.ClustersVersion);\n this.setParamSimple(map, prefix + \"DisasterRecoveryType\", this.DisasterRecoveryType);\n\n }", "public static void main(String[] args) {\n\t\tHashMap<String, Integer> map1 = new HashMap<String, Integer> ();\n\t\t\n //2. Creating HashMap with some initial capacity\n\t\tHashMap<String,Integer> map2 = new HashMap<String,Integer> (30);\n\t\t\n\t\t//3. Creating HashMap with some initial capacity and some load factor\n\t\tHashMap<String, Integer> map3 = new HashMap<String, Integer> (30, .60f);\n\t\t\n\t\t//4. Creating HashMap by copying another HashMap\n\t\tHashMap<String, Integer> map4= new HashMap<String, Integer> (map1);\n\t\t\n\t}", "public MapNode(\n\t\tMap<String, AbstractNode>\tpairs)\n\t{\n\t\t// Call alternative constructor\n\t\tthis(null, pairs);\n\t}", "public ImmutableMapEntry(final K key, final V value) {\r\n this.value = value;\r\n this.key = key;\r\n }", "private DependencyManager(Map<TypedKey<?>, Object> inputs)\n\t{\n\t\tmap.putAll(inputs);\n\t}", "public MyHashMap() {\n\t\tthis(INIT_CAPACITY);\n\t}", "public MyHashMap() {\n keys = new MapNode[n];\n vals = new MapNode[n];\n for (int i=0; i < n ; ++i) {\n keys[i] = new MapNode();\n vals[i] = new MapNode();\n }\n }", "public MyHashMap() {\n map = new ArrayList<>();\n for (int i = 0;i<255;i++)\n map.add(new Entry());\n }", "public DesignHashmap() {\n\t\ttable = new boolean[buckets][];\n\t}", "public SaltedKeyGenerator(int numOfBuckets, Charset charset) {\n this.numOfBuckets = numOfBuckets;\n this.charset = charset.name();\n // Calculated format is stored to avoid subsequent calculations of it\n paddingFormat = \"%0\" + Integer.toString(numOfBuckets - 1).length() + 'd';\n }", "public Builder putAllOptions(java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableOptions().getMutableMap().putAll(values);\n bitField0_ |= 0x00000100;\n return this;\n }", "public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n gcsBucket_ = value;\n bitField0_ |= 0x00100000;\n onChanged();\n return this;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap()\r\n\t{\r\n\t\ttable = new MapEntry[7];\r\n\t\tcount = 0;\r\n\t\tmaxCount = table.length - table.length/3;\r\n\t\tDUMMY = new MapEntry<>(null, null);\r\n\t}", "public CompactHashMap(int size) {\n\t\t// NOTE: If array size is 0, we get a\n\t\t// \"java.lang.ArithmeticException: / by zero\" in add(Object).\n\t\tkeys = (K[]) new Object[(size == 0 ? 1 : size)];\n\t\tvalues = (V[]) new Object[(size == 0 ? 1 : size)];\n\t\telements = 0;\n\t\tfreecells = keys.length;\n\t\tmodCount = 0;\n\t}", "DictionaryPair (K someKey , V someValue) {\n this.key = someKey;\n this.value = someValue;\n }", "public static <K, V> HashMap<K, V> initHashMap() {\n\t\treturn new HashMap<K, V>();\n\t}", "public Map<T, V> copyData(Map<T, V> map) {\n Map<T, V> newMap = new HashMap<>();\n for (Map.Entry<T, V> entrySet : map.entrySet()) {\n T key = entrySet.getKey();\n V value = entrySet.getValue();\n newMap.put(key, value);\n }\n return newMap;\n }", "@Override\n public Status insert(String table, String key, Map<String, ByteIterator> values) {\n String hash = serialize(values);\n InsertM request = InsertM.newBuilder().setTable(table).setKey(key).setValues(hash).build();\n Result response;\n try {\n response = blockingStub.insert(request);\n } catch (StatusRuntimeException e) {\n return Status.ERROR;\n }\n return Status.OK;\n }", "public MapEntry(K k, V v)\r\n\t\t{\r\n\t\t\tkey = k;\r\n\t\t\tval = v;\r\n\t\t}", "public Statistics(Map<Long,Double> map) {\n this.setCount((long) map.values().size());\n Double defaultValue = Double.valueOf(0);\n this.setSum(map.values().stream().mapToDouble(Double::doubleValue).sum());\n this.setAvg(map.values().stream().mapToDouble(Double::doubleValue).average().orElse(defaultValue));\n this.setMax(map.values().stream().max(Double::compareTo).orElse(defaultValue));\n this.setMin(map.values().stream().min(Double::compareTo).orElse(defaultValue));\n }", "Set keySet(final TCServerMap map) throws AbortedOperationException;", "public static void main(String[] args) {\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"a\", \"A\");\r\n map.put(\"b\", \"B\");\r\n map.put(\"c\", \"C\");\r\n \r\n \r\n int h = (new TestMap()).hashCode();\r\n \r\n String a = map.get(\"a\");\r\n \r\n \r\n \r\n \r\n for (String o : map.keySet()){\r\n \tSystem.out.println(o);\r\n \tSystem.out.println(map.get(o));\r\n \t\r\n }\r\n \r\n Map<String, String> map2 = new HashMap<String, String>();\r\n map2.putAll(map);\r\n \r\n for (Map.Entry<String, String> o : map2.entrySet()){\r\n \tSystem.out.println(o.getKey());\r\n \tSystem.out.println(o.getValue());\r\n }\r\n \r\n System.out.println(map2.containsValue(\"A\")); \r\n System.out.println(map2.equals(map)); \r\n\r\n\t}", "public static Map<String, String> m3185a(Map<String, String> map) {\n Map<String, String> hashMap = new HashMap();\n map = map.entrySet().iterator();\n while (map.hasNext()) {\n Entry entry = (Entry) map.next();\n Object obj = (String) entry.getKey();\n Object obj2 = (String) entry.getValue();\n if (obj.length() > 40) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"cd key length over:\");\n stringBuilder.append(obj);\n C0784a.m3253a(stringBuilder.toString());\n obj = obj.substring(0, 40);\n }\n if (obj2 != null && obj2.length() > 1024) {\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"cd value length over:\");\n stringBuilder.append(obj2);\n C0784a.m3253a(stringBuilder.toString());\n obj2 = obj2.substring(0, 1024);\n }\n hashMap.put(obj, obj2);\n }\n return hashMap;\n }", "public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }", "public UIBuilder getNewInstance(Map<String, Object> entries);", "public ObservableHashMap(int cInitialBuckets, float flLoadFactor, float flGrowthRate)\n {\n super(cInitialBuckets, flLoadFactor, flGrowthRate);\n }", "public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableLabels().getMutableMap().putAll(values);\n bitField0_ |= 0x00000080;\n return this;\n }", "public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableLabels().getMutableMap().putAll(values);\n bitField0_ |= 0x00000040;\n return this;\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"ClusterId\", this.ClusterId);\n this.setParamArraySimple(map, prefix + \"InstanceIds.\", this.InstanceIds);\n this.setParamArrayObj(map, prefix + \"Prices.\", this.Prices);\n this.setParamSimple(map, prefix + \"InstanceRealTotalPrice\", this.InstanceRealTotalPrice);\n this.setParamSimple(map, prefix + \"StorageRealTotalPrice\", this.StorageRealTotalPrice);\n this.setParamSimple(map, prefix + \"RequestId\", this.RequestId);\n\n }", "public <K> void put(K key, MappingEntry<?>... values);", "public static Bucket getInstance(String bucket, String password, String server){\n\n String key = bucket.concat(password);\n\n if (cbClients == null){\n cbClients = new HashMap<String, Bucket>();\n }\n\n if (!cbClients.containsKey(key)) {\n try {\n List<String> nodes = new ArrayList<String>();\n String host1 = server;\n nodes.add(host1);\n Cluster cluster = CouchbaseCluster.create(host1);\n Bucket theBucket = cluster.openBucket(bucket,password);\n cbClients.put(key, theBucket);\n } catch (Exception e){\n e.printStackTrace();\n }\n }\n\n return cbClients.get(key);\n\n }", "public abstract void putAll(AbstractIntHashMap map);", "GroupBuckets buckets();", "public MapSum() {\n map = new HashMap<>();\n }", "public static <K, V> Map<K, V> createMap(List<K> keys, List<V> values) {\n if (keys == null || values == null || keys.size() != values.size()) {\n throw new IllegalArgumentException(\"Keys and Values cannot be null and must be the same size\");\n }\n Map<K, V> newMap = new HashMap<>();\n for (int i = 0; i < keys.size(); i++) {\n newMap.put(keys.get(i), values.get(i));\n }\n return newMap;\n }" ]
[ "0.5768361", "0.56596017", "0.5585285", "0.5522974", "0.5435657", "0.5412215", "0.5369761", "0.53239906", "0.53053427", "0.52622044", "0.52358806", "0.5207817", "0.5198613", "0.51766187", "0.5175048", "0.5156111", "0.5111232", "0.50700915", "0.50642556", "0.50398105", "0.4965593", "0.49236804", "0.49104884", "0.48727074", "0.48675677", "0.48664206", "0.4818376", "0.4813841", "0.4811749", "0.47734302", "0.47527617", "0.4751077", "0.47380805", "0.47361296", "0.4734604", "0.47299355", "0.4714266", "0.47044644", "0.47033513", "0.4701841", "0.4695575", "0.4686236", "0.4674468", "0.4670387", "0.46483472", "0.46341568", "0.46318436", "0.4612086", "0.46050185", "0.46026525", "0.45949212", "0.45857543", "0.45801413", "0.45711565", "0.4570742", "0.45686495", "0.45512703", "0.45479244", "0.45412943", "0.45382506", "0.45367026", "0.45281056", "0.45216858", "0.45156687", "0.45134255", "0.45085126", "0.45017517", "0.44915625", "0.44913825", "0.44913748", "0.44848907", "0.44817558", "0.447154", "0.44655707", "0.44636288", "0.44629726", "0.44530126", "0.44521073", "0.44510978", "0.44471663", "0.44455358", "0.4443911", "0.4436055", "0.44313923", "0.44310772", "0.44272572", "0.4424879", "0.44226545", "0.44183674", "0.44150752", "0.44127458", "0.44099575", "0.44076666", "0.44050154", "0.43974927", "0.43945414", "0.43942994", "0.43939987", "0.43759683", "0.43755203" ]
0.7273365
0
Determines equality by attempting to match all contained keys and values.
@Override public boolean equals(Object o){ if(!(o instanceof Map)) return false; Map m = (Map)o; if (m.hashCode() != hashCode()) return false; if (m.keySet().size() != keySet().size()) return false; for (K key : ((Map<K, V>) m).keySet()) { if (!containsKey(key)) return false; if (!get(key).equals(((Map) m).get(key))) return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract boolean equalityTest(Object key, Object key2);", "@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createForTerm(t1);\n PredicateKey k2 = PredicateKey.createForTerm(t2);\n testEquals(k1, k2);\n }", "public MapAssertion<K, V> containsAll(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3, final K expectedKey4, final V expectedValue4) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n expected.put(expectedKey4, expectedValue4);\n containsAll(expected);\n return this;\n }", "public MapAssertion<K, V> containsAll(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3, final K expectedKey4, final V expectedValue4, final K expectedKey5, final V expectedValue5) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n expected.put(expectedKey4, expectedValue4);\n expected.put(expectedKey5, expectedValue5);\n containsAll(expected);\n return this;\n }", "public MapAssertion<K, V> containsAll(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n containsAll(expected);\n return this;\n }", "public MapAssertion<K, V> containsAll(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n containsAll(expected);\n return this;\n }", "@Test\n public void equality() {\n new EqualsTester()\n .addEqualityGroup(UnitConverters.identity())\n .addEqualityGroup(UnitConverters.shift(100))\n .addEqualityGroup(UnitConverters.multiply(2))\n .addEqualityGroup(UnitConverters.pow(10, 6))\n .addEqualityGroup(UnitConverters.pow(UnitConverters.multiply(5), 2))\n .addEqualityGroup(UnitConverters.root(UnitConverters.multiply(5), 2))\n .addEqualityGroup(UnitConverters.compose(UnitConverters.shift(100), UnitConverters.multiply(2)))\n .testEquals();\n }", "public MapAssertion<K, V> containsAll(final K expectedKey1, final V expectedValue1) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n containsAll(expected);\n return this;\n }", "public MapAssertion<K, V> containsAllInOrder(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3, final K expectedKey4, final V expectedValue4) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n expected.put(expectedKey4, expectedValue4);\n containsAllInOrder(expected);\n return this;\n }", "public MapAssertion<K, V> containsAllInOrder(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n containsAllInOrder(expected);\n return this;\n }", "@Test\n public void testKeyEquivalence() throws Exception {\n ScanResultMatchInfo matchInfo1 = ScanResultMatchInfo.fromWifiConfiguration(mConfig1);\n ScanResultMatchInfo matchInfo1Prime = ScanResultMatchInfo.fromWifiConfiguration(mConfig1);\n ScanResultMatchInfo matchInfo2 = ScanResultMatchInfo.fromWifiConfiguration(mConfig2);\n assertFalse(matchInfo1 == matchInfo1Prime); // Checking assumption\n MacAddress mac1 = MacAddressUtils.createRandomUnicastAddress();\n MacAddress mac2 = MacAddressUtils.createRandomUnicastAddress();\n assertNotEquals(mac1, mac2); // really tiny probability of failing here\n\n WifiCandidates.Key key1 = new WifiCandidates.Key(matchInfo1, mac1, 1);\n\n assertFalse(key1.equals(null));\n assertFalse(key1.equals((Integer) 0));\n // Same inputs should give equal results\n assertEquals(key1, new WifiCandidates.Key(matchInfo1, mac1, 1));\n // Equal inputs should give equal results\n assertEquals(key1, new WifiCandidates.Key(matchInfo1Prime, mac1, 1));\n // Hash codes of equal things should be equal\n assertEquals(key1.hashCode(), key1.hashCode());\n assertEquals(key1.hashCode(), new WifiCandidates.Key(matchInfo1, mac1, 1).hashCode());\n assertEquals(key1.hashCode(), new WifiCandidates.Key(matchInfo1Prime, mac1, 1).hashCode());\n\n // Unequal inputs should give unequal results\n assertFalse(key1.equals(new WifiCandidates.Key(matchInfo2, mac1, 1)));\n assertFalse(key1.equals(new WifiCandidates.Key(matchInfo1, mac2, 1)));\n assertFalse(key1.equals(new WifiCandidates.Key(matchInfo1, mac1, 2)));\n }", "public MapAssertion<K, V> containsAllInOrder(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3, final K expectedKey4, final V expectedValue4, final K expectedKey5, final V expectedValue5) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n expected.put(expectedKey4, expectedValue4);\n expected.put(expectedKey5, expectedValue5);\n containsAllInOrder(expected);\n return this;\n }", "public MapAssertion<K, V> containsAllInOrder(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n containsAllInOrder(expected);\n return this;\n }", "Equality createEquality();", "public MapAssertion<K, V> containsAny(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3, final K expectedKey4, final V expectedValue4) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n expected.put(expectedKey4, expectedValue4);\n containsAny(expected);\n return this;\n }", "protected boolean equalityTest(Object key, Object key2) {\n\t\t\treturn this.set.equalityTest(key, key2);\n\t\t}", "protected abstract boolean isEqual(E entryA, E entryB);", "public MapAssertion<K, V> containsAll(final Map<K, V> expected) {\n checkActualIsNotNull();\n checkArgumentIsNotNull(expected, \"expected\");\n checkArgumentIsNotEmpty(expected.isEmpty(), \"expected\", true);\n List<K> actualKeysCopy = new ArrayList<>(getActual().keySet());\n for (K key : expected.keySet()) {\n int idx = actualKeysCopy.indexOf(key);\n if (idx >= 0 && isValuesEqual(expected, key)) {\n actualKeysCopy.remove(idx);\n } else {\n throw getAssertionErrorBuilder().addMessage(Messages.Fail.Actual.CONTAINS_ALL).addActual().addExpected(expected).build();\n }\n }\n return this;\n }", "@Test\n\tpublic void equalsSimilarObjects() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tboolean equals = key1.equals(key2);\n\t\tSystem.out.println();\n\t\tAssert.assertTrue(equals);\n\t}", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof Sanpham)) {\n return false;\n }\n Sanpham that = (Sanpham) other;\n Object myMasp = this.getMasp();\n Object yourMasp = that.getMasp();\n if (myMasp==null ? yourMasp!=null : !myMasp.equals(yourMasp)) {\n return false;\n }\n return true;\n }", "Boolean same(MapComp<K, V> m);", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof Acquirente)) {\n return false;\n }\n Acquirente that = (Acquirente) other;\n if (this.getIdacquirente() != that.getIdacquirente()) {\n return false;\n }\n return true;\n }", "public MapAssertion<K, V> containsAny(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3, final K expectedKey4, final V expectedValue4, final K expectedKey5, final V expectedValue5) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n expected.put(expectedKey4, expectedValue4);\n expected.put(expectedKey5, expectedValue5);\n containsAny(expected);\n return this;\n }", "public MapAssertion<K, V> containsAny(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n containsAny(expected);\n return this;\n }", "@Override\n public boolean equals(Object obj) {\n if ( obj == null ) return false;\n if ( this == obj ) return true;\n Keys c = (Keys) obj;\n return Arrays.equals(this.keys, c.keys);\n }", "public boolean allDuplicatesEqual() {\n int[] input = {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5};\n int dupA = findDuplicatesA(input);\n int dupB = findDuplicatesB(input);\n int dupC = findDuplicatesC(input);\n int dupD = findDuplicatesD(input);\n int dupE = findDuplicatesE(input);\n return dupA == dupB && dupA == dupC && dupA == dupD && dupA == dupE;\n }", "public MapAssertion<K, V> containsAllInOrder(final K expectedKey1, final V expectedValue1) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n containsAllInOrder(expected);\n return this;\n }", "public static final boolean valuesAreTransitivelyEqual(Object[] thisArray, Object[] thatArray) {\r\n\t\tif (thisArray == thatArray) return true;\r\n\t\tif ((thisArray == null) || (thatArray == null)) return false;\r\n\t\tif (thisArray.length != thatArray.length) return false;\r\n\t\tfor (int i = 0; i < thisArray.length; i++) {\r\n\t\t\tif (!areEqual(thisArray[i], thatArray[i])) return false;\t// recurse if req'd\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean equals(Object other) {\n if (!(other instanceof Acquirente)) return false;\n return this.equalKeys(other) && ((Acquirente)other).equalKeys(this);\n }", "public MapAssertion<K, V> containsAllInOrder(final Map<K, V> expected) {\n checkActualIsNotNull();\n checkArgumentIsNotNull(expected, \"expected\");\n checkArgumentIsNotEmpty(expected.isEmpty(), \"expected\", true);\n List<K> actualKeysCopy = new ArrayList<>(getActual().keySet());\n for (K key : expected.keySet()) {\n int idx = actualKeysCopy.indexOf(key);\n if (idx >= 0 && isValuesEqual(expected, key)) {\n actualKeysCopy = actualKeysCopy.subList(idx + 1, actualKeysCopy.size());\n } else {\n throw getAssertionErrorBuilder().addMessage(Messages.Fail.Actual.CONTAINS_ALL_IN_ORDER).addActual().addExpected(expected).build();\n }\n }\n return this;\n }", "@Override\n public boolean equals(Object other) {\n if (!(other instanceof Sanpham)) return false;\n return this.equalKeys(other) && ((Sanpham)other).equalKeys(this);\n }", "@SuppressWarnings(\"resource\")\n @Test\n public void testEquals() {\n try {\n ApiKey apikey1 = new ApiKey(\"bd1f89fbddbde18d4244b748ca1d250b\", new Date(1570127619232L), 58,\n \"bd1f89fbddbde18d4244b748ca1d250b\", \"933738f6-d022-45c8-bc68-d7c6722e913b\", -46,\n \"3cac25f8-fd0d-4e6c-b1dd-e24a49542b75\", \"bd1f89fbddbde18d4244b748ca1d250b\",\n ApiKeyStatus.getDefault(), new Date(1570127625184L));\n ApiKey apikey2 = new ApiKey(\"bd1f89fbddbde18d4244b748ca1d250b\", new Date(1570127619232L), 58,\n \"bd1f89fbddbde18d4244b748ca1d250b\", \"933738f6-d022-45c8-bc68-d7c6722e913b\", -46,\n \"3cac25f8-fd0d-4e6c-b1dd-e24a49542b75\", \"bd1f89fbddbde18d4244b748ca1d250b\",\n ApiKeyStatus.getDefault(), new Date(1570127625184L));\n ApiKey apikey3 = new ApiKey(\"bd1f89fbddbde18d4244b748ca1d250b\", new Date(1570127620542L), 76,\n \"bd1f89fbddbde18d4244b748ca1d250b\", \"e31184de-791f-4689-9075-d12706757ba9\", -7,\n \"d34afc91-63f2-42e0-bde5-cfbb131751fd\", \"bd1f89fbddbde18d4244b748ca1d250b\",\n ApiKeyStatus.getDefault(), new Date(1570127620923L));\n assertNotNull(apikey1);\n assertNotNull(apikey2);\n assertNotNull(apikey3);\n assertNotSame(apikey2, apikey1);\n assertNotSame(apikey3, apikey1);\n assertEquals(apikey2, apikey1);\n assertEquals(apikey2, apikey1);\n assertEquals(apikey1, apikey2);\n assertEquals(apikey1, apikey1);\n assertFalse(apikey1.equals(null));\n assertNotEquals(apikey3, apikey1);\n } catch (Exception exception) {\n fail(exception.getMessage());\n }\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o instanceof Pair) {\n Pair pair = (Pair) o;\n if (key != null ? !key.equals(pair.key) : pair.key != null) return false;\n if (value != null ? !value.equals(pair.value) : pair.value != null) return false;\n return true;\n }\n return false;\n }", "public boolean matchSameColumns(Key key);", "public MapAssertion<K, V> containsAny(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n containsAny(expected);\n return this;\n }", "public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null) {\n return false;\n }\n if (o.getClass().equals(SingleFieldKey.class)) {\n SingleFieldKey otherSingleFieldKey = (SingleFieldKey)o;\n return otherSingleFieldKey.keyField == keyField &&\n keyField.valueEqual(otherSingleFieldKey.value, value);\n }\n\n if (!Key.class.isAssignableFrom(o.getClass())) {\n return false;\n }\n Key otherKey = (Key)o;\n return keyField.getGlobType() == otherKey.getGlobType()\n && keyField.valueEqual(value, otherKey.getValue(keyField));\n }", "@Override\n public boolean equals(Object obj) {\n if (!canonicalizing) // use object identity as equality, except during canonicalization\n return obj == this;\n if (obj == this)\n return true;\n if (!(obj instanceof Value))\n return false;\n Value v = (Value) obj;\n // noinspection StringEquality\n return flags == v.flags\n && (var == v.var || (var != null && v.var != null && var.equals(v.var)))\n && ((num == null && v.num == null) || (num != null && v.num != null && num.equals(v.num)))\n && (str == v.str || (str != null && v.str != null && str.equals(v.str)))\n && (object_labels == v.object_labels || (object_labels != null && v.object_labels != null && object_labels.equals(v.object_labels)))\n && (getters == v.getters || (getters != null && v.getters != null && getters.equals(v.getters)))\n && (setters == v.setters || (setters != null && v.setters != null && setters.equals(v.setters)))\n && (excluded_strings == v.excluded_strings || (excluded_strings != null && v.excluded_strings != null && excluded_strings.equals(v.excluded_strings)))\n && (included_strings == v.included_strings || (included_strings != null && v.included_strings != null && included_strings.equals(v.included_strings)))\n && Objects.equals(functionPartitions, v.functionPartitions)\n && Objects.equals(functionTypeSignatures, v.functionTypeSignatures);\n }", "public Boolean same(MapComp<K, V> m) {\n return m.vals().same(this.vals());\n }", "public MapAssertion<K, V> containsExactly(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3, final K expectedKey4, final V expectedValue4) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n expected.put(expectedKey4, expectedValue4);\n containsExactly(expected);\n return this;\n }", "@Test\n public void equals_trulyEqual() {\n SiteInfo si1 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Default Site\"\n );\n SiteInfo si2 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Default Site\"\n );\n\n Assert.assertEquals(si1, si2);\n }", "@Override\n public boolean equals(Object other) {\n return (other instanceof Entry\n && key.equals(((Entry<K, V>) other).key)\n && value.equals(((Entry<K, V>) other).value));\n }", "public MapAssertion<K, V> containsExactlyInOrder(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3, final K expectedKey4, final V expectedValue4) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n expected.put(expectedKey4, expectedValue4);\n containsExactlyInOrder(expected);\n return this;\n }", "boolean keyeq(LuaValue key);", "private boolean isValuesEqual(BinaryMessage tocmp, BinaryMessage original) {\n\t\tif(tocmp.getValue().equals(original.getValue())) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "Boolean same(MultiSet<X> s);", "public static boolean proveEquality(Tableau tableau) {\n boolean retVal = expandAllAlphas(tableau);\n // Deltas\n retVal = expandAllDeltas(tableau) || retVal;\n // Brown's rule\n retVal = tableau.applyAllBrowns() || retVal;\n // Beta or Gamma\n if (expandOneBeta(tableau))\n return true;\n if (Prover.unifyEquality(tableau) != null)\n return false;\n return expandOneGamma(tableau) || retVal;\n }", "public void testEquals()\n {\n // test passing null to equals returns false\n // (as specified in the JDK docs for Object)\n EthernetAddress x =\n new EthernetAddress(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);\n assertFalse(\"equals(null) didn't return false\",\n x.equals((Object)null));\n \n // test passing an object which is not a EthernetAddress returns false\n assertFalse(\"x.equals(non_EthernetAddress_object) didn't return false\",\n x.equals(new Object()));\n \n // test a case where two EthernetAddresss are definitly not equal\n EthernetAddress w =\n new EthernetAddress(ANOTHER_VALID_ETHERNET_ADDRESS_BYTE_ARRAY);\n assertFalse(\"x == w didn't return false\",\n x == w);\n assertFalse(\"x.equals(w) didn't return false\",\n x.equals(w));\n\n // test refelexivity\n assertTrue(\"x.equals(x) didn't return true\",\n x.equals(x));\n \n // test symmetry\n EthernetAddress y =\n new EthernetAddress(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);\n assertFalse(\"x == y didn't return false\",\n x == y);\n assertTrue(\"y.equals(x) didn't return true\",\n y.equals(x));\n assertTrue(\"x.equals(y) didn't return true\",\n x.equals(y));\n \n // now we'll test transitivity\n EthernetAddress z =\n new EthernetAddress(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);\n assertFalse(\"x == y didn't return false\",\n x == y);\n assertFalse(\"x == y didn't return false\",\n y == z);\n assertFalse(\"x == y didn't return false\",\n x == z);\n assertTrue(\"x.equals(y) didn't return true\",\n x.equals(y));\n assertTrue(\"y.equals(z) didn't return true\",\n y.equals(z));\n assertTrue(\"x.equals(z) didn't return true\",\n x.equals(z));\n \n // test consistancy (this test is just calling equals multiple times)\n assertFalse(\"x == y didn't return false\",\n x == y);\n assertTrue(\"x.equals(y) didn't return true\",\n x.equals(y));\n assertTrue(\"x.equals(y) didn't return true\",\n x.equals(y));\n assertTrue(\"x.equals(y) didn't return true\",\n x.equals(y));\n }", "@Override\n public boolean equals(Object o) {\n if (o instanceof Pair) {\n Pair pair = (Pair) o;\n return (this.key == pair.key && this.value == pair.value);\n } else\n return false;\n }", "@SuppressWarnings(\"resource\")\n @Test\n public void testEquals() {\n try {\n SubtenantApiKey subtenantapikey1 = new SubtenantApiKey(\"4f267f967f7d1f5e3fa0d6abaccdb4bf\",\n new Date(1574704668684L), -105, null,\n \"4f267f967f7d1f5e3fa0d6abaccdb4bf\",\n \"1a2ce0b9-4007-4d82-a458-bce5d8a2085a\", -33,\n \"2f0a11bf-c499-4b20-9b7b-ef16819784f2\",\n \"4f267f967f7d1f5e3fa0d6abaccdb4bf\",\n SubtenantApiKeyStatus.getDefault(),\n new Date(1574704669541L));\n SubtenantApiKey subtenantapikey2 = new SubtenantApiKey(\"4f267f967f7d1f5e3fa0d6abaccdb4bf\",\n new Date(1574704668684L), -105, null,\n \"4f267f967f7d1f5e3fa0d6abaccdb4bf\",\n \"1a2ce0b9-4007-4d82-a458-bce5d8a2085a\", -33,\n \"2f0a11bf-c499-4b20-9b7b-ef16819784f2\",\n \"4f267f967f7d1f5e3fa0d6abaccdb4bf\",\n SubtenantApiKeyStatus.getDefault(),\n new Date(1574704669541L));\n SubtenantApiKey subtenantapikey3 = new SubtenantApiKey(\"4f267f967f7d1f5e3fa0d6abaccdb4bf\",\n new Date(1574704666574L), -105, null,\n \"4f267f967f7d1f5e3fa0d6abaccdb4bf\",\n \"60d4acbb-208b-4d39-a7e7-0311a4c9d668\", -73,\n \"4d2e0a41-68cb-443d-b170-9281ae717cda\",\n \"4f267f967f7d1f5e3fa0d6abaccdb4bf\",\n SubtenantApiKeyStatus.getDefault(),\n new Date(1574704667904L));\n assertNotNull(subtenantapikey1);\n assertNotNull(subtenantapikey2);\n assertNotNull(subtenantapikey3);\n assertNotSame(subtenantapikey2, subtenantapikey1);\n assertNotSame(subtenantapikey3, subtenantapikey1);\n assertEquals(subtenantapikey2, subtenantapikey1);\n assertEquals(subtenantapikey2, subtenantapikey1);\n assertEquals(subtenantapikey1, subtenantapikey2);\n assertEquals(subtenantapikey1, subtenantapikey1);\n assertFalse(subtenantapikey1.equals(null));\n assertNotEquals(subtenantapikey3, subtenantapikey1);\n } catch (Exception exception) {\n fail(exception.getMessage());\n }\n }", "void checkConsistency() {\n for (String word : dictionary) {\n assertEquals(words.contains(word), trie.contains(word));\n }\n }", "public void testEquals() throws Exception {\n State state1 = new State();\n state1.setCanJump(1);\n state1.setDirection(1);\n state1.setGotHit(1);\n state1.setHeight(1);\n state1.setMarioMode(1);\n state1.setOnGround(1);\n state1.setEnemiesSmall(new boolean[3]);\n state1.setObstacles(new boolean[4]);\n state1.setDistance(1);\n state1.setStuck(1);\n\n State state2 = new State();\n state2.setCanJump(1);\n state2.setDirection(1);\n state2.setGotHit(1);\n state2.setHeight(1);\n state2.setMarioMode(1);\n state2.setOnGround(1);\n state2.setEnemiesSmall(new boolean[3]);\n state2.setObstacles(new boolean[4]);\n state2.setStuck(1);\n\n State state3 = new State();\n state3.setCanJump(1);\n state3.setDirection(1);\n state3.setGotHit(1);\n state3.setHeight(1);\n state3.setMarioMode(2);\n state3.setOnGround(1);\n state3.setEnemiesSmall(new boolean[3]);\n state3.setObstacles(new boolean[4]);\n assertEquals(state1,state2);\n assertTrue(state1.equals(state2));\n assertFalse(state1.equals(state3));\n Set<State> qTable = new HashSet<State>();\n qTable.add(state1);\n qTable.add(state2);\n assertEquals(1,qTable.size());\n qTable.add(state3);\n assertEquals(2,qTable.size());\n\n }", "public MapAssertion<K, V> containsExactlyInOrder(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n containsExactlyInOrder(expected);\n return this;\n }", "public MapAssertion<K, V> containsExactly(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3, final K expectedKey4, final V expectedValue4, final K expectedKey5, final V expectedValue5) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n expected.put(expectedKey4, expectedValue4);\n expected.put(expectedKey5, expectedValue5);\n containsExactly(expected);\n return this;\n }", "@Test\n public void testEquality() {\n Map<ColumnType, ColumnType> typeMap = new HashMap<ColumnType, ColumnType>();\n ColumnType typeBool = new ColumnType(-7, \"bool\");\n ColumnType typeBoolean = new ColumnType(16, \"boolean\");\n ColumnType typeBool2 = new ColumnType(-7, \"bool\");\n typeMap.put(typeBool, typeBool2);\n typeMap.put(typeBoolean, typeBool2);\n assertEquals(\"Expected bool types are equal\", typeBool, typeMap.get(typeBool));\n assertEquals(\"Expected bool types are equal\", typeBool, typeMap.get(typeBoolean));\n }", "private static void compareForIdenticalKeys() {\n Integer[] identical = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};\n\n Insertion insertion = new Insertion();\n insertion.analyzeSort(identical);\n insertion.getStat().printReport();\n\n Selection selection = new Selection();\n selection.analyzeSort(identical);\n selection.getStat().printReport();\n }", "@Test\n\tpublic void doEqualsTestDifferentMaps() {\n\t\tassertFalse(bigBidiMap.equals(leftChildMap));\n\n\t}", "public MapAssertion<K, V> containsExactlyInOrder(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3, final K expectedKey4, final V expectedValue4, final K expectedKey5, final V expectedValue5) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n expected.put(expectedKey4, expectedValue4);\n expected.put(expectedKey5, expectedValue5);\n containsExactlyInOrder(expected);\n return this;\n }", "public MapAssertion<K, V> containsExactly(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2, final K expectedKey3, final V expectedValue3) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n expected.put(expectedKey3, expectedValue3);\n containsExactly(expected);\n return this;\n }", "public boolean haveSameKeys(Tree<K, V> otherTree) {\n\t\tif (this.size() != otherTree.size()) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tTree<K, V> t = this;\n\t\t\tboolean sameKey = true;\n\t\t\treturn haveSameKeys(t, otherTree, sameKey);\n\t\t}\n\t}", "public boolean equal (MapIterator other)\n {\n if(this.MapItr.element.Key == other.MapItr.element.Key)//*****Value or Key?\n return true;\n \n else\n return false;\n }", "@SuppressWarnings(\"unlikely-arg-type\")\n @Test\n public void testEquals() {\n Order order = new Order(\"Test\", LocalTime.NOON, GridCoordinate.ZERO);\n Order same = new Order(\"Test\", LocalTime.NOON, GridCoordinate.ZERO);\n Order other = new Order(\"Test\", LocalTime.MIDNIGHT, GridCoordinate.ZERO);\n Order another = new Order(\"Test\", LocalTime.NOON, GridCoordinate.of(1, 1));\n Order more = new Order(\"Test2\", LocalTime.NOON, GridCoordinate.ZERO);\n\n Assert.assertTrue(\"Two objects with the same addresses should be equal.\", order.equals(order));\n Assert.assertFalse(\"Null check.\", order.equals(null));\n Assert.assertFalse(\"Type check.\", order.equals(\"\"));\n Assert.assertFalse(\"Different order times.\", order.equals(other));\n Assert.assertFalse(\"Different customer locations.\", order.equals(another));\n Assert.assertFalse(\"Different order IDs.\", order.equals(more));\n Assert.assertTrue(\"Same values.\", order.equals(same));\n }", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof ApptranregFeesAud)) {\n return false;\n }\n ApptranregFeesAud that = (ApptranregFeesAud) other;\n Object myAtrfAudUid = this.getAtrfAudUid();\n Object yourAtrfAudUid = that.getAtrfAudUid();\n if (myAtrfAudUid==null ? yourAtrfAudUid!=null : !myAtrfAudUid.equals(yourAtrfAudUid)) {\n return false;\n }\n return true;\n }", "public MapAssertion<K, V> containsAllKeys(final Iterable<K> expected) {\n checkActualIsNotNull();\n checkArgumentIsNotNull(expected, \"expected\");\n List<K> expectedList = convertValue(expected, null, List.class);\n checkArgumentIsNotEmpty(expectedList.isEmpty(), \"expected\", true);\n toKeys().containsAll(expectedList);\n return this;\n }", "@Test\n public void equals() {\n float[] a = new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.equals(a, 2, b, 3));\n assertTrue(! Vec4f.equals(a, 0, b, 0));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.equals(a4,b4));\n assertTrue(!Vec4f.equals(a4,c4));\n assertTrue(!Vec4f.equals(a4,d4));\n assertTrue(!Vec4f.equals(a4,e4));\n assertTrue(!Vec4f.equals(a4,f4)); \n }", "@Test\n public void testEquals03() {\n System.out.println(\"equals\");\n\n Set<User> users = new HashSet<>();\n users.add(new User(\"nick0\", \"[email protected]\"));\n users.add(new User(\"nick1\", \"[email protected]\"));\n users.add(new User(\"nick2\", \"[email protected]\"));\n users.add(new User(\"nick3\", \"[email protected]\"));\n users.add(new User(\"nick4\", \"[email protected]\"));\n users.add(new User(\"nick5\", \"[email protected]\"));\n users.add(new User(\"nick6\", \"[email protected]\"));\n users.add(new User(\"nick7\", \"[email protected]\"));\n users.add(new User(\"nick8\", \"[email protected]\"));\n users.add(new User(\"nick9\", \"[email protected]\"));\n\n Set<City> cities = new HashSet<>();\n cities.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n cities.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n cities.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n cities.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n cities.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n cities.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n cities.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n cities.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n cities.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n cities.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n\n SocialNetwork otherSN = new SocialNetwork(users, cities);\n boolean result = sn10.equals(otherSN);\n assertTrue(result);\n }", "private final static boolean equivalent(Automaton automaton,\n\t\t\tBinaryMatrix equivs, Automaton.Set ic, Automaton.Set jc) {\n\t\tint ic_size = ic.size();\n\t\tint jc_size = jc.size();\n\n\t\t// NOTE: the size of two equivalent sets may differ at this stage. This\n\t\t// is because we may two states which are identical and which will\n\t\t// subsequently reduced to a state. Thus, the current size of a set may\n\t\t// not be its final size.\n\n\t\tint[] ic_children = ic.children;\n\t\tint[] jc_children = jc.children;\n\n\t\t// First, check every node in s1 has equivalent in s2\n\t\tfor (int k = 0; k != ic_size; ++k) {\n\t\t\tint ic_child = ic_children[k];\n\t\t\tboolean matched = false;\n\t\t\tfor (int l = 0; l != jc_size; ++l) {\n\t\t\t\tint jc_child = jc_children[l];\n\t\t\t\tif (ic_child == jc_child\n\t\t\t\t\t\t|| (ic_child >= 0 && jc_child >= 0 && equivs.get(\n\t\t\t\t\t\t\t\tic_child, jc_child))) {\n\t\t\t\t\tmatched = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!matched) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Second, check every node in s2 has equivalent in s1\n\t\tfor (int k = 0; k != jc_size; ++k) {\n\t\t\tint jc_child = jc_children[k];\n\t\t\tboolean matched = false;\n\t\t\tfor (int l = 0; l != ic_size; ++l) {\n\t\t\t\tint ic_child = ic_children[l];\n\t\t\t\tif (ic_child == jc_child\n\t\t\t\t\t\t|| (ic_child >= 0 && jc_child >= 0 && equivs.get(\n\t\t\t\t\t\t\t\tic_child, jc_child))) {\n\t\t\t\t\tmatched = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!matched) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private void testEquals() {\n init();\n assertTrue(\"l0.equals(l0)\", l0.equals(l0));\n assertTrue(\"l3.equals(l5)\", l3.equals(l5));\n }", "public MapAssertion<K, V> containsAny(final Map<K, V> expected) {\n checkActualIsNotNull();\n checkArgumentIsNotNull(expected, \"expected\");\n checkArgumentIsNotEmpty(expected.isEmpty(), \"expected\", false);\n Set<K> actualKeys = getActual().keySet();\n boolean found = false;\n for (K key : expected.keySet()) {\n if (actualKeys.contains(key) && isValuesEqual(expected, key)) {\n found = true;\n break;\n }\n }\n if (!found) {\n throw getAssertionErrorBuilder().addMessage(Messages.Fail.Actual.CONTAINS_ANY).addActual().addExpected(expected).build();\n }\n return this;\n }", "@SuppressWarnings(\"unchecked\")\r\n\t\tpublic boolean equals(Object other) {\r\n\t\t\tboolean flag = false;\r\n\r\n\t\t\tif (other instanceof TableElement) {\r\n\t\t\t\tTableElement<K, V> candidate = (TableElement<K, V>) other;\r\n\r\n\t\t\t\tif ((this.getKey()).equals(candidate.getKey()))\r\n\t\t\t\t\tflag = true;\r\n\t\t\t}\r\n\r\n\t\t\treturn flag;\r\n\t\t}", "public boolean isEquals() {\n long len = -1L;\n\n //1. check the lengths of the words\n for(S left : slp.getAxioms()) {\n if(len == -1L) {\n len = slp.length(left);\n }\n else {\n if(len != slp.length(left)) {\n return false;\n }\n }\n }\n\n // all words are the empty word\n if(len == 0) {\n return true;\n }\n\n // 2. the length are all equals and not zero => execute the recompression\n execute();\n\n S otherSymbol = null;\n boolean first = true;\n\n // 3. chech now if for all axioms X : |val(X)| = 1 and all val(X) are equals.\n for(S left : slp.getAxioms()) {\n if(first) {\n slp.length(left, true);\n first = false;\n }\n\n if(slp.length(left) != 1) {\n return false;\n }\n else {\n S symbol = slp.get(left, 1);\n if(otherSymbol == null) {\n otherSymbol = symbol;\n }\n\n if(!symbol.equals(otherSymbol)) {\n return false;\n }\n }\n }\n\n return true;\n }", "@Override public boolean equals(Object o) {\n if (this == o) { return true; }\n if ( !(o instanceof Set) ) { return false; }\n Set that = (Set) o;\n return that.size() == inner.size() &&\n containsAll(that);\n }", "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null || getClass() != obj.getClass()) {\n return false;\n }\n Key key = (Key) obj;\n return Objects.equals(exponent, key.exponent)\n && Objects.equals(modulus, key.modulus);\n }", "@Test\n @DisplayName(\"Matched\")\n public void testEqualsMatched() throws BadAttributeException {\n Settings settings = new Settings();\n assertEquals(new Settings().hashCode(), settings.hashCode());\n }", "@Test\n public void testEquals_sameParameters() {\n CellIdentityNr cellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n CellIdentityNr anotherCellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n\n // THEN this two objects are equivalent\n assertThat(cellIdentityNr).isEqualTo(anotherCellIdentityNr);\n }", "public MapAssertion<K, V> containsAny(final K expectedKey1, final V expectedValue1) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n containsAny(expected);\n return this;\n }", "@Test\n\tpublic void testEqualityCheck() {\n\t\tadd(\"f(x)=x^3\");\n\t\tadd(\"g(x)=-x^3\");\n\t\tt(\"f==g\", \"false\");\n\t\tt(\"f!=g\", \"true\");\n\t\tt(\"f==-g\", \"true\");\n\t\tt(\"f!=-g\", \"false\");\n\t}", "@Test\n public void equalsTest() {\n prepareEntitiesForEqualityTest();\n\n assertEquals(entity0, entity1);\n }", "public boolean equals( Object other ){\r\n\t\t if (!(other instanceof ChainedArrays))\r\n\t\t\t return false;\r\n\t\t Iterator<T> it1 = this.iterator();\r\n\t\t @SuppressWarnings(\"unchecked\")\r\n\t\t ChainedArrays<T> other_casted = (ChainedArrays<T>) other;\r\n\t\t Iterator<T> it2 = other_casted.iterator();\r\n\t\t boolean ans = true;\r\n\t\t while(it1.hasNext()&&it2.hasNext()){\r\n\t\t\t ans &= isEqual( it1.next( ), it2.next( ) );\r\n\t\t }\r\n\t\t return ans;\r\n\t}", "@Test\n public void valuesTest()\n {\n map.putAll(getAMap());\n assertNotNull(map.values());\n }", "private boolean equalKeys(Object other) {\r\n if (this == other) {\r\n return true;\r\n }\r\n if (!(other instanceof Contacto)) {\r\n return false;\r\n }\r\n Contacto that = (Contacto) other;\r\n if (this.getIdContacto() != that.getIdContacto()) {\r\n return false;\r\n }\r\n return true;\r\n }", "private boolean equals(AccessPath that, HashSet s) {\n // Relies on the fact that the iterators are stable for equivalent sets.\n // Otherwise, it is an n^2 algorithm.\n for (Iterator i = this.succ.iterator(), j = that.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper a = (IdentityHashCodeWrapper)i.next();\n IdentityHashCodeWrapper b = (IdentityHashCodeWrapper)j.next();\n AccessPath p = (AccessPath)a.getObject();\n AccessPath q = (AccessPath)b.getObject();\n if (!p.oneEquals(q)) return false;\n if (s.contains(a)) continue;\n s.add(a);\n if (!p.equals(q, s)) return false;\n }\n return true;\n }", "@org.testng.annotations.Test\n public void test_equals_Symmetric()\n throws Exception {\n CategorieClient categorieClient = new CategorieClient(\"denis\", 1000, 10.2, 1.1, 1.2, false);\n Client x = new Client(\"Denis\", \"Denise\", \"Paris\", categorieClient);\n Client y = new Client(\"Denis\", \"Denise\", \"Paris\", categorieClient);\n Assert.assertTrue(x.equals(y) && y.equals(x));\n Assert.assertTrue(x.hashCode() == y.hashCode());\n }", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof User)) {\n return false;\n }\n User that = (User) other;\n if (this.getIduser() != that.getIduser()) {\n return false;\n }\n return true;\n }", "@Test\n\tpublic void equalsSameObject() {\n\t\tProductScanImageURIKey key = this.getDefaultKey();\n\t\tboolean equals = key.equals(key);\n\t\tAssert.assertTrue(equals);\n\t}", "public boolean equals (SetADT<T> set);", "public void testEquals() {\n XIntervalDataItem item1 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n XIntervalDataItem item2 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.0, 3.0, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.0, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.0, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.4);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.4);\n }", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof RegistrationItems)) {\n return false;\n }\n RegistrationItems that = (RegistrationItems) other;\n Object myRegItemUid = this.getRegItemUid();\n Object yourRegItemUid = that.getRegItemUid();\n if (myRegItemUid==null ? yourRegItemUid!=null : !myRegItemUid.equals(yourRegItemUid)) {\n return false;\n }\n return true;\n }", "@Test\n public void equalsWithDifferentName() throws Exception {\n AttributeKey<Number> key1 = new AttributeKey<Number>(Number.class, \"key1\");\n AttributeKey<Number> key2 = new AttributeKey<Number>(Number.class, \"key2\");\n\n assertThat(key1.equals(key2), is(false));\n assertThat(key2.equals(key1), is(false));\n }", "private static boolean equalityTest3(String a, String b)\n {\n return System.identityHashCode(a) == System.identityHashCode(b);\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof AddressMatchMapPK)) {\r\n return false;\r\n }\r\n AddressMatchMapPK other = (AddressMatchMapPK) object;\r\n if ((this.mapKey == null && other.mapKey != null) || (this.mapKey != null && !this.mapKey.equals(other.mapKey))) {\r\n return false;\r\n }\r\n if ((this.mapValue == null && other.mapValue != null) || (this.mapValue != null && !this.mapValue.equals(other.mapValue))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Test\n public void testCaseOfInputEqualsMatchFunction() {\n String o = \"\";\n AtomicBoolean success = new AtomicBoolean(false);\n match(o).caseObj(Optional::ofNullable, s -> success.set(s == o));\n\n assertTrue(success.get());\n }", "public MapAssertion<K, V> containsExactlyInOrder(final K expectedKey1, final V expectedValue1, final K expectedKey2, final V expectedValue2) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey1, expectedValue1);\n expected.put(expectedKey2, expectedValue2);\n containsExactlyInOrder(expected);\n return this;\n }", "@Override\r\n public boolean equals(Object other) {\r\n if (!(other instanceof Contacto))\r\n return false;\r\n return this.equalKeys(other) && ((Contacto) other).equalKeys(this);\r\n }", "public static boolean isEqualSet(Collection set1, Collection set2) {\n/* 99 */ if (set1 == set2) {\n/* 100 */ return true;\n/* */ }\n/* 102 */ if (set1 == null || set2 == null || set1.size() != set2.size()) {\n/* 103 */ return false;\n/* */ }\n/* */ \n/* 106 */ return set1.containsAll(set2);\n/* */ }", "public static void main(String[] args) {\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"a\", \"A\");\r\n map.put(\"b\", \"B\");\r\n map.put(\"c\", \"C\");\r\n \r\n \r\n int h = (new TestMap()).hashCode();\r\n \r\n String a = map.get(\"a\");\r\n \r\n \r\n \r\n \r\n for (String o : map.keySet()){\r\n \tSystem.out.println(o);\r\n \tSystem.out.println(map.get(o));\r\n \t\r\n }\r\n \r\n Map<String, String> map2 = new HashMap<String, String>();\r\n map2.putAll(map);\r\n \r\n for (Map.Entry<String, String> o : map2.entrySet()){\r\n \tSystem.out.println(o.getKey());\r\n \tSystem.out.println(o.getValue());\r\n }\r\n \r\n System.out.println(map2.containsValue(\"A\")); \r\n System.out.println(map2.equals(map)); \r\n\r\n\t}", "@SafeVarargs\n public final MapAssertion<K, V> containsAllKeys(final K... expected) {\n checkActualIsNotNull();\n checkArgumentIsNotNull(expected, \"expected\");\n checkArgumentIsNotEmpty(expected.length == 0, \"expected\", true);\n toKeys().containsAll(expected);\n return this;\n }", "@Test\n public void testEqualsReturnsTrueOnIdenticalRecords() {\n boolean equals = record.equals(otherRecord);\n\n assertThat(equals, is(true));\n }", "public static boolean checkValues (Iterable<Versioned<byte[]>> values, Versioned<byte[]> expected) {\n\t\tIterator<Versioned<byte[]>> itValue = values.iterator();\n\t\twhile (itValue.hasNext()) {\n\t\t\tVersioned<byte[]> curr = itValue.next();\n\t\t\tif ( ! Arrays.equals(expected.getValue(), curr.getValue()) ) {\n\t\t\t\tSystem.err.println(\"Expected value is different!!\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public MapAssertion<K, V> containsAllKeysInOrder(final Iterable<K> expected) {\n checkActualIsNotNull();\n checkArgumentIsNotNull(expected, \"expected\");\n List<K> expectedList = convertValue(expected, null, List.class);\n checkArgumentIsNotEmpty(expectedList.isEmpty(), \"expected\", true);\n toKeys().containsAllInOrder(expectedList);\n return this;\n }", "private static boolean equalityTest5(String a, String b)\n {\n return a.hashCode() == b.hashCode();\n }" ]
[ "0.68409306", "0.6423775", "0.61794955", "0.61086315", "0.60694647", "0.5974079", "0.59072465", "0.585627", "0.5828888", "0.57746637", "0.575872", "0.57469785", "0.5723516", "0.5709931", "0.5664425", "0.5653906", "0.5653443", "0.5647291", "0.5617984", "0.56052077", "0.5593966", "0.5573447", "0.55673033", "0.55601376", "0.55591434", "0.5532847", "0.5519351", "0.5509075", "0.5501051", "0.55007046", "0.5475157", "0.5461796", "0.5450408", "0.5428567", "0.5415159", "0.5407059", "0.5405152", "0.54031664", "0.53941274", "0.53861606", "0.53858393", "0.535751", "0.5356258", "0.53491765", "0.5347604", "0.53417987", "0.5322853", "0.53164315", "0.52970976", "0.5286294", "0.52861345", "0.52808577", "0.5273655", "0.5271749", "0.52653897", "0.52617615", "0.5261022", "0.52532315", "0.524991", "0.5239738", "0.5233258", "0.52308637", "0.5229867", "0.52193046", "0.52142006", "0.52078915", "0.51894075", "0.51872414", "0.5182741", "0.51821524", "0.51804763", "0.51699144", "0.5168", "0.51645035", "0.5163906", "0.51579183", "0.51516217", "0.5150461", "0.5143135", "0.51406217", "0.51330256", "0.51287967", "0.51277226", "0.51260346", "0.5118845", "0.51181763", "0.51176286", "0.51047075", "0.5101637", "0.5097249", "0.5094552", "0.5090562", "0.50872093", "0.5084855", "0.50801474", "0.507849", "0.5073666", "0.50685257", "0.5067337", "0.5063892" ]
0.5329427
46
Determines this hash code.
@Override public int hashCode() { int hashCode = 0; for (K key : keySet()) { hashCode += (key.hashCode() ^ get(key).hashCode()); } return hashCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int hashcode();", "public int hashCode() {\n int hash = 104473;\n if (token_ != null) {\n // Obtain unencrypted form as common base for comparison\n byte[] tkn = getToken();\n for (int i=0; i<tkn.length; i++)\n hash ^= (int)tkn[i];\n }\n hash ^= (type_ ^ 14401);\n hash ^= (timeoutInterval_ ^ 21327);\n hash ^= (isPrivate() ? 15501 : 12003);\n if (getPrincipal() != null)\n hash ^= getPrincipal().hashCode();\n if (getSystem() != null)\n hash ^= getSystem().getSystemName().hashCode();\n return hash;\n }", "public int hashCode()\n {\n int code = 0;\n int i;\n int shift = 0;\n \n \t\tint byteLength = getLengthInBytes();\n for( i = 0; i < byteLength; i++)\n {\n code ^= (value[i] & 0xff)<<shift;\n shift += 8;\n if( 32 <= shift)\n shift = 0;\n }\n return code;\n }", "public int hashCode()\n {\n int i = 0;\n if ( hasCode() )\n i ^= getCode().hashCode();\n return i;\n }", "public abstract int getHash();", "public int hashCode() {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[28]++;\r\n long start = getStartMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[29]++;\r\n long end = getEndMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[30]++;\r\n int result = 97;\r\n result = 31 * result + ((int) (start ^ (start >>> 32)));\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[31]++;\r\n result = 31 * result + ((int) (end ^ (end >>> 32)));\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[32]++;\r\n result = 31 * result + getChronology().hashCode();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[33]++;\r\n return result;\r\n }", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public int hashcode(){\r\n\t\t\r\n\t\treturn last_Name.hashcode();\r\n\t}", "public int hashCode() {\n /*\n r7 = this;\n com.unboundid.ldap.matchingrules.CaseIgnoreStringMatchingRule r0 = com.unboundid.ldap.matchingrules.CaseIgnoreStringMatchingRule.getInstance()\n byte r1 = r7.filterType\n r2 = -121(0xffffffffffffff87, float:NaN)\n if (r1 == r2) goto L_0x009a\n r2 = 0\n switch(r1) {\n case -96: goto L_0x008b;\n case -95: goto L_0x008b;\n case -94: goto L_0x0084;\n case -93: goto L_0x006e;\n case -92: goto L_0x0034;\n case -91: goto L_0x006e;\n case -90: goto L_0x006e;\n default: goto L_0x000e;\n }\n L_0x000e:\n switch(r1) {\n case -88: goto L_0x006e;\n case -87: goto L_0x0013;\n default: goto L_0x0011;\n }\n L_0x0011:\n goto L_0x00a5\n L_0x0013:\n java.lang.String r2 = r7.attrName\n if (r2 == 0) goto L_0x0020\n java.lang.String r2 = com.unboundid.util.StaticUtils.toLowerCase(r2)\n int r2 = r2.hashCode()\n int r1 = r1 + r2\n L_0x0020:\n java.lang.String r2 = r7.matchingRuleID\n if (r2 == 0) goto L_0x002d\n java.lang.String r2 = com.unboundid.util.StaticUtils.toLowerCase(r2)\n int r2 = r2.hashCode()\n int r1 = r1 + r2\n L_0x002d:\n boolean r2 = r7.dnAttributes\n if (r2 == 0) goto L_0x0079\n int r1 = r1 + 1\n goto L_0x0079\n L_0x0034:\n java.lang.String r3 = r7.attrName\n java.lang.String r3 = com.unboundid.util.StaticUtils.toLowerCase(r3)\n int r3 = r3.hashCode()\n int r1 = r1 + r3\n com.unboundid.asn1.ASN1OctetString r3 = r7.subInitial\n if (r3 == 0) goto L_0x004e\n r4 = -128(0xffffffffffffff80, float:NaN)\n com.unboundid.asn1.ASN1OctetString r3 = r0.normalizeSubstring(r3, r4)\n int r3 = r3.hashCode()\n int r1 = r1 + r3\n L_0x004e:\n com.unboundid.asn1.ASN1OctetString[] r3 = r7.subAny\n int r4 = r3.length\n L_0x0051:\n if (r2 >= r4) goto L_0x0063\n r5 = r3[r2]\n r6 = -127(0xffffffffffffff81, float:NaN)\n com.unboundid.asn1.ASN1OctetString r5 = r0.normalizeSubstring(r5, r6)\n int r5 = r5.hashCode()\n int r1 = r1 + r5\n int r2 = r2 + 1\n goto L_0x0051\n L_0x0063:\n com.unboundid.asn1.ASN1OctetString r2 = r7.subFinal\n if (r2 == 0) goto L_0x00a5\n r3 = -126(0xffffffffffffff82, float:NaN)\n com.unboundid.asn1.ASN1OctetString r0 = r0.normalizeSubstring(r2, r3)\n goto L_0x007f\n L_0x006e:\n java.lang.String r2 = r7.attrName\n java.lang.String r2 = com.unboundid.util.StaticUtils.toLowerCase(r2)\n int r2 = r2.hashCode()\n int r1 = r1 + r2\n L_0x0079:\n com.unboundid.asn1.ASN1OctetString r2 = r7.assertionValue\n com.unboundid.asn1.ASN1OctetString r0 = r0.normalize(r2)\n L_0x007f:\n int r0 = r0.hashCode()\n goto L_0x00a4\n L_0x0084:\n com.unboundid.ldap.sdk.Filter r0 = r7.notComp\n int r0 = r0.hashCode()\n goto L_0x00a4\n L_0x008b:\n com.unboundid.ldap.sdk.Filter[] r0 = r7.filterComps\n int r3 = r0.length\n L_0x008e:\n if (r2 >= r3) goto L_0x00a5\n r4 = r0[r2]\n int r4 = r4.hashCode()\n int r1 = r1 + r4\n int r2 = r2 + 1\n goto L_0x008e\n L_0x009a:\n java.lang.String r0 = r7.attrName\n java.lang.String r0 = com.unboundid.util.StaticUtils.toLowerCase(r0)\n int r0 = r0.hashCode()\n L_0x00a4:\n int r1 = r1 + r0\n L_0x00a5:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.ldap.sdk.Filter.hashCode():int\");\n }", "@Override\n public int hashCode() {\n \n final int code = 24;\n int result = 1;\n result = code * result + ((id == null) ? 0 : id.hashCode());\n return result;\n }", "public int hashCode()\n {\n return (int)(swigCPtr^(swigCPtr>>>32));\n }", "public int hashCode() {\n return 37 * 17;\n }", "public int hashCode()\n {\n int hash = 7;\n hash = 83 * hash + (counter != null ? counter.hashCode() : 0);\n return hash;\n }", "public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (role != null ? role.hashCode() : 0);\n return hash;\n }", "@Override\r\n public int hashCode() {\n int key=(Integer)(this.capsule.get(0)); // Get the key\r\n Integer bkey=Integer.parseInt(Integer.toBinaryString(key)); // Convert into binary \r\n int n=setcount(bkey); //counts the number of 1's in the binary\r\n key=key*n + Objects.hashCode(this.capsule.get(0)); //multiplies that with the hashcode of the pId\r\n return key;\r\n }", "public int hashCode() {\n int result = 17;\n result = (37 * result)\n + ((nullCheck == null) ? 0 : nullCheck.hashCode());\n\n return result;\n }", "public HashCode() {\n mVal = SEED;\n }", "int computeHashCode(byte val);", "private int hasher() {\n int i = 0;\n int hash = 0;\n while (i != length) {\n hash += hashableKey.charAt(i++);\n hash += hash << 10;\n hash ^= hash >> 6;\n }\n hash += hash << 3;\n hash ^= hash >> 11;\n hash += hash << 15;\n return getHash(hash);\n }", "int getHash();", "public int hashCode() {\n\t\tlong code = 0;\n\t\tint elements = _rowCount * _columnCount;\n\n\t\tfor (int i = 0; i < elements; i++) {\n\t\t\tcode += _value[i];\n\t\t}\n\n\t\treturn (int) code;\n\t}", "public int hashCode() {\n return super.hashCode() ^ 0x1;\n }", "public int hashCode() {\n try {\n int res = 0;\n byte[] array = getEncoded();\n for (int i=0; i<array.length; i++) {\n res += array[i] & 0xFF;\n }\n return res;\n } catch (CRLException e) {\n return 0;\n }\n }", "public int hashCode() {\n\t\t// simple recipe for generating hashCode given by\n\t\t// Effective Java (Addison-Wesley, 2001)\n\t\tint result = 17;\n\t\tresult = 37 * result + methodName.hashCode();\n\t\treturn result;\n\t}", "@Override\n public int hashCode ()\n {\n int hash = 7;\n hash = 53 * hash + Arrays.hashCode (this.bytes);\n return hash;\n }", "public int hashCode() {\r\n int result = 17;\r\n result = xCH(result, getTableDbName());\r\n result = xCH(result, getMemberAddressId());\r\n return result;\r\n }", "public int hashCode()\n\t{\n\t\treturn y<<16+x;\n\t}", "String getHashAlgorithm();", "protected int computeHashCode() {\n return flags * 17\n + (var != null ? var.hashCode() : 0)\n + (num != null ? num.hashCode() : 0)\n + (str != null ? str.hashCode() : 0)\n + (object_labels != null ? object_labels.hashCode() : 0)\n + (getters != null ? getters.hashCode() : 0)\n + (setters != null ? setters.hashCode() : 0)\n + (excluded_strings != null ? excluded_strings.hashCode() : 0)\n + (included_strings != null ? included_strings.hashCode() : 0)\n + (functionPartitions != null ? functionPartitions.hashCode() : 0)\n + (functionTypeSignatures != null ? functionTypeSignatures.hashCode() : 0);\n }", "public int hashCode() {\n final int HASH_MULTIPLIER = 29;\n int h = HASH_MULTIPLIER * FName.hashCode() + LName.hashCode();\n h = HASH_MULTIPLIER * h + ((Integer)ID).hashCode();\n return h;\n }", "@Override\n public int hashCode() {\n int i;\n int result = 17;\n i = getIdacquirente();\n result = 37*result + i;\n return result;\n }", "@Override\n\tpublic int hashCode() {\n\t\t\n\t\treturn (int)id * name.hashCode() * email.hashCode();\n\t\t//int hash = new HashCodeBuilder(17,37).append(id).append(name); //can be added from Apache Commons Lang's HashCodeBuilder class\n\t}", "public int hashCode() {\n\t\tint h = 0, i = 0, j = count;\n\t\twhile (j-- != 0) {\n\t\t\twhile (state[i] != OCCUPIED)\n\t\t\t\ti++;\n\t\t\th += longHash2IntHash(key[i]);\n\t\t\ti++;\n\t\t}\n\t\treturn h;\n\t}", "@Override\n public int hashCode() {\n if (hash == 0)\n hash = MD5.getHash(owner.getLogin() + description).hashCode();\n return hash;\n }", "public int hashCode() {\n if (hashCode != 0){\n return hashCode;\n }\n return hashCode = computeHash();\n }", "public int hashCode() {\n return (name.ordinal() + 5) * 51;\n }", "@Override\r\n\tpublic int hashCode() {\n\t\tint result = 17;\r\n\t\tresult = 37*result+(int) (id ^ (id>>>32));\r\n\t\t//result = 37*result+(name==null?0:name.hashCode());\r\n\t\t//result = 37*result+displayOrder;\r\n\t\t//result = 37*result+(this.url==null?0:url.hashCode());\r\n\t\treturn result;\r\n\t}", "@Override\n public int hashCode() {\n\n if (this.hashCode == null) {\n int hashCode = this.symbol.hashCode();\n\n if (this.isLookahead) {\n hashCode *= 109;\n }\n\n this.hashCode = hashCode;\n }\n\n return this.hashCode;\n }", "public int hashCode() {\n int hash = 0;\n hash = width;\n hash <<= 8;\n hash ^= height;\n hash <<= 8;\n hash ^= numBands;\n hash <<= 8;\n hash ^= dataType;\n hash <<= 8;\n for (int i = 0; i < bandOffsets.length; i++) {\n hash ^= bandOffsets[i];\n hash <<= 8;\n }\n for (int i = 0; i < bankIndices.length; i++) {\n hash ^= bankIndices[i];\n hash <<= 8;\n }\n hash ^= numBands;\n hash <<= 8;\n hash ^= numBanks;\n hash <<= 8;\n hash ^= scanlineStride;\n hash <<= 8;\n hash ^= pixelStride;\n return hash;\n }", "public abstract int hashCode();", "public int hashCode() {\n\t\treturn BeanTools.createHashcode(id, consultContent, consultTime);\r\n\t}", "public int hashCode()\n {\n int hash = this.getClass().hashCode();\n\n hash = ( hash << 1 | hash >>> 31 ) ^ Arrays.hashCode(genome);\n\n return hash;\n }", "@Override\n public int hashCode() {\n // name's hashCode is multiplied by an arbitrary prime number (13)\n // in order to make sure there is a difference in the hashCode between\n // these two parameters:\n // name: a value: aa\n // name: aa value: a\n return key.hashCode() * 13 + (value == null ? 0 : value.hashCode());\n }", "@Override\n\tpublic int hashCode() {\n\t\tint karprabin = 0;\n\t\tfinal int B = 31;\n\t\tfor (int k = 0; k < this.actualsizeinwords; ++k) {\n\t\t\tkarprabin += B * karprabin + (this.buffer[k] & ((1l << 32) - 1));\n\t\t\tkarprabin += B * karprabin + (this.buffer[k] >>> 32);\n\t\t}\n\t\treturn this.sizeinbits ^ karprabin;\n\t}", "@Override\n public int hashCode() {\n int B = 31, M = 1000000007, code = 0;\n for(int pos = 0; pos < this.objectA.length(); pos++) {\n code = ((this.objectA.charAt(pos) - 'a') + B * code) % M;\n }\n return (code * this.objectB) % M;\n }", "@Override\n public int hashCode() {\n int i;\n int result = 17;\n if (getMasp() == null) {\n i = 0;\n } else {\n i = getMasp().hashCode();\n }\n result = 37*result + i;\n return result;\n }", "public int generateHashCode() {\n int code = getClass().hashCode();\n boolean temp_fromSource = isFromSource();\n code ^= temp_fromSource ? 1231 : 1237;\n IRId temp_name = getName();\n code ^= temp_name.hashCode();\n List<IRId> temp_params = getParams();\n code ^= temp_params.hashCode();\n List<IRStmt> temp_args = getArgs();\n code ^= temp_args.hashCode();\n List<IRFunDecl> temp_fds = getFds();\n code ^= temp_fds.hashCode();\n List<IRVarStmt> temp_vds = getVds();\n code ^= temp_vds.hashCode();\n List<IRStmt> temp_body = getBody();\n code ^= temp_body.hashCode();\n return code;\n }", "public int hashCode(){\n \n long code;\n\n // Values in linear combination with two\n // prime numbers.\n\n code = ((21599*(long)value)+(20507*(long)n.value));\n code = code%(long)prime;\n return (int)code;\n }", "public int hashCode()\n {\n if (this.hashValue == 0)\n {\n int result = 17;\n int wsidValue = this.getWsid() == null ? 0 : this.getWsid().hashCode();\n result = result * 37 + wsidValue;\n this.hashValue = result;\n }\n return this.hashValue;\n }", "@Override\n public int hashCode() {\n int i;\n int result = 17;\n i = getIduser();\n result = 37*result + i;\n return result;\n }", "@Override\n public int hashCode() {\n int hash = 3;\n hash = 97 * hash + this.x;\n hash = 97 * hash + this.y;\n return hash;\n }", "public int hashCode()\n { \n \tint result = 17;\n \t\n \tresult = 37 * result + score; \t\n \t\n \treturn result;\n }", "private int hashType() {\n // Twelve possibilities\n int answer;\n if (isBomb()) {\n answer = 1;\n } else if (isShield()) {\n answer = 2;\n } else {\n answer = 3;\n }\n if (isFire() && !isKing()) {\n answer += 3 * 1;\n }\n if (!isFire() && isKing()) {\n answer += 3 * 2;\n }\n if (isFire() && isKing()) {\n answer += 3 * 3;\n }\n return answer - 1;\n }", "public int hashCode() {\n return new HashCodeBuilder(7, 29)\n .append(meaning)\n .append(type)\n .append(target)\n .toHashCode(); \n }", "public int hashCode()\n {\n int result = 17;\n result = 37 * result + this.m_exceptionFrequency;\n result = 37 * result + this.exception_program_number;\n return result;\n }", "@Override\n public int hashCode()\n {\n return new HashCodeBuilder(17, 31).\n append(_name).\n toHashCode();\n }", "public int hashCode() {\n // For speed, this hash code relies only on the hash codes of its select\n // and criteria clauses, not on the from, order by, or option clauses\n int myHash = 0;\n myHash = HashCodeUtil.hashCode(myHash, this.operation);\n myHash = HashCodeUtil.hashCode(myHash, getProjectedQuery());\n return myHash;\n }", "public int hashCode() {\n if (myhash == -1) {\n myhash = timestamp.hashCode() + signerCertPath.hashCode();\n }\n return myhash;\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.firstName);\n hash = 29 * hash + Objects.hashCode(this.lastName);\n hash = 29 * hash + this.studentNumber;\n return hash;\n }", "@Override\r\n public int hashCode() {\r\n int hash = 7;\r\n hash = 19 * hash + (int) (this.grauDeEquilibrio ^ (this.grauDeEquilibrio >>> 32));\r\n return hash;\r\n }", "int hashCode();", "int hashCode();", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.id);\n hash = 29 * hash + Objects.hashCode(this.name);\n return hash;\n }", "public int hashCode()\n {\n return hash;\n }", "public int hashCode(){\n int hash = HashCodeUtil.SEED;\n\n hash = HashCodeUtil.hash(hash,getEventTimeMillis());\n hash = HashCodeUtil.hash(hash,getEventId());\n hash = HashCodeUtil.hash(hash,getAuthenticationType());\n hash = HashCodeUtil.hash(hash,getServiceHost());\n hash = HashCodeUtil.hash(hash,getRequesterIp());\n hash = HashCodeUtil.hash(hash,getSessionId());\n hash = HashCodeUtil.hash(hash,getResourceHost());\n hash = HashCodeUtil.hash(hash,getPrincipalName());\n hash = HashCodeUtil.hash(hash,getEventType());\n hash = HashCodeUtil.hash(hash,getServiceId());\n hash = HashCodeUtil.hash(hash,getResourceId());\n\n\n return hash;\n\n }", "public int getHash() {\n return hash_;\n }", "public int hashCode()\n\t{\n\t\tint result = 17;\n\n\t\tlong tmp;\n\t\tif (_rsHeader != null && !org.castor.core.util.CycleBreaker.startingToCycle(_rsHeader))\n\t\t{\n\t\t\tresult = 37 * result + _rsHeader.hashCode();\n\t\t\torg.castor.core.util.CycleBreaker.releaseCycleHandle(_rsHeader);\n\t\t}\n\n\t\treturn result;\n\t}", "@Override\n public int hashCode() {\n // Declare hash and assign value\n int hash = 7;\n // Generate hash integer\n hash = 31 * hash + (int) this.getCrossingTime();\n hash = 31 * hash + (this.getName() == null ? 0 : this.getName().hashCode());\n return hash;\n }", "public int generateHashCode() {\n int code = getClass().hashCode();\n ASTSpanInfo temp_info = getInfo();\n code ^= temp_info.hashCode();\n LHS temp_obj = getObj();\n code ^= temp_obj.hashCode();\n Expr temp_index = getIndex();\n code ^= temp_index.hashCode();\n return code;\n }", "@Override\n public int hashCode() {\n Integer s_int = new Integer(\"223\");\n int result = Objects.hashCode(valueOf(sideLengthA));\n result = (31 * result) + Objects.hashCode(valueOf(sideLengthB));\n result = (31 * result) +Objects.hashCode(valueOf(sideLengthC));\n return result;\n }", "public int hashCode() {\n int result = 17;\n\n if (_address != null) {\n result = 37 * result + _address.hashCode();\n }\n\n return result;\n }", "private static int nextHashCode() {\n return nextHashCode.getAndAdd(HASH_INCREMENT);\n }", "public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (projectId != null ? projectId.hashCode() : 0);\n return hash;\n }", "public int hashCode()\n {\n int i = 0;\n if ( hasHashKey() )\n i ^= getHashKey().hashCode();\n return i;\n }", "@Override\r\n public int hashCode() {\r\n int result = (int) (a ^ (a >>> 32));\r\n result = 31 * result + (b != null ? b.hashCode() : 0);\r\n result = 31 * result + (a != null ? a.hashCode() : 0);\r\n result = 31 * result + (b != null ? b.hashCode() : 0);\r\n return result;\r\n }", "public String getHashCode();", "@Override\n\tpublic long getHashCode(String key) {\n\t\tlong hash = 0;\n\t\tlong b = 378551;\n\t\tlong a = 63689;\n\t\tint tmp = 0;\n\t\tfor (int i = 0; i < key.length(); i++) {\n\t\t\ttmp = key.charAt(i);\n\t\t\thash = hash * a + tmp;\n\t\t\ta *= b;\n\t\t}\n\t\treturn hash;\n\t}", "@Override\r\n\t\t\t\tpublic int hashCode() {\r\n\t\t\t\t\t// Método hashcode aleatório projetado para ser geralmente único\r\n\t\t\t\t\treturn this.x + this.y * 256;\r\n\t\t\t\t}", "public int hashCode() {\n\t\treturn new HashCodeBuilder().append(obox).append(wordOffsets).append(occlusions).toHashCode();\n\t}", "@Override\r\n public int hashCode() {\r\n return this.number;\r\n }", "public int hashCode() {\r\n\t\treturn this.iD;\r\n\t}", "public int getHash() {\n return hash_;\n }", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode()\r\n {\r\n int hashcode = this.operations[0].hashCode();\r\n for (int i = 1; i < operations.length; i++)\r\n {\r\n hashcode ^= operations[i].hashCode();\r\n }\r\n return hashcode;\r\n }", "public int hashCode() {\n long hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getProjectName());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getDataProvider());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getPrimaryInvestigator());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getCreatedBy());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getCreatedTime());\n return (int)(hash % Integer.MAX_VALUE);\n }", "@Override\n public int hashCode() {\n long longBits = Double.doubleToLongBits(this.size + this.unit.hashCode());\n return (int) (longBits ^ (longBits >>> 32));\n }", "public int hashCode() {\n if (hash == -1) {\n hash = 0;\n byte b[] = packet.getData();\n int len = b.length;\n for (int ix = 0; ix < len; ix++) {\n\thash = 31 * hash + b[ix];\n }\n hash ^= (packet.getAddress().hashCode() ^\n\t (packet.getPort() << 15) ^\n\t (packet.getLength() << 3) ^\n\t (packet.getOffset() << 8));\n }\n return hash;\n }", "@Override\n public int hashCode()\n {\n // uses roll no to verify the uniqueness\n // of the object of Student class\n final int temp = 14;\n int ans = 1;\n ans = temp * ans + rollno;\n return ans;\n }", "public int hashCode()\r\n/* */ {\r\n/* 89 */ int hash = 3;\r\n/* 90 */ hash = 19 * hash + Objects.hashCode(this.id);\r\n/* 91 */ return hash;\r\n/* */ }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 43 * hash + this.id;\n hash = 43 * hash + this.size;\n hash = 43 * hash + Objects.hashCode(this.orientation);\n hash = 43 * hash + Objects.hashCode(this.currentPosition);\n return hash;\n }", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1; \n\t\t\n\t\t/*\n\t\t * result = 31*1 + 0(if rank is null) else rank.hashcode which calls the String implementation of the hashcode method.\n\t\t * So for example we will say: 31*1+20=51\n\t\t */\n\t\tresult = prime * result + ((rank == null) ? 0 : rank.hashCode());\n\t\tresult = prime * result + ((suit == null) ? 0 : suit.hashCode());\n\t\treturn result;\n\t}", "@Override\r\n\tpublic int hashCode() {\n\t\tint result = QAOperation.SEED;\r\n\t\tresult = QAOperation.PRIME_NUMBER * result + operator.hashCode();\r\n\t\tresult = QAOperation.PRIME_NUMBER * result + operand.hashCode();\r\n\t\tresult = QAOperation.PRIME_NUMBER * result + constraint.hashCode();\r\n\t\treturn result;\r\n\t}", "public final int hashCode() {\r\n return _value;\r\n }", "public int hashCode()\r\n/* 124: */ {\r\n/* 125:126 */ return this.id;\r\n/* 126: */ }", "public static final int nextHashCodeEntropy() {\n\t\tint hash = 17;\n\t\tfor (int i = 0; i < 11; i++) {\n\t\t\thash = 37 * hash + new Object().hashCode();\n\t\t}\n\t\treturn hash = 37 * hash + new Object().hashCode();\n\t}", "public int getHashCode(){\n return hashCode();\n }", "public int hashCode()\r\n {\r\n int hash = super.hashCode();\r\n hash ^= hashValue( m_name );\r\n hash ^= hashValue( m_classname );\r\n if( m_implicit )\r\n {\r\n hash ^= 35;\r\n }\r\n hash ^= hashValue( m_production );\r\n hash ^= hashArray( m_dependencies );\r\n hash ^= hashArray( m_inputs );\r\n hash ^= hashArray( m_validators );\r\n hash ^= hashValue( m_data );\r\n return hash;\r\n }", "public int hashCode() {\n\t\tint hash = 0;\n\t\tif (isGameOver()) {\n\t\t\treturn (1 + (winner() == Game.FIRST_PLAYER ? 1 : 2));\n\t\t}\n\t\thash = 4;\n\t\tfor (int i = 1; i < NUMBER_OF_MOVES; i++) {\n\t\t\thash *= 3;\n\t\t\tif (contains(moves1, i)) {\n\t\t\t\thash++;\n\t\t\t} else if (contains(moves2, i)) {\n\t\t\t\thash += 2;\n\t\t\t}\n\t\t}\n\t\treturn hash;\n\t}" ]
[ "0.7399931", "0.7393573", "0.7145971", "0.70913786", "0.70639855", "0.6991574", "0.6968992", "0.69326025", "0.69286466", "0.692426", "0.6918578", "0.6913596", "0.68916476", "0.688311", "0.6862128", "0.68474114", "0.6839031", "0.6826935", "0.6823269", "0.68195957", "0.6819165", "0.68126225", "0.6804159", "0.6799613", "0.67970484", "0.6794502", "0.67892426", "0.67786527", "0.6760902", "0.67606264", "0.6754619", "0.67372274", "0.6734437", "0.6732092", "0.67290413", "0.6725485", "0.67181957", "0.6709993", "0.667957", "0.66794634", "0.667416", "0.66592366", "0.6635229", "0.66322887", "0.6618019", "0.6601453", "0.6600903", "0.65992373", "0.6587113", "0.6585814", "0.6585197", "0.6579501", "0.6578003", "0.6577213", "0.6574746", "0.6574085", "0.6568994", "0.65672123", "0.65608776", "0.65577215", "0.65440065", "0.65440065", "0.65429497", "0.6541193", "0.6540422", "0.65321034", "0.65270734", "0.65250576", "0.6512519", "0.6510875", "0.6507064", "0.6503671", "0.64942443", "0.6486433", "0.6484562", "0.64822614", "0.6478264", "0.64770997", "0.6476761", "0.64727825", "0.6468842", "0.646844", "0.64656085", "0.64656085", "0.64656085", "0.64656085", "0.6459507", "0.64575845", "0.6447911", "0.64441717", "0.64415795", "0.6422272", "0.6420444", "0.6418276", "0.6412031", "0.64115155", "0.6411476", "0.6401995", "0.6400293", "0.6399867", "0.6395858" ]
0.0
-1
Returns the corresponding bucket given a key.
Bucket getBucket(K key) { return (Bucket) buckets[key.hashCode() % numBuckets]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private LinkedList<Entry> chooseBucket(Object key) { \t\n // hint: use key.hashCode() to calculate the key's hashCode using its built in hash function\n // then use % to choose which bucket to return.\n return buckets[key.hashCode() % buckets.length];\n }", "@Override\r\n\tpublic V get(Object key) {\r\n\t\tBucket bucket = (Bucket) buckets[key.hashCode() % numBuckets];\r\n\t\treturn bucket.get((K) key);\r\n\t}", "private int getBucketIndex( K key ) {\r\n\t\tint hashCode = key.hashCode();\r\n\t\treturn hashCode % numBuckets;\r\n\t}", "public byte[] bucketOf(String saltedKey) {\n return saltedKey.substring(0, Integer.toString(numOfBuckets - 1).length()).getBytes(getCharset());\n }", "B getBucket();", "public V get(K key) {\n\tint bucket=Math.abs(key.hashCode()%capacity);\n\tfor(MyEntry i:table[bucket]) {\n\t if(i.key.equals(key)) {\n\t\treturn i.value;\n\t }\n\t}\n\treturn null;\n }", "private Node _locate(Object key, int bucketNum){\n\t\tNode bucketList = _buckets[bucketNum];\r\n\t\twhile(bucketList != null)\r\n\t\t{\r\n\t\t\tif(key == bucketList._key){\t\t\t\t// If the key matches the key of the current node\r\n\t\t\t\tbreak;\t\t\t\t\t\t\t\t// in bucketList, then return the bucketList.\r\n\t\t\t}\r\n\t\t\tbucketList = bucketList._nextNode;\t\t// Otherwise move to the next node.\r\n\t\t}\r\n\t\treturn bucketList;\r\n\t}", "public byte[] bucketOf(byte[] saltedKey) {\n return Arrays.copyOfRange(saltedKey, 0, Integer.toString(numOfBuckets - 1).length());\n }", "public Object get(Object key) {\n\t\tint index = key.hashCode() % SLOTS;\n\t\t// check if key is already present in that slot/bucket.\n\t\tfor(Pair p:table[index]) {\n\t\t\tif(key.equals(p.key))\n\t\t\t\treturn p.value;\n\t\t}\n\t\t// if not found, return null\n\t\treturn null;\n\t}", "public V getValue( K key ) {\r\n\t\tint bucketIndex = getBucketIndex( key );\r\n\t\tMapNode<K, V> head = buckets.get(bucketIndex);\r\n\t\twhile( head != null ) {\r\n\t\t\tif( head.key.equals(key)) {\r\n\t\t\t\treturn head.value;\r\n\t\t\t}\r\n\t\t\thead = head.next;\r\n\t\t}\r\n\t\treturn null;\t\r\n\t}", "public bucket getbucket(int x) {\n\t\treturn bucket[x];\n\t}", "public String getBucket();", "public V get(K key) {\n if (key == null) {\n MyEntry<K, V> entry = null;\n try {\n entry = bucket[0];\n if (entry != null) {\n return entry.getValue();\n }\n } catch (NullPointerException e) {\n }\n } else {\n // other keys\n MyEntry<K, V> entry = null;\n int location = hashFunction(key.hashCode());\n entry = bucket[location];\n if (entry != null && entry.getKey() == key) {\n return entry.getValue();\n }\n }\n return null;\n }", "public V get(K key)\n throws Exception\n {\n AssociationList<K, V> bucket = this.get(this.find(key));\n if (bucket == null)\n {\n throw new Exception(\"Invalid key: \" + key);\n } // if (bucket == null)\n else\n // if (bucket != null)\n {\n return bucket.get(key);\n } // if (bucket != null)\n }", "public int get(int key) {\n int pos = key % this.size;\n Bucket bucket = this.buckets[pos];\n return bucket.get(key);\n }", "public int calcBucket(int keyValue) {\n return (keyValue % buckets.length);\n }", "public int calcBucket(int keyValue) {\n\t\treturn(keyValue % buckets.length);\r\n\t}", "public String getBucket() {\n return bucket;\n }", "protected V bucketGet(int h, K k) {\n int j = findSlot(h, k);\n if (j < 0) return null; // no match found\n return table[j].getValue();\n }", "private Node _locate(Object key){\n\t\tint hashCode = key.hashCode();\r\n\t\tint bucketNum = hashCode % _numBuckets;\r\n\t\treturn _locate(key, bucketNum);\r\n\t}", "@Nonnull\n Map<Object, T> fetchBucket(int bucketIdx) throws Exception;", "public interface BucketKeyPair<B, K> {\n\n /**\n * Get the bucket representation.\n *\n * @return\n */\n B getBucket();\n\n /**\n * Get the key representation.\n *\n * @return\n */\n K getKey();\n\n}", "public V removeKey( K key ) {\r\n\t\tint bucketIndex = getBucketIndex( key );\r\n\t\tMapNode<K, V> head = buckets.get(bucketIndex);\r\n\t\tMapNode<K, V> prev = null;\r\n\t\twhile( head != null ) {\r\n\t\t\tif( head.key.equals(key)) {\r\n\t\t\t\tsize--;\r\n\t\t\t\tif( prev == null ) {\r\n\t\t\t\t\t//sbse first key hi h thn second key\r\n\t\t\t\t\t//ko point kra dege arraylist m \r\n\t\t\t\t\tbuckets.set(bucketIndex, head.next );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tprev.next = head.next;\r\n\t\t\t\t}\r\n\t\t\t\treturn head.value;\r\n\t\t\t}\r\n\t\t\tprev = head;\r\n\t\t\thead = head.next;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public V get(K searchKey) {\n\t\tint index = hash(searchKey);\n\t\t\n\t\tIterator<WordCode<K, V>> itr = myBuckets.get(index).iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tWordCode<K, V> itrVal = itr.next();\n\t\t\tif (itrVal.myKey.equals(searchKey)) return itrVal.myValue;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "private int getIndex(K key){\n int hashcode=key.hashCode();\n int index=hashcode%maxBuckets;\n return index;\n }", "public V bubbaGet(K key) {\n int idx = hash(key);\n int hashVal = idx;\n\n while (table[idx] != null && table[idx].offset >= calcOff(hashVal, idx)) {\n if (table[idx].key != null && table[idx].equals(key)) {\n return table[idx].value;\n }\n increment(idx);\n }\n return null;\n }", "@GetMapping(\"/buckets/{id}\")\n @Timed\n public ResponseEntity<BucketDTO> getBucket(@PathVariable Long id) {\n log.debug(\"REST request to get Bucket : {}\", id);\n BucketDTO bucketDTO = bucketService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(bucketDTO));\n }", "public Entry find(Object key) {\n int i = compFunction(key.hashCode());\n SList chain = buckets[i];\n try {\n for (SListNode n = (SListNode) chain.front(); n.isValidNode(); n = (SListNode) n.next()) {\n Entry e = (Entry) n.item();\n if (e.key.equals(key)) {\n return e;\n }\n }\n } catch(InvalidNodeException e) {\n System.out.println(e);\n }\n return null;\n }", "public V get(K key) {\n int hashCode = scaledHashCode(key);\n OwnLinkedList<K, V> list = table[hashCode];\n if (list == null) {\n return null;\n }\n PairNode<K, V> result = list.search(key);\n if (result == null) {\n return null;\n }\n return result.getValue();\n }", "public synchronized V get(K k) {\n final int h = getHash(k), hash = h % buckets.length;\n ItemNode<K,V> node = ItemNode.search(buckets[hash], k);\n if (node != null) \n return node.v;\n else\n return null;\n }", "public V get(K k) {\n final ItemNode<K,V>[] bs = buckets;\n final int h = getHash(k), stripe = h % lockCount, hash = h % bs.length;\n final Holder<V> holder = new Holder<V>();\n // The sizes access is necessary for visibility of bs elements\n if (sizes.get(stripe) != 0){\n boolean found = ItemNode.search(bs[hash], k, holder);\n return found ? holder.get() : null;\n }\n return null;\n }", "V get(final K key);", "public int getIndexOfValue(K key){\n int index = getIndex(key);\n\n while(bucketArray[index] != null){\n if(bucketArray[index].key == key && !bucketArray[index].isDeleted){\n return index;\n }\n index = (index + 1) % bucketArray.length;\n }\n return -1;\n }", "public abstract int getBucketID();", "public Bucket loadBucket(String name) throws S3Exception {\n\t\treturn null;\r\n\t}", "public V get(K key) {\r\n\t\tint place = hash(key.hashCode());\r\n\t\tif (hashMapArray[place] != null) {\r\n\t\t\tLinkedList<KVPair> temp = hashMapArray[place];\r\n\t\t\tfor (KVPair i : temp) {\r\n\t\t\t\tif (i.getKey().equals(key)) {\r\n\t\t\t\t\treturn i.getValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "final CacheData<K, V> getEntry(final Object key) {\r\n // validateKey the key in the buckets\r\n\r\n // synchronization is not a problem here\r\n // if someone changes or resets a key/value right before this\r\n // it will be properly handled, either it won't find a validateKey in the if or the\r\n // obj being returned will be null, that is fine and expected for a no-validateKey\r\n // then the client will just validateKey whatever data he was looking for in the buckets\r\n return getCacheData(getKeyPosition(key));\r\n }", "public String getBucketName(){\n return bucketName;\n }", "@Override\n\tpublic V get(K key) {\n\t\tint h = Math.abs(key.hashCode()) % nrb;// calculam hash-ul asociat cheii\n\t\tfor (int i = 0; i < b.get(h).getEntries().size(); i++) {\n\t\t\t// parcurgerea listei de elemente pentru a gasi cheia ceruta si a\n\t\t\t// intoarte valoarea dorita\n\t\t\tif (b.get(h).getEntries().get(i).getKey().equals(key)) {\n\t\t\t\treturn b.get(h).getEntries().get(i).getValue();\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public V get(K key) {\n\t\treturn table.get(calcIndex(key)).get(key);\n\t}", "final int getKeyPosition(final Object key) {\r\n return Math.abs(key.hashCode()) % buckets.length;\r\n }", "public String getBucketName()\n {\n return bucketName;\n }", "V getEntry(K key);", "public String getBookmark(String key) {\n return bookmarks.get(key);\n }", "@Override\r\n\tpublic V remove(Object key) {\r\n\t\tint index = key.hashCode() % numBuckets;\r\n\t\treturn ((Bucket) buckets[index]).remove((K) key);\r\n\t}", "public V get(K k) {\n final int h = getHash(k), stripe = h % lockCount;\n synchronized (locks[stripe]) {\n final int hash = h % buckets.length;\n\n ItemNode<K,V> node = ItemNode.search(buckets[hash], k);\n return node != null ? node.v : null;\n }\n }", "public V get(Object key) {\r\n\t\tif (key == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tint slotIndex = Math.abs(key.hashCode()) % table.length;\r\n\r\n\t\tif (table[slotIndex] == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tTableEntry<K, V> currentElement = table[slotIndex];\r\n\r\n\t\tdo {\r\n\t\t\tif (currentElement.key.equals(key)) {\r\n\t\t\t\treturn currentElement.value;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = currentElement.next;\r\n\t\t} while (currentElement != null);\r\n\r\n\t\treturn null;\r\n\t}", "public S3Object load(String bucket, String key) throws S3Exception {\n\t\treturn null;\r\n\t}", "public V get(Object key) {\r\n int index = key.hashCode() % mainTable.length;\r\n if (index < 0) {\r\n index += mainTable.length;\r\n }\r\n if (mainTable[index] == null) {\r\n return null; // key is not in the mainTable.\r\n }\r\n\r\n int chainLength = 0;\r\n // Search the list at mainTable[index] to find the key.\r\n for (Entry<K,V> nextItem : mainTable[index]) {\r\n chainLength++;\r\n\r\n if (nextItem.key.equals(key)) {\r\n addChainLength(chainLength);\r\n return nextItem.value;\r\n }\r\n }\r\n\r\n addChainLength(chainLength);\r\n // key is not in the chain\r\n return null;\r\n }", "public String getBucketName() {\n return bucketName;\n }", "public String getBucketName() {\n return bucketName;\n }", "BListKey getKey();", "public static Bucket getInstance(String bucket, String password, String server){\n\n String key = bucket.concat(password);\n\n if (cbClients == null){\n cbClients = new HashMap<String, Bucket>();\n }\n\n if (!cbClients.containsKey(key)) {\n try {\n List<String> nodes = new ArrayList<String>();\n String host1 = server;\n nodes.add(host1);\n Cluster cluster = CouchbaseCluster.create(host1);\n Bucket theBucket = cluster.openBucket(bucket,password);\n cbClients.put(key, theBucket);\n } catch (Exception e){\n e.printStackTrace();\n }\n }\n\n return cbClients.get(key);\n\n }", "public V get(K key) {\n int index = getIndex(getHash(key));\n Entry<K, V> entry = (Entry<K, V>) table[index];\n\n if (entry == null) {\n return null;\n }\n\n if (!entry.hasNext()) {\n return entry.getValue();\n }\n\n while (entry.hasNext()) {\n if (entry.getKey().equals(key))\n return entry.getValue();\n entry = entry.getNext();\n }\n\n if (entry.getKey().equals(key))\n return entry.getValue();\n\n return null;\n }", "public V get(K key) throws InvalidKeyException;", "public static Map<String,String> getBQAccountsFromCache(String key){\n\t\t\tMap<String,String> accountDFPMap=null;\n\t\t\tkey = ACCOUNTS_BQ_KEY+\"-\"+StringUtil.getHashedValue(key);\n\t \tif(memcache !=null && memcache.contains(key)){\n\t \t\taccountDFPMap=(Map<String,String>) memcache.get(key);\n\t \t} \t\n\t \treturn accountDFPMap;\n\t\t}", "@Updatable\n @Required\n public BucketResource getBucket() {\n return bucket;\n }", "public V remove(K key) {\n\tint bucket=Math.abs(key.hashCode()%capacity);\n\t//for(int i=0;i<table[bucket].size()-1;i++){\n\tfor(MyEntry i:table[bucket]) { \n\t if(i.key==key) {\n\t\t//location.remove(key\n\t\tV previousvalue=i.value;\n\t\ttable[bucket].remove(i);\n\t\tsize--;\n\t\t/*if(table[bucket].size()==0) {\n\t\t utilizedbuckets.remove(bucket);\n\t\t}*/\n\t\treturn previousvalue;\n\t }\t\n\t}\n\treturn null;\n }", "@Required\n @Updatable\n public BucketResource getBucket() {\n return bucket;\n }", "Node getChild(K key) {\r\n\t\t\tint loc = Collections.binarySearch(keys, key);\r\n\t\t\tint childIndex = loc >= 0 ? loc + 1 : -loc - 1;\r\n\t\t\treturn children.get(childIndex);\r\n\t\t}", "@Override\n public V remove(Object key) {\n \t\n \tLinkedList<Entry> tempBucket = chooseBucket(key);\n \t\n \tfor(int i=0;i<tempBucket.size();i++) {\n\t \tEntry tempEntry = tempBucket.get(i);\n\t \t\t\n\t \tif(tempEntry.getKey() == key) {\n\t \t\tV returnValue = tempEntry.getValue();\n\t \t\ttempBucket.remove(i);\n\t \t\tsize --;\n\t \t\treturn returnValue;\n\t \t}\n\t }\n \t\n \tif(size < buckets.length*BETA) {\n \t\trehash(SHRINK_FACTOR);\n \t}\n \t\n \treturn null;\n }", "public V lookup(K key);", "public Object getObject(String key);", "@Override\n public V get(Object key) {\n int index = key.hashCode() % table.length;\n if (index < 0) {\n index += table.length;\n }\n if (table[index] == null) {\n return null; // key is not in the table.\n }\n // Search the list at table[index] to find the key.\n for (Entry<K, V> nextItem : table[index]) {\n if (nextItem.key.equals(key)) {\n return nextItem.value;\n }\n }\n\n // assert: key is not in the table.\n return null;\n }", "public V get(K key);", "String get(int partitionID, String key);", "<T> T getComponent(Object key);", "private int getIndex(K key) {\r\n int index = -1;\r\n if (key != null) {\r\n index = key.hashCode()%capacity;\r\n }\r\n if (index < 0) {\r\n index *= -1;\r\n }\r\n return index;\r\n }", "public KeyedItem retrieve(Comparable key){\r\n\t\treturn retrieve(this,key);\r\n\t}", "public V get(K key) {\n\t\tfor (int i = map.size() - 1; i >= 0; i--) {\n\t\t\tif (map.get(i).containsKey(key)) {\n\t\t\t\treturn map.get(i).get(key);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n List<? extends Bucket> getBuckets();", "private int hash (k key) {\n\t\treturn Math.abs(key.hashCode())\t% buckets.length;\n\t}", "protected abstract int getBucketIndex(int freeSpace);", "public String getBucketName() {\n return getProperty(BUCKET_NAME);\n }", "private Node getChild(K key) {\r\n\r\n // binarySearch for the correct index\r\n int correct_place = Collections.binarySearch(keys, key);\r\n int child_indexing;\r\n if (correct_place >= 0) {\r\n child_indexing = correct_place + 1;\r\n } else {\r\n child_indexing = -correct_place - 1;\r\n }\r\n\r\n return children.get(child_indexing);\r\n }", "public abstract V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "@Override\n\t@TimeComplexity(\"O(log n)\")\n\tpublic V get(K key) {\n\t/* TCJ\n\t * Binary search operation: log n\n\t */\n\t\tint j = findIndex(key);\n\t\tif ( j == size() || key.compareTo(map.get(j).getKey()) != 0 ) { return null; }\n\t\treturn map.get(j).getValue();\n\t}", "public Bucket getBucketConfiguration(final String bucketname) throws ConfigurationException {\n if (bucketname == null || bucketname.isEmpty()) {\n throw new IllegalArgumentException(\"Bucket name can not be blank.\");\n }\n Bucket bucket = this.buckets.get(bucketname);\n if (bucket == null) {\n readPools(bucketname);\n }\n return this.buckets.get(bucketname);\n }", "public V get(final K key) {\n expunge();\n final int hash = hash(key);\n final int index = index(hash, entries.length);\n Entry<K, V> entry = entries[index];\n while (entry != null) {\n if (entry.hash == hash && key == entry.get()) {\n return entry.value;\n }\n entry = entry.nextEntry;\n }\n return null;\n }", "public V get(String key);", "public Friend getFriendByRefKey(String key);", "public String get(final Book key) {\n Node x = root;\n while (x != null) {\n int cmp = key.getName().compareTo(x.getKey().getName());\n if (cmp < 0) {\n x = x.getLeft();\n }\n if (cmp > 0) {\n x = x.getRight();\n }\n if (cmp == 0) {\n return x.getValue();\n }\n }\n return null;\n }", "public int get(int key) {\n int hash_key = key % this.key_space;\n return this.hash_table.get(hash_key).get(key);\n }", "public String getKV(String key) throws Exception;", "public V get(String key) {\n int index = hashOf(key);\n if (index >= capacity) return null;\n return (V) values[index];\n }", "public String getBucketName() {\n\treturn _bucketName;\n }", "public Storageplace getStorageplace(int storageplaceKey){\r\n\t\t List<Storageplace> storageplaces = getAll();\r\n\t for(Storageplace storageplace: storageplaces){\r\n\t if(storageplace.getStorageplaceKey() == storageplaceKey){\r\n\t return storageplace;\r\n\t }\r\n\t }\r\n\t return null;\r\n\t }", "public QRcode getQRcode(int key) {\n for(QRcode QR: QRcodeList) {\n if(QR.get_key() == key) {\n return QR;\n }\n }\n return null;\n }", "public K buscarCartas(K key);", "public T get(K key);", "public java.lang.String getGcsBucket() {\n java.lang.Object ref = gcsBucket_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n gcsBucket_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Bucket() {\n// this.bucketPath = bucketPath;\n keys = new Vector<>();\n }", "public KeyedItem retrieve(Comparable searchKey);" ]
[ "0.73848176", "0.69796586", "0.6804244", "0.65171015", "0.64414144", "0.6339926", "0.63351536", "0.63011265", "0.62668824", "0.6253987", "0.6251333", "0.62068796", "0.6194083", "0.6159306", "0.6159277", "0.6124958", "0.61209404", "0.5901637", "0.588089", "0.57817596", "0.56676424", "0.5631508", "0.55729", "0.556764", "0.55549544", "0.5540488", "0.54937005", "0.5485619", "0.54815507", "0.5479303", "0.54650134", "0.5406707", "0.5380251", "0.5352864", "0.5325311", "0.5300881", "0.52944285", "0.52895236", "0.5283012", "0.5276523", "0.5271637", "0.5258844", "0.525296", "0.52412534", "0.5227374", "0.5227261", "0.52266103", "0.52078384", "0.5207035", "0.52070063", "0.52070063", "0.5204641", "0.5201881", "0.51799434", "0.51787", "0.5149721", "0.5141085", "0.5137867", "0.51104677", "0.5107676", "0.51068157", "0.510344", "0.50800496", "0.50752026", "0.50742877", "0.5072387", "0.5072105", "0.5069496", "0.50621474", "0.5049218", "0.5041688", "0.50377077", "0.5030802", "0.5026732", "0.50235826", "0.50216556", "0.5021315", "0.5021315", "0.5021315", "0.5021315", "0.5021315", "0.5021315", "0.5021315", "0.50204957", "0.5008586", "0.50083137", "0.5002406", "0.49943307", "0.49929503", "0.4989953", "0.49867448", "0.49867314", "0.49825224", "0.49814877", "0.497879", "0.4975316", "0.49741623", "0.4966565", "0.49647647", "0.4958402" ]
0.8247835
0
Removes all keys and values.
@Override public void clear() { buckets = new Object[numBuckets]; for (int i = 0; i < numBuckets; i++) { buckets[i] = new Bucket(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void removeAllValues() {\n Map<String, ?> map = preferences.getAll();\n Iterator<String> iterator = map.keySet().iterator();\n while (iterator.hasNext()) {\n removeValue(iterator.next());\n }\n }", "public void clear()\r\n {\r\n for (int i = 0; i < values.length; i++)\r\n keys[i] = null;\r\n size = 0;\r\n }", "private void clear() {\n\t\t\tkeySet.clear();\n\t\t\tvalueSet.clear();\n\t\t\tsize = 0;\n\t\t}", "@Override\n\tpublic void clear() {\n\t\tmap.clear();\n\t\tkeys.clear();\n\t}", "public void clear()\r\n {\r\n otherValueMap.clear();\r\n }", "public void clear() {\n values.clear();\n }", "public void clear() {\n synchronized (LOCK) {\n myValues.clear();\n }\n }", "private void clearAll( )\n {\n for( Vertex v : vertexMap.values( ) )\n v.reset( );\n }", "public void clear() {\r\n items.clear();\r\n keys.clear();\r\n }", "public void removeAll() {\n _hash = new Hashtable();\n _first = null;\n _last = null;\n }", "@Override\n public synchronized void clear() {\n this.keyMap.clear();\n super.clear();\n }", "public void clear() {\n\t\telements = 0;\n\t\tfor (int ix = 0; ix < keys.length; ix++) {\n\t\t\tkeys[ix] = null;\n\t\t\tvalues[ix] = null;\n\t\t}\n\t\tfreecells = values.length;\n\t\tmodCount++;\n\t}", "public void removeVars(){\n this.values = new HashMap<>();\n }", "public void clear()\n {\n keys.clear();\n comments.clear();\n data.clear();\n }", "void removeAllEntries();", "public void clearAll() {\n\t\tuserMap.clear();\n\t}", "public void clear() \n { \n int count = 0;\n while (!isEmpty())\n {\n dictionary[count] = null;\n count++;\n numberOfEntries--;\n }\n }", "public void removeAllEntries() {\n }", "public void clear() {\n\t\tint index = 0;\r\n\t\tsize = 0;\r\n\t\twhile (index < K.length) {\r\n\t\t\tif (K[index] != null) {\r\n\t\t\t\tK[index].clear();\r\n\t\t\t\tV[index].clear();\r\n\t\t\t}\r\n\t\t\tindex++;\r\n\t\t}\r\n\t}", "public void clear() {\n helpers.clear();\n islandKeysCache.clear();\n setDirty();\n }", "public static void clearCache() {\n cacheKeys.clear();\n cacheValues.clear();\n }", "public static void clear() {\r\n\t\tdata.set(Collections.<String, String> emptyMap());\r\n\t}", "protected void resetValues() {\n synchronized (values) {\n values.removeAll(new ArrayList(values));\n }\n }", "public void clear() {\r\n\t\tentryMap.clear();\r\n\t}", "public void clear() {\n buckets = new ArrayList<>();\n for (int i = 0; i < numBuckets; i++) {\n buckets.add(new ArrayList<>());\n }\n keySet = new HashSet<>();\n numEntries = 0;\n }", "private void clean() {\n //use iterator\n Iterator<Long> it = nodes.keySet().iterator();\n while (it.hasNext()) {\n Long node = it.next();\n if (nodes.get(node).adjs.isEmpty()) {\n it.remove();\n }\n }\n }", "public void clear(){\n\t\tfor(int i = 0; i < keys.length; i++){\n\t\t\tkeys[i] = null;\n\t\t\telem[i] = null;\n\t\t}\n\t\thowMany = 0;\n\t\tnewestIndex = -1;\n\t}", "public void clearAllNotClientCacheKeyOrDatabaseKey() {\n\t}", "public void clearAll();", "public void clearAll();", "public void clear() {\n\t\tentries.clear();\n\t}", "public void removeAllData() {\n\t\tList<T> allData = this.getAllData();\r\n\t\t// clean the map\r\n\t\tthis.dataMap.clear();\r\n\t\t\r\n\t\t// notify the subscribers\r\n\t\tthis.notifyDeleted(allData);\r\n\t}", "public void clear()\n\t{\n\t\tpairs.clear();\n\t}", "public void clear() {\n\t\tif(this.values!=null){\n\t\t\tthis.values.clear();\n\t\t}\n\t}", "public void evictAll() {\n cacheManager.getCache(DomainValueRepository.DomainValueCache.DOMAIN_VALUE_BY_DOMAIN_ID).clear();\n }", "private void cleanup() {\n\t\tTreeSet<CacheEntry> entries = new TreeSet<CacheEntry>(map.values());\n\t\tint i = region.getItemsToEvict();\n\t\tIterator<CacheEntry> it = entries.iterator();\n\t\twhile (it.hasNext() && i > 0) {\n\t\t\tremoveEntry(it.next());\n\t\t\ti--;\n\t\t}\n\t}", "public void clear() {\n map.clear();\n }", "public void clear() {\n map.clear();\n }", "public void clear() { \r\n\t\tmap.clear();\r\n\t}", "public void\tclear() {\n\t\tmap.clear();\n\t}", "void clearAll();", "void clearAll();", "public void clear()\n\t{\n\t\tfor(DBColumn col : _RowData.values())\n\t\t\tcol.clear();\n\t\t\t\n\t\t_MetaData = null;\n\t\t_Parent = null;\n\t\t_Status = DBRowStatus.Unchanged;\n\t}", "public void clear()\n\t{\n\t\troot = null;\n\t\tmaxKeyLen = -1;\n\t\tsize = 0;\n\t}", "private void clearInsertingValues() {\n mapFieldsIntegers.clear();\n mapFieldsStrings.clear();\n }", "@Override\n public void clear() {\n for (LinkedList<Entry<K,V>> list : table) {\n list = null;\n }\n }", "public void clear() {\n\t\tmap.clear();\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "private static void clearRedis() {\n StringRedisTemplate redisTemplate = getRedisTemplate();\n Set<String> keys = redisTemplate.keys(\"*\");\n for (String key : keys) {\n redisTemplate.delete(key);\n Assert.assertFalse(redisTemplate.hasKey(key));\n }\n }", "public void clearAll() {\n rangeMap.clear();\n }", "@Override\n\tpublic void clearAll() {\n\t\t\n\t}", "@Override\r\n public void clear() {\r\n map.clear();\r\n }", "public void clear() {\n this.entries = new Empty<>();\n }", "public void clear() {\r\n this.map.clear();\r\n }", "@Override\r\n\tpublic void clear() {\n\t\tset.clear();\r\n\t}", "boolean removeAll(Object key, Set values);", "public void clear() {\n \tIterator<E> iterateSet = this.iterator();\n \t\n \twhile(iterateSet.hasNext()) {\n \t\t// iterate through and remove all elements\n \t\titerateSet.next();\n \t\titerateSet.remove();\n \t}\n }", "public void clearAllVersions() {\n for (Integer varIndex : _dataMap.keySet()) {\n List<Data> dataList = _dataMap.get(varIndex);\n while (dataList.size() > 1) {\n dataList.remove(0);\n }\n }\n }", "private void clearFields(){\r\n fields.forEach(e -> e.clear());\r\n }", "protected abstract void clearAll();", "public void clearMap()\n {\n ++this.versionStamp;\n IntHashMapEntry[] ainthashmapentry = this.slots;\n\n for (int i = 0; i < ainthashmapentry.length; ++i)\n {\n ainthashmapentry[i] = null;\n }\n\n this.count = 0;\n }", "@SneakyThrows\n public void deleteKeysFromMemory() {\n Preferences.userRoot().clear();\n }", "public void clearAll()\n {\n textureMap.clear();\n componentMap.clear();\n }", "void unDistributeKeys(Stack<Entry> rs) {\n while (!rs.empty()) {\n Integer key = rs.pop().getHash();\n RemoteMapper rm = findMapper(key);\n try {\n rm.removeKey(key);\n } catch (RemoteException ex) {\n ex.printStackTrace();\n }\n }//while\n }", "public void removeAllData() {\n dbHelper.removeAllData(db);\n }", "public void clear() {\n\t if (entries != null) {\n\t\tfor (Entry e : entries) {\n\t\t for(Field f: EntrySerializer.getAllFields(e)) {\n\t\t\tif (f != null) f.clear();\n\t\t }\n\t\t}\n\t }\n\t if (groups != null) {\n\t\tfor (Group g: groups) {\n\t\t for (Field f : GroupSerializer.getAllFields(g)) {\n\t\t\tif (f != null) f.clear();\n\t\t }\n\t\t}\n\t }\n\t}", "public final void clear() { _map.clear(); }", "private void clean() {\n aggregatedValues.clear();\n this.numMessageSent = 0;\n this.numMessageReceived = 0;\n }", "@Override\n public void resetAllValues() {\n }", "@Override\n public Collection<V> removeAll( K key ) {\n List<V> result = new ArrayList<V>(currentCountFor(key));\n ValueIterator values = new ValueIterator(key);\n while (values.hasNext()) {\n result.add(values.next());\n values.remove();\n }\n return result;\n }", "public static void clear() {\r\n for (ConfigurationOption<?> opt : OPTIONS.values()) {\r\n opt.clear();\r\n }\r\n }", "@Override\r\n\tpublic void clearALL() {\n\t\tjavaScriptWindow.propertyTable = null;\r\n\r\n\t}", "public void clearChangeSet()\r\n\t{\n\t\toriginal = new Hashtable(10);\r\n\t\t//System.out.println(\"111111 in clearChangeSet()\");\r\n\t\tins_mov = new Hashtable(10);\r\n\t\tdel_mod = new Hashtable(10);\r\n\r\n\t\tfor (int i = 0; i < seq.size(); i++) {\r\n\t\t\tReplicated elt = (Replicated) seq.elementAt(i);\r\n\t\t\toriginal.put(elt.getObjectID(), elt);\r\n\t\t}\r\n\t}", "private static void clearAll(Map<String, Person> persons) {\n\t\tSet<Map.Entry<String, Person>> totPerson = persons.entrySet();\n\t\tfor(Map.Entry<String, Person> person : totPerson) {\n\t\t\tperson.getValue().clear();\n\t\t}\n\t}", "PropertiesTask removeAllProperties();", "public final void clear() {\n for (int i = 0; i < _length; i++) {\n _data[i * SIZE + VALUE_OFFSET] = null;\n _algorithmData[i] = null;\n }\n _length = 0;\n }", "public void removeAllInitialKey() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INITIALKEY);\r\n\t}", "void deleteAll(Collection<?> keys);", "public void clearCustomDictionaries () {\n\t\tcustomDictionaries.clear();\n\t}", "public void clearAllPreferenceData() {\n sharedPreferences.edit().clear().apply();\n }", "public void clearAllData() {\n atoms.clear();\n connections.clear();\n lines.clear();\n radical = null;\n }", "public void clearHash() {\r\n\t\tinternedTexts.clear();\r\n\t\tinternedAttributes.clear();\r\n\t}", "@Override\n public void clear() {\n elements.clear();\n indexByElement.clear();\n }", "public static void clearAllCache() {\n page_cache.clear();\n key_relate.clear();\n }", "public void clearBuckets() {\n this.buckets.clear();\n }", "public void clear()\n\t{\n\t\tobjectToId.clear();\n\t\tidToObject.clear();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public void unDistributeMyKeys() {\n unDistributeKeys(readNodeEntries());\n }", "public void clear() {\n\t\tfor (int i = 0; i < buckets.length; i++) {\n\t\t\tbuckets[i] = null;\n\t\t}\n\t}", "void clear(String key);", "public void clear()\n {\n inputs.clear();\n outputs.clear();\n }" ]
[ "0.7569418", "0.7521248", "0.7470056", "0.7151985", "0.7074772", "0.7010767", "0.69908935", "0.6956742", "0.6924501", "0.68234503", "0.6809266", "0.67925626", "0.67306876", "0.6708226", "0.6667731", "0.6659687", "0.66568416", "0.6634487", "0.659026", "0.6588527", "0.65711343", "0.6510908", "0.6508039", "0.64836174", "0.64672536", "0.64639187", "0.64253443", "0.6421883", "0.6416924", "0.6416924", "0.641266", "0.64003646", "0.6378307", "0.636843", "0.6335894", "0.6316332", "0.6308993", "0.6305745", "0.6303521", "0.6303058", "0.6300211", "0.6300211", "0.6292815", "0.62874156", "0.6284255", "0.62665045", "0.6258813", "0.6248839", "0.6248839", "0.6245995", "0.62046784", "0.61957824", "0.61855274", "0.6163875", "0.61576927", "0.614132", "0.6128006", "0.6123115", "0.61102533", "0.6107727", "0.61047477", "0.61043525", "0.60867655", "0.6082867", "0.6076976", "0.6068042", "0.60609555", "0.6055562", "0.60347104", "0.6025265", "0.60213023", "0.6015206", "0.6005962", "0.5997517", "0.59948003", "0.5991723", "0.5987492", "0.5985256", "0.5975905", "0.5967708", "0.5959632", "0.5948081", "0.5938032", "0.5937396", "0.59345675", "0.59332", "0.5929749", "0.59225506", "0.59225506", "0.59225506", "0.59225506", "0.59225506", "0.59225506", "0.59225506", "0.59225506", "0.59225506", "0.59225506", "0.5917292", "0.5915072", "0.5911133", "0.5909699" ]
0.0
-1
Returns whether the given key is contained in the appropriate bucket.
@Override public boolean containsKey(Object key) { if (key == null) throw new NullPointerException(); return get(key) != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean containsKey(K key)\n {\n AssociationList<K, V> bucket = this.get(this.find(key));\n return (bucket != null) && (bucket.containsKey(key));\n }", "@Override\n public boolean containsKey(Object key) {\n LinkedList<Entry> tempBucket = chooseBucket(key);\n \n for(int i=0;i<tempBucket.size();i++) {\n \t\tEntry tempEntry = tempBucket.get(i);\n \t\t\n \t\tif(tempEntry.getKey() == key) {\n \t\t\treturn true;\n \t\t}\n \t}\n \n return false;\n }", "public boolean existsKey(String bucket, String inKey);", "public boolean containsKey(String key) {\n int keyBucket = hash(key);\n \n HashNode temp = table[keyBucket];\n while (temp != null) {\n if ((temp.key == null && key == null) \n || (temp.key != null && temp.key.equals(key))) {\n return true;\n }\n temp = temp.next;\n }\n \n return false;\n }", "public boolean containsKey(K key) {\n int keyBucket = hash(key);\n \n HashMapEntry<K, V> temp = table[keyBucket];\n while (temp != null) {\n if ((temp.key == null && key == null) \n || (temp.key != null && temp.key.equals(key))) {\n return true;\n }\n temp = temp.next;\n }\n \n return false;\n }", "public boolean contains(int key) {\n int index = getIndex(key);\n int index2 = getIndex2(key);\n if(buckets[index] != null){\n return buckets[index][index2] == true; \n }\n return false;\n }", "public boolean containsKey(K key) {\n\tint bucket=Math.abs(key.hashCode()%capacity);\n\tfor(MyEntry i:table[bucket]) {\n\t if(i.key.equals(key)) {\n\t\treturn true;\n\t }\n\t}\n\treturn false;\n }", "public boolean containsKey(Key key) ;", "public boolean containsKey(String key);", "public boolean contains(int key) {\n int hash1 = key % buckets;\n int hash2 = key / buckets;\n if(arr[hash1] == null)\n return false;\n return arr[hash1][hash2];\n }", "public boolean contains(Key key);", "public boolean existsKeyInS3(String inBucket, String inKey);", "public synchronized boolean containsKey(K k) {\n final int h = getHash(k), hash = h % buckets.length;\n return ItemNode.search(buckets[hash], k) != null;\n }", "public boolean containsKey(K theKey) {\n\t\tboolean result = false;\n\t\tint index = hash(theKey);\n\t\t\tfor (WordCode<K, V> wc : myBuckets.get(index)) {\n\t\t\t\tif (wc.myKey.equals(theKey)) result = true;\n\t\t\t}\n\t\t\n\t\t\n\t\treturn result;\n\t}", "boolean containsKey(K key);", "boolean containsKey(K key);", "public boolean contains(String key) {\n return find(key) != null;\n }", "public boolean existsKeyInS3(String inKey);", "public boolean contains(String key);", "public boolean containsKey(K key)\r\n\t{\r\n\t\tint slot = findSlot(key, false);\r\n\t\treturn slot >= 0;\r\n\t}", "public boolean containsKey(String key) {\n\t\treturn containsKey(entries, key);\n\t}", "public boolean contains(K key);", "public boolean contains(Key key) {\n\t\treturn get(key) != null;\n\t}", "public boolean containsKey(K key) {\n\t\t\n\t\t\n\t\treturn keySet.contains(key);\n }", "public boolean contains(Key key) {\n return get(key) != null;\n }", "public boolean containsKey(K k) {\n final ItemNode<K,V>[] bs = buckets;\n final int h = getHash(k), stripe = h % lockCount, hash = h % bs.length;\n // The sizes access is necessary for visibility of bs elements\n return sizes.get(stripe) != 0 && ItemNode.search(bs[hash], k, null);\n }", "public abstract boolean containsKey(K key);", "public boolean contains(K key){\r\n int loc = find(key);\r\n if((hashTable[loc]!= null) && hashTable[loc].equals(key))\r\n return true;\r\n else\r\n return false;\r\n }", "public boolean contains (String key)\n {\n use (key);\n return map.containsKey (key);\n }", "public boolean containsKey(K key)\r\n\t{\r\n\t\treturn data.contains(new Entry(key,null));\r\n\t}", "public boolean containsKey(Object key)\n {\n // check if the cache needs flushing\n checkFlush();\n\n return getEntryInternal(key) != null;\n }", "public boolean contains(long key){\n for (int i = 0; i < numKeys; i++){\n if (keys[i].key == key){\n return true;\n }\n }\n return false;\n }", "@Override\n public boolean containsKey(K key) {\n if (key == null) {\n throw new IllegalArgumentException(\"argument to containsKey() is null\");\n }\n return get(key) != null;\n }", "public boolean contains(String key) {\r\n\t\treturn getValue(key) != null;\r\n\t}", "public boolean containsKey(K key) {\n int index = getIndex(getHash(key));\n Entry<K, V> entry = (Entry<K, V>) table[index];\n\n if (entry == null) {\n return false;\n }\n\n while (entry.hasNext()) {\n if (entry.getKey().equals(key))\n return true;\n entry = entry.getNext();\n }\n\n return entry.getKey().equals(key);\n }", "public boolean containsKey(Object key) {\n\t\treturn false;\r\n\t}", "public boolean contains(String key)\r\n { return get(key) != null; }", "public boolean contains(Key key) {\n return auxContains(root, key);\n }", "public boolean contains(String key){\r\n\t\treturn get(key) != null;\r\n\t}", "public boolean containsKey(Object key) {\r\n\t\tif (key == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tint slotIndex = Math.abs(key.hashCode()) % table.length;\r\n\r\n\t\tif (table[slotIndex] == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tTableEntry<K, V> currentElement = table[slotIndex];\r\n\r\n\t\tdo {\r\n\t\t\tif (currentElement.key.equals(key)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = currentElement.next;\r\n\t\t} while (currentElement != null);\r\n\r\n\t\treturn false;\r\n\t}", "boolean hasKey(String key);", "@Override\n public boolean contains(String key) {\n if (key == null) {\n throw new IllegalArgumentException(\"argument to contains() is null\");\n }\n return get(root, key, 0) != null;\n }", "boolean contains(String key);", "boolean contains(String key);", "public boolean containsKey(String key) {\n int index = hashOf(key);\n return index < capacity && values[index] != null;\n }", "public boolean containsKey(Comparable key) { return this.store.containsKey(key); }", "@Override\n\tpublic boolean containsKey(Key k) {\n\t\treturn bst.has(k);\n\t}", "public boolean containsKey(K key) {\n return keys[findIndex(key)] != null;\n }", "boolean containsKey(long key);", "public boolean containsKey(K k) {\n final int h = getHash(k), stripe = h % lockCount;\n synchronized (locks[stripe]) {\n final int hash = h % buckets.length;\n return ItemNode.search(buckets[hash], k) != null;\n }\n }", "boolean containsKey(CoreLabel key);", "public boolean contains(K key)\n\t{\n\t\tcheckForNulls(key);\n\t\tint n = Math.abs(key.hashCode() % entries.length);\n\t\t\n\t\treturn (entries[n] == null) ? false : entries[n].contains(new Entry(key, null));\n\t}", "final boolean hasKey(final E key) {\r\n for (int i=0;i<kcount;i++) {\r\n if (equal(key, (E)k[i])) return true;\r\n }\r\n return false;\r\n }", "public boolean containsKey(int key) {\n return getElement(key) != null;\n }", "private boolean contains(String key) {\n return contains(dict, key);\n }", "public Boolean containsKey(K key) {\n return this.entries.ormap(kvp -> kvp.left.equals(key));\n }", "public boolean contains( T key )\n {\n if (key == null) return false;\n for ( int i=0 ; i < size() ; ++i )\n if ( get(i).equals( key ) ) \n return true;\n \n return false;\n }", "public boolean containsKey(String key) {\n\t\tint HashKey = key.hashCode() % 31;\r\n\t\tif (HashKey > K.length - 1) {\r\n\t\t\twhile (HashKey > K.length - 1) {\r\n\t\t\t\tHashKey %= K.length;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (K[HashKey] == null) {\r\n\t\t\t// LinkedList not exist\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor (String c : K[HashKey]) {\r\n\t\t\tif (c.equals(key)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean contains(int key) {\n Entry tab[] = table;\n int index = (key & 0x7FFFFFFF) % tab.length;\n for (Entry e = tab[index]; e != null; e = e.next) {\n if (e.key == key) {\n return true;\n }\n }\n return false;\n }", "public boolean existsKey(String inKey);", "public boolean containsKey(DNA key){\n Node actual_node = this.getReference(key);\n\n if(this.debug)\n System.out.println(\"ExtHash::containsKey >> buscando cadena: \" + key.toString() + \", hashCode: \" + key.hashCode());\n\n int reference_page = actual_node.getReference(), hash = key.hashCode();\n ArrayList<Integer> content = this.fm.read(reference_page); this.in_counter++;\n\n boolean res = false;\n\n while(true) {\n int cant = content.get(0);\n\n for(int i=1; i<=cant; i++) {\n if(content.get(i) == hash) {\n res = true;\n }\n }\n\n if(res)\n break;\n\n if(content.size() != B)\n break;\n\n reference_page = content.get(B-1);\n content = this.fm.read(reference_page); this.in_counter++;\n\n }\n if(this.debug)\n System.out.println(\"ExtHash::containsKey >> cadena encontrada: \" + res);\n\n return res;\n }", "public final boolean containsKey(String key)\n {\n\n for (int i = m_firstFree - 1; i >= 0; --i)\n {\n if (m_map[i].get(key) != null)\n return true;\n }\n\n return false;\n }", "public final boolean containsKey(final E key) {\r\n if (key == null) throw new NullPointerException();\r\n Node<E,V> l = root.c.get(0);\r\n while (l.c != null) l = child(key, l); /* while l is internal */\r\n return l.hasKey(key);\r\n }", "public boolean containsKey(Object key) {\n return map.containsKey(key);\n }", "public boolean containsKey(Object key) {\n return map.containsKey(key);\n }", "public boolean containsKey(Object key)\r\n/* 386: */ {\r\n/* 387:556 */ return this.headers.containsKey(key);\r\n/* 388: */ }", "public boolean contains(K key) \n {\n boolean result = false;\n int keyIndex = locateIndex(key);\n if ((keyIndex < numberOfEntries) && \n key.equals(dictionary[keyIndex].getKey()))\n result = true;\n return result;\n }", "public final synchronized boolean containsKey(final K key) {\n\t\treturn map.containsKey(key);\n\t}", "boolean isKeyInCache(Object key);", "@Override\n\tpublic boolean contains(String key) {\n\t\tint hashVal = hashFunc(key);\n\t\twhile (hashArray[hashVal] != null) {\n\t\t\tif (hashArray[hashVal].value.equals(key))\n\t\t\t\treturn true;\n\t\t\telse {\n\t\t\t\thashVal++;\n\t\t\t\thashVal = hashVal % size;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean containsKey(K key) {\r\n\t\tif (get(key) == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean contains(int key) {\n if(entry[hashCode(key)]==null) return false;\n return entry[hashCode(key)].contains(key);\n }", "public boolean contains(k key, v value) {\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\t\n\t\twhile (curr != null) {\n\t\t\tif (key.equals(curr.getKey()))\n\t\t\t\tif (value.equals(curr.getValue()))\n\t\t\t\t\treturn true;\n\t\t\tcurr = curr.getNext();\n\t\t}\n\t\treturn false;\n\t}", "public boolean containsKey(String key) {\n \treturn (getNode(key) != null);\n }", "public boolean contains(String key) {\n\t\treturn recContains(head, key);\n\t}", "public boolean containsKey(TKey key) {\n return !(bstFind(key, mRoot) == null);\n }", "public boolean containsKey(Object key) {\r\n if (cacheDelegate != null) {\r\n cacheDelegate.keyLookup(key);\r\n }\r\n\r\n if (key == null) {\r\n return false;\r\n }\r\n\r\n CacheData<K, V> cacheData = getEntry(key);\r\n if (cacheData != null) {\r\n // see if the key passed in matches this one\r\n if ((cacheData.validateKey(key, cacheDelegate)) != null) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public boolean containsKey(String key)\n\t{\n\t\tverifyParseState();\n\t\treturn values.containsKey(key);\n\t}", "boolean containsKey(byte[] key);", "public boolean contains(int key) {\n int h = hash(key);\n Iterator<Integer> iterator = data[h].iterator();\n while (iterator.hasNext()) {\n Integer element = iterator.next();\n if (element == key) {\n return true;\n }\n }\n return false;\n }", "@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn map.containsKey(key);\n\t}", "public boolean contains(int key) {\n\t\tint index = getIndex(key);\n\t\tint pos = getPos(key, index);\n\t\treturn pos >= 0;\n\t}", "@Override\n public boolean containsKey(K key) {\n return containsKeyHelper(root, key);\n }", "public boolean contains (String key) {\r\n int arrIndex = hash(key);\r\n\r\n if (hashTableArray[arrIndex] == null) {\r\n hashTableArray[arrIndex] = new LinkedList<>();\r\n }\r\n\r\n for (int i = 0; i < hashTableArray[arrIndex].size(); i++) {\r\n if (hashTableArray[arrIndex].get(i).key.equals(key)){\r\n return true; // returns true when a key already exists\r\n }\r\n }\r\n return false; // returns false when a key does not yet exist\r\n }", "public boolean contains(int key) {\n\t\tint hashkey = hash(key);\n\t\treturn table[hashkey] != null && table[hashkey][pos(key)];\n\t}", "public boolean containsKey(String key) {\n return cacheMap.containsKey(key);\n }", "boolean contains(KeyType key);", "boolean has(String key);", "public boolean contains(String key) {\n\t\treturn serialNumber.contains(key);\n\t}", "public boolean containsKey(K key) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n Node targetNode = data[hash];\r\n while (targetNode != null) {\r\n if (targetNode.key == key || targetNode.key.equals(key)) {\r\n return true;\r\n }\r\n targetNode = targetNode.next;\r\n }\r\n return false;\r\n }", "boolean containsKey(int key) throws ContentStoreException;", "public boolean containsKey (String key)\n\t{\n\t\treturn properties.containsKey(key);\n\t}", "public boolean contains(String key) {\n\t \tNode node = get(key);\n\t return node!=null && node.value!=null;\n\t }", "public boolean contains(int key) {\n int hash = key % 7919;\n if (table[hash] == null)\n {\n return false;\n }\n else\n {\n ArrayList<Integer> al = table[hash].al;\n int size = al.size();\n for (int i = 0; i < size; ++i)\n {\n if (al.get(i) == key)\n {\n return true;\n }\n }\n return false;\n }\n }", "boolean containsKey(DocumentKey key) {\n DocumentReference reference = new DocumentReference(key, 0);\n\n Iterator<DocumentReference> iterator = batchesByDocumentKey.iteratorFrom(reference);\n if (!iterator.hasNext()) {\n return false;\n }\n\n DocumentKey firstKey = iterator.next().getKey();\n return firstKey.equals(key);\n }", "public boolean hasKey(String key) {\n return data.containsKey(key);\n }", "public boolean contains(String key) {\r\n return attributeMap.containsKey(key)\r\n || (parent.isPresent() && parent.get().contains(key));\r\n }", "public boolean containsKey(String key) {\n if (!index.containsKey(key)) return false;\n else if (index.get(key).isEmpty()) return false;\n else return true;\n }", "public boolean containsKey(final K key)\n {\n return this.hashMap.containsKey(key);\n }", "@Override\n\tpublic boolean contains(K key) {\n\t\treturn false;\n\t}" ]
[ "0.7961443", "0.79114634", "0.7721487", "0.76784724", "0.766318", "0.7650097", "0.7635705", "0.75839686", "0.7558545", "0.75425327", "0.75034064", "0.7425892", "0.74028784", "0.7363361", "0.73188466", "0.73188466", "0.73098433", "0.7287628", "0.7276773", "0.7260074", "0.72599536", "0.72455823", "0.7240779", "0.72316027", "0.7203172", "0.7195031", "0.71942526", "0.71510816", "0.71421134", "0.71069914", "0.7100902", "0.709173", "0.7061755", "0.70560753", "0.70218116", "0.7009631", "0.7009613", "0.7006305", "0.70006764", "0.6995694", "0.69954026", "0.699269", "0.6987274", "0.6987274", "0.69596726", "0.69585204", "0.69559515", "0.69512844", "0.6950714", "0.6945038", "0.6942052", "0.693324", "0.69262576", "0.6923696", "0.69208854", "0.69023484", "0.6886341", "0.68805885", "0.6873634", "0.6872841", "0.68707407", "0.68696535", "0.6858768", "0.6846901", "0.6846901", "0.6843415", "0.6827175", "0.68242663", "0.68087775", "0.6801812", "0.6801553", "0.6781241", "0.6777076", "0.67765325", "0.6773354", "0.6773016", "0.67650175", "0.67428535", "0.67357236", "0.6718366", "0.67174923", "0.6698222", "0.66939366", "0.6691238", "0.6688971", "0.66765726", "0.6666004", "0.6665587", "0.6638679", "0.66303515", "0.6628762", "0.6602176", "0.6594186", "0.65795064", "0.6577757", "0.6568314", "0.65682477", "0.6564429", "0.6562363", "0.6560289" ]
0.7007016
37
Returns whether the given value is found.
@Override public boolean containsValue(Object value) { if (value == null) throw new NullPointerException(); for (K key : keySet()) { if (get(key).equals(value)) return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean containsValue(Object value);", "boolean hasSearchValue();", "boolean containsValue(Object value) throws NullPointerException;", "public boolean containsValue(Object value) {\n return map.containsValue(value);\n }", "public boolean find(int value) {\n return set.contains(value);\n }", "public boolean containsValue(Object value) {\n\t\treturn false;\r\n\t}", "public boolean contains(U value) {\n\t\t\treturn indexOf(value) != -1;\n\t\t}", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean contains(String value);", "boolean containsValue(Object toFind)\n\t\t{\n\t\t\tif(value != null && toFind.equals(value))\n\t\t\t\treturn true;\n\t\t\tif(nextMap == null)\n\t\t\t\treturn false;\n\t\t\tfor(Node<T> node : nextMap.values())\n\t\t\t\tif(node.containsValue(toFind))\n\t\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}", "public boolean isValueExists(String key, String value) {\n\t\tSystem.out.println(\"Checking for value : \" + value + \" existance\");\n\t\tboolean valueExist = false;\n\t\tMap<String, List<String>> dictMap = getDictionary();\n\t\tif (dictMap != null && dictMap.isEmpty() != true) {\n\t\t\tif (dictMap.containsKey(key)) {\n\t\t\t\tList<String> membersList = dictMap.get(key);\n\t\t\t\tif (membersList.contains(value))\n\t\t\t\t\tvalueExist = true;\n\t\t\t}\n\t\t}\n\t\treturn valueExist;\n\t}", "public String exist(String value) {\n\t\ttry {\n\t\t\tif (values.contains(value)) {\n\t\t\t\treturn \"yes\";\n\t\t\t} else {\n\t\t\t\treturn \"no\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\treturn \"no\";\n\t\t}\n\t}", "public boolean find(int value) {\n return twoSums.contains(value);\n }", "public boolean contains(java.lang.String searchVal) {\n return (indexValue(searchVal) != -1);\n }", "public abstract boolean containsValue(V value);", "public boolean exists(String value) {\n\t\t// TODO Implement this method\n\t\tif (dict != null) {\n\t\t\treturn dict.containsKey(value);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\t// return false;\n\t}", "public static synchronized boolean containsValue(String value) {\n\t\treturn ClassRegistry.dictionary.containsValue(value);\n\t}", "boolean contains(int value);", "boolean contains(int value);", "@Override\n\tpublic boolean containsValue(Object value) {\n\t\treturn map.containsValue(value);\n\t}", "public boolean containsValue(V value)\r\n\t{\r\n\t\tList<V> values = values();\r\n\t\t\r\n\t\tfor(V element : values)\r\n\t\t{\r\n\t\t\tif(element.equals(value))\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "boolean hasVal();", "boolean hasVal();", "public boolean contains(Object value)\r\n {\r\n return contains(root, value);\r\n }", "public boolean containsValue(Object value) {\r\n\t\tTableEntry<K, V> currentElement = null;\r\n\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tif (table[i] == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = table[i];\r\n\r\n\t\t\tdo {\r\n\t\t\t\tif (currentElement.value.equals(value)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcurrentElement = currentElement.next;\r\n\t\t\t} while (currentElement != null);\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "public boolean containsValue(int valor){\n boolean found = false;\n if(!valores.isEmpty()){\n if(valores.contains(valor)){\n found = true;\n }\n }\n return found;\n }", "public boolean valueExists(String tableName, String key, Object value) throws SQLException, NullPointerException {\n ResultSet rs = mysql.query(\"SELECT * FROM `\"+ tableName +\"` WHERE `\" + key + \"` LIKE '\" + value.toString() + \"'\");\n\n // Gets the next line from the table\n if(rs.next()){\n // return true if the String is available\n return rs.getString(key) != null;\n }\n\n // Value and Key are not identified\n return false;\n }", "private boolean findMapValue(Map<String, String> map, String searchValue) {\n\t\treturn (findMapKeyByValue(map, searchValue) != null);\r\n\t}", "public boolean contains(E value);", "boolean contains(int val);", "public boolean contains(int value) {\n\t \treturn indexOf(value) >= 0;\n\t }", "boolean isValue();", "public boolean contains(T value) {\n if (value == null)\n return false;\n\n Node<T> current = root;\n\n // find\n while (current != null) {\n int diff = current.data.compareTo(value);\n if (diff == 0)//when found\n return true;\n else if (diff < 0)\n current = current.right;//check right sub tree\n else\n current = current.left;//check left subtree\n }\n\n return false;//not found\n }", "public boolean contains(Object value) {\n\t\treturn false;\n\t}", "@Override\n public boolean containsValue(Object value) {\n // Walk the values.\n for (Map.Entry<String, T> e : entries.values()) {\n if (value.equals(e.getValue())) {\n // Its there!\n return true;\n }\n }\n return false;\n }", "public static boolean matches(String searchFor, String value) {\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException(\"The value may not be null\");\n\t\t}\n\t\tif (searchFor == null || searchFor.isEmpty()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn value.toLowerCase().contains(searchFor.toLowerCase());\n\t}", "public boolean containsValue(Object v) {\n/* 119 */ return false;\n/* */ }", "public boolean contains(Comparable value)\r\n {\r\n\t\tListNode currentNode;\r\n\t\tcurrentNode = firstNode;\r\n\t\twhile (currentNode != null) {\r\n\t\t\tif (currentNode.data.equals(value)) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tcurrentNode = currentNode.next;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean contains(final Object value) {\n\t\tboolean found = false;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tif (elements[i].equals(value)) {\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn found;\n\t}", "boolean Exists(int value) {\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tif (curr.data == value)\n\t\t\t\treturn true;\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn false;\n\t}", "public boolean search(T value) {\n if (value.hashCode() == this.value.hashCode()) {\n return true;\n }\n if (value.hashCode() > this.value.hashCode()) {\n return this.right.search(value);\n }\n if (value.hashCode() < this.value.hashCode()) {\n return this.left.search(value);\n }\n return false;\n }", "public boolean contains(T value) { return root == null ? false : root.contains(value); }", "public boolean contains(T val);", "public boolean hasValue(final String elementLocator, final String valuePattern);", "@Override\n\tpublic boolean contains(Object value) {\n\t\tif (indexOf(value) != -1) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean search(int val) {\r\n \r\n // call the private search method with root and value to be searched for\r\n return search(root, val);\r\n }", "public boolean search(T val)\r\n {\r\n return search(root, val);\r\n }", "public boolean exists() {\n \t\treturn (type != UNKNOWN && isValid() && ((type == STRING) ? !sVal.equals(\"\") : true));\n \t}", "private boolean _contains(Node node, T value) {\n if (node == null)\n return false;\n /** if the value is found */\n if (value.compareTo(node.element) == 0) {\n return true;\n }\n /** Otherwise, continue the search recursively */\n return value.compareTo(node.element) < 0 ? _contains(node.left, value) : _contains(node.right, value);\n\n }", "@Override public boolean containsValue(Object value) {\n if (value == null) {\n for (LinkedEntry<K, V> header = this.header, e = header.nxt;\n e != header; e = e.nxt) {\n if (e.value == null) {\n return true;\n }\n }\n return false;\n }\n\n // value is non-null\n for (LinkedEntry<K, V> header = this.header, e = header.nxt;\n e != header; e = e.nxt) {\n if (value.equals(e.value)) {\n return true;\n }\n }\n return false;\n }", "public boolean hasValue(String value) {\r\n\t\tfor(Attribute curAttr: valInstances) {\r\n\t\t\tif(value.equals(curAttr.getVal())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean contains(String searchVal) {\n return collection.contains(searchVal);\n }", "public boolean containsValue(Object value) {\n for (int i = 0; i < size; i++) {\n Entry entry = order[i];\n\n if (eq(value, entry.getValue())) {\n return true;\n }\n }\n\n return false;\n }", "@Override\n\tpublic boolean containsValue(Object value) {\n\t\treturn false;\n\t}", "public boolean contains(int columnIndex, Object value) {\n return findRow(columnIndex, value) != null;\n }", "@Override\n public boolean containsValue(Object value) {\n for (LinkedList<Entry<K,V>> list : table) {\n for (Entry<K,V> entry : list) {\n if (entry.getValue().equals(value)) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean search(int val)\n {\n return search(root, val);\n }", "public boolean search(int val)\n {\n return search(root, val);\n }", "public Boolean valid(String value) {\n return needle.contains(value);\n }", "public boolean containsValue(V value) {\r\n\t\tfor (LinkedList<KVPair> i : hashMapArray) {\r\n\t\t\tif (i!= null) {\r\n\t\t\t\tfor (int k = 0; k<i.size(); k++) {\r\n\t\t\t\t\tif (i.get(k).getValue() == value) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean containsValue(V value) {\n\tfor(int i=0;i<this.capacity;i++) {\n\t for(MyEntry k:table[i]) {\n\t\tif(k.value.equals(value)) {\n\t\t return true;\n\t\t}\n\t }\n\t}\n\treturn false;\n }", "public boolean contains(T value) {\n Node<T> cur = root;\n while (cur != null) {\n int cmp = cur.value.compareTo(value);\n\n if (cmp == 0)\n return true;\n else if (cmp < 0)\n cur = cur.right;\n else\n cur = cur.left;\n }\n return false;\n }", "public boolean hasSearchValue() {\n return searchValue_ != null;\n }", "boolean hasCustomValue();", "public boolean contains(T value) {\n\t\tif (head.value.equals(value)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn contains(head, value);\n\t\t}\n\t}", "@Override\n\t\t\tpublic boolean containsValue(Object value) {\n\t\t\t\treturn false;\n\t\t\t}", "public boolean hasValue(Object value) {\r\n\t\tif (objectMap.containsKey(value))\r\n\t\t\treturn true;\r\n\r\n\t\treturn false;\r\n\t}", "public boolean containsValue(V value) {\r\n for (Node datum : data) {\r\n if (datum != null) {\r\n Node targetNode = datum;\r\n while (targetNode != null) {\r\n if (targetNode.value == value || targetNode.value.equals(value)) {\r\n return true;\r\n }\r\n targetNode = targetNode.next;\r\n }\r\n\r\n }\r\n }\r\n return false;\r\n }", "public boolean containsValue(Object value)\r\n/* 391: */ {\r\n/* 392:560 */ return this.headers.containsValue(value);\r\n/* 393: */ }", "public boolean contains(K key, V value) {\r\n \tCollection<V> values = get(key);\r\n \tif (values == null) { return false; }\r\n \treturn values.contains(value);\r\n }", "boolean hasStringValue();", "public boolean containsValue(Object value) {\r\n for (Map.Entry<K, V> pair : entrySet()) {\r\n // Optimize in case the Entry is one of our own.\r\n if (pair.getValue().equals(value) && ((CacheData<K, V>) pair).validateKey() != null) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public static boolean exists(int value) {\n for (Attributes g : Attributes.values()) {\n if (g.getValue() == value) {\n return true;\n }\n }\n return false;\n }", "public boolean contains(T value) {\n for (T tmp : arr) {\n if (tmp.equals(value)) {\n return true;\n }\n }\n return false;\n }", "public boolean find(int value) {\n\t for(Map.Entry<Integer,Integer> entry:map.entrySet){\n\t\t int key = entry.getKey();\n\t\t int num = entry.getValue();\n\t\t int offset = value-key;\n\t\t if((offset==key&&num>1)||(offset!=key&&!map.containsKey(offset))){\n\t\t\t return true;\n\t\t }\n\t }\n\t return false;\n\t}", "@Override\n\tpublic boolean contains(Object value) {\n\t\tif(indexOf(value)!=-1)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public static boolean getFound(){\n return found;\n }", "boolean hasVarValue();", "public boolean includes(int findValue) {\r\n Node currentNode = head;\r\n\r\n while (currentNode != null) {\r\n if (currentNode.data == findValue) {\r\n return true;\r\n }\r\n currentNode = currentNode.next;\r\n\r\n }\r\n return false;\r\n\r\n\r\n }", "boolean searchValueExists(int i){\t\r\n\t\tthis.searchedNode = search(this.root, i);\r\n\t\tif(this.searchedNode != null){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean contains(String value){\n if (value == null)\n return false;\n int index = clamp(value);\n if (linkedListStrings[index] == null)\n return false;\n else\n return linkedListStrings[index].contains(value);\n\n\n }", "public boolean search(int val) {\n\n\t\tDLNode n = head;\n\t\tif (n == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tint nc = nodeCounter();\n\n\t\tfor (int i = 0; i < nc; i++) {\n\n\t\t\tif (n.val == val) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (n.val == Integer.MIN_VALUE) {\n\t\t\t\tboolean check = n.list.search(val);\n\t\t\t\tif (check) {\n\t\t\t\t\treturn check;\n\t\t\t\t}\n\t\t\t}\n\t\t\tn = n.next;\n\t\t}\n\t\treturn false;\n\n\t}", "public boolean exists() {\n \t\treturn (type != UNASKED && isValid() && ((type == STRING) ? !sVal.equals(\"\") : true));\n \t}", "public boolean searchNode(int value) \n { \n return searchNode(header.rightChild, value); \n }", "private boolean contains(List<NodeId> array, NodeId searchValue) {\n return array != null && array.contains(searchValue);\n }", "public boolean search(String word) {\n if (value == null || word == null) {\n return false;\n }\n if (value.contains(word)) {\n return true;\n }\n return false;\n }", "public static synchronized boolean exist(final Database db, final String keyValue) {\n\t\t\n\t\ttry {\n\t\t\tList<List<Object>> rows = db.executeQuery(\"select * from \" + db.getDbSchema()+ \".\" + \n\t\t\t\t\tDataTablePostalCode.Id + \" where postalId = '\" + keyValue + \"'\");\n\t\t\t\n\t\t\tif(rows.size() > 0){\n\t\t\t\treturn true;\n\t\t\t} \n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tLogger.log(DataTablePostalCode.class, e);\n\t\t} /* catch */\n\t\t\n\t\treturn false;\n\t}" ]
[ "0.75446135", "0.73969924", "0.7103074", "0.7097138", "0.7076631", "0.7042045", "0.7038133", "0.6985306", "0.6985306", "0.6985306", "0.6985306", "0.6985306", "0.6985306", "0.6985306", "0.6985306", "0.6985306", "0.6985306", "0.6985306", "0.6985306", "0.6985306", "0.6985306", "0.69713545", "0.6948503", "0.69174397", "0.68959993", "0.6879346", "0.6832188", "0.6784336", "0.67772424", "0.67521", "0.6735969", "0.6735969", "0.67331135", "0.67158633", "0.66937035", "0.66937035", "0.6690217", "0.66770625", "0.66628057", "0.66507065", "0.6597629", "0.6592364", "0.6584206", "0.65834844", "0.65538186", "0.65529984", "0.6536521", "0.6523814", "0.6508966", "0.6480964", "0.6473512", "0.6469568", "0.64470243", "0.64424163", "0.6441172", "0.643941", "0.64370465", "0.6428109", "0.6425113", "0.64217156", "0.6419197", "0.64039403", "0.63832337", "0.63754225", "0.6372239", "0.636653", "0.6342391", "0.6339206", "0.63257825", "0.6319636", "0.6319636", "0.63192666", "0.63176495", "0.63132054", "0.6307784", "0.6300492", "0.62827384", "0.62776124", "0.62774855", "0.6246771", "0.62194705", "0.6218989", "0.6215151", "0.61831045", "0.61783284", "0.61744314", "0.61710155", "0.61692494", "0.61667114", "0.6159495", "0.61557466", "0.6152082", "0.6150112", "0.6142854", "0.6137283", "0.61244047", "0.6119635", "0.6106586", "0.6091128", "0.60519433" ]
0.63697577
65
Returns the value for a given key, if found. Otherwise, returns null.
@Override public V get(Object key) { Bucket bucket = (Bucket) buckets[key.hashCode() % numBuckets]; return bucket.get((K) key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public V searchValue (K key) {\n\t\tfor (Map.Entry<K, V> entry : this.entrySet()) {\n\t\t\tif (entry.getKey() == key) {\n\t\t\t\treturn entry.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public V get(K key) {\r\n\t\t\tif (key == null) {\r\n\t\t\t\tthrow new NullPointerException();\r\n\t\t\t} else if (find(key) == null) {\r\n\t\t\t\treturn null;\r\n\t\t\t} else {\r\n\t\t\t\treturn find(key).value;\r\n\t\t\t}\r\n\t\t}", "public V get(K key) {\n if (null == key) {\n throw new IllegalStateException(\"Null value for key is \" +\n \"unsupported!\");\n }\n\n V result = null;\n\n Node<Pair<K, V>> node = findItem(key);\n\n if (node != null) {\n result = node.getData().value;\n }\n\n return result;\n\n }", "public V get(K key)\r\n\t{\r\n\t\tEntry retrieve = data.get(new Entry(key, null));\r\n\t\t\r\n\t\tif(retrieve != null)\r\n\t\t{\r\n\t\t\treturn retrieve.value;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public Value get(String key) {\n Node x = get(root, key, 0);\n if (x == null) return null; //node does not exist\n else return (Value) x.val; //found node, but key could be null\n }", "public V get(K key)\n\t{\n\t\tcheckForNulls(key);\n\t\tint n = Math.abs(key.hashCode() % entries.length);\n\t\t\n\t\tif (entries[n] == null)\n\t\t\treturn null;\n\t\t\n\t\tfor (Entry e : entries[n])\n\t\t{\n\t\t\tif (key.equals(e.key) == true)\n\t\t\t\treturn e.value;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public V get(K key) {\n if (key == null) {\n MyEntry<K, V> entry = null;\n try {\n entry = bucket[0];\n if (entry != null) {\n return entry.getValue();\n }\n } catch (NullPointerException e) {\n }\n } else {\n // other keys\n MyEntry<K, V> entry = null;\n int location = hashFunction(key.hashCode());\n entry = bucket[location];\n if (entry != null && entry.getKey() == key) {\n return entry.getValue();\n }\n }\n return null;\n }", "public V getValue(K key)\r\n\t{\r\n\t\tint slot = findSlot(key, false);\r\n\t\t\r\n\t\tif (slot < 0) \r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tMapEntry<K, V> e = table[slot];\r\n\t\treturn e.getValue();\r\n\t}", "@Override\n\t@TimeComplexity(\"O(log n)\")\n\tpublic V get(K key) {\n\t/* TCJ\n\t * Binary search operation: log n\n\t */\n\t\tint j = findIndex(key);\n\t\tif ( j == size() || key.compareTo(map.get(j).getKey()) != 0 ) { return null; }\n\t\treturn map.get(j).getValue();\n\t}", "public V get(final K key)\n {\n final StackElement element = this.hashMap.get(key);\n\n if (element != null)\n {\n return element.value;\n }\n\n return null;\n }", "public V get(K key) {\n int index = findIndex(key);\n if (keys[index] == null)\n return null;\n else\n return values[index];\n }", "public V get(K key){\n\t\t\n\n\t\tNode n=searchkey(root, key);\n\n\t\t\n\t\tif(n!=null && n.value!=null){\n\t\t\treturn n.value;\n\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "public Object lookup(String key){\n ListNode<String,Object> temp = getNode(key);\n if(temp != null)\n return temp.value;\n else\n return null;\n }", "Optional<V> get(K key);", "public Optional<V> lookup(K key) {\n Optional<V> mt = Optional.empty();\n return this.entries.foldr(((kvp, o)-> kvp.left.equals(key) ? Optional.of(kvp.right) : o) , mt);\n }", "public Object get(Object key){\n\t\tNode tempNode = _locate(key);\r\n\t\tif(tempNode != null){\r\n\t\t\treturn tempNode._value;\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\n\tpublic Optional<Value> get(Key k) {\n\t\treturn bst.find(k);\n\t}", "@Override\n public V get(K key) {\n if(containsKey(key)) {\n LinkedList<Entry<K, V>> pointer = entryArr[Math.floorMod(key.hashCode(), entryArr.length)];\n return pointer.stream().filter(x->x.key.equals(key))\n .collect(Collectors.toList()).get(0).value;\n }\n return null;\n }", "public V get(Object key) {\r\n\t\tif (key == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tint slotIndex = Math.abs(key.hashCode()) % table.length;\r\n\r\n\t\tif (table[slotIndex] == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tTableEntry<K, V> currentElement = table[slotIndex];\r\n\r\n\t\tdo {\r\n\t\t\tif (currentElement.key.equals(key)) {\r\n\t\t\t\treturn currentElement.value;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = currentElement.next;\r\n\t\t} while (currentElement != null);\r\n\r\n\t\treturn null;\r\n\t}", "public AnyType get(AnyType key) {\n \tif (contains(key)) {\n \t\tint currentPos = findPos( key );\n \t\t\treturn ((array[currentPos] != null) ? array[currentPos].value : null); \n \t}\n \telse {\n \t\treturn null;\n \t}\n }", "public V value(K key) {\n for(MapEntry<K, V> t : this) {\n if (t == null) continue;\n if (t.key().equals(key)) return t.value();\n }\n\n return null;\n }", "public V get(K key) {\r\n\t\tint place = hash(key.hashCode());\r\n\t\tif (hashMapArray[place] != null) {\r\n\t\t\tLinkedList<KVPair> temp = hashMapArray[place];\r\n\t\t\tfor (KVPair i : temp) {\r\n\t\t\t\tif (i.getKey().equals(key)) {\r\n\t\t\t\t\treturn i.getValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public V get(K key) {\n int index = getIndex(getHash(key));\n Entry<K, V> entry = (Entry<K, V>) table[index];\n\n if (entry == null) {\n return null;\n }\n\n if (!entry.hasNext()) {\n return entry.getValue();\n }\n\n while (entry.hasNext()) {\n if (entry.getKey().equals(key))\n return entry.getValue();\n entry = entry.getNext();\n }\n\n if (entry.getKey().equals(key))\n return entry.getValue();\n\n return null;\n }", "public V get(K key) {\n V value = null;\n\n if (key != null) {\n int index = indexFor(key);\n if (container[index] != null) {\n value = (V) container[index].value;\n }\n }\n return value;\n }", "public V getValue(K key) {\n int i = findPosition(key);\n if (i==DsConst.NOT_FOUND) {\n return null;\n }\n DictionaryPair p = list.get(i);\n return p.getValue();\n }", "public Value find(Value key) {\n\t\tValue v = get(key);\n\t\tif (v != null)\n\t\t\treturn v;\n\t\tif (parent != null)\n\t\t\treturn parent.find(key);\n\t\treturn null;\n\t}", "V getValue(final E key) {\r\n for (int i=0;i<kcount;i++) {\r\n if (equal(key, (E)k[i])) return (V)v[i];\r\n }\r\n return null;\r\n }", "private V get(K key) {\n\t\t\tif (keySet.contains(key)) {\n\t\t\t\treturn valueSet.get(keySet.indexOf(key));\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public V get(K key) {\n int hashCode = scaledHashCode(key);\n OwnLinkedList<K, V> list = table[hashCode];\n if (list == null) {\n return null;\n }\n PairNode<K, V> result = list.search(key);\n if (result == null) {\n return null;\n }\n return result.getValue();\n }", "public String getValue(String key) {\n\t\tfinal Iterator<Map.Entry<String, String>> iter = entries.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tfinal Map.Entry<String, String> entry = iter.next();\n\t\t\tif (entry.getKey().equals(key)) {\n\t\t\t\treturn entry.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public TValue find(TKey key) {\n Node n = bstFind(key, mRoot); // find the Node containing the key if any\n if (n == null || n == NIL_NODE)\n throw new RuntimeException(\"Key not found\");\n return n.mValue;\n }", "public V getValue(K key)\n {\n V result = null;\n int keyIndex = locateIndex(key);\n if ((keyIndex < numberOfEntries) && \n key.equals(dictionary[keyIndex].getKey()))\n result = dictionary[keyIndex].getValue();\n return result;\n }", "@Override\n\tpublic V getValue(K key) {\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(!isEmpty()){\n\t\t\twhile(currentNode.key != key){\n\t\t\t\tif(currentNode.getNextNode() == null){\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn (V)currentNode.value;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "public V find(K key) {\n Node<K,V> node = root;\n while (node != null) {\n int cmp = key.compareTo(node.key);\n if (cmp < 0) {\n node = node.left;\n } else if (cmp > 0) {\n node = node.right;\n } else {\n return node.value;\n }\n }\n return null;\n }", "V get(final K key);", "public Value get(String key)\r\n {\r\n if (key.equals(\"\")) return null_str_val;\r\n Node<Value> x = get(root, key, 0);\r\n return x == null ? null : x.val;\r\n }", "Optional<V> lookup(K k);", "public Value get(Key key)\t\t\t\t//Value passed with Key(Null if key is absent)\n\t{\n\t\tNode x=root;\n\t\twhile(x!=null)\n\t\t{\n\t\t\tint cmp=key.compareTo(x.key);\n\t\t\tif(cmp<0)\tx=x.left;\n\t\t\telse if(cmp>0)\tx=x.right;\n\t\t\telse if(cmp==0)\treturn x.val;\n\t\t}\n\t\treturn null;\n\t}", "public V get(K searchKey) {\n\t\tint index = hash(searchKey);\n\t\t\n\t\tIterator<WordCode<K, V>> itr = myBuckets.get(index).iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tWordCode<K, V> itrVal = itr.next();\n\t\t\tif (itrVal.myKey.equals(searchKey)) return itrVal.myValue;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public Value get(Key key) {\r\n\t\t\tValue ret = null;\r\n\t\t\t\r\n\t\t\tdata.reset();\r\n\t\t\tfor (int i = 0; i < data.size(); i++) {\r\n\t\t\t\tif (data.get().getKey().compareTo(key) == 0) {\r\n\t\t\t\t\tret = data.get().getValue();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tdata.next();\r\n\t\t\t}\r\n\t\t\tdata.reset();\r\n\t\t\t\r\n\t\t\treturn ret;\r\n\t\t}", "public DataValue lookup(String key) {\n if (validateKey(key)) {\n return getValueForKey(key);\n } else {\n return DataValue.NO_VALUE;\n }\n }", "public Value get(final Key key) {\n int r = rank(key);\n if (r < size && (keys[r].compareTo(key) == 0)) {\n return values[r];\n }\n return null;\n }", "public T get(T key) {\n\t\tNode<T> node = root;\n\t\twhile (node != null) {\n\t\t\tif (key.compareTo(node.value) == 0) {\n\t\t\t\treturn node.value;\n\t\t\t} else if (key.compareTo(node.value) < 0) {\n\t\t\t\tnode = node.right;\n\t\t\t} else {\n\t\t\t\tnode = node.left;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public T getValue(String key) {\r\n\t\tNode node = getNode(root, key, 0);\r\n\t\treturn node == null ? null : node.value;\r\n\t}", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "public String lookup(String key){\n Node N;\n N = findKey(root, key);\n return ( N == null ? null : N.item.value );\n }", "@Nullable\r\n public Object get(String key) {\r\n if (attributeMap.containsKey(key)) {\r\n return attributeMap.get(key);\r\n } else if (parent.isPresent()) {\r\n return parent.get().get(key);\r\n } else {\r\n return null;\r\n }\r\n }", "public Object get(Object key) {\n\t\tint index = key.hashCode() % SLOTS;\n\t\t// check if key is already present in that slot/bucket.\n\t\tfor(Pair p:table[index]) {\n\t\t\tif(key.equals(p.key))\n\t\t\t\treturn p.value;\n\t\t}\n\t\t// if not found, return null\n\t\treturn null;\n\t}", "public T get(Object key)\n\t{\n\t\tif(root == null || key == null)\n\t\t\treturn null;\n\t\tif(!(key instanceof CharSequence))\n\t\t\treturn null;\n\t\treturn root.get((CharSequence)key,0);\n\t}", "public V lookup(K key);", "public V get(final K key) {\n expunge();\n final int hash = hash(key);\n final int index = index(hash, entries.length);\n Entry<K, V> entry = entries[index];\n while (entry != null) {\n if (entry.hash == hash && key == entry.get()) {\n return entry.value;\n }\n entry = entry.nextEntry;\n }\n return null;\n }", "public V getValue( K key ) {\r\n\t\tint bucketIndex = getBucketIndex( key );\r\n\t\tMapNode<K, V> head = buckets.get(bucketIndex);\r\n\t\twhile( head != null ) {\r\n\t\t\tif( head.key.equals(key)) {\r\n\t\t\t\treturn head.value;\r\n\t\t\t}\r\n\t\t\thead = head.next;\r\n\t\t}\r\n\t\treturn null;\t\r\n\t}", "public Value get(Key key);", "public V get( K key ) {\n WeakReference<V> valueRef = map.get( key );\n return valueRef == null ? null : valueRef.get();\n }", "V get(Object key);", "public V get(K key);", "Object get(Object key) throws NullPointerException;", "public Object get(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null)\n\t\t\treturn null;\n\t\treturn value.value;\n\t}", "public V get(K key) {\n\t\tfor (int i = map.size() - 1; i >= 0; i--) {\n\t\t\tif (map.get(i).containsKey(key)) {\n\t\t\t\treturn map.get(i).get(key);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public V getValue(K key);", "public V getValue(K key);", "private String getLocalValue(int key)\n {\n // binary search, since the list is sorted\n int start = 0;\n int end = cache.size() - 1;\n while (start <= end)\n {\n int mid = (start + end) / 2;\n Record currentRecord = cache.get(mid);\n if (key == currentRecord.key())\n {\n return currentRecord.value();\n }\n else if (key < currentRecord.key())\n {\n end = mid - 1;\n }\n else\n {\n start = mid + 1;\n }\n }\n \n // not found\n return null; \n }", "public String lookup(String key){\n Node N = front;\n while( N != null){\n if( N.key.equals(key)){\n return N.value;\n }\n N = N.next;\n }\n return null;\n }", "Object get(String key);", "Object get(String key);", "public V get(K key)\n\t{\n\t\tif(queue.contains(key))\n\t\t{\n\t\t\tqueue.remove(key);\n\t\t\tqueue.add(0, key);\n\t\t\treturn map.get(key);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "public V get(K key) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n V result = null;\r\n if (data[hash] != null) {\r\n Node currentNode = data[hash];\r\n while (currentNode != null) {\r\n if (currentNode.key == key || currentNode.key.equals(key)) {\r\n result = (V) currentNode.value;\r\n }\r\n currentNode = currentNode.next;\r\n }\r\n }\r\n return result;\r\n }", "public E find(K key){\n\t\tE output= null;\n\t\t\n\t\tint i = 0;\n\t\twhile (i<keys.length && output == null){\n\t\t\tif(keys[i] != null && keys[i].equals(key))\n\t\t\t\toutput = elem[i];\n\t\t\ti = i + 1;\n\t\t}\n\t\treturn output;\n\t}", "private DataValue getValueForKey(String key) {\n DataValue value = valueMap.get(key);\n if (value == null) {\n return DataValue.NO_VALUE;\n } else {\n return value;\n }\n }", "public V getIfPresent(Object key) {\n V result = null;\n MapSegment.Entry<K, V> entry = segment.getEntry(key);\n\n if (null != entry) {\n entry.setAccessTime(ticker.nextTick());\n result = entry.getValue();\n }\n return result;\n }", "public synchronized V get(K key) throws IOException {\n\t\t\treadIndex();\n\t\t\t\n\t\t\tPair<K, V> pair = seekInternal(key);\n\t\t\tif (pair != null) {\n\t\t\t\treturn pair.value();\n\t\t\t} else\n\t\t\t\treturn null;\n\t\t}", "public V get(Object key) {\r\n if (cacheDelegate != null) {\r\n cacheDelegate.keyLookup(key);\r\n }\r\n\r\n if (key == null) {\r\n return null;\r\n }\r\n\r\n V value;\r\n CacheData<K, V> cacheData = getEntry(key);\r\n if (cacheData != null) {\r\n // see if the key passed in matches this one\r\n if ((value = cacheData.validateKey(key, cacheDelegate)) != null) {\r\n return value;\r\n }\r\n }\r\n // if we made it here and source!=null use the passthrough\r\n if (source!=null) {\r\n value = source.get(key);\r\n put((K)key, value);\r\n return value;\r\n }\r\n return null;\r\n }", "public Object get(String key) {\n \t\treturn this.get(null, key);\n \t}", "@Override\n public V get(Object key) {\n int index = key.hashCode() % table.length;\n if (index < 0) {\n index += table.length;\n }\n if (table[index] == null) {\n return null; // key is not in the table.\n }\n // Search the list at table[index] to find the key.\n for (Entry<K, V> nextItem : table[index]) {\n if (nextItem.key.equals(key)) {\n return nextItem.value;\n }\n }\n\n // assert: key is not in the table.\n return null;\n }", "@Override\n\tpublic V get(K key) {\n\t\tint h = Math.abs(key.hashCode()) % nrb;// calculam hash-ul asociat cheii\n\t\tfor (int i = 0; i < b.get(h).getEntries().size(); i++) {\n\t\t\t// parcurgerea listei de elemente pentru a gasi cheia ceruta si a\n\t\t\t// intoarte valoarea dorita\n\t\t\tif (b.get(h).getEntries().get(i).getKey().equals(key)) {\n\t\t\t\treturn b.get(h).getEntries().get(i).getValue();\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public V get(String key) {\n int index = hashOf(key);\n if (index >= capacity) return null;\n return (V) values[index];\n }", "public Object getValue(String key)\n {\n if (otherDetails == null)\n {\n return null;\n }\n else\n {\n return otherDetails.get(key);\n }\n }", "public Object get(Object key) {\n CacheEntry entry = (CacheEntry)_hash.get(key);\n if (entry != null) {\n touchEntry(entry);\n return entry.getValue();\n } else {\n return null;\n }\n }", "public V get(String key);", "@Override\r\n public Object findElement(Object key) {\r\n\r\n // Search for node possibly containing key\r\n TFNode node = search(root(), key);\r\n \r\n // Note the index of where the key should be\r\n int index = FFGTE(node, key);\r\n\r\n // If the index is greater than the number of items in the node, the key is not in the node\r\n if (index < node.getNumItems()) {\r\n // Look for key in node\r\n if (treeComp.isEqual(node.getItem(index).key(), key)) {\r\n return node.getItem(index);\r\n }\r\n }\r\n\r\n // The search hit a leaf without finding the key\r\n return null;\r\n }", "private Value get(Node node, Key key ) {\n if ( node.key.equals( key ) ) {\n return (Value) node.value;\n }\n\n if ( key.compareTo( (Key)node.key ) < 0 ) {\n return node.left.value == null ? null : get(node.left,key);\n }\n else {\n return node.right.value == null ? null : get(node.right,key);\n }\n }", "public Object get(String key);", "public String get(String key) {\n \ttmp = getNode(key);\n \tif (tmp != null) { \n \t\treturn tmp.getVal();\n \t}\n \treturn null;\n }", "public native V get(K key);", "public Value get(Key key){\n\t\tNode x = root;\n\t\twhile(x!=null){\n\t\t\tif(key.compareTo(x.key)<0)\n\t\t\t\tx = x.left;\n\t\t\telse if(key.compareTo(x.key)>0)\n\t\t\t\tx = x.right;\n\t\t\telse\n\t\t\t\treturn x.value;\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic V get(Object key) {\n\t\tfor (int i = 0; i < tabla.size(); i++) {\n\t\t\tint indice = tabla.get(i).keySet().indexOf(key);\n\t\t\tif (indice != -1) {\n\t\t\t\treturn tabla.get(i).valueSet().get(indice);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public final V getEntry(K key) {\n\t\tif (size == 0) {\n\t\t\treturn null;\n\t\t}\n\t\tint hash = hash(key);\n\t\tint i = indexFor(hash);\n\t\tEntry<K, V> e0 = table[i];\n\t\tif (e0 != null) {\n\t\t\tif (e0.isFile) {\n\t\t\t\t// 读硬盘\n\t\t\t\treadDisk(e0, dir, i);\n\t\t\t\te0.isFile=false;\n\t\t\t}\n\t\t\tEntry<K, V> e = e0;\n\t\t\twhile (true) {\n\t\t\t\tK k = e.k;\n\t\t\t\tif (e.hash() == hash && (k.compareTo(key) == 0)) {\n\t\t\t\t\tV value = e.v;\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\t\t\t\tif (e.next == null) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\te = e.next;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "Object get(Object key);", "public E get(String key) {\r\n Integer index = keys.get(key);\r\n if (index == null || index >= items.size()) {\r\n return null;\r\n }\r\n return items.get(index);\r\n }", "public Entry<K, V> find(K key) {\r\n try {\r\n int hash = key.hashCode();\r\n ListNode<Entry<K, V>> node = table[compFunction(hash)].front();\r\n if (node.isValidNode()) {\r\n return (Entry<K, V>) node.getItem();\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Unhashable key: \" + e);\r\n }\r\n return null;\r\n }", "public String get(String key) {\n Node pos = find(key);\n if (pos == null) {\n return null;\n } else {\n return pos.pairStringString.getValue();\n }\n }", "public Entry find(Object key) {\n int i = compFunction(key.hashCode());\n SList chain = buckets[i];\n try {\n for (SListNode n = (SListNode) chain.front(); n.isValidNode(); n = (SListNode) n.next()) {\n Entry e = (Entry) n.item();\n if (e.key.equals(key)) {\n return e;\n }\n }\n } catch(InvalidNodeException e) {\n System.out.println(e);\n }\n return null;\n }", "public synchronized V get(K k) {\n final int h = getHash(k), hash = h % buckets.length;\n ItemNode<K,V> node = ItemNode.search(buckets[hash], k);\n if (node != null) \n return node.v;\n else\n return null;\n }", "public V get(Object key) { return _map.get(key); }", "public final synchronized V get(final K key) {\n\t\treturn map.get(key);\n\t}" ]
[ "0.8029057", "0.80050087", "0.7829919", "0.7676984", "0.7620152", "0.7595851", "0.7579914", "0.75049", "0.75019467", "0.74891675", "0.747304", "0.7450114", "0.7425914", "0.74234194", "0.74088705", "0.739702", "0.7377195", "0.7344222", "0.7341397", "0.733144", "0.7323489", "0.7319719", "0.72996914", "0.7297575", "0.7282318", "0.7273103", "0.72693354", "0.72615147", "0.7250917", "0.72117573", "0.72068256", "0.72054416", "0.7203081", "0.71609825", "0.71437734", "0.71364385", "0.7128079", "0.71214485", "0.710676", "0.7085275", "0.7055906", "0.70366806", "0.7029993", "0.701803", "0.7009934", "0.7009934", "0.7009934", "0.7009934", "0.7009934", "0.7009934", "0.7009934", "0.70067567", "0.69699514", "0.6964247", "0.69638216", "0.6962522", "0.6925619", "0.69082147", "0.68826276", "0.6874138", "0.68650633", "0.68628436", "0.6854941", "0.6849651", "0.6844762", "0.6842636", "0.6842636", "0.683674", "0.68366754", "0.6826913", "0.6826913", "0.6824169", "0.6809393", "0.6796652", "0.6794232", "0.67799973", "0.67778635", "0.6770898", "0.67658854", "0.67499274", "0.67477214", "0.6732205", "0.67124194", "0.67098707", "0.67025256", "0.6686304", "0.6673832", "0.6661978", "0.66616845", "0.66331244", "0.66323745", "0.66292906", "0.66250545", "0.6618153", "0.66137844", "0.6599584", "0.6595715", "0.65876883", "0.6586867", "0.6561866", "0.65585136" ]
0.0
-1
Verifies if there are no keys contained in buckets.
@Override public boolean isEmpty() { return size() == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEmpty() {\r\n for (int i = 0, tot = buckets.length; i < tot; i++) {\r\n CacheData<K, V> entry = getCacheData(i);\r\n // if we find a key that is valid it's not empty\r\n if (entry != null && entry.validateKey() != null) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public boolean isEmpty() {\n return keyList.size() == 0;\n }", "public boolean isEmpty() {\n return numKeys == 0;\n }", "public boolean isEmpty() {\r\n return numberOfKeys == 0;\r\n }", "public boolean isEmpty(){\n\t\tfor(int i = 0; i < hashMap.length; i++){\n\t\t\tif(hashMap[i]!=null){\n\t\t\t\treturn(false);\n\t\t\t}\n\t\t}\n\t\treturn(true);\n\t}", "public boolean hasKeys();", "public void sanityCheck() {\n if ( bucket >= mNumBins ) bucket = mNumBins - 1;\n\n // Sanity check, should not happen.\n if ( bucket < 0 ) bucket = 0;\n }", "@Override\n public boolean isEmpty(int index) {\n return hashTable[index] == null;\n }", "@Test\n public void testCoh3710_keySetContainsAll()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n assertFalse(cache.keySet().containsAll(\n Collections.singleton(Integer.valueOf(1))));\n validateIndex(cache);\n }\n });\n }", "public boolean isEmpty(String keyName) {\n\t\treturn !map.containsKey(keyName);\n\t}", "public void clearBuckets() {\n this.buckets.clear();\n }", "@Override\n public boolean isEmpty() {\n return map.isEmpty();\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "public boolean isEmpty (){\n\t\treturn hashTableSize == 0;\n\t}", "public void clear() {\n buckets = new ArrayList<>();\n for (int i = 0; i < numBuckets; i++) {\n buckets.add(new ArrayList<>());\n }\n keySet = new HashSet<>();\n numEntries = 0;\n }", "@Test\n public void testInvalidS3Buckets() throws GenieException {\n final String[] invalidBuckets = // \"buc..ket\", // Invalid, but current logic does not catch this\n new String[]{ \"\", \" \", \"buc ket\", \"buc[ket\", \"/\" }// \"buc..ket\", // Invalid, but current logic does not catch this\n ;\n for (final String invalidBucket : invalidBuckets) {\n final String path = (\"s3://\" + invalidBucket) + \"/key\";\n Assert.assertFalse((\"Passed validation: \" + path), this.s3FileTransfer.isValid(path));\n boolean genieException = false;\n try {\n this.s3FileTransfer.getS3Uri(path);\n } catch (final GenieBadRequestException e) {\n genieException = true;\n } finally {\n Assert.assertTrue((\"Parsed without error: \" + path), genieException);\n }\n }\n }", "@Override\r\n\tpublic void clear() {\r\n\t\tbuckets = new Object[numBuckets];\r\n\t\tfor (int i = 0; i < numBuckets; i++) {\r\n\t\t\tbuckets[i] = new Bucket();\r\n\t\t}\r\n\t}", "public boolean isEmpty() {\n return map.isEmpty();\n }", "public void clear() {\n\t\tfor (int i = 0; i < buckets.length; i++) {\n\t\t\tbuckets[i] = null;\n\t\t}\n\t}", "public final synchronized boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "public boolean existsKey(String bucket, String inKey);", "public boolean isEmpty(String keyName) {\n\t\treturn multistack.get(keyName) == null;\n\t}", "public boolean isEmpty() {\n return map.isEmpty();\n }", "@Test\n public void testCoh3710_keySetContains()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n assertFalse(cache.keySet().contains(Integer.valueOf(1)));\n validateIndex(cache);\n }\n });\n }", "@Override\n\tpublic boolean isEmpty() \n\t{\n\t\treturn this.map.isEmpty();\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn bnetMap.size() == 0;\n\t}", "private static <K, V> boolean isMapEmpty(Map<K, V> aMap) {\n for (V v : aMap.values()) {\n if (v == \"\") {\n return true;\n }\n }\n return false;\n }", "public boolean hasKey() {\n return key_ != null;\n }", "public boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "@Test\n public void testInvalidS3Keys() throws GenieException {\n final String[] invalidKeys = new String[]{ \"\", \" \", \"k[ey\" };\n for (final String invalidKey : invalidKeys) {\n final String path = \"s3://bucket/\" + invalidKey;\n Assert.assertFalse((\"Passed validation: \" + path), this.s3FileTransfer.isValid(path));\n boolean genieException = false;\n try {\n this.s3FileTransfer.getS3Uri(path);\n } catch (GenieBadRequestException e) {\n genieException = true;\n } finally {\n Assert.assertTrue((\"Parsed without error: \" + path), genieException);\n }\n }\n }", "public boolean isEmpty() throws XavaException {\n\t\treturn getMetaMembers().size() == 0;\n\t}", "private static boolean verifyInvalidRegionsHaveNoHVEdges(\n LogManager pLogger, UnmodifiableSMG pSmg) {\n for (SMGObject obj : pSmg.getObjects()) {\n if (pSmg.isObjectValid(obj) || pSmg.isObjectExternallyAllocated(obj)) {\n continue;\n }\n // Verify that the HasValue edge set for this invalid object is empty\n SMGEdgeHasValueFilterByObject filter = SMGEdgeHasValueFilter.objectFilter(obj);\n\n if (!pSmg.getHVEdges(filter).isEmpty()) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: invalid object has a HVEdge\");\n return false;\n }\n }\n\n return true;\n }", "public boolean isEmpty() \n { \n return numberOfEntries == 0;\n }", "public boolean hasEntries(){\n\t\treturn ! errorList.isEmpty();\n\t}", "public void clear() {\r\n // synchronization is not a problem here\r\n // if this code were to be called while someone was getting or setting data\r\n // in the buckets, it would still work\r\n // in the case of someone setting a value in the buckets, then this coming along\r\n // and resetting the buckets-entry to null is fine, because the client still has the data reference\r\n // in the case of someone getting a value from the buckets while this is being reset\r\n // is fine as well because, if they get the data before it's set, they got it\r\n // if they as for it after it gets set to null, that's fine as well it's null and\r\n // that's a normal expected condition\r\n for (int i = 0, tot = buckets.length; i < tot; i++) {\r\n buckets[i] = new AtomicReference<CacheData<K, V>>(null);\r\n }\r\n }", "@Test(expected = IllegalArgumentException.class)\n public void testMultiLookupEmptySpecFails() {\n ctx.bucket().lookupIn(key);\n }", "public boolean\tisEmpty() {\n\t\treturn map.isEmpty();\n\t}", "public boolean isEmpty() {\r\n return this.map.isEmpty();\r\n }", "public void verifyEntrySet() {\n }", "@Override\n public boolean isEmpty() {\n\t/*\n\t * Sum per-segment modCounts to avoid mis-reporting when\n\t * elements are concurrently added and removed in one segment\n\t * while checking another, in which case the table was never\n\t * actually empty at any point. (The sum ensures accuracy up\n\t * through at least 1&lt;&lt;31 per-segment modifications before\n\t * recheck.) Methods size() and containsValue() use similar\n\t * constructions for stability checks.\n\t */\n\tlong sum = 0L;\n\tfinal Segment&lt;K, V&gt;[] segments = this.segments;\n\tfor (int j = 0; j &lt; segments.length; ++j) {\n\t Segment&lt;K, V&gt; seg = segmentAt(segments, j);\n\t if (seg != null) {\n\t\tif (seg.count != 0) {\n\t\t return false;\n\t\t}\n\t\tsum += seg.modCount;\n\t }\n\t}\n\tif (sum != 0L) { // recheck unless no modifications\n\t for (int j = 0; j &lt; segments.length; ++j) {\n\t\tSegment&lt;K, V&gt; seg = segmentAt(segments, j);\n\t\tif (seg != null) {\n\t\t if (seg.count != 0) {\n\t\t\treturn false;\n\t\t }\n\t\t sum -= seg.modCount;\n\t\t}\n\t }\n\t if (sum != 0L) {\n\t\treturn false;\n\t }\n\t}\n\treturn true;\n }", "@Test\r\n\tpublic void testEmptyContents() throws Exception {\n\t\tassertThat(this.basket.getContents().count(), is(0L));\r\n\t}", "public void testInverseClearIsEmpty()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkClearMap(pmf,\r\n HashMap2.class,\r\n HashMap2Item.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap2.class);\r\n clean(HashMap2Item.class);\r\n }\r\n }", "public boolean hasNoParents()\r\n\t{\treturn (this.strongParents.isEmpty()) && (this.weakParents.isEmpty());\t}", "private void validateIndexForKeys(CompactRangeIndex ri) {\n assertEquals(6, ri.getIndexStorage().size());\n CloseableIterator<IndexStoreEntry> itr = null;\n try {\n itr = ri.getIndexStorage().iterator(null);\n while (itr.hasNext()) {\n IndexStoreEntry reEntry = itr.next();\n Object obj = reEntry.getDeserializedRegionKey();\n assertTrue(obj instanceof String);\n assertTrue(idSet.contains(obj));\n }\n } finally {\n if (itr != null) {\n itr.close();\n }\n }\n }", "@Override\r\n\tpublic boolean isempty() {\n\t\treturn count<=0;\r\n\t\t\r\n\t}", "public boolean hasKey() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean checkEmpty(){\n if (history.empty() || historyValues.empty()){\n return true;\n }\n else {\n return false;\n }\n }", "public boolean isEmpty() {\n return this.extMap.isEmpty();\n }", "public void makeEmpty() {\n for (int i = 0; i < buckets.length; i++) {\n buckets[i] = new SList();\n }\n size = 0;\n }", "public boolean isEmpty() {\n return MapSequence.fromMap(files).isEmpty();\n }", "public boolean hasKey() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "@Test\n public void testTableFactoryEmpty() {\n TableController tableController = tableFactory.getTableController();\n Map<Integer, ArrayList<Table>> tableMap = tableController.getTableMap();\n // loop through the map, check that each list is empty\n for (ArrayList<Table> list : tableMap.values()) {\n assertEquals(0, list.size());\n }\n }", "protected <T extends Syncable> boolean bucketsEqualForKey(List<Bucket<T>> buckets, String key){\n List<Bucket> copied = new ArrayList<Bucket>(buckets);\n Bucket leader = copied.remove(0);\n Iterator<Bucket> iterator = copied.iterator();\n try {\n Syncable object = leader.getObject(key); \n while(iterator.hasNext()){\n Syncable other = iterator.next().getObject(key);\n if(!object.getVersion().equals(other.getVersion()) || !object.getUnmodifiedValue().equals(other.getUnmodifiedValue())){\n return false;\n }\n }\n \n } catch (BucketObjectMissingException e) {\n return false;\n }\n\n return true;\n }", "public boolean check_hash() {\n HashSet<E> realSet = new HashSet(this);\n return realSet.size() == this.size();\n }", "public boolean containsNoItems() {\n\t\treturn (this.items.size() == 0);\n\t}", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}", "public void testNormalClearIsEmpty()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkClearMap(pmf,\r\n HashMap1.class,\r\n ContainerItem.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "@Override\n\tpublic boolean isEmpty() throws RemoteException {\n\t\treturn bnetMap.size() == 0;\n\t}", "public boolean checkIsEmpty() {\n return isEmpty(minimumInstances) && isEmpty(maximumInstances) && isEmpty(dependentProfiles);\n }", "@SafeVarargs\n public final MapAssertion<K, V> containsNoKey(final K... expected) {\n checkActualIsNotNull();\n checkArgumentIsNotNull(expected, \"expected\");\n checkArgumentIsNotEmpty(expected.length == 0, \"expected\", true);\n toKeys().containsNone(expected);\n return this;\n }", "public boolean isEmpty() {\r\n return totalGifts == 0;\r\n }", "public void testNormalKeySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkKeySet(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "private static boolean checkForEmpty(Pair<ForStmt, ForStmt> pair) {\n return checkEmptyLists(retrieveForInitialization(pair.getKey()), retrieveForInitialization(pair.getValue())) &&\n checkNotExistenceForCompare(pair.getKey(), pair.getValue()) &&\n checkEmptyLists(retrieveForUpdate(pair.getKey()), retrieveForUpdate(pair.getValue()));\n }", "@Override\n public boolean hasKey() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "@Test\n public void testGetCountEmpty() {\n assertEquals(fixture.getCounts(), Collections.emptyMap());\n }", "public boolean validProofOfWork(int numberOfZeroPrefixesRequired) {\n for (int i = 0; i < numberOfZeroPrefixesRequired; i++){\n if(this.hash.charAt(i) != '0'){\n return false;\n }\n }\n return true;\n }", "public boolean hasKey() {\n return keyBuilder_ != null || key_ != null;\n }", "@Override\n public boolean hasKey() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "final boolean hasKey(final E key) {\r\n for (int i=0;i<kcount;i++) {\r\n if (equal(key, (E)k[i])) return true;\r\n }\r\n return false;\r\n }", "public boolean isAListEmpty(){\r\n\t\tif((programChairs.size() > 0) && (committeeMembers.size() > 0)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean safeToClose(){\n if(hashMapOfAllAccts.isEmpty()){\n return true;\n }\n return false;\n }", "@Test\n\tvoid testEdgesNotNull() {\n\t\tmap.put(\"Boston\", new LinkedHashSet<String>());\n\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\n\t}", "@SuppressWarnings(\"unchecked\")\n @Test\n void shouldThrowExceptionWhenGivenEntriesIsEmpty() {\n DefaultValidator<Target> validator = new DefaultValidator<>(Target.class);\n assertThrows(IllegalArgumentException.class, () -> validator.ruleForMap(Target::getMap).doesNotContain(new MapEntry[0]));\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn vertices.isEmpty();\r\n\t}", "private static boolean hasRequiredOptionsMissing(Map<String, String> options)\n { \n for (String option : requiredOptions) {\n if (!options.containsKey(option)) {\n return true;\n }\n }\n \n return false;\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn count == 0;\r\n\t}", "@Override\n public Optional<Boolean> createBucket(Bucket bucket) {\n return Optional.absent();\n }", "public MapAssertion<K, V> containsNoKey(final Iterable<K> expected) {\n checkActualIsNotNull();\n checkArgumentIsNotNull(expected, \"expected\");\n List<K> expectedList = convertValue(expected, null, List.class);\n checkArgumentIsNotEmpty(expectedList.isEmpty(), \"expected\", true);\n toKeys().containsNone(expectedList);\n return this;\n }", "public boolean isEmpty() {\n\t\treturn classCoverageLookups.isEmpty();\n\t}", "@Requires(\"c != null\")\n protected static boolean cigarHasZeroSizeElement(final Cigar c) {\n for (final CigarElement ce : c.getCigarElements()) {\n if (ce.getLength() == 0)\n return true;\n }\n return false;\n }", "boolean containsKey(Object key) throws NullPointerException;", "public boolean underfull() {\n\t\treturn lastindex < minkeys(); // ptrs number: Math.ceil(degree / 2.0) ~ n\n\t}", "@Override\n public boolean isEmpty() {\n return getSnapshot() == null;\n }", "public boolean isEmpty() {\n return indexedEvents.isEmpty();\n }", "private void skipStaleEntries()\n {\n while (this.index < keys.size() && !HashBijectiveMap.this.containsKey(keys.get(this.index)))\n this.index++;\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn topIndex < 0;\r\n\t}", "public boolean isEmpty() { return count == 0; }", "@Override\n\tpublic boolean containsKey(Object arg0) {\n\t\treturn false;\n\t}", "@Test(timeout=180000)\n public void testQuarantineMissingRegionDir() throws Exception {\n TableName table = TableName.valueOf(name.getMethodName());\n // inject a fault in the hfcc created.\n final FileSystem fs = FileSystem.get(conf);\n HBaseFsck hbck = new HBaseFsck(conf, hbfsckExecutorService) {\n @Override\n public HFileCorruptionChecker createHFileCorruptionChecker(boolean sidelineCorruptHFiles)\n throws IOException {\n return new HFileCorruptionChecker(conf, executor, sidelineCorruptHFiles) {\n AtomicBoolean attemptedFirstHFile = new AtomicBoolean(false);\n @Override\n protected void checkRegionDir(Path p) throws IOException {\n if (attemptedFirstHFile.compareAndSet(false, true)) {\n assertTrue(fs.delete(p, true)); // make sure delete happened.\n }\n super.checkRegionDir(p);\n }\n };\n }\n };\n doQuarantineTest(table, hbck, 3, 0, 0, 0, 1);\n hbck.close();\n }", "public void clear()\n {\n this.buckets = new Object[this.capacity];\n this.size = 0;\n }", "@Override\n public void checkDone() throws IllegalStateException {\n if (NO_KEYS.equals(range)\n || (!range.getEndKey().isEmpty() && range.getStartKey().equals(range.getEndKey()))) {\n return;\n }\n\n checkState(\n lastAttemptedKey != null,\n \"Key range is non-empty %s and no keys have been attempted.\",\n range);\n\n // Return if the last attempted key was the empty key representing the end of range for\n // all ranges.\n if (lastAttemptedKey.isEmpty()) {\n return;\n }\n\n // The lastAttemptedKey is the last key of current restriction.\n if (!range.getEndKey().isEmpty() && next(lastAttemptedKey).compareTo(range.getEndKey()) >= 0) {\n return;\n }\n\n // If the last attempted key was not at or beyond the end of the range then throw.\n if (range.getEndKey().isEmpty() || range.getEndKey().compareTo(lastAttemptedKey) > 0) {\n ByteKey nextKey = next(lastAttemptedKey);\n throw new IllegalStateException(\n String.format(\n \"Last attempted key was %s in range %s, claiming work in [%s, %s) was not attempted\",\n lastAttemptedKey, range, nextKey, range.getEndKey()));\n }\n }", "public boolean isDecodable() {\n return buckets.size() >= k;\n }", "public static synchronized boolean isEmpty() {\n\t\treturn ClassRegistry.dictionary.isEmpty();\n\t}", "private void assertNoStaleDataExistInNearCache(IMap<Integer, Integer> map) {\n Map<Integer, Integer> fromNearCache = getAllEntries(map);\n\n // 2. clear Near Cache\n ((NearCachedMapProxyImpl) map).getNearCache().clear();\n\n // 3. get all values when Near Cache is empty, these requests\n // will go directly to underlying IMap because Near Cache is empty\n Map<Integer, Integer> fromIMap = getAllEntries(map);\n\n for (int i = 0; i < ENTRY_COUNT; i++) {\n assertEquals(fromIMap.get(i), fromNearCache.get(i));\n }\n }", "private boolean isEmpty() { return getSize() == 0; }", "public boolean hasKeyComponents(){\n\n // Event is valid if it has an event name date\n if(event == null || date == 0 || startTime == null || endTime == null){\n return false;\n }\n return true;\n }" ]
[ "0.72115374", "0.614234", "0.612891", "0.6123454", "0.5982889", "0.5981522", "0.58725935", "0.5832814", "0.5822863", "0.5791275", "0.5766736", "0.5748957", "0.5679341", "0.56665844", "0.5647814", "0.56390667", "0.55950665", "0.5571225", "0.5568435", "0.5504325", "0.5486157", "0.547986", "0.54781073", "0.54694784", "0.5459781", "0.54413915", "0.5430256", "0.54102135", "0.5409741", "0.5407464", "0.5388356", "0.5370945", "0.53630936", "0.5346068", "0.53458124", "0.53092355", "0.52946347", "0.5287255", "0.5282036", "0.5280805", "0.5278806", "0.5276041", "0.52613544", "0.52594256", "0.52587575", "0.5258591", "0.5251711", "0.5249307", "0.52407837", "0.52401936", "0.5237931", "0.5234292", "0.5221217", "0.52206373", "0.5210889", "0.52104044", "0.52104044", "0.52104044", "0.52104044", "0.52104044", "0.51992774", "0.519912", "0.51961356", "0.5189513", "0.51890194", "0.51850176", "0.5182936", "0.5180748", "0.5180613", "0.5177217", "0.51760745", "0.5157017", "0.51555353", "0.5151665", "0.5141863", "0.5140044", "0.5130519", "0.51183146", "0.5108408", "0.5098536", "0.50915545", "0.50872076", "0.5083785", "0.50790364", "0.5054873", "0.5054698", "0.5048981", "0.5047674", "0.50474", "0.50452983", "0.5037426", "0.5035569", "0.5027902", "0.50206125", "0.50205636", "0.5019256", "0.50181663", "0.5017281", "0.5016885", "0.5012685", "0.50070846" ]
0.0
-1
Returns a set of all the keys contained in buckets.
@Override public Set<K> keySet() { Set<K> keySet = new HashSet<K>(); for (Object o : buckets) { Bucket b = (Bucket) o; keySet.addAll(b.keySet()); } return keySet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<K> keySet() {\n Set<K> keys = new HashSet<>();\n if (bucket.length != 0) {\n for (int i = 0; i < bucket.length; i++) {\n keys.add(bucket[i].getKey());\n }\n }\n return keys;\n }", "Set<K> keys();", "Set<String> getKeys();", "public KeySet getKeys();", "Set<K> keySet();", "@Override\n public Set<K> keySet() {\n if (isEmpty()) return new HashSet<K>();\n return keys(min(), max());\n }", "public Set<String> keySet() {\n return map.keySet();\n }", "@Override\n public Set<K> keySet() {\n Set<K> keySet = new HashSet<K>(size());\n for (LinkedList<Entry<K,V>> list : table) {\n for (Entry<K,V> entry : list) {\n if (entry != null) {\n keySet.add(entry.getKey());\n }\n }\n }\n return keySet;\n }", "@Override\r\n public Set<K> getKeySet() throws IOException\r\n {\r\n final HashSet<K> keys = new HashSet<>();\r\n\r\n storageLock.readLock().lock();\r\n\r\n try\r\n {\r\n keys.addAll(this.keyHash.keySet());\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n return keys;\r\n }", "public Set<K> keySet() {\n return map.keySet();\n }", "public Set<K> keySet() {\r\n \treturn map.keySet();\r\n }", "public Set<String> keySet() {\r\n return keys.keySet();\r\n }", "public Set<v> getKeys(v value) {\n\t\tSet<v> resultSet = new HashSet<v>();\n\t\tfor (int i = 0; i < buckets.length; i++) {\n\t\t\tNode<k,v> curr = buckets[i];\n\t\t\t\n\t\t\twhile (curr != null) {\n\t\t\t\tif (curr.getValue().equals(value))\n\t\t\t\t\tresultSet.add((v) curr.getKey());\n\t\t\t\tcurr = curr.getNext();\n\t\t\t}\n\t\t}\n\t\treturn resultSet;\n\t}", "public Iterable<Key> keys();", "public Iterable<Key> keys();", "public Set keySet() {\n return map.keySet();\n }", "@Override\n\tpublic Set<K> keySet() {\n\t\tArrayList<K> claves = new ArrayList<K>();\n\t\tIterator it = tabla.iterator();\n\t\tint i = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tIterator it2 = tabla.get(i).keySet().iterator();\n\t\t\tit.next();\n\t\t\tint j = 0;\n\t\t\twhile (it2.hasNext()) {\n\t\t\t\tit2.next();\n\t\t\t\tclaves.add(tabla.get(i).keySet().get(j));\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn new HashSet<K>(claves);\n\t}", "public K[] keySet() {\n MyStack<K> result = new MyStack<>();\n\n for (Object entry : this.table) {\n if (entry != null) {\n Entry<K, V> current = (Entry<K, V>) entry;\n\n while (current.hasNext()) {\n result.push(current.getKey());\n current = current.getNext();\n }\n result.push(current.getKey());\n }\n }\n return result.toArray();\n }", "public Set<String> keySet() {\n\t\t\treturn new HashSet<String>( mMap.keySet() );\n\t\t}", "@Override\n\tpublic Set<K> keySet() {\n\t\treturn keys;\n\t}", "@Override\n public Set<K> keySet() {\n return keys;\n }", "public Iterable<K> keys();", "public Set<K> keySet() {\r\n\t\t\tSet<K> keySet = new HashSet<K>();\r\n\t\t\tListNode current = header;\r\n\t\t\twhile (current != null) {\r\n\t\t\t\tkeySet.add(current.key);\r\n\t\t\t\tcurrent = current.next;\r\n\t\t\t}\r\n\t\t\treturn keySet;\r\n }", "public int[] keySet() {\n objectCounter++;\n int[] keys = new int[contents];\n int cnt = 0;\n MapElement me = null;\n\n for (int i = 0; i < capacity; i++) {\n if (map[i] != null) {\n me = map[i];\n while (null != me) {\n keys[cnt++] = me.getKey();\n me = me.getNext();\n }\n }\n }\n return keys;\n }", "Lista<K> keySet();", "public Iterable<K> keys() {\n Queue<K> q = new Queue<>();\n inOrder(root, q);\n return q;\n }", "public Set<String> keySet() {\n return index.keySet();\n }", "public Set<String> keySet()\n\t{\n\t\tverifyParseState();\n\t\t\n\t\treturn values.keySet();\n\t}", "public ArrayList<WordCode<K, V>> entrySet() {\n\t\tArrayList<WordCode<K, V>> entrySet = new ArrayList<>();\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tfor (WordCode<K, V> wc : ll) {\n\t\t\t\tentrySet.add(wc);\n\t\t\t}\n\t\t}\n\t\treturn entrySet;\n\t}", "public Set<Identifier> keySet() {\n return Collections.unmodifiableSet(container.keySet());\n }", "HSet keySet();", "public Set<String> getKeys() {\n return Collections.unmodifiableSet(data.keySet());\n }", "@Override\n\tpublic Collection<Key> keys() {\n\t\tCollection<Key> c = new ArrayList<Key>();\n\t\tif (!isEmpty()) {\n\t\t\tFork<Key, Value> f = (Fork<Key,Value>) bst;\n\t\t\tEntry<Key, Value> e = new Entry<>(f.getKey().get(), f.getValue().get());\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tEntry<Key, Value>[] a = (Entry<Key, Value>[]) Array.newInstance(e.getClass(), size());\n\t\t\tbst.saveInOrder(a);\n\t\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t\tc.add(a[i].getKey());\n\t\t\t}\n\t\t}\n\t\treturn c;\n\t}", "public Iterable<Key> keys() {\n Queue<Key> queue = new Queue<Key>();\n for (int i = 0; i < m; i++) {\n for (Key key : st[i].keys())\n queue.enqueue(key);\n }\n return queue;\n }", "public Set<String> keysOfMap() {\n Map<String, String> tempMap = createSimpleMap(\"Elevensies\",\"Grapes\");\n\t\tSet<String> keys = hashMap.keySet();\n\t\treturn tempMap.keySet();\n\t}", "@Override\n public Set<K> keySet() {\n Set<K> keyset = new TreeSet<>();\n Inorder(root, keyset);\n return keyset;\n }", "public Iterable<K> keys()\n {\n return new Iterable<K>()\n {\n public Iterator<K> iterator()\n {\n return ChainedHashTable.this.keysIterator();\n } // iterator()\n }; // new Iterable<K>\n }", "public Iterable<Key> Keys()\n\t{\n\t\tQueue<Key> q=new Queue<>();\n\t\tInorder(root,q);\n\t\treturn q;\n\t}", "public Set keySet() {\n\treturn table.keySet();\n }", "private ISet<String> getKeySet(IList<String> words) {\n\t\tISet<String> keySet = new ChainedHashSet<String>();\n\t\tfor (String word: words) {\n\t\t\tkeySet.add(word);\n\t\t}\n\t\treturn keySet;\n }", "public Set<String> keySet() {\n return this.index.keySet();\n }", "public Set keyNames() {\n return new LinkedHashSet<>( asList( idName() ) );\n }", "public List<String> getKeys()\n\t{\n\t\treturn new ArrayList<>(pairs.keySet());\n\t}", "public Iterable<Key> keys() {\n Queue<Key> queue = new Queue<Key>();\n for (Node temp = first; temp != null; temp = temp.next)\n queue.enqueue(temp.key);\n return queue;\n }", "public List<K> keys();", "public Iterator<K> keys();", "public Iterator<K> keys();", "@Override\n\tpublic HashSet<K> getAllKeys() {\n\t\treturn null;\n\t}", "public Set<K> getKeySet() {\n return associationCountMap.keySet();\n }", "public Iterable keys() {\n Queue K = new Queue();\n for(int i = 0; i < size; i++) {\n K.enqueue(keys[i]);\n }\n return K;\n }", "@Override\n public Set<K> keySet() {\n keySet(root);\n return KeySet;\n }", "public static synchronized Set<Class<?>> keySet() {\n\t\treturn ClassRegistry.dictionary.keySet();\n\t}", "public Set<K> keySet() {\n\t\treturn new KeySet();\n\t}", "public ArrayList<K> keySet() {\n\t\t\treturn claves;\n\t\t}", "public Set<K> keySet() {\n\t\treturn adjLists.keySet();\n\t}", "public static Set getKeySet(Hashtable table) {\n\t\treturn (table == null) ? Collections.EMPTY_SET : table.keySet();\n\t}", "public Set<K> keys() {\n return this.bst.toSortedList().toset().map(i -> i.left);\n }", "public Set<String> keySet() {\n return _properties.keySet();\n }", "@Override\n\tpublic Set<String> keySet() {\n\t\treturn null;\n\t}", "List<String> getKeys();", "public Set<String> getClassKeys();", "public List<K> keys()\r\n\t{\r\n\t\tList<K> keys = new ArrayList<K>();\r\n\t\t\r\n\t\tfor(Entry element : data)\r\n\t\t{\r\n\t\t\tkeys.add(element.key);\r\n\t\t}\r\n\t\t\r\n\t\t//keys.sort(new keyComparator()); //not necessarily needed since I know my BST iterator\r\n\t\t\t\t\t\t\t\t\t\t //iterates through in an inOrder fashion.\r\n\t\t\r\n\t\treturn keys;\r\n\t}", "@Override\n public Set<K> keySet() {\n Set<K> ks = new HashSet<>();\n keySetHelper(root, ks);\n return ks;\n// throw new UnsupportedOperationException(\"Unsupported operation, sorry!\");\n }", "@Override\n public List<K> keys() {\n List<K> keys = new AList<>();\n for(int i =0; i < capacity; i++){\n Entry n = (Entry) table[i];\n if(n != null && !n.isRemoved())\n keys.add(n.getKey());\n }\n assert keys.size() == size;\n return keys;\n }", "default Set<String> getSubkeys() {\n return Collections.emptySet();\n }", "public Set<E> keySet() {\n\t\treturn null;\r\n\t}", "public String[] getKeys() {\n Set keySet;\n if( defaultValues != null ) {\n keySet = defaultValues.keySet();\n } else {\n keySet = values.keySet();\n }\n return ( String[] )keySet.toArray( new String[ keySet.size() ] );\n }", "public abstract List<String> getAllKeys();", "public Iterator<Key> keys() ;", "public List<String> getKeys(){\n return Collections.unmodifiableList(keys);\n }", "private Set<String> getKeys() {\n return bookDB.keySet();\n }", "@Override\n\tpublic Set<K> keySet() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Set<K> keySet() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Set<K> keySet() {\n\t\treturn null;\n\t}", "public Iterator<K> keys(){\n\treturn new Iterator<K>() {\n\t int iteratorbucket = 0;\n\t Iterator<MyEntry> itr = table[iteratorbucket].iterator();\n\t int nextCount = 0;\n\n\t public boolean hasNext() {\n\t // can just check nextCount and size\n\t if(nextCount>=size) {\n\t \treturn false;\n\t }\n\t return true;\n\t }\n\n\t public K next() {\n\t // if my hasNext() is false, I should throw a NoSuchElementException\n\t if(hasNext()==false) {\n\t \tthrow new NoSuchElementException();\n\t }\n\t // while itr.hasNext() is false, increment bucket and get the next iterator\n\t while(itr.hasNext()==false) {\n\t \titeratorbucket++;\n\t \titr=table[iteratorbucket].iterator();\n\t }\n\t // now increment nextCount and return the key from the item itr.next() returns\n\t \tnextCount++;\n\t \treturn itr.next().key;\n\t \n\t }\n\n\t public void remove() {\n\t // just ask itr to remove, but I need to update my size and nextCount\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }\n\t };\n }", "public Set<K> keySet() {\r\n if (keySet == null) {\r\n keySet = new AbstractSet<K>() {\r\n\r\n @Override\r\n public boolean contains(Object object) {\r\n return containsKey((K) object);\r\n }\r\n\r\n @Override\r\n public int size() {\r\n return MRUCache.this.size();\r\n }\r\n\r\n @Override\r\n public void clear() {\r\n MRUCache.this.clear();\r\n }\r\n\r\n @Override\r\n public boolean remove(Object key) {\r\n CacheData<K, V> cacheData = MRUCache.this.removeEntry(key);\r\n return cacheData != null;\r\n }\r\n\r\n @Override\r\n public Iterator<K> iterator() {\r\n return new KeyIterator<K, V>(MRUCache.this);\r\n }\r\n };\r\n }\r\n return keySet;\r\n }", "public Collection getKeys() throws CacheException {\n return cache.getKeys();\n }", "public Set<String> keySet()\r\n/* 421: */ {\r\n/* 422:584 */ return this.headers.keySet();\r\n/* 423: */ }", "public K[] getKeys() {\n return keys.clone();\n }", "public Long[] allKeys() {\n\t\tLong[] result = new Long[super.getSize()];\n int ctr = 0;\n for(Entry<C> each : sequence) {\n result[ctr] = each.getKey();\n ctr++;\n }\n insertionSort(result);\n return result;\n }", "@Override\n\tpublic Set<Entry<K, V>> entrySet() {\n\t\tSet<Entry<K, V>> entrySet = map.entrySet();\n\t\tListSet<Entry<K, V>> listSet = new ListSet<Map.Entry<K,V>>();\n\t\tfor (K key : keys) {\n\t\t\t\n\t\t\tfor (Entry<K, V> entry : entrySet) {\n\t\t\t\tif (entry.getKey().equals(key)) {\n\t\t\t\t\tlistSet.add(entry);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn listSet;\n\t}", "public String[] fetchAllKeys();", "@Override\n public Set keySet() {\n OmaLista palautettava = new OmaLista();\n\n for (int i = 0; i < this.values.length; i++) {\n if (this.values[i] != null) {\n for (int z = 0; z < this.values[i].size(); z++) {\n palautettava.add(this.values[i].value(z).getKey());\n }\n }\n }\n\n return palautettava;\n }", "public List<String> keys()\n {\n return new ArrayList<String>(keys);\n }", "public Iterable<String> keys() { return keysWithPrefix(\"\"); }", "public native IterableIterator<K> keys();", "public Set<Object> getKeysByServerName(String name) {\n Server server = serverMap.get(name);\n if(server == null) {\n return null;\n }\n Set<Object> keys = new HashSet<Object>();\n Set<Integer> nodes = server.getNodes();\n for(Integer nodeHash : nodes) {\n keys.addAll(nodesMap.get(nodeHash).getEntrySet());\n }\n return keys;\n }", "StringList keys();", "public Set<String> getKeyList() throws IOException {\n if (dataCollector.getCollectorType().equals(DataCollector.COLLECTOR_TYPE_LIST)) {\n return dataCollector.getResult().getComparatorList().keySet();\n } else {\n throw new IOException(\"only allowed for \" + DataCollector.COLLECTOR_TYPE_LIST);\n }\n }", "public UnsortedList<Integer> listOfKeys() {\n\t\tUnsortedList<Integer> list \n\t\t= new UnsortedList<Integer>(new IntegerComparator());\n\t\treturn listOfKeys(list);\n\t}", "public IIterator getKeys()\r\n {\r\n return new VectorIterator(m_keys);\r\n }", "public Iterable<String> keys()\r\n { return keysWithPrefix(\"\"); }", "Listof<K> sortedKeys();", "public Set<String> loadAllURLKeys()\n\t{\n\t\tEntityCursor<URLEntity> results = this.env.getEntityStore().getPrimaryIndex(String.class, URLEntity.class).entities();\n\t\tSet<String> urlKeys = Sets.newHashSet();\n\t\tfor (URLEntity entity : results)\n\t\t{\n\t\t\turlKeys.add(entity.getKey());\n\t\t}\n\t\tresults.close();\n\t\treturn urlKeys;\n\t}", "@Override\n\tpublic List<? extends MyHashMap.Bucket<K, V>> getBuckets() {\n\t\treturn (ArrayList<? extends MyHashMap.Bucket<K, V>>) b;\n\t}", "public ArrayList getKeys() {\r\n return this.keys;\r\n }", "public Set<String> getKeys() {\n\t\t\treturn properties.keySet();\n\t\t}", "public String[] getKeys() {\n\t\treturn _keys;\n\t}", "public Vector keys() {\n Vector<K> temp = new Vector<>(3);\n for (int i=0;i<this.count;i++) {\n DictionaryPair p = list.get(i);//(DictionaryPair) data.get(i);\n temp.addLast(p.getKey());\n }\n return temp;\n }", "public ListVS<T> getKeys() {\n return this.keys.getElements();\n }" ]
[ "0.8344881", "0.74599195", "0.71700686", "0.7136291", "0.7047054", "0.702282", "0.70150465", "0.7007429", "0.69907826", "0.69537604", "0.6921017", "0.6910448", "0.68634176", "0.68452793", "0.68452793", "0.6833504", "0.68324643", "0.6832357", "0.68309826", "0.6788847", "0.6785954", "0.6760135", "0.66387653", "0.6631636", "0.66221315", "0.6612183", "0.66040826", "0.6590453", "0.6589934", "0.65833634", "0.6580567", "0.6572872", "0.6521975", "0.65147394", "0.6505731", "0.6455561", "0.6446709", "0.64390373", "0.64350605", "0.64350045", "0.6431877", "0.64156896", "0.6411457", "0.64026386", "0.63842064", "0.6352916", "0.6352916", "0.6344037", "0.6342546", "0.6296004", "0.62883747", "0.6284036", "0.6283238", "0.62762153", "0.62508464", "0.62353176", "0.62328774", "0.62264216", "0.622467", "0.62199616", "0.6213571", "0.6179854", "0.61697686", "0.6163842", "0.6159748", "0.61592907", "0.6155326", "0.6109935", "0.6100749", "0.60863763", "0.6079332", "0.6078343", "0.6078343", "0.6078343", "0.6072262", "0.6072077", "0.6061821", "0.6036771", "0.60059863", "0.59920764", "0.5991921", "0.5987791", "0.59813476", "0.5960338", "0.5959467", "0.59426457", "0.5936265", "0.5914708", "0.5912699", "0.5907315", "0.58963126", "0.5888892", "0.58848125", "0.5882292", "0.58623093", "0.5854265", "0.5851449", "0.58496076", "0.5840742", "0.5835897" ]
0.8550902
0
Adds a key and value to the appropriate bucket.
@Override public V put(K key, V value) { int index = key.hashCode() % numBuckets; return ((Bucket) buckets[index]).put(key, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void add(K key, V value);", "void addEntry(K key, V value);", "public void add(Object key, Object value){\n\t\tint bucketLoc = key.hashCode() % _numBuckets;\r\n\t\tif(_locate(key) == null){\r\n\t\t\tNode newNode = new Node(key,value,_buckets[bucketLoc]);\r\n\t\t\t_buckets[bucketLoc] = newNode;\r\n\t\t\t_count++;\r\n\t\t\t_loadFactor = (double) _count / (double) _numBuckets;\r\n\t\t\tif(_loadFactor > _maxLoadFactor){\r\n\t\t\t\t_increaseTableSize();\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t_buckets[bucketLoc]._value = value;\r\n\t\t}\r\n\t}", "public V add(K key, V value);", "void add(KeyType key, ValueType value);", "void add(String key);", "public void put(Object key, Object value) {\n\t\tint index = key.hashCode() % SLOTS;\n\t\t// check if key is already present in that slot/bucket.\n\t\tfor(Pair p:table[index]) {\n\t\t\tif(key.equals(p.key)) {\n\t\t\t\tp.value = value; // overwrite value if key already present.\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// if not present, add key-value pair in that slot/bucket.\n\t\tPair pair = new Pair(key, value);\n\t\ttable[index].add(pair);\n\t}", "public void add(Key key, Value value) {\n\n\t\tif (2 * this.size > this.capacity) {\n\t\t\tresize(2 * this.capacity);\n\t\t}\n\n\t\t// Add this item to the hash table in the expected location.\n\n\t\tint index = locate(key);\n\t\tthis.keys[index] = key;\n\t\tthis.values[index] = value;\n\t\tthis.size++;\n\t}", "public boolean add(K key, V value);", "void addEntry(String key, Object value) {\n this.storageInputMap.put(key, value);\n }", "public void add(String k, String v) throws RemoteException, Error;", "boolean add(Object key, Object value);", "public void addToValueAtKey(String aKey, String aValue) {\n if (cars.containsKey(aKey)) {\n cars.get(aKey).add(aValue);\n }\n }", "public void addKeyValue (String key, String value){\r\n\t\tcodebook.put(key, value);\r\n\t}", "protected abstract void put(K key, V value);", "public void put(K key, V value) {\n int hash = getHash(key.hashCode());\n Entry<K, V> existing = buckets[hash];\n Entry<K, V> entry = new Entry<>(key, value);\n\n if (existing == null) {\n buckets[hash] = entry;\n } else { // using separating chaining collision resolution. Another way is open addressing, resizing the array to reducing collision.\n while(existing.next != null) {\n if (existing.key.equals(key)) {\n existing.value = value;\n return;\n }\n existing = existing.next;\n }\n if (existing.key.equals(key)) {\n existing.value = value;\n } else {\n existing.next = entry;\n }\n }\n }", "public Value put(Key key, Value thing) ;", "public void add(K key,V value) {\n DictionaryPair pair = new DictionaryPair(key,value);\n int index = findPosition(key);\n\n if (index!=DsConst.NOT_FOUND) {\n list.set(index,pair);\n } else {\n list.addLast(pair);\n this.count++;\n }\n }", "public abstract V put(K key, V value);", "void put(K key, V value);", "void put(K key, V value);", "public void putKV(String key, String value) throws Exception;", "void put(String key, Object value);", "void put(int partitionID, String key, String value);", "void put(String key, String value) throws StorageException, ValidationException, KeyValueStoreException;", "@Override\n public V put(K key, V value) {\n\n \tV tempValue = get(key);\n \t\n \tLinkedList<Entry> tempBucket = chooseBucket(key);\n \t\n \tif(tempValue != null) {\n \t\tfor(int i=0;i<tempBucket.size();i++) {\n\t \t\tEntry tempEntry = tempBucket.get(i);\n\t \t\t\n\t \t\tif(tempEntry.getKey() == key) {\n\t \t\t\tV returnValue = tempEntry.getValue();\n\t \t\t\ttempEntry.setValue(value);\n\t \t\t\treturn returnValue;\n\t \t\t}\n\t \t}\n \t} else {\n \t\tsize ++;\n \t\ttempBucket.add(new Entry(key, value));\n \t}\n \t\n \tif(size > buckets.length*ALPHA) {\n \t\trehash(GROWTH_FACTOR);\n \t}\n \t\n return tempValue;\n }", "public void put(Key key, Value val);", "Object put(Object key, Object value);", "@Override\n public void add(K key, V value) {\n if(containsKey(key)){\n List<V> v = getValues(key);\n if(v.contains(value)){return;}\n }\n internalGetValue(key).add(value);\n }", "@Override\n\tpublic V add(K key, V value) {\n\t\tcheckNullKey(key);\n\t\tcheckNullValue(value);\n\t\twriteLock.lock();\n\t\ttry {\n\t\t\treturn cache.put(key, value);\n\t\t} finally {\n\t\t\twriteLock.unlock();\n\t\t}\n\t}", "public V put(K key,V value) {\n\tif(key==null||value==null) {\n\t throw new NullPointerException();\n\t}\n\telse {\n\tMyEntry addvalue=new MyEntry();\n\taddvalue.key=key;\n\taddvalue.value=value;\n\t\n\tint bucket=Math.abs(key.hashCode()%capacity);\n\t\n\t\n\t//what happens if the same key already exists\n\tfor(MyEntry i:table[bucket]) { \n\t if(i.key==key) {\n\t\tV previousvalue=i.value;\n\t\ttable[bucket].add(addvalue);\n\t\tsize++;\n\t\tif(((float)size/(float)capacity)>loadFactor) {\n\t\t resize();\n\t\t}\n\t\treturn previousvalue;\n\t }\n\t}\n\t\n\t//what happens if the key does not exist\n\ttable[bucket].add(addvalue);\n\tsize++;\n\tif(((float)size/(float)capacity)>loadFactor) {\n\t resize();\n\t}\n\treturn null;\n\t}\n }", "public void add(K key, V value) {\r\n if(this.table.containsKey(key)){\r\n BloomFilterUtil bf = (BloomFilterUtil)table.get(key).getHash();\r\n bf.put(value);\r\n Node<V> node = (Node<V>) table.get(key);\r\n node.getValues().add(value);\r\n }else {\r\n BloomFilterUtil bf = BloomFilterUtil.create(funnel,\r\n expectedInsertions,\r\n fpp,\r\n (BloomFilterUtil.Strategy) hashStrategy);\r\n bf.put(value);\r\n Node<V> node = new Node<V>(value, bf);\r\n table.put(key, node);\r\n }\r\n }", "@Override\r\n\tpublic void addKeyValuePair(String key, String value) {\r\n\t\t\r\n\t\t// if key is empty\r\n if (key == null || key.equals(\" \") || value == null || value.equals(\" \")) {\r\n System.out.println(\"Key cannot be Empty\");\r\n return;\r\n }\r\n // create new Node to be inserted\r\n Node newNode = new Node(new Data(key, value));\r\n // call recursive function traverse from root to correct Position to add newNode\r\n this.root = insertRecursively(this.root, newNode);\r\n return;\r\n\t\t\r\n\t}", "@Override\n public void Add(String key, Integer value) throws InvalidKeyException {\n if(Contains(key))\n throw new InvalidKeyException(\"Key already exists\");\n\n // Adding the new key/value node\n if(head == null)\n head = new Node(key, value);\n else{\n Node new_node = new Node(key, value);\n new_node.next = head;\n head = new_node;\n }\n\n // increment count\n count++;\n }", "V put(K key, V value);", "public V put(K key, V value) {\n if (null == key) {\n return isertNullKey(key, value);\n } else {\n // inserting other keys\n int location = hashFunction(key.hashCode());\n if (location / capacity >= loadFactor) {\n resize();\n }\n MyEntry<K, V> entry = null;\n entry = bucket[location];\n //if a value exists with same key, we are not overriding that value, just returning the same,\n //in hashMap they actually override the new value\n if (entry != null && key == entry.getKey()) {\n return entry.getValue();\n } else {\n MyEntry ent = new MyEntry();\n ent.setKey(key);\n ent.setValue(value);\n bucket[location] = ent;\n return value;\n }\n\n }\n }", "public void add(K key, V value) {\n Node<K,V> node = root, parent = null;\n int cmp = -1;\n\n while (node != null) {\n cmp = key.compareTo(node.key);\n parent = node;\n if (cmp < 0) {\n node = node.left;\n } else if (cmp > 0) {\n node = node.right;\n } else {\n node.value = value;\n return;\n }\n }\n\n Node<K,V> new_node = new Node<>(key, value);\n if (parent == null) {\n root = new_node;\n } else if (cmp < 0) {\n parent.left = new_node;\n } else {\n parent.right = new_node;\n }\n }", "public int add(String key, E value) {\r\n int index = items.size();\r\n keys.put(key, index);\r\n items.add(value);\r\n return index;\r\n }", "V put(final K key, final V value);", "void putValue(String key, Object data);", "private void put(K key, V value) {\n\t\t\tif (key == null || value == null)\n\t\t\t\treturn;\n\t\t\telse if (keySet.contains(key)) {\n\t\t\t\tvalueSet.set(keySet.indexOf(key), value);\n\t\t\t} else {\n\t\t\t\tkeySet.add(key);\n\t\t\t\tvalueSet.add(keySet.indexOf(key), value);\n\t\t\t\tsize++;\n\t\t\t}\n\t\t}", "public V add(K key, V value)\r\n\t{\r\n\t\tint slot = findSlot(key, false); // check if key already exists\r\n\t\tV oldVal = null;\r\n\t\t\r\n\t\tif (slot >= 0)\r\n\t\t{\r\n\t\t\tMapEntry<K, V> e = table[slot];\r\n\t\t\toldVal = e.setValue(value);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tslot = findSlot(key, true); // find empty slot for adding\r\n\t\t\ttable[slot] = new MapEntry<>(key, value);\r\n\t\t\tcount++;\r\n\t\t\tif (count >= maxCount)\r\n\t\t\t{\r\n\t\t\t\trehash();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn oldVal;\r\n\t}", "public void put(Key key,Value value){\n\t\troot = insert(root,key,value);\n\t}", "public void addField(String key, Object value) {\n\t\tput(key, value);\n\t}", "public V add(K key, V value)\n { \n checkInitialization();\n if ((key == null) || (value == null))\n throw new IllegalArgumentException();\n else\n { \n V result = null; \n int keyIndex = locateIndex(key); \n if ((keyIndex < numberOfEntries) && \n key.equals(dictionary[keyIndex].getKey()))\n {\n // Key found; return and replace entry's value\n result = dictionary[keyIndex].getValue(); // Get old value\n dictionary[keyIndex].setValue(value); // Replace value \n }\n else // Key not found; add new entry to dictionary\n { \n makeRoom(keyIndex);\n dictionary[keyIndex] = new Entry(key, value);\n numberOfEntries++;\n ensureCapacity(); // Ensure enough room for next add\n } // end if \n return result;\n } // end if\n }", "public void put(String key, T value);", "public void put(K key, V value) {\n int keyBucket = hash(key);\n \n HashMapEntry<K, V> temp = table[keyBucket];\n while (temp != null) {\n if ((temp.key == null && key == null) \n || (temp.key != null && temp.key.equals(key))) {\n temp.value = value;\n return;\n }\n temp = temp.next;\n }\n \n table[keyBucket] = new HashMapEntry<K, V>(key, value, table[keyBucket]);\n size++;\n }", "@SuppressWarnings(\"unchecked\")\n public T put(int key, T value) {\n resizeTables(count);\n int bucketIndex = findBucketIndex(key, true /* returnLast */);\n\n if(bucketIndex != -1) {\n long bucket = buckets[bucketIndex];\n int bucketKey = extractKey(bucket);\n\n if(bucketKey == key) {\n // The same key has been found.\n T oldValue = (T)data[bucketIndex];\n data[bucketIndex] = value;\n return oldValue;\n }\n else {\n // A new entry must be added at the end of the bucket.\n int dataIndex = appendData(key, value);\n buckets[bucketIndex] = replaceNext(dataIndex, bucket);\n }\n }\n else {\n // No bucket is associated with the hash code yet.\n int dataIndex = appendData(key, value);\n int keyHash = computeHash(key);\n table[keyHash] = dataIndex;\n }\n\n return null;\n }", "void put(@NonNull String key, @NonNull T value);", "public SearchResult addFacetsEntry(String key, BucketInfo value) {\n if (null == this.facets) {\n this.facets = new com.amazonaws.internal.SdkInternalMap<String, BucketInfo>();\n }\n if (this.facets.containsKey(key))\n throw new IllegalArgumentException(\"Duplicated keys (\" + key.toString() + \") are provided.\");\n this.facets.put(key, value);\n return this;\n }", "public Entry insert(Object key, Object value) {\n resize();//only if it needs to.\n Entry e = new Entry();\n e.key = key;\n e.value = value;\n int i = compFunction(key.hashCode());\n buckets[i].insertFront(e);\n size++;\n return e;\n }", "void addTransientEntry(K key, V value);", "public void add(int key) {\n int index = getIndex(key);\n if(buckets[index] == null){\n buckets[index] = new boolean[bucketItem];\n }\n int index2 = getIndex2(key);\n buckets[index][index2] = true;\n }", "@Override\n\tpublic V add(K key, V value) {\n\t\tV result = null;\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(currentNode != null && key.equals(currentNode.getKey())){\n\t\t\tresult = (V) currentNode.getValue();\n\t\t\tcurrentNode.setValue(value);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tNode newNode = new Node(key, value);\n\t\t\tif(currentNode == null){\n\t\t\t\tnewNode.setNextNode(firstNode);\n\t\t\t\tfirstNode = newNode;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfirstNode.setNextNode(newNode);\n\t\t\t}\n\t\tnumberOfEntries++;\t\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "ValueType put(long key, ValueType entry);", "public void put(Key key, Value value) {\n\t\tNode entry = new Node(key, value, current_node);\n\t\tcurrent_node = entry; size++;\n\t}", "public V put(K key, V value);", "public void put(Value key, Value value) {\n\t\tstorage.put(key, value);\n\t}", "boolean put(K key, V value);", "@Override\r\n public void put(K key, V value) {\r\n if ((load + 1.0) / capacity > .75) {\r\n resize();\r\n }\r\n putKV(new KVPair<K, V>(key, value));\r\n \r\n \r\n }", "public void insert(Key key, Value value) {\r\n root.insert(key,value);\r\n size++;\r\n }", "public void addKey(String keyName, String keyValue)\n {\n if ((keyName == null) || (keyName.length() == 0))\n throw new IllegalArgumentException(\"Key name must be supplied.\");\n\n if ((keyValue == null) || (keyValue.length() == 0))\n throw new IllegalArgumentException(\"Key value must be supplied.\");\n \n m_keyNames.add(keyName);\n m_keyValues.add(keyValue);\n }", "void put(String key, Object obj);", "void register(String name, K key, V value);", "abstract void insert(K key, V value);", "abstract void insert(K key, V value);", "<T> void put(String key, T data);", "public boolean put(String key, String value);", "@Override\n public V put(final K key, final V value) {\n if (key == null) {\n throw new NullPointerException(\"key\");\n }\n entries.add(new SimpleEntry<K,V>(key, value));\n size = UNKNOWN_SIZE;\n return null;\n }", "public boolean add(K key, V value){\r\n int loc = find(key);\r\n if(needToRehash()){\r\n rehash();\r\n }\r\n Entry<K,V> newEntry = new Entry<>(key,value);\r\n if(hashTable[loc]!= null && hashTable[loc].equals(key))\r\n return false;\r\n else{\r\n hashTable[loc] = newEntry;\r\n size++;\r\n return true;\r\n }\r\n }", "@Override\n public void put(K key, V value) {\n // Note that the putHelper method considers the case when key is already\n // contained in the set which will effectively do nothing.\n root = putHelper(root, key, value);\n size += 1;\n }", "public Object putItem (String key, Object item);", "public Bucket(Entry<K, V> x) {\n\t\t\te.add(x);\n\t\t}", "public void insert (k key, v val) {\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\t\n\t\twhile (curr != null) {\t\n\t\t\tif (key.equals(curr.getKey()) && val.equals(curr.getValue())) { \n\t\t\t\t\n\t\t\t\tSystem.err.println(\"Pair \" + key + \" \" + val + \" already exists\");\n\t\t\t\treturn;\t\t\t\t\t\t\t\t// if both key and value already exist, terminate\n\t\t\t}\n\t\t\telse if (curr.getNext() == null) {\t\t// if reached last element, append the new node to the end\n\t\t\t\tcurr.setNext(key, val);\n\t\t\t\treturn; \n\t\t\t}\n\t\t\tcurr = curr.getNext();\t\t\t\t\t// propagate on the SLL until key and value matched or end of SLL reached\n\t\t}\n\t\tbuckets[b] = new Node<k,v>(key, val, null);\t// if there are no nodes at the hashed index, place the new node there\n\t}", "public void add(String key,String value){\n int index=hash(key);\n if (arr[index] == null)\n {\n arr[index] = new Llist();\n }\n arr[index].add(key, value);\n\n\n }", "public void put(K key, V value) {\r\n size++;\r\n checkAndModifySize();\r\n\r\n Node newElement = new Node(key, value);\r\n int currentHash = newElement.hash % data.length;\r\n if (currentHash < 0){\r\n currentHash *= -1;\r\n }\r\n\r\n if (data[currentHash] == null) {\r\n data[currentHash] = newElement;\r\n } else {\r\n Node currentElement = data[currentHash];\r\n while (currentElement.next != null) {\r\n if (currentElement.key == key || currentElement.key.equals(key)) {\r\n currentElement.value = value;\r\n size--;\r\n return;\r\n }\r\n currentElement = currentElement.next;\r\n }\r\n currentElement.next = newElement;\r\n }\r\n }", "private void add(String key) {\n dict = add(dict, key, 0);\n }", "void put(String key, int value) throws StorageException, ValidationException, KeyValueStoreException;", "@Override\n public V put(K key, V value) {\n if (!containsKey(key)) {\n keys.add(key);\n }\n\n return super.put(key, value);\n }", "public Entry insert(Object key, Object value) {\r\n if (size / num_buckets > 0.75) { //table must be resized if load factor is too great\r\n this.resize();\r\n }\r\n Entry new_entry = new Entry();\r\n new_entry.key = key;\r\n new_entry.value = value;\r\n int comp_hash = compFunction(new_entry.key.hashCode()); //compresses key hash code\r\n if (hash_table[comp_hash] == null) { \r\n hash_table[comp_hash] = new DList();\r\n hash_table[comp_hash].insertFront(new_entry);\r\n } else {\r\n hash_table[comp_hash].insertFront(new_entry);\r\n }\r\n size++;\r\n return new_entry;\r\n }", "protected Object putElement(int key, Object value) {\n int index = key % capacity;\n if (index < 0) {\n index = -index;\n }\n if (map[index] == null) {\n //.... This is a new key since no bucket exists\n objectCounter++;\n map[index] = create(key, value);\n contents++;\n if (contents > maxLoad) {\n rehash();\n }\n return null;\n } else {\n //.... A bucket already exists for this index: check whether \n // we already have a mapping for this key\n MapElement me = map[index];\n while (true) {\n if (me.getKey() == key) {\n return me.atInsert(value);\n } else {\n if (me.getNext() == null) {\n // No next element: so we have no mapping for this key\n objectCounter++;\n MapElement result = create(key, value);\n me.setNext(result);\n contents++;\n if (contents > maxLoad) {\n rehash();\n }\n return null;\n } else {\n me = me.getNext();\n }\n }\n }\n }\n }", "public boolean add(String key, String value){\r\n // takes a key and turns it into a hashed thing\r\n int arrIndex = hash(key);\r\n\r\n Entry entry = new Entry(key, value);\r\n\r\n if (hashTableArray[arrIndex] == null){\r\n hashTableArray[arrIndex] = new LinkedList<>();\r\n }\r\n if(contains(key)) {\r\n return false; // the key is already in use, so don't use it.\r\n } else {\r\n hashTableArray[arrIndex].add(entry); // add the key and value pair to the linked list.\r\n }\r\n return true;\r\n }", "public V put(K key, V value) throws InvalidKeyException;", "@Override\n public void putValue(String key, Object value) {\n\n }", "void put(Object indexedKey, Object key);", "public void add(String key, Object value) {\n Object oldValue = null;\n if (value instanceof String) {\n editor.putString(key, (String) value);\n oldValue = get(key, \"\");\n } else if (value instanceof Boolean) {\n editor.putBoolean(key, (Boolean) value);\n oldValue = get(key, false);\n } else if (value instanceof Integer) {\n editor.putInt(key, (Integer) value);\n oldValue = get(key, -1);\n } else if (value instanceof Long) {\n editor.putLong(key, (Long) value);\n oldValue = get(key, -1l);\n } else {\n if (value != null)\n Log.e(TAG, \"Value not inserted, Type \" + value.getClass() + \" not supported\");\n else\n Log.e(TAG, \"Cannot insert null values in sharedprefs\");\n }\n editor.apply();\n\n //notifying the observers\n notifyObservers(key, oldValue, value);\n }", "public void setValue(K key, V value) {\n this.add(key, value);\n }", "public void insertToBucket()\n {\n int value = 0;\n value = valueCheck(value);\n \n //inserts value in the array to the buckets\n if(value == 0)\n {\n zero.add(a[k]);\n a[k] = 0;\n }\n if(value == 1)\n {\n one.add(a[k]);\n a[k] = 0;\n }\n if(value == 2)\n {\n two.add(a[k]);\n a[k] = 0;\n }\n if(value == 3)\n {\n three.add(a[k]);\n a[k] = 0;\n }\n if(value == 4)\n {\n four.add(a[k]);\n a[k] = 0;\n }\n if(value == 5)\n {\n five.add(a[k]);\n a[k] = 0;\n }\n if(value == 6)\n {\n six.add(a[k]);\n a[k] = 0;\n }\n if(value == 7)\n {\n seven.add(a[k]);\n a[k] = 0;\n }\n if(value == 8)\n {\n eight.add(a[k]);\n a[k] = 0;\n }\n if(value == 9)\n {\n nine.add(a[k]);\n a[k] = 0;\n }\n \n k++;\n }", "private HashEntry(K insertKey, V insertValue)\r\n\t\t{\r\n\t\t\tkey = insertKey;\r\n\t\t\tvalue.add(insertValue);\r\n\t\t}", "public boolean put(K key, V value)\r\n\t{\r\n\t\treturn data.addUpdate(new Entry(key, value));\r\n\t}", "public void addData(Key key, Value value) {\r\n\t\t\tdata.reset();\r\n\t\t\t\r\n\t\t\t//if no data or should be placed first\r\n\t\t\tif (data.size() == 0 || data.get().getKey().compareTo(key) > 0) \r\n\t\t\t\tdata.insert(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\telse {\r\n\t\t\t\t//find insert position\r\n\t\t\t\twhile (data.hasNext()) {\r\n\t\t\t\t\tif (data.next().getKey().compareTo(key) > 0) break;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//if before last\r\n\t\t\t\tif (data.get().getKey().compareTo(key) > 0) \r\n\t\t\t\t\tdata.insert(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\t\t//if after last\r\n\t\t\t\telse\r\n\t\t\t\t\tdata.add(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\t}\r\n\t\t}", "public void put(String key, V value) {\n map.computeIfAbsent(key, k -> keepOrder ? new LinkedHashSet<>() : new HashSet<>()).add(value);\n }", "public void putBucket(Bucket bucket, int number) throws IOException {\n // REDFLAG: remove debugging code?\n Integer index = new Integer(number);\n if (buckets.get(index) != null) {\n throw new IOException(\"You already put bucket: \" + number);\n }\n buckets.put(index, bucket);\n }", "@Override\n public void put(K key, V value) {\n root = putHelper(key,value,root);\n }", "@Override\n public void put(K key, V value) {\n root = put(root, key, value);\n }", "void add(ThreadLocal<?> key, Object value) {\n for (int index = key.hash & mask;; index = next(index)) {\n Object k = table[index];\n if (k == null) {\n table[index] = key.reference;\n table[index + 1] = value;\n return;\n }\n }\n }", "public void put(String key, T value) {\r\n\t\troot = put (root, key, value, 0);\r\n\t}", "public void putInOrder(String key, ValueType value) {\n\n if (null != key && (key.charAt(0) != '$' || key.startsWith(ABSORB_DATA_PREFIX_DEFAULT))) {\n if (null == orderedKeys)\n orderedKeys = new ArrayList<>();\n\n if (!containsKey(key)) {\n orderedKeys.add(key);\n\n // use ArrayList as container if no container set\n if (null == values)\n values = (ContainerType) new ArrayList();\n values.add(value);\n }\n }\n else\n throw new IllegalArgumentException(\"Key cannot contain special character $\");\n\n put(key, value);\n }", "String put(Integer key, String value);", "public void addKey(String key){\n itemMap.put(key, new ArrayList<>());\n }" ]
[ "0.75051516", "0.74782103", "0.74247223", "0.73266655", "0.72109324", "0.71876794", "0.7117537", "0.7036808", "0.6974171", "0.695932", "0.6811056", "0.68005425", "0.67956233", "0.6779096", "0.67689574", "0.67538667", "0.6736049", "0.67337036", "0.6694038", "0.66847724", "0.66847724", "0.66765976", "0.66149354", "0.66108257", "0.65783024", "0.65635514", "0.65601397", "0.6550661", "0.6544764", "0.6520054", "0.6518966", "0.64994794", "0.648469", "0.6475556", "0.6453422", "0.6432158", "0.6429917", "0.64264715", "0.6409057", "0.63977396", "0.6393935", "0.63916487", "0.6389695", "0.63770247", "0.6369303", "0.63466454", "0.6345843", "0.6343784", "0.6327674", "0.6323184", "0.63189757", "0.6302156", "0.6291867", "0.62901145", "0.628183", "0.62813824", "0.62775826", "0.62669647", "0.6262345", "0.62618417", "0.62598", "0.62458616", "0.62447816", "0.623551", "0.62313604", "0.62313604", "0.6226241", "0.6225443", "0.6216435", "0.6211826", "0.6203265", "0.6196575", "0.6189499", "0.61835957", "0.6179209", "0.6177718", "0.61578405", "0.6153707", "0.6150624", "0.61415184", "0.6135222", "0.6112501", "0.61070305", "0.6099028", "0.6093753", "0.60867214", "0.6070464", "0.6069632", "0.606433", "0.60574526", "0.6049608", "0.60371584", "0.60370123", "0.60292506", "0.6025277", "0.60158575", "0.6002266", "0.59888023", "0.5958862", "0.5957027" ]
0.69483685
10
Adds all keys and values from a map.
@Override public void putAll(Map<? extends K, ? extends V> m) { for (K key : m.keySet()) { put(key, m.get(key)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void putAll(Map<? extends K, ? extends V> m) {\n for(Map.Entry<? extends K, ? extends V> entry : m.entrySet()) {\n put(entry.getKey(), entry.getValue());\n }\n }", "@Override\n\tpublic void putAll(Map<? extends K, ? extends V> m) {\n for (Map.Entry<? extends K, ? extends V> e : m.entrySet())\n put(e.getKey(), e.getValue());\n\t}", "@Override\n\tpublic void putAll(Map<? extends K, ? extends V> m) {\n\t\t\n\t}", "public void putAll(Map m) {\n\tIterator iter = m.entrySet().iterator();\n\twhile (iter.hasNext()) {\n @SuppressWarnings(\"unchecked\")\n\t Map.Entry e = (Map.Entry) iter.next();\n\t put(e.getKey(), e.getValue());\n\t}\n }", "@Override\n public void putAll(Map<? extends String, ? extends T> m) {\n for (Map.Entry<? extends String, ? extends T> e : m.entrySet()) {\n put(e.getKey(), e.getValue());\n }\n }", "public abstract void putAll(AbstractIntHashMap map);", "public void putAll(Map<? extends E, ? extends V> m) {\n\t\t\r\n\t}", "@Override\n public void putAll(Map<? extends K, ? extends V> map) {\n throw new UnsupportedOperationException();\n }", "boolean addAll(MapP2P<K, V> mapP2P);", "@Override\r\n\tpublic void putAll( Map<? extends K, ? extends V> m ) {\r\n\t\tif(this.spaceLeft() - countNewElements( m ) < 0)\r\n\t\t\tthrow new IllegalStateException(\"There is not enough space to put whole passed map.\");\r\n\t\tsuper.putAll( m );\r\n\t}", "@Override\n\tpublic void putAll(Map<? extends K, ? extends V> arg0) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n public void putAll(Map t) {\n map.putAll(t);\n }", "@Override\n synchronized public void addMap(TreeMap toAdd) {\n this.map.putAll(toAdd);\n printAct(\"added a whole map with keys from:\" + toAdd.firstKey() + \" up to:\" + toAdd.lastKey());\n }", "public MapSum() {\n map = new HashMap<>();\n }", "public static void test2(Map<Object,Object> map) \n\t{\n\t\tprint(map.getClass().getSimpleName()+\"~~~~~~~~~~~~\");\n\t\tmap.putAll(new CountingMapData(25));\n\t\t// Map has 'Set' behavior for keys:\n\t\tmap.putAll(new CountingMapData(25));\n\t\tprintKeys2(map);\n\t\t// Producing a collection of the values:\n\t\tprintnb(\"Values: \");\n\t\tprint(map.values());\n\t\tprint(map);\n\t\tprint(\"map.containsKey(11): \" + map.containsKey(11));\n\t\tprint(\"map.get(11): \" + map.get(11));\n\t\tprint(\"map.containsValue(\\\"F0\\\"): \" + map.containsValue(\"F0\"));\n\t\tObject key = map.keySet().iterator().next();\n\t\tprint(\"First key in map: \" + key);\n\t\tmap.remove(key);\n\t\tprintKeys2(map);\n\t\tmap.clear();\n\t\tprint(\"map.isEmpty(): \" + map.isEmpty());\n\t\tmap.putAll(new CountingMapData(25));\n\t\t// Operations on the Set change the Map:\n\t\tmap.keySet().removeAll(map.keySet());\n\t\tprint(\"map.isEmpty(): \" + map.isEmpty());\n\t}", "void writeAll(Map<? extends K, ? extends V> map);", "@Override\n\tpublic void putAll(Map<? extends String, ? extends String> m) {\n\t}", "void add( Map< String, Object > paramMap );", "public Builder putAllField(\n java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableField().getMutableMap()\n .putAll(values);\n return this;\n }", "public Map<T, V> copyData(Map<T, V> map) {\n Map<T, V> newMap = new HashMap<>();\n for (Map.Entry<T, V> entrySet : map.entrySet()) {\n T key = entrySet.getKey();\n V value = entrySet.getValue();\n newMap.put(key, value);\n }\n return newMap;\n }", "MapComp<K, V> add(K k, V v);", "boolean addAll(Object key, Set values);", "public static <\n K,\n V> void addToCollectionMap(K key, V valueToAdd, Map<K, Collection<V>> map) {\n if (key != null && valueToAdd != null && map != null) {\n map.computeIfAbsent(key, Suppliers.asFunction(ArrayList::new)).add(valueToAdd);\n }\n }", "public void putAll(Map<?, ? extends Action> map) {\n\t\tObject key;\n\t\tAction action;\n\t\tfor (Map.Entry<?, ? extends Action> entry : map.entrySet()) {\n\t\t\tkey = entry.getKey();\n\t\t\taction = entry.getValue();\n\t\t\tif (key != null && action != null)\n\t\t\t\tput(key, action);\n\t\t}\n\t}", "public static <K, V> void addToMapList(Map<K, List<V>> map, K key, V value)\n {\n List<V> list = map.get(key);\n\n if (list == null)\n {\n list = CollectionFactory.newList();\n map.put(key, list);\n }\n\n list.add(value);\n }", "public static <K, T extends Number> void addToMap(Map<K, T> m, K key, T value) {\n m.put(key, m.containsKey(key) ? (T) (Double) (value.doubleValue() + m.get(key).doubleValue()) : value);\n }", "public void putAll(Map<? extends String, ? extends List<String>> m)\r\n/* 411: */ {\r\n/* 412:576 */ this.headers.putAll(m);\r\n/* 413: */ }", "@Test\n public void valuesTest()\n {\n map.putAll(getAMap());\n assertNotNull(map.values());\n }", "public void putAll(R key, Collection<S> values){\n if (!map.containsKey(key)){\n if (listType == ARRAY_LIST){\n map.put(key, new ArrayList<S>());\n } else if (listType == LINKED_LIST){\n map.put(key, new LinkedList<S>());\n }\n }\n map.get(key).addAll(values);\n }", "public static synchronized void putAll(Map<? extends Class<?>, ? extends String> map) {\n\t\tfor (Class<?> entry : ClassRegistry.primitives.keySet()){\n\t\t\tif (map.containsKey(entry))\n\t\t\t\tthrow new IllegalArgumentException(\"A primitive type cannot be added to the class dictionary.\");\n\t\t}\n\t\tClassRegistry.dictionary.putAll(map);\n\t}", "public void setAll(Map<String, String> values)\r\n/* 360: */ {\r\n/* 361:532 */ for (Map.Entry<String, String> entry : values.entrySet()) {\r\n/* 362:533 */ set((String)entry.getKey(), (String)entry.getValue());\r\n/* 363: */ }\r\n/* 364: */ }", "private void addValueToStatMap(HashMap<String, ArrayList<Double>> map, String key, Double value) {\r\n if (!map.containsKey(key)) {\r\n map.put(key, new ArrayList<Double>());\r\n }\r\n map.get(key).add(value);\r\n }", "public void putAll(final serverObjects add) {\n for (final Map.Entry<String, String> entry: add.entrySet()) {\n put(entry.getKey(), entry.getValue());\n }\n }", "public boolean addAll(Map<String, T> args) {\n\t\tfor (Map.Entry<String, T> entry : args.entrySet()) {\n\t\t\tadd(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn args.size() > 0;\n\t}", "public static void addToMap()\n {\n Map<String, Integer> map = new HashMap<>();\n\n BiConsumer<String, Integer> mapAdderEveryTime = (s, i) -> map.put(s, i);\n\n mapAdderEveryTime.accept(\"key1\", 4);\n mapAdderEveryTime.accept(\"key2\", 4);\n\n BiConsumer<String, Integer> mapAdderIfPresent = (s, i) -> {\n map.computeIfPresent(s, (key, value) -> (value % 4 == 0) ? 0 : value +1);\n };\n\n mapAdderIfPresent.accept(\"key1\", 1);\n\n System.out.println(map);\n }", "public MapBuilder<M, K, V> putAll(M all)\n {\n map.putAll(all);\n return this;\n }", "public Builder putAllProperties(\n java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableProperties().getMutableMap()\n .putAll(values);\n bitField0_ |= 0x00000004;\n return this;\n }", "@Test\n public void testPutAll_NonExisting() {\n Map<String, String> toAdd = fillMap(1, 10);\n configureAnswer();\n testObject.putAll(toAdd);\n\n for (Entry<String, String> entry : toAdd.entrySet()) {\n verify(helper).fireAdd(entry);\n }\n verifyNoMoreInteractions(helper);\n }", "public <K> void put(K key, MappingEntry<?>... values);", "void putAll(HMap m) throws NullPointerException;", "private void hashMapPutPlusOne(Map<String, Integer> map, String key) {\n Integer value = map.get(key);\n if (value == null)\n map.put(key, 1);\n else\n map.put(key, value + 1);\n }", "private void addToMap(Word from, Word to) {\n Set<Word> s = wordMap.get(from);\n if(s == null) {\n s = new HashSet<>();\n wordMap.put(from, s);\n }\n s.add(to);\n }", "public static HashMap merge(Map map1, Map map2) {\r\n\t\tHashMap retval = new HashMap(calcCapacity(map1.size() + map2.size()));\r\n\r\n\t\tretval.putAll(map1);\r\n\t\tretval.putAll(map2);\r\n\r\n\t\treturn retval;\r\n\t}", "public void addToMap(){\n\t\tInteger hc = currentQuery.hashCode();\n\t\tif (!hmcache.containsKey(hc)) {\n\t\t\thmcache.put(hc, 0);\n\t\t}else{\n\t\t\tInteger val = hmcache.get(hc) + (currentQuery.getWords().size());\n\t\t\thmcache.put(hc, val);\n\t\t}\n\t}", "public <T> void putAll(Map<String,T> attr) {\r\n attributeMap.putAll(attr);\r\n fireStateChanged();\r\n }", "public static <T,S,V extends Object> void merge(Map<T, HashMap<S, V>> to, Map<T, HashMap<S, V>> from) {\r\n\t\tfor(Entry<T, HashMap<S, V>> entry : from.entrySet()) {\r\n\t\t\tif(to.containsKey(entry.getKey())) {\r\n\t\t\t\tto.get(entry.getKey()).putAll(entry.getValue());\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tto.put(entry.getKey(), entry.getValue());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public TOrderedHashMap(final Map<? extends K, ? extends V> map) {\n\t\tthis(map.size());\n\t\tputAll(map);\n\t}", "public CountingMap( Map<K, Integer> map ) {\n this.map = map;\n }", "public void putAll(String key, Collection<V> values) {\n map.computeIfAbsent(key, k -> keepOrder ? new LinkedHashSet<>() : new HashSet<>()).addAll(values);\n }", "public HashMap(Map<? extends K,? extends V> map) {\r\n\t\tthis();\r\n\t\tthis.putAll(map);\r\n\t}", "@Override // io.reactivex.functions.Function\n public Iterable<? extends Map.Entry<? extends String, ? extends String>> apply(Map<String, ? extends String> map) {\n Map<String, ? extends String> map2 = map;\n Intrinsics.checkNotNullParameter(map2, \"it\");\n return map2.entrySet();\n }", "public Builder putAllDetails(\n java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableDetails().getMutableMap()\n .putAll(values);\n bitField0_ |= 0x00000100;\n return this;\n }", "private void insertIntegers(Map<String,Integer> mapValues) {\n mapFieldsIntegers.putAll(mapValues);\n }", "@Test\n public void testPutAll_Existing() {\n Map<String, String> toAdd = fillMap(1, 10, \"\", \"Old \");\n\n map.putAll(toAdd);\n\n Map<String, String> toUpdate = fillMap(1, 10, \"\", \"New \");\n\n configureAnswer();\n testObject.putAll(toUpdate);\n\n for (String k : toAdd.keySet()) {\n String old = toAdd.get(k);\n String upd = toUpdate.get(k);\n\n verify(helper).fireReplace(entry(k, old), entry(k, upd));\n }\n verifyNoMoreInteractions(helper);\n }", "public static HashMap<JSONObject, JSONObject> addNew (HashMap<JSONObject, JSONObject> map,JSONObject key, JSONObject value){\n\t\tmap.put(key, value);\n\t\treturn map;\n\t}", "public Builder putAllInfo(\n java.util.Map<java.lang.Integer, java.lang.Integer> values) {\n getMutableInfo().putAll(values);\n return this;\n }", "void addEntry(K key, V value);", "private static void fillListFromMap(List<Integer> bucketContents, Map<Double, List<Integer>> m) {\r\n\t\tIterator<Double> iter = m.keySet().iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tDouble key = iter.next();\r\n\t\t\tbucketContents.addAll(m.get(key));\r\n\t\t}\r\n\t}", "@Override\n\tpublic void convertitMap(Map<String, Object> map) {\n\t\t\n\t}", "private Map<String, Object> flatten(Map<String, Object> map) {\n\t\tMap<String, Object> result = new LinkedHashMap<>();\n\t\tflatten(null, result, map);\n\t\treturn result;\n\t}", "@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n private void populateMap(Map map, Node node) {\n Map.Entry entry = getMapEntry(node);\n if (entry != null) {\n map.put(entry.getKey(), entry.getValue());\n }\n }", "void add(K key, V value);", "private void loadMap(MultiHashMap map) {\n\r\n int numRows = sMapPairs.length;\r\n int maxCols = 0;\r\n for (int ii = 0; ii < sMapPairs.length; ii++) {\r\n if (sMapPairs[ii].length > maxCols) {\r\n maxCols = sMapPairs[ii].length;\r\n }\r\n }\r\n for (int ii = 0; ii < maxCols; ii++) {\r\n for (int jj = 0; jj < numRows; jj++) {\r\n if (ii < sMapPairs[jj].length) {\r\n map.put(sMapPairs[jj][ii].mKey, sMapPairs[jj][ii].mValue);\r\n //---------------------------------------------------------\r\n }\r\n }\r\n }\r\n assertTrue(map.size() == sMapPairs.length);\r\n }", "private CompletableFuture<Void> putMany(AsyncMap<String, String> map) {\n CompletableFuture<Void> future = new CompletableFuture<>();\n putMany(0, 10, map, future);\n return future;\n }", "private void addHistogram2map(HashMap<String, double[][]> map, double[] histValues, String key, int iteration) {\r\n if (!map.containsKey(key)) {\r\n map.put(key, new double[nRandomisations][]);\r\n }\r\n double[][] values = map.get(key);\r\n values[iteration] = histValues;\r\n }", "@Override\n\t\t\tpublic void putAll(Map<? extends PathwayImpl, ? extends AnalysisResult> m) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void insert(Map<String, String> map) {\n\t\t\r\n\t}", "public void fillMap(Map<String, List<String>> map){\n \tfor(String word : dictionary.words){ //Iterate over the ArrayList in the Dictionary object\n \t\tList<String> list = new ArrayList<String>();\n \t\tfor(String w : dictionary.words){ //iterate through all words in dictionary to find all one letter off from word\n \t\t\tif(isOneLetterOff(w, word))\n \t\t\t\tlist.add(w);\n \t\t\t//if w isn't off from word by one letter, check next w\n \t\t}\n \t\tmap.put(word, list);\n \t}\n }", "public Map<String, String> addMapToMap(String key, String value) {\n\t\tMap<String, String> anotherMap = createSimpleMap(key, \"Ice-cream\");\n\t\thashMap.putAll(anotherMap);\n\t\treturn hashMap;\n\t}", "public final void g(@NonNull Map<z, Map<String, Object>> map) {\n a((Map) map, true);\n }", "private void insertStrings(Map<String,String> mapValues) {\n mapFieldsStrings.putAll(mapValues);\n }", "public static void addAll(Map<String, int[]> modIdxMap) {\n ThirdPartyLibrary.modIdxMap.putAll(modIdxMap);\n }", "@Override\n public void putAll(Map<? extends String,? extends Componente> t) {\n for(Componente c : t.values()) {\n this.put(c.getNome(), c);\n }\n }", "public static final Map update (Map map, Object ... pairs) {\r\n for (int i=0; i<pairs.length; i=i+2) {\r\n map.put(pairs[i], pairs[i+1]);\r\n }\r\n return map;\r\n }", "public Builder putAllTags(\n java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableTags().getMutableMap()\n .putAll(values);\n return this;\n }", "public RvtAoiLocalSet(Map<RvtAoiMetadataKey, IRvtPoiAoiMetadataValue> values) {\n map.putAll(values);\n }", "public static Arguments mergeMapWithAnOverrideMap(Map<String,String> baseMap, Map<String, String> additionalEntriesMap) {\n\t\tArguments jmeterArguments = new Arguments();\n\t\tMap<String, String> jmeterArgumentsMap = new LinkedHashMap<String,String>();\n\t\tMap<String,String> baseMapMergedWithAdditionalEntriesMap = new LinkedHashMap<String,String>(); \n\t\t\n\t\tfor (Map.Entry<String, String> defaultEntry : baseMap.entrySet()) {\n\t\t\tif (additionalEntriesMap.containsKey(defaultEntry.getKey())){\n\t\t\t\tbaseMapMergedWithAdditionalEntriesMap.put(defaultEntry.getKey(), additionalEntriesMap.get(defaultEntry.getKey()));\n\t\t\t\tadditionalEntriesMap.remove(defaultEntry.getKey());\n\t\t\t} else {\n\t\t\t\tbaseMapMergedWithAdditionalEntriesMap.put(defaultEntry.getKey(), baseMap.get(defaultEntry.getKey()));\n\t\t\t}\n\t\t}\n\t\t\n\t\tjmeterArgumentsMap.putAll(additionalEntriesMap);\n\t\tjmeterArgumentsMap.putAll(baseMapMergedWithAdditionalEntriesMap);\n\t\t\n\t\tfor (Map.Entry<String, String> parameter : jmeterArgumentsMap.entrySet()) {\n\t\t\tjmeterArguments.addArgument(parameter.getKey(), parameter.getValue());\n\t\t}\n\t\t\n\t\tif (LOG.isDebugEnabled()){LOG.debug(\"jmeter arguments at end of mergeMapWithAnOverrideMap : \" + Arrays.toString(jmeterArguments.getArgumentsAsMap().entrySet().toArray()));} \n\t\treturn jmeterArguments;\n\t}", "@Override\n public void putAll(Map<? extends String,? extends Pacote> t) {\n for(Pacote p : t.values()) {\n this.put(p.getNome(), p);\n }\n }", "public Builder putAllSpecialSamplingProbabilityMap(\n java.util.Map<java.lang.String, java.lang.Double> values) {\n internalGetMutableSpecialSamplingProbabilityMap().getMutableMap()\n .putAll(values);\n return this;\n }", "@Test\n public void keySetTest()\n {\n map.putAll(getAMap());\n assertNotNull(map.keySet());\n }", "private static void fillupmap(Map<String, Object> m) {\n\t\tRectangle r =new Rectangle(\"A\",2,3);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tr =new Rectangle(\"B\",4,1);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tCircle c =new Circle(\"C\",3);\r\n\t\tm.put(c.getCname(),c);\r\n\t\tc =new Circle(\"D\",4);\r\n\t\tm.put(c.getCname(),c);\r\n\t\t\r\n\t}", "public void merge(MapUtil newSet) {\n\t\tMap<String, Object> newMap = newSet.getInternalMap();\n\t\tfor (Entry<String, Object> entry : newMap.entrySet()) {\n\t\t\tvalues.put(entry.getKey(), entry.getValue());\n\t\t}\n\t}", "@Override\n public void putAll(Map<? extends String,? extends Administrador> t) {\n for(Administrador a : t.values()) {\n this.put(a.getId(), a);\n }\n }", "public static Map<String, Object> flatten(Map<String, Object> map) {\n Map<String, Object> result = new LinkedHashMap<>();\n flatten(null, result, map);\n return result;\n }", "public void putAll(Map arg0)\r\n {\r\n throw new RuntimeException(\"Cannot modify the display data.\");\r\n }", "public Builder putAllOptions(java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableOptions().getMutableMap().putAll(values);\n bitField0_ |= 0x00000100;\n return this;\n }", "public HashedVector(Map<Integer, Double> map) {\n\t\tthis.elements = new HashMap<Integer, Double>(map);\n\t}", "public Builder putAllMetadata(\n java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableMetadata().getMutableMap()\n .putAll(values);\n return this;\n }", "public Builder putAllMetadata(\n java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableMetadata().getMutableMap()\n .putAll(values);\n return this;\n }", "private static <K extends Comparable<K>, V>\n ImmutableSortedMap<K, SortedSet<V>>\n copyMap(Map<K, ? extends SortedSet<V>> map) {\n final ImmutableSortedMap.Builder<K, SortedSet<V>> b =\n ImmutableSortedMap.naturalOrder();\n for (Map.Entry<K, ? extends SortedSet<V>> e : map.entrySet()) {\n b.put(e.getKey(), ImmutableSortedSet.copyOf(e.getValue()));\n }\n return b.build();\n }", "public Map toMap(Map<String, Object> map) {\n return super.toMap(map);\n }", "private void storeValues(int source,\n Map<VWBetw, Double> map,\n DiskBufferDriver output) throws DriverException {\n for (Entry<VWBetw, Double> e : map.entrySet()) {\n storeValue(source, e.getKey().getID(), e.getValue(), output);\n }\n }", "public Builder putAllReplication(\n java.util.Map<String, String> values) {\n internalGetMutableReplication().getMutableMap()\n .putAll(values);\n return this;\n }", "@Test\n public void testPutAll_ExistingNoChange() {\n Map<String, String> toAdd = fillMap(1, 10);\n\n map.putAll(toAdd);\n\n Map<String, String> toUpdate = fillMap(1, 10);\n\n configureAnswer();\n testObject.putAll(toUpdate);\n\n verifyZeroInteractions(helper);\n }", "@Test\n public void entrySetTest()\n {\n map.putAll(getAMap());\n assertNotNull(map.entrySet());\n }", "@Override\r\n\tpublic void addToMap(MapView arg0) {\n\t\tsuper.addToMap(arg0);\r\n\t}", "private static void iterateThroughHashMapJava8(Map<String, Integer> crunchifyMap) {\n\t\tcrunchifyMap.forEach((k, v) -> {\n\t\t\tSystem.out.println(\"Key: \" + k + \"\\t\\t Value: \" + v);\n\t\t});\n \n\t}", "private XmlElement toXmlDict(Map<String, Object> map)\n {\n XmlElement dict = new XmlElement(\"dict\");\n for (Map.Entry<String, Object> entry : map.entrySet())\n {\n dict.add(new XmlElement(\"key\", entry.getKey()));\n dict.add(objectToXml(entry.getValue()));\n }\n return dict;\n }", "private void fillData() {\n\t\tfor(Entry<String, HashMap<String, Double>> entry : m.map.entrySet()) {\n\t\t\tfor(Entry<String, Double> subEntry : entry.getValue().entrySet()) {\n\t\t\t\tMappingData item = new MappingData(entry.getKey(), subEntry.getKey(), subEntry.getValue());\n\t\t\t\tdataList.add(item);\n\t\t\t}\n\t\t}\n\t}", "public void indexMap(LWMap map) {\n vueComponentMap.clear();\n removeAll();\n indexAdd(map);\n }" ]
[ "0.7171017", "0.7127653", "0.68779844", "0.6829634", "0.6709451", "0.65939337", "0.65515614", "0.65229315", "0.6517672", "0.63783145", "0.6373159", "0.63682264", "0.6352318", "0.62353873", "0.62003994", "0.6164468", "0.61641294", "0.6144237", "0.60911655", "0.6002666", "0.59966874", "0.5986741", "0.59752125", "0.5919533", "0.5913379", "0.58764935", "0.58753806", "0.5874301", "0.5859667", "0.58433443", "0.5838913", "0.58380574", "0.58257097", "0.57983905", "0.578532", "0.57803017", "0.57667536", "0.5746112", "0.5716326", "0.5709953", "0.5702704", "0.5682126", "0.5680516", "0.567451", "0.5668572", "0.56447077", "0.564174", "0.56299305", "0.5626887", "0.56170726", "0.56129074", "0.5592597", "0.55688757", "0.55441046", "0.55242705", "0.55176586", "0.55140144", "0.548874", "0.54868424", "0.54717493", "0.5462536", "0.545419", "0.5449517", "0.5448296", "0.5441329", "0.5431375", "0.5418416", "0.5412117", "0.5403797", "0.5403488", "0.53998506", "0.5394942", "0.5391425", "0.5363457", "0.5337626", "0.53261715", "0.5322498", "0.5287345", "0.52783036", "0.5274802", "0.52630377", "0.5248445", "0.52446675", "0.5238693", "0.5232936", "0.5219039", "0.52173847", "0.5216376", "0.5216376", "0.52162415", "0.5215604", "0.5214153", "0.5209761", "0.5208604", "0.52026755", "0.5198779", "0.5189618", "0.51883525", "0.5183528", "0.5182997" ]
0.7088567
2
Removes the key and corresponding value from its bucket, if found.
@Override public V remove(Object key) { int index = key.hashCode() % numBuckets; return ((Bucket) buckets[index]).remove((K) key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public V remove(K key, V value) {\n if (key == null || !keySet.contains(key))\n return null;\n int index = reduce(key, buckets.size());\n ArrayList<Entry> items = buckets.get(index);\n for (Entry e : items) {\n if (e.key.equals(key)) {\n if (e.value.equals(value)) {\n\n items.remove(e);\n keySet.remove(key);\n numEntries--;\n return e.value;\n }\n }\n }\n return null;\n }", "@Override\n public V remove(Object key) {\n \t\n \tLinkedList<Entry> tempBucket = chooseBucket(key);\n \t\n \tfor(int i=0;i<tempBucket.size();i++) {\n\t \tEntry tempEntry = tempBucket.get(i);\n\t \t\t\n\t \tif(tempEntry.getKey() == key) {\n\t \t\tV returnValue = tempEntry.getValue();\n\t \t\ttempBucket.remove(i);\n\t \t\tsize --;\n\t \t\treturn returnValue;\n\t \t}\n\t }\n \t\n \tif(size < buckets.length*BETA) {\n \t\trehash(SHRINK_FACTOR);\n \t}\n \t\n \treturn null;\n }", "public void remove (k key, v val) {\n\t\t\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\tNode<k,v> previous = null;\n\t\t\n\t\twhile (curr != null) {\n\t\t\t\n\t\t\t\n\t\t\tif (curr.getKey().equals(key) && curr.getValue().equals(val)) { // if pairs match\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tif (previous == null) {\t\t// if it's the first one , make the following SLL entry first in the bucket\n\t\t\t\t\t\tbuckets[b] = curr.getNext();\n\t\t\t\t\t\treturn;\n\t\t\t\t}\t\n\t\t\t\telse {\t\t\t\t\t\t// if it's not the first one then make previous's next point to curr's next\n\t\t\t\t\tprevious.setNext(curr.getNext()); \n\t\t\t\t\treturn;\n\t\t\t\t}\t\t\n\t\t\t} else {\t\t\t\t\t\t// there is not match, keep going through the SLL\n\t\t\t\tprevious = curr;\n\t\t\t\tcurr = curr.getNext();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Pair not found\");\n\t}", "void removeValue(String key);", "public V remove(K key) {\n\tint bucket=Math.abs(key.hashCode()%capacity);\n\t//for(int i=0;i<table[bucket].size()-1;i++){\n\tfor(MyEntry i:table[bucket]) { \n\t if(i.key==key) {\n\t\t//location.remove(key\n\t\tV previousvalue=i.value;\n\t\ttable[bucket].remove(i);\n\t\tsize--;\n\t\t/*if(table[bucket].size()==0) {\n\t\t utilizedbuckets.remove(bucket);\n\t\t}*/\n\t\treturn previousvalue;\n\t }\t\n\t}\n\treturn null;\n }", "public V removeKey( K key ) {\r\n\t\tint bucketIndex = getBucketIndex( key );\r\n\t\tMapNode<K, V> head = buckets.get(bucketIndex);\r\n\t\tMapNode<K, V> prev = null;\r\n\t\twhile( head != null ) {\r\n\t\t\tif( head.key.equals(key)) {\r\n\t\t\t\tsize--;\r\n\t\t\t\tif( prev == null ) {\r\n\t\t\t\t\t//sbse first key hi h thn second key\r\n\t\t\t\t\t//ko point kra dege arraylist m \r\n\t\t\t\t\tbuckets.set(bucketIndex, head.next );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tprev.next = head.next;\r\n\t\t\t\t}\r\n\t\t\t\treturn head.value;\r\n\t\t\t}\r\n\t\t\tprev = head;\r\n\t\t\thead = head.next;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "V remove(Object key);", "V remove(K key);", "V remove(K key);", "V remove(K key);", "public void remove(K key)\n {\n AssociationList<K, V> bucket = this.get(this.find(key));\n if (bucket != null)\n {\n bucket.remove(key);\n } // if (bucket != null)\n }", "public V remove(K key);", "public V remove(K key);", "public void removeAllWithKey(k key) {\n\t\t\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\tNode<k,v> previous = null;\n\t\t\n\t\twhile (curr != null) {\n\t\t\tif (key.equals(curr.getKey())) { // check if keys match\n\t\t\t\n\t\t\t\tif (previous == null) {\n\t\t\t\t\tbuckets[b] = curr.getNext(); // if removing first item, set the next as first\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tprevious.setNext(curr.getNext()); // else set the previous' next to curr's next\n\t\t\t\t}\t\t\n\t\t\t} else {\n\t\t\t\tprevious = curr; // if match wasn't found, set previous to current before moving on\n\t\t\t}\n\t\t\tcurr = curr.getNext(); // move in SLL\n\t\t}\n\t}", "@Override\n\tpublic V remove(Object key) {\n\t\tkeys.remove(key);\n\t\treturn map.remove(key);\n\t}", "V remove(final K key);", "public Entry remove(Object key) {\n int i = compFunction(key.hashCode());\n SList chain = buckets[i];\n try {\n for (SListNode n = (SListNode) chain.front(); n.isValidNode(); n = (SListNode) n.next()) {\n Entry e = (Entry) n.item();\n if (e.key.equals(key)) {\n n.remove();\n size--;\n return e;\n }\n }\n } catch(InvalidNodeException e) {\n System.out.println(e);\n }\n return null; \n }", "@Override\n public V remove(K key, V value) {\n if (get(root, key) == value) {\n return delete(root, key).val;\n }\n return null;\n }", "@Override\n public V remove(K key, V value) {\n if (key == null) return null;\n if (get(key) != value) {\n return get(key);\n }\n root = remove(root, key);\n return get(key);\n }", "void removeEntry(K key);", "public V remove(K key) {\r\n\t\t// TODO Complete this!\r\n\t\tint place = hash(key.hashCode());\r\n\t\tif (hashMapArray[place] != null) {\r\n\t\t\tLinkedList<KVPair> temp = hashMapArray[place];\r\n\t\t\tfor (KVPair i : temp) {\r\n\t\t\t\tif (i.getKey().equals(key)) {\r\n\t\t\t\t\tV oldKey = i.getValue();\r\n\t\t\t\t\ttemp.remove(i);\r\n\t\t\t\t\tsize--;\r\n\t\t\t\t\treturn oldKey;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic String remove(String key) {\n\t\tint hashVal = hashFunc(key);\n\t\twhile (hashArray[hashVal] != null) {\n\t\t\tif (hashArray[hashVal].value.equals(key)) {\n\t\t\t\thashArray[hashVal] = deleted;\n\t\t\t\tthis.numOfItems--;\n\t\t\t\treturn key;\n\t\t\t}\n\t\t\thashVal++;\n\t\t\thashVal = hashVal % size;\n\n\t\t}\n\t\treturn null;\n\t}", "void remove(K key);", "void remove(K key);", "void remove(K key);", "@Override\n public T remove(Object key) {\n // Do I have an entry for it?\n Map.Entry<String, T> entry = entries.get((String) key);\n if (entry != null) {\n entries.remove(key);\n // Change the underlying map.\n return map.remove(prefix + key);\n }\n return null;\n }", "public abstract V remove(K key);", "public void remove(K key);", "public Object remove(String key);", "public V remove(K key)\n {\n checkInitialization();\n if ((key == null))\n throw new IllegalArgumentException();\n else\n { \n V result = null;\n int keyIndex = locateIndex(key);\n if ((keyIndex < numberOfEntries) && \n key.equals(dictionary[keyIndex].getKey()))\n { \n // Key found; remove entry and return its value\n result = dictionary[keyIndex].getValue();\n removeGap(keyIndex);\n numberOfEntries--;\n } // end if\n // Else result is null\n return result;\n } // end if\n }", "@Override\n public V remove(K key, V value) {\n V val = get(key);\n if (val != null && value != null && val.equals(value)) {\n root = removeHelper(root, key);\n size -= 1;\n }\n return val;\n// throw new UnsupportedOperationException(\"Unsupported operation, sorry!\");\n }", "@Override\n\t@TimeComplexity(\"O(n)\")\n\tpublic V remove(K key) {\n\t/* TCJ\n\t * Binary search operation: log n\n\t * Iterate through new collection: n\n\t */\n\t\tint j = findIndex(key);\n\t\tif ( j == size() || key.compareTo(map.get(j).getKey()) != 0 ) return null;\n\t\treturn map.remove(j).getValue();\n\t}", "public V remove(K key)\r\n\t{\r\n\t\t//TODO: add your code here\r\n\t\tV oldVal;\r\n\t\tint slot = findSlot(key, false); // check if it already exists\r\n\t\t// sets the slot in the map to DUMMY value if it exists\r\n\t\tif (slot >= 0)\r\n\t\t{\r\n\t\t\toldVal = table[slot].getValue();\r\n\t\t\ttable[slot] = DUMMY;\r\n\t\t\tcount--;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\toldVal = null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn oldVal;\r\n\t}", "Entry<Key, Value> remove(Entry<Key, Value> entry);", "public void remove(Key key) {\n\n\t\tif (!contains(key)) return;\n\t\tint index = locate(key);\n\t\tkeys[index] = null;\n\t\tvalues[index] = null;\n\t\tthis.size--;\n\n\t\t// Check to see if any of the items in the table that follow\n\t\t// this one had collided with the key that was just removed.\n\t\t// If so, we need to rehash/reinsert them.\n\n\t\tint i = increment(index);\n\t\twhile (keys[i] != null) {\n\n\t\t\t// Save the key/value pair at this location.\n\n\t\t\tKey savedKey = keys[i];\n\t\t\tValue savedValue = values[i];\n\n\t\t\t// And temporarily remove it from the hash map.\n\n\t\t\tkeys[i] = null;\n\t\t\tvalues[i] = null;\n\n\t\t\t// Figure out where it should go now and reinsert it.\n\n\t\t\tindex = locate(savedKey);\n\t\t\tkeys[index] = savedKey;\n\t\t\tvalues[index] = savedValue;\n\n\t\t\t// Advance to the next item.\n\t\t\ti = increment(i);\n\t\t}\n\t}", "boolean remove(final K key, final V value);", "public void removeAllWithValue(v val) {\n\t\tfor (int i = 0; i < buckets.length; i++) {\n\t\t\tNode<k,v> curr = buckets[i];\n\t\t\tNode<k,v> previous = null;\n\t\t\t\n\t\t\twhile (curr != null) {\n\t\t\t\tif (curr.getValue().equals(val)) {\n\t\t\t\t\t\n\t\t\t\t\tif (previous == null) {\n\t\t\t\t\t\tbuckets[i] = curr.getNext(); // if removing first item, set the next as first\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprevious.setNext(curr.getNext()); // else set the previous' next to curr's next\n\t\t\t\t\t}\t\n\t\t\t\t} else {\t\t\t\t\t\t\t// if match wasn't found, set previous to current before moving on\n\t\t\t\t\tprevious = curr;\n\t\t\t\t}\t\n\t\t\t\tcurr = curr.getNext(); \t\t\t\t// move in SLL\n\t\t\t}\t\n\t\t}\n\t}", "boolean remove(Object key, Object value);", "void remove(String key);", "void remove(String key);", "void remove(String key);", "@Override\n\tpublic V remove(K key) {\n\t\tint h = Math.abs(key.hashCode()) % nrb;// calculam hash-ul asociat cheii\n\n\t\tfor (int i = 0; i < b.get(h).getEntries().size(); i++) {\n\t\t\t// parcurgerea listei de elemente pentru a gasi cheia ceruta si\n\t\t\t// stergerea acesteiu din lista\n\t\t\tif (b.get(h).getEntries().get(i).getKey().equals(key)) {\n\t\t\t\tV x = b.get(h).getEntries().get(i).getValue();\n\t\t\t\tb.get(h).e.remove(i);\n\t\t\t\treturn x;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public Object removeItem (String key);", "public V remove(K key) throws InvalidKeyException;", "public boolean remove(K key);", "public boolean remove(Key key) ;", "public void remove(int key) {\n int pos = key % this.size;\n Bucket bucket = this.buckets[pos];\n bucket.delete(key);\n }", "public V remove(K key)\n\t{\n\t\tcheckForNulls(key);\n\t\tint n = Math.abs(key.hashCode() % entries.length);\n\t\t\n\t\tif (entries[n] == null)\n\t\t\treturn null;\n\t\t\n\t\tV ret = null;\n\t\tfor (Entry e : entries[n])\n\t\t{\n\t\t\tif (key.equals(e.key) == true)\n\t\t\t\tret = e.value;\n\t\t}\n\t\t\n\t\tif (ret == null)\n\t\t\treturn null;\n\t\t\n\t\tentries[n].remove(new Entry(key, null));\n\t\treturn ret;\n\t}", "public void remove(int key) {\n int index = getIndex(key);\n int index2 = getIndex2(key);\n if(buckets[index] != null){\n buckets[index][index2] = false;\n }\n }", "public void remove(Object key, Object value) {\n map.get(key).remove(value);\n }", "@Override\n public V remove(K key) {\n Entry<K, V> removed = new Entry<>(null, null);\n if(containsKey(key)) {\n LinkedList<Entry<K, V>> pointer = entryArr[Math.floorMod(key.hashCode(), entryArr.length)];\n for(int i = 0; i < pointer.size(); i++) {\n if(pointer.get(i).keyEquals(new Entry<K, V>(key, null))) {\n removed = pointer.get(i);\n pointer.remove(pointer.get(i));\n break;\n }\n }\n size--;\n }\n return removed.value;\n }", "public Entry remove(Object key) {\r\n if (find(key) == null) {\r\n return null;\r\n } else { \r\n try{\r\n int index = compFunction(key.hashCode());\r\n if (hash_table[index].size() == 1) {\r\n Entry entry = (Entry)hash_table[index].front().item();\r\n hash_table[index] = null;\r\n return entry;\r\n } else { \r\n DListNode current = (DListNode) hash_table[index].front();\r\n while(current.isValidNode()){\r\n Entry pair = (Entry) current.item();\r\n if(pair.key().equals(key)){\r\n current.remove();\r\n size--;\r\n return pair;\r\n }\r\n current = (DListNode) current.next();\r\n }\r\n \r\n System.out.println(\"Couldn't find the item\");\r\n return null;\r\n }\r\n \r\n }catch(InvalidNodeException e){\r\n return null;\r\n }\r\n }\r\n }", "@Override\n public V remove(Object key) {\n int index = key.hashCode() % table.length;\n if (index < 0) {\n index += table.length;\n }\n if (table[index] == null) {\n return null; // key is not in table\n }\n for (Entry<K, V> entry : table[index]) {\n if (entry.getKey().equals(key)) {\n V value = entry.getValue();\n table[index].remove(entry);\n numKeys--;\n if (table[index].isEmpty()) {\n table[index] = null;\n }\n return value;\n }\n }\n return null;\n }", "public void remove(Object key){\n map.remove(key);\n }", "boolean remove(K key);", "boolean remove(K key);", "public abstract boolean remove(Key key);", "MapComp<K, V> remove(K k);", "public void remove(String key) throws IOException;", "void remove(ThreadLocal<?> key) {\n cleanUp();\n\n for (int index = key.hash & mask;; index = next(index)) {\n Object reference = table[index];\n\n if (reference == key.reference) {\n // Success!\n table[index] = TOMBSTONE;\n table[index + 1] = null;\n tombstones++;\n size--;\n return;\n }\n\n if (reference == null) {\n // No entry found.\n return;\n }\n }\n }", "void remove(KeyType key, ValueType value);", "@Override\r\n public ValueType remove(KeyType key) {\r\n // if capacity is 0, return null\r\n if (capacity == 0) {\r\n return null;\r\n }\r\n\r\n int index = hashFunction(key); // the index of the pair in the hashTable\r\n\r\n // If the linked list at the index is null, target is not exist, return null\r\n if (hashTable[index] == null) {\r\n return null;\r\n }\r\n\r\n int i = 0; // index tracker\r\n boolean isFound = false; // record whether the key is found\r\n // find the key and record the index of the key (i)\r\n for (HashNode node : hashTable[index]) {\r\n if (node.key.equals(key)) {\r\n isFound = true;\r\n break;\r\n }\r\n i++;\r\n }\r\n\r\n // if the key is found, remove with index of i. Otherwise return null\r\n if (isFound) {\r\n size--;\r\n return hashTable[index].remove(i).value;\r\n } else {\r\n return null;\r\n }\r\n }", "public Entry remove(K key){\r\n int loc = find(key);\r\n if(hashTable[loc]!=null && hashTable[loc].equals(key)){\r\n Entry<K,V> result = hashTable[loc];\r\n hashTable[loc].isDeleted = true;\r\n size--;\r\n return result;\r\n }\r\n else\r\n return null;\r\n }", "public V remove(String key) {\n if (!containsKey(key)) return null;\n int index = hashOf(key);\n Object value = values[index];\n values[index] = null;\n if (value != null) size--;\n return (V) value;\n }", "public void deleteFromValueAtKey(String aKey, String aValue) {\n if (cars.containsKey(aKey)) {\n List<String> newValues = new ArrayList<String>();\n newValues = cars.get(aKey);\n newValues.remove(aValue);\n cars.remove(aKey);\n cars.put(aKey, newValues);\n }\n }", "@Override\n public V remove(K key) {\n return delete(root, key).val;\n }", "@Override\n\tpublic V remove(Object key) {\n\t\tIterator it1 = tabla.iterator();\n\t\tV valor = null;\n\t\tint i = 0;\n\t\twhile (it1.hasNext()) {\n\t\t\tit1.next();\n\t\t\tint indice = tabla.get(i).keySet().indexOf(key);\n\t\t\tif (indice != -1) {\n\t\t\t\tvalor = tabla.get(i).valueSet().get(indice);\n\t\t\t\ttabla.get(i).keySet().remove(indice);\n\t\t\t\ttabla.get(i).valueSet().remove(indice);\n\t\t\t}\n\t\t\ti++;\n\n\t\t}\n\t\treturn valor;\n\t}", "@Override\n public synchronized Object remove(Object key) {\n String strkey = key.toString();\n if (this.ignoreCase) {\n strkey = (String) this.keyMap.remove(strkey.toLowerCase());\n if (strkey == null)\n return null;\n }\n return super.remove(strkey);\n }", "synchronized void removeBucket(RuleBaseBucket bucket) {\n\t\tif (! getBuckets().remove(bucket)) \n\t\t\tthrow new Error(\"Attempted to remove bucket which is not present\");\t\t\n\t\tMap predMap = bucket.rulebase.localRuleBase.typeInfoBase.predicateMap;\n\t\tIterator it = predMap.values().iterator();\n\t\twhile (it.hasNext()) {\n\t\t PredInfo pinfo = (PredInfo) it.next();\t \n\t\t}\n\t}", "public Entry<K, V> remove(K key) {\r\n try {\r\n int hash = key.hashCode();\r\n ListNode<Entry<K, V>> node = table[compFunction(hash)].front();\r\n if (node.isValidNode()) {\r\n Entry<K, V> entry = (Entry<K, V>) node.getItem();\r\n node.remove();\r\n return entry;\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Unhashable key: \" + e);\r\n }\r\n return null;\r\n }", "public V remove(final K key) {\n expunge();\n final int hash = hash(key);\n final int index = index(hash, entries.length);\n Entry<K, V> temp = entries[index];\n Entry<K, V> previous = temp;\n\n while (temp != null) {\n final Entry<K, V> next = temp.nextEntry;\n if (hash == temp.hash && key == temp.get()) {\n size--;\n if (previous == temp) {\n entries[index] = next;\n } else {\n previous.nextEntry = next;\n }\n return temp.value;\n }\n previous = temp;\n temp = next;\n }\n\n return null;\n }", "@Override\n\tpublic void remove(String k, Value v)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void remove(String k, Value v)\n\t{\n\t\t\n\t}", "@Override\n public V remove(K key) {\n// int index = h.apply(key, this.array.length);\n// LinkedList<Entry<K,V>> chain = this.array[index];\n// for (Entry<K,V> item : chain) {\n// if (item.key == key) {\n// chain.remove(item);\n// itemCount--;\n// return item.value;\n// }\n// }\n// return null; // Throw exception\n for (int i = 0; i < this.array.length; i++) {\n if (this.array[i] != null) {\n for (Entry<K,V> item : this.array[i]) {\n if (item.key == key) {\n this.array[i].remove(item);\n itemCount--;\n return item.value;\n }\n }\n }\n }\n return null;\n }", "@Override\n\tpublic V remove(K key) {\n\t\treturn null;\n\t}", "public V remove(K key){\n\t\tV v=null;\n\t\tNode n=searchkey(root, key);\n\t\tif(n!=null)\n\t\t{v=n.value;}\n\t\troot =deletehelp(root, key);\n\t\t\n\t\treturn v;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void removeEntry(String key) {\n\t\t\r\n\t}", "final CacheData<K, V> removeEntry(final Object key) {\r\n // find the place to put it and stuff it in, overwriting what was\r\n // previously there\r\n // synchronization is not needed here, if this value changes to null\r\n // either before or after a client looks at it, it's not a problem\r\n int pos = getKeyPosition(key);\r\n CacheData<K, V> cacheData = getCacheData(pos);\r\n setCacheData(pos, null);\r\n return cacheData;\r\n }", "public int remove(K key, V value) {\n return remove(key, value, 1);\n }", "void remove(String aKey);", "@Override\n public void remove(K key) {\n super.remove(key);\n keySet.remove(key);\n }", "public <K> boolean remove(K key);", "public V remove(Object k) {\n\t\tint index = findKeyIndex(k);\n\n\t\t// we found the right position, now do the removal\n\t\tif (keys[index] != null) {\n\t\t\t// we found the object\n\n\t\t\t// same problem here as with put\n\t\t\tV v = values[index];\n\t\t\tkeys[index] = (K) deletedObject;\n\t\t\tvalues[index] = (V) deletedObject;\n\t\t\tmodCount++;\n\t\t\telements--;\n\t\t\treturn v;\n\t\t} else\n\t\t\t// we did not find the key\n\t\t\treturn null;\n\t}", "public abstract Object remove(CacheKey cacheKey);", "@Override\n\tpublic V remove(Object key) {\n\t\treturn null;\n\t}", "@Override\n\tpublic V remove(Object key) {\n\t\treturn null;\n\t}", "public V remove(K key) {\n CacheableObject cObj;\n\n synchronized(theLock) {\n cObj = valueMap.remove(key);\n if (null != cObj) {\n currentCacheSize -= cObj.containmentCount;\n }\n }\n\n return (cObj == null) ? null : cObj.cachedObject;\n }", "public boolean remove(String key, V value) {\n Collection<V> values = map.get(key);\n\n if (values != null) {\n return values.remove(value);\n }\n\n return false;\n }", "Object remove(Object key) throws NullPointerException;", "@Override\n public V remove(K key) {\n return null;\n }", "protected abstract void _del(String key);", "public V remove(K k) {\n final int h = getHash(k), stripe = h % lockCount, hash = h % buckets.length;\n final Holder<V> old = new Holder<V>();\n ItemNode<K,V>[] bs;\n synchronized(locks[stripe]){\n bs = buckets;\n final ItemNode<K,V> node = bs[hash], \n oldNode = ItemNode.delete(node, k, old);\n bs[hash] = oldNode;\n sizes.addAndGet(stripe, oldNode != node ? -1 : 0);\n }\n return old.get();\n }", "void remove(Object indexedKey, Object key);", "@Override\r\n public V remove(K key) {\r\n int index = getIndex(key);\r\n IDictionary<K, V> temp = chains[index];\r\n if (temp!=null) {\r\n if (temp.containsKey(key)) {\r\n V result = temp.get(key);\r\n temp.remove(key);\r\n load--;\r\n return result;\r\n }\r\n }\r\n throw new NoSuchKeyException();\r\n }", "@Override\r\n\tpublic Object removeObject(Object key) {\n\t\treturn null;\r\n\t}", "protected V bucketRemove(int h, K k) {\n int j = findSlot(h, k);\n if (j < 0) return null; // nothing to remove\n V answer = table[j].getValue();\n table[j] = DEFUNCT; // mark this slot as deactivated\n n--;\n return answer;\n }", "@Override\r\n\tpublic void removeElement(K key) {\n\t\tque.remove(key);\r\n\t\thashMap.remove(key);\r\n\t}", "protected void remove(K key) {\n segment.remove(key);\n }", "public void remove(int key) {\n int hashedKey = hash(key);\n Entry entry = map.get(hashedKey);\n if (entry.key == -1) {\n return;\n } else if (entry.key == key) {\n if (entry.next != null) map.set(hashedKey, entry.next);\n else entry.key = -1;\n } else if (entry.next != null) {\n Entry pre = entry, cur = entry.next;\n while (cur.next != null && cur.key != key) {\n pre = cur;\n cur = cur.next;\n }\n if (cur.key == key) {\n pre.next = cur.next;\n }\n }\n }", "@Override\r\n public ValueType remove(KeyType key) {\r\n \r\n int index = Math.abs(key.hashCode()) % this.capacity;\r\n int removeIndex = -1; //-1 not a possible index so an error would be thrown if its not updated\r\n ValueType returnVar = null; // variable to store the KeyValue object\r\n\r\n\r\n if (containsKey(key)) {\r\n \r\n\r\n for (int i = 0; i < array[index].size(); i++) {\r\n\r\n if (array[index].get(i).getTitle().equals(key)) {\r\n\r\n returnVar = (ValueType) (\"\" + \"ISBN: \" + array[index].get(i).getIsbn()\r\n + System.lineSeparator() + \"Author: \" + array[index].get(i).getAuthor()\r\n + System.lineSeparator() + \"CheckedIn: \" + array[index].get(i).getChekedIn()\r\n + System.lineSeparator() + \"Genre: \" + array[index].get(i).getGenre()\r\n + System.lineSeparator() + \"Description: \" + array[index].get(i).getDescription()); // sets\r\n // returnVar\r\n // to\r\n // the\r\n // KeyValue\r\n // object at the current index\r\n\r\n removeIndex = i;// stores the index in the linked list to remove from\r\n break;\r\n }\r\n\r\n\r\n }\r\n\r\n this.array[index].remove(removeIndex); //removes the specified index from the linked list\r\n\r\n this.size--;\r\n \r\n \r\n \r\n }\r\n \r\n return returnVar;\r\n \r\n }" ]
[ "0.7452562", "0.69302005", "0.69225097", "0.6875168", "0.6870545", "0.6864116", "0.6752615", "0.67368793", "0.67368793", "0.67368793", "0.67312294", "0.6633304", "0.6633304", "0.65977395", "0.65881383", "0.6569475", "0.65511876", "0.6506473", "0.647282", "0.6463389", "0.64380914", "0.6436055", "0.64347166", "0.64347166", "0.64347166", "0.6421047", "0.64198846", "0.6416243", "0.6405504", "0.63968706", "0.63766104", "0.6375966", "0.63705254", "0.6367052", "0.63448095", "0.63292176", "0.6317896", "0.62841415", "0.6277819", "0.6277819", "0.6277819", "0.62590605", "0.6257802", "0.62519974", "0.6224719", "0.621337", "0.62004554", "0.62000865", "0.6197366", "0.61897796", "0.6187019", "0.6186318", "0.6163494", "0.6150991", "0.61476487", "0.61476487", "0.61397135", "0.6126541", "0.60952574", "0.6078556", "0.60766953", "0.60620946", "0.60562605", "0.60526294", "0.6045326", "0.60441345", "0.60440594", "0.60398614", "0.60385925", "0.6001447", "0.5995176", "0.5981109", "0.5981109", "0.5976615", "0.5972062", "0.59715706", "0.5956718", "0.59350276", "0.5933716", "0.59233063", "0.5917902", "0.59171164", "0.59079", "0.590654", "0.58979535", "0.58979535", "0.5896264", "0.588691", "0.5885366", "0.5877209", "0.58709836", "0.5863275", "0.58579564", "0.58348924", "0.58157796", "0.5803505", "0.5792232", "0.5791316", "0.57904917", "0.57897913" ]
0.71176267
1
Determines the total number of keys contained in buckets.
@Override public int size() { return keySet().size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int size() {\n int count = 0;\n for (Counter c : map.values())\n count += c.value();\n return count;\n }", "int getClusteringKeyCount();", "public int numberOfEntries();", "int getPartitionKeyCount();", "protected final long storedPagesCount(int bucket) throws IgniteCheckedException {\n long res = 0;\n\n Stripe[] tails = getBucket(bucket);\n\n if (tails != null) {\n for (Stripe tail : tails) {\n long tailId = tail.tailId;\n\n while (tailId != 0L) {\n final long pageId = tailId;\n final long page = acquirePage(pageId, IoStatisticsHolderNoOp.INSTANCE);\n try {\n long pageAddr = readLock(pageId, page);\n\n assert pageAddr != 0L;\n\n try {\n PagesListNodeIO io = PagesListNodeIO.VERSIONS.forPage(pageAddr);\n\n int cnt = io.getCount(pageAddr);\n\n assert cnt >= 0;\n\n res += cnt;\n tailId = io.getPreviousId(pageAddr);\n\n // In reuse bucket the page itself can be used as a free page.\n if (isReuseBucket(bucket) && tailId != 0L)\n res++;\n }\n finally {\n readUnlock(pageId, page, pageAddr);\n }\n }\n finally {\n releasePage(pageId, page);\n }\n }\n }\n }\n\n assert res == bucketsSize.get(bucket) : \"Wrong bucket size counter [exp=\" + res + \", cntr=\" + bucketsSize.get(bucket) + ']';\n\n return res;\n }", "Integer countForKey(String key);", "public int sizeOfTypekeyArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TYPEKEY$16);\r\n }\r\n }", "int getEntryCount();", "int sizeOfKeyArray();", "long getUsesCount(K key);", "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}", "public int count( K key ) {\n Integer i = map.get( key );\n return i == null ? 0 : i;\n }", "int getNumKeys();", "public int getNumberOfEntries();", "@Override\n public int getG2HashTableNumberOfEntries() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.G2_HASH_TABLE_NUMBER_OF_ENTRIES_);\n return ((Integer)retnValue).intValue ();\n }", "public int numOfHashFunctions() {\n return config().getK();\n }", "public int size() {\r\n return numberOfKeys;\r\n }", "private static void doBucketCount(HashMap<String, Integer> bigramCount) {\n\t\t//bucketCountT\n\t\tbucketCountT= new HashMap<Integer,Double>();\n\t\t\t\t\n\t\tfor(String s:bigramCount.keySet()){\n\t\t\tdouble count= bucketCountT.getOrDefault(bigramCount.get(s), (double)0);\n\t\t\tbucketCountT.put(bigramCount.get(s), count+1);\n\t\t}\n\t}", "public int size() {\n int size = 0;\n for (Collection<V> value : map.values()) {\n size += value.size();\n }\n return size;\n }", "public int size() \n\t{\n\t\treturn numKeys;\n\t}", "public int getClusteringKeyCount() {\n return clusteringKey_.size();\n }", "public int size() {\n if (hasKeys) {\n return keys.size();\n } else {\n return objects.size();\n }\n }", "double bucketSize(long bucket, Rounding.DateTimeUnit unit);", "public Integer sizeOfMap() {\n\t\tMap<String, String> simpleMap = createSimpleMap(\"Key\", \"Value\");\n numberOfEntries = 10;\n\t\treturn simpleMap.size();\n\t}", "public int getPartitionKeyCount() {\n return partitionKey_.size();\n }", "@Override\n\tpublic int size() {\n\t\tint tamano = 0;\n\t\tint i = 0;\n\t\tIterator it = tabla.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t\ttamano += tabla.get(i).keySet().size();\n\t\t\ti++;\n\t\t}\n\t\treturn tamano;\n\t}", "public int getNrOfAccounts() {\n return getPublicKeys().size();\n }", "public int getClusteringKeyCount() {\n return clusteringKey_.size();\n }", "public int size() {\n return keys.length;\n }", "public int getKeyspacesCount() {\n if (keyspacesBuilder_ == null) {\n return keyspaces_.size();\n } else {\n return keyspacesBuilder_.getCount();\n }\n }", "public int getKeyCount() {\n return associationCountMap.size();\n }", "@Override\n public int size() {\n return numKeys;\n }", "int getKeySize();", "@Override\n public int size() {\n return numKeys;\n }", "public int getPartitionKeyCount() {\n return partitionKey_.size();\n }", "private int getBucketIndex( K key ) {\r\n\t\tint hashCode = key.hashCode();\r\n\t\treturn hashCode % numBuckets;\r\n\t}", "private int hash (k key) {\n\t\treturn Math.abs(key.hashCode())\t% buckets.length;\n\t}", "@Override\n\tpublic int getNumberOfValues() {\n\t\treturn MIN_BUCKET_SIZES.size();\n\t}", "public int size()\n\t{\n\t\tint size = 0;\n\t\tfor(List<Registry.Entry> li : this.reg.values())\n\t\t\tsize += li.size();\n\t\treturn size;\n\t}", "public void countCollisions() {\n int col2 = 0;\n int col3 = 0;\n int col4 = 0;\n int col5OrMore = 0;\n \n for (int x = 0; x < buckets.length; x++) {\n SList chain = (SList) buckets[x];\n if (chain.length() == 2) {\n col2++;\n }\n if (chain.length() == 3) {\n col3++;\n }\n if (chain.length() == 4) {\n col4++;\n }\n if (chain.length() >= 5) {\n col5OrMore++;\n }\n }\n System.out.println(\"=========HASHTABLE================\");\n System.out.println(\"# of entries: \" + size);\n System.out.println(\"Number of single collisions: \"+col2);\n System.out.println(\"Number of double collisions: \"+col3);\n System.out.println(\"Number of triple collisions: \"+col4);\n System.out.println(\"Number of 5 or more collisions: \"+col5OrMore);\n }", "int count() {\n return index.capacity() / 24;\n }", "public int getNumberOfEntries() ;", "public int countBucket(int index) throws IndexOutOfBoundsException{\n if(index < 0 || index >= Table.size()) {\n \tthrow new IndexOutOfBoundsException(\"countBucket(): \" \n \t\t\t+ \"index is outside bounds of the table\");\n }\n return Table.get(index).getLength();\n }", "int getKeyspacesCount();", "public int total_maps() {\r\n\t\tcheck( 1 );\r\n\r\n\t\treturn total_maps;\r\n\t}", "private int getKeyLength() {\n MongoCursor<Document> cursor = this.keystoreCollection.find(eq(\"conf\", \"homomorphic-keylength\")).iterator();\n\n int keyLength = 2048; // Default value is 2048 bits\n while (cursor.hasNext()) {\n keyLength = cursor.next().getDouble(\"keylength\").intValue();\n }\n return keyLength;\n }", "@Override\r\n public int getSize()\r\n {\r\n return keyHash.size();\r\n }", "public int calcBucket(int keyValue) {\n return (keyValue % buckets.length);\n }", "public int calcBucket(int keyValue) {\n\t\treturn(keyValue % buckets.length);\r\n\t}", "public int countPoolMaps(){\n\n\t\treturn poolMaps.size();\n\t}", "public int getNumberOfEntries()\r\n\t{\r\n\t\treturn tr.size();\r\n\t}", "public int getTotalKeyLength() {\n return this.primaryKeyLength + this.secondaryKeyLength;\n }", "public long getCount() {\n long count = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n count += encoder.getCount();\n }\n }\n \n return count;\n }", "public int getCount(final K key) {\n throwIfNullKey(key);\n final Integer count = associationCountMap.get(key);\n if (count == null) {\n return 0;\n }\n return count;\n }", "@Override\r\n\tpublic int size() {\n\t\treturn keys.size();\r\n\t}", "public int getNumEntries ()\n\t{\n\t\treturn entries.size ();\n\t}", "public static int registeredSize() {\n\t\tInteger count = new Integer(0);\n\t\tObject object = cache.get(FQN_COUNT, LOGGED_COUNT);\n\t\tif (object != null) {\n\t\t\tcount = (Integer) object;\n\t\t}\n\n\t\treturn (count == null ? 0 : count.intValue());\n\t}", "public int numNodes()\r\n {\r\n\tint s = 0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t s += nt.numNodes();\r\n\treturn s;\r\n }", "int getChunksCount();", "int getChunksCount();", "public synchronized int size() throws IOException {\n\t\t\treadIndex();\n\t\t\treturn keys.size();\n\t\t}", "public int size() {\n int size = 0;\n\n Collection<CacheableObject> values = new HashSet<CacheableObject>();\n synchronized(theLock) {\n values.addAll(valueMap.values());\n }\n\n for (CacheableObject cObj : values) {\n if (! this.isExpired(cObj)) {\n size++;\n }\n }\n\n return size;\n }", "@Override\n public int getKeyspacesCount() {\n return keyspaces_.size();\n }", "void assertTotalCntEquals(T key, int expected);", "public int size(){\n\t\tListMapEntry temp = first;\n\t\tint c=0;\n\t\twhile(temp!=null){\n\t\t\tc++;\n\t\t\ttemp = temp.getNext();\n\t\t}\n\t\treturn c;\n\t}", "public int size()\r\n/* 106: */ {\r\n/* 107:194 */ assert (checkRep());\r\n/* 108:195 */ return this.map.keySet().size();\r\n/* 109: */ }", "private int getNumberOfAccounts()\n {\n ProtocolProviderFactory factory =\n DictAccRegWizzActivator.getDictProtocolProviderFactory();\n\n return factory.getRegisteredAccounts().size();\n }", "public int getLength(){\n return keys.length;\n }", "public PrimitiveVS<Integer> size() {\n return keys.size();\n }", "private void incrementBucketSize(int bucket) {\n bucketsSize.incrementAndGet(bucket);\n }", "private static long shardAdjustedKeyCount(ShardTracker boundaries,\n Set<SSTableReader> sstables,\n double survivalRatio)\n {\n return Math.round(boundaries.shardAdjustedKeyCount(sstables) * survivalRatio);\n }", "protected int dictionarySize() {\n int count = 0;\n \n for ( WordList w : this.wordLists ) {\n count += w.size();\n }\n \n return count;\n }", "public int getNumEntries() {\n return numEntries;\n }", "public static int calculateRecordCount(Hashtable data) {\r\n int r = 0;\r\n Enumeration keys = data.keys();\r\n while (keys.hasMoreElements()) {\r\n Object oKey = keys.nextElement();\r\n Object v = data.get(oKey);\r\n if ((v != null) && (v instanceof Vector)) {\r\n r = ((Vector) v).size();\r\n break;\r\n }\r\n }\r\n return r;\r\n }", "int find(K key)\n {\n return Math.abs(key.hashCode() % this.buckets.length);\n }", "public int count () throws IOException {\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tinit();\n\t\twhile(hasNext()) {\n\t\t\tElement el = nextElement();\n\t\t\tint hash = el.GetHash();\n\t\t\tint pos = locate (list, hash);\n\t\t\tif ((pos == list.size()) || (list.get(pos) != hash)) {\n\t\t\t\tlist.add(pos, hash);\n\t\t\t}\n\t\t\t/*for (i=0; i<list.size() && list.get(i)<hash; i++) {}\n\t\t\t\tif ((i==list.size()) || (list.get(i) != el.GetHash())) {\n\t\t\t\t\tlist.add(i, hash);\n\t\t\t\t}*/\n\t\t}\n\t\treturn list.size();\n\t}", "public int getNumEntries() {\n return entries.size();\n }", "public int getEntryCount() {\n return mem.getChar(34);\n }", "public int getNrOfAssociations() {\n int size = 0;\n for (PriorityCollection associations : memory.values()) {\n size += associations.size();\n }\n return size;\n }", "long getOwnedEntryCount();", "public int size() {\r\n\t\tint size = 0;\r\n\t\tfor (Integer key : connectionLists.keySet()) {\r\n\t\t\tsize += connectionLists.get(key).size();\r\n\t\t}\r\n\t\treturn size;\r\n\t}", "public int getVertexCount() {\n return map.keySet().size();\n }", "public int getTotalSPEntries() {\n\t\tList<SalePurchase> list = new ArrayList<>(salePurchaseEntries.values());\n\t\treturn list.size();\n\t}", "public static int size_count() {\n return (16 / 8);\n }", "int getNumEvents() {\n int cnt = eventCount;\n for (Entry entry : queue) {\n cnt += entry.eventCount;\n }\n return cnt;\n }", "int getNumOfChunks();", "final int lengthInBits(final K key) {\n\tif (key == null) {\n\t return 0;\n\t}\n\n\treturn keyAnalyzer.lengthInBits(key);\n }", "public Integer count() {\n\t\tif(cache.nTriples != null)\n\t\t\treturn cache.nTriples;\n\t\treturn TripleCount.count(this);\n\t}", "public int size(K lo, K hi);", "int getQuotaMetricsCount();", "@Override\n\tpublic int getSize() {\n\t\treturn numberOfEntries;\n\t}", "int getCachedCount();", "public int sizeOfCurbArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(CURB$10);\r\n }\r\n }", "@Override\n public int keySize() {\n return ciper.keySize() + 8;\n }", "public int getCount(){\n int c = 0;\n for(String s : this.counts){\n c += Integer.parseInt(s);\n }\n return c;\n }", "public abstract int getPageFreeSpace(int bucket);", "public int getNumPartitions() {\n\t\treturn (new HashSet<PartitionType>(partitionMap.values())).size(); \n\t}", "public Integer getNumberOfEntries() {\n return this.numberOfEntries;\n }", "public Integer size() { return this.entries.length(); }", "private int getVariablesNumberInMap() {\n\t\tSet<String> variables = KeyValue.getFirstLevelKeys();\n\t\tint count = 0;\n\t\tfor (String name : variables) {\n\t\t\tif (!name.contains(\"~\")) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}" ]
[ "0.68037444", "0.6782575", "0.6767797", "0.67551064", "0.6749506", "0.6724406", "0.67027014", "0.6593513", "0.6584498", "0.65783465", "0.6571228", "0.65578264", "0.6522794", "0.64888954", "0.64565116", "0.6428196", "0.6427191", "0.63974017", "0.6378927", "0.63615656", "0.6357032", "0.63386106", "0.63325787", "0.6305169", "0.63019127", "0.6286741", "0.6283127", "0.62783796", "0.6275996", "0.625762", "0.6257533", "0.6239939", "0.62395316", "0.6238661", "0.62275594", "0.62158865", "0.6213275", "0.62131804", "0.62095964", "0.6197094", "0.6196034", "0.6187057", "0.6165256", "0.6157", "0.6148895", "0.61080545", "0.6099883", "0.60796136", "0.6061358", "0.60571283", "0.6053255", "0.60399044", "0.6033253", "0.60324645", "0.60296506", "0.60294724", "0.6028821", "0.60284317", "0.60196894", "0.60196894", "0.6016145", "0.6004695", "0.5998233", "0.59930444", "0.5978195", "0.59772444", "0.5949163", "0.59475565", "0.5945888", "0.5940215", "0.5934175", "0.5934078", "0.59289795", "0.59090966", "0.59058815", "0.59051466", "0.5902099", "0.5897485", "0.5888331", "0.58847547", "0.58768666", "0.58285284", "0.58265233", "0.5822179", "0.58200616", "0.58155483", "0.580767", "0.58002704", "0.57984006", "0.5796937", "0.5796611", "0.57922906", "0.5783863", "0.5782102", "0.57817024", "0.57721335", "0.5755319", "0.5754215", "0.5746018", "0.5732031" ]
0.6176626
42
Returns all values contained in the buckets.
@Override public Collection<V> values() { Collection<V> valueList = new ArrayList<V>(); for (Object o : buckets) { Bucket b = (Bucket) o; valueList.addAll(b.values()); } return valueList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<? extends MyHashMap.Bucket<K, V>> getBuckets() {\n\t\treturn (ArrayList<? extends MyHashMap.Bucket<K, V>>) b;\n\t}", "public Set<v> getValues(k key) {\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\tSet<v> resultSet = new HashSet<v>();\n\t\t\n\t\twhile (curr != null) {\n\t\t\tif (curr.getKey().equals(key))\n\t\t\t\tresultSet.add(curr.getValue());\t\t\t\n\t\t\tcurr = curr.getNext();\n\t\t}\n\t\treturn resultSet;\n\t}", "@Override\n List<? extends Bucket> getBuckets();", "@Override\n public Collection<V> values() {\n Collection<V> values = new HashSet<V>(size());\n for (LinkedList<Entry<K,V>> list : table) {\n for (Entry<K,V> entry : list) {\n if (entry != null) {\n values.add(entry.getValue());\n }\n }\n }\n return values;\n }", "public bucket[] getData() {\n\t\treturn (bucket.clone());\n\t}", "@Override\n\tpublic Collection<V> values() {\n\t\tList<V> list = Util.newList();\n\t\tfor (K key : keys) {\n\t\t\tlist.add(map.get(key));\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "@Override\n\tpublic Collection<Value> values() {\n\t\tCollection<Value> c = new ArrayList<Value>();\n\t\tif (!isEmpty()) {\n\t\t\tFork<Key, Value> f = (Fork<Key, Value>) bst;\n\t\t\tEntry<Key, Value> e = new Entry<>(f.getKey().get(), f.getValue().get());\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tEntry<Key, Value>[] a = (Entry<Key, Value>[]) Array.newInstance(e.getClass(), size());\n\t\t\tbst.saveInOrder(a);\n\t\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t\tc.add(a[i].getValue());\n\t\t\t}\n\t\t}\n\t\treturn c;\n\t}", "@Override\n public Collection<T> values() {\n List<T> values = new ArrayList<>();\n for (Map.Entry<String, T> v : entries.values()) {\n values.add(v.getValue());\n }\n return values;\n }", "@Override\n public List<V> values() {\n List<V> values = new AList<>();\n for(int i =0; i < capacity; i++){\n Entry n = (Entry)table[i];\n if(n != null && !n.isRemoved())\n values.add(n.getValue()); \n }\n assert values.size() == size;\n return values; \n }", "List getValues();", "public V[] values() {\n MyStack<V> result = new MyStack<>();\n\n for (Object entry : this.table) {\n if (entry != null) {\n Entry<K, V> current = (Entry<K, V>) entry;\n\n while (current.hasNext()) {\n result.push(current.getValue());\n current = current.getNext();\n }\n result.push(current.getValue());\n }\n }\n return result.toArray();\n }", "List<AbstractExternalData> bundleBuckets(Iterable<DatasetListWithTotal> buckets)\n {\n long total = 0;\n\n List<AbstractExternalData> result = new LinkedList<AbstractExternalData>();\n\n for (DatasetListWithTotal bucket : buckets)\n {\n long bucketSize = bucket.getCumulatedSize();\n if (total + bucketSize < maxArchiveSize)\n {\n result.addAll(bucket.getList());\n total += bucketSize;\n }\n }\n if (total >= minArchiveSize)\n {\n return result;\n }\n else\n {\n return null;\n }\n }", "HCollection values();", "public Collection values() {\n return map.values();\n }", "GroupBuckets buckets();", "public Collection<Collection<V>> values() {\n return map.values();\n }", "@Override\r\n\tpublic Set<K> keySet() {\r\n\t\tSet<K> keySet = new HashSet<K>();\r\n\t\tfor (Object o : buckets) {\r\n\t\t\tBucket b = (Bucket) o;\r\n\t\t\tkeySet.addAll(b.keySet());\r\n\t\t}\r\n\t\treturn keySet;\r\n\t}", "public ArrayList<WordCode<K, V>> entrySet() {\n\t\tArrayList<WordCode<K, V>> entrySet = new ArrayList<>();\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tfor (WordCode<K, V> wc : ll) {\n\t\t\t\tentrySet.add(wc);\n\t\t\t}\n\t\t}\n\t\treturn entrySet;\n\t}", "public Set<Integer> getAllValuesOfby() {\n return rawStreamAllValuesOfby(emptyArray()).collect(Collectors.toSet());\n }", "Collection<V> values();", "Collection<V> values();", "public ListVS<V> getValues() {\n ListVS<V> result = new ListVS<V>(getUniverse());\n for (V value : this.entries.values()) {\n result = result.add(value);\n }\n return result;\n }", "Collection<V> getAllEntries();", "@Override\n\tpublic Collection<V> values() {\n\t\tArrayList<V> valores = new ArrayList<V>();\n\t\tIterator it = tabla.iterator();\n\t\tint i = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tIterator it2 = tabla.get(i).valueSet().iterator();\n\t\t\tit.next();\n\t\t\tint j = 0;\n\t\t\twhile (it2.hasNext()) {\n\t\t\t\tit2.next();\n\t\t\t\tvalores.add(tabla.get(i).valueSet().get(j));\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn new HashSet<V>(valores);\n\t}", "public List<V> values()\r\n\t{\r\n\t\tList<V> values = new ArrayList<V>();\r\n\t\t\r\n\t\tfor(Entry element : data)\r\n\t\t{\r\n\t\t\tvalues.add(element.value);\r\n\t\t}\r\n\t\t\t\t\r\n\t\treturn values;\r\n\t}", "public Iterable<V> values();", "public Collection<Object> values()\n {\n return data.values();\n }", "@Override\n public List<CacheObject<K, V>> getAll(){\n return new ArrayList<>(this.cache.values());\n }", "@Override\n List<Value> values();", "public java.util.Map<String, BucketInfo> getFacets() {\n if (facets == null) {\n facets = new com.amazonaws.internal.SdkInternalMap<String, BucketInfo>();\n }\n return facets;\n }", "public bucket getbucket(int x) {\n\t\treturn bucket[x];\n\t}", "public List<Object> getValues();", "public Set<K> keySet() {\n Set<K> keys = new HashSet<>();\n if (bucket.length != 0) {\n for (int i = 0; i < bucket.length; i++) {\n keys.add(bucket[i].getKey());\n }\n }\n return keys;\n }", "Set<Entry<K, V>> getRegisteredValues();", "public Iterator<V> Values(){\n\treturn new Iterator<V>() {\n\t int iteratorbucket = 0;\n\t Iterator<MyEntry> itr = table[iteratorbucket].iterator();\n\t int nextCount = 0;\n\n\t public boolean hasNext() {\n\t // can just check nextCount and size\n\t if(nextCount>=size) {\n\t \treturn false;\n\t }\n\t return true;\n\t }\n\n\t public V next() {\n\t // if my hasNext() is false, I should throw a NoSuchElementException\n\t if(hasNext()==false) {\n\t \tthrow new NoSuchElementException();\n\t }\n\t // while itr.hasNext() is false, increment bucket and get the next iterator\n\t while(itr.hasNext()==false) {\n\t \titeratorbucket++;\n\t \titr=table[iteratorbucket].iterator();\n\t }\n\t // now increment nextCount and return the key from the item itr.next() returns\n\t \tnextCount++;\n\t \treturn itr.next().value;\n\t \n\t }\n\n\t public void remove() {\n\t // just ask itr to remove, but I need to update my size and nextCount\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }\n\t };\n }", "public List<T> values();", "Collection<T> getAll() {\n _readLock.lock();\n try {\n return ImmutableList.copyOf(_toMap.values());\n } finally {\n _readLock.unlock();\n }\n }", "public Iterator getValues() {\n synchronized (values) {\n return Collections.unmodifiableList(new ArrayList(values)).iterator();\n }\n }", "public Collection<V> getAllElements() {\n\t\treturn cacheMap.values();\n\t}", "public Collection<String> valuesOfMap() {\n Map<String, String> tempMap = createSimpleMap(\"Fondue\",\"Cheese\");\n\t\treturn tempMap.values();\n\t}", "public void clearBuckets() {\n this.buckets.clear();\n }", "public ArrayList<Double> getAllValues()\n {\n return allValues;\n }", "@Override\n public List<String> AllFileFromS3Bucket()\n {\n List<Bucket> buckets= amazonS3.listBuckets();\n List<String> keys = new ArrayList<>();\n \n for (Bucket b :buckets) {\n \t System.out.println(\" **** \" + b.getName());\n \t keys.add(b.getName());\n }\n\treturn keys;\n \n }", "public Set<v> getKeys(v value) {\n\t\tSet<v> resultSet = new HashSet<v>();\n\t\tfor (int i = 0; i < buckets.length; i++) {\n\t\t\tNode<k,v> curr = buckets[i];\n\t\t\t\n\t\t\twhile (curr != null) {\n\t\t\t\tif (curr.getValue().equals(value))\n\t\t\t\t\tresultSet.add((v) curr.getKey());\n\t\t\t\tcurr = curr.getNext();\n\t\t\t}\n\t\t}\n\t\treturn resultSet;\n\t}", "Object[] getValues();", "Object[] getValues();", "@Override\n\tpublic Iterable<K> values() {\n\t\treturn null;\n\t}", "public List<String> listBuckets() {\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (Bucket bucket : s3client.listBuckets()) {\n\t\t\tlist.add(bucket.getName());\n\t\t\t// System.out.println(\" - \" + bucket.getName());\n\t\t}\n\n\t\treturn list;\n\t}", "@GetMapping(\"/buckets\")\n @Timed\n public ResponseEntity<List<BucketDTO>> getAllBuckets(@ApiParam Pageable pageable) {\n log.debug(\"REST request to get a page of Buckets\");\n Page<BucketDTO> page = bucketService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/buckets\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }", "T[] getValues();", "public HashMap<K,V> listAll();", "public List<V> values() {\n return values;\n }", "public List<V> values() {\n return values;\n }", "public List<T> values() {\n return values(System.currentTimeMillis());\n }", "@Override\r\n\tpublic Collection<Account> getAccountsHashmap() {\n\t\treturn dataMap.values();\r\n\t}", "public Object[] entrySet() {\n MyStack<Object> result = new MyStack<>();\n\n for (Object entry : this.table) {\n if (entry != null) {\n Entry<K, V> current = (Entry<K, V>) entry;\n\n while (current.hasNext()) {\n result.push(current);\n current = current.getNext();\n }\n result.push(current);\n }\n }\n return result.toArray();\n }", "@Override\r\n\tpublic void clear() {\r\n\t\tbuckets = new Object[numBuckets];\r\n\t\tfor (int i = 0; i < numBuckets; i++) {\r\n\t\t\tbuckets[i] = new Bucket();\r\n\t\t}\r\n\t}", "public List<Bucket> findBuckets(String username) throws IOException {\n\t\treturn null;\r\n\t}", "public Set<V> getSubValues(Class<?> c) {\n return getValues(c, false);\n }", "public Collection<RegionLocations> getAll() {\n return Collections.unmodifiableCollection(cache.values());\n }", "public Set<T> values() {\n\t\t// This is immutable to prevent add/remove operation by 3rd party developers.\n\t\treturn Collections.unmodifiableSet(values);\n\t}", "public Collection<V> values() {\r\n\t\t\tCollection<V> valueList = new ArrayList<V>();\r\n\t\t\tListNode current = header;\r\n\t\t\twhile (current != null) {\r\n\t\t\t\tvalueList.add(current.value);\r\n\t\t\t\tcurrent = current.next;\r\n\t\t\t}\r\n\t\t\treturn valueList;\r\n\t\t}", "public Bucket() {\n\t\t\te = new ArrayList<Entry<K, V>>();\n\t\t}", "public Iterator<JacksonJrValue> elements() {\n return _values.iterator();\n }", "List<V> getAll(K key) {\n List<V> values = store.get(key);\n return values != null ? values : Collections.<V>emptyList();\n }", "public Iterator<V> values();", "public Iterator<V> values();", "public ArrayList<T> getAll() {\n\t\treturn new ArrayList<T>(this.data.values());\n\t}", "public Collection<T> values(){\n\t\treturn null;\r\n\t\t//TODO\r\n\t}", "public Collection<SingleValue> values() {\n return Collections.unmodifiableCollection(container.values());\n }", "public Collection<V> values() {\n\t\treturn new ValueCollection();\n\t}", "public ArrayList<Double> getValues() {\n\n ArrayList<Double> values = new ArrayList<Double>(); //create new arraylist to return\n FreqNode tmpNode; //create temp node \n\n //traverse entire table \n for (FreqNode node : frequencyTable) {\n //set node \n tmpNode = node;\n while (true) {\n if (tmpNode == null) {\n break;\n } else {\n //add value to node in table and cast to double \n values.add((node.getValue() * 1.0));\n //set it to the next node \n tmpNode = tmpNode.getNext();\n } //end else \n }//end if \n }\n // Return the keys\n return values;\n }", "public Object[] getValues();", "public List<Integer> GetPossibleValues()\n {\n return this._valuesToPut;\n }", "@Override\n public Iterator<Entry<Integer, T>> iterator() {\n List<Entry<Integer, T>> pairs = new ArrayList<Entry<Integer, T>>(count);\n\n for(int i = 0; i < count; i++) {\n pairs.add(new MapEntry<T>(extractKey(buckets[i]), (T)data[i]));\n }\n\n return pairs.iterator();\n }", "public Map<String, Value> getValues() {\n while (m_values.size() <= m_level) {\n m_values.add(new HashMap<String, Value>());\n }\n return m_values.get(m_level);\n }", "public Iterable<Entry<K, V>> entrySet() {\n ArrayList<Entry<K, V>> buffer = new ArrayList<>();\n for (int h = 0; h < capacity; h++)\n if (!isAvailable(h)) buffer.add(table[h]);\n return buffer;\n }", "java.util.List<com.google.api.servicecontrol.v1.MetricValue> getMetricValuesList();", "public List<V> getMergedValues(Set<K> keys){\r\n List<V> mergedValues = new LinkedList<>();\r\n for(Object k : keys){\r\n mergedValues.addAll(getValues(k));\r\n }\r\n return mergedValues;\r\n }", "public Iterable<Map.Entry<String,Double>> getConstants() {\r\n return Collections.unmodifiableMap(constants).entrySet();\r\n }", "public com.amazon.s3.ListAllMyBucketsResponse listAllMyBuckets(com.amazon.s3.ListAllMyBuckets listAllMyBuckets);", "public Stream<Integer> streamAllValuesOfby() {\n return rawStreamAllValuesOfby(emptyArray());\n }", "Values values();", "public double[] percentiles() {\n return values;\n }", "public Collection<SubsValue> getSubsValues() {\n\t\tCollection<SubsValue> result = new HashSet<SubsValue>();\n\n\t\tif (TemplatesStore.getInstance().getData().values() != null) {\n\t\t\tfor (TemplatesStoreData data : TemplatesStore.getInstance().getData().values()) {\n\t\t\t\tif (this.isSelectedCartridge(data)) {\n\t\t\t\t\tCollection<SubsValue> subsvals = data.getSubstitutes();\n\t\t\t\t\tif (subsvals != null) {\n\t\t\t\t\t\tDataStore.getInstance().mergeSubsValues(subsvals, false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "public Set<DynamicEntity> getAllValuesOfvehicle() {\n return rawStreamAllValuesOfvehicle(emptyArray()).collect(Collectors.toSet());\n }", "public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < mySize; i++) {\n\t\t\tfor (int j = 0; j < myBuckets.get(i).size(); j++) {\n\t\t\t\tsb.append(\"(\" + myBuckets.get(i).get(j).myKey + \", \" + myBuckets.get(i).get(j).myValue + \"), \");\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "public Set<V> getSuperValues(Class<?> c) {\n return getValues(c, true);\n }", "@JsonIgnore\n List<T> getValues();", "public List getValues() {\r\n\t\tif (this.values == null) {\r\n\t\t\tthis.values = new ArrayList();\r\n\t\t}\r\n\t\treturn values;\r\n\t}", "public static synchronized Collection<String> values() {\n\t\treturn ClassRegistry.dictionary.values();\n\t}", "public java.util.List<java.lang.String> getValuesList() {\n return java.util.Collections.unmodifiableList(result.values_);\n }", "Bucket getBucket(K key) {\r\n\t\treturn (Bucket) buckets[key.hashCode() % numBuckets];\r\n\t}", "@Override\n\tpublic int getPositiveValues(final int bucket, final int solnIdx, final int numChoices, int [] positiveValues) {\n\t\t/* Get the local entries at this index */\n\t\tint baseIndex = getEntriesIndex(bucket, solnIdx);\n\t\tint [] localEntries = new int[numChoices];\n\t\tint sumValues = 0;\n\t\t/* Zero out negative values and store in the returned array */\n\t\tfor ( int c = 0; c < numChoices; ++c ) {\n\t\t\tlocalEntries[c] = (entries[baseIndex + c] > 0)? entries[baseIndex + c] : 0;\n\t\t\tpositiveValues[c] = localEntries[c];\n\t\t\tsumValues += localEntries[c];\n\t\t}\n\t\treturn sumValues;\n\t}", "public Collection<V> values() {\n\t\treturn null;\r\n\t}", "Array<Object> getInstanceValues();", "public String getBucket();", "public List<B> getBins() {\n return ImmutableList.copyOf(bins);\n }", "public Collection<String> getValues(String key) {\n\t\tfinal Collection<String> values = new ArrayList<>();\n\t\tfinal Iterator<Map.Entry<String, String>> iter = entries.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tfinal Map.Entry<String, String> entry = iter.next();\n\t\t\tif (entry.getKey().equals(key)) {\n\t\t\t\tvalues.add(entry.getValue());\n\t\t\t}\n\t\t}\n\t\treturn values;\n\t}", "public void clear() {\n buckets = new ArrayList<>();\n for (int i = 0; i < numBuckets; i++) {\n buckets.add(new ArrayList<>());\n }\n keySet = new HashSet<>();\n numEntries = 0;\n }" ]
[ "0.6996106", "0.6843082", "0.6798997", "0.67824084", "0.6700322", "0.6521565", "0.6501521", "0.64637756", "0.6290933", "0.62905186", "0.622509", "0.6204145", "0.6190673", "0.6186875", "0.6172538", "0.6172458", "0.61434877", "0.6081644", "0.6035694", "0.60325265", "0.60325265", "0.60117346", "0.600376", "0.5979621", "0.5952654", "0.58745605", "0.5850598", "0.5846775", "0.5836097", "0.5816839", "0.58130157", "0.58102405", "0.5804235", "0.5801042", "0.57723624", "0.57589936", "0.5753333", "0.57402354", "0.57392013", "0.57301795", "0.57055193", "0.5702783", "0.5680581", "0.56741923", "0.5656724", "0.5656724", "0.5640651", "0.56337017", "0.5631234", "0.56075305", "0.5600566", "0.55966043", "0.55966043", "0.5593716", "0.5575974", "0.5573659", "0.5570406", "0.5558848", "0.55516094", "0.5545165", "0.5539022", "0.5538267", "0.5531979", "0.5520242", "0.55200064", "0.55137277", "0.55137277", "0.551306", "0.5510822", "0.5502436", "0.54685265", "0.54644686", "0.54601943", "0.54592997", "0.5446173", "0.5445053", "0.54299426", "0.54204744", "0.5419438", "0.54167396", "0.5413285", "0.5405999", "0.54003084", "0.5393742", "0.5384567", "0.53729075", "0.53721404", "0.5364806", "0.5343245", "0.5326277", "0.532249", "0.5321012", "0.5320676", "0.53192747", "0.5288463", "0.52872217", "0.52637887", "0.5262854", "0.5251024", "0.52487946" ]
0.8221849
0
Determines the number of keys contained in a bucket.
public int size() { int size = 0; ListNode counter = header; while (counter != null) { size++; counter = counter.next; } return size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPartitionKeyCount();", "protected final long storedPagesCount(int bucket) throws IgniteCheckedException {\n long res = 0;\n\n Stripe[] tails = getBucket(bucket);\n\n if (tails != null) {\n for (Stripe tail : tails) {\n long tailId = tail.tailId;\n\n while (tailId != 0L) {\n final long pageId = tailId;\n final long page = acquirePage(pageId, IoStatisticsHolderNoOp.INSTANCE);\n try {\n long pageAddr = readLock(pageId, page);\n\n assert pageAddr != 0L;\n\n try {\n PagesListNodeIO io = PagesListNodeIO.VERSIONS.forPage(pageAddr);\n\n int cnt = io.getCount(pageAddr);\n\n assert cnt >= 0;\n\n res += cnt;\n tailId = io.getPreviousId(pageAddr);\n\n // In reuse bucket the page itself can be used as a free page.\n if (isReuseBucket(bucket) && tailId != 0L)\n res++;\n }\n finally {\n readUnlock(pageId, page, pageAddr);\n }\n }\n finally {\n releasePage(pageId, page);\n }\n }\n }\n }\n\n assert res == bucketsSize.get(bucket) : \"Wrong bucket size counter [exp=\" + res + \", cntr=\" + bucketsSize.get(bucket) + ']';\n\n return res;\n }", "Integer countForKey(String key);", "public int size() \n\t{\n\t\treturn numKeys;\n\t}", "public int sizeOfTypekeyArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TYPEKEY$16);\r\n }\r\n }", "public int getPartitionKeyCount() {\n return partitionKey_.size();\n }", "public int size() {\r\n return numberOfKeys;\r\n }", "int getClusteringKeyCount();", "int getNumKeys();", "int sizeOfKeyArray();", "private int getBucketIndex( K key ) {\r\n\t\tint hashCode = key.hashCode();\r\n\t\treturn hashCode % numBuckets;\r\n\t}", "public int getPartitionKeyCount() {\n return partitionKey_.size();\n }", "public int size() {\n return keys.length;\n }", "int getEntryCount();", "@Override\n public int size() {\n return numKeys;\n }", "@Override\n public int size() {\n return numKeys;\n }", "public int getKeyspacesCount() {\n if (keyspacesBuilder_ == null) {\n return keyspaces_.size();\n } else {\n return keyspacesBuilder_.getCount();\n }\n }", "public int numberOfEntries();", "public int countBucket(int index) throws IndexOutOfBoundsException{\n if(index < 0 || index >= Table.size()) {\n \tthrow new IndexOutOfBoundsException(\"countBucket(): \" \n \t\t\t+ \"index is outside bounds of the table\");\n }\n return Table.get(index).getLength();\n }", "public int size() {\n if (hasKeys) {\n return keys.size();\n } else {\n return objects.size();\n }\n }", "public int getNrOfAccounts() {\n return getPublicKeys().size();\n }", "int getKeyspacesCount();", "int getKeySize();", "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}", "public synchronized int size() throws IOException {\n\t\t\treadIndex();\n\t\t\treturn keys.size();\n\t\t}", "public int getKeyCount() {\n return associationCountMap.size();\n }", "public int getClusteringKeyCount() {\n return clusteringKey_.size();\n }", "@Override\n public int getG2HashTableNumberOfEntries() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.G2_HASH_TABLE_NUMBER_OF_ENTRIES_);\n return ((Integer)retnValue).intValue ();\n }", "public int count( K key ) {\n Integer i = map.get( key );\n return i == null ? 0 : i;\n }", "@Override\r\n\tpublic int size() {\n\t\treturn keys.size();\r\n\t}", "long getUsesCount(K key);", "public int getClusteringKeyCount() {\n return clusteringKey_.size();\n }", "public int numOfHashFunctions() {\n return config().getK();\n }", "@Override\r\n\tpublic int size() {\r\n\t\treturn keySet().size();\r\n\t}", "@Override\n\tpublic int getNumberOfValues() {\n\t\treturn MIN_BUCKET_SIZES.size();\n\t}", "@Override\n public int getKeyspacesCount() {\n return keyspaces_.size();\n }", "private void incrementBucketSize(int bucket) {\n bucketsSize.incrementAndGet(bucket);\n }", "public int getNumberOfEntries();", "private static void doBucketCount(HashMap<String, Integer> bigramCount) {\n\t\t//bucketCountT\n\t\tbucketCountT= new HashMap<Integer,Double>();\n\t\t\t\t\n\t\tfor(String s:bigramCount.keySet()){\n\t\t\tdouble count= bucketCountT.getOrDefault(bigramCount.get(s), (double)0);\n\t\t\tbucketCountT.put(bigramCount.get(s), count+1);\n\t\t}\n\t}", "public int getLength(){\n return keys.length;\n }", "@Override\r\n public int getSize()\r\n {\r\n return keyHash.size();\r\n }", "@Override\n public int size() {\n int count = 0;\n for (Counter c : map.values())\n count += c.value();\n return count;\n }", "public String getNkeys() {\n return nkeys;\n }", "private int hash (k key) {\n\t\treturn Math.abs(key.hashCode())\t% buckets.length;\n\t}", "public int sizeOfCurbArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(CURB$10);\r\n }\r\n }", "public PrimitiveVS<Integer> size() {\n return keys.size();\n }", "public int size() {\n int size = 0;\n\n Collection<CacheableObject> values = new HashSet<CacheableObject>();\n synchronized(theLock) {\n values.addAll(valueMap.values());\n }\n\n for (CacheableObject cObj : values) {\n if (! this.isExpired(cObj)) {\n size++;\n }\n }\n\n return size;\n }", "double bucketSize(long bucket, Rounding.DateTimeUnit unit);", "public int getNumberOfEntries() ;", "public int calcBucket(int keyValue) {\n\t\treturn(keyValue % buckets.length);\r\n\t}", "public int calcBucket(int keyValue) {\n return (keyValue % buckets.length);\n }", "int find(K key)\n {\n return Math.abs(key.hashCode() % this.buckets.length);\n }", "int getCachedCount();", "static int getCachedRegionCount(Configuration conf,\n final byte[] tableName)\n throws IOException {\n return execute(new HConnectable<Integer>(conf) {\n @Override\n public Integer connect(HConnection connection) {\n return ((HConnectionImplementation) connection)\n .getNumberOfCachedRegionLocations(tableName);\n }\n });\n }", "private int getKeyLength() {\n MongoCursor<Document> cursor = this.keystoreCollection.find(eq(\"conf\", \"homomorphic-keylength\")).iterator();\n\n int keyLength = 2048; // Default value is 2048 bits\n while (cursor.hasNext()) {\n keyLength = cursor.next().getDouble(\"keylength\").intValue();\n }\n return keyLength;\n }", "public Integer sizeOfMap() {\n\t\tMap<String, String> simpleMap = createSimpleMap(\"Key\", \"Value\");\n numberOfEntries = 10;\n\t\treturn simpleMap.size();\n\t}", "public int getNumberOfEntries()\r\n\t{\r\n\t\treturn tr.size();\r\n\t}", "long getOwnedEntryCount();", "public long getCount() {\n long count = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n count += encoder.getCount();\n }\n }\n \n return count;\n }", "public int getVertexCount() {\n return map.keySet().size();\n }", "public int getNumEntries ()\n\t{\n\t\treturn entries.size ();\n\t}", "public int count () throws IOException {\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tinit();\n\t\twhile(hasNext()) {\n\t\t\tElement el = nextElement();\n\t\t\tint hash = el.GetHash();\n\t\t\tint pos = locate (list, hash);\n\t\t\tif ((pos == list.size()) || (list.get(pos) != hash)) {\n\t\t\t\tlist.add(pos, hash);\n\t\t\t}\n\t\t\t/*for (i=0; i<list.size() && list.get(i)<hash; i++) {}\n\t\t\t\tif ((i==list.size()) || (list.get(i) != el.GetHash())) {\n\t\t\t\t\tlist.add(i, hash);\n\t\t\t\t}*/\n\t\t}\n\t\treturn list.size();\n\t}", "int getNumberOfCachedRegionLocations(final byte[] tableName) {\n Integer key = Bytes.mapKey(tableName);\n synchronized (this.cachedRegionLocations) {\n Map<byte[], HRegionLocation> tableLocs =\n this.cachedRegionLocations.get(key);\n\n if (tableLocs == null) {\n return 0;\n }\n return tableLocs.values().size();\n }\n }", "public Map<String,Integer> getNumKeysMapping(){\n\t\treturn num_keys;\n\t}", "int getChunksCount();", "int getChunksCount();", "private int getIndex(K key){\n int hashcode=key.hashCode();\n int index=hashcode%maxBuckets;\n return index;\n }", "public Integer keySize() {\n return this.keySize;\n }", "public Integer size() { return this.entries.length(); }", "public int size() {\n int size = 0;\n for (Collection<V> value : map.values()) {\n size += value.size();\n }\n return size;\n }", "public int count() {\n\t\treturn sizeC;\n\t}", "public static int registeredSize() {\n\t\tInteger count = new Integer(0);\n\t\tObject object = cache.get(FQN_COUNT, LOGGED_COUNT);\n\t\tif (object != null) {\n\t\t\tcount = (Integer) object;\n\t\t}\n\n\t\treturn (count == null ? 0 : count.intValue());\n\t}", "public int size(K lo, K hi);", "@Override\n\tpublic int size() {\n\t\treadLock.lock();\n\t\ttry {\n\t\t\treturn cache.size();\n\t\t} finally {\n\t\t\treadLock.unlock();\n\t\t}\n\t}", "final int lengthInBits(final K key) {\n\tif (key == null) {\n\t return 0;\n\t}\n\n\treturn keyAnalyzer.lengthInBits(key);\n }", "int count() {\n return index.capacity() / 24;\n }", "public char getKeycount(int val)\n\t{\n\t\treturn key[val];\n\t}", "int getBackupsCount();", "public int getMinBucketsNumber() {\n return Integer.parseInt(config.getOptional(\"kylin.storage.columnar.bucket-num\", \"1\"));\n }", "private static void displayBucketCount3() throws IOException {\n\t\tString str=\"\";\n\t\t\n\t\t//bucket count\n\t\tfor(int i:bucketCountT.keySet()){\n\t\t\tstr+=String.valueOf(i)+ \" \" + String.valueOf(bucketCountT.get(i))+\"\\n\";\n\t\t}\n\t\tstr+=\"\\n\";\n\t\twriter3.write(str);\n\t\t\n\t}", "@Override\n\tpublic int size() {\n\t\tint tamano = 0;\n\t\tint i = 0;\n\t\tIterator it = tabla.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t\ttamano += tabla.get(i).keySet().size();\n\t\t\ti++;\n\t\t}\n\t\treturn tamano;\n\t}", "public int getNumCacheHit() {\n return cacheHandler.getCountCacheHit();\n }", "int getAccountCount(final long accountID);", "public int getCount(final K key) {\n throwIfNullKey(key);\n final Integer count = associationCountMap.get(key);\n if (count == null) {\n return 0;\n }\n return count;\n }", "public void countCollisions() {\n int col2 = 0;\n int col3 = 0;\n int col4 = 0;\n int col5OrMore = 0;\n \n for (int x = 0; x < buckets.length; x++) {\n SList chain = (SList) buckets[x];\n if (chain.length() == 2) {\n col2++;\n }\n if (chain.length() == 3) {\n col3++;\n }\n if (chain.length() == 4) {\n col4++;\n }\n if (chain.length() >= 5) {\n col5OrMore++;\n }\n }\n System.out.println(\"=========HASHTABLE================\");\n System.out.println(\"# of entries: \" + size);\n System.out.println(\"Number of single collisions: \"+col2);\n System.out.println(\"Number of double collisions: \"+col3);\n System.out.println(\"Number of triple collisions: \"+col4);\n System.out.println(\"Number of 5 or more collisions: \"+col5OrMore);\n }", "public Iterator<K> keys(){\n\treturn new Iterator<K>() {\n\t int iteratorbucket = 0;\n\t Iterator<MyEntry> itr = table[iteratorbucket].iterator();\n\t int nextCount = 0;\n\n\t public boolean hasNext() {\n\t // can just check nextCount and size\n\t if(nextCount>=size) {\n\t \treturn false;\n\t }\n\t return true;\n\t }\n\n\t public K next() {\n\t // if my hasNext() is false, I should throw a NoSuchElementException\n\t if(hasNext()==false) {\n\t \tthrow new NoSuchElementException();\n\t }\n\t // while itr.hasNext() is false, increment bucket and get the next iterator\n\t while(itr.hasNext()==false) {\n\t \titeratorbucket++;\n\t \titr=table[iteratorbucket].iterator();\n\t }\n\t // now increment nextCount and return the key from the item itr.next() returns\n\t \tnextCount++;\n\t \treturn itr.next().key;\n\t \n\t }\n\n\t public void remove() {\n\t // just ask itr to remove, but I need to update my size and nextCount\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }\n\t };\n }", "public int size()\n\t{\n\t\tint size = 0;\n\t\tfor(List<Registry.Entry> li : this.reg.values())\n\t\t\tsize += li.size();\n\t\treturn size;\n\t}", "public int size()\r\n/* 106: */ {\r\n/* 107:194 */ assert (checkRep());\r\n/* 108:195 */ return this.map.keySet().size();\r\n/* 109: */ }", "public int getNumEntries() {\n return entries.size();\n }", "public int size() {\n synchronized (cacheMap) {\n return cacheMap.size();\n }\n }", "@Override\n\tpublic int countKey(String key) {\n\t\treturn settingDao.countKey(key);\n\t}", "public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}", "private int getNumberOfAccounts()\n {\n ProtocolProviderFactory factory =\n DictAccRegWizzActivator.getDictProtocolProviderFactory();\n\n return factory.getRegisteredAccounts().size();\n }", "int getQuotaMetricsCount();", "public int getEntryCount() {\n return mem.getChar(34);\n }", "public int getKeyNumber()\r\n {\r\n return number_of_key;\r\n }", "int getFileNamesCount();", "int getFileNamesCount();", "public int getEntryCount() {\n return entry_.size();\n }", "public int getTotalKeyLength() {\n return this.primaryKeyLength + this.secondaryKeyLength;\n }", "public int size() { return _byHashCode.size(); }" ]
[ "0.6937524", "0.68666935", "0.6547081", "0.6508844", "0.64828223", "0.6472038", "0.64362025", "0.6422877", "0.64127064", "0.6411061", "0.64046174", "0.6401413", "0.639468", "0.63443184", "0.63190556", "0.6312366", "0.6300519", "0.62933886", "0.6276462", "0.62698567", "0.6241853", "0.6237582", "0.62332976", "0.6216533", "0.61920655", "0.6179163", "0.6178572", "0.61690545", "0.61554456", "0.6153327", "0.61350274", "0.61092156", "0.6090339", "0.6074361", "0.60697335", "0.6068277", "0.60612077", "0.60339713", "0.6023519", "0.6005769", "0.60016584", "0.58949786", "0.5886337", "0.58739376", "0.586766", "0.5854074", "0.5828736", "0.5801034", "0.57664925", "0.57572454", "0.57486564", "0.5740783", "0.57372826", "0.5731501", "0.5729783", "0.570459", "0.5680939", "0.56730974", "0.56617445", "0.56599504", "0.5649672", "0.5644778", "0.5642783", "0.5620549", "0.5607911", "0.5607911", "0.56048393", "0.5586363", "0.5583329", "0.5580172", "0.55795187", "0.55712247", "0.5568318", "0.55632067", "0.5562145", "0.55618185", "0.5554465", "0.5554149", "0.55479115", "0.5543654", "0.55373234", "0.55344623", "0.55336004", "0.55306023", "0.5528185", "0.55220884", "0.55208075", "0.5519168", "0.55187017", "0.551728", "0.5506011", "0.54996604", "0.5498046", "0.5493027", "0.5491003", "0.548785", "0.54719186", "0.54719186", "0.5463226", "0.5459345", "0.54555315" ]
0.0
-1
Finds the value corresponding to a key, if the key is found.
public V get(K key) { if (key == null) { throw new NullPointerException(); } else if (find(key) == null) { return null; } else { return find(key).value; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public V searchValue (K key) {\n\t\tfor (Map.Entry<K, V> entry : this.entrySet()) {\n\t\t\tif (entry.getKey() == key) {\n\t\t\t\treturn entry.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public TValue find(TKey key) {\n Node n = bstFind(key, mRoot); // find the Node containing the key if any\n if (n == null || n == NIL_NODE)\n throw new RuntimeException(\"Key not found\");\n return n.mValue;\n }", "public Value find(Value key) {\n\t\tValue v = get(key);\n\t\tif (v != null)\n\t\t\treturn v;\n\t\tif (parent != null)\n\t\t\treturn parent.find(key);\n\t\treturn null;\n\t}", "public Optional<V> lookup(K key) {\n Optional<V> mt = Optional.empty();\n return this.entries.foldr(((kvp, o)-> kvp.left.equals(key) ? Optional.of(kvp.right) : o) , mt);\n }", "public V lookup(K key);", "@Override\n\tpublic Optional<Value> get(Key k) {\n\t\treturn bst.find(k);\n\t}", "@Override\n\t@TimeComplexity(\"O(log n)\")\n\tpublic V get(K key) {\n\t/* TCJ\n\t * Binary search operation: log n\n\t */\n\t\tint j = findIndex(key);\n\t\tif ( j == size() || key.compareTo(map.get(j).getKey()) != 0 ) { return null; }\n\t\treturn map.get(j).getValue();\n\t}", "public V getValue(K key)\n {\n V result = null;\n int keyIndex = locateIndex(key);\n if ((keyIndex < numberOfEntries) && \n key.equals(dictionary[keyIndex].getKey()))\n result = dictionary[keyIndex].getValue();\n return result;\n }", "public V find(K key) {\n Node<K,V> node = root;\n while (node != null) {\n int cmp = key.compareTo(node.key);\n if (cmp < 0) {\n node = node.left;\n } else if (cmp > 0) {\n node = node.right;\n } else {\n return node.value;\n }\n }\n return null;\n }", "public V find (K key) throws KeyNotFoundException {\n\t\treturn findKey(root, key);\n\t}", "public V search(K key);", "public V getValue(K key) {\n int i = findPosition(key);\n if (i==DsConst.NOT_FOUND) {\n return null;\n }\n DictionaryPair p = list.get(i);\n return p.getValue();\n }", "public DataItem find(int key){\n\t\tint hashVal = hashFunc(key);\n\t\tint stepSize = hashFunc2(key);\n\t\twhile(hashArray[hashVal] != null){\n\t\t\tif(hashArray[hashVal].getKey() == key){\n\t\t\t\tDataItem temp = hashArray[hashVal]; //find the item\n\t\t\t\treturn temp;\n\t\t\t}\n\t\t\thashVal += stepSize;\n\t\t\thashVal %= arraySize;\n\t\t}\n\t\treturn null;\n\t}", "public DataValue lookup(String key) {\n if (validateKey(key)) {\n return getValueForKey(key);\n } else {\n return DataValue.NO_VALUE;\n }\n }", "@Override\r\n public Object findElement(Object key) {\r\n\r\n // Search for node possibly containing key\r\n TFNode node = search(root(), key);\r\n \r\n // Note the index of where the key should be\r\n int index = FFGTE(node, key);\r\n\r\n // If the index is greater than the number of items in the node, the key is not in the node\r\n if (index < node.getNumItems()) {\r\n // Look for key in node\r\n if (treeComp.isEqual(node.getItem(index).key(), key)) {\r\n return node.getItem(index);\r\n }\r\n }\r\n\r\n // The search hit a leaf without finding the key\r\n return null;\r\n }", "public E find(K key){\n\t\tE output= null;\n\t\t\n\t\tint i = 0;\n\t\twhile (i<keys.length && output == null){\n\t\t\tif(keys[i] != null && keys[i].equals(key))\n\t\t\t\toutput = elem[i];\n\t\t\ti = i + 1;\n\t\t}\n\t\treturn output;\n\t}", "public V get(K key) {\n if (null == key) {\n throw new IllegalStateException(\"Null value for key is \" +\n \"unsupported!\");\n }\n\n V result = null;\n\n Node<Pair<K, V>> node = findItem(key);\n\n if (node != null) {\n result = node.getData().value;\n }\n\n return result;\n\n }", "public Entry<K, V> find(K key) {\r\n try {\r\n int hash = key.hashCode();\r\n ListNode<Entry<K, V>> node = table[compFunction(hash)].front();\r\n if (node.isValidNode()) {\r\n return (Entry<K, V>) node.getItem();\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Unhashable key: \" + e);\r\n }\r\n return null;\r\n }", "V get(final K key);", "public Entry find(Object key) {\n int hashCode = key.hashCode();\n int index = compFunction(hashCode);\n\n if(defTable[index].isEmpty()) {\n return null;\n }\n\n Entry entry = new Entry();\n ListNode current = defTable[index].front();\n\n try{\n while(true) {\n if(((Entry) current.item()).key().equals(key)) {\n entry.key = key;\n entry.value = ((Entry) current.item()).value();\n return entry;\n }\n if(current==defTable[index].back()) {\n break;\n }\n current = current.next();\n }\n } catch(Exception err) {\n System.out.println(err);\n }\n return null;\n }", "public Entry find(Object key) {\n int i = compFunction(key.hashCode());\n SList chain = buckets[i];\n try {\n for (SListNode n = (SListNode) chain.front(); n.isValidNode(); n = (SListNode) n.next()) {\n Entry e = (Entry) n.item();\n if (e.key.equals(key)) {\n return e;\n }\n }\n } catch(InvalidNodeException e) {\n System.out.println(e);\n }\n return null;\n }", "Optional<V> lookup(K k);", "public V get(K searchKey) {\n\t\tint index = hash(searchKey);\n\t\t\n\t\tIterator<WordCode<K, V>> itr = myBuckets.get(index).iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tWordCode<K, V> itrVal = itr.next();\n\t\t\tif (itrVal.myKey.equals(searchKey)) return itrVal.myValue;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public V search(K key) throws KeyNotFoundException {\n\tif (!RBT.containsKey(key))\n\t throw new KeyNotFoundException();\n return (V) RBT.get(key);\n }", "public Value get(String key) {\n Node x = get(root, key, 0);\n if (x == null) return null; //node does not exist\n else return (Value) x.val; //found node, but key could be null\n }", "public Value get(Key key) {\r\n\t\t\tValue ret = null;\r\n\t\t\t\r\n\t\t\tdata.reset();\r\n\t\t\tfor (int i = 0; i < data.size(); i++) {\r\n\t\t\t\tif (data.get().getKey().compareTo(key) == 0) {\r\n\t\t\t\t\tret = data.get().getValue();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tdata.next();\r\n\t\t\t}\r\n\t\t\tdata.reset();\r\n\t\t\t\r\n\t\t\treturn ret;\r\n\t\t}", "public V getValue(K key)\r\n\t{\r\n\t\tint slot = findSlot(key, false);\r\n\t\t\r\n\t\tif (slot < 0) \r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tMapEntry<K, V> e = table[slot];\r\n\t\treturn e.getValue();\r\n\t}", "private V get(K key) {\n\t\t\tif (keySet.contains(key)) {\n\t\t\t\treturn valueSet.get(keySet.indexOf(key));\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "V getValue(final E key) {\r\n for (int i=0;i<kcount;i++) {\r\n if (equal(key, (E)k[i])) return (V)v[i];\r\n }\r\n return null;\r\n }", "public V get(K key) {\r\n\t\tint place = hash(key.hashCode());\r\n\t\tif (hashMapArray[place] != null) {\r\n\t\t\tLinkedList<KVPair> temp = hashMapArray[place];\r\n\t\t\tfor (KVPair i : temp) {\r\n\t\t\t\tif (i.getKey().equals(key)) {\r\n\t\t\t\t\treturn i.getValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public V get(K key) {\n int index = getIndex(getHash(key));\n Entry<K, V> entry = (Entry<K, V>) table[index];\n\n if (entry == null) {\n return null;\n }\n\n if (!entry.hasNext()) {\n return entry.getValue();\n }\n\n while (entry.hasNext()) {\n if (entry.getKey().equals(key))\n return entry.getValue();\n entry = entry.getNext();\n }\n\n if (entry.getKey().equals(key))\n return entry.getValue();\n\n return null;\n }", "K findKeyForValue(V val);", "public Object getKeyOrValue(Object search) {\n\t\tObject result = super.get(search);\n\t\tif ( result == null ) {\n\t\t\t// not found in <K, V> map, search <V, K> map\n\t\t\tresult = reverseLookup.get(search);\n\t\t}\n\t\treturn result;\n\t}", "@Nullable IStrongSlot find(LuaValue key);", "@Override\n @SuppressWarnings(\"Duplicates\")\n public V getValue(K key) {\n TreeNode<KeyValuePair<K, V>> previous = root;\n TreeNode<KeyValuePair<K, V>> current = root;\n boolean smaller = false;\n TreeNode<KeyValuePair<K, V>> result = null;\n while(true) {\n if(current == null) {\n break;\n }\n previous = current;\n if(key.compareTo(current.getValue().getKey()) < 0) {\n smaller = true;\n current = current.getLeft();\n } else if(key.compareTo(current.getValue().getKey()) > 0) {\n smaller = false;\n current = current.getRight();\n } else if (key.equals(current.getValue().getKey())) {\n System.out.println(\"Found the value!\");\n result = current;\n break;\n }\n }\n if(result != null) return result.getValue().getValue();\n return null;\n }", "public V lookup(K key) {\n\t\tTree<K, V> t = this;\n\t\treturn lookup(t, key);\n\t}", "public Entry find(Object key) {\r\n Entry entry_with_key = new Entry();\r\n entry_with_key.key = key; \r\n int comp_hash = compFunction(entry_with_key.key.hashCode());\r\n if (hash_table[comp_hash] == null) {\r\n return null;\r\n } else {\r\n DList searching = hash_table[comp_hash];\r\n for(Object entry: searching){\r\n if(((Entry) entry).key().equals(key)){\r\n return (Entry) entry;\r\n }\r\n }\r\n return null;\r\n \r\n }\r\n\r\n\r\n }", "public Object lookup(String key){\n ListNode<String,Object> temp = getNode(key);\n if(temp != null)\n return temp.value;\n else\n return null;\n }", "public Value get(Key key);", "public Object get(Object key) {\n\t\tint index = key.hashCode() % SLOTS;\n\t\t// check if key is already present in that slot/bucket.\n\t\tfor(Pair p:table[index]) {\n\t\t\tif(key.equals(p.key))\n\t\t\t\treturn p.value;\n\t\t}\n\t\t// if not found, return null\n\t\treturn null;\n\t}", "public V get(K key) {\n int index = findIndex(key);\n if (keys[index] == null)\n return null;\n else\n return values[index];\n }", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "V get(K key);", "public T search(K key) {\n\t\tfor (T item : list) {\n\t\t\tif (item.matches(key)) {\n\t\t\t\treturn item;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public V get(K key)\n\t{\n\t\tcheckForNulls(key);\n\t\tint n = Math.abs(key.hashCode() % entries.length);\n\t\t\n\t\tif (entries[n] == null)\n\t\t\treturn null;\n\t\t\n\t\tfor (Entry e : entries[n])\n\t\t{\n\t\t\tif (key.equals(e.key) == true)\n\t\t\t\treturn e.value;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public V getValue(K key);", "public V getValue(K key);", "public V get(K key) {\n if (key == null) {\n MyEntry<K, V> entry = null;\n try {\n entry = bucket[0];\n if (entry != null) {\n return entry.getValue();\n }\n } catch (NullPointerException e) {\n }\n } else {\n // other keys\n MyEntry<K, V> entry = null;\n int location = hashFunction(key.hashCode());\n entry = bucket[location];\n if (entry != null && entry.getKey() == key) {\n return entry.getValue();\n }\n }\n return null;\n }", "public Vector<V> find(K key)\r\n\t{\r\n\t\tint size = SIZES[sizeIdx];\r\n\r\n\t\t// Probe no more iterations than the size of the table\r\n\t\tfor (int i = 0; i < size; ++i)\r\n\t\t{\r\n\t\t\t// Compute the next index in the probe sequence\r\n\t\t\tint index = probe(key, i, size);\r\n\r\n\t\t\t// If we reach an empty slot, we know the key isn't in the table\r\n\t\t\tif (table[index] == null)\r\n\t\t\t{\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t// If we find the key and it isn't a tombstone\r\n\t\t\telse if (table[index].key.equals(key) && !table[index].isTombstone)\r\n\t\t\t{\r\n\t\t\t\t// Return the vector of values for that slot\r\n\t\t\t\treturn table[index].value;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// If we've been probing for a long time, the key probably isn't in the\r\n\t\t// table\r\n\t\treturn null;\r\n\t}", "public int get(int key) {\n return hashMap.stream()\n .filter(pair -> pair[0] == key)\n .findAny()\n .map(pair -> pair[1])\n .orElse(-1);\n }", "private String getLocalValue(int key)\n {\n // binary search, since the list is sorted\n int start = 0;\n int end = cache.size() - 1;\n while (start <= end)\n {\n int mid = (start + end) / 2;\n Record currentRecord = cache.get(mid);\n if (key == currentRecord.key())\n {\n return currentRecord.value();\n }\n else if (key < currentRecord.key())\n {\n end = mid - 1;\n }\n else\n {\n start = mid + 1;\n }\n }\n \n // not found\n return null; \n }", "@Override\n public V get(Object key) {\n int index = key.hashCode() % table.length;\n if (index < 0) {\n index += table.length;\n }\n if (table[index] == null) {\n return null; // key is not in the table.\n }\n // Search the list at table[index] to find the key.\n for (Entry<K, V> nextItem : table[index]) {\n if (nextItem.key.equals(key)) {\n return nextItem.value;\n }\n }\n\n // assert: key is not in the table.\n return null;\n }", "public V get(K key) {\n int hashCode = scaledHashCode(key);\n OwnLinkedList<K, V> list = table[hashCode];\n if (list == null) {\n return null;\n }\n PairNode<K, V> result = list.search(key);\n if (result == null) {\n return null;\n }\n return result.getValue();\n }", "public V get(final K key)\n {\n final StackElement element = this.hashMap.get(key);\n\n if (element != null)\n {\n return element.value;\n }\n\n return null;\n }", "public String lookup(String key){\n Node N;\n N = findKey(root, key);\n return ( N == null ? null : N.item.value );\n }", "public V get(K key)\r\n\t{\r\n\t\tEntry retrieve = data.get(new Entry(key, null));\r\n\t\t\r\n\t\tif(retrieve != null)\r\n\t\t{\r\n\t\t\treturn retrieve.value;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public V value(K key) {\n for(MapEntry<K, V> t : this) {\n if (t == null) continue;\n if (t.key().equals(key)) return t.value();\n }\n\n return null;\n }", "private Node<Pair<K, V>> findItem(K key) {\n Node<Pair<K, V>> result = null;\n\n int hash1 = hash1(key);\n\n if (table[hash1] != null) {\n Node<Pair<K, V>> node = search(table[hash1].list, key);\n\n if (node != null) {\n result = node;\n }\n }\n\n int hash2 = hash2(key);\n\n if (table[hash2] != null && result == null) {\n Node<Pair<K, V>> node = search(table[hash2].list, key);\n\n if (node != null) {\n result = node;\n }\n }\n\n return result;\n }", "public abstract boolean lookup(Key key);", "public V get(K key);", "public Object get(Object key){\n\t\tNode tempNode = _locate(key);\r\n\t\tif(tempNode != null){\r\n\t\t\treturn tempNode._value;\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public String getValue(String key) {\n\t\tfinal Iterator<Map.Entry<String, String>> iter = entries.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tfinal Map.Entry<String, String> entry = iter.next();\n\t\t\tif (entry.getKey().equals(key)) {\n\t\t\t\treturn entry.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "V get(Object key);", "@Override\n public V get(K key) {\n if(containsKey(key)) {\n LinkedList<Entry<K, V>> pointer = entryArr[Math.floorMod(key.hashCode(), entryArr.length)];\n return pointer.stream().filter(x->x.key.equals(key))\n .collect(Collectors.toList()).get(0).value;\n }\n return null;\n }", "@Override\n\tpublic V getValue(K key) {\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(!isEmpty()){\n\t\t\twhile(currentNode.key != key){\n\t\t\t\tif(currentNode.getNextNode() == null){\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn (V)currentNode.value;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "public V find(K k) {\r\n int i = h(k);\r\n int z = i;\r\n int j = 0;\r\n while ((K)htable[i].key() != k) {\r\n i = (z + p(k, ++j)) % htable.length;\r\n if (j == htable.length) {\r\n return null;\r\n }\r\n while (htable[i] == null) {\r\n i = (z + p(k, ++j)) % htable.length;\r\n if (j == htable.length) {\r\n return null;\r\n }\r\n }\r\n }\r\n return (V)htable[i].value();\r\n }", "public final synchronized V get(final K key) {\n\t\treturn map.get(key);\n\t}", "@Override\n public Object get(Comparable k) {\n\n // Check if null\n if (k == null) {\n throw new IllegalArgumentException(\"null key\");\n }\n\n else {\n\n // Loop to find key\n for (int i = 0; i < this.size; i++) {\n if (ls[i].key.equals(k)) {\n return ls[i].value; // Return key value if found\n }\n }\n return null; // Null if not found\n }\n }", "public V get(K key){\n\t\t\n\n\t\tNode n=searchkey(root, key);\n\n\t\t\n\t\tif(n!=null && n.value!=null){\n\t\t\treturn n.value;\n\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "Object get(String key);", "Object get(String key);", "public V get(K key) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n V result = null;\r\n if (data[hash] != null) {\r\n Node currentNode = data[hash];\r\n while (currentNode != null) {\r\n if (currentNode.key == key || currentNode.key.equals(key)) {\r\n result = (V) currentNode.value;\r\n }\r\n currentNode = currentNode.next;\r\n }\r\n }\r\n return result;\r\n }", "public V get(final K key) {\n expunge();\n final int hash = hash(key);\n final int index = index(hash, entries.length);\n Entry<K, V> entry = entries[index];\n while (entry != null) {\n if (entry.hash == hash && key == entry.get()) {\n return entry.value;\n }\n entry = entry.nextEntry;\n }\n return null;\n }", "private DataValue getValueForKey(String key) {\n DataValue value = valueMap.get(key);\n if (value == null) {\n return DataValue.NO_VALUE;\n } else {\n return value;\n }\n }", "public Value get(final Key key) {\n int r = rank(key);\n if (r < size && (keys[r].compareTo(key) == 0)) {\n return values[r];\n }\n return null;\n }", "Optional<V> get(K key);", "public Node find(int key) // find node with given key\n\t{ // (assumes non-empty tree)\n\t\tNode current = root; // start at root\n\t\tif(current == null) {\n\t\t\treturn null;\n\t\t}\n\t\twhile(current.iData != key) // while no match,\n\t\t{\n\t\t\tif(key < current.iData) // go left?\n\t\t\t\tcurrent = current.leftChild;\n\t\t\telse // or go right?\n\t\t\t\tcurrent = current.rightChild;\n\t\t\tif(current == null) // if no child,\n\t\t\t\treturn null; // didn't find it\n\t\t}\n\t\treturn current; // found it\n\t}", "public V lookup(Tree<K, V> t, K key) {\n\t\tif (key.compareTo(this.key) == 0) {\n\t\t\treturn value;\n\t\t} else if (key.compareTo(this.key) < 0) {\n\t\t\treturn left.lookup(left, key);\n\t\t} else {\n\t\t\treturn right.lookup(right, key);\n\t\t}\n\t}", "public V get(Object key) {\r\n\t\tif (key == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tint slotIndex = Math.abs(key.hashCode()) % table.length;\r\n\r\n\t\tif (table[slotIndex] == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tTableEntry<K, V> currentElement = table[slotIndex];\r\n\r\n\t\tdo {\r\n\t\t\tif (currentElement.key.equals(key)) {\r\n\t\t\t\treturn currentElement.value;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = currentElement.next;\r\n\t\t} while (currentElement != null);\r\n\r\n\t\treturn null;\r\n\t}", "public String find(String key) {\n\t\t\n\t\tsearchProbe = 0;\n\t\tint h = hash(key);\n\t\twhile(table[h]!=null) {\n\t\t\t\n\t\t\tif(table[h].toString().substring(0, 19).equals(key)) {\n\t\t\t\treturn table[h].toString();\n\t\t\t}\n\t\t\tsearchProbe++;\n\t\t\th=(h+1)%getTablesize();\n\t\t}\n\t\t\n\t\t\n\treturn \"Not Found\";\n\t}", "public String findKey(String key) {\n\n // Find the keys original hash key\n int arrayIndexHash = getHashIndex(key);\n\n while (theArray[arrayIndexHash] != \"-1\") {\n\n if (theArray[arrayIndexHash] == key) {\n\n // Found the key so return it\n System.out.println(key + \" was found in index \"\n + arrayIndexHash);\n\n return theArray[arrayIndexHash];\n\n }\n\n // Look in the next index\n ++arrayIndexHash;\n\n // If we get to the end of the array go back to index 0\n arrayIndexHash %= arraySize;\n\n }\n\n // Couldn't locate the key\n return null;\n\n }", "E find(KeyType key) {\n int position = findPosKey(key);\n if (mArray[position].state == FHhashQP.ACTIVE) {\n return mArray[findPosKey(key)].data;\n } else {\n throw new NoSuchElementException();\n }\n }", "public T get(T key) {\n\t\tNode<T> node = root;\n\t\twhile (node != null) {\n\t\t\tif (key.compareTo(node.value) == 0) {\n\t\t\t\treturn node.value;\n\t\t\t} else if (key.compareTo(node.value) < 0) {\n\t\t\t\tnode = node.right;\n\t\t\t} else {\n\t\t\t\tnode = node.left;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public boolean containsKeyOrValue(Object search) {\n\t\tboolean result = super.containsKey(search);\n\t\tif ( !result ) {\n\t\t\t// not found in <K, V> map, search <V, K> map\n\t\t\tresult = reverseLookup.containsKey(search);\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\tpublic V get(K key) {\n\t\tint h = Math.abs(key.hashCode()) % nrb;// calculam hash-ul asociat cheii\n\t\tfor (int i = 0; i < b.get(h).getEntries().size(); i++) {\n\t\t\t// parcurgerea listei de elemente pentru a gasi cheia ceruta si a\n\t\t\t// intoarte valoarea dorita\n\t\t\tif (b.get(h).getEntries().get(i).getKey().equals(key)) {\n\t\t\t\treturn b.get(h).getEntries().get(i).getValue();\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public String lookup(String key){\n Node N = front;\n while( N != null){\n if( N.key.equals(key)){\n return N.value;\n }\n N = N.next;\n }\n return null;\n }", "Object get(Object key);", "@Override\n\tpublic K lookup(K key) {\n\t\treturn lookup(root, key);\n\t}", "public TFNode findNode(Object key) {\r\n\r\n // Search for node possibly containing key\r\n TFNode node = search(root(), key);\r\n\r\n // Note the index of where the key should be\r\n int index = FFGTE(node, key);\r\n\r\n // If the index is greater than the number of items in the node, the key is not in the node\r\n if (index < node.getNumItems()) {\r\n // Look for key in node\r\n if (treeComp.isEqual(node.getItem(index).key(), key)) {\r\n return node;\r\n }\r\n }\r\n\r\n // The search hit a leaf without finding the key\r\n return null;\r\n }", "public V get(K key) {\n V value = null;\n\n if (key != null) {\n int index = indexFor(key);\n if (container[index] != null) {\n value = (V) container[index].value;\n }\n }\n return value;\n }", "public Value get(Key key) ;", "@Override\n\tpublic V get(Object key) {\n\t\treturn map.get(key);\n\t}", "public Record find(String key) {\n\t\tint hash = toHashKey(key);\n\t\tint baseValue = (baseHash(hash,length))% length;\n\t\tif (Table[baseValue].hash == -1){ //If slot is empty\n\t\t\treturn null;\n\t\t}\n\t\telse if (Table[baseValue].key.equals(key)){ //if the slot is the key we are looking for\n\t\t\treturn Table[baseValue];\n\t\t}\n\t\telse {\n\t\t\tint step = (stepHash(hash,length)); //checks first slot after base\n\t\t\tint current = (baseValue + step)% length; //checks first slot after base\n\t\t\twhile (current != baseValue){ //cycle through table until reaching first value again\n\t\t\t\tif (Table[current].hash == -1){//If slot is empty\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\telse if (Table[current].key.equals(key)){ //if the slot is the key we are looking for\n\t\t\t\t\treturn Table[current];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent = (current + step) % length; //Cycle through table without going over the newlength\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public <K, V> V getSpecific(K key, MappingValueKey<V> valueKey);", "public Value get(Key key)\t\t\t\t//Value passed with Key(Null if key is absent)\n\t{\n\t\tNode x=root;\n\t\twhile(x!=null)\n\t\t{\n\t\t\tint cmp=key.compareTo(x.key);\n\t\t\tif(cmp<0)\tx=x.left;\n\t\t\telse if(cmp>0)\tx=x.right;\n\t\t\telse if(cmp==0)\treturn x.val;\n\t\t}\n\t\treturn null;\n\t}" ]
[ "0.81715804", "0.77513564", "0.75408", "0.7421049", "0.74131507", "0.7287435", "0.7246234", "0.7239584", "0.71872", "0.7176467", "0.71146595", "0.7109573", "0.7106113", "0.709649", "0.7075914", "0.70461464", "0.7018037", "0.6979808", "0.6916048", "0.69135016", "0.69111687", "0.69066185", "0.68892", "0.6888495", "0.68813086", "0.6879361", "0.6870448", "0.68696856", "0.6868334", "0.6853579", "0.68092084", "0.67942095", "0.6742104", "0.67390895", "0.6728032", "0.6724774", "0.6712459", "0.67124075", "0.6711007", "0.6702779", "0.66957563", "0.6691501", "0.6691501", "0.6691501", "0.6691501", "0.6691501", "0.6691501", "0.6691501", "0.66902936", "0.6688834", "0.66544336", "0.66544336", "0.6650221", "0.66452634", "0.6623692", "0.6622753", "0.66183025", "0.6614084", "0.65756404", "0.6567101", "0.65651035", "0.65484726", "0.65415573", "0.6536187", "0.65308875", "0.6511747", "0.65094024", "0.65046555", "0.64976317", "0.64936644", "0.6484206", "0.6476623", "0.6474985", "0.64629734", "0.6447999", "0.6447999", "0.6442958", "0.6442601", "0.64392495", "0.6438376", "0.64310515", "0.6427569", "0.64138395", "0.6412331", "0.64082956", "0.64073646", "0.6396631", "0.6396209", "0.63831866", "0.6369362", "0.63657916", "0.6353556", "0.6348941", "0.6348657", "0.63408315", "0.63393825", "0.63355684", "0.6318985", "0.6318869", "0.63174427" ]
0.7189415
8
Finds the ListNode corresponding to a key, if the key is found.
private ListNode find(K key) { if (key == null) throw new NullPointerException(); ListNode current = header; while (current != null) { if (current.key.equals(key)) return current; current = current.next; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node<Pair<K, V>> search(\n BiDirectionalNullTerminatedTailedLinkedList<Pair<K, V>> list,\n K key) {\n\n for (Node<Pair<K, V>> i = list.getHead().getNext(); i != list.getTail();\n i = i.getNext()) {\n if (i.getData().key.equals(key)) {\n return i;\n }\n }\n\n return null;\n }", "private Node find(String key) {\n Node now = head;\n while (now != null) {\n if (now.pairStringString.getKey().equals(key)) {\n return now;\n }\n now = now.next;\n }\n return null;\n }", "public Entry find(Object key) {\n int i = compFunction(key.hashCode());\n SList chain = buckets[i];\n try {\n for (SListNode n = (SListNode) chain.front(); n.isValidNode(); n = (SListNode) n.next()) {\n Entry e = (Entry) n.item();\n if (e.key.equals(key)) {\n return e;\n }\n }\n } catch(InvalidNodeException e) {\n System.out.println(e);\n }\n return null;\n }", "private Node<Pair<K, V>> findItem(K key) {\n Node<Pair<K, V>> result = null;\n\n int hash1 = hash1(key);\n\n if (table[hash1] != null) {\n Node<Pair<K, V>> node = search(table[hash1].list, key);\n\n if (node != null) {\n result = node;\n }\n }\n\n int hash2 = hash2(key);\n\n if (table[hash2] != null && result == null) {\n Node<Pair<K, V>> node = search(table[hash2].list, key);\n\n if (node != null) {\n result = node;\n }\n }\n\n return result;\n }", "public Entry find(Object key) {\n int hashCode = key.hashCode();\n int index = compFunction(hashCode);\n\n if(defTable[index].isEmpty()) {\n return null;\n }\n\n Entry entry = new Entry();\n ListNode current = defTable[index].front();\n\n try{\n while(true) {\n if(((Entry) current.item()).key().equals(key)) {\n entry.key = key;\n entry.value = ((Entry) current.item()).value();\n return entry;\n }\n if(current==defTable[index].back()) {\n break;\n }\n current = current.next();\n }\n } catch(Exception err) {\n System.out.println(err);\n }\n return null;\n }", "private Node findKey(String key){\n Node N = front;\n while(N != null){\n if(N.key.equals(key)){\n return N; \n }\n else{\n N = N.next; \n }\n }\n return null;\n }", "public Entry<K, V> find(K key) {\r\n try {\r\n int hash = key.hashCode();\r\n ListNode<Entry<K, V>> node = table[compFunction(hash)].front();\r\n if (node.isValidNode()) {\r\n return (Entry<K, V>) node.getItem();\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Unhashable key: \" + e);\r\n }\r\n return null;\r\n }", "@Nullable IStrongSlot find(LuaValue key);", "public Object lookup(String key){\n ListNode<String,Object> temp = getNode(key);\n if(temp != null)\n return temp.value;\n else\n return null;\n }", "public TFNode findNode(Object key) {\r\n\r\n // Search for node possibly containing key\r\n TFNode node = search(root(), key);\r\n\r\n // Note the index of where the key should be\r\n int index = FFGTE(node, key);\r\n\r\n // If the index is greater than the number of items in the node, the key is not in the node\r\n if (index < node.getNumItems()) {\r\n // Look for key in node\r\n if (treeComp.isEqual(node.getItem(index).key(), key)) {\r\n return node;\r\n }\r\n }\r\n\r\n // The search hit a leaf without finding the key\r\n return null;\r\n }", "public HPTNode<K, V> search(List<K> key) {\n check(key);\n int size = key.size();\n\n // Start at the root, and only search lower in the tree if it is\n // large enough to produce a match.\n HPTNode<K, V> current = root;\n for (int i = 0; i < size; i++) {\n if (current == null || (size - i) > current.maxDepth()) {\n return null;\n }\n current = find(current, i, key.get(i), false);\n }\n if (current == null || current.values == null) {\n return null;\n }\n return current.values.isEmpty() ? null : current;\n }", "private SkipNode<K, V> findNode(Object key) {\n\t\tSkipNode<K, V> nodeOut;\n\t\tnodeOut = headNode;\n\t\twhile (true) {\n\t\t\twhile ((nodeOut.getNext().getKey()) != posInf\n\t\t\t\t\t&& (nodeOut.getNext().getKey()).compareTo((Integer) key) <= 0)\n\t\t\t\tnodeOut = nodeOut.getNext();\n\t\t\tif (nodeOut.getDown() != null)\n\t\t\t\tnodeOut = nodeOut.getDown();\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\treturn nodeOut;\n\t}", "public Entry find(Object key) {\r\n Entry entry_with_key = new Entry();\r\n entry_with_key.key = key; \r\n int comp_hash = compFunction(entry_with_key.key.hashCode());\r\n if (hash_table[comp_hash] == null) {\r\n return null;\r\n } else {\r\n DList searching = hash_table[comp_hash];\r\n for(Object entry: searching){\r\n if(((Entry) entry).key().equals(key)){\r\n return (Entry) entry;\r\n }\r\n }\r\n return null;\r\n \r\n }\r\n\r\n\r\n }", "public DataItem find(int key){\n\t\tint hashVal = hashFunc(key);\n\t\tint stepSize = hashFunc2(key);\n\t\twhile(hashArray[hashVal] != null){\n\t\t\tif(hashArray[hashVal].getKey() == key){\n\t\t\t\tDataItem temp = hashArray[hashVal]; //find the item\n\t\t\t\treturn temp;\n\t\t\t}\n\t\t\thashVal += stepSize;\n\t\t\thashVal %= arraySize;\n\t\t}\n\t\treturn null;\n\t}", "public Node find(int key) // find node with given key\n\t{ // (assumes non-empty tree)\n\t\tNode current = root; // start at root\n\t\tif(current == null) {\n\t\t\treturn null;\n\t\t}\n\t\twhile(current.iData != key) // while no match,\n\t\t{\n\t\t\tif(key < current.iData) // go left?\n\t\t\t\tcurrent = current.leftChild;\n\t\t\telse // or go right?\n\t\t\t\tcurrent = current.rightChild;\n\t\t\tif(current == null) // if no child,\n\t\t\t\treturn null; // didn't find it\n\t\t}\n\t\treturn current; // found it\n\t}", "@Override\r\n public Object findElement(Object key) {\r\n\r\n // Search for node possibly containing key\r\n TFNode node = search(root(), key);\r\n \r\n // Note the index of where the key should be\r\n int index = FFGTE(node, key);\r\n\r\n // If the index is greater than the number of items in the node, the key is not in the node\r\n if (index < node.getNumItems()) {\r\n // Look for key in node\r\n if (treeComp.isEqual(node.getItem(index).key(), key)) {\r\n return node.getItem(index);\r\n }\r\n }\r\n\r\n // The search hit a leaf without finding the key\r\n return null;\r\n }", "public String lookup(String key){\n Node N = front;\n while( N != null){\n if( N.key.equals(key)){\n return N.value;\n }\n N = N.next;\n }\n return null;\n }", "public boolean search(int key) {\n\t\tNode currentNode = this.head;\n\t\tdo {\n\t\t\twhile (currentNode.next != null && currentNode.next.key < key) {\n\t\t\t\tcurrentNode = currentNode.next;\n\t\t\t}\n\t\t\tif (currentNode.next != null && currentNode.next.key == key) return true;\n\t\t\tcurrentNode = currentNode.down;\n\t\t} while (currentNode != null);\n\t\treturn false;\n\t}", "public Node find(int key) {\n Node current = root; // start at root\n while (current.iData != key) {\n // while no match\n if (key < current.iData)\n // go left\n current = current.leftChild;\n else\n current = current.rightChild;\n if (current == null) // if no child, didn't find it\n return null;\n }\n return current; // found it\n }", "public T search(K key) {\n\t\tfor (T item : list) {\n\t\t\tif (item.matches(key)) {\n\t\t\t\treturn item;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public boolean find(int key) {\n\t\tint pos = 0;\n\t\tfor (IntNode curr = head; curr != null && curr.key <= key; curr = curr.next, pos++) {\n\t\t\tif (curr.key == key)\n\t\t\t\treturn true;\n\t\t}\t\t\n\t\treturn false;\n\t}", "private BTNode search(BTNode btNode, DataPair key) {\n int i =0;\n while (i < btNode.mCurrentKeyNum && key.compareTo(btNode.mKeys[i]) > 0)\n i++;\n\n if (i < btNode.mCurrentKeyNum && key.compareTo(btNode.mKeys[i])==0)\n return btNode;//btNode.mKeys[i];\n if (btNode.mIsLeaf)\n return null;\n return search(btNode.mChildren[i],key);\n }", "public Node search(K key) {\n\t\tNode currentNode = this.mRoot;\n\t\t// start from the root of the tree that calls the method\n\t\twhile (currentNode != mSentinel && key.compareTo(currentNode.getKey()) != 0) {\n\t\t\t// if the current node is not empty and its key is not equal to the\n\t\t\t// search key\n\t\t\tif (key.compareTo(currentNode.getKey()) < 0) {\n\t\t\t\tcurrentNode = currentNode.getLeftChild();\n\t\t\t\t// go left if the search key is lower\n\t\t\t} else {\n\t\t\t\tcurrentNode = currentNode.getrightChild();\n\t\t\t\t// go right if the search key is higher\n\t\t\t}\n\t\t\t// break the loop if the search key matches the node key\n\t\t}\n\t\tif (currentNode == mSentinel) {\n\t\t\treturn null;\n\t\t\t// if there is not a match return nu;;\n\t\t} else {\n\t\t\treturn currentNode;\n\t\t\t// return the first node with the same key as the search key\n\t\t}\n\t}", "public Node getNode(String key) {\n \ttmp = first;\n \tint i;\n \tfor (i=0;i<len;i++) {\n \t\tif (tmp.key == key) {\n \t\t\treturn tmp;\n \t\t}\n \t\ttmp = tmp.getNext();\n \t}\n \treturn null;\n }", "private Node _locate(Object key){\n\t\tint hashCode = key.hashCode();\r\n\t\tint bucketNum = hashCode % _numBuckets;\r\n\t\treturn _locate(key, bucketNum);\r\n\t}", "private Node _locate(Object key, int bucketNum){\n\t\tNode bucketList = _buckets[bucketNum];\r\n\t\twhile(bucketList != null)\r\n\t\t{\r\n\t\t\tif(key == bucketList._key){\t\t\t\t// If the key matches the key of the current node\r\n\t\t\t\tbreak;\t\t\t\t\t\t\t\t// in bucketList, then return the bucketList.\r\n\t\t\t}\r\n\t\t\tbucketList = bucketList._nextNode;\t\t// Otherwise move to the next node.\r\n\t\t}\r\n\t\treturn bucketList;\r\n\t}", "public Node search(int key) {\n\t\t\t Node node=root;\n\t while (node!= nil){\n\t if(node.id==key){\n\t \treturn node;\n\t }\n\t else if(node.id<key){\n\t \tnode=node.right;\n\t }\n\t else{\n\t \tnode=node.left;\n\t } \n\t }\n\t //key not found in the tree\n\t return nil;\n\t }", "public ListNode processGet(int key) {\n if (isAlreadyPresent(key)) {\n ListNode node = removeCurrentListNode(cacheMap.get(key), cacheMap.get(key).freq);\n node.freq += 1;\n insertCurrentListNode(node, node.freq);\n updateFList(frequencyMap.get(node.freq - 1));\n return node;\n } else {\n return null;\n }\n }", "public V get(K key) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n V result = null;\r\n if (data[hash] != null) {\r\n Node currentNode = data[hash];\r\n while (currentNode != null) {\r\n if (currentNode.key == key || currentNode.key.equals(key)) {\r\n result = (V) currentNode.value;\r\n }\r\n currentNode = currentNode.next;\r\n }\r\n }\r\n return result;\r\n }", "public V get(K key) {\n int hashCode = scaledHashCode(key);\n OwnLinkedList<K, V> list = table[hashCode];\n if (list == null) {\n return null;\n }\n PairNode<K, V> result = list.search(key);\n if (result == null) {\n return null;\n }\n return result.getValue();\n }", "public V find(K key) {\n Node<K,V> node = root;\n while (node != null) {\n int cmp = key.compareTo(node.key);\n if (cmp < 0) {\n node = node.left;\n } else if (cmp > 0) {\n node = node.right;\n } else {\n return node.value;\n }\n }\n return null;\n }", "public E find(K key){\n\t\tE output= null;\n\t\t\n\t\tint i = 0;\n\t\twhile (i<keys.length && output == null){\n\t\t\tif(keys[i] != null && keys[i].equals(key))\n\t\t\t\toutput = elem[i];\n\t\t\ti = i + 1;\n\t\t}\n\t\treturn output;\n\t}", "private K lookup(BSTnode<K> n, K key) {\n\t\tif (n == null) {// if key is not present\n\t\t\treturn null;\n\t\t}\n\t\tif (key.equals(n.getKey())) {// if key is present, return the match to\n\t\t\t\t\t\t\t\t\t\t// be incremented\n\t\t\treturn n.getKey();\n\t\t}\n\t\tif (key.compareTo(n.getKey()) < 0) {\n\t\t\t// key < this node's key; look in left subtree\n\t\t\treturn lookup(n.getLeft(), key);\n\t\t}\n\n\t\telse {\n\t\t\t// key > this node's key; look in right subtree\n\t\t\treturn lookup(n.getRight(), key);\n\t\t}\n\t}", "public V search(K key);", "public V lookup(K key);", "private Node findKey(Node R, String targetKey){ \n if(R == null || R.item.key.equals(targetKey)) return R;\n if(R.item.key.compareToIgnoreCase(targetKey)>0) return findKey(R.left, targetKey);\n else return findKey(R.right, targetKey); //(R.item.key.compareToIgnoreCase(targetKey)>0) \n }", "public int find(K key){\r\n int k =0;\r\n int ik;\r\n while(true){\r\n ik = getIndex(k,key);\r\n if(hashTable[ik] == null || hashTable[ik].equals(key))\r\n return ik;\r\n else if(hashTable[ik].isDeleted){ // deleted\r\n break;\r\n }else{\r\n k++;\r\n }\r\n }\r\n int xspot = ik;\r\n while(true){\r\n k++;\r\n if(hashTable[ik]!=null && hashTable[ik].equals(key)){\r\n return ik;\r\n }\r\n if(hashTable[ik] == null){\r\n return xspot;\r\n }\r\n }\r\n }", "public abstract boolean lookup(Key key);", "public TValue find(TKey key) {\n Node n = bstFind(key, mRoot); // find the Node containing the key if any\n if (n == null || n == NIL_NODE)\n throw new RuntimeException(\"Key not found\");\n return n.mValue;\n }", "public boolean containsKey(K key) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n Node targetNode = data[hash];\r\n while (targetNode != null) {\r\n if (targetNode.key == key || targetNode.key.equals(key)) {\r\n return true;\r\n }\r\n targetNode = targetNode.next;\r\n }\r\n return false;\r\n }", "public static <K,V> ItemNode<K,V> search(ItemNode<K,V> node, K k) {\n while (node != null && !k.equals(node.k))\n node = node.next;\n return node;\n }", "public V find (K key) throws KeyNotFoundException {\n\t\treturn findKey(root, key);\n\t}", "public boolean search(String key){\n DataPair dp = getDataPair(key);\n BTNode out=null;\n if (dp != null)\n out = search(dp);\n return out != null;\n }", "public int get(int key) {\n int index = key % n;\n MapNode node = keys[index];\n for (int i =0; i < node.list.size(); ++i) {\n if (node.list.get(i) == key) {\n return vals[index].list.get(i);\n }\n }\n\n return -1;\n }", "public Integer search(Integer currentLine, int key) {\r\n\t\t//Key was found or there is not \r\n\t\t//any new Node to search\r\n\t\tif(increaseCompares() && (currentLine==-1 || key==getKey(currentLine))) {\r\n\t\t\treturn currentLine;\r\n\t\t}\r\n\t\t//Get left subtree for searching\t\r\n\t\tif(increaseCompares() && key<getKey(currentLine)) {\r\n\t\t\treturn search(getLeft(currentLine),key);\r\n\t\t}\r\n\t\t//Get right subtree for searching\r\n\t\telse {\r\n\t\t\treturn search(getRight(currentLine),key);\r\n\t\t}\r\n\t\t\r\n\t}", "private ListNode findNodeWith(T aData){\r\n ListNode temp = head;\r\n while(temp != null){\r\n if (temp.data == aData)\r\n return temp;\r\n temp = temp.link;\r\n }\r\n return null;\r\n }", "public boolean SearchElem(int key) {\n\t\t\n\t\tNode curr = head;\n\t\twhile(curr.next!=null) {\n\t\t\tif(curr.data == key)\n\t\t\t\treturn true;\t//Return true if element is found\n\t\t\tcurr = curr.next;\n\t\t}\n\t\t\n\t\treturn false; //Return false if element is not found\n\t}", "public static Node find(Node node, int search_key){\n if(node!=null){ // node ที่รับมาต้องมีตัวตน\n if (search_key== node.key){ //ถ้าเจอ node ที่ตามหา ส่งค่าออกไป\n return node;\n }\n else if (search_key > node.key) { //ถ้า search_key มากกว่า node.key ตอนนี้ แสดงว่า อยู่ทางด้านขวา\n return find(node.right,search_key); // recursive โดยส่ง right-subtree\n }\n else{\n return find(node.left,search_key); // recursive โดยส่ง left-subtree\n }\n }\n else return null;\n\n }", "public V search(K key) throws KeyNotFoundException {\n\tif (!RBT.containsKey(key))\n\t throw new KeyNotFoundException();\n return (V) RBT.get(key);\n }", "public Value find(Value key) {\n\t\tValue v = get(key);\n\t\tif (v != null)\n\t\t\treturn v;\n\t\tif (parent != null)\n\t\t\treturn parent.find(key);\n\t\treturn null;\n\t}", "public static int linearSearch(int[] list, int key) {\r\n for (int i = 0; i < list.length; i++) {\r\n if (list[i] == key) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }", "@Override\n public Node getNodeByKey(String hashKey) {\n long key = Math.abs(Long.valueOf(hashKey));\n\n if (availableNodes.isEmpty()) {\n return null;\n }\n\n int index = (int) (key % availableNodes.size());\n Node node = availableNodes.get(index);\n if (node == null) {\n logger.error(\"failt to get hash node, the hash key:\" + hashKey);\n }\n return node;\n }", "public static int linearSearch(int[] list, int key) {\n for (int i = 0; i < list.length; i++) {\n if (key == list[i])\n return i;\n }\n return -1;\n }", "public RBNode<T> search(T key) {\r\n return search1(key);\r\n//\t\treturn search2(root, key); //recursive version\r\n }", "private TFNode search(TFNode node, Object key) throws TFNodeException {\r\n\r\n // Check for empty node\r\n if (node.getNumItems() == 0) {\r\n throw new TFNodeException(\"Search discovered an empty node\");\r\n }\r\n\r\n int index = FFGTE(node, key);\r\n TFNode child = node.getChild(index);\r\n\r\n // If the node contains they key, return node\r\n if (index < node.getNumItems()) {\r\n if(treeComp.isEqual(node.getItem(index).key(), key)){\r\n return node;\r\n }\r\n }\r\n \r\n // If the node is a leaf, return node\r\n if (child == null) {\r\n return node;\r\n // If neither of the above, keep searching\r\n } else {\r\n return search(child, key);\r\n }\r\n \r\n }", "public Optional<V> lookup(K key) {\n Optional<V> mt = Optional.empty();\n return this.entries.foldr(((kvp, o)-> kvp.left.equals(key) ? Optional.of(kvp.right) : o) , mt);\n }", "@Override\n\tpublic boolean contains(K key) {\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(!isEmpty()){\n\t\t\twhile(currentNode.key != key){\n\t\t\t\tif(currentNode.getNextNode() == null){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public RBNode search(RBNode x, int k){\r\n\t\twhile (x != nil && k != x.key){\r\n\t\t\tif (k < x.key)\r\n\t\t\t\tx = x.left;\r\n\t\t\telse x = x.right;\r\n\t\t}\r\n\t\treturn x;\r\n\t}", "@Override\n\tpublic K lookup(K key) {\n\t\treturn lookup(root, key);\n\t}", "@Override\n\t@TimeComplexity(\"O(log n)\")\n\tpublic V get(K key) {\n\t/* TCJ\n\t * Binary search operation: log n\n\t */\n\t\tint j = findIndex(key);\n\t\tif ( j == size() || key.compareTo(map.get(j).getKey()) != 0 ) { return null; }\n\t\treturn map.get(j).getValue();\n\t}", "@Override\n public V get(Object key) {\n int index = key.hashCode() % table.length;\n if (index < 0) {\n index += table.length;\n }\n if (table[index] == null) {\n return null; // key is not in the table.\n }\n // Search the list at table[index] to find the key.\n for (Entry<K, V> nextItem : table[index]) {\n if (nextItem.key.equals(key)) {\n return nextItem.value;\n }\n }\n\n // assert: key is not in the table.\n return null;\n }", "public E searchHelper(K key, BSTNode<E, K> node)\r\n\t{\r\n\t\tE left = null;\r\n\t\tE right = null;\r\n\t\t\r\n\t\tif(node.getKey().compareTo(key) <= -1) //root is less than key\r\n\t\t{\r\n\t\t\tif(node.getRight()!=null)\r\n\t\t\t{\r\n\t\t\t\treturn searchHelper(key, node.getRight());\r\n\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(node.getKey().compareTo(key) >= 1)\r\n\t\t{\r\n\t\t\tif(node.getLeft() != null)\r\n\t\t\t{\r\n\t\t\t\treturn searchHelper(key, node.getLeft());\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(node.getKey().compareTo(key) == 0)\r\n\t\t{\r\n\t\t\treturn node.getElement();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t}", "private int locate(Key key) {\n\t\tint index = hash(key);\n\t\twhile(this.keys[index] != null && !this.keys[index].equals(key)) {\n\t\t\tindex = increment(index);\n\t\t}\n\t\treturn index;\n\t}", "public RBNode<T, E> searchAndRetrieve(T key) {\r\n\t\tRBNode<T, E> c = root;\r\n\t\tRBNode<T, E> p = nillLeaf;\r\n\t\twhile (c != nillLeaf) {\r\n\t\t\t// if when comparing if it hasnt found the key go to the left\r\n\t\t\tif (key.compareTo(c.uniqueKey) < 0) {\r\n\t\t\t\tp = c;\r\n\t\t\t\tc = c.leftChild;\r\n\t\t\t}\r\n\t\t\t// if when comparing if it hasnt found the key go to the right\r\n\t\t\telse if (key.compareTo(c.uniqueKey) > 0) {\r\n\t\t\t\tp = c;\r\n\t\t\t\tc = c.rightChild;\r\n\t\t\t}\r\n\t\t\t// they are equal\r\n\t\t\telse {\r\n\t\t\t\tp = c;\r\n\t\t\t\tc = c.leftChild;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn p;\r\n\t}", "private Node locatePrevNode(K key) { \n\t\tNode p = null; \n\t\tNode current = first; \n\t\twhile (current != null && current.getData().getKey().compareTo(key) < 0) {\n\t\t\tp = current; \n\t\t\tcurrent = current.getNext(); \n\t\t}\n\t\treturn p; \n\t}", "public boolean contains(int key) {\n int i = index(key);\n if(nodes[i] == null) {\n \treturn false;\n }\n Node prev = find(nodes[i], key);\n if(prev.next == null) {\n \treturn false;\n }\n return true;\n }", "public int get(int key) {\n int hashCode = key%nodes.length;\n if (nodes[hashCode]==null) return -1;\n ListNode pre = findPrev(key);\n return pre.next==null?-1:pre.next.val;\n }", "public Value get(Key key) {\n\t\tNode node = current_node;\n\t\twhile(!node.key.equals(key)) node = node.next;\n\t\treturn node.value;\n\t}", "private int locate(Random generator, K key)\n {\n boolean found = false;\n\n int index = generator.nextInt(hashTable.length);\n\n while ( !found && (hashTable[index] != null) )\n {\n if ( hashTable[index].isIn() &&\n key.equals(hashTable[index].getKey()) )\n found = true; // key found\n else // follow probe sequence\n index = generator.nextInt(hashTable.length); // Linear probing\n totalProbes++;\n } // end while\n\n // Assertion: Either key or null is found at hashTable[index]\n int result = -1;\n\n if (found)\n result = index;\n\n return result;\n }", "private int findSlot(K key, boolean forAdd)\r\n\t{\r\n\t\tint slot = hash1(key);\r\n\t\tint step = hash2(key);\r\n\t\tint M = table.length;\r\n\t\t\r\n\t\tif (forAdd)\r\n\t\t{\r\n\t\t\t//TODO: is it possible that this will loop forever?\r\n\t\t\twhile (true)\r\n\t\t\t{\r\n\t\t\t\tMapEntry<K, V> e = table[slot];\r\n\t\t\t\tif(e == null || e == DUMMY) //we can override DUMMY\r\n\t\t\t\t{ \r\n\t\t\t\t\treturn slot;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tslot = (slot + step) % M;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t//TODO: is it possible that this will loop forever?\r\n\t\t\twhile (table[slot] != null)\r\n\t\t\t{\r\n\t\t\t\tMapEntry<K, V> e = table[slot];\r\n\t\t\t\tif(key.equals(e.getKey()))\r\n\t\t\t\t{\r\n\t\t\t\t\treturn slot;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tslot = (slot + step) % M;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn -1;\r\n\t}", "public WordList getItem( String key )\n {\n WordList whichList = theLists[ myhash(key) ];\n \n if (whichList.isEmpty()) {\n \treturn null;\n }\n\n return whichList;\n }", "public V lookup(K key) {\n\t\tTree<K, V> t = this;\n\t\treturn lookup(t, key);\n\t}", "public BTreeNode search(long key) {\n\t\treturn searcher(root, key);\n\t}", "@Override\n public boolean search(K key) {\n if (rootNode == null)\n return false;\n try {\n return exist(key, rootNode);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n return false;\n }\n }", "@Override\r\n public ValueType get(KeyType key) throws NoSuchElementException {\r\n // if capacity is 0, throw an exception\r\n if (capacity == 0) {\r\n throw new NoSuchElementException(\"No Match Found\");\r\n }\r\n\r\n int index = hashFunction(key); // the index of the pair in the hashTable\r\n\r\n // If the linked list at the index is null, target is not exist, and throw an exception.\r\n if (hashTable[index] == null) {\r\n throw new NoSuchElementException(\"No Match Found\");\r\n }\r\n\r\n // Find the target in the linked list. If found, return the value, if not found, throw an exception.\r\n for (HashNode node : hashTable[index]) {\r\n if (node.key.equals(key)) {\r\n return node.value;\r\n }\r\n }\r\n throw new NoSuchElementException(\"No Match Found\");\r\n }", "private Node bstFind(TKey key, Node currentNode) {\n return (currentNode == null || currentNode == NIL_NODE ||\n key.compareTo(currentNode.mKey) == 0) ?\n currentNode:\n ((key.compareTo(currentNode.mKey) < 0) ?\n bstFind(key, currentNode.mLeft) : \n bstFind(key, currentNode.mRight));\n // That's right. A ternary operator WITHIN a ternary operator.\n // That's how it's done, son.\n }", "public int findNext(Node root, int key){\n\t\tint res = key;\n\t\twhile(root != nil){\n\t\t\tif(root.id <= key){\n\t\t\t\troot = root.right;\n\t\t\t}\n\t\t\tif(root != nil && root.id > key){\n\t\t\t\tres = root.id;\n\t\t\t\troot=root.left;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn res;\n\t}", "public V get(Object key) {\r\n int index = key.hashCode() % mainTable.length;\r\n if (index < 0) {\r\n index += mainTable.length;\r\n }\r\n if (mainTable[index] == null) {\r\n return null; // key is not in the mainTable.\r\n }\r\n\r\n int chainLength = 0;\r\n // Search the list at mainTable[index] to find the key.\r\n for (Entry<K,V> nextItem : mainTable[index]) {\r\n chainLength++;\r\n\r\n if (nextItem.key.equals(key)) {\r\n addChainLength(chainLength);\r\n return nextItem.value;\r\n }\r\n }\r\n\r\n addChainLength(chainLength);\r\n // key is not in the chain\r\n return null;\r\n }", "private int search(int key,int start,int end)\n\t{\n\t\tint position=start+(end-start)/2;\n\t\t\n\t\t// if element is not present in the list\n\t\tif(start >= end)\n\t\t{\n\t\t\tif ((start == end) && (data[start] == key))\n\t\t\t\treturn start;\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}\n\t\t\n\t\tif(key==data[position])\n\t\t\treturn position;\n\t\t\n\t\telse if(key < data[position])\n\t\t\treturn search(key,start,position-1);\n\t\t\n\t\telse if(key > data[position])\n\t\t\treturn search(key,position+1,end);\n\t\t\n\t\treturn -1;\n\t\t\n\t}", "public Value get(Key key) {\n if (key == null) {\n return null;\n }\n if(first.key.compareTo(key) == 0) {\n return update(first);\n }\n Node recentNode = first;\n while(recentNode != null) {\n if (recentNode.next.key.compareTo(key) == 0) {\n return update(recentNode);\n }\n recentNode = recentNode.next;\n }\n return null;\n }", "protected Node<T> getNode(T key) {\n\t\tNode<T> node = root;\n\t\twhile (node != null) {\n\t\t\tif (key.compareTo(node.value) == 0) {\n\t\t\t\treturn node;\n\t\t\t} else if (key.compareTo(node.value) < 0) {\n\t\t\t\tnode = node.right;\n\t\t\t} else {\n\t\t\t\tnode = node.left;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public V get(Object key) {\r\n\t\tif (key == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tint slotIndex = Math.abs(key.hashCode()) % table.length;\r\n\r\n\t\tif (table[slotIndex] == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tTableEntry<K, V> currentElement = table[slotIndex];\r\n\r\n\t\tdo {\r\n\t\t\tif (currentElement.key.equals(key)) {\r\n\t\t\t\treturn currentElement.value;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = currentElement.next;\r\n\t\t} while (currentElement != null);\r\n\r\n\t\treturn null;\r\n\t}", "private int binaryFind(K key) {\n int sortedCount = this.sortedCount.get();\n // if there are no sorted keys, or the first item is already larger than key -\n // return the head node for a regular linear search\n if ((sortedCount == 0) || comparator.compareKeyAndSerializedKey(key, readKey(FIRST_ITEM)) <= 0) {\n return HEAD_NODE;\n }\n\n // optimization: compare with last key to avoid binary search\n if (comparator.compareKeyAndSerializedKey(key, readKey((sortedCount - 1) * FIELDS + FIRST_ITEM)) > 0) {\n return (sortedCount - 1) * FIELDS + FIRST_ITEM;\n }\n\n int start = 0;\n int end = sortedCount;\n\n while (end - start > 1) {\n int curr = start + (end - start) / 2;\n\n if (comparator.compareKeyAndSerializedKey(key, readKey(curr * FIELDS + FIRST_ITEM)) <= 0) {\n end = curr;\n } else {\n start = curr;\n }\n }\n\n return start * FIELDS + FIRST_ITEM;\n }", "public SkipNode find(String k, Integer val) {\n SkipNode node = head;\n\n while(true) {\n // Search right until a larger entry is found\n while( (node.right.key) != SkipNode.posInf && (node.right.value).compareTo(val) <= 0 ) {\n node = node.right;\n }\n\n // If possible, go down one level\n if(node.down != null)\n node = node.down;\n else\n break; // Lowest level reached\n }\n\n /**\n * If k is FOUND: return reference to entry containing key k\n * If k is NOT FOUND: return reference to next smallest entry of key k\n */\n return node;\n }", "public String find(String key) {\n\t\t\n\t\tsearchProbe = 0;\n\t\tint h = hash(key);\n\t\twhile(table[h]!=null) {\n\t\t\t\n\t\t\tif(table[h].toString().substring(0, 19).equals(key)) {\n\t\t\t\treturn table[h].toString();\n\t\t\t}\n\t\t\tsearchProbe++;\n\t\t\th=(h+1)%getTablesize();\n\t\t}\n\t\t\n\t\t\n\treturn \"Not Found\";\n\t}", "private void valueSearch(int key, Node currNode) {\n int numChildren = getNumChildren();\n\n // Returns if currNode is null.\n if (currNode == null) {\n queueNodeSelectAnimation(null, \"Current Node null, desired Node not found\",\n AnimationParameters.ANIM_TIME);\n return;\n\n }\n\n // Finishes the traversal if the key has been found.\n if (currNode.key == key) {\n queueNodeSelectAnimation(currNode, key + \" == \"\n + currNode.key + \", desired Node found\",\n AnimationParameters.ANIM_TIME);\n\n }\n // Explores the left subtree.\n else if (key < currNode.key) {\n for (int i = 0; i < numChildren / 2; ++i) {\n queueNodeSelectAnimation(currNode.children[i],\n key + \" < \" + currNode.key +\n \", exploring left subtree\",\n AnimationParameters.ANIM_TIME);\n valueSearch(key, currNode.children[i]);\n\n }\n }\n // Explores the right subtree.\n else {\n for (int i = numChildren / 2; i < numChildren; ++i) {\n queueNodeSelectAnimation(currNode.children[i],\n key + \" > \" + currNode.key +\n \", exploring right subtree\",\n AnimationParameters.ANIM_TIME);\n valueSearch(key, currNode.children[i]);\n\n }\n }\n }", "public String get (String key) {\r\n // String gets hashed to become hashed key, which is the index to find the linked list\r\n int arrIndex = hash(key);\r\n\r\n if (hashTableArray[arrIndex] == null) {\r\n hashTableArray[arrIndex] = new LinkedList<>();\r\n }\r\n for (int i = 0; i < hashTableArray[arrIndex].size(); i++) {\r\n // if at i the key in the hashtable is the same as the key that is supplied, return the value\r\n if (hashTableArray[arrIndex].get(i).key.equals(key)){\r\n return hashTableArray[arrIndex].get(i).value;\r\n }\r\n }\r\n return null;\r\n }", "private String getLocalValue(int key)\n {\n // binary search, since the list is sorted\n int start = 0;\n int end = cache.size() - 1;\n while (start <= end)\n {\n int mid = (start + end) / 2;\n Record currentRecord = cache.get(mid);\n if (key == currentRecord.key())\n {\n return currentRecord.value();\n }\n else if (key < currentRecord.key())\n {\n end = mid - 1;\n }\n else\n {\n start = mid + 1;\n }\n }\n \n // not found\n return null; \n }", "public int get(int key) {\n ListNode node = hashtable.get(key);\n \n if(node == null){\n return -1;\n }\n \n // Item has been accessed. Move to the front of the cache\n moveToHead(node);\n return node.value;\n }", "public TreeNode find(Integer searchKey) {\n\t\treturn root.find(searchKey);\n\t}", "public static int binarySearch(int[] list, int key) {\n int low = 0;\n int high = list.length - 1;\n \n while (high >= low) {\n int mid = (low + high) / 2;\n if (key < list[mid])\n high = mid - 1;\n else if (key == list[mid])\n return mid;\n else\n low = mid + 1;\n }\n return -1 - 1; // now high < low, key not found\n }", "private RadixTree find(Signature key) {\n if (key.isEmpty()) {\n return this;\n } else {\n for (Signature label : children.keySet()) {\n if (label.equals(key)) {\n return children.get(label);\n } else if (label.isPrefix(key)) {\n RadixTree child = children.get(label);\n int len = label.size();\n return child.find(key.suffix(len));\n }\n }\n }\n\n return null;\n }", "@Override\r\n public boolean containsKey(KeyType key) {\r\n\r\n int index = Math.abs(key.hashCode()) % this.capacity;\r\n\r\n // if the index is within the array of linked lists, the array of linked lists exists, and there\r\n // is a Linked list object at the specified index\r\n if (index < this.capacity && index >= 0 && array[index] != null && array != null) {\r\n\r\n \r\n for (int i = 0; i < array[index].size(); i++) {\r\n\r\n\r\n if (array[index].get(i).getTitle().equals(key)) {\r\n \r\n return true;\r\n \r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n return false;\r\n }", "public V find(K k) {\r\n int i = h(k);\r\n int z = i;\r\n int j = 0;\r\n while ((K)htable[i].key() != k) {\r\n i = (z + p(k, ++j)) % htable.length;\r\n if (j == htable.length) {\r\n return null;\r\n }\r\n while (htable[i] == null) {\r\n i = (z + p(k, ++j)) % htable.length;\r\n if (j == htable.length) {\r\n return null;\r\n }\r\n }\r\n }\r\n return (V)htable[i].value();\r\n }", "public int get(int key) {\n Node node = map.get(key);\n if (node == null) {\n return -1;\n }\n else if (node != tail) {\n if (node == head) {\n head = head.next;\n }\n else {\n node.pre.next = node.next;\n }\n node.next.pre = node.pre;\n tail.next = node;\n node.pre = tail;\n node.next = null;\n tail = node;\n }\n return node.val;\n }", "public int getIndexOf(K key);", "public LinkedList<Value> get(Key key) { return new LinkedList<>(); }", "public ElectionTable.ElectionNode searchElection(String key){\n int chain=hashFunction(key);\r\n if (electionTable[chain] !=null) {\r\n System.out.println(\"found Election!!!\");\r\n return electionTable[chain];\r\n } else {\r\n System.out.println(\"not found Election!!!\");\r\n return null;\r\n }\r\n }", "public String find(int key) {\n\t\t//YOUR CODE HERE\n\t\tif (root == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn find(key,root);\n\t}", "public String get(String key){\n\t\tListMapEntry temp = first;\n\t\twhile(temp!=null && !temp.getKey().equals(key)){\n\t\t\ttemp = temp.getNext();\n\t\t}\n\t\tif(temp==null){\n\t\t\treturn null;\n\t\t}\n\t\telse{\n\t\t\treturn temp.getValue();\n\t\t}\n\t}" ]
[ "0.7818203", "0.751344", "0.7428782", "0.7401015", "0.73738927", "0.7180469", "0.7161027", "0.7108143", "0.71056616", "0.6957263", "0.68518305", "0.6821049", "0.6780944", "0.6741486", "0.6719827", "0.6675935", "0.6621432", "0.6606937", "0.6588971", "0.657287", "0.6523282", "0.6522404", "0.6509289", "0.6507372", "0.6469968", "0.6465801", "0.64495105", "0.64417845", "0.6421334", "0.6418706", "0.6413505", "0.6378599", "0.63544154", "0.6334692", "0.63339216", "0.63126934", "0.6292818", "0.62901276", "0.6245419", "0.62069386", "0.6165645", "0.6144934", "0.61131454", "0.6093846", "0.60928243", "0.6089987", "0.6082285", "0.6071921", "0.6064846", "0.60311073", "0.5987158", "0.59857816", "0.59803504", "0.5974177", "0.5967485", "0.596258", "0.5961843", "0.596136", "0.5957355", "0.59527194", "0.59477514", "0.5947148", "0.5940866", "0.5919344", "0.5910252", "0.59021956", "0.5897094", "0.58919597", "0.5882983", "0.5858512", "0.5856608", "0.5850041", "0.58496493", "0.584607", "0.5826155", "0.5820275", "0.58117783", "0.5798892", "0.5788115", "0.5780736", "0.57761186", "0.57707953", "0.57688355", "0.57577205", "0.5754686", "0.5751734", "0.57470036", "0.5744322", "0.5744128", "0.57403845", "0.573504", "0.5730903", "0.57289255", "0.57272136", "0.5724579", "0.5720412", "0.5704774", "0.57017714", "0.5697439", "0.5680241" ]
0.8312371
0
Adds a key and value to the bucket if the key is not yet present, or replaces the value if the key is already there.
public V put(K key, V value) { if (key == null || value == null) { throw new NullPointerException(); } else if (find(key) == null) { ListNode newNode = new ListNode(key, value, header); header = newNode; return null; } else { ListNode current = find(key); V previous = current.value; current.value = value; return previous; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void put(Object key, Object value) {\n\t\tint index = key.hashCode() % SLOTS;\n\t\t// check if key is already present in that slot/bucket.\n\t\tfor(Pair p:table[index]) {\n\t\t\tif(key.equals(p.key)) {\n\t\t\t\tp.value = value; // overwrite value if key already present.\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// if not present, add key-value pair in that slot/bucket.\n\t\tPair pair = new Pair(key, value);\n\t\ttable[index].add(pair);\n\t}", "public void put(K key, V value) {\n int hash = getHash(key.hashCode());\n Entry<K, V> existing = buckets[hash];\n Entry<K, V> entry = new Entry<>(key, value);\n\n if (existing == null) {\n buckets[hash] = entry;\n } else { // using separating chaining collision resolution. Another way is open addressing, resizing the array to reducing collision.\n while(existing.next != null) {\n if (existing.key.equals(key)) {\n existing.value = value;\n return;\n }\n existing = existing.next;\n }\n if (existing.key.equals(key)) {\n existing.value = value;\n } else {\n existing.next = entry;\n }\n }\n }", "private void put(K key, V value) {\n\t\t\tif (key == null || value == null)\n\t\t\t\treturn;\n\t\t\telse if (keySet.contains(key)) {\n\t\t\t\tvalueSet.set(keySet.indexOf(key), value);\n\t\t\t} else {\n\t\t\t\tkeySet.add(key);\n\t\t\t\tvalueSet.add(keySet.indexOf(key), value);\n\t\t\t\tsize++;\n\t\t\t}\n\t\t}", "@Override\n public void add(K key, V value) {\n if(containsKey(key)){\n List<V> v = getValues(key);\n if(v.contains(value)){return;}\n }\n internalGetValue(key).add(value);\n }", "void add(K key, V value);", "public V put(K key, V value) {\n if (null == key) {\n return isertNullKey(key, value);\n } else {\n // inserting other keys\n int location = hashFunction(key.hashCode());\n if (location / capacity >= loadFactor) {\n resize();\n }\n MyEntry<K, V> entry = null;\n entry = bucket[location];\n //if a value exists with same key, we are not overriding that value, just returning the same,\n //in hashMap they actually override the new value\n if (entry != null && key == entry.getKey()) {\n return entry.getValue();\n } else {\n MyEntry ent = new MyEntry();\n ent.setKey(key);\n ent.setValue(value);\n bucket[location] = ent;\n return value;\n }\n\n }\n }", "@Override\n\tpublic V add(K key, V value) {\n\t\tcheckNullKey(key);\n\t\tcheckNullValue(value);\n\t\twriteLock.lock();\n\t\ttry {\n\t\t\treturn cache.put(key, value);\n\t\t} finally {\n\t\t\twriteLock.unlock();\n\t\t}\n\t}", "public V add(K key, V value);", "@Override\r\n\tpublic V put(K key, V value) {\r\n\t\tint index = key.hashCode() % numBuckets;\r\n\t\treturn ((Bucket) buckets[index]).put(key, value);\r\n\t}", "public boolean add(K key, V value);", "public void put(Key key, Value val);", "@Override\n public V put(K key, V value) {\n\n \tV tempValue = get(key);\n \t\n \tLinkedList<Entry> tempBucket = chooseBucket(key);\n \t\n \tif(tempValue != null) {\n \t\tfor(int i=0;i<tempBucket.size();i++) {\n\t \t\tEntry tempEntry = tempBucket.get(i);\n\t \t\t\n\t \t\tif(tempEntry.getKey() == key) {\n\t \t\t\tV returnValue = tempEntry.getValue();\n\t \t\t\ttempEntry.setValue(value);\n\t \t\t\treturn returnValue;\n\t \t\t}\n\t \t}\n \t} else {\n \t\tsize ++;\n \t\ttempBucket.add(new Entry(key, value));\n \t}\n \t\n \tif(size > buckets.length*ALPHA) {\n \t\trehash(GROWTH_FACTOR);\n \t}\n \t\n return tempValue;\n }", "public V add(K key, V value)\n { \n checkInitialization();\n if ((key == null) || (value == null))\n throw new IllegalArgumentException();\n else\n { \n V result = null; \n int keyIndex = locateIndex(key); \n if ((keyIndex < numberOfEntries) && \n key.equals(dictionary[keyIndex].getKey()))\n {\n // Key found; return and replace entry's value\n result = dictionary[keyIndex].getValue(); // Get old value\n dictionary[keyIndex].setValue(value); // Replace value \n }\n else // Key not found; add new entry to dictionary\n { \n makeRoom(keyIndex);\n dictionary[keyIndex] = new Entry(key, value);\n numberOfEntries++;\n ensureCapacity(); // Ensure enough room for next add\n } // end if \n return result;\n } // end if\n }", "@Override\n public V put(K key, V value) {\n if (!containsKey(key)) {\n keys.add(key);\n }\n\n return super.put(key, value);\n }", "public void add(Object key, Object value){\n\t\tint bucketLoc = key.hashCode() % _numBuckets;\r\n\t\tif(_locate(key) == null){\r\n\t\t\tNode newNode = new Node(key,value,_buckets[bucketLoc]);\r\n\t\t\t_buckets[bucketLoc] = newNode;\r\n\t\t\t_count++;\r\n\t\t\t_loadFactor = (double) _count / (double) _numBuckets;\r\n\t\t\tif(_loadFactor > _maxLoadFactor){\r\n\t\t\t\t_increaseTableSize();\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t_buckets[bucketLoc]._value = value;\r\n\t\t}\r\n\t}", "boolean add(Object key, Object value);", "public void add(Key key, Value value) {\n\n\t\tif (2 * this.size > this.capacity) {\n\t\t\tresize(2 * this.capacity);\n\t\t}\n\n\t\t// Add this item to the hash table in the expected location.\n\n\t\tint index = locate(key);\n\t\tthis.keys[index] = key;\n\t\tthis.values[index] = value;\n\t\tthis.size++;\n\t}", "Object put(Object key, Object value);", "@SuppressWarnings(\"unchecked\")\n public T put(int key, T value) {\n resizeTables(count);\n int bucketIndex = findBucketIndex(key, true /* returnLast */);\n\n if(bucketIndex != -1) {\n long bucket = buckets[bucketIndex];\n int bucketKey = extractKey(bucket);\n\n if(bucketKey == key) {\n // The same key has been found.\n T oldValue = (T)data[bucketIndex];\n data[bucketIndex] = value;\n return oldValue;\n }\n else {\n // A new entry must be added at the end of the bucket.\n int dataIndex = appendData(key, value);\n buckets[bucketIndex] = replaceNext(dataIndex, bucket);\n }\n }\n else {\n // No bucket is associated with the hash code yet.\n int dataIndex = appendData(key, value);\n int keyHash = computeHash(key);\n table[keyHash] = dataIndex;\n }\n\n return null;\n }", "public V add(K key, V value)\r\n\t{\r\n\t\tint slot = findSlot(key, false); // check if key already exists\r\n\t\tV oldVal = null;\r\n\t\t\r\n\t\tif (slot >= 0)\r\n\t\t{\r\n\t\t\tMapEntry<K, V> e = table[slot];\r\n\t\t\toldVal = e.setValue(value);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tslot = findSlot(key, true); // find empty slot for adding\r\n\t\t\ttable[slot] = new MapEntry<>(key, value);\r\n\t\t\tcount++;\r\n\t\t\tif (count >= maxCount)\r\n\t\t\t{\r\n\t\t\t\trehash();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn oldVal;\r\n\t}", "void addEntry(K key, V value);", "void put(K key, V value);", "void put(K key, V value);", "public V put(K key,V value) {\n\tif(key==null||value==null) {\n\t throw new NullPointerException();\n\t}\n\telse {\n\tMyEntry addvalue=new MyEntry();\n\taddvalue.key=key;\n\taddvalue.value=value;\n\t\n\tint bucket=Math.abs(key.hashCode()%capacity);\n\t\n\t\n\t//what happens if the same key already exists\n\tfor(MyEntry i:table[bucket]) { \n\t if(i.key==key) {\n\t\tV previousvalue=i.value;\n\t\ttable[bucket].add(addvalue);\n\t\tsize++;\n\t\tif(((float)size/(float)capacity)>loadFactor) {\n\t\t resize();\n\t\t}\n\t\treturn previousvalue;\n\t }\n\t}\n\t\n\t//what happens if the key does not exist\n\ttable[bucket].add(addvalue);\n\tsize++;\n\tif(((float)size/(float)capacity)>loadFactor) {\n\t resize();\n\t}\n\treturn null;\n\t}\n }", "public boolean put(K key, V value)\r\n\t{\r\n\t\treturn data.addUpdate(new Entry(key, value));\r\n\t}", "protected abstract void put(K key, V value);", "public abstract V put(K key, V value);", "public Value putIfExists(Key key, Value value) {\r\n\t\t\tdata.reset();\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < data.size(); i++) {\r\n\t\t\t\tif (data.get().getKey().compareTo(key) == 0) {\r\n\t\t\t\t\tValue ret = data.get().getValue();\r\n\t\t\t\t\tdata.get().setValue(value);\r\n\t\t\t\t\treturn ret;\r\n\t\t\t\t}\r\n\t\t\t\tdata.next();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn null;\r\n\t\t}", "public void add(K key,V value) {\n DictionaryPair pair = new DictionaryPair(key,value);\n int index = findPosition(key);\n\n if (index!=DsConst.NOT_FOUND) {\n list.set(index,pair);\n } else {\n list.addLast(pair);\n this.count++;\n }\n }", "V put(K key, V value);", "boolean put(K key, V value);", "public boolean add(K key, V value){\r\n int loc = find(key);\r\n if(needToRehash()){\r\n rehash();\r\n }\r\n Entry<K,V> newEntry = new Entry<>(key,value);\r\n if(hashTable[loc]!= null && hashTable[loc].equals(key))\r\n return false;\r\n else{\r\n hashTable[loc] = newEntry;\r\n size++;\r\n return true;\r\n }\r\n }", "V put(final K key, final V value);", "@Override\n public void put(K key, V value) {\n // Note that the putHelper method considers the case when key is already\n // contained in the set which will effectively do nothing.\n root = putHelper(root, key, value);\n size += 1;\n }", "Object put(Object key, Object value) throws NullPointerException;", "public Value put(Key key, Value thing) ;", "public void put(K key, V value) {\n int keyBucket = hash(key);\n \n HashMapEntry<K, V> temp = table[keyBucket];\n while (temp != null) {\n if ((temp.key == null && key == null) \n || (temp.key != null && temp.key.equals(key))) {\n temp.value = value;\n return;\n }\n temp = temp.next;\n }\n \n table[keyBucket] = new HashMapEntry<K, V>(key, value, table[keyBucket]);\n size++;\n }", "public void put(Value key, Value value) {\n\t\tstorage.put(key, value);\n\t}", "public boolean put(String key, String value);", "void put(String key, Object value);", "public void addToValueAtKey(String aKey, String aValue) {\n if (cars.containsKey(aKey)) {\n cars.get(aKey).add(aValue);\n }\n }", "protected Object putElement(int key, Object value) {\n int index = key % capacity;\n if (index < 0) {\n index = -index;\n }\n if (map[index] == null) {\n //.... This is a new key since no bucket exists\n objectCounter++;\n map[index] = create(key, value);\n contents++;\n if (contents > maxLoad) {\n rehash();\n }\n return null;\n } else {\n //.... A bucket already exists for this index: check whether \n // we already have a mapping for this key\n MapElement me = map[index];\n while (true) {\n if (me.getKey() == key) {\n return me.atInsert(value);\n } else {\n if (me.getNext() == null) {\n // No next element: so we have no mapping for this key\n objectCounter++;\n MapElement result = create(key, value);\n me.setNext(result);\n contents++;\n if (contents > maxLoad) {\n rehash();\n }\n return null;\n } else {\n me = me.getNext();\n }\n }\n }\n }\n }", "void put(String key, String value) throws StorageException, ValidationException, KeyValueStoreException;", "public V put(K key, V value);", "public void put(String key, V value) {\n map.computeIfAbsent(key, k -> keepOrder ? new LinkedHashSet<>() : new HashSet<>()).add(value);\n }", "public void put(K key, V value) {\n if (null == key) {\n throw new IllegalStateException(\"Null value for key is \" +\n \"unsupported!\");\n }\n\n Node<Pair<K, V>> node = findItem(key);\n\n if (node != null) {\n node.getData().value = value;\n return;\n }\n\n Pair<K, V> entry = new Pair<>(key, value);\n\n int hash1 = hash1(key);\n int hash2 = hash2(key);\n\n int count1 = table[hash1] == null ? 0 : table[hash1].list.getCount();\n int count2 = table[hash2] == null ? 0 : table[hash2].list.getCount();\n\n if (count1 <= count2) {\n if (table[hash1] == null) {\n table[hash1] = new Entry<>();\n }\n\n table[hash1].list.put(entry);\n } else {\n if (table[hash2] == null) {\n table[hash2] = new Entry<>();\n }\n\n table[hash2].list.put(entry);\n }\n\n if (++elementsCount > table.length * OCCUPANCY) {\n rehash();\n }\n }", "@Override\n public V put(final K key, final V value) {\n if (key == null) {\n throw new NullPointerException(\"key\");\n }\n entries.add(new SimpleEntry<K,V>(key, value));\n size = UNKNOWN_SIZE;\n return null;\n }", "void add(String key);", "@Override\n public T put(String key, T value) {\n T old = null;\n // Do I have an entry for it already?\n Map.Entry<String, T> entry = entries.get(key);\n // Was it already there?\n if (entry != null) {\n // Yes. Just update it.\n old = entry.setValue(value);\n } else {\n // Add it to the map.\n map.put(prefix + key, value);\n // Rebuild.\n rebuildEntries();\n }\n return old;\n }", "public void put(Key key,Value value){\n\t\troot = insert(root,key,value);\n\t}", "public boolean put(final K key, final V value)\n {\n // Check if it already exists first\n if (this.hashMap.containsKey(key))\n {\n return false;\n }\n\n // Add the new head element\n this.addNewHead(key, value);\n\n return true;\n }", "public void putKV(String key, String value) throws Exception;", "@Override\r\n\tpublic V putElement(K key, V value) {\n\t\t\r\n\t\tif (capacity == 0)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tif (hashMap.isEmpty()) {\r\n\t\t\thashMap.put(key, value);\r\n\t\t\tque.add(key);\r\n\t\t\treturn value;\r\n\t\t}\t\t\r\n\t\t\r\n\t\tV element = getElement(key);\r\n\t\tV returnValue = hashMap.get(que.get(0));\r\n\t\t\r\n\t\tif (element == null) {\r\n\t\t\tif (hashMap.size() == capacity){\r\n\t\t\t\tremoveElement(que.get(0));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\thashMap.put(key, value);\r\n\t\t\tque.add(key);\r\n\t\t}\r\n\t\t\r\n\t\treturn returnValue;\r\n\t}", "void putValue(String key, Object data);", "void add(KeyType key, ValueType value);", "public V put(String key, V value) {\n int index = hashOf(key);\n while (index > capacity) grow();\n Object oldValue = values[index];\n values[index] = value;\n if (oldValue == null) size++;\n return (V) oldValue;\n }", "public void put(K key, V value)\n\t{\n\t\tcheckForNulls(key, value);\n\t\tint n = Math.abs(key.hashCode() % entries.length);\n\t\t\n\t\tif (entries[n] == null)\n\t\t{\n\t\t\tentries[n] = new LinkedList<>();\n\t\t\tentries[n].addFirst(new Entry(key, value));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tEntry e = new Entry(key, value);\n\t\t\t\n\t\t\tif (entries[n].contains(e) == true)\n\t\t\t\tentries[n].remove(e);\n\t\t\t\n\t\t\tentries[n].addFirst(e);\n\t\t}\n\t}", "@Override\n\t@TimeComplexity(\"O(n)\")\n\tpublic V put(K key, V value) {\n\t/* TCJ\n\t * Binary search operation: log n\n\t * Iterate through new collection: n\n\t */\n\t\t//.getKey().compareTo(null) == 0\n\t\tV oldValue;\n\t\tint j = findIndex(key);\n\t\tif ( map.get(j) == null ) {\n\t\t\toldValue = null;\n\t\t} else {\n\t\t\toldValue = map.get(j).getValue();\n\t\t}\n\t\t\n\t\tif ( j < size() && key.compareTo(map.get(j).getKey()) == 0) {\n\t\t\tmap.get(j).setValue(value);\n\t\t\treturn oldValue;\n\t\t}\n\t\tmap.add(j, new mapEntry<K, V>(key, value));\n\t\treturn null;\n\t}", "public void put(K key, V val) {\n int index = findIndex(key);\n // the real reason we bother to check is \n // to know whether or not to increment pairs.\n if (keys[index] == null) {\n keys[index] = key;\n values[index] = val;\n }\n else\n values[index] = val;\n }", "public void put(K key, V value) {\n\t\tif (key == null || value == null) {\n\t\t\tthrow new IllegalArgumentException(\"At least one of the inputs are null\");\n\t\t} else {\n\t\t\tHashMap<K, V> current = map.get(map.size() - 1);\n\t\t\tcurrent.put(key, value);\n\t\t\tmap.remove(map.size() - 1);\n\t\t\tmap.add(current);\n\t\t}\n\t}", "public V put(K key, V value) throws InvalidKeyException;", "public void put(K key, V value) {\r\n size++;\r\n checkAndModifySize();\r\n\r\n Node newElement = new Node(key, value);\r\n int currentHash = newElement.hash % data.length;\r\n if (currentHash < 0){\r\n currentHash *= -1;\r\n }\r\n\r\n if (data[currentHash] == null) {\r\n data[currentHash] = newElement;\r\n } else {\r\n Node currentElement = data[currentHash];\r\n while (currentElement.next != null) {\r\n if (currentElement.key == key || currentElement.key.equals(key)) {\r\n currentElement.value = value;\r\n size--;\r\n return;\r\n }\r\n currentElement = currentElement.next;\r\n }\r\n currentElement.next = newElement;\r\n }\r\n }", "public Entry insert(Object key, Object value) {\n resize();//only if it needs to.\n Entry e = new Entry();\n e.key = key;\n e.value = value;\n int i = compFunction(key.hashCode());\n buckets[i].insertFront(e);\n size++;\n return e;\n }", "@Override\n\tpublic V put(K key, V value) {\n\t\tV v = map.put(key, value);\n\t\tif (map.containsKey(key))\n\t\t\tkeys.add(key);\n\t\t\n\t\treturn v;\n\t}", "void addEntry(String key, Object value) {\n this.storageInputMap.put(key, value);\n }", "@Override\n\tpublic V add(K key, V value) {\n\t\tV result = null;\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(currentNode != null && key.equals(currentNode.getKey())){\n\t\t\tresult = (V) currentNode.getValue();\n\t\t\tcurrentNode.setValue(value);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tNode newNode = new Node(key, value);\n\t\t\tif(currentNode == null){\n\t\t\t\tnewNode.setNextNode(firstNode);\n\t\t\t\tfirstNode = newNode;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfirstNode.setNextNode(newNode);\n\t\t\t}\n\t\tnumberOfEntries++;\t\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public boolean add(String key, String value){\r\n // takes a key and turns it into a hashed thing\r\n int arrIndex = hash(key);\r\n\r\n Entry entry = new Entry(key, value);\r\n\r\n if (hashTableArray[arrIndex] == null){\r\n hashTableArray[arrIndex] = new LinkedList<>();\r\n }\r\n if(contains(key)) {\r\n return false; // the key is already in use, so don't use it.\r\n } else {\r\n hashTableArray[arrIndex].add(entry); // add the key and value pair to the linked list.\r\n }\r\n return true;\r\n }", "public void addData(Key key, Value value) {\r\n\t\t\tdata.reset();\r\n\t\t\t\r\n\t\t\t//if no data or should be placed first\r\n\t\t\tif (data.size() == 0 || data.get().getKey().compareTo(key) > 0) \r\n\t\t\t\tdata.insert(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\telse {\r\n\t\t\t\t//find insert position\r\n\t\t\t\twhile (data.hasNext()) {\r\n\t\t\t\t\tif (data.next().getKey().compareTo(key) > 0) break;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//if before last\r\n\t\t\t\tif (data.get().getKey().compareTo(key) > 0) \r\n\t\t\t\t\tdata.insert(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\t\t//if after last\r\n\t\t\t\telse\r\n\t\t\t\t\tdata.add(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\t}\r\n\t\t}", "public V put(K key, V value) {\r\n\t\tint place = hash(key.hashCode());\r\n\t\tif (get(key) != null) {\r\n\t\t\tLinkedList<KVPair> temp = hashMapArray[place];\r\n\t\t\tfor (KVPair i : temp) {\r\n\t\t\t\tif (i.getKey().equals(key)) {\r\n\t\t\t\t\tV oldKey = i.getValue();\r\n\t\t\t\t\ti.setValue(value);\r\n\t\t\t\t\treturn oldKey;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif ((capacity * loadFactor) <= (size)) {\r\n\t\t\t\texpand(capacity + 10);\r\n\t\t\t\treturn put(key, value);\r\n\t\t\t} else if (hashMapArray[place] == null) {\r\n\t\t\t\thashMapArray[place] = new LinkedList<KVPair>();\r\n\t\t\t}\r\n\t\t\thashMapArray[place].add(new KVPair(key, value));\r\n\t\t\tsize++;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public boolean put( AnyType key , AnyType value)\n { \n int currentPos = findPos( key );\t//TODO: test this\n \n if( array[ currentPos ] == null )\n ++occupied;\n array[ currentPos ] = new HashEntry<>(key, value);\n \n theSize++;\n \n // Rehash\n if( occupied > array.length / 2 )\n rehash( );\n \n return true;\n }", "void put(String key, Object obj);", "public V put(final K key, final V value) {\r\n if (key == null) {\r\n return null;\r\n }\r\n\r\n // find the place to put it and stuff it in, overwriting what was\r\n // previously there\r\n int pos = getKeyPosition(key);\r\n V prevValue = null;\r\n CacheData<K, V> cacheData = getCacheData(pos);\r\n if (cacheData != null) {\r\n prevValue = cacheData.getValue();\r\n cacheData.setKeyValue(key,value);\r\n } else {\r\n setCacheData(pos, factory.createPair(key, value));\r\n }\r\n\r\n return (cacheData == null) ? null : prevValue;\r\n }", "public void insert (k key, v val) {\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\t\n\t\twhile (curr != null) {\t\n\t\t\tif (key.equals(curr.getKey()) && val.equals(curr.getValue())) { \n\t\t\t\t\n\t\t\t\tSystem.err.println(\"Pair \" + key + \" \" + val + \" already exists\");\n\t\t\t\treturn;\t\t\t\t\t\t\t\t// if both key and value already exist, terminate\n\t\t\t}\n\t\t\telse if (curr.getNext() == null) {\t\t// if reached last element, append the new node to the end\n\t\t\t\tcurr.setNext(key, val);\n\t\t\t\treturn; \n\t\t\t}\n\t\t\tcurr = curr.getNext();\t\t\t\t\t// propagate on the SLL until key and value matched or end of SLL reached\n\t\t}\n\t\tbuckets[b] = new Node<k,v>(key, val, null);\t// if there are no nodes at the hashed index, place the new node there\n\t}", "public void add(K key, V value) {\n Node<K,V> node = root, parent = null;\n int cmp = -1;\n\n while (node != null) {\n cmp = key.compareTo(node.key);\n parent = node;\n if (cmp < 0) {\n node = node.left;\n } else if (cmp > 0) {\n node = node.right;\n } else {\n node.value = value;\n return;\n }\n }\n\n Node<K,V> new_node = new Node<>(key, value);\n if (parent == null) {\n root = new_node;\n } else if (cmp < 0) {\n parent.left = new_node;\n } else {\n parent.right = new_node;\n }\n }", "public void put(String key, T value);", "void put(int partitionID, String key, String value);", "private TreeNode<K, V> put(TreeNode<K, V> node, K key, V value){\r\n \r\n // If the node is null, create a new node with the information\r\n // passed into the function\r\n if(node == null){\r\n return new TreeNode<>(key, value);\r\n }\r\n \r\n // Compare the keys recursively to find the correct spot to insert\r\n // the new node or if the key already exists\r\n if(node.getKey().compareTo(key) > 0){\r\n // If the current node has a value greater than our key, go left\r\n node.left = put(node.left, key, value);\r\n }\r\n else if(node.getKey().compareTo(key) < 0){\r\n // If the current node has a value less than our key, go right\r\n node.right = put(node.right, key, value);\r\n }\r\n else{\r\n // If the keys are equal, only update the value\r\n node.setValue(value);\r\n }\r\n \r\n // Return the updated or newly inserted node\r\n return node;\r\n }", "void put(@NonNull String key, @NonNull T value);", "public void addKeyValue (String key, String value){\r\n\t\tcodebook.put(key, value);\r\n\t}", "protected boolean putIntoCache(String key, String value) throws Exception {\n \t// Ensure the value is in cache. We want to avoid it being in the storage but not\n \t// the cache as this can lead to synchronization errors:\n \tboolean inserted = evictAndReplace(key);\n \t\n \t// Perform an insert:\n map.put(key, value);\n \tusageCounter.put(key, usageCounter.get(key) + 1);\n \t\n \treturn inserted;\n }", "public void put(Key key, Value value) {\n\t\tNode entry = new Node(key, value, current_node);\n\t\tcurrent_node = entry; size++;\n\t}", "@Override\n public void Add(String key, Integer value) throws InvalidKeyException {\n if(Contains(key))\n throw new InvalidKeyException(\"Key already exists\");\n\n // Adding the new key/value node\n if(head == null)\n head = new Node(key, value);\n else{\n Node new_node = new Node(key, value);\n new_node.next = head;\n head = new_node;\n }\n\n // increment count\n count++;\n }", "@Override\n\tpublic V put(K key, V value) {\n\t\tint h = Math.abs(key.hashCode()) % nrb;// calculam hash-ul asociat cheii\n\n\t\tfor (int i = 0; i < b.get(h).getEntries().size(); i++) {\n\t\t\t// caut daca cheya mai este folosita si inlocuiesc elementul entry .\n\t\t\tif (b.get(h).e.get(i).getKey().equals(key)) {\n\t\t\t\tV x = b.get(h).getEntries().get(i).getValue();\n\t\t\t\tremove(key);\n\t\t\t\tb.get(h).e.add(new Entry<K, V>(key, value));\n\t\t\t\treturn x;\n\t\t\t}\n\t\t}\n\n\t\tb.get(h).e.add(new Entry<K, V>(key, value));\n\t\treturn null;\n\t}", "public void add(String key, Object value) {\n Object oldValue = null;\n if (value instanceof String) {\n editor.putString(key, (String) value);\n oldValue = get(key, \"\");\n } else if (value instanceof Boolean) {\n editor.putBoolean(key, (Boolean) value);\n oldValue = get(key, false);\n } else if (value instanceof Integer) {\n editor.putInt(key, (Integer) value);\n oldValue = get(key, -1);\n } else if (value instanceof Long) {\n editor.putLong(key, (Long) value);\n oldValue = get(key, -1l);\n } else {\n if (value != null)\n Log.e(TAG, \"Value not inserted, Type \" + value.getClass() + \" not supported\");\n else\n Log.e(TAG, \"Cannot insert null values in sharedprefs\");\n }\n editor.apply();\n\n //notifying the observers\n notifyObservers(key, oldValue, value);\n }", "@Override\n public void putSafe( final K key, final V value )\n {\n if ( this.getCacheControl().get( key ) != null )\n {\n throw new ObjectExistsException( \"putSafe failed. Object exists in the cache for key [\" + key\n + \"]. Remove first or use a non-safe put to override the value.\" );\n }\n put( key, value );\n }", "void put(final Key key, final Value value) {\n if (key == null) {\n throw new IllegalArgumentException(\n \"first argument to put() is null\");\n }\n if (value == null) {\n delete(key);\n return;\n }\n int r = rank(key);\n if (r < size && keys[r].compareTo(key) == 0) {\n values[r] = value;\n return;\n }\n for (int i = size; i > r; i--) {\n keys[i] = keys[i - 1];\n values[i] = values[i - 1];\n }\n keys[r] = key;\n values[r] = value;\n size++;\n }", "public void put(K key, V value) {\n int index = getIndex(getHash(key));\n\n if (table[index] != null) {\n collisionProcessing(key, value, index);\n return;\n }\n\n table[index] = new Entry<>(key, value);\n extend();\n }", "public void add(K key, V value) {\r\n if(this.table.containsKey(key)){\r\n BloomFilterUtil bf = (BloomFilterUtil)table.get(key).getHash();\r\n bf.put(value);\r\n Node<V> node = (Node<V>) table.get(key);\r\n node.getValues().add(value);\r\n }else {\r\n BloomFilterUtil bf = BloomFilterUtil.create(funnel,\r\n expectedInsertions,\r\n fpp,\r\n (BloomFilterUtil.Strategy) hashStrategy);\r\n bf.put(value);\r\n Node<V> node = new Node<V>(value, bf);\r\n table.put(key, node);\r\n }\r\n }", "@Override\r\n\tpublic void addKeyValuePair(String key, String value) {\r\n\t\t\r\n\t\t// if key is empty\r\n if (key == null || key.equals(\" \") || value == null || value.equals(\" \")) {\r\n System.out.println(\"Key cannot be Empty\");\r\n return;\r\n }\r\n // create new Node to be inserted\r\n Node newNode = new Node(new Data(key, value));\r\n // call recursive function traverse from root to correct Position to add newNode\r\n this.root = insertRecursively(this.root, newNode);\r\n return;\r\n\t\t\r\n\t}", "public void put(K key, V value) {\n int counter = 0;\n for (Table.Entry e : entries) {\n if (e.getKey().equals(key)) {\n entries.set(counter, new Table.Entry<>(key, value));\n return;\n }\n }\n entries.add(new Table.Entry<>(key, value));\n }", "void addTransientEntry(K key, V value);", "@Override\r\n public void put(K key, V value) {\r\n if ((load + 1.0) / capacity > .75) {\r\n resize();\r\n }\r\n putKV(new KVPair<K, V>(key, value));\r\n \r\n \r\n }", "public boolean add( String key, T value )\r\n {\r\n HashMap<String,T> top = tables.peekFirst();\r\n T result = top.get( key );\r\n top.put( key, value );\r\n return result==null;\r\n }", "public V put(final K key, final V value) {\n expunge();\n final int hash = hash(key);\n final int index = index(hash, entries.length);\n\n for (Entry<K, V> entry = entries[index]; entry != null; entry = entry.nextEntry) {\n if (hash == entry.hash && key == entry.get()) {\n final V oldentry = entry.value;\n if (value != oldentry) {\n entry.value = value;\n }\n return oldentry;\n }\n }\n\n entries[index] = new Entry<K, V>(key, value, refqueue, hash, entries[index]);\n if (++size >= threshold) {\n resize(entries.length * 2);\n }\n return null;\n }", "@Override\n\tpublic void put(Object key, Object val) {\n\t\tif(st[hash(key)].size()>=k)\n\t\t\tst[hash(key)].clear();\n\t\tst[hash(key)].put(key, st[hash(key)].size());\n\t}", "public void insert(K key, V value) throws KeyFoundException {\n\tif (RBT.containsKey(key))\n\t throw new KeyFoundException(); \n\tRBT.put(key, value);\n }", "public void put(Object key, Object value) {\n Entry entry = this.cache.get(key);\n\n if (entry == null) {\n // cache is fully used\n if (currentSize >= cacheSize) {\n cache.remove(tail.key);\n removeLast();\n }\n else {\n currentSize++;\n }\n\n entry = new Entry();\n }\n\n // update the K/V in the Entry object\n entry.key = key;\n entry.value = value;\n cache.put(key, entry);\n\n // move to the head of list\n moveToHead(entry);\n }", "public Object putItem (String key, Object item);", "@Override\n public void put(K key, V value) {\n root = put(root, key, value);\n }", "public void setValue(K key, V value) {\n this.add(key, value);\n }", "public void put(K key, V value)\n\t{\n\t\tif(queue.contains(key))\n\t\t{\n\t\t\tqueue.remove(key);\n\t\t}\n\t\tqueue.add(0, key);\n\t\tmap.put(key, value);\n\t\t\n\t\tif(queue.size() > maxSize)\n\t\t{\n\t\t\tK old = queue.remove(queue.size()-1);\n\t\t\tmap.remove(old);\n\t\t}\n\t}" ]
[ "0.73072803", "0.7020025", "0.6987747", "0.6947511", "0.6934364", "0.687771", "0.68651354", "0.68630725", "0.68583107", "0.68374985", "0.6791075", "0.6790003", "0.67618674", "0.67406833", "0.6736137", "0.67259896", "0.6704002", "0.66950464", "0.6684485", "0.66685915", "0.6651318", "0.66340196", "0.66340196", "0.66040707", "0.659101", "0.6581631", "0.6580648", "0.65749013", "0.65647924", "0.65609336", "0.6560799", "0.65398246", "0.65391594", "0.6538427", "0.65292656", "0.6526167", "0.6522944", "0.64897853", "0.6474389", "0.64555496", "0.6432895", "0.64179546", "0.6411077", "0.6406311", "0.6388825", "0.635249", "0.63479894", "0.63247967", "0.6319019", "0.63144475", "0.6313249", "0.6281904", "0.6281522", "0.626742", "0.6251268", "0.62479645", "0.62458724", "0.6241997", "0.6238096", "0.62169415", "0.62131274", "0.62064546", "0.6196001", "0.61898965", "0.6170443", "0.61650056", "0.61635494", "0.6162182", "0.6148208", "0.6146272", "0.6137981", "0.6131889", "0.6125673", "0.6112769", "0.6111808", "0.6108996", "0.6108859", "0.6108267", "0.61003137", "0.608045", "0.6074512", "0.6071932", "0.6042428", "0.6033869", "0.60328376", "0.6014954", "0.6013089", "0.6008117", "0.5996167", "0.5971197", "0.59707665", "0.5950832", "0.5943215", "0.59396607", "0.5934816", "0.59294397", "0.5927701", "0.5922506", "0.5918065", "0.59176433", "0.5917321" ]
0.0
-1
Removes a key and corresponding value from the bucket if found.
public V remove(K key) { if(key == null) throw new NullPointerException(); ListNode remove = find(key); if (remove == null) return null; V valueToRemove = remove.value; if (remove.key == header.key) { header = header.next; return valueToRemove; } ListNode current = header; while (current.next != remove) { current = current.next; } current.next = remove.next; return remove.value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public V remove(K key, V value) {\n if (key == null || !keySet.contains(key))\n return null;\n int index = reduce(key, buckets.size());\n ArrayList<Entry> items = buckets.get(index);\n for (Entry e : items) {\n if (e.key.equals(key)) {\n if (e.value.equals(value)) {\n\n items.remove(e);\n keySet.remove(key);\n numEntries--;\n return e.value;\n }\n }\n }\n return null;\n }", "void removeValue(String key);", "@Override\r\n\tpublic V remove(Object key) {\r\n\t\tint index = key.hashCode() % numBuckets;\r\n\t\treturn ((Bucket) buckets[index]).remove((K) key);\r\n\t}", "V remove(K key);", "V remove(K key);", "V remove(K key);", "V remove(Object key);", "public V remove(K key);", "public V remove(K key);", "V remove(final K key);", "public void remove (k key, v val) {\n\t\t\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\tNode<k,v> previous = null;\n\t\t\n\t\twhile (curr != null) {\n\t\t\t\n\t\t\t\n\t\t\tif (curr.getKey().equals(key) && curr.getValue().equals(val)) { // if pairs match\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tif (previous == null) {\t\t// if it's the first one , make the following SLL entry first in the bucket\n\t\t\t\t\t\tbuckets[b] = curr.getNext();\n\t\t\t\t\t\treturn;\n\t\t\t\t}\t\n\t\t\t\telse {\t\t\t\t\t\t// if it's not the first one then make previous's next point to curr's next\n\t\t\t\t\tprevious.setNext(curr.getNext()); \n\t\t\t\t\treturn;\n\t\t\t\t}\t\t\n\t\t\t} else {\t\t\t\t\t\t// there is not match, keep going through the SLL\n\t\t\t\tprevious = curr;\n\t\t\t\tcurr = curr.getNext();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Pair not found\");\n\t}", "@Override\n public V remove(Object key) {\n \t\n \tLinkedList<Entry> tempBucket = chooseBucket(key);\n \t\n \tfor(int i=0;i<tempBucket.size();i++) {\n\t \tEntry tempEntry = tempBucket.get(i);\n\t \t\t\n\t \tif(tempEntry.getKey() == key) {\n\t \t\tV returnValue = tempEntry.getValue();\n\t \t\ttempBucket.remove(i);\n\t \t\tsize --;\n\t \t\treturn returnValue;\n\t \t}\n\t }\n \t\n \tif(size < buckets.length*BETA) {\n \t\trehash(SHRINK_FACTOR);\n \t}\n \t\n \treturn null;\n }", "public void remove(K key)\n {\n AssociationList<K, V> bucket = this.get(this.find(key));\n if (bucket != null)\n {\n bucket.remove(key);\n } // if (bucket != null)\n }", "public V remove(K key)\n {\n checkInitialization();\n if ((key == null))\n throw new IllegalArgumentException();\n else\n { \n V result = null;\n int keyIndex = locateIndex(key);\n if ((keyIndex < numberOfEntries) && \n key.equals(dictionary[keyIndex].getKey()))\n { \n // Key found; remove entry and return its value\n result = dictionary[keyIndex].getValue();\n removeGap(keyIndex);\n numberOfEntries--;\n } // end if\n // Else result is null\n return result;\n } // end if\n }", "public V removeKey( K key ) {\r\n\t\tint bucketIndex = getBucketIndex( key );\r\n\t\tMapNode<K, V> head = buckets.get(bucketIndex);\r\n\t\tMapNode<K, V> prev = null;\r\n\t\twhile( head != null ) {\r\n\t\t\tif( head.key.equals(key)) {\r\n\t\t\t\tsize--;\r\n\t\t\t\tif( prev == null ) {\r\n\t\t\t\t\t//sbse first key hi h thn second key\r\n\t\t\t\t\t//ko point kra dege arraylist m \r\n\t\t\t\t\tbuckets.set(bucketIndex, head.next );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tprev.next = head.next;\r\n\t\t\t\t}\r\n\t\t\t\treturn head.value;\r\n\t\t\t}\r\n\t\t\tprev = head;\r\n\t\t\thead = head.next;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic V remove(Object key) {\n\t\tkeys.remove(key);\n\t\treturn map.remove(key);\n\t}", "boolean remove(final K key, final V value);", "public void remove(K key);", "void removeEntry(K key);", "void remove(K key);", "void remove(K key);", "void remove(K key);", "public void remove(Object key, Object value) {\n map.get(key).remove(value);\n }", "public V remove(K key) {\n\tint bucket=Math.abs(key.hashCode()%capacity);\n\t//for(int i=0;i<table[bucket].size()-1;i++){\n\tfor(MyEntry i:table[bucket]) { \n\t if(i.key==key) {\n\t\t//location.remove(key\n\t\tV previousvalue=i.value;\n\t\ttable[bucket].remove(i);\n\t\tsize--;\n\t\t/*if(table[bucket].size()==0) {\n\t\t utilizedbuckets.remove(bucket);\n\t\t}*/\n\t\treturn previousvalue;\n\t }\t\n\t}\n\treturn null;\n }", "public Object remove(String key);", "public abstract V remove(K key);", "boolean remove(Object key, Object value);", "public V remove(K key) {\r\n\t\t// TODO Complete this!\r\n\t\tint place = hash(key.hashCode());\r\n\t\tif (hashMapArray[place] != null) {\r\n\t\t\tLinkedList<KVPair> temp = hashMapArray[place];\r\n\t\t\tfor (KVPair i : temp) {\r\n\t\t\t\tif (i.getKey().equals(key)) {\r\n\t\t\t\t\tV oldKey = i.getValue();\r\n\t\t\t\t\ttemp.remove(i);\r\n\t\t\t\t\tsize--;\r\n\t\t\t\t\treturn oldKey;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public V remove(K key) throws InvalidKeyException;", "@Override\n public V remove(K key, V value) {\n if (get(root, key) == value) {\n return delete(root, key).val;\n }\n return null;\n }", "@Override\n\tpublic String remove(String key) {\n\t\tint hashVal = hashFunc(key);\n\t\twhile (hashArray[hashVal] != null) {\n\t\t\tif (hashArray[hashVal].value.equals(key)) {\n\t\t\t\thashArray[hashVal] = deleted;\n\t\t\t\tthis.numOfItems--;\n\t\t\t\treturn key;\n\t\t\t}\n\t\t\thashVal++;\n\t\t\thashVal = hashVal % size;\n\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public V remove(K key, V value) {\n if (key == null) return null;\n if (get(key) != value) {\n return get(key);\n }\n root = remove(root, key);\n return get(key);\n }", "public V remove(K key)\r\n\t{\r\n\t\t//TODO: add your code here\r\n\t\tV oldVal;\r\n\t\tint slot = findSlot(key, false); // check if it already exists\r\n\t\t// sets the slot in the map to DUMMY value if it exists\r\n\t\tif (slot >= 0)\r\n\t\t{\r\n\t\t\toldVal = table[slot].getValue();\r\n\t\t\ttable[slot] = DUMMY;\r\n\t\t\tcount--;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\toldVal = null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn oldVal;\r\n\t}", "void remove(String key);", "void remove(String key);", "void remove(String key);", "public boolean remove(K key);", "public void remove(Key key) {\n\n\t\tif (!contains(key)) return;\n\t\tint index = locate(key);\n\t\tkeys[index] = null;\n\t\tvalues[index] = null;\n\t\tthis.size--;\n\n\t\t// Check to see if any of the items in the table that follow\n\t\t// this one had collided with the key that was just removed.\n\t\t// If so, we need to rehash/reinsert them.\n\n\t\tint i = increment(index);\n\t\twhile (keys[i] != null) {\n\n\t\t\t// Save the key/value pair at this location.\n\n\t\t\tKey savedKey = keys[i];\n\t\t\tValue savedValue = values[i];\n\n\t\t\t// And temporarily remove it from the hash map.\n\n\t\t\tkeys[i] = null;\n\t\t\tvalues[i] = null;\n\n\t\t\t// Figure out where it should go now and reinsert it.\n\n\t\t\tindex = locate(savedKey);\n\t\t\tkeys[index] = savedKey;\n\t\t\tvalues[index] = savedValue;\n\n\t\t\t// Advance to the next item.\n\t\t\ti = increment(i);\n\t\t}\n\t}", "@Override\n public T remove(Object key) {\n // Do I have an entry for it?\n Map.Entry<String, T> entry = entries.get((String) key);\n if (entry != null) {\n entries.remove(key);\n // Change the underlying map.\n return map.remove(prefix + key);\n }\n return null;\n }", "@Override\n\t@TimeComplexity(\"O(n)\")\n\tpublic V remove(K key) {\n\t/* TCJ\n\t * Binary search operation: log n\n\t * Iterate through new collection: n\n\t */\n\t\tint j = findIndex(key);\n\t\tif ( j == size() || key.compareTo(map.get(j).getKey()) != 0 ) return null;\n\t\treturn map.remove(j).getValue();\n\t}", "public void remove(Object key){\n map.remove(key);\n }", "public Entry remove(Object key) {\n int i = compFunction(key.hashCode());\n SList chain = buckets[i];\n try {\n for (SListNode n = (SListNode) chain.front(); n.isValidNode(); n = (SListNode) n.next()) {\n Entry e = (Entry) n.item();\n if (e.key.equals(key)) {\n n.remove();\n size--;\n return e;\n }\n }\n } catch(InvalidNodeException e) {\n System.out.println(e);\n }\n return null; \n }", "public boolean remove(Key key) ;", "public Object removeItem (String key);", "public void removeAllWithKey(k key) {\n\t\t\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\tNode<k,v> previous = null;\n\t\t\n\t\twhile (curr != null) {\n\t\t\tif (key.equals(curr.getKey())) { // check if keys match\n\t\t\t\n\t\t\t\tif (previous == null) {\n\t\t\t\t\tbuckets[b] = curr.getNext(); // if removing first item, set the next as first\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tprevious.setNext(curr.getNext()); // else set the previous' next to curr's next\n\t\t\t\t}\t\t\n\t\t\t} else {\n\t\t\t\tprevious = curr; // if match wasn't found, set previous to current before moving on\n\t\t\t}\n\t\t\tcurr = curr.getNext(); // move in SLL\n\t\t}\n\t}", "boolean remove(K key);", "boolean remove(K key);", "public V remove(K key)\n\t{\n\t\tcheckForNulls(key);\n\t\tint n = Math.abs(key.hashCode() % entries.length);\n\t\t\n\t\tif (entries[n] == null)\n\t\t\treturn null;\n\t\t\n\t\tV ret = null;\n\t\tfor (Entry e : entries[n])\n\t\t{\n\t\t\tif (key.equals(e.key) == true)\n\t\t\t\tret = e.value;\n\t\t}\n\t\t\n\t\tif (ret == null)\n\t\t\treturn null;\n\t\t\n\t\tentries[n].remove(new Entry(key, null));\n\t\treturn ret;\n\t}", "public abstract boolean remove(Key key);", "@Override\n public V remove(K key, V value) {\n V val = get(key);\n if (val != null && value != null && val.equals(value)) {\n root = removeHelper(root, key);\n size -= 1;\n }\n return val;\n// throw new UnsupportedOperationException(\"Unsupported operation, sorry!\");\n }", "Entry<Key, Value> remove(Entry<Key, Value> entry);", "public void remove(String key) throws IOException;", "public <K> boolean remove(K key);", "@Override\n public V remove(Object key) {\n int index = key.hashCode() % table.length;\n if (index < 0) {\n index += table.length;\n }\n if (table[index] == null) {\n return null; // key is not in table\n }\n for (Entry<K, V> entry : table[index]) {\n if (entry.getKey().equals(key)) {\n V value = entry.getValue();\n table[index].remove(entry);\n numKeys--;\n if (table[index].isEmpty()) {\n table[index] = null;\n }\n return value;\n }\n }\n return null;\n }", "@Override\n public V remove(K key) {\n Entry<K, V> removed = new Entry<>(null, null);\n if(containsKey(key)) {\n LinkedList<Entry<K, V>> pointer = entryArr[Math.floorMod(key.hashCode(), entryArr.length)];\n for(int i = 0; i < pointer.size(); i++) {\n if(pointer.get(i).keyEquals(new Entry<K, V>(key, null))) {\n removed = pointer.get(i);\n pointer.remove(pointer.get(i));\n break;\n }\n }\n size--;\n }\n return removed.value;\n }", "void remove(KeyType key, ValueType value);", "@Override\n\tpublic V remove(K key) {\n\t\tint h = Math.abs(key.hashCode()) % nrb;// calculam hash-ul asociat cheii\n\n\t\tfor (int i = 0; i < b.get(h).getEntries().size(); i++) {\n\t\t\t// parcurgerea listei de elemente pentru a gasi cheia ceruta si\n\t\t\t// stergerea acesteiu din lista\n\t\t\tif (b.get(h).getEntries().get(i).getKey().equals(key)) {\n\t\t\t\tV x = b.get(h).getEntries().get(i).getValue();\n\t\t\t\tb.get(h).e.remove(i);\n\t\t\t\treturn x;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public Entry remove(Object key) {\r\n if (find(key) == null) {\r\n return null;\r\n } else { \r\n try{\r\n int index = compFunction(key.hashCode());\r\n if (hash_table[index].size() == 1) {\r\n Entry entry = (Entry)hash_table[index].front().item();\r\n hash_table[index] = null;\r\n return entry;\r\n } else { \r\n DListNode current = (DListNode) hash_table[index].front();\r\n while(current.isValidNode()){\r\n Entry pair = (Entry) current.item();\r\n if(pair.key().equals(key)){\r\n current.remove();\r\n size--;\r\n return pair;\r\n }\r\n current = (DListNode) current.next();\r\n }\r\n \r\n System.out.println(\"Couldn't find the item\");\r\n return null;\r\n }\r\n \r\n }catch(InvalidNodeException e){\r\n return null;\r\n }\r\n }\r\n }", "public void deleteFromValueAtKey(String aKey, String aValue) {\n if (cars.containsKey(aKey)) {\n List<String> newValues = new ArrayList<String>();\n newValues = cars.get(aKey);\n newValues.remove(aValue);\n cars.remove(aKey);\n cars.put(aKey, newValues);\n }\n }", "public void remove(int key) {\n int pos = key % this.size;\n Bucket bucket = this.buckets[pos];\n bucket.delete(key);\n }", "public boolean remove(String key, V value) {\n Collection<V> values = map.get(key);\n\n if (values != null) {\n return values.remove(value);\n }\n\n return false;\n }", "public int remove(K key, V value) {\n return remove(key, value, 1);\n }", "public void remove(int key) {\n int index = getIndex(key);\n int index2 = getIndex2(key);\n if(buckets[index] != null){\n buckets[index][index2] = false;\n }\n }", "public void remove(int key) {\n hashMap.removeIf(pair -> pair[0] == key);\n }", "void remove(String aKey);", "public V remove(String key) {\n if (!containsKey(key)) return null;\n int index = hashOf(key);\n Object value = values[index];\n values[index] = null;\n if (value != null) size--;\n return (V) value;\n }", "public Entry remove(K key){\r\n int loc = find(key);\r\n if(hashTable[loc]!=null && hashTable[loc].equals(key)){\r\n Entry<K,V> result = hashTable[loc];\r\n hashTable[loc].isDeleted = true;\r\n size--;\r\n return result;\r\n }\r\n else\r\n return null;\r\n }", "void remove(@NonNull String key);", "public Entry<K, V> remove(K key) {\r\n try {\r\n int hash = key.hashCode();\r\n ListNode<Entry<K, V>> node = table[compFunction(hash)].front();\r\n if (node.isValidNode()) {\r\n Entry<K, V> entry = (Entry<K, V>) node.getItem();\r\n node.remove();\r\n return entry;\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Unhashable key: \" + e);\r\n }\r\n return null;\r\n }", "@Override\n public V remove(K key) {\n return delete(root, key).val;\n }", "@Override\n public synchronized Object remove(Object key) {\n String strkey = key.toString();\n if (this.ignoreCase) {\n strkey = (String) this.keyMap.remove(strkey.toLowerCase());\n if (strkey == null)\n return null;\n }\n return super.remove(strkey);\n }", "@Override\r\n\tpublic void removeEntry(String key) {\n\t\t\r\n\t}", "@Override\r\n public ValueType remove(KeyType key) {\r\n // if capacity is 0, return null\r\n if (capacity == 0) {\r\n return null;\r\n }\r\n\r\n int index = hashFunction(key); // the index of the pair in the hashTable\r\n\r\n // If the linked list at the index is null, target is not exist, return null\r\n if (hashTable[index] == null) {\r\n return null;\r\n }\r\n\r\n int i = 0; // index tracker\r\n boolean isFound = false; // record whether the key is found\r\n // find the key and record the index of the key (i)\r\n for (HashNode node : hashTable[index]) {\r\n if (node.key.equals(key)) {\r\n isFound = true;\r\n break;\r\n }\r\n i++;\r\n }\r\n\r\n // if the key is found, remove with index of i. Otherwise return null\r\n if (isFound) {\r\n size--;\r\n return hashTable[index].remove(i).value;\r\n } else {\r\n return null;\r\n }\r\n }", "void remove(Object indexedKey, Object key);", "public V remove(final K key) {\n expunge();\n final int hash = hash(key);\n final int index = index(hash, entries.length);\n Entry<K, V> temp = entries[index];\n Entry<K, V> previous = temp;\n\n while (temp != null) {\n final Entry<K, V> next = temp.nextEntry;\n if (hash == temp.hash && key == temp.get()) {\n size--;\n if (previous == temp) {\n entries[index] = next;\n } else {\n previous.nextEntry = next;\n }\n return temp.value;\n }\n previous = temp;\n temp = next;\n }\n\n return null;\n }", "@Override\n\tpublic V remove(Object key) {\n\t\tIterator it1 = tabla.iterator();\n\t\tV valor = null;\n\t\tint i = 0;\n\t\twhile (it1.hasNext()) {\n\t\t\tit1.next();\n\t\t\tint indice = tabla.get(i).keySet().indexOf(key);\n\t\t\tif (indice != -1) {\n\t\t\t\tvalor = tabla.get(i).valueSet().get(indice);\n\t\t\t\ttabla.get(i).keySet().remove(indice);\n\t\t\t\ttabla.get(i).valueSet().remove(indice);\n\t\t\t}\n\t\t\ti++;\n\n\t\t}\n\t\treturn valor;\n\t}", "public V remove(K key){\n\t\tV v=null;\n\t\tNode n=searchkey(root, key);\n\t\tif(n!=null)\n\t\t{v=n.value;}\n\t\troot =deletehelp(root, key);\n\t\t\n\t\treturn v;\n\t\t\n\t\t\n\t}", "MapComp<K, V> remove(K k);", "@Override\n public void remove(K key) {\n super.remove(key);\n keySet.remove(key);\n }", "@Override\n\tpublic void remove(String k, Value v)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void remove(String k, Value v)\n\t{\n\t\t\n\t}", "public void remove(int key){\n\t\tif(get(key) != null){\n\t\t\tSystem.out.println(\"Removing \" + get(key) + \" from map\");\n\t\t\thashMap[key] = null;\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\"Key \" + key + \" not in map\");\n\t\treturn;\n\t}", "@Override\r\n public V remove(K key) {\r\n int index = getIndex(key);\r\n IDictionary<K, V> temp = chains[index];\r\n if (temp!=null) {\r\n if (temp.containsKey(key)) {\r\n V result = temp.get(key);\r\n temp.remove(key);\r\n load--;\r\n return result;\r\n }\r\n }\r\n throw new NoSuchKeyException();\r\n }", "@Override\n\tpublic V remove(K key) {\n\t\treturn null;\n\t}", "public abstract Object remove(CacheKey cacheKey);", "protected void remove(K key) {\n segment.remove(key);\n }", "public V remove(Object k) {\n\t\tint index = findKeyIndex(k);\n\n\t\t// we found the right position, now do the removal\n\t\tif (keys[index] != null) {\n\t\t\t// we found the object\n\n\t\t\t// same problem here as with put\n\t\t\tV v = values[index];\n\t\t\tkeys[index] = (K) deletedObject;\n\t\t\tvalues[index] = (V) deletedObject;\n\t\t\tmodCount++;\n\t\t\telements--;\n\t\t\treturn v;\n\t\t} else\n\t\t\t// we did not find the key\n\t\t\treturn null;\n\t}", "@Override\r\n\tpublic void removeElement(K key) {\n\t\tque.remove(key);\r\n\t\thashMap.remove(key);\r\n\t}", "void delete(String key);", "Object remove(Object key) throws NullPointerException;", "protected abstract void _del(String key);", "public void remove(int key) {\n store[key] = -1; // If the key is removed, the value of that key is replaced with -1, \n \t\t\t\t// that the item doesn't exist because hashmap requires removal of keys.\n }", "public V remove(Object key) {\r\n int index = key.hashCode() % mainTable.length;\r\n if (index < 0) {\r\n index += mainTable.length;\r\n }\r\n if (mainTable[index] == null) {\r\n return null; // Key not in mainTable\r\n }\r\n Iterator<Entry<K,V>> iter = mainTable[index].iterator();\r\n while (iter.hasNext()) {\r\n Entry<K,V> nextItem = iter.next();\r\n // If the search is successful, return the value.\r\n if (nextItem.key.equals(key)) {\r\n V returnValue = nextItem.value;\r\n iter.remove();\r\n return returnValue;\r\n }\r\n }\r\n // Key not in mainTable\r\n return null;\r\n }", "@Override\n\tpublic V remove(Object key) {\n\t\treturn null;\n\t}", "@Override\n\tpublic V remove(Object key) {\n\t\treturn null;\n\t}", "public void removeAllWithValue(v val) {\n\t\tfor (int i = 0; i < buckets.length; i++) {\n\t\t\tNode<k,v> curr = buckets[i];\n\t\t\tNode<k,v> previous = null;\n\t\t\t\n\t\t\twhile (curr != null) {\n\t\t\t\tif (curr.getValue().equals(val)) {\n\t\t\t\t\t\n\t\t\t\t\tif (previous == null) {\n\t\t\t\t\t\tbuckets[i] = curr.getNext(); // if removing first item, set the next as first\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprevious.setNext(curr.getNext()); // else set the previous' next to curr's next\n\t\t\t\t\t}\t\n\t\t\t\t} else {\t\t\t\t\t\t\t// if match wasn't found, set previous to current before moving on\n\t\t\t\t\tprevious = curr;\n\t\t\t\t}\t\n\t\t\t\tcurr = curr.getNext(); \t\t\t\t// move in SLL\n\t\t\t}\t\n\t\t}\n\t}", "@Override\n synchronized public void removeKey(Integer key) {\n this.map.remove(key);\n }", "@Override\n public V remove(K key) {\n// int index = h.apply(key, this.array.length);\n// LinkedList<Entry<K,V>> chain = this.array[index];\n// for (Entry<K,V> item : chain) {\n// if (item.key == key) {\n// chain.remove(item);\n// itemCount--;\n// return item.value;\n// }\n// }\n// return null; // Throw exception\n for (int i = 0; i < this.array.length; i++) {\n if (this.array[i] != null) {\n for (Entry<K,V> item : this.array[i]) {\n if (item.key == key) {\n this.array[i].remove(item);\n itemCount--;\n return item.value;\n }\n }\n }\n }\n return null;\n }", "public void remove(int key) {\n int index = keys.indexOf(key);\n if(index > 0) {\n keys.remove(index);\n values.remove(index);\n }\n }", "void remove(ThreadLocal<?> key) {\n cleanUp();\n\n for (int index = key.hash & mask;; index = next(index)) {\n Object reference = table[index];\n\n if (reference == key.reference) {\n // Success!\n table[index] = TOMBSTONE;\n table[index + 1] = null;\n tombstones++;\n size--;\n return;\n }\n\n if (reference == null) {\n // No entry found.\n return;\n }\n }\n }", "public void remove(int key) {\n int hashedKey = hash(key);\n Entry entry = map.get(hashedKey);\n if (entry.key == -1) {\n return;\n } else if (entry.key == key) {\n if (entry.next != null) map.set(hashedKey, entry.next);\n else entry.key = -1;\n } else if (entry.next != null) {\n Entry pre = entry, cur = entry.next;\n while (cur.next != null && cur.key != key) {\n pre = cur;\n cur = cur.next;\n }\n if (cur.key == key) {\n pre.next = cur.next;\n }\n }\n }" ]
[ "0.7641107", "0.7310931", "0.72746", "0.7144835", "0.7144835", "0.7144835", "0.7126804", "0.71152025", "0.71152025", "0.7085807", "0.70347285", "0.69987005", "0.6937301", "0.6927691", "0.69189495", "0.6905965", "0.68947315", "0.6875713", "0.68457294", "0.6843652", "0.6843652", "0.6843652", "0.6812958", "0.681021", "0.6792229", "0.679211", "0.6768592", "0.67646533", "0.6763924", "0.6731553", "0.6729562", "0.6727871", "0.6725085", "0.6719078", "0.6719078", "0.6719078", "0.67179745", "0.6707471", "0.66958934", "0.6670959", "0.6668437", "0.66578466", "0.66553074", "0.6644505", "0.6632872", "0.6620753", "0.6620753", "0.65757364", "0.6566066", "0.65565246", "0.65555274", "0.6499863", "0.6441433", "0.64359236", "0.64287555", "0.64222944", "0.64198095", "0.6413499", "0.6407221", "0.63934344", "0.6388369", "0.638602", "0.63824564", "0.6326346", "0.63261133", "0.6324694", "0.63212967", "0.6298981", "0.62808204", "0.62793195", "0.6263909", "0.62606245", "0.62559915", "0.6246509", "0.62440324", "0.6224408", "0.6220758", "0.6217978", "0.6205059", "0.61975497", "0.61975497", "0.6185085", "0.6164081", "0.6158153", "0.6135926", "0.6123117", "0.61196196", "0.6117531", "0.6116333", "0.61101973", "0.61040443", "0.61022645", "0.6092445", "0.608228", "0.608228", "0.6082105", "0.60812455", "0.6076976", "0.6073487", "0.6065785", "0.6062963" ]
0.0
-1
Provides a set of all keys contained in the bucket.
public Set<K> keySet() { Set<K> keySet = new HashSet<K>(); ListNode current = header; while (current != null) { keySet.add(current.key); current = current.next; } return keySet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<K> keySet() {\n Set<K> keys = new HashSet<>();\n if (bucket.length != 0) {\n for (int i = 0; i < bucket.length; i++) {\n keys.add(bucket[i].getKey());\n }\n }\n return keys;\n }", "@Override\r\n\tpublic Set<K> keySet() {\r\n\t\tSet<K> keySet = new HashSet<K>();\r\n\t\tfor (Object o : buckets) {\r\n\t\t\tBucket b = (Bucket) o;\r\n\t\t\tkeySet.addAll(b.keySet());\r\n\t\t}\r\n\t\treturn keySet;\r\n\t}", "public KeySet getKeys();", "Set<String> getKeys();", "@Override\r\n public Set<K> getKeySet() throws IOException\r\n {\r\n final HashSet<K> keys = new HashSet<>();\r\n\r\n storageLock.readLock().lock();\r\n\r\n try\r\n {\r\n keys.addAll(this.keyHash.keySet());\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n return keys;\r\n }", "Set<K> keys();", "public Set<String> keySet() {\r\n return keys.keySet();\r\n }", "@Override\n\tpublic Set<K> keySet() {\n\t\treturn keys;\n\t}", "public Iterable<Key> keys();", "public Iterable<Key> keys();", "@Override\n public Set<K> keySet() {\n return keys;\n }", "public Set<String> keySet() {\n return map.keySet();\n }", "@Override\n public Set<K> keySet() {\n if (isEmpty()) return new HashSet<K>();\n return keys(min(), max());\n }", "public abstract List<String> getAllKeys();", "public Iterable<K> keys() {\n Queue<K> q = new Queue<>();\n inOrder(root, q);\n return q;\n }", "public List<String> getKeys(){\n return Collections.unmodifiableList(keys);\n }", "public Set<K> keySet() {\n return map.keySet();\n }", "public Iterable<Key> Keys()\n\t{\n\t\tQueue<Key> q=new Queue<>();\n\t\tInorder(root,q);\n\t\treturn q;\n\t}", "public Set<K> keySet() {\r\n \treturn map.keySet();\r\n }", "public Iterable<K> keys();", "public List<String> keys()\n {\n return new ArrayList<String>(keys);\n }", "List<String> getKeys();", "public Set keySet() {\n return map.keySet();\n }", "public Set<String> keySet() {\n\t\t\treturn new HashSet<String>( mMap.keySet() );\n\t\t}", "public Set<String> getKeys() {\n return Collections.unmodifiableSet(data.keySet());\n }", "public Set<String> keySet() {\n return index.keySet();\n }", "@Override\n\tpublic HashSet<K> getAllKeys() {\n\t\treturn null;\n\t}", "public Set<Identifier> keySet() {\n return Collections.unmodifiableSet(container.keySet());\n }", "private Set<String> getKeys() {\n return bookDB.keySet();\n }", "public Iterable<String> keys()\r\n { return keysWithPrefix(\"\"); }", "public String[] getKeys() {\n\t\treturn _keys;\n\t}", "@Override\n public Set<K> keySet() {\n Set<K> keySet = new HashSet<K>(size());\n for (LinkedList<Entry<K,V>> list : table) {\n for (Entry<K,V> entry : list) {\n if (entry != null) {\n keySet.add(entry.getKey());\n }\n }\n }\n return keySet;\n }", "public Iterable keys() {\n Queue K = new Queue();\n for(int i = 0; i < size; i++) {\n K.enqueue(keys[i]);\n }\n return K;\n }", "public Iterable<String> keys() { return keysWithPrefix(\"\"); }", "public Iterable<K> keys()\n {\n return new Iterable<K>()\n {\n public Iterator<K> iterator()\n {\n return ChainedHashTable.this.keysIterator();\n } // iterator()\n }; // new Iterable<K>\n }", "public List<K> keys();", "public String[] fetchAllKeys();", "public Iterator<Key> keys() ;", "public Collection getKeys() throws CacheException {\n return cache.getKeys();\n }", "public Set<String> keySet() {\n return this.index.keySet();\n }", "public List<String> getKeys()\n\t{\n\t\treturn new ArrayList<>(pairs.keySet());\n\t}", "public ArrayList getKeys() {\r\n return this.keys;\r\n }", "public K[] getKeys() {\n return keys.clone();\n }", "@Override\n\tpublic Collection<Key> keys() {\n\t\tCollection<Key> c = new ArrayList<Key>();\n\t\tif (!isEmpty()) {\n\t\t\tFork<Key, Value> f = (Fork<Key,Value>) bst;\n\t\t\tEntry<Key, Value> e = new Entry<>(f.getKey().get(), f.getValue().get());\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tEntry<Key, Value>[] a = (Entry<Key, Value>[]) Array.newInstance(e.getClass(), size());\n\t\t\tbst.saveInOrder(a);\n\t\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t\tc.add(a[i].getKey());\n\t\t\t}\n\t\t}\n\t\treturn c;\n\t}", "public Iterator<K> keys();", "public Iterator<K> keys();", "@Override\n public Set<K> keySet() {\n Set<K> keyset = new TreeSet<>();\n Inorder(root, keyset);\n return keyset;\n }", "public Iterable<Key> keys() {\n Queue<Key> queue = new Queue<Key>();\n for (int i = 0; i < m; i++) {\n for (Key key : st[i].keys())\n queue.enqueue(key);\n }\n return queue;\n }", "public Set<String> keySet()\n\t{\n\t\tverifyParseState();\n\t\t\n\t\treturn values.keySet();\n\t}", "public Set keyNames() {\n return new LinkedHashSet<>( asList( idName() ) );\n }", "public Set<K> keySet() {\n\t\treturn new KeySet();\n\t}", "public List<KeyInner> keys() {\n return this.keys;\n }", "Set<K> keySet();", "@Override\n List<String> keys();", "public K[] keySet() {\n MyStack<K> result = new MyStack<>();\n\n for (Object entry : this.table) {\n if (entry != null) {\n Entry<K, V> current = (Entry<K, V>) entry;\n\n while (current.hasNext()) {\n result.push(current.getKey());\n current = current.getNext();\n }\n result.push(current.getKey());\n }\n }\n return result.toArray();\n }", "default Set<String> getSubkeys() {\n return Collections.emptySet();\n }", "public Iterable<Key> keys() {\n Queue<Key> queue = new Queue<Key>();\n for (Node temp = first; temp != null; temp = temp.next)\n queue.enqueue(temp.key);\n return queue;\n }", "@Override\n public Set<K> keySet() {\n keySet(root);\n return KeySet;\n }", "@Override\n public List<K> keys() {\n List<K> keys = new AList<>();\n for(int i =0; i < capacity; i++){\n Entry n = (Entry) table[i];\n if(n != null && !n.isRemoved())\n keys.add(n.getKey());\n }\n assert keys.size() == size;\n return keys;\n }", "public IIterator getKeys()\r\n {\r\n return new VectorIterator(m_keys);\r\n }", "@Override\n\tpublic Set<String> keySet() {\n\t\treturn null;\n\t}", "public Set keySet() {\n\treturn table.keySet();\n }", "@Override\n\t\t\tpublic Set<String> getKeys() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n public Set<K> keySet() {\n Set<K> ks = new HashSet<>();\n keySetHelper(root, ks);\n return ks;\n// throw new UnsupportedOperationException(\"Unsupported operation, sorry!\");\n }", "public Long[] allKeys() {\n\t\tLong[] result = new Long[super.getSize()];\n int ctr = 0;\n for(Entry<C> each : sequence) {\n result[ctr] = each.getKey();\n ctr++;\n }\n insertionSort(result);\n return result;\n }", "public ArrayList<K> keySet() {\n\t\t\treturn claves;\n\t\t}", "@ZenCodeType.Method\n @ZenCodeType.Getter(\"keys\")\n default Set<String> getKeys() {\n \n return doesNot(\"is not indexable by keys\");\n }", "public Set<String> keySet() {\n return _properties.keySet();\n }", "public ListVS<T> getKeys() {\n return this.keys.getElements();\n }", "public String getKeys() {\r\n return keys;\r\n }", "public ArrayList<Integer> getKeys() {\r\n return keys;\r\n }", "public List<K> keys()\r\n\t{\r\n\t\tList<K> keys = new ArrayList<K>();\r\n\t\t\r\n\t\tfor(Entry element : data)\r\n\t\t{\r\n\t\t\tkeys.add(element.key);\r\n\t\t}\r\n\t\t\r\n\t\t//keys.sort(new keyComparator()); //not necessarily needed since I know my BST iterator\r\n\t\t\t\t\t\t\t\t\t\t //iterates through in an inOrder fashion.\r\n\t\t\r\n\t\treturn keys;\r\n\t}", "public Set<K> keySet() {\r\n if (keySet == null) {\r\n keySet = new AbstractSet<K>() {\r\n\r\n @Override\r\n public boolean contains(Object object) {\r\n return containsKey((K) object);\r\n }\r\n\r\n @Override\r\n public int size() {\r\n return MRUCache.this.size();\r\n }\r\n\r\n @Override\r\n public void clear() {\r\n MRUCache.this.clear();\r\n }\r\n\r\n @Override\r\n public boolean remove(Object key) {\r\n CacheData<K, V> cacheData = MRUCache.this.removeEntry(key);\r\n return cacheData != null;\r\n }\r\n\r\n @Override\r\n public Iterator<K> iterator() {\r\n return new KeyIterator<K, V>(MRUCache.this);\r\n }\r\n };\r\n }\r\n return keySet;\r\n }", "public Iterator<K> keys(){\n\treturn new Iterator<K>() {\n\t int iteratorbucket = 0;\n\t Iterator<MyEntry> itr = table[iteratorbucket].iterator();\n\t int nextCount = 0;\n\n\t public boolean hasNext() {\n\t // can just check nextCount and size\n\t if(nextCount>=size) {\n\t \treturn false;\n\t }\n\t return true;\n\t }\n\n\t public K next() {\n\t // if my hasNext() is false, I should throw a NoSuchElementException\n\t if(hasNext()==false) {\n\t \tthrow new NoSuchElementException();\n\t }\n\t // while itr.hasNext() is false, increment bucket and get the next iterator\n\t while(itr.hasNext()==false) {\n\t \titeratorbucket++;\n\t \titr=table[iteratorbucket].iterator();\n\t }\n\t // now increment nextCount and return the key from the item itr.next() returns\n\t \tnextCount++;\n\t \treturn itr.next().key;\n\t \n\t }\n\n\t public void remove() {\n\t // just ask itr to remove, but I need to update my size and nextCount\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }\n\t };\n }", "@Override\n\tpublic Iterable<K> keys() {\n\t\treturn null;\n\t}", "Lista<K> keySet();", "public Set<String> getKeys() {\n\t\t\treturn properties.keySet();\n\t\t}", "public Set<E> keySet() {\n\t\treturn null;\r\n\t}", "public static synchronized Set<Class<?>> keySet() {\n\t\treturn ClassRegistry.dictionary.keySet();\n\t}", "@Override\n\tpublic Set<K> keySet() {\n\t\tArrayList<K> claves = new ArrayList<K>();\n\t\tIterator it = tabla.iterator();\n\t\tint i = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tIterator it2 = tabla.get(i).keySet().iterator();\n\t\t\tit.next();\n\t\t\tint j = 0;\n\t\t\twhile (it2.hasNext()) {\n\t\t\t\tit2.next();\n\t\t\t\tclaves.add(tabla.get(i).keySet().get(j));\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn new HashSet<K>(claves);\n\t}", "public int[] keySet() {\n objectCounter++;\n int[] keys = new int[contents];\n int cnt = 0;\n MapElement me = null;\n\n for (int i = 0; i < capacity; i++) {\n if (map[i] != null) {\n me = map[i];\n while (null != me) {\n keys[cnt++] = me.getKey();\n me = me.getNext();\n }\n }\n }\n return keys;\n }", "public Set<K> getKeySet() {\n return associationCountMap.keySet();\n }", "public static Enumeration<String> getKeys() {\n\t\tif (rb == null) {\n\t\t\treinit();\n\t\t}\n\n\t\treturn rb.getKeys();\n\t}", "public native IterableIterator<K> keys();", "@Override\n public List<String> AllFileFromS3Bucket()\n {\n List<Bucket> buckets= amazonS3.listBuckets();\n List<String> keys = new ArrayList<>();\n \n for (Bucket b :buckets) {\n \t System.out.println(\" **** \" + b.getName());\n \t keys.add(b.getName());\n }\n\treturn keys;\n \n }", "@Override\n\tpublic Set<K> keySet() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Set<K> keySet() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Set<K> keySet() {\n\t\treturn null;\n\t}", "public Set<K> keys() {\n return this.bst.toSortedList().toset().map(i -> i.left);\n }", "public Iterable<String> getKeys(String keyPrefix);", "public String[] getKeys() {\n Set keySet;\n if( defaultValues != null ) {\n keySet = defaultValues.keySet();\n } else {\n keySet = values.keySet();\n }\n return ( String[] )keySet.toArray( new String[ keySet.size() ] );\n }", "HSet keySet();", "public Set<String> getClassKeys();", "public KeyPeg[] getKeys() {\n return this.keys;\n }", "public List<Object[]> getPartitionKeys();", "public Enumeration<Object> keys ();", "public Set<String> loadAllURLKeys()\n\t{\n\t\tEntityCursor<URLEntity> results = this.env.getEntityStore().getPrimaryIndex(String.class, URLEntity.class).entities();\n\t\tSet<String> urlKeys = Sets.newHashSet();\n\t\tfor (URLEntity entity : results)\n\t\t{\n\t\t\turlKeys.add(entity.getKey());\n\t\t}\n\t\tresults.close();\n\t\treturn urlKeys;\n\t}", "public Set<String> keysOfMap() {\n Map<String, String> tempMap = createSimpleMap(\"Elevensies\",\"Grapes\");\n\t\tSet<String> keys = hashMap.keySet();\n\t\treturn tempMap.keySet();\n\t}", "public UnsortedList<Integer> listOfKeys() {\n\t\tUnsortedList<Integer> list \n\t\t= new UnsortedList<Integer>(new IntegerComparator());\n\t\treturn listOfKeys(list);\n\t}", "StringList keys();" ]
[ "0.85698164", "0.8185319", "0.7719435", "0.7579599", "0.7573634", "0.75205785", "0.7499233", "0.7448717", "0.7445021", "0.7445021", "0.7381167", "0.7351736", "0.7333692", "0.731095", "0.7264405", "0.72536826", "0.7246181", "0.7231487", "0.72274256", "0.72272176", "0.7148142", "0.714659", "0.7144193", "0.71422434", "0.7141065", "0.7135017", "0.7089401", "0.7087805", "0.70748883", "0.7042354", "0.70418906", "0.7040418", "0.70346904", "0.7032236", "0.7021524", "0.7020562", "0.70154953", "0.70079947", "0.7005701", "0.6986514", "0.697915", "0.69586116", "0.6957103", "0.6954185", "0.6939487", "0.6939487", "0.69344544", "0.6920224", "0.69143707", "0.6874826", "0.6865378", "0.686528", "0.6856669", "0.68509805", "0.68186086", "0.6812166", "0.680548", "0.6799556", "0.67833775", "0.67662805", "0.67659414", "0.67395663", "0.673453", "0.6722148", "0.66985255", "0.66939443", "0.6692662", "0.6688294", "0.6667666", "0.6655072", "0.6653187", "0.6649972", "0.6627055", "0.66244537", "0.6595693", "0.6592638", "0.65793395", "0.65712744", "0.65639526", "0.655614", "0.65380377", "0.65277565", "0.6524393", "0.6522511", "0.6515448", "0.6508446", "0.6508446", "0.6508446", "0.64999753", "0.64985883", "0.64941114", "0.6492889", "0.64622855", "0.6452484", "0.6442712", "0.643677", "0.6429927", "0.6424334", "0.64138234", "0.63768554" ]
0.66735333
68
Privates a list of all values contained in the bucket.
public Collection<V> values() { Collection<V> valueList = new ArrayList<V>(); ListNode current = header; while (current != null) { valueList.add(current.value); current = current.next; } return valueList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Collection<V> values() {\r\n\t\tCollection<V> valueList = new ArrayList<V>();\r\n\t\tfor (Object o : buckets) {\r\n\t\t\tBucket b = (Bucket) o;\r\n\t\t\tvalueList.addAll(b.values());\r\n\t\t}\r\n\t\treturn valueList;\r\n\t}", "@Override\n List<? extends Bucket> getBuckets();", "List getValues();", "@Override\n public List<String> AllFileFromS3Bucket()\n {\n List<Bucket> buckets= amazonS3.listBuckets();\n List<String> keys = new ArrayList<>();\n \n for (Bucket b :buckets) {\n \t System.out.println(\" **** \" + b.getName());\n \t keys.add(b.getName());\n }\n\treturn keys;\n \n }", "@Override\n\tpublic List<? extends MyHashMap.Bucket<K, V>> getBuckets() {\n\t\treturn (ArrayList<? extends MyHashMap.Bucket<K, V>>) b;\n\t}", "java.util.List<KeyValuePair>\n getInfoList();", "public List<Object> getValues();", "public bucket[] getData() {\n\t\treturn (bucket.clone());\n\t}", "@Override\n public List<CacheObject<K, V>> getAll(){\n return new ArrayList<>(this.cache.values());\n }", "public static List<KeyValue<String, String>> getAllKeyValues() {\n return keyValueList;\n }", "java.util.List<com.google.cloud.functions.v2.SecretVolume.SecretVersion> getVersionsList();", "public PrivateKey getPrivateList() {\n return this.privateList;\n }", "java.util.List<java.lang.String> getValuesList();", "private void ListMyBuckets(String bucketName) {\n List<Bucket> buckets = s3.listBuckets();\n System.out.println(\"------------- CustomS3Client --------------\");\n System.out.println(\"Bucket \"+bucketName+\" contents are as below:\");\n\n for (Bucket b : buckets) {\n System.out.println(b.getName());\n ListObjectsV2Result result = s3.listObjectsV2(b.getName());\n List<S3ObjectSummary> objects = result.getObjectSummaries();\n for (S3ObjectSummary os : objects) {\n System.out.println(\"** \" + os.getKey());\n }\n }\n System.out.println(\"------------- All bucket contents listed successfully --------------\");\n }", "public java.util.List<java.lang.String> getValuesList() {\n return java.util.Collections.unmodifiableList(result.values_);\n }", "public Boolean getRestrictPublicBuckets() {\n return this.restrictPublicBuckets;\n }", "protected Collection getNewBucket()\n {\n return new ArrayList();\n }", "Collection<T> getAll() {\n _readLock.lock();\n try {\n return ImmutableList.copyOf(_toMap.values());\n } finally {\n _readLock.unlock();\n }\n }", "public List<String> getAll() throws KeeperException, InterruptedException {\n List<String> copy = new ArrayList<>();\n copy.addAll(members);\n return copy;\n }", "public List<String> getKeys(){\n return Collections.unmodifiableList(keys);\n }", "private static List<GdalS3DataRequest> requestList(String bucketName) \n throws AmazonServiceException, AmazonClientException{\n\n List<GdalS3DataRequest> res = new ArrayList<GdalS3DataRequest>();\n\n AmazonS3 s3Client = new AmazonS3Client(new EnvironmentVariableCredentialsProvider());\n ListObjectsV2Request req = new ListObjectsV2Request().withBucketName(bucketName);\n ListObjectsV2Result result;\n\n do {\n result = s3Client.listObjectsV2(req);\n result.setMaxKeys(20);\n for (S3ObjectSummary objectSummary: result.getObjectSummaries()) {\n GdalS3DataRequest dr = new GdalS3DataRequest(bucketName, \n objectSummary.getKey());\n res.add(dr);\n }\n } while (result.isTruncated() == true);\n\n //return res.subList(0,10); //for testing and cost reduction during dev\n return res;\n }", "public abstract List<String> getAllKeys();", "@Override\n\tpublic Collection<V> values() {\n\t\tList<V> list = Util.newList();\n\t\tfor (K key : keys) {\n\t\t\tlist.add(map.get(key));\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "public java.util.List<KeyValuePair> getInfoList() {\n return info_;\n }", "public Bucket() {\n\t\t\te = new ArrayList<Entry<K, V>>();\n\t\t}", "List<WrappedKeyValue<TKey, TValue>> GetElements() throws IOException;", "List<V> getAll(K key) {\n List<V> values = store.get(key);\n return values != null ? values : Collections.<V>emptyList();\n }", "@Override\n public Collection<T> values() {\n List<T> values = new ArrayList<>();\n for (Map.Entry<String, T> v : entries.values()) {\n values.add(v.getValue());\n }\n return values;\n }", "public ListVS<V> getValues() {\n ListVS<V> result = new ListVS<V>(getUniverse());\n for (V value : this.entries.values()) {\n result = result.add(value);\n }\n return result;\n }", "public List<String> listBuckets() {\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (Bucket bucket : s3client.listBuckets()) {\n\t\t\tlist.add(bucket.getName());\n\t\t\t// System.out.println(\" - \" + bucket.getName());\n\t\t}\n\n\t\treturn list;\n\t}", "Collection<V> getAllEntries();", "@Override\n\tCollection<T> internalElements() {\n\t\tCollection<T> values = new LinkedList<T>();\n\t\t\n\t\tfor(LinkedList<T> list : internalStorage.get(0).values()) {\n\t\t values.addAll(list);\t\n\t\t}\n\t\treturn values;\n\t}", "public Iterator getValues() {\n synchronized (values) {\n return Collections.unmodifiableList(new ArrayList(values)).iterator();\n }\n }", "public List<?> getSecretInfo() {\n\t\treturn null;\r\n\t}", "List<PricedItem> getItems() {\n return Collections.unmodifiableList(items);\n }", "public List<Item> getValues() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an object.\");\n }", "public List<String> getAllMembers() {\n\t\tMap<String, List<String>> dictMap = getDictionary();\n\t\tList<String> resultValues = null;\n\t\tif (dictMap != null && dictMap.isEmpty() != true) {\n\t\t\tresultValues = new ArrayList<String>();\n\t\t\tfor (Map.Entry<String, List<String>> map : dictMap.entrySet()) {\n\t\t\t\tList<String> valueList = map.getValue();\n\t\t\t\tresultValues.addAll(valueList);\n\t\t\t}\n\t\t}\n\t\treturn resultValues;\n\t}", "public List<T> values();", "public List<T> values() {\n return values(System.currentTimeMillis());\n }", "ApiKeys listKeys();", "public List getFieldValues()\n {\n return (List) m_values.clone();\n }", "@Nonnull\n public <T extends Serializable> List<T> getValues() {\n final T[] ary = values();\n return Arrays.asList(ary);\n }", "Item[] getMembers() throws AccessManagementException;", "java.util.List<com.google.api.servicecontrol.v1.MetricValue> getMetricValuesList();", "private static void listingTheBucket(AmazonS3 s3) {\n for( com.amazonaws.services.s3.model.Bucket bucket : s3.listBuckets()){\n bucketArrayList.add(bucket);\n }\n }", "@JsonIgnore\n List<T> getValues();", "@Override\n List<Value> values();", "@Override\n public List<AccessToken> getAccessTokens() {\n return new ArrayList<AccessToken>(accessTokens.values());\n }", "@Override\n public List<AccessToken> getAccessTokens() {\n return new ArrayList<AccessToken>(accessTokens.values());\n }", "public List<ChunkData> getAccess() {\n return access;\n }", "public List<KeyValuePair<Key, Value>> getData() {\r\n\t\t\tdata.reset();\r\n\t\t\treturn data;\r\n\t\t}", "public List<V> values()\r\n\t{\r\n\t\tList<V> values = new ArrayList<V>();\r\n\t\t\r\n\t\tfor(Entry element : data)\r\n\t\t{\r\n\t\t\tvalues.add(element.value);\r\n\t\t}\r\n\t\t\t\t\r\n\t\treturn values;\r\n\t}", "java.util.List<? extends com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder>\n getVersionsOrBuilderList();", "@Override\n\tpublic Collection<Value> values() {\n\t\tCollection<Value> c = new ArrayList<Value>();\n\t\tif (!isEmpty()) {\n\t\t\tFork<Key, Value> f = (Fork<Key, Value>) bst;\n\t\t\tEntry<Key, Value> e = new Entry<>(f.getKey().get(), f.getValue().get());\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tEntry<Key, Value>[] a = (Entry<Key, Value>[]) Array.newInstance(e.getClass(), size());\n\t\t\tbst.saveInOrder(a);\n\t\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t\tc.add(a[i].getValue());\n\t\t\t}\n\t\t}\n\t\treturn c;\n\t}", "@Override\n public List<V> values() {\n List<V> values = new AList<>();\n for(int i =0; i < capacity; i++){\n Entry n = (Entry)table[i];\n if(n != null && !n.isRemoved())\n values.add(n.getValue()); \n }\n assert values.size() == size;\n return values; \n }", "public String getBucket();", "public com.amazon.s3.ListAllMyBucketsResponse listAllMyBuckets(com.amazon.s3.ListAllMyBuckets listAllMyBuckets);", "private List<Object> naturalKeyValues() {\n\t\ttry {\n\t\t\tfinal List<Method> methods = keyGetters();\n\t\t\tfinal List<Object> values=new ArrayList<>(methods.size());\n\t\t\tfor(final Method method:methods) {\n\t\t\t\tvalues.add(method.invoke(this));\n\t\t\t}\n\t\t\treturn values;\n\t\t} catch (SecurityException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {\n\t\t\tthrow new EntityException(e);\n\t\t}\n\t}", "private List<E> snapshot() {\n\t\tList<E> list = Lists.newArrayListWithExpectedSize(size());\n\t\tfor (Multiset.Entry<E> entry : entrySet()) {\n\t\t\tE element = entry.getElement();\n\t\t\tfor (int i = entry.getCount(); i > 0; i--) {\n\t\t\t\tlist.add(element);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "@Override\r\n\tpublic Collection<Account> getAccountsHashmap() {\n\t\treturn dataMap.values();\r\n\t}", "Collection<V> values();", "Collection<V> values();", "public PaginationResponse<GenericS3Input> list() throws BitmovinException {\n try {\n return this.apiClient.list(new HashMap<String, Object>()).getData().getResult();\n } catch (Exception ex) {\n throw buildBitmovinException(ex);\n }\n }", "public abstract List<String> getAdditionalAccessions();", "public Bucket() {\n// this.bucketPath = bucketPath;\n keys = new Vector<>();\n }", "HCollection values();", "public Boolean isRestrictPublicBuckets() {\n return this.restrictPublicBuckets;\n }", "public List<V> values() {\n return values;\n }", "public List<V> values() {\n return values;\n }", "List<List<Object>> getTableValues();", "public HashMap<K,V> listAll();", "public List<ValueObject> getValueObjects()\r\n {\r\n List<ValueObject> vos = new ArrayList<ValueObject>();\r\n vos.add(getValueObject());\r\n return vos;\r\n }", "public List<String> getValues() {\n\t\treturn (new Vector<String>(this.values));\n\t}", "public Collection<V> getAllElements() {\n\t\treturn cacheMap.values();\n\t}", "public List getValues() {\r\n\t\tif (this.values == null) {\r\n\t\t\tthis.values = new ArrayList();\r\n\t\t}\r\n\t\treturn values;\r\n\t}", "List<String> getKeys();", "public ArrayList<KeyVal> readAllLocal(){\n\t\tDHTNode myNode = dynamoRing.getNode(MY_ADDRESS);\n\t\treturn readDHTAllFromNode(myNode);\n\t}", "public List<Tag> getAsList() {\n return Collections.unmodifiableList(data);\n }", "public List<String> keys()\n {\n return new ArrayList<String>(keys);\n }", "public java.util.List<java.lang.Long>\n getValueList() {\n return ((bitField0_ & 0x00000001) != 0) ?\n java.util.Collections.unmodifiableList(value_) : value_;\n }", "static List<SubstantiveParametersParameterItem> handleReadonlyList(List<SubstantiveParametersParameterItem> readOnlyList) {\n List<SubstantiveParametersParameterItem> readableList = new ArrayList<>();\n for(SubstantiveParametersParameterItem item : readOnlyList) {\n readableList.add(item);\n }\n return readableList;\n }", "List<ValueType> getValueTypes() throws AccessDeniedException;", "List<Accessprofile> listAll();", "public Collection getAllowedValues() {\n/* 40 */ return (Collection)this.allowedValues;\n/* */ }", "public ArrayList<Double> getAllValues()\n {\n return allValues;\n }", "java.util.List<com.google.protobuf.ByteString> getCachedList();", "public Collection<String> listSlices() throws PermissionDeniedException;", "public SinglyLinkedList getPublicList() {\n return this.publicList;\n }", "@Override\n protected List<S3ObjectSummary> doInBackground(Void... params) {\n Log.i(TAG, \"Getting items\");\n return mClient.listObjects(Constants.BUCKET_NAME.toLowerCase(Locale.US),\n Util.getPrefix(mContext)).getObjectSummaries();\n }", "Array<Object> getInstanceValues();", "@RequestMapping(method = RequestMethod.GET)\n public final Iterable<Entry> list() {\n Iterable<Entry> result = SecurityUtils.actualUser().getEntries();\n if (result == null) {\n result = Collections.emptyList();\n }\n return result;\n }", "public Iterable<V> values();", "private List<String> getListForRealKey(String realKey) {\n return List.of(realKey);\n }", "public List<UserCredential> getAllCredentials() {\n\t\t List<UserCredential> userCredentials = new ArrayList<>();\n\t\t \n\t\t credentialRepo.findAll().forEach(userCredential -> userCredentials.add(userCredential));\n\t\t \n\t\treturn userCredentials;\n\t}", "@Override\n\tpublic List<item> findAll() {\n\t\treturn donkyClientFeign.lista().stream().map(p -> new item(p,1)).collect(Collectors.toList());\n\t}", "public List<Entry<T>> getEntries() {\n return Collections.unmodifiableList(entries);\n }", "java.util.List<String>\n getPartitionKeyList();", "@Override\n public Collection<V> values() {\n Collection<V> values = new HashSet<V>(size());\n for (LinkedList<Entry<K,V>> list : table) {\n for (Entry<K,V> entry : list) {\n if (entry != null) {\n values.add(entry.getValue());\n }\n }\n }\n return values;\n }", "java.util.List<java.lang.String> getContentsList();", "public List<String> getKeys() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an object.\");\n }", "public List<Object[]> getPartitionKeys();" ]
[ "0.6577156", "0.65287614", "0.62543446", "0.6126814", "0.6079767", "0.6072175", "0.5996793", "0.5978716", "0.59389824", "0.58657146", "0.5838272", "0.58352315", "0.5804007", "0.5785687", "0.57763416", "0.5760821", "0.57478327", "0.5711912", "0.5690049", "0.56837875", "0.5672294", "0.5661703", "0.5661397", "0.5642157", "0.56393385", "0.5632885", "0.5628808", "0.56021655", "0.5584219", "0.55780053", "0.55558294", "0.5541979", "0.5541348", "0.5529905", "0.552745", "0.5507034", "0.55042076", "0.5494251", "0.54880834", "0.5482875", "0.54685533", "0.5465658", "0.5464824", "0.5463329", "0.54570806", "0.5434172", "0.5426891", "0.5424614", "0.5424614", "0.53812385", "0.5378396", "0.53717315", "0.5364042", "0.5363745", "0.53626513", "0.53455913", "0.5343648", "0.5317913", "0.5311527", "0.5299109", "0.529265", "0.529265", "0.52912426", "0.5282538", "0.527807", "0.5265208", "0.52648205", "0.52637815", "0.52637815", "0.5260315", "0.52569807", "0.52464604", "0.52410984", "0.52239674", "0.52202594", "0.52134484", "0.5204931", "0.51971763", "0.5190014", "0.51899976", "0.5186963", "0.5185392", "0.518209", "0.51808596", "0.5164011", "0.5152502", "0.51443034", "0.513257", "0.5131563", "0.5130528", "0.51161736", "0.5101885", "0.5097368", "0.50966835", "0.50945055", "0.5093557", "0.5090927", "0.5089301", "0.50871825", "0.5085325", "0.5081138" ]
0.0
-1
Produces a string of all key and value pairings in the bucket.
public String toString() { ListNode current = header; String s = ""; while (current != null) { s += "k: " + current.key + " v: " + current.value + "\n"; current = current.next; } return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String toString() {\n\t\treturn \"{\" + Strings.join(\",\", keyValuePair) + \"}\";\n\t}", "public String toString()\r\n\t\t{\r\n\t\t\treturn \"|Key: \" + key + \", Value: \" + value + \"|\";\r\n\t\t}", "public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < mySize; i++) {\n\t\t\tfor (int j = 0; j < myBuckets.get(i).size(); j++) {\n\t\t\t\tsb.append(\"(\" + myBuckets.get(i).get(j).myKey + \", \" + myBuckets.get(i).get(j).myValue + \"), \");\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String toString() {\r\n\t\treturn \"(\" + key + \",\" + value + \")\";\r\n\t}", "@Override\r\n public String toString() {\r\n return key.toString() + \"=\" + value.toString();\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn key + \"\";\r\n\t}", "@Override\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn keyConverter.apply(key) + KEY_VALUE_SEPARATOR_CHAR + ' ' + value;\n\t\t}", "@Override\r\n\tpublic String toString() {\r\n\r\n\t\tStringBuilder b = new StringBuilder();\r\n\t\tint count = 0;\r\n\t\tfor (PGPSecretKeyRing key : keys) {\r\n\t\t\tif (count++ > 0)\r\n\t\t\t\tb.append(\"\\n\\n\");\r\n\t\t\tb.append(key.toString());\r\n\t\t}\r\n\t\treturn b.toString();\r\n\t}", "@Override\r\n\t\tpublic String toString() {\r\n\t\t\treturn key.toString() + \"=\" + value.toString();\r\n\t\t}", "public String toString() {\n\t\t\tif (this.getKey() == null) {\n\t\t\t\treturn \"\";\n\t\t\t} else {\n\t\t\t\treturn \"Key:\" + this.getKey() + \" Value:\" + this.getValue();\n\t\t\t}\n\t\t}", "public String toString() {\n return \"{...(\" + this.size() + \" key(s) mapped to value(s))...}\";\n }", "@Override\n\tpublic String toString() {\n\t\t\n\t\tSet<KeyValueData> keyvalueset = key_value_treemap.keySet();\n\t\tIterator<KeyValueData> iterator = keyvalueset.iterator();\n\t\tStringBuilder builder = new StringBuilder(\"*\");\n\t\twhile(iterator.hasNext()){\n\t\t\tKeyValueData data = iterator.next();\n\t\t\tbuilder.append(data.key);\n\t\t\tbuilder.append(\" \");\n\t\t\tbuilder.append(data.value);\n\t\t\tbuilder.append(\" \");\n\t\t}\n\t\treturn builder.toString();\n\t}", "@Override\n public List<String> AllFileFromS3Bucket()\n {\n List<Bucket> buckets= amazonS3.listBuckets();\n List<String> keys = new ArrayList<>();\n \n for (Bucket b :buckets) {\n \t System.out.println(\" **** \" + b.getName());\n \t keys.add(b.getName());\n }\n\treturn keys;\n \n }", "public String toString() {\n return key + \"=\" + value;\n }", "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"<\"+key.toString()+\",\"+value.toString()+\">\";\n\t\t}", "@Override\n\tpublic String toString(){\n\t\tString result = \"\";\n\t\tfor (int i = 0; i < numObjects && key[i] != null; i++){\n\t\t\tresult += key[i].toString() + \" \";\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\tpublic String toString()\n\t{\n\t\tStringBuilder buffer = new StringBuilder(128);\n\t\tIterator<Map.Entry<String, AbstractNode>> it = pairs.entrySet().iterator();\n\t\twhile (it.hasNext())\n\t\t{\n\t\t\tMap.Entry<String, AbstractNode> pair = it.next();\n\t\t\tbuffer.append(keyToString(pair.getKey()));\n\t\t\tbuffer.append(KEY_VALUE_SEPARATOR_CHAR);\n\t\t\tbuffer.append(' ');\n\t\t\tbuffer.append(pair.getValue());\n\t\t\tif (it.hasNext())\n\t\t\t{\n\t\t\t\tbuffer.append(PAIR_SEPARATOR_CHAR);\n\t\t\t\tbuffer.append(' ');\n\t\t\t}\n\t\t}\n\t\treturn buffer.toString();\n\t}", "public String toString() {\n\treturn \"Key: \" + key.toString() + \"\\tData: \" + data;\n }", "@Override\n public String toString() {\n return key + \"=\" + value;\n }", "@Override\n public String toString() {\n return new StringBuilder().append(\"key = \\\"\").append(key).append(\"\\\", values[] = \").append(valuesToStringBuilder()).append(\", message = \\\"\").append(message).append(\"\\\"\").toString();\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn this.key;\r\n\t}", "@Override\n public String toString() {\n return String.valueOf(key);\n }", "public String toString() {\r\n \treturn key;\r\n }", "@Override\n public String toString() {\n Gson gson = new Gson();\n String s = gson.toJson(this);\n return s;\n\n// return \"Pair: (\" + key + \",\" + value + \")\";\n }", "@Override\n public String toString() {\n return \"MultiKey\" + Arrays.toString(keys);\n }", "@Override\n public String toString() {\n return key;\n }", "public final String getKeys() {\n StringBuilder sb = new StringBuilder();\n boolean append = false;\n for (Key key : this.parameters.keySet()) {\n if (append)\n sb.append(\",\");\n sb.append(key);\n append = true;\n }\n return sb.toString();\n }", "public List<String> getAllObjectsKey()\n {\n List<String> keyNameList = new ArrayList<String>();\n try\n {\n ObjectListing ol = s3.listObjects(bucketName);\n List<S3ObjectSummary> objects = ol.getObjectSummaries();\n for (S3ObjectSummary os : objects)\n {\n keyNameList.add(os.getKey());\n }\n }\n catch (AmazonS3Exception e)\n {\n logger.error(e.getMessage());\n }\n return keyNameList;\n\n }", "@Override\r\n public String toString() {\n \r\n StringBuilder sb = new StringBuilder(\"{\");\r\n for (int i = 0, size = size(); i < size; ++i) {\r\n if (i > 0) {\r\n sb.append(\", \");\r\n }\r\n \r\n sb.append(getNthKey(i)).append(\"=\").append(getNthValue(i)); \r\n }\r\n sb.append(\"}\");\r\n \r\n return sb.toString();\r\n }", "public String toString()\n {\n return key.toString() + \" => \" + item.toString();\n }", "@Override\r\n\tpublic String toString(){\n\t\tString s = \"{\";\r\n\t\tboolean first = true;\r\n\t\tfor(int n=0; n<_numBuckets; n++)\r\n\t\t{\r\n\t\t\tNode node = _buckets[n];\r\n\t\t\tif(node != null)\r\n\t\t\t{\r\n\t\t\t\tif(first)\r\n\t\t\t\t\tfirst = false;\r\n\t\t\t\telse\r\n\t\t\t\t\ts += \", \";\r\n\t\t\t\ts += node.toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\ts += \"}\";\r\n\t\treturn s;\r\n\t}", "public String getBucket();", "@Override\n public String toString(){\n return key;\n }", "@Override\n\tpublic String toString()\n\t{\n\t\tfinal AppendingStringBuffer buffer = new AppendingStringBuffer();\n\t\tboolean first = true;\n\t\tfor (Map.Entry<String, Object> entry : entrySet())\n\t\t{\n\t\t\tif (first == false)\n\t\t\t{\n\t\t\t\tbuffer.append(' ');\n\t\t\t}\n\t\t\tfirst = false;\n\n\t\t\tbuffer.append(entry.getKey());\n\t\t\tbuffer.append(\" = \\\"\");\n\t\t\tfinal Object value = entry.getValue();\n\t\t\tif (value == null)\n\t\t\t{\n\t\t\t\tbuffer.append(\"null\");\n\t\t\t}\n\t\t\telse if (value.getClass().isArray())\n\t\t\t{\n\t\t\t\tbuffer.append(Arrays.asList((Object[])value));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuffer.append(value);\n\t\t\t}\n\n\t\t\tbuffer.append('\\\"');\n\t\t}\n\t\treturn buffer.toString();\n\t}", "@Override\n\tpublic String toTransformerOutput() {\n\t\tString keyValueBlock = \"\";\n\t\tfor (KeyValuePair keyValuePairItem: keyValuePair) {\n\t\t\tkeyValueBlock = outputAddToBlock( keyValueBlock, keyValuePairItem.toTransformerOutput() );\n\t\t}\n\t\treturn OUTPUT_KEY_VALUE_BLOCK + outputBracedBlock( outputBracedList( keyValueBlock ) );\n\t}", "public abstract List<String> getAllKeys();", "public String printBucket() {\n\t\t\tString result = this.toString() + \" \";\n\t\t\tif (this.getNext() != null)\n\t\t\t\tresult += this.getNext().printBucket();\n\t\t\treturn result;\n\t\t}", "@Override\n public String toString() {\n String output;\n if (hasKeyIndex()) {\n output = key + \"(\" + index + \")\";\n } else if (hasArrayIndex()) {\n output = key + \"[\" + index + \"]\";\n } else {\n output = key;\n }\n return output;\n }", "@Override\n\tpublic String toString() {\n\t\tStringBuffer buf = new StringBuffer(\"Dictionary contents:\\n\");\n\t\tfor (Iterator iter = entrySet().iterator(); iter.hasNext();) {\n\t\t\tMap.Entry entry = (Map.Entry) iter.next();\n\t\t\tbuf.append(\" \").append(entry.getKey()).append(\" = \").append(\n\t\t\t\t\tentry.getValue()).append(\"\\n\");\n\t\t}\n\t\treturn buf.toString();\n\t}", "public List<String> keysAsString() {\n\t\treturn iter.getItems().stream().map(e -> new String(e)).collect(toList());\n\t}", "public String getBucket() {\n return bucket;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getIgnorePublicAcls() != null)\n sb.append(\"IgnorePublicAcls: \").append(getIgnorePublicAcls()).append(\",\");\n if (getRestrictPublicBuckets() != null)\n sb.append(\"RestrictPublicBuckets: \").append(getRestrictPublicBuckets()).append(\",\");\n if (getBlockPublicAcls() != null)\n sb.append(\"BlockPublicAcls: \").append(getBlockPublicAcls()).append(\",\");\n if (getBlockPublicPolicy() != null)\n sb.append(\"BlockPublicPolicy: \").append(getBlockPublicPolicy());\n sb.append(\"}\");\n return sb.toString();\n }", "public static List<KeyValue<String, String>> getAllKeyValues() {\n return keyValueList;\n }", "public static String assembleKeyValue(String key, String value) {\r\n return key + \"\\t\" + value + \"\\n\";\r\n }", "@Override\n\tpublic String toString() {\n\t\tStringBuilder buf = new StringBuilder();\n\t\t\n\t\tCIntMap termsFrequencies = null;\n\t\tfor( String tag : keySet()) {\n\t\t\tbuf.append(tag);\n\t\t\tbuf.append(\"\\n\");\n\t\t\ttermsFrequencies = get(tag);\n\t\t\tbuf.append(termsFrequencies);\n\t\t}\n\t\t\n\t\treturn buf.toString();\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getName() != null)\n sb.append(\"Name: \").append(getName()).append(\",\");\n if (getOptional() != null)\n sb.append(\"Optional: \").append(getOptional()).append(\",\");\n if (getKey() != null)\n sb.append(\"Key: \").append(getKey()).append(\",\");\n if (getNoEcho() != null)\n sb.append(\"NoEcho: \").append(getNoEcho()).append(\",\");\n if (getQueryable() != null)\n sb.append(\"Queryable: \").append(getQueryable()).append(\",\");\n if (getDescription() != null)\n sb.append(\"Description: \").append(getDescription());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getMonitoringOutputs() != null)\n sb.append(\"MonitoringOutputs: \").append(getMonitoringOutputs()).append(\",\");\n if (getKmsKeyId() != null)\n sb.append(\"KmsKeyId: \").append(getKmsKeyId());\n sb.append(\"}\");\n return sb.toString();\n }", "public String getBucketName(){\n return bucketName;\n }", "public String toString() { \n StringBuffer sb = new StringBuffer(); \n sb.append(\"[\"); \n sb.append(key);\n sb.append(\"]:\"); \n sb.append(apsPinKey);\n sb.append(\"|\");\n sb.append(apsSkillKey);\n sb.append(\"|\");\n sb.append(apsOthers);\n sb.append(\"|\");\n sb.append(apsCityKey);\n sb.append(\"|\");\n sb.append(apsRemarks);\n sb.append(\"|\");\n sb.append(activeStatus);\n sb.append(\"|\");\n sb.append(profileKey);\n sb.append(\"|\");\n sb.append(lockKey);\n sb.append(\"|\");\n sb.append(createdOn);\n return sb.toString(); \n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Key, ID: \"+this.id;\n\t}", "@Override\n public String info() {\n return String.format(\"%s. %s\", this.key, this.name);\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAccountId() != null) sb.append(\"AccountId: \" + getAccountId() + \",\");\n if (getVaultName() != null) sb.append(\"VaultName: \" + getVaultName() + \",\");\n if (getUploadId() != null) sb.append(\"UploadId: \" + getUploadId() + \",\");\n if (getArchiveSize() != null) sb.append(\"ArchiveSize: \" + getArchiveSize() + \",\");\n if (getChecksum() != null) sb.append(\"Checksum: \" + getChecksum() );\n sb.append(\"}\");\n return sb.toString();\n }", "public String toString () {\n String r = \"[ \";\n for (Env env = this; env != null; env = env.next) { \n r += env.key + \" \";\n }\n r += \"]\";\n return r;\n }", "@Override\r\n\t\tpublic String toString() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.toString();\r\n\t\t\t}\r\n\t\t}", "public String toString() {\n if (this.size() <= 0) {\n return \"{}\";\n }\n StringBuilder stringBuilder = new StringBuilder(this.mSize * 28);\n stringBuilder.append('{');\n int n2 = 0;\n do {\n if (n2 >= this.mSize) {\n stringBuilder.append('}');\n return stringBuilder.toString();\n }\n if (n2 > 0) {\n stringBuilder.append(\", \");\n }\n stringBuilder.append(this.keyAt(n2));\n stringBuilder.append('=');\n E e2 = this.valueAt(n2);\n if (e2 != this) {\n stringBuilder.append(e2);\n } else {\n stringBuilder.append(\"(this Map)\");\n }\n ++n2;\n } while (true);\n }", "@Override\n\tpublic String toString()\n\t{\n\t\tStringBuilder s = new StringBuilder();\n\t\tjava.util.Iterator<java.util.Map.Entry<String, Object>> iterator = entrySet().iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tjava.util.Map.Entry<String, Object> entry = iterator.next();\n\n\t\t\ts.append('\\n');\n\t\t\ts.append(\"\\t\");\n\t\t\ts.append(entry.getKey());\n\t\t\ts.append(':');\n\t\t\ts.append(' ');\n\t\t\ts.append(entry.getValue().toString());\n\t\t}\n\t\treturn s.toString();\n\t}", "@Override\n\tpublic String toString()\n\t{\n\t\tfinal StringBuffer buffer = new StringBuffer();\n\t\tfinal Iterator< Entry< Double, V > > iterator = iterator();\n\t\twhile( iterator.hasNext() )\n\t\t{\n\t\t\tfinal Entry< Double, V > entry = iterator.next();\n\t\t\tbuffer.append( entry.getKey().toString() + \", \" );\n\t\t\tbuffer.append( entry.getElement().toString() + \"\\n\" );\n\t\t}\n\t\t\n\t\treturn buffer.toString();\n\t}", "public String[] getKeys(){\n int paddingCount = 1;\n List<String> result = new ArrayList<String>();\n String lastKey = null;\n for (Property x : this.getProperties()) {\n String newKey = new String(x.getKey());\n if (lastKey != null && lastKey.equalsIgnoreCase(newKey)){\n newKey = newKey + \"_\" + paddingCount++;\n }\n result.add(newKey);\n lastKey = newKey;\n }\n return result.toArray(new String[]{});\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getFileSystemAssociationARN() != null)\n sb.append(\"FileSystemAssociationARN: \").append(getFileSystemAssociationARN()).append(\",\");\n if (getUserName() != null)\n sb.append(\"UserName: \").append(getUserName()).append(\",\");\n if (getPassword() != null)\n sb.append(\"Password: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getAuditDestinationARN() != null)\n sb.append(\"AuditDestinationARN: \").append(getAuditDestinationARN()).append(\",\");\n if (getCacheAttributes() != null)\n sb.append(\"CacheAttributes: \").append(getCacheAttributes());\n sb.append(\"}\");\n return sb.toString();\n }", "public com.google.protobuf.ByteString getGcsBucketBytes() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n gcsBucket_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String[] fetchAllKeys();", "@java.lang.Override\n public com.google.protobuf.ByteString getGcsBucketBytes() {\n java.lang.Object ref = gcsBucket_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n gcsBucket_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String toString() {\n\n\t\tStringBuffer header = new StringBuffer();\n\n\t\tIterator<ADACKvp> it = keyList.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tADACKvp ak = it.next();\n\t\t\theader.append(ADACDictionary.descriptions[ak.getKeyNum()]);\n\t\t\theader.append(\" = \");\n\t\t\theader.append(ak.getString());\n\t\t\theader.append(\"\\n\");\n\t\t}\n\n\t\treturn header.toString().trim();\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getCustomKeyStoreId() != null)\n sb.append(\"CustomKeyStoreId: \").append(getCustomKeyStoreId()).append(\",\");\n if (getNewCustomKeyStoreName() != null)\n sb.append(\"NewCustomKeyStoreName: \").append(getNewCustomKeyStoreName()).append(\",\");\n if (getKeyStorePassword() != null)\n sb.append(\"KeyStorePassword: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getCloudHsmClusterId() != null)\n sb.append(\"CloudHsmClusterId: \").append(getCloudHsmClusterId());\n sb.append(\"}\");\n return sb.toString();\n }", "public String getBucketName() {\n return getProperty(BUCKET_NAME);\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getItems() != null) sb.append(\"Items: \" + getItems() + \", \");\n if (getCount() != null) sb.append(\"Count: \" + getCount() + \", \");\n if (getLastEvaluatedKey() != null) sb.append(\"LastEvaluatedKey: \" + getLastEvaluatedKey() + \", \");\n if (getConsumedCapacityUnits() != null) sb.append(\"ConsumedCapacityUnits: \" + getConsumedCapacityUnits() + \", \");\n sb.append(\"}\");\n return sb.toString();\n }", "public Iterable<String> keys() { return keysWithPrefix(\"\"); }", "@Override\n public String toString() {\n StringBuilder buffer = new StringBuilder();\n if (actualProperties != null) {\n synchronized (propertySyncObject) {\n Enumeration<Object> keys = actualProperties.keys();\n while (keys.hasMoreElements()) {\n String key = (String) keys.nextElement();\n String value = actualProperties.getProperty(key);\n buffer.append(key).append(\": \").append(value).append(\"\\n\");\n }\n }\n }\n return buffer.toString();\n }", "public String getKV(String key) throws Exception;", "public String getCSVString() {\n StringBuilder builder = new StringBuilder();\n\n // key / value header\n builder.append(\"key,\\tvalue\");\n builder.append(System.getProperty(\"line.separator\").toString());\n\n // key / value pairs\n for (Entry<String, String> entry : results.entrySet()) {\n builder.append(entry.getKey());\n builder.append(\",\");\n builder.append(entry.getValue());\n builder.append(System.getProperty(\"line.separator\").toString());\n }\n\n builder.deleteCharAt(builder.length() - 1);\n return builder.toString();\n }", "public String toString() {\n\tString HashTable=\"\";\n\tfor(int i=0;i<this.capacity;i++) {\n\t for(MyEntry k:table[i]) {\n\t\tHashTable=HashTable+k.value+\" \"+k.key+\"\\n\";\n\t }\n\t}\n\treturn HashTable;\n }", "@Override\n\tpublic String toString()\n\t{\n\t\tTreeSet<String> set = new TreeSet<String>();\n\t\tfor (Entry<Object, Object> entry : this.entrySet())\n\t\t\tset.add(String.format(\"%s = %s%n\",\n\t\t\t\t\tentry.getKey(), entry.getValue()));\n\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor (String s : set)\n\t\t\tbuf.append(s);\n\t\treturn buf.toString();\n\t}", "public String getBucketName()\n {\n return bucketName;\n }", "public java.lang.String getGcsBucket() {\n java.lang.Object ref = gcsBucket_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n gcsBucket_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getArn() != null)\n sb.append(\"Arn: \").append(getArn()).append(\",\");\n if (getPackageId() != null)\n sb.append(\"PackageId: \").append(getPackageId()).append(\",\");\n if (getStorageLocation() != null)\n sb.append(\"StorageLocation: \").append(getStorageLocation());\n sb.append(\"}\");\n return sb.toString();\n }", "StringList keys();", "public Iterable<String> keys()\r\n { return keysWithPrefix(\"\"); }", "private void ListMyBuckets(String bucketName) {\n List<Bucket> buckets = s3.listBuckets();\n System.out.println(\"------------- CustomS3Client --------------\");\n System.out.println(\"Bucket \"+bucketName+\" contents are as below:\");\n\n for (Bucket b : buckets) {\n System.out.println(b.getName());\n ListObjectsV2Result result = s3.listObjectsV2(b.getName());\n List<S3ObjectSummary> objects = result.getObjectSummaries();\n for (S3ObjectSummary os : objects) {\n System.out.println(\"** \" + os.getKey());\n }\n }\n System.out.println(\"------------- All bucket contents listed successfully --------------\");\n }", "public String listKeys(Bucket bucket, String prefix, String marker,\r\n\t\t\tString delimiter, int maxKeys) throws S3Exception {\n\t\treturn null;\r\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getCertificateArn() != null)\n sb.append(\"CertificateArn: \").append(getCertificateArn()).append(\",\");\n if (getCertificate() != null)\n sb.append(\"Certificate: \").append(getCertificate()).append(\",\");\n if (getPrivateKey() != null)\n sb.append(\"PrivateKey: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getCertificateChain() != null)\n sb.append(\"CertificateChain: \").append(getCertificateChain()).append(\",\");\n if (getTags() != null)\n sb.append(\"Tags: \").append(getTags());\n sb.append(\"}\");\n return sb.toString();\n }", "public String getString(Keys key) {\n\t\treturn getString(key, null);\n\t}", "@Override\n\tpublic String toString() {\n\t\tString result = \"\";\n\t\tfor (int i = 0; i < buckets.length; i++) {\n\t\t\tif (buckets[i] != null) {\n\t\t\t\tresult += \"[\" + i + \"]\" + \" \";\n\t\t\t\tresult += buckets[i].printBucket() + \"\\n\";\n\t\t\t}\n\t\t}\n\t\tif (result == \"\")\n\t\t\treturn \"Relation is empty\";\n\t\treturn result;\n\t}", "public interface BucketKeyPair<B, K> {\n\n /**\n * Get the bucket representation.\n *\n * @return\n */\n B getBucket();\n\n /**\n * Get the key representation.\n *\n * @return\n */\n K getKey();\n\n}", "public String getBucketName() {\n return bucketName;\n }", "public String getBucketName() {\n return bucketName;\n }", "@Override\n public String toString() {\n return encodedHash.get();\n }", "List<String> getKeys();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" {\");\n sb.append(\" \\\"fileid\\\":\\\"\").append(fileid);\n sb.append(\", \\\"filename\\\":\\\"\").append(filename);\n sb.append(\", \\\"fileupdate\\\":\\\"\").append(fileupdate);\n sb.append(\", \\\"filepath\\\":\\\"\").append(filepath);\n sb.append(\", \\\"fileuploader\\\":\\\"\").append(fileuploader);\n sb.append(\", \\\"isdelete\\\":\\\"\").append(isdelete);\n sb.append(\", \\\"filedesc\\\":\\\"\").append(filedesc);\n sb.append(\", \\\"filetype\\\":\\\"\").append(filetype);\n sb.append(\"\\\"}\");\n return sb.toString();\n }", "public void logAllPossibleKeysWithValue() {\n log.info(\"Log all possible keys with value:\");\n log.info(mapToString(context));\n }", "String getString(String key) throws KeyValueStoreException;", "private static void writePair(final StringBuffer buffer, final String key,\n \t\t\tfinal String value) {\n \t\tbuffer.append(key);\n \t\tbuffer.append('=');\n \t\tbuffer.append(value.replace(\"\\\\\", \"\\\\\\\\\").replace(\">\", \"\\\\>\").replace(\n \t\t\t\t\"<\", \"\\\\<\"));\n \t\tbuffer.append(\"\\\\p\");\n \t}", "public static String printKeyValue(String key, String value) {\n\n return StringHelper.addRightPadding(key, StringHelper.RIGHT_PADDING_WIDTH) + value + \"\\n\";\n\n }", "public String getString(String key);", "public String getAsString(String key) {\n return entries.getProperty(key);\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getParameterGroupName() != null) sb.append(\"ParameterGroupName: \" + getParameterGroupName() + \",\");\n if (getMaxRecords() != null) sb.append(\"MaxRecords: \" + getMaxRecords() + \",\");\n if (getMarker() != null) sb.append(\"Marker: \" + getMarker() + \",\");\n if (getTagKeys() != null) sb.append(\"TagKeys: \" + getTagKeys() + \",\");\n if (getTagValues() != null) sb.append(\"TagValues: \" + getTagValues() );\n sb.append(\"}\");\n return sb.toString();\n }", "private String tagKey() {\n return tags.values().toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getFileSystemId() != null)\n sb.append(\"FileSystemId: \").append(getFileSystemId()).append(\",\");\n if (getFileSystemType() != null)\n sb.append(\"FileSystemType: \").append(getFileSystemType()).append(\",\");\n if (getVpcConfiguration() != null)\n sb.append(\"VpcConfiguration: \").append(getVpcConfiguration()).append(\",\");\n if (getSecretArn() != null)\n sb.append(\"SecretArn: \").append(getSecretArn()).append(\",\");\n if (getInclusionPatterns() != null)\n sb.append(\"InclusionPatterns: \").append(getInclusionPatterns()).append(\",\");\n if (getExclusionPatterns() != null)\n sb.append(\"ExclusionPatterns: \").append(getExclusionPatterns()).append(\",\");\n if (getFieldMappings() != null)\n sb.append(\"FieldMappings: \").append(getFieldMappings());\n sb.append(\"}\");\n return sb.toString();\n }", "public String toString(){\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < key; i++) {\n sb.append(getArtikel(i));\n }\n return sb.toString();\n }", "public String print() {\n\n String returnString = \"\";\n\n if (kv1 != null) {\n returnString += kv1.toString();\n }\n\n if (kv2 != null) {\n returnString += \" \" + kv2.toString();\n }\n\n return returnString;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getBatchSize() != null)\n sb.append(\"BatchSize: \").append(getBatchSize()).append(\",\");\n if (getCredentials() != null)\n sb.append(\"Credentials: \").append(getCredentials()).append(\",\");\n if (getMaximumBatchingWindowInSeconds() != null)\n sb.append(\"MaximumBatchingWindowInSeconds: \").append(getMaximumBatchingWindowInSeconds()).append(\",\");\n if (getServerRootCaCertificate() != null)\n sb.append(\"ServerRootCaCertificate: \").append(getServerRootCaCertificate()).append(\",\");\n if (getVpc() != null)\n sb.append(\"Vpc: \").append(getVpc());\n sb.append(\"}\");\n return sb.toString();\n }", "public static String string() {\n\t\t\tString s = \"\";\n\t\t\ts += \"Locaux :\\n\";\n\t\t\tfor(String key : locaux.keySet()) {\n\t\t\t\tIdent i = locaux.get(key);\n\t\t\t\ts += key+\", \"+i.toString()+\"\\n\";\n\t\t\t}\n\t\t\ts += \"Globaux :\\n\";\n\t\t\tfor(String key : globaux.keySet()) {\n\t\t\t\tIdent i = globaux.get(key);\n\t\t\t\ts += key+\", \"+i.toString()+\"\\n\";\n\t\t\t}\n\n\t\t\treturn s;\n\t\t}" ]
[ "0.68147296", "0.6641993", "0.6545558", "0.6545336", "0.63838375", "0.63714826", "0.63588536", "0.63296485", "0.63182974", "0.62721723", "0.62574655", "0.6236638", "0.62248456", "0.6222746", "0.62154937", "0.6057987", "0.6056323", "0.6053461", "0.5989458", "0.5954911", "0.5948602", "0.59474826", "0.5944621", "0.5880499", "0.5863895", "0.5863729", "0.58570397", "0.5852329", "0.581913", "0.58164996", "0.5800798", "0.57379043", "0.57152945", "0.56998736", "0.56864375", "0.5676524", "0.5634479", "0.5622661", "0.56221366", "0.5580675", "0.5574336", "0.5568304", "0.5545143", "0.55430305", "0.549002", "0.5473007", "0.5455015", "0.5440736", "0.5439916", "0.5432893", "0.5422968", "0.54022634", "0.53812873", "0.5371594", "0.5370138", "0.53673244", "0.5331817", "0.53250104", "0.53051203", "0.52986765", "0.5298413", "0.529519", "0.52914286", "0.5284172", "0.52581155", "0.52426666", "0.5242111", "0.5236043", "0.52288", "0.52023137", "0.5196122", "0.5193976", "0.51888657", "0.5186156", "0.51746744", "0.51659024", "0.5156815", "0.5155095", "0.51491714", "0.51421165", "0.5139018", "0.51373184", "0.513391", "0.51303864", "0.51303864", "0.5118223", "0.51169777", "0.5116789", "0.51093125", "0.51031035", "0.5092436", "0.50919104", "0.5083159", "0.50772166", "0.50760114", "0.506508", "0.5062006", "0.5058922", "0.50579584", "0.5052723", "0.50523674" ]
0.0
-1
constructor Construct an instance.
public MethodBundle (Identifier name, boolean isStatic, Coercer[] coercers) { if (name == null) { throw new NullPointerException ("name == null"); } if (coercers == null) { throw new NullPointerException ("coercers == null"); } for (int i = 0; i < coercers.length; i++) { if (coercers[i] == null) { throw new NullPointerException ("coercers[" + i + "] == null"); } } myName = name; myIsStatic = isStatic; myCoercers = coercers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Instantiation(){}", "public Instance() {\n }", "public Constructor(){\n\t\t\n\t}", "Instance createInstance();", "Reproducible newInstance();", "Constructor() {\r\n\t\t \r\n\t }", "protected abstract void construct();", "public CyanSus() {\n\n }", "public Factory() {\n\t\tsuper();\n\t}", "public ObjectFactory() {\n\t}", "public Odontologo() {\n }", "public Curso() {\r\n }", "public Taginstance() {\n\t\tthis(\"taginstance\", null);\n\t}", "public ObjectFactory() {\r\n\t}", "public static Construtor construtor() {\n return new Construtor();\n }", "private Singleton(){}", "defaultConstructor(){}", "private Singleton()\n\t\t{\n\t\t}", "private SingleObject()\r\n {\r\n }", "private SingleObject(){}", "public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }", "public Instance() {\n super(Routing.NAMESPACE, \"instance\");\n }", "public Clade() {}", "private InstanceUtil() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }" ]
[ "0.7955689", "0.7719086", "0.72786164", "0.727691", "0.7172946", "0.71132696", "0.70270604", "0.6690422", "0.66870165", "0.6676217", "0.6675733", "0.6664561", "0.6661337", "0.6648412", "0.6640993", "0.6640194", "0.66214937", "0.66163135", "0.6609274", "0.657741", "0.65504056", "0.65463865", "0.65392655", "0.65246916", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593", "0.65219593" ]
0.0
-1
public instance methods superclass's comment suffices
final public boolean equals (Object other) { return compareTo (other) == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_6349() {\r\n super.method_6349();\r\n }", "@Override\n\tpublic void comment() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "public void method_6191() {\r\n super.method_6191();\r\n }", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "public E16_OverloadJavaDoc() {\n System.out.println(\"Planting a seedling\");\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void method_4270() {}", "@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public abstract void mo70713b();", "protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public abstract void mo30696a();", "protected void method_3848() {\r\n super.method_3848();\r\n }", "public abstract Object mo26777y();", "public abstract void mo56925d();", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void comment(String comment)\n {\n }", "private stendhal() {\n\t}", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public void m23075a() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }", "@Override\n\tpublic void dosomething2() {\n\t\t\n\t}", "@Override\n protected void checkSubclass() {\n }", "public void smell() {\n\t\t\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "private Rekenhulp()\n\t{\n\t}", "public abstract void mo42329d();", "public abstract void mo27386d();", "@Override\n public void author()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n public int getMethodCount()\n {\n return 1;\n }", "public abstract void mo42331g();", "public void mo21779D() {\n }", "@Override\r\n public String description() {\r\n return \"<html>Create a new method in class A that delegates the call to object B. <br/>\" +\r\n \"Now the client doesn’t know about, or depend on, class B. </html>\";\r\n }", "public abstract void mo102899a();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }", "public void calling(){ // when the abstract method is implemented in other class 'public' keyword is used..\r\n System.out.println(\"I am calling...\");\r\n }", "abstract void method();", "private abstract void privateabstract();", "private void m50366E() {\n }", "@Override\n\t/**\n\t * returns nothing because comments are disabled for classes\n\t * \n\t * @return nothing\n\t */\n\tpublic String getComment() {\n\t\treturn \"\";\n\t}", "@Override public int describeContents() { return 0; }", "@Override\r\n\tprotected void parentMethod() {\n\t\tsuper.parentMethod();\r\n\t\tSystem.out.println(\"ChildParentMethod\");\r\n\t}", "public abstract void m15813a();", "public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }", "@Override\n\t/**\n\t * returns false because comments are disabled for classes\n\t * \n\t * @return false \n\t */\n\tpublic boolean hasComment() {\n\t\treturn false;\n\t}", "public abstract void description();", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "public OOP_207(){\n\n }", "private CommonMethods() {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public abstract String mo13682d();", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\n\tpublic void myMethod() {\n\t\t\n\t}", "public abstract void mo27464a();", "public boolean method_216() {\r\n return false;\r\n }", "public void myPublicMethod() {\n\t\t\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}" ]
[ "0.6945664", "0.68528", "0.67796254", "0.6677456", "0.66734374", "0.66051733", "0.66051733", "0.66051733", "0.65788144", "0.6576658", "0.65287566", "0.65257096", "0.6511702", "0.65061945", "0.64668953", "0.6433815", "0.6428434", "0.64147544", "0.6405452", "0.6400151", "0.6396425", "0.6391623", "0.637724", "0.6352805", "0.6345283", "0.63322234", "0.632849", "0.63259226", "0.630101", "0.62853324", "0.6278238", "0.6275946", "0.62641084", "0.6256325", "0.6254832", "0.6247693", "0.6245027", "0.6236493", "0.6226451", "0.62250525", "0.6202113", "0.6188259", "0.61878407", "0.61852926", "0.61791825", "0.61640704", "0.61446476", "0.6141998", "0.61249834", "0.6112901", "0.6112901", "0.6105006", "0.6104934", "0.6103761", "0.61036843", "0.60927474", "0.60890436", "0.608034", "0.60793114", "0.60779023", "0.60771686", "0.60725665", "0.6071302", "0.6069942", "0.606601", "0.60646933", "0.60591835", "0.60572416", "0.6056492", "0.6050372", "0.6050316", "0.6050316", "0.6050316", "0.6050316", "0.6050316", "0.6050316", "0.6050316", "0.6050316", "0.6050316", "0.6050316", "0.6050316", "0.6050316", "0.6050316", "0.6050316", "0.6050316", "0.6050316", "0.6050316", "0.60493577", "0.60472155", "0.6044374", "0.6044333", "0.604129", "0.6040295", "0.6039254", "0.6035814", "0.6034553", "0.60330427", "0.60291916", "0.60291916", "0.60291916", "0.60291916" ]
0.0
-1
Get the name of the method.
final public Identifier getName () { return myName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getName() {\n return method.getName();\n }", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "String getMethodName();", "String getMethodName();", "public String getName() {\n return nameRule.getMethodName();\n }", "public String getMethodName() {\n return LOG_TAG + \":\" + this.getClass().getSimpleName() + \".\" + new Throwable().getStackTrace()[1].getMethodName();\n }", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n methodName_ = s;\n }\n return s;\n }\n }", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n methodName_ = s;\n }\n return s;\n }\n }", "public java.lang.String getMethodName() {\r\n\t\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\r\n\t\t\t\t\tjava.lang.String s = ((com.google.protobuf.ByteString) ref)\r\n\t\t\t\t\t\t\t.toStringUtf8();\r\n\t\t\t\t\tmethodName_ = s;\r\n\t\t\t\t\treturn s;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn (java.lang.String) ref;\r\n\t\t\t\t}\r\n\t\t\t}", "public java.lang.String getMethodName() {\r\n\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\tif (ref instanceof java.lang.String) {\r\n\t\t\t\treturn (java.lang.String) ref;\r\n\t\t\t} else {\r\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\r\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\r\n\t\t\t\tif (bs.isValidUtf8()) {\r\n\t\t\t\t\tmethodName_ = s;\r\n\t\t\t\t}\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}", "public String getGetMethodName() {\n return m_getMethodName;\n }", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n methodName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n methodName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getMethodName() {\r\n return _methodName;\r\n }", "public String getMethodName() {\n\t\treturn this.methodName;\n\t}", "public String getMethodName() {\n\t\treturn this.methodName;\n\t}", "public String getMethodName() {\n return methodName;\n }", "public String getMethodName() {\n return methodName;\n }", "public String getMethodName() {\n\t\treturn methodName;\n\t}", "public String getMethodName() {\n\t\t\treturn methodName;\n\t\t}", "public String getFullName() {\n return getFullMethodName(method);\n }", "public String getCurrentMethodName () {\n String currentMethod = getCurrentElement(ElementKind.METHOD);\n if (currentMethod == null) return \"\";\n else return currentMethod;\n }", "public String getMethodName(String name) {\n return methodResources.getString(name);\n }", "public static String getCurrentMethodName() {\n\t\tStackTraceElement stackTraceElements[] = (new Throwable()).getStackTrace();\n\t\tString fullString = stackTraceElements[1].toString();\n\t\tint stringEnd = fullString.indexOf('(');\n\t\tString fullName = fullString.substring(0, stringEnd);\n\t\tint start = fullName.lastIndexOf('.') + 1;\n\t\tString methodName = fullName.substring(start);\n\n\t\treturn methodName;\n\t}", "public com.google.protobuf.ByteString getMethodNameBytes() {\r\n\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\tif (ref instanceof java.lang.String) {\r\n\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString\r\n\t\t\t\t\t\t.copyFromUtf8((java.lang.String) ref);\r\n\t\t\t\tmethodName_ = b;\r\n\t\t\t\treturn b;\r\n\t\t\t} else {\r\n\t\t\t\treturn (com.google.protobuf.ByteString) ref;\r\n\t\t\t}\r\n\t\t}", "public com.google.protobuf.ByteString\n getMethodNameBytes() {\n java.lang.Object ref = methodName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n methodName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getMethodNameBytes() {\n java.lang.Object ref = methodName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n methodName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString getMethodNameBytes() {\r\n\t\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\t\tif (ref instanceof String) {\r\n\t\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString\r\n\t\t\t\t\t\t\t.copyFromUtf8((java.lang.String) ref);\r\n\t\t\t\t\tmethodName_ = b;\r\n\t\t\t\t\treturn b;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn (com.google.protobuf.ByteString) ref;\r\n\t\t\t\t}\r\n\t\t\t}", "public com.google.protobuf.ByteString\n getMethodNameBytes() {\n java.lang.Object ref = methodName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n methodName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getMethodNameBytes() {\n java.lang.Object ref = methodName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n methodName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private static String getFullMethodName(Method method) {\n return method.getDeclaringClass()\n .getName() + '.' + method.getName() + \"()\";\n }", "com.google.protobuf.ByteString\n getMethodNameBytes();", "com.google.protobuf.ByteString\n getMethodNameBytes();", "public static String getCurrentMethodName() {\n Exception e = new Exception();\n StackTraceElement trace = e.fillInStackTrace().getStackTrace()[1];\n String name = trace.getMethodName();\n String className = trace.getClassName();\n int line = trace.getLineNumber();\n return \"[CLASS:\" + className + \" - METHOD:\" + name + \" LINE:\" + line + \"]\";\n }", "public static String getMethodName(Method _method) {\n Objects.requireNonNull(_method, \"method must not be null\");\n\n if (_method.isAnnotationPresent(DBusMemberName.class)) {\n return _method.getAnnotation(DBusMemberName.class).value();\n }\n return _method.getName();\n }", "@Override\n public String getMethod() {\n return METHOD_NAME;\n }", "com.google.protobuf.ByteString getMethodNameBytes();", "com.google.protobuf.ByteString getMethodNameBytes();", "@Override\n public String getMethodName() {\n return null;\n }", "public static String getCurrentMethodName(){\n\t\tString s2 = Thread.currentThread().getStackTrace()[2].getMethodName();\n// System.out.println(\"s0=\"+s0+\" s1=\"+s1+\" s2=\"+s2);\n\t\t//s0=getStackTrace s1=getCurrentMethodName s2=run\n\t\treturn s2;\n\t}", "private String getGetMethodName() {\n assert name != null;\n if (field != null && (field.getType() == Boolean.class\n || \"boolean\".equals(field.getType().getName()))) {\n return \"is\" + upperFirstChar(name);\n }\n return \"get\" + upperFirstChar(name);\n }", "String getMethod();", "String getMethod();", "public String toString() {\n\t\treturn methodName;\n\t}", "public String getMethod ()\n {\n return method;\n }", "@Override\n protected String getMethodName() {\n return suitename() + \"-\" + super.getMethodName();\n }", "public String getMethod() {\n return method;\n }", "public String getMethod() {\n return method;\n }", "public String getMethod() {\n return method;\n }", "public SimpleName getName() {\n if (this.methodName == null) {\n // lazy init must be thread-safe for readers\n synchronized (this) {\n if (this.methodName == null) {\n preLazyInit();\n this.methodName = new SimpleName(this.ast);\n postLazyInit(this.methodName, NAME_PROPERTY);\n }\n }\n }\n return this.methodName;\n }", "@Nullable\n @Override\n public String getName() {\n return /*this.requestMethod + \" \" +*/ this.url;\n }", "public String getMethod() {\n\t\treturn getParameter(\"method\");\n\t}", "public String getMethod() {\n\t\treturn method;\n\t}", "public String getTestMethodName() {\n return m_testMethodName;\n }", "public void setGetMethodName(String name) {\n m_getMethodName = name;\n }", "@Override\n\t@NotDbField\n\tpublic String getApiMethodName() {\n\t\treturn null;\n\t}", "MethodName getMethod();", "public String getMethod()\n {\n if (averageRating == null) {\n return \"\";\n } else {\n return averageRating.getMethod();\n }\n }", "public String getName()\n {\n return m_functionName;\n }", "public String getMethod() {\n\t\t\treturn method;\n\t\t}", "public static String getName(Method m)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tsb.append(getName(m.getReturnType())).append(' ');\n\t\tsb.append(m.getName()).append('(');\n\t\t\n\t\tClass<?>[] types = m.getParameterTypes();\n\t\tfor (int i = 0; i < types.length; i++) \n\t\t{\n\t\t\tif (i > 0)\n\t\t\t{\n\t\t\t\tsb.append(',');\n\t\t\t}\n\t\t\tsb.append(getName(types[i]));\n\t\t}\n\t\tsb.append(')');\n\t\t\n\t\treturn sb.toString();\n\t}", "@Nullable @NotEmpty public String getMethod() {\n return StringSupport.trimOrNull(method);\n }", "public String getMethod() {\n\n return this.method;\n }", "public static String getName(String methodName) {\n\t\tString[] splitMethodName = methodName.split(\"(?<=.)(?=\\\\p{Lu})\");\n\t\tString strMethodName = Arrays.toString(splitMethodName);\n\t\tstrMethodName = strMethodName.substring(1, strMethodName.length() - 1);\n\t\tString covertMethodName = strMethodName.replace(\",\", \"\").replace(\"verify \", \"\");\n\t\treturn covertMethodName;\n\t}", "public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}", "public static String resolveMethodName(Method method) {\n if (method == null) {\n throw new IllegalArgumentException(\"Null method\");\n }\n String methodName = methodNameMap.get(method);\n if (methodName == null) {\n synchronized (LOCK) {\n methodName = methodNameMap.get(method);\n if (methodName == null) {\n StringBuilder sb = new StringBuilder();\n\n String className = method.getDeclaringClass().getName();\n String name = method.getName();\n Class<?>[] params = method.getParameterTypes();\n sb.append(className).append(\":\").append(name);\n sb.append(\"(\");\n\n int paramPos = 0;\n for (Class<?> clazz : params) {\n sb.append(clazz.getCanonicalName());\n if (++paramPos < params.length) {\n sb.append(\",\");\n }\n }\n sb.append(\")\");\n methodName = sb.toString();\n\n methodNameMap.put(method, methodName);\n }\n }\n }\n return methodName;\n }", "public static String buildActionMethodName( Method actionMethod ) {\n\n String methodName = actionMethod.getName();\n StringBuilder actionMethodName = new StringBuilder();\n int charIndex;\n for (charIndex = 0; charIndex < methodName.length(); charIndex++) {\n char ch = methodName.charAt(charIndex);\n if (Character.isUpperCase(ch)) {\n actionMethodName.append(' ');\n }\n actionMethodName.append(ch);\n }\n\n return actionMethod.getDeclaringClass().getSimpleName() + \" \" + actionMethodName.toString().trim();\n }", "@Override\n\tpublic String getApiMethodName() {\n\t\treturn null;\n\t}", "public int getMethod(){\n return method;\n }", "public java.lang.String getName();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();" ]
[ "0.86343306", "0.85352015", "0.85352015", "0.85352015", "0.85352015", "0.82752687", "0.82752687", "0.82279235", "0.81863385", "0.80447763", "0.80447763", "0.80403686", "0.8034489", "0.8034148", "0.8003049", "0.8003049", "0.79904836", "0.79498655", "0.79498655", "0.78922963", "0.78922963", "0.7780545", "0.775623", "0.76867676", "0.7616089", "0.75829256", "0.7502998", "0.7452482", "0.7441177", "0.7441177", "0.73816097", "0.73687273", "0.73687273", "0.7345205", "0.7276522", "0.7276522", "0.721504", "0.71967334", "0.71637523", "0.71581954", "0.71581954", "0.71469647", "0.7135963", "0.7129857", "0.7109737", "0.7109737", "0.71019995", "0.70966107", "0.7041851", "0.69194674", "0.69194674", "0.69194674", "0.69133985", "0.68515414", "0.68276525", "0.6806855", "0.6806087", "0.675853", "0.675319", "0.6747033", "0.67406577", "0.6736358", "0.6730899", "0.6726982", "0.67142916", "0.66932076", "0.66872364", "0.6683942", "0.6638772", "0.66231793", "0.66122985", "0.6606558", "0.6588427", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034", "0.64803034" ]
0.0
-1
Get whether or not this is a static method.
final public boolean isStatic () { return myIsStatic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isStatic() {\n return staticMethod;\n }", "public boolean isStatic() {\n return ReflectionHelper.isStatic(method);\n }", "boolean getIsStatic();", "public static void isStatic() {\n\n }", "boolean isStatic();", "boolean isStatic();", "public boolean isStatic() {\n\t\t\treturn this.IsStatic;\n\t\t}", "public boolean isStatic() {\n return isStatic;\n }", "public boolean isStatic() {\n\t\treturn (access & Opcodes.ACC_STATIC) != 0;\n\t}", "public boolean isStatic()\n {\n ensureLoaded();\n return m_flags.isStatic();\n }", "@Override\n public boolean getIsStatic() {\n return isStatic_;\n }", "@Override\n public boolean getIsStatic() {\n return isStatic_;\n }", "public default boolean isStatic() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isStatic() {\n\t\treturn false;\n\t}", "boolean hasMethod();", "boolean hasMethod();", "boolean hasMethod();", "@Override\n\t/**\n\t * returns a false because a class cannot be static\n\t * \n\t * @return false\n\t */\n\tpublic boolean getStatic() {\n\t\treturn false;\n\t}", "public static boolean resolveStaticMethod(Member method) {\n if (method == null)\n return true;\n try {\n if (method instanceof Method && Modifier.isStatic(method.getModifiers())) {\n ((Method) method).setAccessible(true);\n ((Method) method).invoke(new Object(), getFakeArgs((Method) method));\n }\n } catch (ExceptionInInitializerError classInitError) {\n //may need hook later\n return false;\n } catch (Throwable throwable) {\n }\n return true;\n }", "public static boolean isStatic(int mod) {\n\t\treturn Modifier.isStatic(mod);\n\t}", "public static int isMethod() {\n return isNameExpr;\n }", "boolean hasMethodName();", "boolean hasMethodName();", "boolean hasMethodName();", "boolean isContextStatic(){\r\n\t\tif(curField == null) {\r\n\t\t\treturn curOperation.isStaticElement();\r\n\t\t} else {\r\n\t\t\treturn curField.isStaticElement();\r\n\t\t}\r\n\t}", "public boolean isStaticProcess() {\n\t\treturn (this.staticConfig != null);\n\t}", "public int isMethod() {\n return isNameExpr;\n }", "public String isMethod() {\n return isNameExpr;\n }", "public void setStatic(boolean staticMethod) {\n this.staticMethod = staticMethod;\n }", "public boolean isMethod() {\n return isNameExpr;\n }", "public int isMethod() {\n LayoutManager isVariable = isMethod();\n if (isNameExpr == null) {\n return isNameExpr;\n }\n final View isVariable = isMethod(isIntegerConstant, isNameExpr.isMethod(), true, true);\n return isNameExpr == null ? isNameExpr : isMethod(isNameExpr);\n }", "boolean isSetMethod();", "public boolean hasMethod() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "private boolean isMethod() {\n return !line.contains(\"=\") && !line.contains(\".\") && !semicolon && line.contains(\"(\");\n }", "public boolean hasMethod() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isSetMethod() {\n return this.method != null;\n }", "private void isMethod() {\n if (isNameExpr != null) {\n isNameExpr.isMethod();\n isNameExpr = null;\n }\n }", "public static void staticMethod() {\r\n\t\tSystem.out.println(\"StaticMethod\");\r\n\t}", "public boolean hasMethodName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasMethodName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasMethodName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasMethodName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasMethod( final String name )\n {\n return getMethod( name ) != null;\n }", "private boolean isInternalMethod(MethodBean pMethod, ClassBean pClass) {\n for (MethodBean method : pClass.getMethods()) {\n if (pMethod.getName().equals(method.getName())) {\n return true;\n }\n }\n return false;\n }", "public boolean isInMethodMode() {\n return methodMode;\n }", "public boolean hasMethodName() {\r\n\t\t\treturn ((bitField0_ & 0x00000001) == 0x00000001);\r\n\t\t}", "public boolean hasMethodName() {\r\n\t\t\t\treturn ((bitField0_ & 0x00000001) == 0x00000001);\r\n\t\t\t}", "boolean inStaticContext();", "public boolean isMethodFromBaseClass() {\n return m_isBaseClass.isSelected();\n }", "@Test\n public void testStaticMethodStaticClassNotKept() throws Exception {\n Class<?> mainClass = MainCallStaticMethod.class;\n runTest(\n mainClass,\n ImmutableList.of(mainClass, StaticMethod.class),\n keepMainProguardConfiguration(mainClass),\n this::checkOnlyMainPresent);\n }", "private boolean eatStaticIfNotElementName() {\n if (peek(TokenType.STATIC) && isClassElementStart(peekToken(1))) {\n eat(TokenType.STATIC);\n return true;\n }\n return false;\n }", "boolean hasHttpMethod();", "private static DirInfo isMethod(String isParameter, File isParameter) {\n return isNameExpr.isMethod(isNameExpr, isNameExpr);\n }", "public static void isMethod() throws IOException {\n isNameExpr.isMethod();\n }", "public boolean isStaticTypedTarget() {\n\t return true;\n }", "public Function getStaticMethod(int signature)\r\n\t{\r\n\t\t// search own methods:\r\n\t\tfor (Function fn : staticMethods)\r\n\t\t{\r\n\t\t\tif (fn.signature == signature)\r\n\t\t\t\treturn fn;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "@NonNull\n public static TaskManager isMethod() {\n if (null == isNameExpr)\n isNameExpr = new TaskManager(isNameExpr.isMethod(), isIntegerConstant < isNameExpr ? isNameExpr : isIntegerConstant, isIntegerConstant, null);\n return isNameExpr;\n }", "public boolean isHideMethods() {\n\t\treturn hideMethods;\n\t}", "private static boolean isUserDefinedMethod(final Method method) {\n if (!method.equals(OBJECT_EQUALS)\n && !method.equals(OBJECT_HASH_CODE)\n && !method.equals(OBJECT_GET_CLASS)\n && !method.equals(OBJECT_TO_STRING)\n && !method.equals(OBJECT_CLONE)\n && !method.equals(OBJECT_WAIT_1)\n && !method.equals(OBJECT_WAIT_2)\n && !method.equals(OBJECT_WAIT_3)\n && !method.equals(OBJECT_NOTIFY)\n && !method.equals(OBJECT_NOTIFY_ALL)\n && !method.getName().startsWith(TransformationConstants.SYNTHETIC_MEMBER_PREFIX)\n && !method.getName().startsWith(TransformationConstants.ORIGINAL_METHOD_PREFIX)\n && !method.getName().startsWith(TransformationConstants.ASPECTWERKZ_PREFIX)) {\n return true;\n } else {\n return false;\n }\n }", "public boolean canBePolymorphic() {\n return !isStatic() && !isPrivate();\n }", "public static void staticMethod() {\n Log.e(\"LOG_TAG\", \"Company: STATIC Instance method\");\n }", "public boolean isMethodCallAllowed(Object obj, String sMethod) {\r\n\t\tif (_sess.isNew())\r\n\t\t\treturn false;\r\n\t\tBoolean bAllowed = (Boolean) _sess.getAttribute(_reflectionallowedattribute);\r\n\t\tif (bAllowed != null && !bAllowed.booleanValue())\r\n\t\t\treturn false;\r\n\t\treturn super.isMethodCallAllowed(obj, sMethod);\r\n\t}", "private boolean isAgentClass(Class<?> clazz) {\n if (clazz != null) {\n Method agentmain = getAgentMethod(clazz, \"agentmain\");\n Method premain = getAgentMethod(clazz, \"premain\");\n\n if (agentmain == null && premain == null) {\n return false;\n }\n\n Method agentMethod = agentmain != null ? agentmain : premain;\n\n int modifiers = agentMethod.getModifiers();\n return Modifier.isStatic(modifiers) && agentMethod.getReturnType().equals(Void.TYPE);\n }\n\n return false;\n }", "private void isMethod() {\n ArrayAdapter<String> isVariable = new ArrayAdapter<>(this, isNameExpr.isFieldAccessExpr.isFieldAccessExpr, isNameExpr);\n isNameExpr.isMethod(isNameExpr);\n isNameExpr.isMethod((isParameter, isParameter, isParameter, isParameter) -> {\n isNameExpr = isNameExpr.isMethod(isNameExpr.isMethod(isNameExpr), isNameExpr);\n isMethod(isNameExpr);\n isNameExpr = isNameExpr;\n });\n }", "static void staticShow() {\n System.out.println(\"In a static class static method\");\n }", "boolean isActionMethod(Method m) {\n Mapping mapping = m.getAnnotation(Mapping.class);\n if (mapping==null)\n return false;\n if (mapping.value().length()==0) {\n warnInvalidActionMethod(m, \"Url mapping cannot be empty.\");\n return false;\n }\n if (Modifier.isStatic(m.getModifiers())) {\n warnInvalidActionMethod(m, \"method is static.\");\n return false;\n }\n Class<?>[] argTypes = m.getParameterTypes();\n for (Class<?> argType : argTypes) {\n if (!converterFactory.canConvert(argType)) {\n warnInvalidActionMethod(m, \"unsupported parameter '\" + argType.getName() + \"'.\");\n return false;\n }\n }\n Class<?> retType = m.getReturnType();\n if (retType.equals(void.class)\n || retType.equals(String.class)\n || Renderer.class.isAssignableFrom(retType)\n )\n return true;\n warnInvalidActionMethod(m, \"unsupported return type '\" + retType.getName() + \"'.\");\n return false;\n }", "public boolean isMethodNameKnown() {\n\t\tif (methodName == null || methodName.equals(\"<unknown>\"))\n\t\t\treturn false;\n\t\treturn true;\n\t}", "public void nonStaticMethodTwo(){\n nonStaticMethodOne();\n\n //7) A non-static method calling a static method in the same class\n staticMethodOne();\n }", "protected boolean isMethodOverridden() {\n DetailAST current = ast;\n Boolean result = null;\n for (; current != null && result == null; current = current.getParent()) {\n switch (current.getType()) {\n case TokenTypes.METHOD_DEF:\n result = findAnnotations(current).contains(NullnessAnnotation.OVERRIDE);\n break;\n case TokenTypes.LAMBDA:\n result = true;\n break;\n default:\n }\n }\n if (result == null) {\n result = false;\n }\n return result;\n }", "protected boolean methodForbidden() {\n return methodToTest.getName().equals(\"getClassNull\")\n || methodToTest.getName().startsWith(\"isA\")\n || methodToTest.getName().equals(\"create\")\n || methodToTest.getName().equals(\"getTipString\")\n || methodToTest.getName().equals(\"toString\");\n }", "public String getMethodName() {\n return \"isTrustedObject\";\n }", "public boolean supportsCallee(SootMethod method);", "abstract protected boolean checkMethod();", "public boolean isFunction() {\n return this.type != null;\n }", "private static void staticFun()\n {\n }", "interface StaticMethodInInterface {\n\t// abstract method\n\tpublic void square(int a);\n\n\t// static method\n\tstatic void show() {\n\t\tSystem.out.println(\"Static Method Executed\");\n\t}\n}", "public boolean isMethodExpression() {\n return this.isMethodExpression;\n }", "boolean hasInvoke();", "public boolean under(Class clazz, String methodName) {\n\t\treturn stackTrace.indexOf(clazz.getName() + \".\" + methodName + \"(\") != -1;\n\t}", "public boolean isUsingDefaultConstructor() {\n return this.getMethodName() == null;\n }", "String getMethod();", "String getMethod();", "public boolean isMethodSupported(String methodName) throws IOException;", "public boolean hasReqMethod() {\n return fieldSetFlags()[6];\n }", "public static boolean isExecuteMethod(Method actionMethod) {\n return LdiModifierUtil.isPublic(actionMethod) && getExecuteAnnotation(actionMethod) != null;\n }", "public boolean isAbstract() {\n return abstractMethod;\n }", "public static boolean isMethodDefinition(Document doc, String methodName, int offset) {\n TokenHierarchy tokenHierarchy = TokenHierarchy.get(doc);\n @SuppressWarnings(\"unchecked\")\n TokenSequence<PlsqlTokenId> ts = tokenHierarchy.tokenSequence(PlsqlTokenId.language());\n\n if (ts != null) {\n ts.move(offset);\n Token<PlsqlTokenId> token = ts.token();\n if (ts.moveNext()) {\n token = ts.token();\n PlsqlTokenId tokenID = token.id();\n\n if (tokenID == PlsqlTokenId.IDENTIFIER) {\n if (token.text().toString().equals(methodName)) {\n while (ts.movePrevious()) {\n token = ts.token();\n if (token.text().toString().equalsIgnoreCase(\"FUNCTION\")\n || token.text().toString().equalsIgnoreCase(\"PROCEDURE\")) {\n return true;\n } else if (token.id() != PlsqlTokenId.WHITESPACE) {\n break;\n }\n }\n }\n }\n }\n }\n return false;\n }", "boolean isCallableAccess();", "public static boolean isMainClass(ClassNode cn) {\n return cn.methods.stream()\n .filter(m -> m.name.equalsIgnoreCase(\"main\")).findFirst().map(m -> {\n //logger.info(\"found main candidate, access: \" + (m.access == ACC_PUBLIC + ACC_STATIC) + \" desc: \" + m.desc);\n return m.access == ACC_PUBLIC + ACC_STATIC && m.desc.equals(\"([Ljava/lang/String;)V\");\n }).orElse(false);\n }", "MethodName getMethod();", "public boolean isVirtual() {\n\t\treturn ((access & Opcodes.ACC_STATIC) + (access & Opcodes.ACC_PRIVATE)\n\t\t\t\t+ (access & Opcodes.ACC_CONSTRUCTOR)) == 0;\n\t}", "public boolean\n hasCall()\n {\n //##62 return hasCallInSubp;\n if (fCallCount > 0)\n return true;\n else\n return false;\n }", "public boolean isUsingThis() {\n\t\t// \"This\" is used if the Method is not static, and is not a Constructor and not abstract.\n\t // Patch for \"not abstract\" by Panxiaobo #316341 - patch 16.\n\t\treturn (!isStatic()) && ((access & Opcodes.ACC_CONSTRUCTOR) == 0) && supportsCodeItem();\n\t}", "public boolean hasHttpMethod() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasHttpMethod() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean method_109();", "@Test\n public void testStaticMethodStaticClassKept() throws Exception {\n Class<?> mainClass = MainCallStaticMethod.class;\n String proguardConfiguration = keepMainProguardConfiguration(\n mainClass,\n ImmutableList.of(\n \"-keep class \" + getJavacGeneratedClassName(StaticMethod.class) + \" {\",\n \"}\"));\n runTest(\n mainClass,\n ImmutableList.of(mainClass, StaticMethod.class),\n proguardConfiguration,\n this::checkAllClassesPresentWithDefaultConstructor);\n }", "Method getMethod();", "Method getMethod();", "public static boolean isJsMember(ExecutableElement method) {\n return getJsInfo(method).getJsMemberType() != JsMemberType.NONE;\n }" ]
[ "0.8640435", "0.83422136", "0.78385407", "0.7686743", "0.7651392", "0.7651392", "0.7278767", "0.72399306", "0.7230954", "0.7073426", "0.6986399", "0.695157", "0.6913579", "0.6798554", "0.6698397", "0.6698397", "0.6698397", "0.65836257", "0.6481684", "0.63822633", "0.6372264", "0.63476205", "0.63476205", "0.63476205", "0.6288259", "0.6260145", "0.6183794", "0.6159088", "0.6086536", "0.6048984", "0.59661496", "0.58985627", "0.5888123", "0.58740366", "0.5872449", "0.5851173", "0.58165836", "0.5787789", "0.5785038", "0.5785038", "0.57801837", "0.57801837", "0.57684886", "0.5766091", "0.5726668", "0.5698745", "0.5669029", "0.5650512", "0.5645783", "0.5624574", "0.5623411", "0.5560621", "0.5546147", "0.55434644", "0.55221564", "0.5507458", "0.5507443", "0.55000645", "0.54651415", "0.5461502", "0.54561013", "0.54371417", "0.54244345", "0.53966737", "0.539167", "0.539148", "0.5390626", "0.537312", "0.5358856", "0.5322607", "0.530712", "0.52857715", "0.5282102", "0.5276117", "0.5275752", "0.5268996", "0.5253658", "0.52471215", "0.52364093", "0.5204252", "0.51991445", "0.51991445", "0.5191249", "0.5187368", "0.5186289", "0.51842517", "0.51714325", "0.5166332", "0.5140105", "0.5130844", "0.5121069", "0.51198316", "0.51122624", "0.5110661", "0.51047397", "0.5097063", "0.5072734", "0.5065057", "0.5065057", "0.50492054" ]
0.73668885
6
Return whether or not this instance's method is applicable to the given arguments.
final public boolean canApplyTo (Object[] args) { if (args.length != myCoercers.length) { // easy out return false; } for (int i = 0; i < myCoercers.length; i++) { if (! myCoercers[i].canCoerce (args[i])) { return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasMethod();", "boolean hasMethod();", "boolean hasMethod();", "boolean isMoreSpecific (MethodType type) throws OverloadingAmbiguous {\r\n boolean status = false;\r\n\r\n try {\r\n for (int i = 0, size = arguments.size (); i < size; i++) {\r\n\tIdentifier this_arg = (Identifier) arguments.elementAt (i);\r\n\tIdentifier target_arg = (Identifier) type.arguments.elementAt (i);\r\n\r\n\tint type_diff = this_arg.type.compare (target_arg.type);\r\n\tif (type_diff == 0)\r\n\t continue;\r\n\telse if (type_diff > 0) {\r\n\t if (status == true) throw new OverloadingAmbiguous ();\r\n\t} else {\r\n\t if (i != 0) throw new OverloadingAmbiguous ();\r\n\t status = true;\r\n\t}\r\n }\r\n } catch (OverloadingAmbiguous ex) {\r\n throw ex;\r\n } catch (TypeMismatch ex) {\r\n throw new OverloadingAmbiguous ();\r\n }\r\n\r\n return status;\r\n }", "boolean isSetMethod();", "public boolean matches(Method method, Class<?> targetClass)\n/* */ {\n/* 133 */ return ((targetClass != null) && (matchesPattern(ClassUtils.getQualifiedMethodName(method, targetClass)))) || \n/* 134 */ (matchesPattern(ClassUtils.getQualifiedMethodName(method)));\n/* */ }", "abstract protected boolean checkMethod();", "protected boolean shouldMethodExecute(MethodInfo method, Vector localVariables,\n OperandStack callerStack) {\n return true;\n }", "public static Object[] isMethodAvailable(@Nonnull final MultiblockComputerPeripheral peripheral, @Nonnull final Object[] arguments) throws Exception {\n return new Object[] { null != peripheral.getMethod(LuaHelper.getStringFromArgs(arguments, 0)) };\n }", "boolean isActionMethod(Method m) {\n Mapping mapping = m.getAnnotation(Mapping.class);\n if (mapping==null)\n return false;\n if (mapping.value().length()==0) {\n warnInvalidActionMethod(m, \"Url mapping cannot be empty.\");\n return false;\n }\n if (Modifier.isStatic(m.getModifiers())) {\n warnInvalidActionMethod(m, \"method is static.\");\n return false;\n }\n Class<?>[] argTypes = m.getParameterTypes();\n for (Class<?> argType : argTypes) {\n if (!converterFactory.canConvert(argType)) {\n warnInvalidActionMethod(m, \"unsupported parameter '\" + argType.getName() + \"'.\");\n return false;\n }\n }\n Class<?> retType = m.getReturnType();\n if (retType.equals(void.class)\n || retType.equals(String.class)\n || Renderer.class.isAssignableFrom(retType)\n )\n return true;\n warnInvalidActionMethod(m, \"unsupported return type '\" + retType.getName() + \"'.\");\n return false;\n }", "default boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}", "boolean hasMethodName();", "boolean hasMethodName();", "boolean hasMethodName();", "private static boolean isUserDefinedMethod(final Method method) {\n if (!method.equals(OBJECT_EQUALS)\n && !method.equals(OBJECT_HASH_CODE)\n && !method.equals(OBJECT_GET_CLASS)\n && !method.equals(OBJECT_TO_STRING)\n && !method.equals(OBJECT_CLONE)\n && !method.equals(OBJECT_WAIT_1)\n && !method.equals(OBJECT_WAIT_2)\n && !method.equals(OBJECT_WAIT_3)\n && !method.equals(OBJECT_NOTIFY)\n && !method.equals(OBJECT_NOTIFY_ALL)\n && !method.getName().startsWith(TransformationConstants.SYNTHETIC_MEMBER_PREFIX)\n && !method.getName().startsWith(TransformationConstants.ORIGINAL_METHOD_PREFIX)\n && !method.getName().startsWith(TransformationConstants.ASPECTWERKZ_PREFIX)) {\n return true;\n } else {\n return false;\n }\n }", "public boolean supportsCallee(SootMethod method);", "protected boolean isMethodOverridden() {\n DetailAST current = ast;\n Boolean result = null;\n for (; current != null && result == null; current = current.getParent()) {\n switch (current.getType()) {\n case TokenTypes.METHOD_DEF:\n result = findAnnotations(current).contains(NullnessAnnotation.OVERRIDE);\n break;\n case TokenTypes.LAMBDA:\n result = true;\n break;\n default:\n }\n }\n if (result == null) {\n result = false;\n }\n return result;\n }", "protected abstract Boolean applicable(Map<String, Object> parameters);", "private boolean isTarget() {\n\t\t// Get a stack trace by constructing an exception here\n\t\tException exc = new Exception();\n\n\t\tfor (PyObject obj : targets.getList()) {\n\t\t\t// Only process proper tuple entries\n\t\t\tif (obj instanceof PyTuple && ((PyTuple) obj).__len__() >= 2) {\n\n\t\t\t\t// Compile the target specification\n\t\t\t\tPyTuple target = (PyTuple) obj;\n\t\t\t\tPattern clazz = getPattern(target.__finditem__(0));\n\t\t\t\tPattern method = getPattern(target.__finditem__(1));\n\n\t\t\t\t// Now scan the stack using this pair of patterns\n\t\t\t\tfor (StackTraceElement ste : exc.getStackTrace()) {\n\t\t\t\t\tif (clazz == null || clazz.matcher(ste.getClassName()).matches()) {\n\t\t\t\t\t\t// Either we don't care about the class it matches, and ...\n\t\t\t\t\t\tif ((method == null || method.matcher(ste.getMethodName()).matches())) {\n\t\t\t\t\t\t\t// Either we don't care about the method name or it matches\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Nothing matched\n\t\treturn false;\n\t}", "private boolean methodsMatch(Method method,\n CallStatement.CallStatementEntry entry) throws EngineException {\n if (!method.getName().equals(entry.getName())) {\n return false;\n }\n if (method.getParameterTypes().length != parameters.size()) {\n return false;\n }\n Class[] parameterTypes = method.getParameterTypes();\n for (int index = 0; index < parameters.size(); index++) {\n Class parameterType = parameterTypes[index];\n Object parameterValue = parameters.get(index);\n if (!parameterType.isAssignableFrom(parameterValue.getClass())) {\n return false;\n }\n }\n \n for (int index = 0; index < parameters.size(); index++) {\n Class parameterType = parameterTypes[index];\n Object parameterValue = parameters.get(index);\n parameters.set(index, parameterType.cast(parameterValue));\n }\n return true;\n }", "public boolean isSetMethod() {\n return this.method != null;\n }", "private boolean matchesMethod (final Object method, \n\t\tfinal int expectedModifiers, final int optionalModifiers, \n\t\tfinal String expectedReturnType)\n\t{\n\t\tboolean matches = false; \n\n\t\tif (method != null)\n\t\t{\n\t\t\tModel model = getModel();\n\t\t\tint modifiers = model.getModifiers(method);\n\n\t\t\tmatches = (((modifiers == expectedModifiers) || \n\t\t\t\t(modifiers == (expectedModifiers | optionalModifiers))) &&\n\t\t\t\texpectedReturnType.equals(model.getType(method)));\n\t\t}\n\n\t\treturn matches;\n\t}", "public static boolean checkHasMethod(Class<?> clazz, String name, Object[] args) {\n\t\tif (!containers.containsKey(clazz)) containers.put(clazz, new DynamicMethodContainer(clazz));\n\t\treturn containers.get(clazz).containsMethod(args, name);\n\t}", "@Override\r\n\tpublic boolean hasCapability(String methodName, Object target,\r\n\t\t\tObject[] arguments) throws RepositoryException {\n\t\treturn false;\r\n\t}", "public static boolean matchTargetAPI(IMethod m){\r\n for(ExpensiveAPI api : Resource.targetAPIs){\r\n if(api.signature.equals(m.getName().toString()) && m.getSignature().contains(api.clsName)){\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "protected boolean methodForbidden() {\n return methodToTest.getName().equals(\"getClassNull\")\n || methodToTest.getName().startsWith(\"isA\")\n || methodToTest.getName().equals(\"create\")\n || methodToTest.getName().equals(\"getTipString\")\n || methodToTest.getName().equals(\"toString\");\n }", "boolean isMethodMatch(@NonNull MethodElement methodElement, @NonNull MatchContext matchContext);", "Collection<? extends MethodCall> getIsInputTo();", "public boolean takesArgument() {\n if (argumentPresence != null) {\n return true;\n }\n return false;\n }", "public boolean isApplicable () {\n\t\treturn isFilterApplicable();\n\t}", "public abstract boolean supports(ClassificationMethod method);", "private boolean methodEqueals(Method m1, Method m2) {\n\t\tif (m1.getName() == m2.getName()) {\n\t\t\tif (!m1.getReturnType().equals(m2.getReturnType()))\n\t\t\t\treturn false;\n\t\t\tClass<?>[] params1 = m1.getParameterTypes();\n\t\t\tClass<?>[] params2 = m2.getParameterTypes();\n\t\t\tif (params1.length == params2.length) {\n\t\t\t\tfor (int i = 0; i < params1.length; i++) {\n\t\t\t\t\tif (params1[i] != params2[i])\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean isSupportedMethod(String sHTTPMethod) {\n return Arrays.asList(SUPPORTED_METHODS).contains(sHTTPMethod.toUpperCase());\n }", "abstract public boolean argsNotFull();", "public static boolean isExecuteMethod(Method actionMethod) {\n return LdiModifierUtil.isPublic(actionMethod) && getExecuteAnnotation(actionMethod) != null;\n }", "public boolean canApply(ItemStack stack) {\n\t\treturn false;\n\t}", "abstract boolean hasFunctionSelfArgument(Object definedOn);", "@Override\n\tpublic boolean isSatisfied(Object arg0, Object arg1, OValContext arg2,\n\t\t\tValidator arg3) throws OValException {\n\t\treturn false;\n\t}", "boolean hasAppliedModifier();", "@Override\n public boolean canBePostProcessed(ImmutableList<? extends ImmutableTerm> arguments) {\n return false;\n }", "private static boolean validateMethod(Method method) {\n for (Class<?> param : method.getParameterTypes()) {\n if (null == OvsDbConverter.get(param))\n return false;\n }\n return true;\n }", "public boolean isInMethodMode() {\n return methodMode;\n }", "public static boolean hasHook(Object obj, String methodN) {\n try {\n Method myMethods[] = findMethods(obj.getClass());\n for (int i = 0; i < myMethods.length; i++) {\n if (methodN.equals(myMethods[i].getName())) {\n // check if it's overriden\n Class<?> declaring = myMethods[i].getDeclaringClass();\n Class<?> parentOfDeclaring = declaring.getSuperclass();\n // this works only if the base class doesn't extend\n // another class.\n\n // if the method is declared in a top level class\n // like BaseInterceptor parent is Object, otherwise\n // parent is BaseInterceptor or an intermediate class\n if (!\"java.lang.Object\".\n equals(parentOfDeclaring.getName())) {\n return true;\n }\n }\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return false;\n }", "private boolean isMethod() {\n return !line.contains(\"=\") && !line.contains(\".\") && !semicolon && line.contains(\"(\");\n }", "boolean hasInvoke();", "private boolean checkMethodSignature(final Method method, final List<WaveItem<?>> wParams) {\r\n boolean isCompliant = false;\r\n\r\n final Type[] mParams = method.getGenericParameterTypes();\r\n\r\n if (wParams.isEmpty() && Wave.class.isAssignableFrom(ClassUtility.getClassFromType(mParams[0]))) {\r\n isCompliant = true;\r\n } else if (mParams.length - 1 == wParams.size()) {\r\n\r\n // Flag used to skip a method not compliant\r\n boolean skipMethod = false;\r\n // Check each parameter\r\n for (int i = 0; !skipMethod && i < mParams.length - 1 && !isCompliant; i++) {\r\n if (ClassUtility.getClassFromType(mParams[i]).isAssignableFrom(ClassUtility.getClassFromType(wParams.get(i).getItemType()))) {\r\n // This method has not the right parameters\r\n skipMethod = true;\r\n }\r\n if (i == mParams.length - 2\r\n && Wave.class.isAssignableFrom(ClassUtility.getClassFromType(mParams[i + 1]))) {\r\n // This method is compliant with wave type\r\n isCompliant = true;\r\n }\r\n }\r\n }\r\n return isCompliant;\r\n }", "boolean hasParameters();", "private boolean isAcceptable(final Method method) {\n return Modifier.isStatic(method.getModifiers())\n && Modifier.isPublic(method.getModifiers())\n && (method.getReturnType() == String.class || method.getReturnType().isAssignableFrom(List.class) || method\n .getReturnType().isArray() && method.getReturnType().getComponentType() == String.class);\n }", "public boolean isMethodCallAllowed(Object obj, String sMethod) {\r\n\t\tif (_sess.isNew())\r\n\t\t\treturn false;\r\n\t\tBoolean bAllowed = (Boolean) _sess.getAttribute(_reflectionallowedattribute);\r\n\t\tif (bAllowed != null && !bAllowed.booleanValue())\r\n\t\t\treturn false;\r\n\t\treturn super.isMethodCallAllowed(obj, sMethod);\r\n\t}", "public static boolean processArguments(String[] args) {\n\t\t// Based on the argument call appropriate function for processing it.\n\t\tif (args[0].equals(\"-c\")) {\n\t\t\treturn processClient(args);\n\t\t} else if (args[0].equals(\"-s\")) {\n\t\t\treturn processServer(args);\n\t\t} else if (args[0].equals(\"-p\")) {\n\t\t\treturn processProxyServer(args);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public abstract boolean isSatisfied();", "boolean hasOptions();", "boolean hasOptions();", "boolean hasOptions();", "boolean hasOptions();", "boolean hasOptions();", "boolean hasOptions();", "private boolean isAdditive(Node n) {\n List<ASTAdditiveExpression> lstAdditive = n.findDescendantsOfType(ASTAdditiveExpression.class);\n if (lstAdditive.isEmpty()) {\n return false;\n }\n // if there are more than 1 set of arguments above us we're not in the\n // append\n // but a sub-method call\n for (int ix = 0; ix < lstAdditive.size(); ix++) {\n ASTAdditiveExpression expr = lstAdditive.get(ix);\n if (expr.getParentsOfType(ASTArgumentList.class).size() != 1) {\n return false;\n }\n }\n return true;\n }", "public abstract boolean isFilterApplicable ();", "public boolean isMethodSupported(String methodName) throws IOException;", "boolean hasIsPerformOf();", "@Override\n \tprotected boolean checkDelegateMethod(Method input) {\n \t\tif (!domain.checkElementType(target, input.getGenericReturnType())) {\n \t\t\treturn false;\n \t\t}\n \n \t\tClass<?>[] delegateParams = input.getParameterTypes();\n \n \t\t// must have first argument of type of the setter container\n \t\tif (!(delegateParams.length == 1 && domain.checkClassifierType(\n \t\t\t\ttarget.getEContainingClass(), delegateParams[0]))) {\n \t\t\treturn false;\n \t\t}\n \n \t\treturn true;\n \t}", "boolean supportsAccepts();", "public boolean isSetArguments() {\n return this.arguments != null;\n }", "public boolean hasMethod( final String name )\n {\n return getMethod( name ) != null;\n }", "boolean hasHttpMethod();", "boolean accepts(String optionName);", "public boolean overrideEquivalent(MethodType other) {\n return this.sameSubsignature(other) || other.sameSubsignature(this);\n }", "public boolean isMethodExists(String className, String compairMethod) {\n boolean isExists = false;\n try {\n Class<?> telephonyClass = Class.forName(className);\n Class<?>[] parameter = new Class[1];\n parameter[0] = int.class;\n StringBuffer sbf = new StringBuffer();\n Method[] methodList = telephonyClass.getDeclaredMethods();\n for (int index = methodList.length - 1; index >= 0; index--) {\n sbf.append(\"\\n\\n\" + methodList[index].getName());\n if (methodList[index].getReturnType().equals(String.class)) {\n String methodName = methodList[index].getName();\n if (methodName.contains(compairMethod)) {\n Class<?>[] param = methodList[index]\n .getParameterTypes();\n if (param.length > 0) {\n if (param[0].equals(int.class)) {\n try {\n simVariant = methodName.substring(compairMethod.length(), methodName.length());\n telephonyClassName = className;\n isExists = true;\n break;\n } catch (Exception e) {\n LOGE(TAG, \"[isMethodExists] Unable to get check method\", e);\n }\n } else {\n telephonyClassName = className;\n isExists = true;\n }\n }\n }\n }\n }\n } catch (Exception e) {\n LOGE(TAG, \"[isMethodExists] Unable to get check method\", e);\n }\n return isExists;\n }", "boolean isOverride();", "protected boolean applyImpl() throws Exception\n {\n MBeanServer mbeanServer = (MBeanServer) getCorrectiveActionContext()\n .getContextObject(CorrectiveActionContextConstants.Agent_MBeanServer);\n ObjectName objectName = (ObjectName) getCorrectiveActionContext()\n .getContextObject(CorrectiveActionContextConstants.MBean_ObjectName);\n\n Object result = mbeanServer.invoke(objectName, m_methodName, m_parameters, m_signature);\n\n return matchesDesiredResult(result);\n }", "public static int isMethod() {\n return isNameExpr;\n }", "public abstract boolean isTarget();", "public boolean isMethodExpression() {\n return this.isMethodExpression;\n }", "protected boolean isApplicable(SPRequest req) {\n\n Log.debug(\"isApplicable ? \" + req.getPath() + \" vs \" + getRoute());\n\n if (!req.getMethod().equals(getHttpMethod()))\n return false;\n\n String[] uri = req.getSplitUri();\n String[] tok = splitPath;\n if (uri.length != tok.length && splatIndex == -1)\n return false;\n\n if (uri.length <= splatIndex)\n return false;\n\n for (int i = 0; i < tok.length; i++) {\n if (tok[i].charAt(0) != ':' && tok[i].charAt(0) != '*' && !tok[i].equals(uri[i]))\n return false;\n }\n\n return true;\n }", "public boolean hasArgs() {\n return fieldSetFlags()[3];\n }", "boolean isVarargs();", "boolean isVarargs();", "boolean isVarargs();", "private boolean isOveridingCallScriptCorrectiveAction(final CorrectiveAction correctiveAction)\n {\n return (correctiveAction instanceof CallScriptCorrectiveAction)\n && ((CallScriptCorrectiveAction) correctiveAction)\n .getOveridesInvokeMethodCorrectiveAction();\n }", "public int isMethod() {\n return isNameExpr;\n }", "boolean applicable(Selection selection);", "public boolean hasMethod() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean canAddParameters() {\n final PluginWrapper plugin = Hudson.getInstance().getPluginManager().getPlugin(\"parameterized-trigger\"); //$NON-NLS-1$\n return plugin != null && plugin.isActive();\n }", "boolean overrides(MethodDeclaration sub, MethodDeclaration sup);", "public boolean hasMethod() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasValidArgs() {\r\n // if it has has zero argument, it is valid\r\n boolean zeroArgs = this.getCmd().getArguments().size() == 0;\r\n // return the boolean value\r\n return zeroArgs;\r\n }", "private boolean executableMatches(\n Executable executable, ImmutableSet<ExecutableElement> methodsInAutoBuilderType) {\n NavigableSet<String> parameterNames = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);\n parameterNames.addAll(executable.parameterNames());\n for (ExecutableElement method : methodsInAutoBuilderType) {\n String name = method.getSimpleName().toString();\n if (name.endsWith(\"Builder\")) {\n String property = name.substring(0, name.length() - \"Builder\".length());\n parameterNames.remove(property);\n }\n if (method.getParameters().size() == 1) {\n parameterNames.remove(name);\n if (name.startsWith(\"set\")) {\n parameterNames.remove(name.substring(3));\n }\n }\n if (parameterNames.isEmpty()) {\n return true;\n }\n }\n return false;\n }", "public abstract boolean isAppropriateRequest(Request request);", "public boolean processMethodCondition(String conditionTemplate, Method method, Object target, Object args[], Map<String, Object> extraContextParams)\r\n\t{\r\n\t\tMap<String, Object> context = new HashMap<>();\r\n\t\t\r\n\t\tcontext.put(\"target\", target);\r\n\t\tcontext.put(\"method\", method);\r\n\t\t\r\n\t\tcontext.put(\"parameters\", args);\r\n\t\t\r\n\t\tif(args != null)\r\n\t\t{\r\n\t\t\tfor(int i = 0; i < args.length; i++)\r\n\t\t\t{\r\n\t\t\t\tcontext.put(\"a\" + i, args[i]);\r\n\t\t\t\tcontext.put(\"p\" + i, args[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(extraContextParams != null)\r\n\t\t{\r\n\t\t\tcontext.putAll(extraContextParams);\r\n\t\t}\r\n\t\t\r\n\t\treturn processConditionTemplate(method.getName(), conditionTemplate, context);\r\n\t}", "public boolean isValidMethod(String methodName) {\n\t\treturn this.validMethods.containsKey(methodName);\n\t}", "@Nullable\n private Boolean isOverriding(MethodJavaSymbol overridee, JavaType.ClassJavaType classType) {\n if (getParametersTypes().size() != overridee.getParametersTypes().size()) {\n return false;\n }\n for (int i = 0; i < getParametersTypes().size(); i++) {\n JavaType paramOverrider = getParametersTypes().get(i);\n if (paramOverrider.isTagged(JavaType.UNKNOWN)) {\n // FIXME : complete symbol table should not have unknown types and generics should be handled properly for this.\n return null;\n }\n // Generics type should have same erasure see JLS8 8.4.2\n\n JavaType overrideeType = overridee.getParametersTypes().get(i);\n if (classType instanceof JavaType.ParametrizedTypeJavaType) {\n overrideeType = ((JavaType.ParametrizedTypeJavaType) classType).typeSubstitution.substitutedType(overrideeType);\n if (overrideeType == null) {\n overrideeType = overridee.getParametersTypes().get(i);\n }\n }\n if (!paramOverrider.erasure().equals(overrideeType.erasure())) {\n return false;\n }\n }\n // we assume code is compiling so no need to check return type at this point.\n return true;\n }", "public boolean accepts(int numberOfArguments) {\n\t\treturn this.minimumNumberOfParameters <= numberOfArguments &&\n\t\t\tnumberOfArguments <= this.maximumNumberOfParameters;\n\t}", "public boolean methodFilter(final Set definitions,\n final ExpressionContext ctx,\n final MethodInfo calleeMethodInfo) {\n if (calleeMethodInfo.getName().equals(INIT_METHOD_NAME) ||\n calleeMethodInfo.getName().equals(CLINIT_METHOD_NAME) ||\n calleeMethodInfo.getName().startsWith(ORIGINAL_METHOD_PREFIX)) {\n return true;\n }\n for (Iterator it = definitions.iterator(); it.hasNext();) {\n if (((SystemDefinition) it.next()).hasPointcut(ctx)) {\n return false;\n } else {\n continue;\n }\n }\n return true;\n }", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "public boolean isInvulnerable ( ) {\n\t\ttry {\n\t\t\treturn invokeSafe ( \"isInvulnerable\" );\n\t\t} catch ( NoSuchMethodError ex ) { // legacy\n\t\t\tPlayer handle = handleOptional ( ).orElse ( null );\n\t\t\t\n\t\t\treturn handle != null && EntityReflection.isInvulnerable ( handle );\n\t\t}\n\t}", "private boolean checkingAllArguments() {\n\t\t\n\t\t// test if the four player types have been selected\n\t\tfor(int i=0;i<allButtons.size();i++) {\n\t\t\tif(allButtons.get(i)==null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// test if the seed is in the correct format\n\t\tif(!(seed.textProperty().get().isEmpty())){\n\t\t\ttry {\n\t\t\t\tgameSeed = Long.parseLong(seed.getText());\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tmenuMessage.setText(\"Given seed is not a valid number\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t// test if for each of the players the given arguments are correct\n\t\tfor(int i = 0; i < allButtons.size(); ++i) {\n\t\t\tchar playerType = allButtons.get(i).getText().charAt(0);\n\t\t\tString argument = texts.get(2 * i + 1).getText();\n\t\t\t\n\t\t\tif(!argument.isEmpty()) {\n\t\t\t\tswitch(playerType) {\n\t\t\t\t\n\t\t\t\tcase 'S' : \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlong l = Long.parseLong(texts.get(2 * i + 1).getText());\n\t\t\t\t\t\tif(l < 9) {\n\t\t\t\t\t\t\tmenuMessage.setText(\"The iteration value must be at least 9\");\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tmenuMessage.setText(\"One of the iteration number is not a valid number\");\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'R' :\n\t\t\t\t\t\n\t\t\t\t\tString[] parts = StringSerializer.split(\"\\\\.\", argument); \n\t\t\t\t\t\n\t\t\t\t\tif (parts.length != 4) { \n\t\t\t\t\t\tmenuMessage.setText(\"One of the IP Address is not a valid address\");\n\t\t\t\t\t\treturn false; \n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tfor (String str : parts) { \n\t\t\t\t\t\tint j = Integer.parseInt(str); \n\t\t\t\t\t\tif ((j < 0) || (j > 255)) { \n\t\t\t\t\t\t\tmenuMessage.setText(\"One of the IP Address is not a valid address\");\n\t\t\t\t\t\t\treturn false; \n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\treturn true;\n\t}", "default boolean hasVariadicParameter() {\n if (getNumberOfParams() == 0) {\n return false;\n } else {\n return getParam(getNumberOfParams() - 1).isVariadic();\n }\n }", "boolean hasForwardingParams();", "abstract void checkWhetherFunction(int nParamsUsed, SyntaxUnit use);" ]
[ "0.6397908", "0.6397908", "0.6397908", "0.620492", "0.6167359", "0.6090489", "0.6082089", "0.60649914", "0.6014102", "0.60088664", "0.59026295", "0.5897598", "0.5897598", "0.5897598", "0.58648044", "0.5861158", "0.58589137", "0.58421856", "0.58327353", "0.58290654", "0.5817752", "0.5784102", "0.57304394", "0.5668735", "0.5664405", "0.56458837", "0.56104773", "0.5592636", "0.5580948", "0.55655926", "0.55565584", "0.5556167", "0.55492735", "0.55428165", "0.55424553", "0.55366874", "0.55363274", "0.55338347", "0.5497387", "0.5497284", "0.54789597", "0.54513115", "0.54444164", "0.54365104", "0.5430541", "0.5424906", "0.5407775", "0.5372406", "0.5370816", "0.5370812", "0.5370032", "0.53694004", "0.53694004", "0.53694004", "0.53694004", "0.53694004", "0.53694004", "0.53684705", "0.53637946", "0.5327295", "0.53115165", "0.5295146", "0.5294469", "0.5293256", "0.5280278", "0.52642226", "0.52632743", "0.5245239", "0.5243522", "0.5242251", "0.5233885", "0.5230314", "0.52276987", "0.5207773", "0.51977104", "0.51941305", "0.51906663", "0.51906663", "0.51906663", "0.51873463", "0.51854086", "0.5180003", "0.5176817", "0.51731426", "0.5171857", "0.5165418", "0.515301", "0.5150772", "0.51425", "0.51416737", "0.5123152", "0.5121358", "0.51190406", "0.5114727", "0.5114192", "0.51058054", "0.5093192", "0.5089228", "0.50871867", "0.5079082" ]
0.59820706
10
Invoke the method on the given object with the given arguments. The arguments may be modified in order to coerce them appropriately.
public Object invoke (Object obj, Object[] args) { for (int i = 0; i < myCoercers.length; i++) { args[i] = myCoercers[i].coerce (args[i]); } return invoke0 (obj, args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object invokeMethod(Object object, String methodName, Object arguments) {\n /*\n System\n .out\n .println(\n \"Invoker - Invoking method on object: \"\n + object\n + \" method: \"\n + methodName\n + \" arguments: \"\n + InvokerHelper.toString(arguments));\n \n */\n \n if (object == null) {\n throw new NullPointerException(\"Cannot invoke method: \" + methodName + \" on null object\");\n }\n \n if (object instanceof GroovyObject) {\n GroovyObject groovy = (GroovyObject) object;\n return groovy.invokeMethod(methodName, arguments);\n }\n else {\n if (object instanceof Class) {\n Class theClass = (Class) object;\n \n MetaClass metaClass = metaRegistry.getMetaClass(theClass);\n return metaClass.invokeStaticMethod(object, methodName, asArray(arguments));\n }\n else {\n Class theClass = object.getClass();\n \n MetaClass metaClass = metaRegistry.getMetaClass(theClass);\n return metaClass.invokeMethod(object, methodName, asArray(arguments));\n }\n }\n }", "public Object call(Object[] args) {\r\n return invoke(args);\r\n }", "@SuppressWarnings(\"unchecked\") \n public Object invoke(Caster<?> caster, Object obj, Object args[]) throws Throwable {\n try {\n if (argConverters != null) {\n for (int i = 0, len = args.length; i < len; i++) {\n @SuppressWarnings(\"rawtypes\") // so we can pass Object as input to conversion\n Converter converter = argConverters[i];\n if (converter != null) {\n args[i] = converter.convert(args[i], caster);\n }\n }\n }\n if (varArgsConverter != null) {\n args = varArgsConverter.apply(args);\n }\n Object ret = method.invoke(obj, args);\n if (returnConverter != null) {\n @SuppressWarnings(\"rawtypes\") // so we can pass Object as input to conversion\n Converter converter = returnConverter;\n ret = converter.convert(ret, caster);\n }\n return ret;\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }", "public Object invoke( Object[] args )\n {\n return invokeFromBytecode(args);\n }", "public Object invoke(Object obj, Object[] params) throws Exception {\r\n return this.method.invoke(obj, params);\r\n }", "void callMethod(Object obj, String name, Object... args)\n throws ScriptRunnerException;", "abstract protected Object invoke0 (Object obj, Object[] args);", "public Object invoke(String name, Object... args) throws Exception;", "public abstract Object invoke(T target , Method method , Object[] args) throws Throwable;", "public static Object invokeMethod(Method method, Object target, Object... args) {\n try {\n return method.invoke(target, args);\n } catch (Exception e) {\n handleReflectionException(e);\n }\n throw new IllegalStateException(\"Should never get here\");\n }", "@Override\n public Object invoke(Object proxy, Method method, Object[] args)\n throws Throwable {\n if (method.getDeclaringClass() == Object.class) {\n return method.invoke(this, args);\n }\n ServiceMethod<Object, Object> serviceMethod =\n (ServiceMethod<Object, Object>) loadServiceMethod(method);\n ServiceCall<Object> serviceCall = new ServiceCall<>(serviceMethod, args);\n return serviceMethod.adapt(serviceCall, args);\n }", "public static Object invokeMethod(Method method, Object[] args) {\n try {\n return method.invoke(null, args);\n }\n catch (IllegalAccessException | InvocationTargetException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static Object invoke(Method paramMethod, Object paramObject, Object[] paramArrayOfObject) throws InvocationTargetException, IllegalAccessException {\n/* */ try {\n/* 276 */ return bounce.invoke(null, new Object[] { paramMethod, paramObject, paramArrayOfObject });\n/* 277 */ } catch (InvocationTargetException invocationTargetException) {\n/* 278 */ Throwable throwable = invocationTargetException.getCause();\n/* */ \n/* 280 */ if (throwable instanceof InvocationTargetException)\n/* 281 */ throw (InvocationTargetException)throwable; \n/* 282 */ if (throwable instanceof IllegalAccessException)\n/* 283 */ throw (IllegalAccessException)throwable; \n/* 284 */ if (throwable instanceof RuntimeException)\n/* 285 */ throw (RuntimeException)throwable; \n/* 286 */ if (throwable instanceof Error) {\n/* 287 */ throw (Error)throwable;\n/* */ }\n/* 289 */ throw new Error(\"Unexpected invocation error\", throwable);\n/* */ }\n/* 291 */ catch (IllegalAccessException illegalAccessException) {\n/* */ \n/* 293 */ throw new Error(\"Unexpected invocation error\", illegalAccessException);\n/* */ } \n/* */ }", "public JsonNode callMethod(final JsiiObjectRef objRef, final String method, final ArrayNode args) {\n ObjectNode req = makeRequest(\"invoke\", objRef);\n req.put(\"method\", method);\n req.set(\"args\", args);\n\n JsonNode resp = this.runtime.requestResponse(req);\n return resp.get(\"result\");\n }", "public Object invokeWithArguments(Object ... arrobject) throws Throwable {\n synchronized (this) {\n if (this.cachedSpreadInvoker == null) {\n this.cachedSpreadInvoker = MethodHandles.spreadInvoker(this.type(), 0);\n }\n MethodHandle methodHandle = this.cachedSpreadInvoker;\n return methodHandle.invoke(this, arrobject);\n }\n }", "T call( @Nonnull final Object... args );", "public void call(Object object) {\n try {\n this.method.invoke(this.listener, object);\n } catch (IllegalAccessException | InvocationTargetException ex) {\n throw new InvalidListenerException(\"Unable to invoke method\", ex);\n } catch (Exception ex) {\n throw new InvalidListenerException(\"Unable to run listener method\", ex);\n }\n }", "Object executeMethod(Object pObject, Method pMethod,Object[] pArgs) {\r\n\t\tObject result = null ;\r\n\t\ttry {\r\n\t\t\tresult = pMethod.invoke(pObject,pArgs) ;\r\n\t\t} catch (Exception e) {\r\n\t\t\tString message ;\r\n\t\t\tmessage = \"Error Capturing \" + getCallingClassSignature() ;\r\n\t\t\t_supervisor.echo(message) ;\r\n\t\t\tthrow new ExecutionException(message) ;\r\n\t\t}\r\n\t\treturn result ;\r\n\t}", "K invoke(Map<String, Method> methods, T object);", "@Override\r\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tbeforeMethod();\r\n\t\tObject result = method.invoke(target, args);\r\n\t\tafterMethod();\r\n\t\treturn result;\r\n\t}", "public static <T> T invoke(Method method, Object o, Object... params) {\n try {\n return (T) method.invoke(o, params);\n } catch (IllegalAccessException e) {\n throw new RuntimeException(e);\n } catch (InvocationTargetException e) {\n throw new RuntimeException(e.getCause());\n }\n }", "public PrimObject perform(PrimObject arg1, String selector) {\n return perform0(selector, arg1);\n }", "@Override\n public Object invoke(Object o, Method method, Object[] objects) throws Throwable {\n\n String name = method.getName();\n\n try {\n Method proxyMethod = proxyObject.getClass().getMethod(method.getName(), method.getParameterTypes());\n return proxyMethod.invoke( proxyObject, objects );\n }\n catch (NoSuchMethodException e) {\n\n if ( proxyObject instanceof ProxyAccessor ) {\n ProxyAccessor access = (ProxyAccessor) proxyObject;\n\n if (( name.startsWith(\"get\") || name.startsWith(\"is\"))\n && objects == null) {\n return access._getValueByName(getField(name));\n }\n else if (name.startsWith(\"set\")\n && objects != null && objects.length==1) {\n access._setValueByName(getField(name), objects[0]);\n return null;\n }\n }\n\n throw e;\n }\n }", "protected void invokeListenerMethod(String methodName, Object[] arguments) {\n\t\ttry {\n\t\t\tinvoker.invoke(arguments);\n\t\t} catch (InvocationTargetException ex) {\n\t\t\tThrowable targetEx = ex.getTargetException();\n\t\t\tif (targetEx instanceof DataAccessException) {\n\t\t\t\tthrow (DataAccessException) targetEx;\n\t\t\t} else {\n\t\t\t\tthrow new RedisListenerExecutionFailedException(\"Listener method '\" + methodName + \"' threw exception\", targetEx);\n\t\t\t}\n\t\t} catch (Throwable ex) {\n\t\t\tthrow new RedisListenerExecutionFailedException(\"Failed to invoke target method '\" + methodName + \"' with arguments \" + ObjectUtils.nullSafeToString(arguments), ex);\n\t\t}\n\t}", "public ObjectType callMethod(String methodName, ObjectType... args) {\n\t\t// getting the member\n\t\tObjectType member = getProperty(methodName);\n\t\t//check if exists\n\t\tif (member.isUndefined())\n\t\t\t//call hosted one instead if not exist\n\t\t\treturn callHostedMethod(\"_\", methodName, args);\n\t\t\n\t\t//calling the function\n\t\treturn member.invoke(this, args);\n\t}", "@Override\r\n \tpublic Object invoke(Object arg0, Method arg1, Object[] arg2)\r\n \t\t\tthrows Throwable {\n \t\tString urlfortheobject = baseUrl+methodToID(arg1);\r\n \t\t\r\n \t\t// Get the IRemoteRestCall object for this method...\r\n\t\tClientResource cr = new ClientResource(urlfortheobject);\r\n \t\tIRemoteRestCall resource = cr.wrap(IRemoteRestCall.class, arg1.getReturnType());\r\n \t\t\r\n \t\t// Call\r\n \t\tObject returnObject = resource.doCall(arg2);\r\n\t\tcr.release();\r\n \t\t\r\n \t\t// return\r\n \t\treturn returnObject;\r\n \t}", "@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tmethodInvocation.invoke();\n\t\treturn method.invoke(bean, args);\n\t}", "public static Object invoke(String methodName, Object o, Object... params) {\n\t\treturn invoke(getMethod(methodName, o.getClass()), o, params);\n\t}", "public static InvocationExpression invoke(Expression expression, Expression arguments[]) { throw Extensions.todo(); }", "protected ObjectType callHostedMethod(String prefix, String methodName, ObjectType... args) {\n\t\ttry {\n\t\t\tMethod m = this.getClass().getMethod(prefix + methodName, objectsToClasses(args));\n\t\t\treturn (ObjectType)m.invoke(this,(Object[]) args);\n\t\t} catch (NoSuchMethodError e) {\n\t\t\tthrow new RuntimeException(String.format(\"Object has no method named %s\", methodName));\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public static InvocationExpression invoke(Expression expression, Iterable<Expression> arguments) { throw Extensions.todo(); }", "<T> T callMethod(Object obj, String name, Class<T> resultType, Object... args)\n throws ScriptRunnerException;", "void callMethod(String name, Object... args)\n throws ScriptRunnerException;", "@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args)\n\t\t\tthrows Throwable {\n\t\tObject result = null;\n\t\ttry{\n\t\t\tSystem.out.println(\"Before is OK!\");\n\t\t\tresult = method.invoke(this.ob, args);\n\t\t\tSystem.out.println(\"After is OK!\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public Object call(Context cx, Scriptable scope, Scriptable thisObj,\n Object[] args);", "public PrimObject perform(PrimObject arg1, PrimObject arg2, PrimObject arg3, String selector) {\n return perform0(selector, arg1, arg2, arg3);\n }", "@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws UnknownHostException, IOException, ClassNotFoundException {\n\t\tSocket sock = new Socket(IP_adr, Port);\n\t\tCommunicationModule cm = new CommunicationModule();\n\n\t\tTranSegment seg = new TranSegment(Obj_Key, method.getName(), args);\n\n\t\tboolean s = cm.SendObj(sock, seg);\n\t\tif (s) {\n\t\t\t//Get the invoking result returned from server end\n\t\t\tObject result = cm.RecObj(sock);\n\t\t\treturn result;\n\t\t}\n\t\treturn null;\n\t}", "public Object invoke(Object owner, String methodName, Class<?> argumentType, Object argument) {\n try {\n\n Method method;\n if (argument != null) {\n method = owner.getClass().getMethod(methodName, argumentType);\n return method.invoke(owner, argument);\n } else {\n method = owner.getClass().getMethod(methodName, (Class<?>[]) null);\n return method.invoke(owner, (Object[]) null);\n }\n\n } catch (SecurityException e) {\n String message = makeSecurityExceptionMessage(owner, methodName, argument);\n LOGGER.error(message, e);\n throw new EngineRuntimeException(message, e);\n } catch (NoSuchMethodException e) {\n String message = makeNoSuchMethodExceptionMessage(owner, methodName, argument);\n LOGGER.error(message, e);\n throw new EngineRuntimeException(message, e);\n } catch (IllegalArgumentException e) {\n String message = makeIllegalArgumentExceptionMessage(owner, methodName, argument);\n LOGGER.error(message, e);\n throw new EngineRuntimeException(message, e);\n } catch (IllegalAccessException e) {\n String message = makeIllegalAccessExceptionMessage(owner, methodName, argument);\n LOGGER.error(message, e);\n throw new EngineRuntimeException(message, e);\n } catch (InvocationTargetException e) {//NOSONAR - see below\n String message = makeInvocationTargetExceptionMessage(owner, methodName, argument);\n LOGGER.error(message, e.getCause());//true, here we throw out the InvocationTargetException because only its cause is meaningful\n throw new EngineRuntimeException(message, e.getCause());//NOSONAR - see above\n }\n }", "public PrimObject perform(PrimObject arg1, PrimObject arg2, String selector) {\n return perform0(selector, arg1, arg2);\n }", "public void perform(Object object) throws E {\n\t\tif(type().isInstance(object)) {\n\t\t\taccept((T) object);\n\t\t}\n\t}", "public static Object perform(Object receiver, String methodName, Object[] arguments, Class[] types) throws DiagnoseException {\r\n if (\"this\".equals(methodName))\r\n return receiver;\r\n Object result = null;\r\n try {\r\n Class methodClass = receiver.getClass();\r\n if (methodClass == Class.class) // receiver is class?\r\n methodClass = (Class) receiver;\r\n Method method = methodClass.getMethod(methodName, types);\r\n result = method.invoke(receiver, arguments);\r\n } catch (IllegalArgumentException e) {\r\n throw new DiagnoseException(\"IllegalArgumentException invoking \" + methodName, e);\r\n } catch (IllegalAccessException e) {\r\n throw new DiagnoseException(\"IllegalAccessException invoking \" + methodName, e);\r\n } catch (InvocationTargetException e) {\r\n throw new DiagnoseException(\"InvocationTargetException invoking \" + methodName, e);\r\n } catch (SecurityException e) {\r\n throw new DiagnoseException(\"SecurityException invoking \" + methodName, e);\r\n } catch (NoSuchMethodException e) {\r\n throw new DiagnoseException(\"NoSuchMethodException invoking \" + methodName, e);\r\n }\r\n return result;\r\n }", "public PrimObject perform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, PrimObject arg5, String selector) {\n return perform0(selector, arg1, arg2, arg3, arg4, arg5);\n }", "public PrimObject perform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, PrimObject arg5, PrimObject arg6, String selector) {\n return perform0(selector, arg1, arg2, arg3, arg4, arg5, arg6);\n }", "public static void call(Object... o) {\r\n\t\t// to prevent the compiler to prune the Object\r\n\t}", "static <T, U extends T> U invoke(\r\n\t\t\t@Nonnull Object o, \r\n\t\t\t@Nonnull String methodPrefix, \r\n\t\t\t@Nonnull Class<T> paramType, \r\n\t\t\t@Nonnull U value) {\r\n\t\tif (o == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"o is null\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tMethod m = o.getClass().getMethod(methodPrefix + paramType.getSimpleName(), paramType);\r\n\t\t\tm.invoke(o, value);\r\n\t\t} catch (NoSuchMethodException ex) {\r\n\t\t\tthrow new IllegalArgumentException(ex);\r\n\t\t} catch (IllegalAccessException ex) {\r\n\t\t\tthrow new IllegalArgumentException(ex);\r\n\t\t} catch (InvocationTargetException ex) {\r\n\t\t\tthrow new IllegalArgumentException(ex);\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "public void execute( I18n i18n, Object[] args ) throws Throwable\n {\n scriptObjectMirror.callMember( methodName, args );\n }", "protected Object executeMethod(Object instance, Method method, Object args) {\n try {\n if (args == null) {\n return method.invoke(instance);\n } else {\n return method.invoke(instance, args);\n }\n } catch (Exception e) {\n exceptionHandling(e);\n return null;\n }\n }", "public Object invokeArrayArgs(String name, Object[] argsArray) throws Exception;", "public static Object invokeMethod(Method method, Object target) {\n return invokeMethod(method, target, new Object[0]);\n }", "public void callMethod( String objectName, String methodName, Object[] parameters, Class[] parameterTypes )\n throws MraldException\n {\n try\n {\n Class mraldObject = ( Class )Class.forName( objectName ).newInstance();\n Method method = mraldObject.getMethod( methodName, parameterTypes );\n method.invoke( mraldObject, parameters );\n }\n catch ( ClassNotFoundException e )\n {\n throw new MraldException(e, messageObject);\n }\n catch ( NoSuchMethodException e )\n {\n throw new MraldException(e, messageObject);\n }\n catch ( IllegalAccessException e )\n {\n throw new MraldException(e, messageObject);\n }\n catch ( InstantiationException e )\n {\n throw new MraldException(e, messageObject);\n }\n catch ( InvocationTargetException e )\n {\n throw new MraldException(e, messageObject);\n }\n }", "public static Object invokeMethod(Object receiver, String name, Object... args) {\n try {\n Class<?> clazz = receiver.getClass();\n /*Class<?>[] parameterTypes = new Class<?>[args.length];\n for (int i=0; i<args.length; i++) {\n parameterTypes[i] = args[i].getClass();\n }*/\n \n Method[] methods = clazz.getDeclaredMethods();\n for (Method method : methods) {\n if (method.getName().equals(name)) {\n Class<?>[] parameterTypes = method.getParameterTypes();\n if (parameterTypes.length == args.length) {\n int matched = 0;\n for (; matched<parameterTypes.length; matched++) {\n if (!isAcceptableParameter(parameterTypes[matched], args[matched])) {\n break;\n }\n }\n if (matched == parameterTypes.length) {\n method.setAccessible(true);\n return method.invoke(receiver, args);\n }\n }\n }\n }\n\n /*Method method = clazz.getDeclaredMethod(name, parameterTypes);\n if (method != null) {\n method.setAccessible(true);\n return method.invoke(receiver, args);\n }*/\n } catch (Exception e) {\n Logger.w(\"Reflection\", \"invokeMethod \" + name + \" \" + e.toString());\n }\n return null;\n }", "private void setValueObject(Object object, Object value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException{\n\t\tthis.methodSet.invoke(object, value);\n\t}", "public static Object invokeMethod(Class clazz, Object instance, String methodName, Class[] argTypes, Object[] args) throws ReflectionException {\n\t\ttry {\n\t\t\tMethod m = clazz.getDeclaredMethod(methodName, argTypes);\n\t\t\tm.setAccessible(true);\n\t\t\treturn m.invoke(instance, args);\n\t\t} catch (InvocationTargetException | NoSuchMethodException | IllegalArgumentException | IllegalAccessException | SecurityException ex) {\n\t\t\tthrow new ReflectionException(ex);\n\t\t}\n\t}", "public <R> R mo27138a(Object obj, Object... objArr) throws C3885b {\n mo27140a(obj, this.f17272e, \"Method\");\n try {\n return (R) this.f17272e.invoke(obj, objArr);\n } catch (InvocationTargetException e) {\n throw new C3885b(\"Oops!\", e.getTargetException());\n } catch (Throwable th) {\n throw new C3885b(\"Oops!\", th);\n }\n }", "public PrimObject perform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, String selector) {\n return perform0(selector, arg1, arg2, arg3, arg4);\n }", "private void invoke(Method m, Object instance, Object... args) throws Throwable {\n if (!Modifier.isPublic(m.getModifiers())) {\n try {\n if (!m.isAccessible()) {\n m.setAccessible(true);\n }\n } catch (SecurityException e) {\n throw new RuntimeException(\"There is a non-public method that needs to be called. This requires \" +\n \"ReflectPermission('suppressAccessChecks'). Don't run with the security manager or \" +\n \" add this permission to the runner. Offending method: \" + m.toGenericString());\n }\n }\n \n try {\n m.invoke(instance, args);\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }", "public static Object invoke(Method arg0, Object arg1, Object[] arg2, Fiber ???)\n/* */ throws Pausable, IllegalAccessException, IllegalArgumentException, InvocationTargetException\n/* */ {\n/* 258 */ Object localObject1 = ???;Fiber f = ((Fiber)localObject1).task.fiber;", "public static Object invokeRestrictedMethod(Object obj, Class<?> theClass, String methodName,\n Object[] params, Class[] paramTypes)\n throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException,\n InvocationTargetException {\n Method method = theClass.getDeclaredMethod(methodName, paramTypes);\n Object result;\n\n boolean wasAccessible = method.isAccessible();\n method.setAccessible(true);\n if (params == null) {\n result = method.invoke(obj);\n } else {\n result = method.invoke(obj, params);\n }\n method.setAccessible(wasAccessible);\n return result;\n }", "public static <T> Object invokeAnyMethod(T instance, String method, Object... args) throws InvocationTargetException,\n NoSuchMethodException, IllegalAccessException {\n return invokeAnyMethod(instance, method, null, args);\n }", "public PrimObject perform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, PrimObject arg5, PrimObject arg6, PrimObject arg7, String selector) {\n return perform0(selector, arg1, arg2, arg3, arg4, arg5, arg6, arg7);\n }", "public Object invoke( Object proxy, Method method, Object[] args ) \n throws Throwable {\n try {\n if (method.getName().equals(\"getInputStream\")) { \n return this.getInputStream(); \n } else if (method.getName().equals(\"getInputSource\")) { \n return this.getInputSource(); \n } else if (method.getName().equals(\"getSystemId\")) {\n return this.getSystemId();\n } else if(method.getName().equals(\"recycle\")) { \n this.recycle(); \n return null; \n } else if(method.getName().equals(\"toSAX\")) { \n this.toSAX((ContentHandler) args[0]); \n return null; \n } else{\n return method.invoke(source, args);\n }\n }\n catch ( InvocationTargetException e ){\n throw e.getTargetException();\n }\n }", "protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke paramMethodToInvoke, Object paramObject1, Object paramObject2) {\n }", "protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke paramMethodToInvoke, Object paramObject1, Object paramObject2) {\n }", "public void visitInvoke(Quad obj) {\n if (TRACE_INTRA) out.println(\"Visiting: \"+obj);\n Invoke.getMethod(obj).resolve();\n jq_Method m = Invoke.getMethod(obj).getMethod();\n ProgramLocation mc = new ProgramLocation.QuadProgramLocation(method, obj);\n if (m == joeq.Runtime.Arrays._multinewarray) {\n // special case: multi-dimensional array.\n RegisterOperand dest = Invoke.getDest(obj);\n if (dest != null) {\n Register dest_r = dest.getRegister();\n // todo: get the real type.\n jq_Type type = PrimordialClassLoader.getJavaLangObject().getArrayTypeForElementType();\n Node n = ConcreteTypeNode.get(type, new QuadProgramLocation(method, obj));\n setRegister(dest_r, n);\n }\n return;\n }\n \n this.methodCalls.add(mc);\n jq_Type[] params = m.getParamTypes();\n ParamListOperand plo = Invoke.getParamList(obj);\n Assert._assert(m == joeq.Runtime.Arrays._multinewarray || params.length == plo.length(),\n obj + \" calling \" + m + \": params.length: \" + params.length + \", plo: \" + plo);\n// System.out.println(\"plo: \" + plo);\n for (int i=0; i<params.length; ++i) {\n if (!INCLUDE_PRIMITIVE_TYPES && !params[i].isReferenceType()\n /*|| params[i].isAddressType()*/\n ) continue;\n Assert._assert(plo.get(i) != null, \"Element \" + i + \" of plo \" + plo + \" is bogus\");\n Register r = plo.get(i).getRegister();\n passParameter(r, mc, i);\n }\n if (INCLUDE_PRIMITIVE_TYPES || m.getReturnType().isReferenceType()\n /*&& !m.getReturnType().isAddressType()*/\n )\n {\n RegisterOperand dest = Invoke.getDest(obj);\n if (dest != null) {\n Register dest_r = dest.getRegister();\n ReturnValueNode n = (ReturnValueNode)callToRVN.get(mc);\n if (n == null) {\n callToRVN.put(mc, n = new ReturnValueNode(mc));\n passedAsParameter.add(n);\n }\n setRegister(dest_r, n);\n }\n }\n // exceptions are handled by visitExceptionThrower.\n }", "protected void invokeMethod(MetaMethod method) {\n Class callClass = method.getInterfaceClass();\n boolean useInterface = false;\n if (callClass == null) {\n callClass = method.getCallClass();\n }\n else {\n useInterface = true;\n }\n String type = BytecodeHelper.getClassInternalName(callClass.getName());\n String descriptor = BytecodeHelper.getMethodDescriptor(method.getReturnType(), method.getParameterTypes());\n\n // System.out.println(\"Method: \" + method);\n // System.out.println(\"Descriptor: \" + descriptor);\n\n if (method.isStatic()) {\n loadParameters(method, 3);\n cv.visitMethodInsn(INVOKESTATIC, type, method.getName(), descriptor);\n }\n else {\n cv.visitVarInsn(ALOAD, 2);\n helper.doCast(callClass);\n loadParameters(method, 3);\n cv.visitMethodInsn((useInterface) ? INVOKEINTERFACE : INVOKEVIRTUAL, type, method.getName(), descriptor);\n }\n\n helper.box(method.getReturnType());\n }", "public static Object invokeMethod(Method method, Object instance, Object... params) {\n return performReflectionAction(() -> method.invoke(instance, params));\n }", "@Override\n\tpublic Object invoke(MethodInvocation arg0) throws Throwable {\n\t\tSystem.out.println(\"The name of the method that is getting executed is :\"+arg0.getMethod().getName());\n\t\tObject[] args=arg0.getArguments();\n\t\tSystem.out.println(\"First argument:\"+args[0]);\n\t\tSystem.out.println(\"Second argument:\"+args[1]);\n\t\tObject ret=arg0.proceed();\n\t\treturn ret;\n\t}", "public abstract Object[] callMethod(IComputerAccess computer, ILuaContext context, int method,\n\t\t\t\tObject[] arguments) throws Exception;", "public Object intercept(final Object object, final Method method, final Object[] args,\n final MethodProxy methodProxy) throws Throwable {\n if (!PersistenceService.isDynamicFinder(method))\n return methodProxy.invokeSuper(object, args);\n\n\n //otherwise dispatch to finder logic\n return finderInterceptor.invoke(new MethodInvocation() {\n\n public Method getMethod() {\n return method;\n }\n\n public Object[] getArguments() {\n return args;\n }\n\n public Object proceed() throws Throwable {\n return methodProxy.invoke(object, args);\n }\n\n public Object getThis() {\n return object;\n }\n\n public AccessibleObject getStaticPart() {\n return method;\n }\n });\n }", "@Override\n\tpublic Object call(Object[] invokedArgs) {\n\t\treturn returnType.cast(informer.get(fieldName));\n\t}", "public static Object dispatch(Object object){\n RPCCommonReqDTO rpcCommonReqDTO = (RPCCommonReqDTO)object;\n String methodName = rpcCommonReqDTO.getMethodName();\n String classPath = rpcCommonReqDTO.getClassPath();\n Object[] args = rpcCommonReqDTO.getArgs();\n Class[] types = null;\n Object resObject = null;\n if(args != null && args.length > 0) {\n types = new Class[args.length];\n for (int i = 0; i < types.length; i++) {\n types[i] = args[i].getClass();\n }\n }\n //\n try {\n Class<?> aClass = Class.forName(classPath);\n Method method = aClass.getDeclaredMethod(methodName, types);\n resObject = method.invoke(aClass.newInstance(), args);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n return resObject;\n }", "@Override\r\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tMethod realObjMethod = routerObj.getClass().getMethod(method.getName(), method.getParameterTypes());\r\n\t\tif (realObjMethod.getName().startsWith(RouterProxyFactory.METHOD_PREFIX_SET)){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}\r\n\t\t\r\n\t\treturn realObjMethod.invoke(routerObj, args);\r\n\t}", "public PrimObject superPerform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, PrimObject arg5, String selector) {\n return perform0s(selector, arg1, arg2, arg3, arg4, arg5);\n }", "@Override\n\t\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\t\tif (method.getDeclaringClass().equals(Object.class))\n\t\t\t\tthrow new IllegalStreamGraphException(\"Call to Object method \"+method+\" through portal\", sender);\n\n\t\t\t//We probably don't have access to the message interface, but we\n\t\t\t//need to call its methods anyway. This might fail under a security\n\t\t\t//manager, or if the interface is somehow security sensitive to the\n\t\t\t//Java platform(?).\n\t\t\tmethod.setAccessible(true);\n\n\t\t\tfor (Worker<?, ?> recipient : recipients) {\n\t\t\t\tMessageConstraint constraint = constraints.get(recipient);\n\t\t\t\tassert constraint != null;\n\n\t\t\t\t//Queue up the message at the recipient.\n\t\t\t\tMessage message = new Message(method, args, constraint.getDeliveryTime(Workers.getExecutions(sender)));\n\t\t\t\tWorkers.sendMessage(recipient, message);\n\t\t\t}\n\n\t\t\t//Methods on the portal interface return void.\n\t\t\treturn null;\n\t\t}", "public PrimObject superPerform(PrimObject arg1, PrimObject arg2, PrimObject arg3, String selector) {\n return perform0s(selector, arg1, arg2, arg3);\n }", "@Override\n @SuppressWarnings({\"unchecked\", \"raw\"})\n public Object invoke(Object proxy, Method method, Object[] args) throws Exception {\n if (\"toString\".equals(method.getName())) {\n return null;\n }\n\n HummerRestApiDeclare declare = method.getAnnotation(HummerRestApiDeclare.class);\n if (declare == null) {\n log.error(\"method {} proxy {} not use annotation HummerRestApiDeclare\"\n , method.getName(), proxy);\n throw new IllegalArgumentException(\"not found annotation HummerRestApiDeclare\");\n }\n long start = System.currentTimeMillis();\n ApiMetadata apiMetadata = builderApiMetadata(declare, method, args);\n long costMills = System.currentTimeMillis() - start;\n if (costMills > 0) {\n log.debug(\"method {} builder api metadata done,cost {} mills\", method.getName(), costMills);\n }\n //todo cache\n\n //call remote api\n Object o = apiMetadata.getAsync() ? invokeOfAsync(apiMetadata) : invokeOfSync(apiMetadata);\n //after handler\n if (apiMetadata.getAfterHandler() != null) {\n apiMetadata.getAfterHandler().handler(o);\n }\n return o;\n }", "public static <T> Object invokeAnyMethod(T instance, String method, Class<?>[] argTypes, Object... arguments) throws\n NoSuchMethodException, InvocationTargetException, IllegalAccessException {\n List<Class<?>> types = new ArrayList<Class<?>>();\n if (argTypes == null) {\n for (Object arg : arguments) {\n types.add(arg.getClass());\n }\n argTypes = types.toArray(new Class<?>[types.size()]);\n }\n Method m = instance.getClass().getDeclaredMethod(method, argTypes);\n m.setAccessible(true);\n return m.invoke(instance, arguments);\n }", "public Object invoke(String name, Object[] arguments, String[] types) throws Exception {\n return null;\n }", "public PrimObject perform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, PrimObject arg5, PrimObject arg6, PrimObject arg7, PrimObject arg8, String selector) {\n return perform0(selector, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);\n }", "public PrimObject superPerform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, PrimObject arg5, PrimObject arg6, String selector) {\n return perform0s(selector, arg1, arg2, arg3, arg4, arg5, arg6);\n }", "public void call(T arg);", "public List<Type> call(List<Object> arguments, CallObject callObject) throws IOException, ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException {\n List<Object> functionParams = new ArrayList<>();\n\n if(arguments != null) {\n functionParams.addAll(arguments);\n }\n\n ContractMethod matchedMethod = findMatchedInstance(functionParams);\n String encodedFunction = ABI.encodeFunctionCall(matchedMethod, functionParams);\n\n return callFunction(matchedMethod, encodedFunction, callObject);\n }", "public Object proceed(Object[] args) throws Throwable;", "Object invoke(Object reqest) throws IOException, ClassNotFoundException,\n InvocationTargetException, IllegalAccessException, IllegalArgumentException;", "protected Object doInvoke( Object instance, List<String> parameterNames,\n Object[] parameterValues ) throws IllegalArgumentException,\n IllegalAccessException, InvocationTargetException,\n ActionExecutionException {\n if (log.isInfoEnabled()) {\n if (!actionName.matches(\"Internal.*Operations.*\")\n && !actionName.startsWith(\"InternalProcessTalker\")) {\n log.info(\"Executing '\" + actionName + \"' with arguments \"\n + StringUtils.methodInputArgumentsToString(parameterValues));\n } else {\n // internal action\n if (log.isDebugEnabled())\n log.debug(\"Executing '\" + actionName + \"' with arguments \"\n + StringUtils.methodInputArgumentsToString(parameterValues));\n }\n }\n\n return method.invoke(instance, parameterValues);\n }", "public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\n\t\t\tif (method.getName().equals(\"getCurrentSession\")) {\n\t\t\t\t// Handle getCurrentSession method: return transactional Session, if any.\n\t\t\t\ttry {\n\t\t\t\t\treturn SessionFactoryUtils.doGetSession((SessionFactory) proxy, false);\n\t\t\t\t}\n\t\t\t\tcatch (IllegalStateException ex) {\n\t\t\t\t\tthrow new HibernateException(ex.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (method.getName().equals(\"equals\")) {\n\t\t\t\t// Only consider equal when proxies are identical.\n\t\t\t\treturn (proxy == args[0] ? Boolean.TRUE : Boolean.FALSE);\n\t\t\t}\n\t\t\telse if (method.getName().equals(\"hashCode\")) {\n\t\t\t\t// Use hashCode of SessionFactory proxy.\n\t\t\t\treturn new Integer(hashCode());\n\t\t\t}\n\n\t\t\t// Invoke method on target SessionFactory.\n\t\t\ttry {\n\t\t\t\treturn method.invoke(this.target, args);\n\t\t\t}\n\t\t\tcatch (InvocationTargetException ex) {\n\t\t\t\tthrow ex.getTargetException();\n\t\t\t}\n\t\t}", "public static void main(String[] args) {\n\t\t\n\t\tObject a = new ClassObj();\n\t\t ((A) a).Calling();\n\t\t \n\n\t}", "public static MethodCallExpression call(Class clazz, String methodName, Class[] typeArguments, Expression[] arguments) { throw Extensions.todo(); }", "public PrimObject superPerform(PrimObject arg1, String selector) {\n return perform0s(selector, arg1);\n }", "@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args)\n\t\t\tthrows Throwable {\n\t\tSystem.out.println(\"before log\");\n\t\tObject o = method.invoke(target, args);\n\t\tSystem.out.println(\"after log\");\n\t\treturn o;\n\t}", "@Nullable\n\tprotected Object execute(CacheOperationInvoker invoker, Object target, Method method, Object[] args) {\n\t\tif (this.initialized) {\n\t\t\tClass<?> targetClass = getTargetClass(target);\n\t\t\tCacheOperationSource cacheOperationSource = getCacheOperationSource();\n\t\t\tif (cacheOperationSource != null) {\n\t\t\t\tCollection<CacheOperation> operations = cacheOperationSource.getCacheOperations(method, targetClass);\n\t\t\t\tif (!CollectionUtils.isEmpty(operations)) {\n\t\t\t\t\treturn execute(invoker, method,\n\t\t\t\t\t\t\tnew CacheOperationContexts(operations, method, args, target, targetClass));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn invoker.invoke();\n\t}", "public static Object invokeRestrictedMethod(Object obj, Class theClass, String methodName,\n Object... paramsAndTypes)\n throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException,\n InvocationTargetException {\n Object[] params;\n Class[] paramTypes;\n int l;\n if (paramsAndTypes != null) {\n l = paramsAndTypes.length;\n params = new Object[l / 2];\n paramTypes = new Class[l / 2];\n } else {\n l = 0;\n params = null;\n paramTypes = null;\n }\n\n for (int i = 0; i < l / 2; ++i) {\n params[i] = paramsAndTypes[i * 2];\n paramTypes[i] = (Class) paramsAndTypes[i * 2 + 1];\n }\n return invokeRestrictedMethod(obj, theClass, methodName, params, paramTypes);\n }", "public void _run() {\n String[] args = (String[])tEnv.getObjRelation(\"ARGS\");\n\n log.println(\"Running with arguments:\");\n for (int i=0; i< args.length; i++)\n log.println(\"#\" + i + \": \" + args[i]);\n\n oObj.run(args);\n\n tRes.tested(\"run()\", true);\n }", "public MethodWithArguments(Method method, Object[] args) {\n super(method);\n this.args = args;\n }", "@Override\r\n public Object invoke(Object proxy, Method method, Object[] args) throws Throwable\r\n {\r\n HashSet<IInterceptor> interceptors;\r\n\r\n // Instantiation of the desired service\r\n if(implementation != null) {\r\n try {\r\n instance = InstanceManager.getInstance(implementation);\r\n\r\n // Cascade injection\r\n EJBInjector.inject(instance);\r\n }\r\n catch (Exception e) {\r\n e.printStackTrace();\r\n throw new ImpossibleAllocationException();\r\n }\r\n }\r\n\r\n // Get interceptors\r\n interceptors = InterceptorManager.getInterceptors(instance, method);\r\n\r\n // Before\r\n for(IInterceptor interceptor : interceptors) {\r\n interceptor.before(instance, method, args);\r\n }\r\n\r\n Object methodReturn = null;\r\n Throwable exceptionReturn = null;\r\n\r\n try {\r\n methodReturn = method.invoke(instance, args);\r\n } catch (InvocationTargetException e) {\r\n exceptionReturn = e.getTargetException();\r\n }\r\n\r\n // After\r\n for(IInterceptor interceptor : interceptors) {\r\n interceptor.after(instance, method, methodReturn, exceptionReturn, args);\r\n }\r\n\r\n // If there has been an exception, throw it\r\n if(exceptionReturn != null) {\r\n throw exceptionReturn;\r\n }\r\n\r\n return methodReturn;\r\n }", "public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n String methodName = method.getName();\n Class<?>[] params = method.getParameterTypes();\n\n // equals and hashCode are special cased\n if (methodName.equals(\"equals\") && params.length == 1 && params[0].equals(Object.class)) {\n Object value = args[0];\n if (value == null || !Proxy.isProxyClass(value.getClass())) {\n return Boolean.FALSE;\n }\n\n AMQPProxy handler = (AMQPProxy) Proxy.getInvocationHandler(value);\n\n return _factory.equals(handler._factory);\n } else if (methodName.equals(\"hashCode\") && params.length == 0) {\n return _factory.hashCode();\n } else if (methodName.equals(\"toString\") && params.length == 0) {\n return \"[HessianProxy \" + proxy.getClass() + \"]\";\n }\n\n ConnectionFactory connectionFactory = _factory.getConnectionFactory();\n\n\n Message response = sendRequest(connectionFactory, method, args);\n\n if (response == null) {\n throw new TimeoutException();\n }\n\n MessageProperties props = response.getMessageProperties();\n boolean compressed = \"deflate\".equals(props.getContentEncoding());\n\n InputStream is = new ByteArrayInputStream(response.getBody());\n if (compressed) {\n is = new InflaterInputStream(is, new Inflater(true));\n }\n\n return _factory.getSerializationHandler().readObject(method.getReturnType(), is);\n }", "public PrimObject superPerform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, String selector) {\n return perform0s(selector, arg1, arg2, arg3, arg4);\n }", "public static void method(Object obj){\n\t System.out.println(\"method with param type - Object\");\n\t }", "public PrimObject superPerform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, PrimObject arg5, PrimObject arg6, PrimObject arg7, String selector) {\n return perform0s(selector, arg1, arg2, arg3, arg4, arg5, arg6, arg7);\n }", "public Object invoke(Object proxy, Method method, Object[] args) throws Throwable \r\n\t\t{\r\n\r\n\t\t\tif(logger.isDebugEnabled() ) {\r\n\t\t\t\tlogger.debug(\"Calling \"+method.getDeclaringClass()+\".\"+method.getName()+\" on Object \"+ this);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// execute\r\n\t\t\ttry {\r\n\t\t\t\tif( method.getDeclaringClass().equals(IPhynixxConnection.class)\t&&\r\n\t\t\t\t\tmethod.equals(PooledDynaProxyFactory.closeMethod)) \r\n\t\t\t\t{\r\n\t\t\t\t\tif (this.getPooledConnectionFactory()==null) {\r\n\t\t\t\t\t\tthrow new IllegalStateException(\"No PooledConnectionFactoryx assigned and the current proxy could not be released\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.close();\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t} else if ( method.getDeclaringClass().equals(IPhynixxConnectionProxy.class)|| \r\n\t\t\t\t method.getDeclaringClass().equals(IPhynixxConnection.class)|| \r\n\t\t\t\t method.getDeclaringClass().equals(IPhynixxConnectionHandle.class) || \r\n\t\t\t\t\t method.getDeclaringClass().equals(IPooledConnection.class)\t ) \r\n\t\t\t\t{\r\n\t\t\t\t\treturn method.invoke(this,args);\r\n\t\t\t\t} else {\t\r\n\t\t\t\t\tObject target= this.getConnection();\r\n\t\t\t\t\t// all methods of the interfaces joins the TX \r\n\t\t\t\t\tthis.fireConnectionRequiresTransaction();\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject obj= method.invoke(target,args);\t\t\t\t\t\r\n\t\t\t\t\treturn obj; \r\n\t\t\t\t} \r\n\t\t\t} catch( InvocationTargetException targetEx) {\r\n\t\t\t\tthrow new DelegatedRuntimeException(\"Invoke \"+method, targetEx.getTargetException());\r\n\t\t\t} catch( Throwable ex) {\r\n\t\t\t\tthrow new DelegatedRuntimeException(\"Invoke \"+method, ex);\r\n\t\t\t}\r\n\t\t}" ]
[ "0.7687019", "0.7224113", "0.71510035", "0.7075386", "0.7048172", "0.7021007", "0.696874", "0.68920064", "0.68045366", "0.67227", "0.6683737", "0.659773", "0.6548591", "0.6541591", "0.6501486", "0.6445027", "0.64031446", "0.63649315", "0.630399", "0.6276054", "0.6214025", "0.6184861", "0.6167558", "0.6160014", "0.6112445", "0.6076369", "0.6050117", "0.60370594", "0.6028772", "0.60199964", "0.60051256", "0.600388", "0.595788", "0.59405345", "0.5925416", "0.59220856", "0.5920706", "0.5912151", "0.5894248", "0.58933306", "0.58901054", "0.5851724", "0.5839808", "0.58341646", "0.58150494", "0.58124954", "0.57914233", "0.57578593", "0.57241553", "0.57218593", "0.571721", "0.57142025", "0.5694277", "0.569382", "0.5678468", "0.5661823", "0.5655012", "0.56448525", "0.5643811", "0.5639772", "0.56317353", "0.56275177", "0.56275177", "0.56243753", "0.5612961", "0.5599382", "0.5598938", "0.5594522", "0.55732656", "0.5563166", "0.5547036", "0.55260605", "0.5522223", "0.55166", "0.55073905", "0.5503231", "0.550222", "0.5500617", "0.5492493", "0.54877293", "0.5486741", "0.5479612", "0.5478905", "0.54784006", "0.545087", "0.54473484", "0.54311615", "0.5423872", "0.540795", "0.5396516", "0.5394709", "0.5391752", "0.5385207", "0.53841627", "0.53737575", "0.53673446", "0.5356845", "0.53478175", "0.53302926", "0.53149927" ]
0.7199244
2
protected instance methods Invoke the method on the given object with the given arguments. The arguments will have already been coerced to appropriate values.
abstract protected Object invoke0 (Object obj, Object[] args);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object invoke (Object obj, Object[] args)\n {\n\tfor (int i = 0; i < myCoercers.length; i++)\n\t{\n\t args[i] = myCoercers[i].coerce (args[i]);\n\t}\n\n\treturn invoke0 (obj, args);\n }", "public Object invokeMethod(Object object, String methodName, Object arguments) {\n /*\n System\n .out\n .println(\n \"Invoker - Invoking method on object: \"\n + object\n + \" method: \"\n + methodName\n + \" arguments: \"\n + InvokerHelper.toString(arguments));\n \n */\n \n if (object == null) {\n throw new NullPointerException(\"Cannot invoke method: \" + methodName + \" on null object\");\n }\n \n if (object instanceof GroovyObject) {\n GroovyObject groovy = (GroovyObject) object;\n return groovy.invokeMethod(methodName, arguments);\n }\n else {\n if (object instanceof Class) {\n Class theClass = (Class) object;\n \n MetaClass metaClass = metaRegistry.getMetaClass(theClass);\n return metaClass.invokeStaticMethod(object, methodName, asArray(arguments));\n }\n else {\n Class theClass = object.getClass();\n \n MetaClass metaClass = metaRegistry.getMetaClass(theClass);\n return metaClass.invokeMethod(object, methodName, asArray(arguments));\n }\n }\n }", "@SuppressWarnings(\"unchecked\") \n public Object invoke(Caster<?> caster, Object obj, Object args[]) throws Throwable {\n try {\n if (argConverters != null) {\n for (int i = 0, len = args.length; i < len; i++) {\n @SuppressWarnings(\"rawtypes\") // so we can pass Object as input to conversion\n Converter converter = argConverters[i];\n if (converter != null) {\n args[i] = converter.convert(args[i], caster);\n }\n }\n }\n if (varArgsConverter != null) {\n args = varArgsConverter.apply(args);\n }\n Object ret = method.invoke(obj, args);\n if (returnConverter != null) {\n @SuppressWarnings(\"rawtypes\") // so we can pass Object as input to conversion\n Converter converter = returnConverter;\n ret = converter.convert(ret, caster);\n }\n return ret;\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }", "@Override\n public Object invoke(Object proxy, Method method, Object[] args)\n throws Throwable {\n if (method.getDeclaringClass() == Object.class) {\n return method.invoke(this, args);\n }\n ServiceMethod<Object, Object> serviceMethod =\n (ServiceMethod<Object, Object>) loadServiceMethod(method);\n ServiceCall<Object> serviceCall = new ServiceCall<>(serviceMethod, args);\n return serviceMethod.adapt(serviceCall, args);\n }", "public Object invoke( Object[] args )\n {\n return invokeFromBytecode(args);\n }", "public Object call(Object[] args) {\r\n return invoke(args);\r\n }", "public Object invoke(Object obj, Object[] params) throws Exception {\r\n return this.method.invoke(obj, params);\r\n }", "public abstract Object invoke(T target , Method method , Object[] args) throws Throwable;", "public static Object invoke(Method paramMethod, Object paramObject, Object[] paramArrayOfObject) throws InvocationTargetException, IllegalAccessException {\n/* */ try {\n/* 276 */ return bounce.invoke(null, new Object[] { paramMethod, paramObject, paramArrayOfObject });\n/* 277 */ } catch (InvocationTargetException invocationTargetException) {\n/* 278 */ Throwable throwable = invocationTargetException.getCause();\n/* */ \n/* 280 */ if (throwable instanceof InvocationTargetException)\n/* 281 */ throw (InvocationTargetException)throwable; \n/* 282 */ if (throwable instanceof IllegalAccessException)\n/* 283 */ throw (IllegalAccessException)throwable; \n/* 284 */ if (throwable instanceof RuntimeException)\n/* 285 */ throw (RuntimeException)throwable; \n/* 286 */ if (throwable instanceof Error) {\n/* 287 */ throw (Error)throwable;\n/* */ }\n/* 289 */ throw new Error(\"Unexpected invocation error\", throwable);\n/* */ }\n/* 291 */ catch (IllegalAccessException illegalAccessException) {\n/* */ \n/* 293 */ throw new Error(\"Unexpected invocation error\", illegalAccessException);\n/* */ } \n/* */ }", "public Object invokeWithArguments(Object ... arrobject) throws Throwable {\n synchronized (this) {\n if (this.cachedSpreadInvoker == null) {\n this.cachedSpreadInvoker = MethodHandles.spreadInvoker(this.type(), 0);\n }\n MethodHandle methodHandle = this.cachedSpreadInvoker;\n return methodHandle.invoke(this, arrobject);\n }\n }", "Object executeMethod(Object pObject, Method pMethod,Object[] pArgs) {\r\n\t\tObject result = null ;\r\n\t\ttry {\r\n\t\t\tresult = pMethod.invoke(pObject,pArgs) ;\r\n\t\t} catch (Exception e) {\r\n\t\t\tString message ;\r\n\t\t\tmessage = \"Error Capturing \" + getCallingClassSignature() ;\r\n\t\t\t_supervisor.echo(message) ;\r\n\t\t\tthrow new ExecutionException(message) ;\r\n\t\t}\r\n\t\treturn result ;\r\n\t}", "public static Object invokeMethod(Method method, Object target, Object... args) {\n try {\n return method.invoke(target, args);\n } catch (Exception e) {\n handleReflectionException(e);\n }\n throw new IllegalStateException(\"Should never get here\");\n }", "void callMethod(Object obj, String name, Object... args)\n throws ScriptRunnerException;", "public Object invoke(String name, Object... args) throws Exception;", "@Override\r\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tbeforeMethod();\r\n\t\tObject result = method.invoke(target, args);\r\n\t\tafterMethod();\r\n\t\treturn result;\r\n\t}", "public static Object invokeMethod(Method method, Object[] args) {\n try {\n return method.invoke(null, args);\n }\n catch (IllegalAccessException | InvocationTargetException e) {\n e.printStackTrace();\n }\n return null;\n }", "public void call(Object object) {\n try {\n this.method.invoke(this.listener, object);\n } catch (IllegalAccessException | InvocationTargetException ex) {\n throw new InvalidListenerException(\"Unable to invoke method\", ex);\n } catch (Exception ex) {\n throw new InvalidListenerException(\"Unable to run listener method\", ex);\n }\n }", "@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tmethodInvocation.invoke();\n\t\treturn method.invoke(bean, args);\n\t}", "T call( @Nonnull final Object... args );", "@Override\n public Object invoke(Object o, Method method, Object[] objects) throws Throwable {\n\n String name = method.getName();\n\n try {\n Method proxyMethod = proxyObject.getClass().getMethod(method.getName(), method.getParameterTypes());\n return proxyMethod.invoke( proxyObject, objects );\n }\n catch (NoSuchMethodException e) {\n\n if ( proxyObject instanceof ProxyAccessor ) {\n ProxyAccessor access = (ProxyAccessor) proxyObject;\n\n if (( name.startsWith(\"get\") || name.startsWith(\"is\"))\n && objects == null) {\n return access._getValueByName(getField(name));\n }\n else if (name.startsWith(\"set\")\n && objects != null && objects.length==1) {\n access._setValueByName(getField(name), objects[0]);\n return null;\n }\n }\n\n throw e;\n }\n }", "@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws UnknownHostException, IOException, ClassNotFoundException {\n\t\tSocket sock = new Socket(IP_adr, Port);\n\t\tCommunicationModule cm = new CommunicationModule();\n\n\t\tTranSegment seg = new TranSegment(Obj_Key, method.getName(), args);\n\n\t\tboolean s = cm.SendObj(sock, seg);\n\t\tif (s) {\n\t\t\t//Get the invoking result returned from server end\n\t\t\tObject result = cm.RecObj(sock);\n\t\t\treturn result;\n\t\t}\n\t\treturn null;\n\t}", "private void setValueObject(Object object, Object value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException{\n\t\tthis.methodSet.invoke(object, value);\n\t}", "@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args)\n\t\t\tthrows Throwable {\n\t\tObject result = null;\n\t\ttry{\n\t\t\tSystem.out.println(\"Before is OK!\");\n\t\t\tresult = method.invoke(this.ob, args);\n\t\t\tSystem.out.println(\"After is OK!\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public Object invoke(Object owner, String methodName, Class<?> argumentType, Object argument) {\n try {\n\n Method method;\n if (argument != null) {\n method = owner.getClass().getMethod(methodName, argumentType);\n return method.invoke(owner, argument);\n } else {\n method = owner.getClass().getMethod(methodName, (Class<?>[]) null);\n return method.invoke(owner, (Object[]) null);\n }\n\n } catch (SecurityException e) {\n String message = makeSecurityExceptionMessage(owner, methodName, argument);\n LOGGER.error(message, e);\n throw new EngineRuntimeException(message, e);\n } catch (NoSuchMethodException e) {\n String message = makeNoSuchMethodExceptionMessage(owner, methodName, argument);\n LOGGER.error(message, e);\n throw new EngineRuntimeException(message, e);\n } catch (IllegalArgumentException e) {\n String message = makeIllegalArgumentExceptionMessage(owner, methodName, argument);\n LOGGER.error(message, e);\n throw new EngineRuntimeException(message, e);\n } catch (IllegalAccessException e) {\n String message = makeIllegalAccessExceptionMessage(owner, methodName, argument);\n LOGGER.error(message, e);\n throw new EngineRuntimeException(message, e);\n } catch (InvocationTargetException e) {//NOSONAR - see below\n String message = makeInvocationTargetExceptionMessage(owner, methodName, argument);\n LOGGER.error(message, e.getCause());//true, here we throw out the InvocationTargetException because only its cause is meaningful\n throw new EngineRuntimeException(message, e.getCause());//NOSONAR - see above\n }\n }", "public Object call(Context cx, Scriptable scope, Scriptable thisObj,\n Object[] args);", "public static void call(Object... o) {\r\n\t\t// to prevent the compiler to prune the Object\r\n\t}", "private void invoke(Method m, Object instance, Object... args) throws Throwable {\n if (!Modifier.isPublic(m.getModifiers())) {\n try {\n if (!m.isAccessible()) {\n m.setAccessible(true);\n }\n } catch (SecurityException e) {\n throw new RuntimeException(\"There is a non-public method that needs to be called. This requires \" +\n \"ReflectPermission('suppressAccessChecks'). Don't run with the security manager or \" +\n \" add this permission to the runner. Offending method: \" + m.toGenericString());\n }\n }\n \n try {\n m.invoke(instance, args);\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }", "public static Object dispatch(Object object){\n RPCCommonReqDTO rpcCommonReqDTO = (RPCCommonReqDTO)object;\n String methodName = rpcCommonReqDTO.getMethodName();\n String classPath = rpcCommonReqDTO.getClassPath();\n Object[] args = rpcCommonReqDTO.getArgs();\n Class[] types = null;\n Object resObject = null;\n if(args != null && args.length > 0) {\n types = new Class[args.length];\n for (int i = 0; i < types.length; i++) {\n types[i] = args[i].getClass();\n }\n }\n //\n try {\n Class<?> aClass = Class.forName(classPath);\n Method method = aClass.getDeclaredMethod(methodName, types);\n resObject = method.invoke(aClass.newInstance(), args);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n return resObject;\n }", "public static <T> T invoke(Method method, Object o, Object... params) {\n try {\n return (T) method.invoke(o, params);\n } catch (IllegalAccessException e) {\n throw new RuntimeException(e);\n } catch (InvocationTargetException e) {\n throw new RuntimeException(e.getCause());\n }\n }", "protected ObjectType callHostedMethod(String prefix, String methodName, ObjectType... args) {\n\t\ttry {\n\t\t\tMethod m = this.getClass().getMethod(prefix + methodName, objectsToClasses(args));\n\t\t\treturn (ObjectType)m.invoke(this,(Object[]) args);\n\t\t} catch (NoSuchMethodError e) {\n\t\t\tthrow new RuntimeException(String.format(\"Object has no method named %s\", methodName));\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "protected Object executeMethod(Object instance, Method method, Object args) {\n try {\n if (args == null) {\n return method.invoke(instance);\n } else {\n return method.invoke(instance, args);\n }\n } catch (Exception e) {\n exceptionHandling(e);\n return null;\n }\n }", "K invoke(Map<String, Method> methods, T object);", "protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke paramMethodToInvoke, Object paramObject1, Object paramObject2) {\n }", "protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke paramMethodToInvoke, Object paramObject1, Object paramObject2) {\n }", "protected void invokeListenerMethod(String methodName, Object[] arguments) {\n\t\ttry {\n\t\t\tinvoker.invoke(arguments);\n\t\t} catch (InvocationTargetException ex) {\n\t\t\tThrowable targetEx = ex.getTargetException();\n\t\t\tif (targetEx instanceof DataAccessException) {\n\t\t\t\tthrow (DataAccessException) targetEx;\n\t\t\t} else {\n\t\t\t\tthrow new RedisListenerExecutionFailedException(\"Listener method '\" + methodName + \"' threw exception\", targetEx);\n\t\t\t}\n\t\t} catch (Throwable ex) {\n\t\t\tthrow new RedisListenerExecutionFailedException(\"Failed to invoke target method '\" + methodName + \"' with arguments \" + ObjectUtils.nullSafeToString(arguments), ex);\n\t\t}\n\t}", "@Override\r\n \tpublic Object invoke(Object arg0, Method arg1, Object[] arg2)\r\n \t\t\tthrows Throwable {\n \t\tString urlfortheobject = baseUrl+methodToID(arg1);\r\n \t\t\r\n \t\t// Get the IRemoteRestCall object for this method...\r\n\t\tClientResource cr = new ClientResource(urlfortheobject);\r\n \t\tIRemoteRestCall resource = cr.wrap(IRemoteRestCall.class, arg1.getReturnType());\r\n \t\t\r\n \t\t// Call\r\n \t\tObject returnObject = resource.doCall(arg2);\r\n\t\tcr.release();\r\n \t\t\r\n \t\t// return\r\n \t\treturn returnObject;\r\n \t}", "@Override\n\tpublic Object call(Object[] invokedArgs) {\n\t\treturn returnType.cast(informer.get(fieldName));\n\t}", "public Object invoke( Object proxy, Method method, Object[] args ) \n throws Throwable {\n try {\n if (method.getName().equals(\"getInputStream\")) { \n return this.getInputStream(); \n } else if (method.getName().equals(\"getInputSource\")) { \n return this.getInputSource(); \n } else if (method.getName().equals(\"getSystemId\")) {\n return this.getSystemId();\n } else if(method.getName().equals(\"recycle\")) { \n this.recycle(); \n return null; \n } else if(method.getName().equals(\"toSAX\")) { \n this.toSAX((ContentHandler) args[0]); \n return null; \n } else{\n return method.invoke(source, args);\n }\n }\n catch ( InvocationTargetException e ){\n throw e.getTargetException();\n }\n }", "protected abstract void handle(Object... params);", "public void perform(Object object) throws E {\n\t\tif(type().isInstance(object)) {\n\t\t\taccept((T) object);\n\t\t}\n\t}", "public JsonNode callMethod(final JsiiObjectRef objRef, final String method, final ArrayNode args) {\n ObjectNode req = makeRequest(\"invoke\", objRef);\n req.put(\"method\", method);\n req.set(\"args\", args);\n\n JsonNode resp = this.runtime.requestResponse(req);\n return resp.get(\"result\");\n }", "@Override\r\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tMethod realObjMethod = routerObj.getClass().getMethod(method.getName(), method.getParameterTypes());\r\n\t\tif (realObjMethod.getName().startsWith(RouterProxyFactory.METHOD_PREFIX_SET)){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}\r\n\t\t\r\n\t\treturn realObjMethod.invoke(routerObj, args);\r\n\t}", "public abstract void doInvoke(InvocationContext ic) throws Exception;", "public <R> R mo27138a(Object obj, Object... objArr) throws C3885b {\n mo27140a(obj, this.f17272e, \"Method\");\n try {\n return (R) this.f17272e.invoke(obj, objArr);\n } catch (InvocationTargetException e) {\n throw new C3885b(\"Oops!\", e.getTargetException());\n } catch (Throwable th) {\n throw new C3885b(\"Oops!\", th);\n }\n }", "public PrimObject perform(PrimObject arg1, String selector) {\n return perform0(selector, arg1);\n }", "protected void invokeMethod(MetaMethod method) {\n Class callClass = method.getInterfaceClass();\n boolean useInterface = false;\n if (callClass == null) {\n callClass = method.getCallClass();\n }\n else {\n useInterface = true;\n }\n String type = BytecodeHelper.getClassInternalName(callClass.getName());\n String descriptor = BytecodeHelper.getMethodDescriptor(method.getReturnType(), method.getParameterTypes());\n\n // System.out.println(\"Method: \" + method);\n // System.out.println(\"Descriptor: \" + descriptor);\n\n if (method.isStatic()) {\n loadParameters(method, 3);\n cv.visitMethodInsn(INVOKESTATIC, type, method.getName(), descriptor);\n }\n else {\n cv.visitVarInsn(ALOAD, 2);\n helper.doCast(callClass);\n loadParameters(method, 3);\n cv.visitMethodInsn((useInterface) ? INVOKEINTERFACE : INVOKEVIRTUAL, type, method.getName(), descriptor);\n }\n\n helper.box(method.getReturnType());\n }", "<T> T callMethod(Object obj, String name, Class<T> resultType, Object... args)\n throws ScriptRunnerException;", "public Object proceed(Object[] args) throws Throwable;", "protected abstract Object invokeInContext(MethodInvocation paramMethodInvocation)\r\n/* 111: */ throws Throwable;", "public static Object invoke(Method arg0, Object arg1, Object[] arg2, Fiber ???)\n/* */ throws Pausable, IllegalAccessException, IllegalArgumentException, InvocationTargetException\n/* */ {\n/* 258 */ Object localObject1 = ???;Fiber f = ((Fiber)localObject1).task.fiber;", "public Object invokeArrayArgs(String name, Object[] argsArray) throws Exception;", "public Object proceed() throws Throwable {\n if (joinPoint!=null) {\n return joinPoint.proceed();\n }\n return method.invoke(myObject, args);\n }", "@Override\n\tpublic Object invoke(MethodInvocation arg0) throws Throwable {\n\t\tSystem.out.println(\"The name of the method that is getting executed is :\"+arg0.getMethod().getName());\n\t\tObject[] args=arg0.getArguments();\n\t\tSystem.out.println(\"First argument:\"+args[0]);\n\t\tSystem.out.println(\"Second argument:\"+args[1]);\n\t\tObject ret=arg0.proceed();\n\t\treturn ret;\n\t}", "@Override\n\t\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\t\tif (method.getDeclaringClass().equals(Object.class))\n\t\t\t\tthrow new IllegalStreamGraphException(\"Call to Object method \"+method+\" through portal\", sender);\n\n\t\t\t//We probably don't have access to the message interface, but we\n\t\t\t//need to call its methods anyway. This might fail under a security\n\t\t\t//manager, or if the interface is somehow security sensitive to the\n\t\t\t//Java platform(?).\n\t\t\tmethod.setAccessible(true);\n\n\t\t\tfor (Worker<?, ?> recipient : recipients) {\n\t\t\t\tMessageConstraint constraint = constraints.get(recipient);\n\t\t\t\tassert constraint != null;\n\n\t\t\t\t//Queue up the message at the recipient.\n\t\t\t\tMessage message = new Message(method, args, constraint.getDeliveryTime(Workers.getExecutions(sender)));\n\t\t\t\tWorkers.sendMessage(recipient, message);\n\t\t\t}\n\n\t\t\t//Methods on the portal interface return void.\n\t\t\treturn null;\n\t\t}", "public static void main(String[] args) {\n\t\t\n\t\tObject a = new ClassObj();\n\t\t ((A) a).Calling();\n\t\t \n\n\t}", "static <T, U extends T> U invoke(\r\n\t\t\t@Nonnull Object o, \r\n\t\t\t@Nonnull String methodPrefix, \r\n\t\t\t@Nonnull Class<T> paramType, \r\n\t\t\t@Nonnull U value) {\r\n\t\tif (o == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"o is null\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tMethod m = o.getClass().getMethod(methodPrefix + paramType.getSimpleName(), paramType);\r\n\t\t\tm.invoke(o, value);\r\n\t\t} catch (NoSuchMethodException ex) {\r\n\t\t\tthrow new IllegalArgumentException(ex);\r\n\t\t} catch (IllegalAccessException ex) {\r\n\t\t\tthrow new IllegalArgumentException(ex);\r\n\t\t} catch (InvocationTargetException ex) {\r\n\t\t\tthrow new IllegalArgumentException(ex);\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "public static Object invokeMethod(Method method, Object target) {\n return invokeMethod(method, target, new Object[0]);\n }", "private Object getValueObject(Object object) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException{\n\t\tObject value = this.methodGet.invoke(object, null);\n\t\treturn value;\n\t}", "public ObjectType callMethod(String methodName, ObjectType... args) {\n\t\t// getting the member\n\t\tObjectType member = getProperty(methodName);\n\t\t//check if exists\n\t\tif (member.isUndefined())\n\t\t\t//call hosted one instead if not exist\n\t\t\treturn callHostedMethod(\"_\", methodName, args);\n\t\t\n\t\t//calling the function\n\t\treturn member.invoke(this, args);\n\t}", "public abstract Object[] callMethod(IComputerAccess computer, ILuaContext context, int method,\n\t\t\t\tObject[] arguments) throws Exception;", "public void execute( I18n i18n, Object[] args ) throws Throwable\n {\n scriptObjectMirror.callMember( methodName, args );\n }", "public static Object invokeRestrictedMethod(Object obj, Class<?> theClass, String methodName,\n Object[] params, Class[] paramTypes)\n throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException,\n InvocationTargetException {\n Method method = theClass.getDeclaredMethod(methodName, paramTypes);\n Object result;\n\n boolean wasAccessible = method.isAccessible();\n method.setAccessible(true);\n if (params == null) {\n result = method.invoke(obj);\n } else {\n result = method.invoke(obj, params);\n }\n method.setAccessible(wasAccessible);\n return result;\n }", "public static Object invoke(String methodName, Object o, Object... params) {\n\t\treturn invoke(getMethod(methodName, o.getClass()), o, params);\n\t}", "@Override\r\n public Object invoke(Object proxy, Method method, Object[] args) throws Throwable\r\n {\r\n HashSet<IInterceptor> interceptors;\r\n\r\n // Instantiation of the desired service\r\n if(implementation != null) {\r\n try {\r\n instance = InstanceManager.getInstance(implementation);\r\n\r\n // Cascade injection\r\n EJBInjector.inject(instance);\r\n }\r\n catch (Exception e) {\r\n e.printStackTrace();\r\n throw new ImpossibleAllocationException();\r\n }\r\n }\r\n\r\n // Get interceptors\r\n interceptors = InterceptorManager.getInterceptors(instance, method);\r\n\r\n // Before\r\n for(IInterceptor interceptor : interceptors) {\r\n interceptor.before(instance, method, args);\r\n }\r\n\r\n Object methodReturn = null;\r\n Throwable exceptionReturn = null;\r\n\r\n try {\r\n methodReturn = method.invoke(instance, args);\r\n } catch (InvocationTargetException e) {\r\n exceptionReturn = e.getTargetException();\r\n }\r\n\r\n // After\r\n for(IInterceptor interceptor : interceptors) {\r\n interceptor.after(instance, method, methodReturn, exceptionReturn, args);\r\n }\r\n\r\n // If there has been an exception, throw it\r\n if(exceptionReturn != null) {\r\n throw exceptionReturn;\r\n }\r\n\r\n return methodReturn;\r\n }", "@Override\n public Type tryPerformCall(final Type... args) {\n if (params.length != args.length) {\n return null;\n }\n for (int i = 0; i < args.length; ++i) {\n if (!args[i].canConvertTo(params[i])) {\n return null;\n }\n }\n return ret;\n }", "@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args)\n\t\t\tthrows Throwable {\n\t\tSystem.out.println(\"before log\");\n\t\tObject o = method.invoke(target, args);\n\t\tSystem.out.println(\"after log\");\n\t\treturn o;\n\t}", "public void visitInvoke(Quad obj) {\n if (TRACE_INTRA) out.println(\"Visiting: \"+obj);\n Invoke.getMethod(obj).resolve();\n jq_Method m = Invoke.getMethod(obj).getMethod();\n ProgramLocation mc = new ProgramLocation.QuadProgramLocation(method, obj);\n if (m == joeq.Runtime.Arrays._multinewarray) {\n // special case: multi-dimensional array.\n RegisterOperand dest = Invoke.getDest(obj);\n if (dest != null) {\n Register dest_r = dest.getRegister();\n // todo: get the real type.\n jq_Type type = PrimordialClassLoader.getJavaLangObject().getArrayTypeForElementType();\n Node n = ConcreteTypeNode.get(type, new QuadProgramLocation(method, obj));\n setRegister(dest_r, n);\n }\n return;\n }\n \n this.methodCalls.add(mc);\n jq_Type[] params = m.getParamTypes();\n ParamListOperand plo = Invoke.getParamList(obj);\n Assert._assert(m == joeq.Runtime.Arrays._multinewarray || params.length == plo.length(),\n obj + \" calling \" + m + \": params.length: \" + params.length + \", plo: \" + plo);\n// System.out.println(\"plo: \" + plo);\n for (int i=0; i<params.length; ++i) {\n if (!INCLUDE_PRIMITIVE_TYPES && !params[i].isReferenceType()\n /*|| params[i].isAddressType()*/\n ) continue;\n Assert._assert(plo.get(i) != null, \"Element \" + i + \" of plo \" + plo + \" is bogus\");\n Register r = plo.get(i).getRegister();\n passParameter(r, mc, i);\n }\n if (INCLUDE_PRIMITIVE_TYPES || m.getReturnType().isReferenceType()\n /*&& !m.getReturnType().isAddressType()*/\n )\n {\n RegisterOperand dest = Invoke.getDest(obj);\n if (dest != null) {\n Register dest_r = dest.getRegister();\n ReturnValueNode n = (ReturnValueNode)callToRVN.get(mc);\n if (n == null) {\n callToRVN.put(mc, n = new ReturnValueNode(mc));\n passedAsParameter.add(n);\n }\n setRegister(dest_r, n);\n }\n }\n // exceptions are handled by visitExceptionThrower.\n }", "public Object transform(Object input) {\n if (input == null) {\n return null;\n }\n try {\n Class cls = input.getClass();\n Method method = cls.getMethod(iMethodName, iParamTypes);\n return method.invoke(input, iArgs);\n \n } catch (NoSuchMethodException ex) {\n throw new TransformerException(\"InvokerTransformer: The method '\" + iMethodName + \"' on '\" + input.getClass() + \"' does not exist\");\n } catch (IllegalAccessException ex) {\n throw new TransformerException(\"InvokerTransformer: The method '\" + iMethodName + \"' on '\" + input.getClass() + \"' cannot be accessed\");\n } catch (InvocationTargetException ex) {\n throw new TransformerException(\"InvokerTransformer: The method '\" + iMethodName + \"' on '\" + input.getClass() + \"' threw an exception\", ex);\n }\n }", "public abstract void execute(Serializable obj);", "public Object invoke(String name, Object[] arguments, String[] types) throws Exception {\n return null;\n }", "protected Object doInvoke( Object instance, List<String> parameterNames,\n Object[] parameterValues ) throws IllegalArgumentException,\n IllegalAccessException, InvocationTargetException,\n ActionExecutionException {\n if (log.isInfoEnabled()) {\n if (!actionName.matches(\"Internal.*Operations.*\")\n && !actionName.startsWith(\"InternalProcessTalker\")) {\n log.info(\"Executing '\" + actionName + \"' with arguments \"\n + StringUtils.methodInputArgumentsToString(parameterValues));\n } else {\n // internal action\n if (log.isDebugEnabled())\n log.debug(\"Executing '\" + actionName + \"' with arguments \"\n + StringUtils.methodInputArgumentsToString(parameterValues));\n }\n }\n\n return method.invoke(instance, parameterValues);\n }", "Object invoke(Object reqest) throws IOException, ClassNotFoundException,\n InvocationTargetException, IllegalAccessException, IllegalArgumentException;", "public PrimObject perform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, PrimObject arg5, String selector) {\n return perform0(selector, arg1, arg2, arg3, arg4, arg5);\n }", "public PrimObject perform(PrimObject arg1, PrimObject arg2, String selector) {\n return perform0(selector, arg1, arg2);\n }", "public PrimObject superPerform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, PrimObject arg5, String selector) {\n return perform0s(selector, arg1, arg2, arg3, arg4, arg5);\n }", "public static InvocationExpression invoke(Expression expression, Expression arguments[]) { throw Extensions.todo(); }", "public static Object invokeMethod(Object receiver, String name, Object... args) {\n try {\n Class<?> clazz = receiver.getClass();\n /*Class<?>[] parameterTypes = new Class<?>[args.length];\n for (int i=0; i<args.length; i++) {\n parameterTypes[i] = args[i].getClass();\n }*/\n \n Method[] methods = clazz.getDeclaredMethods();\n for (Method method : methods) {\n if (method.getName().equals(name)) {\n Class<?>[] parameterTypes = method.getParameterTypes();\n if (parameterTypes.length == args.length) {\n int matched = 0;\n for (; matched<parameterTypes.length; matched++) {\n if (!isAcceptableParameter(parameterTypes[matched], args[matched])) {\n break;\n }\n }\n if (matched == parameterTypes.length) {\n method.setAccessible(true);\n return method.invoke(receiver, args);\n }\n }\n }\n }\n\n /*Method method = clazz.getDeclaredMethod(name, parameterTypes);\n if (method != null) {\n method.setAccessible(true);\n return method.invoke(receiver, args);\n }*/\n } catch (Exception e) {\n Logger.w(\"Reflection\", \"invokeMethod \" + name + \" \" + e.toString());\n }\n return null;\n }", "public PrimObject perform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, PrimObject arg5, PrimObject arg6, String selector) {\n return perform0(selector, arg1, arg2, arg3, arg4, arg5, arg6);\n }", "public Object\n call() throws Exception { \n final ConstArray<?> argv;\n try {\n argv = deserialize(m,\n ConstArray.array(lambda.getGenericParameterTypes()));\n } catch (final BadSyntax e) {\n /*\n * strip out the parsing information to avoid leaking\n * information to the application layer\n */ \n throw (Exception)e.getCause();\n }\n \n // AUDIT: call to untrusted application code\n final Object r = Reflection.invoke(bubble(lambda), target,\n argv.toArray(new Object[argv.length()]));\n return Fulfilled.isInstance(r) ? ((Promise<?>)r).call() : r;\n }", "public static Object invokeMethod(Class clazz, Object instance, String methodName, Class[] argTypes, Object[] args) throws ReflectionException {\n\t\ttry {\n\t\t\tMethod m = clazz.getDeclaredMethod(methodName, argTypes);\n\t\t\tm.setAccessible(true);\n\t\t\treturn m.invoke(instance, args);\n\t\t} catch (InvocationTargetException | NoSuchMethodException | IllegalArgumentException | IllegalAccessException | SecurityException ex) {\n\t\t\tthrow new ReflectionException(ex);\n\t\t}\n\t}", "public PrimObject superPerform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, PrimObject arg5, PrimObject arg6, String selector) {\n return perform0s(selector, arg1, arg2, arg3, arg4, arg5, arg6);\n }", "public PrimObject perform(PrimObject arg1, PrimObject arg2, PrimObject arg3, String selector) {\n return perform0(selector, arg1, arg2, arg3);\n }", "private void doSomething(Object object) {\n\n }", "public Object HandleMethod(Object... args)\r\n {\r\n //throw new Exception();\r\n \treturn null;\r\n }", "@Override\n public void setObject(Object arg0)\n {\n \n }", "public Object invoke(Object proxy, Method method, Object[] args)\n throws Throwable {\n\n if( HUD.class.equals(proxy.getClass()) ){\n if( \"correctVisibility\".equals(method.getName()) ){\n fixedHUD = true; \n }\n return method.invoke( realHUD, args );\n }\n else if( EnvironmentalControls.class.equals( proxy.getClass())){\n if( \"normalize\".equals( method.getName() )){\n fixedEnvironment = true;\n }\n return method.invoke( realEnvironmentalControls, args );\n }\n else\n throw new NoSuchMethodException();\n }", "public static Object perform(Object receiver, String methodName, Object[] arguments, Class[] types) throws DiagnoseException {\r\n if (\"this\".equals(methodName))\r\n return receiver;\r\n Object result = null;\r\n try {\r\n Class methodClass = receiver.getClass();\r\n if (methodClass == Class.class) // receiver is class?\r\n methodClass = (Class) receiver;\r\n Method method = methodClass.getMethod(methodName, types);\r\n result = method.invoke(receiver, arguments);\r\n } catch (IllegalArgumentException e) {\r\n throw new DiagnoseException(\"IllegalArgumentException invoking \" + methodName, e);\r\n } catch (IllegalAccessException e) {\r\n throw new DiagnoseException(\"IllegalAccessException invoking \" + methodName, e);\r\n } catch (InvocationTargetException e) {\r\n throw new DiagnoseException(\"InvocationTargetException invoking \" + methodName, e);\r\n } catch (SecurityException e) {\r\n throw new DiagnoseException(\"SecurityException invoking \" + methodName, e);\r\n } catch (NoSuchMethodException e) {\r\n throw new DiagnoseException(\"NoSuchMethodException invoking \" + methodName, e);\r\n }\r\n return result;\r\n }", "public Object invoke(Object proxy, Method method, Object[] args) throws Throwable \r\n\t\t{\r\n\r\n\t\t\tif(logger.isDebugEnabled() ) {\r\n\t\t\t\tlogger.debug(\"Calling \"+method.getDeclaringClass()+\".\"+method.getName()+\" on Object \"+ this);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// execute\r\n\t\t\ttry {\r\n\t\t\t\tif( method.getDeclaringClass().equals(IPhynixxConnection.class)\t&&\r\n\t\t\t\t\tmethod.equals(PooledDynaProxyFactory.closeMethod)) \r\n\t\t\t\t{\r\n\t\t\t\t\tif (this.getPooledConnectionFactory()==null) {\r\n\t\t\t\t\t\tthrow new IllegalStateException(\"No PooledConnectionFactoryx assigned and the current proxy could not be released\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.close();\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t} else if ( method.getDeclaringClass().equals(IPhynixxConnectionProxy.class)|| \r\n\t\t\t\t method.getDeclaringClass().equals(IPhynixxConnection.class)|| \r\n\t\t\t\t method.getDeclaringClass().equals(IPhynixxConnectionHandle.class) || \r\n\t\t\t\t\t method.getDeclaringClass().equals(IPooledConnection.class)\t ) \r\n\t\t\t\t{\r\n\t\t\t\t\treturn method.invoke(this,args);\r\n\t\t\t\t} else {\t\r\n\t\t\t\t\tObject target= this.getConnection();\r\n\t\t\t\t\t// all methods of the interfaces joins the TX \r\n\t\t\t\t\tthis.fireConnectionRequiresTransaction();\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject obj= method.invoke(target,args);\t\t\t\t\t\r\n\t\t\t\t\treturn obj; \r\n\t\t\t\t} \r\n\t\t\t} catch( InvocationTargetException targetEx) {\r\n\t\t\t\tthrow new DelegatedRuntimeException(\"Invoke \"+method, targetEx.getTargetException());\r\n\t\t\t} catch( Throwable ex) {\r\n\t\t\t\tthrow new DelegatedRuntimeException(\"Invoke \"+method, ex);\r\n\t\t\t}\r\n\t\t}", "@ReflectiveMethod(name = \"E\", types = {})\n public void E(){\n NMSWrapper.getInstance().exec(nmsObject);\n }", "public void callMethod( String objectName, String methodName, Object[] parameters, Class[] parameterTypes )\n throws MraldException\n {\n try\n {\n Class mraldObject = ( Class )Class.forName( objectName ).newInstance();\n Method method = mraldObject.getMethod( methodName, parameterTypes );\n method.invoke( mraldObject, parameters );\n }\n catch ( ClassNotFoundException e )\n {\n throw new MraldException(e, messageObject);\n }\n catch ( NoSuchMethodException e )\n {\n throw new MraldException(e, messageObject);\n }\n catch ( IllegalAccessException e )\n {\n throw new MraldException(e, messageObject);\n }\n catch ( InstantiationException e )\n {\n throw new MraldException(e, messageObject);\n }\n catch ( InvocationTargetException e )\n {\n throw new MraldException(e, messageObject);\n }\n }", "protected abstract void action(Object obj);", "void callMethod(String name, Object... args)\n throws ScriptRunnerException;", "public PrimObject superPerform(PrimObject arg1, PrimObject arg2, PrimObject arg3, String selector) {\n return perform0s(selector, arg1, arg2, arg3);\n }", "public PrimObject superPerform(PrimObject arg1, String selector) {\n return perform0s(selector, arg1);\n }", "public void callMoveFromObject() {\r\n try { \r\n if (internalObject instanceof BObject) { \r\n Class [] params = {};\r\n BMethod move = ((BObject) internalObject).getBClass().getDeclaredMethod(\"move\",params);\r\n if (move != null)\r\n move.invoke((BObject)internalObject, params);\r\n }\r\n } catch (Exception e) {\r\n // nothing\r\n //e.printStackTrace();\r\n }\r\n\r\n }", "public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\n\t\t\tif (method.getName().equals(\"getCurrentSession\")) {\n\t\t\t\t// Handle getCurrentSession method: return transactional Session, if any.\n\t\t\t\ttry {\n\t\t\t\t\treturn SessionFactoryUtils.doGetSession((SessionFactory) proxy, false);\n\t\t\t\t}\n\t\t\t\tcatch (IllegalStateException ex) {\n\t\t\t\t\tthrow new HibernateException(ex.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (method.getName().equals(\"equals\")) {\n\t\t\t\t// Only consider equal when proxies are identical.\n\t\t\t\treturn (proxy == args[0] ? Boolean.TRUE : Boolean.FALSE);\n\t\t\t}\n\t\t\telse if (method.getName().equals(\"hashCode\")) {\n\t\t\t\t// Use hashCode of SessionFactory proxy.\n\t\t\t\treturn new Integer(hashCode());\n\t\t\t}\n\n\t\t\t// Invoke method on target SessionFactory.\n\t\t\ttry {\n\t\t\t\treturn method.invoke(this.target, args);\n\t\t\t}\n\t\t\tcatch (InvocationTargetException ex) {\n\t\t\t\tthrow ex.getTargetException();\n\t\t\t}\n\t\t}", "public static InvocationExpression invoke(Expression expression, Iterable<Expression> arguments) { throw Extensions.todo(); }", "@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tSystem.out.println(\"do some work before proxy\");\n\t\tObject invokeObj = method.invoke(delegator, args);\n\t\tSystem.out.println(\"do some work after proxy\");\n\t\treturn invokeObj;\n\t}", "public void mo21891a(Object[] objArr) {\n for (int i = 0; i < this.f24563a; i++) {\n try {\n this.f24565c[i].invoke(this.f24564b[i], objArr);\n } catch (Exception e) {\n e = e;\n if (e instanceof InvocationTargetException) {\n e = ((InvocationTargetException) e).getCause();\n }\n if (!(e instanceof RuntimeException)) {\n e.printStackTrace();\n } else {\n throw ((RuntimeException) e);\n }\n }\n }\n }", "public PrimObject superPerform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, String selector) {\n return perform0s(selector, arg1, arg2, arg3, arg4);\n }" ]
[ "0.7336068", "0.72032773", "0.71906817", "0.6947508", "0.6841266", "0.6827934", "0.68218666", "0.67962635", "0.6679865", "0.6566415", "0.65591806", "0.64903104", "0.6464097", "0.6424559", "0.63317055", "0.6290706", "0.6246831", "0.6231713", "0.6227459", "0.61617434", "0.6153314", "0.61047536", "0.6094571", "0.60610443", "0.60299635", "0.5988637", "0.59427166", "0.5906052", "0.59023", "0.58975565", "0.58970714", "0.58815897", "0.5869722", "0.5869722", "0.58614546", "0.58324015", "0.5827685", "0.5827225", "0.5820407", "0.5818064", "0.581063", "0.57833546", "0.5779928", "0.5758669", "0.5756727", "0.5719347", "0.5710906", "0.57034665", "0.5701688", "0.56778026", "0.5671114", "0.5668083", "0.5652435", "0.56346375", "0.5633022", "0.56299543", "0.5624421", "0.56193835", "0.5600362", "0.55931896", "0.559048", "0.5582354", "0.5575386", "0.5567711", "0.5566207", "0.55659497", "0.5563359", "0.5560603", "0.55358136", "0.5533511", "0.5523249", "0.5522264", "0.55208784", "0.5516517", "0.5508798", "0.55001175", "0.5494392", "0.5492473", "0.548652", "0.5479146", "0.54710585", "0.54689103", "0.54600096", "0.5457474", "0.5453637", "0.54480463", "0.5446036", "0.5440584", "0.54346496", "0.54270095", "0.5426072", "0.54209733", "0.5409157", "0.5393502", "0.538973", "0.53810906", "0.5375444", "0.5370631", "0.53602916", "0.5353904" ]
0.73160434
1
TODO: parse this from the user or generate randomly
public static void main(String[] args) { int[] a = { 63, 92, 51, 92, 39, 15, 43, 89, 36, 69, 40, 16, 23, 2, 29, 91, 57, 43, 55, 22 }; computeSubarray(a); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getRandomName(){\n return rndString.nextString();\n }", "private static String genString(){\n final String ALPHA_NUMERIC_STRING =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n int pwLength = 14; //The longer the password, the more likely the user is to change it.\n StringBuilder pw = new StringBuilder();\n while (pwLength-- != 0) {\n int character = (int)(Math.random()*ALPHA_NUMERIC_STRING.length());\n pw.append(ALPHA_NUMERIC_STRING.charAt(character));\n }\n return pw.toString(); //\n }", "public String genUserToken()\n\t{\n\t\tString token = \"\";\n\t\tfor (int i = 0; i < 16; i++)\n\t\t{\n\t\t\ttoken = token + tokenGenerator.nextInt(10);\n\t\t}\n\t\treturn token;\n\t}", "protected String generateUserID() {\n Random r = new Random();\n String userID;\n do {\n int randomIDnum = r.nextInt(999999999) + 1;\n userID = String.valueOf(randomIDnum);\n } while (this.userMap.containsKey(userID));\n return userID;\n }", "public String generateMP() {\n\t\t\tString characters = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789~`!@#$%^&*()-_=+[{]}\\\\|;:\\'\\\",<.>/?\";\n\t\t\tString pwd = RandomStringUtils.random(15, 0, 0, false, false, characters.toCharArray(), new SecureRandom());\n\t\t\treturn pwd;\n\t\t}", "String selectRandomSecretWord();", "private String RandomGoal() {\n\t\tList<String> list = Arrays.asList(\"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"t\", \"t\");\n\t\tRandom rand = new Random();\n\t\tString randomgoal = list.get(rand.nextInt(list.size()));\n\n\t\treturn randomgoal;\n\t}", "public static String randomEmail() {\n\t\tRandom randomGenerator = new Random(); \n\t\tint randomInt = randomGenerator.nextInt(10000); \n\t\treturn \"username\"+ randomInt +\"@yopmail.com\"; \n\t}", "private static String getRandString() {\r\n return DigestUtils.md5Hex(UUID.randomUUID().toString());\r\n }", "private String generateToken () {\n SecureRandom secureRandom = new SecureRandom();\n long longToken;\n String token = \"\";\n for ( int i = 0; i < 3; i++ ) {\n longToken = Math.abs( secureRandom.nextLong() );\n token = token.concat( Long.toString( longToken, 34 + i ) );//max value of radix is 36\n }\n return token;\n }", "private String getID()\n {\n String chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_+{}|:<>?/.,';][=-`~\";\n String id = \"\";\n int max = new Random().nextInt((16 - 12) + 1)+12;\n for(int i=0;i<16;i++)\n {\n int r = new Random().nextInt((chars.length()-1 - 0) + 1)+0;\n id+=chars.charAt(r);\n }\n return id;\n }", "private void random() {\n\n\t}", "private\tString\tgenerateUUID(){\n\t\treturn\tUUID.randomUUID().toString().substring(0, 8).toUpperCase();\n\t}", "private String beautiplyFileNameGenerator() {\r\n\t\t// /randomvalue between 0 to 9\r\n\t\tString name = \"beautiply\" + new Random().nextInt(9) + \".png\";\r\n\r\n\t\treturn name;\r\n\t}", "private String getRandomString() {\n\t\tStringBuilder salt = new StringBuilder();\n\t\tRandom rnd = new Random();\n\t\twhile (salt.length() <= 5) {\n\t\t\tint index = (int) (rnd.nextFloat() * SALTCHARS.length());\n\t\t\tsalt.append(SALTCHARS.charAt(index));\n\t\t}\n\t\tString saltStr = salt.toString();\n\t\treturn saltStr;\n\t}", "private static int getSecretNum(int arg1) {\n Random rand = new Random();\n return rand.nextInt(UPPERBOUND)+1; //make range 1-100\n }", "public void studIdGenr()\n {\n \tthis.studentID = (int)(Math.random() * (2047300 - 2047100 + 1) + 2047100);\n }", "public String generateToken(String username) {\n\t\tString token = username;\n\t\tLong l = Math.round(Math.random()*9);\n\t\ttoken = token + l.toString();\n\t\treturn token;\n\t}", "private String getToken() {\n\t\tString numbers = \"0123456789\";\n\t\tRandom rndm_method = new Random();\n String OTP = \"\";\n for (int i = 0; i < 4; i++)\n {\n \tOTP = OTP+numbers.charAt(rndm_method.nextInt(numbers.length()));\n \n }\n return OTP;\n\t}", "protected static String generateToken()\n\t{\n\t\treturn UUID.randomUUID().toString();\n\t}", "protected String random(String value) {\n \t\treturn value + new Random().nextInt(100);\n \t}", "Randomizer getRandomizer();", "private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }", "public static String generateRandomUsername() {\n final String randomFirst = Long.toHexString(Double.doubleToLongBits(Math\n .random()));\n final String randomSecond = Long.toHexString(Double.doubleToLongBits(Math\n .random()));\n final String randomThird = Long.toHexString(Double.doubleToLongBits(Math\n .random()));\n String userName = randomFirst + randomSecond + randomThird;\n\n userName = userName.substring(0, 10) + \"@ngetestmail.com\";\n\n return userName;\n }", "private final String getRandomString() {\n StringBuffer sbRan = new StringBuffer(11);\n String alphaNum = \"1234567890abcdefghijklmnopqrstuvwxyz\";\n int num;\n for (int i = 0; i < 11; i++) {\n num = (int) (Math.random() * (alphaNum.length() - 1));\n sbRan.append(alphaNum.charAt(num));\n }\n return sbRan.toString();\n }", "private String randomName() {\n\n String name = this.names.get(intRandom(names.size() - 1));\n return name;\n }", "private static String smsCode() {\n\t\t\tString random=new Random().nextInt(1000000)+\"\";\r\n\t\t\treturn random;\r\n\t\t}", "protected String generateReviewID() {\n Random r = new Random();\n String restID;\n do {\n int randomIDnum = r.nextInt(999999999) + 1;\n restID = String.valueOf(randomIDnum);\n } while (this.reviewMap.containsKey(restID));\n return restID;\n }", "private String generateOtp() {\n\t\tString otp = TOTP.getOTP(SECRET);\n\t\treturn otp;\n\t}", "static String getSaltString() {\n String SALTCHARS = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\";\n StringBuilder salt = new StringBuilder();\n Random rnd = new Random();\n while (salt.length() < 18) { // length of the random string.\n int index = (int) (rnd.nextFloat() * SALTCHARS.length());\n salt.append(SALTCHARS.charAt(index));\n }\n String saltStr = salt.toString();\n return saltStr;\n }", "private String createFakeName() {\n final int firstLowercaseLetterAscii = 97;\n final int lowercaseLetterRange = 25;\n\n // Maximum length random name = 20\n final int minNameLength = 4;\n int randomNameLength = (random.nextInt(17)) + minNameLength;\n\n // Algorithm to generate the random name\n StringBuilder randomName = new StringBuilder();\n for (int i = 0; i < randomNameLength; i++) {\n char randChar = (char) (random.nextInt(lowercaseLetterRange + 1) + firstLowercaseLetterAscii);\n randomName.append(randChar);\n }\n return randomName.toString();\n }", "private void generateStateToken() {\n\t\tSecureRandom sr1 = new SecureRandom();\n\t\tstateToken = \"google;\" + sr1.nextInt();\n\t}", "protected String generateKey(){\n Random bi= new Random();\n String returnable= \"\";\n for(int i =0;i<20;i++)\n returnable += bi.nextInt(10);\n return returnable;\n }", "long getUserCode(String username) {\n\n return (long) (Math.random() * 99999999999l);\n }", "private void generateStateToken() {\n\t\tSecureRandom sr1 = new SecureRandom();\n\n\t\tstateToken = \"google;\" + sr1.nextInt();\n\t}", "public void generateNewSecret() {\r\n \r\n //Get Random Number With Correct Digits\r\n int intRand = randomNumberGenerator.nextInt((int)(Math.pow(10, numDigits) - Math.pow(10, numDigits - 1))) + (int)Math.pow(10, numDigits - 1);\r\n \r\n //Set To String\r\n String strRand = String.valueOf(intRand);\r\n \r\n //Set Value\r\n secretNumber = convertNumToDigitArray(strRand);\r\n \r\n }", "public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status=(ch[who].status)-1;\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\r\n\t}", "public String generate() {\r\n String result = RandomStringUtils.random(8,true,true);\r\n return result;\r\n }", "public static String createRandomNum() {\n\t\tlogger.debug(\"Navigating to URL\");\n\t\tString num = \"\";\n\t\ttry {\n\t\t\tnum = RandomStringUtils.random(4, true, true);\n\t\t\tlogger.debug(\"Generated Random Number is : \" + num);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn num;\n\t}", "private String generateRandomId(){\n\n //creates a new Random object\n Random rnd = new Random();\n\n //creates a char array that is made of all the alphabet (lower key + upper key) plus all the digits.\n char[] characters = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\".toCharArray();\n\n //creates the initial, empty id string\n String id = \"\";\n\n /*Do this 20 times:\n * randomize a number from 0 to the length of the char array, characters\n * add the id string the character from the index of the randomized number*/\n for (int i = 0; i < 20; i++){\n id += characters[rnd.nextInt(characters.length)];\n }\n\n //return the 20 random chars long string\n return id;\n\n }", "public static String generateNewUserId() {\r\n\t\tDate date = new Date();\r\n\t\treturn String.format(\"%s-%s\", UUID.randomUUID().toString(),\r\n\t\t\t\tString.valueOf(date.getTime()));\r\n\t}", "public static String randomeString() {\n\t\t\tString generatedString = RandomStringUtils.randomAlphabetic(8);\n\t\t\tSystem.out.println(generatedString);\n\t\t\treturn generatedString;\n\t\t\t\n\t\t}", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }", "public static void main(String[] args) {\n\t\tint num=(int) (Math.random()*36 ) ;\r\n\t\tSystem.out.println( Math.random());WW\r\n\t\tSystem.out.println(num);\r\n\t}", "public static String randomIdentifier() {\r\n\t\tfinal String lexicon = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\r\n\t\tfinal java.util.Random rand = new java.util.Random();\r\n\t\t// consider using a Map<String,Boolean> to say whether the identifier is\r\n\t\t// being used or not\r\n\t\tfinal Set<String> identifiers = new HashSet<String>();\r\n\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\twhile (builder.toString().length() == 0) {\r\n\t\t\tint length = rand.nextInt(5) + 5;\r\n\t\t\tfor (int i = 0; i < length; i++)\r\n\t\t\t\tbuilder.append(lexicon.charAt(rand.nextInt(lexicon.length())));\r\n\t\t\tif (identifiers.contains(builder.toString()))\r\n\t\t\t\tbuilder = new StringBuilder();\r\n\t\t}\r\n\t\treturn builder.toString();\r\n\t}", "public String generatePassword() {\n List<char[]> allAllowed = new ArrayList<>();\n if (uppercase) {\n allAllowed.add(UPPERCASE);\n }\n if (lowercase) {\n allAllowed.add(LOWERCASE);\n }\n if (numbers) {\n allAllowed.add(NUMBERS);\n }\n if (symbols) {\n allAllowed.add(SYMBOLS);\n }\n\n //Use cryptographically secure random number generator\n Random random = new SecureRandom();\n\n StringBuilder password = new StringBuilder();\n\n // Random chars\n for (int i = 0; i < length - allAllowed.size(); i++) {\n char[] characterType = allAllowed.get(random.nextInt(allAllowed.size()));\n password.append(characterType[random.nextInt(characterType.length)]);\n }\n\n //Ensure password policy is met by inserting required random chars in random positions\n for (char[] category : allAllowed) {\n password.insert(random.nextInt(password.length()), category[random.nextInt(category.length)]);\n }\n return password.toString();\n }", "private int randomAddress() {\n\t\tint randomAddressId = (int) (Math.random() * 603);\n\t\treturn randomAddressId;\n\t}", "public String randomName() {\n return RandomStringUtils.randomAlphabetic( 10 );\n }", "private String newPassword() {\n\t\tchar[] vet = new char[10];\n\t\tfor(int i=0; i<10; i++) {\n\t\t\tvet[i] = randomChar();\n\t\t}\n\t\treturn new String(vet);\n\t}", "private static String getRandomType(){\r\n int index = r.nextInt(typeOfRooms.length);\r\n return typeOfRooms[index];\r\n }", "private String getRandomUniqueId() {\r\n return \"WEBSOCKET.\" + new Random().nextInt(100);\r\n }", "public String generateUserPin(String name, String summary) {\n\t\t// Hash the name and description together\n\t\tint integerPin = (name.hashCode() + summary.hashCode());\n\t\tString stringPin = Integer.toString(integerPin);\n\t\tLog.d(TAG, stringPin);\n\t\tint pinLength = stringPin.length();\n\t\tString pin = \"PIN\";\n\t\tint salt = 0;\n\t\tif (pinLength > 4) {\n\t\t\t// If the pin length is greater than 4, truncate it to the first 4\n\t\t\t// characters\n\t\t\tCharacter one = stringPin.charAt(0);\n\t\t\tCharacter two = stringPin.charAt(1);\n\t\t\tCharacter three = stringPin.charAt(2);\n\t\t\tCharacter four = stringPin.charAt(3);\n\t\t\tString truncatedHash = \"\" + one + two + three + four;\n\t\t\tLog.d(TAG, truncatedHash);\n\t\t\t// Generate a random 4 digit salt\n\t\t\tsalt = (int) ((Math.random() * 9999) + 1);\n\t\t\t// Concatenate these to form the pin\n\t\t\tpin = truncatedHash + \"\" + salt;\n\t\t\tLog.d(TAG, pin);\n\t\t}\n\t\tif (pinLength <= 4) {\n\t\t\t// Find out how long the salt needs to be\n\t\t\tint saltLength = ((LENGTHOFPIN - pinLength) - 1);\n\t\t\t// String to hold the number of digits to multiply math.random by\n\t\t\tString saltyString = \"\";\n\t\t\tfor (int i = 0; i <= (saltLength); i++) {\n\t\t\t\tsaltyString += \"9\";\n\t\t\t}\n\t\t\tLog.d(TAG, saltyString);\n\t\t\t// Generate the random salt\n\t\t\tsalt = (int) ((Math.random() * Integer.parseInt(saltyString)) + 1);\n\t\t\tpin = stringPin + \"\" + salt;\n\t\t\tLog.d(TAG, pin);\n\t\t}\n\n\t\treturn pin;\n\t}", "private static String accountNumberGenerator() {\n char[] chars = new char[10];\n for (int i = 0; i < 10; i++) {\n chars[i] = Character.forDigit(rnd.nextInt(10), 10);\n }\n return new String(chars);\n }", "public static String generateToken() {\n return new Generex(PatternValidator.TOKEN_PATTERN).random();\n }", "String generateUID();", "public static final String getRandomId() {\r\n return (\"\" + Math.random()).substring(2);\r\n }", "protected String generateRestaurantID() {\n Random r = new Random();\n String restID;\n do {\n int randomIDnum = r.nextInt(999999999) + 1;\n restID = String.valueOf(randomIDnum);\n } while (this.restaurantMap.containsKey(restID));\n return restID;\n }", "T getRandomAllowedValue();", "static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }", "public String getRandomCustName() {\n\t\tString generatedCustName = RandomStringUtils.randomAlphanumeric(Integer.valueOf(custNameLimit));\n\t\tlog.info(\"generatedCustName: \" + generatedCustName);\n\t\treturn generatedCustName;\n\t}", "public String createPassword() {\n String alphabet= \"abcdefghijklmnopqrstuvwxyz\";\n int count=0;\n String randomPass=\"\";\n while (count<this.length){\n randomPass+=alphabet.charAt(this.randomNumber.nextInt(alphabet.length()-1));\n count++;\n }\n return randomPass;\n }", "public String getRandomName() {\n\t\t\n\t\tRandom r = new Random();\n\t\t\n\t\t//pick a firstname and surname based on length of array\n\t\tString fname = firstName[r.nextInt(firstName.length)];\n\t\tString sname = surName[r.nextInt(surName.length)];\n\t\t\n\t\treturn ( fname + \" \" + sname);\n\t\t\n\t}", "@Override\r\n\tpublic String getFortune() {\n\t\tString[] s= {\"have a nice day :)\",\r\n\t\t\t\t\"attaboy!\",\r\n\t\t\t\t\"good fortune to you <3\"\r\n\t\t};\r\n\t\tint x;\r\n\t\tx=((int)(Math.random()*9))%3;\r\n\t\t\r\n\t\treturn s[x] ;\r\n\t}", "private int _randomCode () {\n Random random = new Random();\n code = random.nextInt(999999);\n return code;\n }", "private String getRandName() {\n int firstName = (int)(Math.random() * listFirstNames.length);\n String fName = listFirstNames[firstName].trim();\n int lastName = (int)(Math.random() * listLastNames.length);\n String lName = listLastNames[lastName].trim();\n return ( fName + \" \" + lName ); \n }", "public static Ally getRandomRep () {\n return republican[(int) (Math.random() * republican.length)];\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tSupplier<String>randomPassword=()->{\r\n\t\t\t\r\n\t\t\tString otp=\"\";\r\n\t\t\t\r\n\t\t\tSupplier<Integer>digit=()->(int)(Math.random()*10);\r\n\t\t\t\r\n\t\t\tString symbol=\"ABCDEFGHIJKLMNOPQRSTUVWXYZ@#$\";\r\n\t\t\tSupplier<Character>character=()->symbol.charAt((int)(Math.random()*29));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<=8;i++) {\r\n\t\t\t\tif(i%2==1) {\r\n\t\t\t\t\totp=otp+digit.get();\r\n\t\t\t\t}else {\r\n\t\t\t\t\totp=otp+character.get();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn otp;\r\n\t\t};\r\n\t\t\r\n\t\tSystem.out.println(\"Your 8 digit otp is :\"+randomPassword.get());\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tfinal String letters = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*\";\n\n\t\t// b. have a random number generator\n\n\t\tRandom rand = new Random();\n\n\t\t// c. use the random generator to get the charAt a random location based on the\n\t\t// number of characters\n\n\t\tchar char1 = letters.charAt(rand.nextInt(letters.length()));\n\t\tchar char2 = letters.charAt(rand.nextInt(letters.length()));\n\t\tchar char3 = letters.charAt(rand.nextInt(letters.length()));\n\t\tchar char4 = letters.charAt(rand.nextInt(letters.length()));\n\t\tchar char5 = letters.charAt(rand.nextInt(letters.length()));\n\t\tchar char6 = letters.charAt(rand.nextInt(letters.length()));\n\t\tchar char7 = letters.charAt(rand.nextInt(letters.length()));\n\t\tchar char8 = letters.charAt(rand.nextInt(letters.length()));\n\t\t// d. concatenate the characters together to get the word\n\n\t\tSystem.out.println(\"\" + char1 + char2 + char3 + char4 + char5 + char6 + char7 + char8);\n\t\tSystem.out.println(String.valueOf(char1)+String.valueOf(char2)+String.valueOf(char3)+String.valueOf(char4)+String.valueOf(char5)+String.valueOf(char6)+String.valueOf(char7)+String.valueOf(char8));\n\t\t\t\t\n\n\t\t\n\t\t\n\t\t//Build a username generator absed on lastname and firstname inputs from the user\n\t\t//Conditions: \n\t\t//\t\t\tNo more than 1 username can include either the whole first or last name\n\t\t//\t\t\tAt least 1 username should include numbers\n\t\t//\t\t\tThere needs to be a random component in at least 2 name generations\n\t\t//\t\t\tThe usernames should adhere to the characteristics of typical usernames\n\t\t\n\t\tfinal String numbers = \"1234567890.\";\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Type in your first name > \");\n\t\tString fName = scan.nextLine();\n\t\tSystem.out.println(\"Type in your last name > \");\n\t\tString lName = scan.nextLine();\n\t\t\n\t\tString part1 = fName.toLowerCase().substring(0, rand.nextInt(fName.length()));\n\t\tString part2 = lName.toLowerCase().substring(0, rand.nextInt(lName.length()));\n\t\t\n\t\tSystem.out.println(\"A possible username \" + part1+part2);\n\t\t\n\t\tString part3 = String.valueOf(numbers.charAt(rand.nextInt(numbers.length())));\n\t\tString part4 = String.valueOf(numbers.charAt(rand.nextInt(numbers.length())));\n\t\t\n\t\tSystem.out.println(\"A possible username \" + part1+part2+part3+part4);\n\t\t\n\t\t//Take inputs and Build a decision tree that decides whether to issue a loan or not\n\t\t\n\t\t//https://www.brcommunity.com/images/articles/b624-2full.png\n\t\t\t\n\n\t}", "static String getRandomAgentName() {\n\n if (_names.isEmpty() && count == 0) {\n initializeNames();\n count++;\n }\n int i = (int) (Math.random() * _names.size());\n String name = \"\";\n try {\n name = _names.remove(i);\n } catch (Exception e) {\n System.out.println(\"NS Error: No more names to hand out.\");\n }\n\n return name;\n }", "public String getRandomUser(TreeMap<String, Double> userlist)\r\n \t{\r\n \t\t//TODO key und value tauschen und bei gleicher punktzahl vorauswahltreffen\r\n \t\tTreeMap<Double, String> randomTreeMap = createRandomTreeMap(createPreselectionMap(userlist));\r\n \t\tfindRandomItem(randomTreeMap);\r\n \t\treturn randomTreeMap.firstEntry().getValue();\r\n \t}", "protected String generateStateId() {\n\t\treturn ServiceBus.crypto.getRandomString();\n\t}", "private String generateRandomHexString(){\n return Long.toHexString(Double.doubleToLongBits(Math.random()));\n }", "private String generateId(String input) {\n\t\treturn StringUtil.hashSHA256(input);\n\t}", "public String generateGUID() {\n Random randomGenerator = new Random();\n String hash = DigestUtils.shaHex(HASH_FORMAT.format(new Date())\n + randomGenerator.nextInt());\n return hash.substring(0, GUID_LEN);\n }", "private String generateUID()\n {\n String uid;\n int nbAccounts = this.getNumberOfAccounts();\n String host = this.registration.getHost();\n int nbAccountsForHost = this.getNbAccountForHost(host);\n \n if (nbAccounts == 0 || (this.isModification() && nbAccounts == 1) ||\n nbAccountsForHost == 0 || (this.isModification() && nbAccountsForHost == 1))\n {\n // We create the first account or we edit the onlyone\n // Or we create the first account for this server or edit the onlyone\n uid = host;\n }\n else\n {\n uid = host + \":\" + this.registration.getPort();\n }\n \n return uid;\n }", "private String creatNewText() {\n\t\tRandom rnd = new Random();\n\t\treturn \"Some NEW teXt U9\" + Integer.toString(rnd.nextInt(999999));\n\t}", "String getNewRandomTag() {\n\t\tbyte t[] = new byte[tagLength];\n\t\tfor (int i = 0; i < tagLength; i++) {\n\t\t\tt[i] = (byte) rand('a', 'z');\n\t\t}\n\t\treturn new String(t);\n\t}", "public static String getRandomName()\n {\n int index = Utility.randomWithRange(0, AWESOME_NAMES.length - 1);\n return AWESOME_NAMES[index];\n }", "private int generateSecret() {\n int secret = secretGenerator.nextInt();\n while (secretToNumber.containsKey(secret)) {\n secret = secretGenerator.nextInt();\n }\n return secret;\n }", "public static String generateName() {\n return new Generex(PatternValidator.NAME_PATTERN).random();\n }", "public String generateRandomEmail() {\n return generateLocalPart() + \"@test\" + getRandNumber() + \".com\";\n }", "public static String getDynamicSalt() {\n\t\treturn RandomStringUtils.randomAlphanumeric(8);\n\t}", "@Override\n\tpublic String getRandomFortune() {\n\t\treturn null;\n\t}", "public String generatePassword(int size) {\n\n int wordIndx = getRandomWord();\n String newPassword = threeCharWords.get(wordIndx);\n return newPassword + getRandomNumber(size);\n\n\n }", "public static String makeRandomID() {\n UUID uuid = UUID.randomUUID();\n return uuid.toString();\n }", "public static String generatePatientName(){\n\n\t\tString retName = \"\";\t// return this string\n\n\t\t// Seed random generator\n\t\tRandom generator = new Random();\n\n\t\tint length = getRandomBetween(5,6);\n\n\t\t// CVCCVC or VCCVCV\n\t\tif(getRandomBetween(1,2) < 2)\n\t\t{\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName = retName.toUpperCase();\n\t\t\tretName += getRandomVowel();\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName += getRandomConsonant();\n\t\t\tif (length >= 5) { retName += getRandomVowel(); }\n\t\t\tif (length >= 6) { retName += getRandomConsonant(); }\n\t\t}\n\t\telse\n\t\t{\n\t\t\tretName += getRandomVowel();\n\t\t\tretName = retName.toUpperCase();\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName += getRandomConsonant();\n\t\t\tretName += getRandomVowel();\n\t\t\tif (length >= 5) { retName += getRandomConsonant(); }\n\t\t\tif (length >= 6) { retName += getRandomVowel(); }\n\t\t}\n\n\t\treturn retName;\n\t}", "public int generateSessionID(){\r\n SecureRandom randsession = new SecureRandom();\r\n return randsession.nextInt(1234567890);\r\n }", "public NameGenerator() {\n this.rand = new Random();\n }", "private Trouser getRandomTrouser() {\n String selectQuery = \"SELECT * FROM \" + TrouserEntry.TABLE_NAME + \" ORDER BY RANDOM() LIMIT 1\";\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // Extract shirt details\n if (c.moveToFirst()) {\n int trouserId = c.getInt((c.getColumnIndex(TrouserEntry._ID)));\n String trouserPath = c.getString(c.getColumnIndex(TrouserEntry.IMG_PATH));\n\n c.close();\n return new Trouser(trouserId, trouserPath);\n } else {\n return null;\n }\n }", "private String generate_uuid() {\n\n int random_length = 12;\n int time_length = 4;\n\n byte[] output_byte = new byte[random_length+time_length];\n\n //12 byte long secure random\n SecureRandom random = new SecureRandom();\n byte[] random_part = new byte[random_length];\n random.nextBytes(random_part);\n System.arraycopy(random_part, 0, output_byte, 0, random_length);\n\n //merged with 4 less significant bytes of time\n long currentTime = System.currentTimeMillis();\n for (int i=random_length; i<output_byte.length; i++){\n output_byte[i] = (byte)(currentTime & 0xFF);\n currentTime >>= 8;\n }\n\n //Converted to base64 byte\n String output = Base64.encodeBase64String(output_byte);\n Log.debug_value(\"UUID\", output);\n return output;\n\n }", "private int generateRandomNumber() {\n\t\treturn new SplittableRandom().nextInt(0, 3);\n\t}", "public String generateQuestion(){\r\n qType = rand.nextInt(2);\r\n if (qType ==0)\r\n return \"Multiple choice question.\";\r\n else\r\n return \"Single choice question.\";\r\n }", "private static long getRandAccount() {\n int bid = rand.nextInt(noOfBranches);\n return getRandAccountFromBranch(bid);\n }", "private int randomHelper() {\n\t\tRandom rand = new Random();\n\t\tint randomNum = rand.nextInt((10000 - 1) + 1) + 1;\n\t\treturn randomNum;\n\t}", "@Override\n public String next() {\n Random random = new Random();\n return fruits[random.nextInt(3)];\n }", "@Override\r\n\tpublic String randString(int n) {\n\t\tString base=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\r\n\t\treturn randString(n, base);\r\n\t}", "public String generateString() {\n\t\tint maxLength = 9;\n\t\tRandom random = new Random();\n\t\tStringBuilder builder = new StringBuilder(maxLength);\n\n\t\t// Looping 9 times, one for each char\n\t\tfor (int i = 0; i < maxLength; i++) {\n\t\t\tbuilder.append(ALPHABET.charAt(random.nextInt(ALPHABET.length())));\n\t\t}\n\t\t// Generates a random ID that has may have a quintillion different combinations\n\t\t// (1/64^9)\n\t\treturn builder.toString();\n\t}", "private String getNext() {\n \t\t\n \t\tArrayList<String> reel = game.getType().getReel();\n \t\t\n \t\tRandom generator = new Random();\n \t\tint id = generator.nextInt(reel.size());\n \t\t\n \t\tString nextID = reel.get(id);\n \t\tString[] idSplit = nextID.split(\"\\\\:\");\n \t\t\n \t\tif (idSplit.length == 2) {\n \t\t\treturn nextID;\n \t\t}else {\n \t\t\tString newID;\n \t\t\tnewID = Integer.parseInt(idSplit[0]) + \":0\";\n \t\t\t\n \t\t\treturn newID;\n \t\t}\n \t}", "private synchronized int generateUserID(){\r\n\t\tint i;\r\n\t\tfor(i = 1; users.containsKey(i);i++);\r\n\t\treturn i;\r\n\t}", "public static int getRandomNumberString() {\n // It will generate 6 digit random Number.\n // from 0 to 999999\n Random rnd = new Random();\n int number = rnd.nextInt(999999);\n\n // this will convert any number sequence into 6 character.\n return number;\n }" ]
[ "0.68984455", "0.6715882", "0.6673125", "0.6644144", "0.65995276", "0.6565454", "0.64369005", "0.64265394", "0.6389413", "0.6386433", "0.6310042", "0.6261815", "0.6259879", "0.623206", "0.6228623", "0.622705", "0.6197454", "0.6174711", "0.61533576", "0.61469394", "0.613673", "0.6126238", "0.61182755", "0.60807836", "0.60647684", "0.6045442", "0.6042744", "0.60401905", "0.60315895", "0.6028951", "0.60081095", "0.60019064", "0.6001201", "0.5998191", "0.59929526", "0.5980772", "0.59628415", "0.59519696", "0.5950801", "0.5949396", "0.59465295", "0.593858", "0.5932877", "0.59316754", "0.5930118", "0.5921425", "0.5919638", "0.59192115", "0.59148455", "0.5889914", "0.5888905", "0.5887212", "0.58810943", "0.5872946", "0.5868414", "0.5864283", "0.5854892", "0.5840762", "0.583185", "0.582146", "0.5805892", "0.58055544", "0.57908356", "0.5789605", "0.57843655", "0.57818544", "0.57699203", "0.57697743", "0.5769192", "0.57559186", "0.5752299", "0.57504475", "0.57497334", "0.57463336", "0.57447875", "0.5737682", "0.573752", "0.5734544", "0.57307523", "0.5725077", "0.5724196", "0.57217956", "0.5716706", "0.5707967", "0.5706282", "0.57003796", "0.56967175", "0.56955683", "0.56952447", "0.56923354", "0.56907177", "0.5689194", "0.56860954", "0.56850505", "0.5684545", "0.56843275", "0.5682685", "0.56820256", "0.56769323", "0.56705225", "0.5667402" ]
0.0
-1
File epubFile = new File("/home/matt/test/pg64454images.epub"); File epubFile = new File("/home/matt/test/test.epub");
public static void main(final String[] args) throws Exception { File epubFile = new File("/home/matt/test/1984.epub"); File targetDir = new File("/home/matt/test/target6"); List<EpubDocument> docs = parse(epubFile, targetDir, file -> System.out.println("Processing " + file.getAbsolutePath()), true); if(!docs.isEmpty()) { File cleanFile = new File("/home/matt/test/target6/combined.html"); try(FileOutputStream fos = new FileOutputStream(cleanFile)) { docs.get(0).writeCleanDocument(fos, true); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetFile() {\n System.out.println(\"getFile with valid path of existing folder with 2 subfiles\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"+fSeparator+\"Users\"+fSeparator+\n \"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"+fSeparator+\"Texnologia2\"+fSeparator+\"Images\";\n FilesDao instance = new FilesDao();\n File expResult = new File(path+fSeparator+\"testImg.jpg\");\n File result;\n try{\n result = instance.getFile(path);\n }catch(EntryException ex){\n result = null;\n }\n assertEquals(\"Some message\",expResult, result);\n }", "@Test\n public void file() throws UnsupportedEncodingException {\n String fileName = createFile(FILE_BODY, \"/file/create/in\");\n\n // Read the file\n RestAssured\n .get(\"/file/get/in/\" + Paths.get(fileName).getFileName())\n .then()\n .statusCode(200)\n .body(equalTo(FILE_BODY));\n }", "String getFile();", "String getFile();", "String getFile();", "private static File erstelleDatei(String pfad)\r\n\t{\r\n\t\tFile f = new File(pfad);\r\n\t\tif (!f.exists())\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tf.createNewFile();\r\n\t\t\t} catch (IOException e)\r\n\t\t\t{\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn f;\r\n\t}", "public static void main(String[] args) {\n File file = new File (\"tesEt.txt\");\n // Path file = Paths.get(\"test.txt\");\n // System.out.println(file.get);\n System.out.println(file.getAbsoluteFile());\n System.out.println(file.isAbsolute());\n System.out.println(file.exists());\n \n // try {\n // // File.createTempFile(\"prefix\", \"suffix\");\n // sy\n // } catch (IOException e) {\n // // TODO Auto-generated catch block\n // e.printStackTrace();\n // }finally\n // {\n // System.out.println(\"hehehehe\");\n // }\n // file.\n\n }", "File getFile();", "File getFile();", "public Files files();", "@Test\n public void testAddFileAddsFile(){\n \n FileStorageService fss = DatabaseServiceTestTool.createFileStorageService();\n \n String user1 = DatabaseServiceTestTool.usernames[0];\n String user2 = DatabaseServiceTestTool.usernames[1];\n \n assertTrue(fss.getFilesFor(user1).size() == 0);\n assertTrue(fss.getFilesFor(user2).size() == 0);\n \n try {\n InputStream is = prepareRandomInputStream();\n fss.addFile(user1, \"mypgn.pgn\", is);\n is.close();\n \n } catch (IOException e) {\n e.printStackTrace();\n fail();\n }\n \n assertTrue(fss.getFilesFor(user1).size() == 1);\n assertEquals(fss.getFilesFor(user1).get(0), \"mypgn.pgn\");\n \n //testing for a side effect now\n assertTrue(fss.getFilesFor(user2).size() == 0);\n \n DatabaseServiceTestTool.destroyFileStorageService(fss);\n }", "public void createFileObjects() {\n List<String> externalFiles = abbreviationsPreferences.getExternalJournalLists();\n externalFiles.forEach(name -> openFile(Paths.get(name)));\n }", "private File m20345e(String str) {\n return new File(m20344d(str));\n }", "public static void main(String[] args) {\n\t\tFile file = new File(\"test/a.txt\");\r\n\t\tFileUtil.createFile(file);\r\n\t\t/*if(! file.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tSystem.out.println(file.getAbsolutePath());\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t*/\r\n\t}", "public void testCreateFile() throws Exception {\n File input = new File(\"src/test/resources/reader/filesample.xml\");\n final URL testdata = input.toURI().toURL();\n reader.parse(testdata, creator);\n assertEquals(\"Did not create expected number of files\", 2, creator.filesCreated.size());\n MockContentCreator.FileDescription file = creator.filesCreated.get(0);\n try {\n file.data.available();\n TestCase.fail(\"Did not close inputstream\");\n } catch (IOException ignore) {\n // Expected\n }\n assertEquals(\"mimeType mismatch\", \"application/test\", file.mimeType);\n assertEquals(\"lastModified mismatch\", XmlReader.FileDescription.DATE_FORMAT.parse(\"1977-06-01T07:00:00+0100\"), new Date(file.lastModified));\n assertEquals(\"Could not read file\", \"This is a test file.\", file.content);\n\n }", "public File getFile();", "public File getFile();", "@Test\n public void saveFile() {\n\n // create a new file system object\n FileSystem sampleFileSystem = new FileSystem();\n\n // add our previously created Person Objects to the created Address Book\n ericAddressBook.add(Eric);\n ericAddressBook.add(Daniel);\n\n File sampleFile = new File(\"Address Book\");\n\n\n\n }", "public static List<EpubDocument> parse(final File epubFile,\n final File targetDir,\n final Consumer<File> fileConsumer,\n final boolean writeCombinedFile) throws IOException {\n unzip(epubFile, targetDir, fileConsumer);\n File metaDir = new File(targetDir, \"META-INF\");\n if(!metaDir.exists()) {\n throw new IOException(\"Missing 'META-INF' directory\");\n }\n\n File mimetypeFile = new File(targetDir, \"mimetype\");\n if(!mimetypeFile.exists()) {\n throw new IOException(\"Missing 'mimetype' file\");\n }\n\n String checkType = new String(Files.toByteArray(mimetypeFile), Charsets.US_ASCII);\n if(!supportedMimeTypes.contains(checkType.trim().toLowerCase())) {\n throw new IOException(String.format(\"Unsupported mime type, '%s'\", checkType));\n }\n\n List<File> rootFiles = rootFiles(metaDir);\n if(rootFiles.isEmpty()) {\n throw new IOException(\"At least one 'rootfile' must be present in the container\");\n }\n\n List<EpubDocument> documents = Lists.newArrayListWithExpectedSize(2);\n int count = 0;\n for(File file : rootFiles) {\n try(FileInputStream fis = new FileInputStream(file)) {\n Document packageDoc = Jsoup.parse(fis, Charsets.UTF_8.name(), \"\", Parser.xmlParser());\n Metadata metadata = new Metadata(packageDoc);\n Map<String, ManifestItem> files = manifestItems(file.getParentFile(), packageDoc);\n Spine spine = spine(packageDoc, files);\n if(!writeCombinedFile) {\n documents.add(new EpubDocument(metadata, spine, null));\n } else {\n final File combinedFile;\n if(count == 0) {\n combinedFile = new File(file.getParent(), \"combined.html\");\n } else {\n combinedFile = new File(file.getParent(), \"combined\" + count + \".html\");\n }\n EpubDocument document = new EpubDocument(metadata, spine, combinedFile);\n try(FileOutputStream fos = new FileOutputStream(combinedFile)) {\n document.writeCleanDocument(fos, false);\n }\n documents.add(document);\n }\n }\n count++;\n }\n return documents;\n }", "public static File getTestFile( String path )\r\n {\r\n return new File( getBasedir(), path );\r\n }", "private FileUtil() {}", "static File localFile(String path, String name) {\n\t\tFile f = new File(path, name.replace('*', 'X'));\n\t\treturn new File(f.getAbsolutePath()); /* make EVM use user.dir */\n\t}", "@Test\n public void testCreateDocumentWithContentStreamAndFileName() throws Exception {\n String filename = \"C:\\\\My Documents\\\\foo.txt\";\n ContentStream cs = new ContentStreamImpl(filename, \"text/plain\", Helper.FILE1_CONTENT);\n String id = objService.createDocument(repositoryId, createBaseDocumentProperties(\"bar.txt\", \"File\"),\n rootFolderId, cs, VersioningState.NONE, null, null, null, null);\n ObjectData data = getObject(id);\n assertEquals(id, data.getId());\n assertEquals(\"bar.txt\", getString(data, PropertyIds.NAME));\n assertEquals(\"bde9eb59c76cb432a0f8d02057a19923\", getString(data, NuxeoTypeHelper.NX_DIGEST));\n cs = objService.getContentStream(repositoryId, id, null, null, null, null);\n // check filename has been normalized\n assertEquals(\"foo.txt\", cs.getFileName());\n assertEquals(Helper.FILE1_CONTENT, Helper.read(cs.getStream(), \"UTF-8\"));\n }", "@Test\n public void createFile(){\n try\n {\n URI uri = new URI(\"http://www.yu.edu/documents/doc390\");//given the complete uri\n String path = uri.getAuthority() + this.disectURI(uri);//get the Path which is www.yu.edu\\documents\n File file = new File(baseDir.getAbsolutePath() + File.separator + path);//make a File with the full class path and with the \"URI Path\"\n Files.createDirectories(file.toPath());//create the directories we didn't have before, ie not apart of the baseDir\n\n File theFile = new File(file.getAbsolutePath() + File.separator + \"doc390.txt\");//create a new File with the document as the last piece\n //wrap in a try because if the file is already there than we don't need to create a file\n if(!theFile.exists())Files.createFile(theFile.toPath());//create this file in the computer\n\n //write to the file -- in the real application this is the writing of the json\n FileWriter fileWriter = new FileWriter(theFile);\n fileWriter.write(\"HaYom sishi BShabbos\");\n fileWriter.flush();\n fileWriter.close();\n\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }", "byte[] getFile(String filename) throws NoSuchFileException;", "File retrieveFile(String absolutePath);", "void getFile(String path, OutputStream stream) throws NotFoundException, IOException;", "static void testFichier(String rep){\n\t\tFile f = new File(rep);\n\t\t\n\t\t// Si le rep existe\n\t\tif(f.exists()){\n\t\t\t// on prend le contenu du rep sous forme de liste\n\t\t\tString[] contenu = f.list();\n\t\t\t// on parcours les fichiers/dossiers\n\t\t\tfor(int i=0; i<contenu.length; i++)\n\t\t\t{\n\t\t\t\tFile f2 = new File(rep,contenu[i]);\n\t\t\t\t// si c'est un sous répertoire\n\t\t\t\tif(f2.isDirectory()){\n\t\t\t\t\t// on affiche le nom du rep\n\t\t\t\t\tSystem.out.println(\"Dossier \" + contenu[i]);\n\t\t\t\t\t// Et on parcours son contenu par récursivité\n\t\t\t\t\ttestFichier(rep+\"/\"+contenu[i]);\n\t\t\t\t}\n\t\t\t\t// si c'est un fichier\n\t\t\t\telse\n\t\t\t\t\t// on affiche son nom\n\t\t\t\t\tSystem.out.println(\"\\tFichier \" + contenu[i]);\n\t\t\t}\n\t\t}\n\t}", "FileObject getFile();", "FileObject getFile();", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteURL evoSuiteURL0 = new EvoSuiteURL(\"http://xml.amazon.net/onca/xml3?t=popcornmonste2-20&dev-t=DSB0XDDW1GQ3S&.YBKYR[P|b=.YBKYR%5BP%7Cb&mode=.YBKYR[P|b&type=&page=\\\"90hR%xB!V_E&offer=\\\"90hR%xB!V_E&f=xml\");\n NetworkHandling.createRemoteTextFile(evoSuiteURL0, \"\\\"90hR%xB!V_E\");\n FileInputStream fileInputStream0 = fileUtil0.fetchGenericSearchFile(\".YBKYR[P|b\", \".YBKYR[P|b\", \".YBKYR[P|b\", \"\", \"\\\"90hR%xB!V_E\", \"\\\"90hR%xB!V_E\");\n assertNull(fileInputStream0);\n }", "public File getFile ();", "@SuppressWarnings(\"unused\")\r\n\tprivate static File createFile(String path) {\r\n\t\t\r\n\t\t// open the file\r\n\t\tFile currentFile = new File(path);\r\n\t\t\r\n\t\t\r\n\t\t// check if it is a valid file\r\n\t\tif (currentFile == null) {\r\n\t\t\tSystem.out.println(\"Could not create the file\");\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\r\n\t\t// hopefully things went perfect\r\n\t\treturn currentFile;\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tString path = \"Test1.pdf\";\n\t\t\n\n\t}", "private File createRefFile( File f )\n {\n \tfinal String refExtension = \".ref\";\n \n \tString origFileName = f.getName();\n \tint dotPos = origFileName.lastIndexOf( \".\" );\n \tString strippedFileName = origFileName.substring( 0, dotPos ); // filename without extension, and without the dot!\n \n \treturn FileHandler.getFile( new String( harvesterDirName + File.separator + strippedFileName + refExtension ) );\n }", "@Test\n public void testGetSubFiles() {\n System.out.println(\"getSubFiles from Existing path with 2 images\");\n String path = folder.toString()+fSeparator+\"Images\";\n FilesDao instance = new FilesDao();\n \n File firstImageFile = new File(path+fSeparator+\"testImg.jpg\");\n File secondImageFile = new File(path+fSeparator+\"testImg2.jpg\");\n List<URI> expResult = new ArrayList<URI>();\n expResult.add(firstImageFile.toURI());\n expResult.add(secondImageFile.toURI());\n List<URI> result;\n try{\n result = instance.getSubFiles(path);\n }catch(EntryException ex){\n result = null;\n }\n assertEquals(\"Some message\",expResult, result);\n }", "@Test\n public void testCreateFilePath() {\n System.out.println(\"createFilePath with realistic path\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"\n +fSeparator+\"Users\"+fSeparator+\"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"\n +fSeparator+\"Test1\";\n FilesDao instance = new FilesDao();\n boolean expResult = true;\n boolean result = instance.createFilePath(path);\n assertEquals(\"Some message\",expResult, result);\n }", "public void testGetFileIdWithWikiPageAndFileName() {\r\n\t\tInteger wikiPageId = 1045617;\r\n\t\tString fileName = \"test.gif\";\r\n\t\tInteger wikiAttachmentId = 1;\r\n\t\tPnWikiAttachment pnWikiAttachment = new PnWikiAttachment(wikiAttachmentId);\r\n\t\tpnWikiAttachment.setAttachmentName(fileName);\r\n\t\t\r\n\t\texpect(mockDao.getFileIdWithWikiPageAndFileName(wikiPageId, fileName)).andReturn(pnWikiAttachment);\r\n\t\treplay(mockDao);\r\n\t\t\r\n\t\tPnWikiAttachment pnWikiAttachment2 = service.getFileIdWithWikiPageAndFileName(wikiPageId, fileName);\r\n\t\tassertEquals(1, pnWikiAttachment2.getWikiAttachmentId().intValue());\r\n\t\tassertEquals(\"test.gif\", pnWikiAttachment2.getAttachmentName());\r\n\t\tverify(mockDao);\r\n\t}", "File openFile();", "public static void findFile() throws IOException {\n File newFile = new File(\"test.txt\");\n FileInputStream stream = new FileInputStream(newFile);\n }", "Path getTagBookFilePath();", "public static void main(String[] args) {\n\n\t\tFile fi = new File(\"C:/test_io\");\n\t\tif(fi.exists()) {\n\t\t\t\n\t\t\tSystem.out.println(\"exists!\");\n\t\t}else {\n\t\t\tSystem.out.println(\"new\");\n\t\t\tfi.mkdir();\n\t\t}\n\t\t\n\t\tFile fic1 = new File(fi, \"AA\");\n\t\tfic1.mkdir();\n\t\t\n\t\tFile fic2 = new File(\"C:/test_io\", \"BB\");\n\t\tfic2.mkdir();\n\t\t\n\t\tFile fitxt = new File(fic1,\"a.txt\");\n\t\t\n\t\ttry {//checked exception\n\t\t\tfitxt.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public File mo27407a(String str) {\n return new File(m20347f(str));\n }", "public File getFile(String url){\n String filename=String.valueOf(url.hashCode());\n //Another possible solution (thanks to grantland)\n //String filename = URLEncoder.encode(url);\n File f = new File(cacheDir, filename);\n return f;\n \n }", "public static void main(String[] args) {\n PdfFile pdfFile=new PdfFile(\"PDF File\");\n pdfFile.open();\n pdfFile.close();\n pdfFile.edit();\n WordFile wordFile=new WordFile(\"Word File\");\n wordFile.open();\n wordFile.close();\n wordFile.edit();\n JavaFile javaFile=new JavaFile(\"Java File\");\n javaFile.open();\n javaFile.close();\n javaFile.edit();\n\n }", "public void salvaPartita(String file) {\n\r\n }", "public void testFilesDirectoryAccessible() {\n File file = new File(rootBlog.getRoot(), \"files\");\n assertEquals(file, new File(rootBlog.getFilesDirectory()));\n assertTrue(file.exists());\n }", "public AppFile(AppFile aPar, WebFile aFile)\n{\n _parent = aPar; _file = aFile;\n}", "Path getContent(String filename);", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.fetchKeywordSearchFile(\"c(w\", \"U_w94([2tu\", \"popcornmonste2-20\", \"popcornmonste2-20\");\n fileUtil0.fetchBlendedSearchFile((String) null, \"cacheLife\");\n fileUtil0.fetchSimilarItems(\"SF*KdO/{3)AN:saQ[\", \"=E048F A6fmw7p6\");\n EvoSuiteURL evoSuiteURL0 = new EvoSuiteURL(\"http://xml.amazon.net/onca/xml3?t=popcornmonste2-20&dev-t=DSB0XDDW1GQ3S&KeywordSearch=&mode=popcornmonste2-20&type=Iz 6~/3ztsI&page=6&kX&f=xml\");\n NetworkHandling.createRemoteTextFile(evoSuiteURL0, \"pIIKg$f#s[uwS}eqYG\");\n fileUtil0.downloadBlendedSearchFile(\"SF*KdO/{3)AN:saQ[\", \"SF*KdO/{3)AN:saQ[\");\n fileUtil0.downloadKeywordSearchFile(\"\", \"popcornmonste2-20\", \"Iz 6~/3ztsI\", \"6&kX\");\n fileUtil0.fetchBNFile(\"\", (String) null, \"U_w94([2tu\");\n fileUtil0.downloadBrowseNodeFile(\"U_w94([2tu\", \"]pHI%@07}\", \"SF*KdO/{3)AN:saQ[\", \"\");\n fileUtil0.getASINFile(\"=E048F A6fmw7p6\", \"c(w\", (String) null, \"1n\");\n FileInputStream fileInputStream0 = fileUtil0.fetchGenericSearchFile(\"cacheLife\", \"pIIKg$f#s[uwS}eqYG\", \"nF+ad/p6I\", \"]pHI%@07}\", \"pIIKg$f#s[uwS}eqYG\", \"SF*KdO/{3)AN:saQ[\");\n assertNull(fileInputStream0);\n }", "File getDefaultFile();", "public File createFile(final String path) {\n return new com.good.gd.file.File(path);\n }", "@Test\n public void testFileInDirectoryFileDoesNotExists() {\n\n assertFalse(parent.fileInDirectory(\"file1\"));\n }", "public Photo(String fileName){\n\tthis.fileName=fileName;\n}", "public static void main(String[] args) {\n\t\tFile f = new File(\"/home/juedaiyuer\"+File.separator+\" woman.jpg\");\n\t\tSystem.out.println(f);\n\t}", "public File getFileForKey(String key) {\n\t\treturn new File(mRootDirectory, getFilenameForKey(key));\n\t}", "private static File openFile(String file) {\r\n \tFile currFile;\r\n\r\n \tfor (String directory : dir) {\r\n \t\tcurrFile = new File(directory.concat(file));\r\n \t\tif (currFile.exists() && !currFile.isDirectory()) {\r\n \t\t\treturn currFile;\r\n \t\t}\r\n \t}\r\n \treturn null;\r\n }", "public static File checkAndGetFile( final String file ) {\n if( file == null ) {\n throw new IllegalArgumentException( \"The parameter is empty.\\n parameter = \" + file );\n }\n final File fileObject = new File( file );\n\n if( !fileObject.exists() ) {\n throw new IllegalArgumentException( \"The file didn't exist.\\n parameter = \" + file );\n }\n if( fileObject.isDirectory() ) {\n throw new IllegalArgumentException( \"The file is a folder and not a PDF file.\\n parameter = \" + file );\n }\n\n return fileObject;\n }", "@Test\n public void testFileOpen() {\n \n FileHandler fileToTest;\n \n fileToTest = new FileHandler(\"Kalle.xml\");\n \n try {\n fileToTest.openFile();\n fail(\"Should have raised a fileNotFoundException\");\n }\n catch (FileNotFoundException fnf) {\n }\n }", "private static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);\n return imageF;\n }", "private static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);\n return imageF;\n }", "private File setUpPhotoFile() throws IOException {\n\n File f = createImageFile();\n mCurrentPhotoPath = f.getAbsolutePath();\n\n return f;\n }", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.getASINFile(\"86c;'p`tO`dCLV8\", \"86c;'p`tO`dCLV8\", \"86c;'p`tO`dCLV8\", \"86c;'p`tO`dCLV8\");\n fileUtil0.downloadGenericSearchFile(\"86c;'p`tO`dCLV8\", \"86c;'p`tO`dCLV8\", \"\", \"\", \"86c;'p`tO`dCLV8\", \"\");\n fileUtil0.downloadCart(\"\");\n fileUtil0.fetchASINFile((String) null, \"\", \"86c;'p`tO`dCLV8\", \"/\");\n fileUtil0.fetchThirdPartySearchFile(\"7-80D\\u0004s\", \"7-80D\\u0004s\", \"\", \"w/L*\");\n fileUtil0.downloadOneASINFile(\"\", \"\", \"\", \"Nr:8N=\", \"\");\n fileUtil0.getASINFile(\"\", \"http://xml.amazon.net/onca/xml3\", \"\", \"\");\n fileUtil0.deleteFile(\"\");\n fileUtil0.downloadBrowseNodeFile(\"\", \"\", \"\", \"http://xml.amazon.net/onca/xml3\");\n FileInputStream fileInputStream0 = fileUtil0.fetchGenericSearchFile(\"w/L*\", \"Nr:8N=\", \"\", \"Nr:8N=\", \"MS[_\", \"iM_YfaKBgvQ~Mwl\");\n assertNull(fileInputStream0);\n }", "public static void main(String[] args) {\n// file.getParentFile().mkdirs();\r\n// System.out.println(file.getParentFile().exists());\r\n\r\n String filePath = \"e:\\\\hello\";\r\n String filePath1 = \"e:\\\\_hello.txt\";\r\n String filePath2 = \"e:\\\\688885d3df6a19bbc8c827419650ca75(2)\";\r\n String filePath3 = \"e:\\\\688885d3df6a19bbc8c827419650ca75.jpg\";\r\n String filePath4 = \"e:\\\\ASP Export Web Service\";\r\n\r\n\r\n\r\n\r\n File file = new File(filePath);\r\n File file1 = new File(filePath2);\r\n File file2 = new File(filePath4);\r\n// try (\r\n// InputStream is = new BufferedInputStream(new FileInputStream(file));\r\n// InputStream is1 = new BufferedInputStream(new FileInputStream(file1));\r\n// InputStream is2 = new BufferedInputStream(new FileInputStream(file2));\r\n// ) {\r\n// AutoDetectParser parser = new AutoDetectParser();\r\n// Detector detector = parser.getDetector();\r\n// Metadata md = new Metadata();\r\n// md.add(Metadata.RESOURCE_NAME_KEY, filePath);\r\n// MediaType mediaType = detector.detect(is, md);\r\n// System.out.println(mediaType.toString());\r\n//\r\n// md.add(Metadata.RESOURCE_NAME_KEY, filePath2);\r\n// mediaType = detector.detect(is1, md);\r\n// System.out.println(mediaType.toString());\r\n//\r\n// md.add(Metadata.RESOURCE_NAME_KEY, filePath4);\r\n// mediaType = detector.detect(is2, md);\r\n// System.out.println(mediaType.toString());\r\n// }catch(IOException e){\r\n// e.printStackTrace();\r\n// }\r\n\r\n\r\n// MimeUtil2 mimeUtil = new MimeUtil2();\r\n// mimeUtil.registerMimeDetector(\"eu.medsea.mimeutil.detector.MagicMimeMimeDetector\");\r\n// String mimeType = MimeUtil2.getMostSpecificMimeType(mimeUtil.getMimeTypes(filePath)).toString();\r\n// System.out.println(mimeType);\r\n// String mimeType1 = MimeUtil2.getMostSpecificMimeType(mimeUtil.getMimeTypes(filePath1)).toString();\r\n// System.out.println(mimeType1);\r\n\r\n// String ext1 = URLConnection.guessContentTypeFromName(filePath);\r\n// System.out.println(ext1);\r\n// String ext2 = URLConnection.guessContentTypeFromName(filePath1);\r\n// System.out.println(ext2);\r\n\r\n// File file = new File(filePath);\r\n// File file1 = new File(filePath1);\r\n// try (\r\n// InputStream is = new BufferedInputStream(new FileInputStream(file));\r\n// InputStream is1 = new BufferedInputStream(new FileInputStream(file1));\r\n// ){\r\n// String mimeType = URLConnection.guessContentTypeFromStream(is);\r\n// System.out.println(mimeType);\r\n//\r\n// String mimeType1 = URLConnection.guessContentTypeFromStream(is1);\r\n// System.out.println(mimeType1);\r\n// }catch(IOException e){\r\n// e.printStackTrace();\r\n// }\r\n\r\n// FileDataSource ds = new FileDataSource(filePath);\r\n// String contentType = ds.getContentType();\r\n// System.out.println(\"1-The MIME type of the file e:\\\\hello is: \" + contentType);\r\n//\r\n// FileTypeMap fileTypeMap = FileTypeMap.getDefaultFileTypeMap();\r\n// String fileTypeMapST = fileTypeMap.getContentType(filePath);\r\n// System.out.println(\"2-The MIME type of the file e:\\\\hello is: \" + fileTypeMapST);\r\n//\r\n String extension = FilenameUtils.getExtension(filePath);\r\n System.out.println(\"3:>\"+extension+\"<\");\r\n String extension1 = FilenameUtils.getExtension(filePath1);\r\n System.out.println(\"4:>\"+extension1+\"<\");\r\n//\r\n// String extension2 = com.google.common.io.Files.getFileExtension(filePath);\r\n// System.out.println(\"5:>\"+extension2+\"<\");\r\n// String extension3 = com.google.common.io.Files.getFileExtension(filePath1);\r\n// System.out.println(\"6:>\"+extension3+\"<\");\r\n//\r\n// try{\r\n// java.nio.file.Path path4 = java.nio.file.Paths.get(filePath);\r\n// String extension4 = java.nio.file.Files.probeContentType(path4);\r\n// System.out.println(\"7:>\"+extension4+\"<\");\r\n// String extension5 = com.google.common.io.Files.getFileExtension(filePath1);\r\n// System.out.println(\"8:>\"+extension5+\"<\");\r\n// }catch(IOException e){\r\n// e.printStackTrace();\r\n// }\r\n//\r\n// File file6 = new File(filePath);\r\n// String s6 = new MimetypesFileTypeMap().getContentType(file6);\r\n// System.out.println(\"9:>\"+s6+\"<\");\r\n// File file7 = new File(filePath1);\r\n// String s7 = new MimetypesFileTypeMap().getContentType(file7);\r\n// System.out.println(\"10:>\"+s7+\"<\");\r\n }", "public void testCreateFileFilePersistenceException() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.createFile(VALID_FILELOCATION, DIRNAME);\r\n fail(\"if an exception occurs while performing the operation, throw FilePersistenceException\");\r\n } catch (FilePersistenceException e) {\r\n // good\r\n }\r\n try {\r\n filePersistence.createFile(VALID_FILELOCATION, READONLYFILENAME);\r\n fail(\"if an exception occurs while performing the operation, throw FilePersistenceException\");\r\n } catch (FilePersistenceException e) {\r\n // good\r\n }\r\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.downloadCart(\"Qjp&\");\n fileUtil0.downloadBrowseNodeFile(\"v{JQKX\", \"\", \"\\\"WN H5&\", (String) null);\n fileUtil0.renameFile(\"\", \"\\\"WN H5&\");\n fileUtil0.fetchKeywordSearchFile(\"all\", \"/\", \"Qjp&\", \"all\");\n fileUtil0.deleteFile(\"-\");\n FileInputStream fileInputStream0 = fileUtil0.fetchBNFile(\"\", \"Qjp&\", \"1u<(sV]8U{kw}jp%,n\");\n assertNull(fileInputStream0);\n }", "private void popAbout() {\n try {\n //File file=new File(filepath);\n Desktop.getDesktop().open(new java.io.File(\"about.pdf\"));\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(rootPane,\"File not found or supported\");\n }\n }", "void putFile(String filename, byte[] file) throws FileAlreadyExistsException;", "public static void main(String[] args) \n { \n try \n { \n FileInputStream Program9 = new FileInputStream(\"/downloads/except.txt\");\n Program9.toString();\n } \n catch (FileNotFoundException e) \n { \n System.out.println(\"File does not exist\"); \n } \n }", "private File createFilePictures() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String pictureName = \"BEER_\" + timeStamp + \"_\";\n File storageDir = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n pictureName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPicturePath = image.getAbsolutePath();\n return image;\n }", "public static File getFile(String key) {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\treturn new File(get(key));\n\t}", "@Test\r\n public void testReadWhenShared() {\n System.out.println(\"Test : Alice shares her file with Bob and Bob can read it\");\r\n System.out.println();\r\n String userId = \"Alice\";\r\n String filePath = \"/home/Alice/shared/Af1.txt\";\r\n String targetUserId = \"Bob\";\r\n String fileName = \"Af1.txt\";\r\n File file = new File (filePath, userId, fileName);\r\n List<File> fileList = FileList.getFileList();\r\n fileList.add(file);\r\n service.shareFile(userId, targetUserId, filePath);\r\n try {\r\n assertNotNull(service.readFile(targetUserId, filePath));\r\n } catch (Exception e) {\r\n assertFalse(\"Should not throw any exception\", true);\r\n }\r\n System.out.println();\r\n\r\n }", "int createFile(String pFileNamePath, String pContent, String pPath, String pRoot, boolean pOverride) throws RemoteException;", "public void testCreate () throws IOException {\n\t PDDocument document = new PDDocument(); \r\n\t \r\n\t //Saving the document\r\n\t document.save(\"./my_doc.pdf\");\r\n\t \r\n\t System.out.println(\"PDF created\"); \r\n\t \r\n\t //Closing the document \r\n\t document.close();\r\n\t}", "public void testFilenameCharacters () throws Throwable {\n assertEquals(\"/a%23b\", Uri.fromFile(new File(\"/a#b\")).getEncodedPath());\n\n //final AndroidFileSystem fs = (AndroidFileSystem)FileSystems.getDefault();\n Log.i(TAG, \"tree uri: \"+fs.getTreeDocumentUri(selected.resolve(\"a#b\")));\n\n final Path base = selected.resolve(getName());\n try {\n Files.createDirectory(base);\n assertTrue(Files.isDirectory(base));\n\n final Path a = Files.createFile(base.resolve(\"a.b\"));\n assertTrue(a.toString(), Files.isRegularFile(a));\n\n final Path b = Files.createFile(base.resolve(\"a#b\"));\n assertTrue(b.toString(), Files.isRegularFile(b));\n\n final Path c = Files.createFile(base.resolve(\"a%b\"));\n assertTrue(c.toString(), Files.isRegularFile(c));\n\n try (final DirectoryStream<Path> ds = Files.newDirectoryStream(base)) {\n final Set<Path> actual = new HashSet<>();\n for (final Path path : ds)\n assertTrue(\"duplicate: \"+path, actual.add(path));\n final Set<Path> expected = new HashSet<>(Arrays.asList(a, b, c));\n assertEquals(\"\", expected, actual);\n }\n }\n finally {\n Files.walkFileTree(base, Utils.DELETE_FILE_VISITOR);\n }\n }", "@Override\r\n\tpublic InputStream getFile(String filepath) throws FileSystemUtilException {\r\n\t\t\r\n\t\tthrow new FileSystemUtilException(\"000000\",null,Level.ERROR,null);\t\r\n\r\n\t}", "public FileTest() {\n }", "protected abstract InputStream getFile(final String path);", "private static File parsePath(String path) {\n\t\tpath = (path == null ? \"\" : path.trim());\n\t\tif (path.startsWith(\"file://\")) {\n\t\t\tpath = path.substring(\"file://\".length());\n\t\t} else if (path.startsWith(\"file:\")) { \n\t\t\tpath = path.substring(\"file:\".length());\t\n\t\t}\n\t\t\n\t\tif (path.length() == 0 || path.equals(\".\")) {\n\t\t\tpath = System.getProperty(\"user.dir\", \".\"); // CWD\n\t\t} else {\t\n\t\t\t// convert separators to native format\n\t\t\tpath = path.replace('\\\\', File.separatorChar);\n\t\t\tpath = path.replace('/', File.separatorChar);\n\t\t\t\n\t\t\tif (path.startsWith(\"~\")) {\n\t\t\t\t// substitute Unix style home dir: ~ --> user.home\n\t\t\t\tString home = System.getProperty(\"user.home\", \"~\");\n\t\t\t\tpath = home + path.substring(1);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new File(path);\n\t}", "File getFile() { return user_file; }", "public abstract String getFileLocation();", "@BeforeMethod\n public void setUp() throws Exception {\n ClassLoader classLoader = getClass().getClassLoader();\n mAnyZipFile = new ZipFileImpl();\n String resourceName = \"historia_de_la_vida_del_buscOn_llamado_don_pablos.epub\";\n URL resourceUrl = classLoader.getResource(resourceName);\n Path path = PathImpl.Companion.from(resourceUrl.getPath());\n mFile = FileImpl.Companion.from(path);\n }", "@Test\n public void testConstructor_Custom_Store_File() {\n\n File file = new File(\n System.getProperty(\"java.io.tmpdir\") + File.separator + \"oasis-list-testConstructor_Custom_Store_File\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n }", "public abstract File mo41088k();", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getASINFile(\"\", \"v<B(aXlp#d/?cL2Q??\", \"i@\", \"g_\");\n assertNull(file0);\n }", "public static void main(String[] args) {\n\n\t\tString filePath = FilePath.FILE_PATH;\n\t\t\n\t\ttry {\n\t\t\t// File 클래스는 자바에서 파일 및 폴더 객체를 다루는 클래스이다. \n\t\t\t// new File() : File 클래스의 인스턴스를 생성 \n\t\t\t// 실제 하드디스크에 물리적인 파일/폴더(디렉토리)를 생성하지 않는다. \n\t\t\t// 실제 파일/폴더(디렉토리)를 만들기 위해서는 File 클래스에 있는 함수를 호출해야 한다. \n\t\t\t// createNewFile(), mkdir(), mkdirs()\n\t\t\tFile f = new File(\"aaaaaa\");\n\t\t\tSystem.out.println(\"f >>> : \" + f);\n\t\t\tSystem.out.println(\"f.getName() >>> : \" + f.getName());\n\t\t\tboolean bf = f.createNewFile();\n\t\t\tSystem.out.println(\"bf >>> : \" + bf);\n\t\t\n\t\t\tboolean bdir = f.isDirectory();\n\t\t\tSystem.out.println(\"bdir >>> : \" + bdir);\n\t\t\tboolean bfile = f.isFile();\n\t\t\tSystem.out.println(\"bfile >>> : \" + bfile);\n\t\t\t\n\t\t\tString getPath = f.getPath(); // File에 입력된 경로 출력 \n\t\t\tSystem.out.println(\"getPath >>> : \" + getPath);\n\t\t\tString getAbsolutePath = f.getAbsolutePath(); // 현재경로 + 입력된 경로(연산되지 않은 경로)\n\t\t\tSystem.out.println(\"getAbsolutePath >>> : \" + getAbsolutePath);\n\t\t\tString getCanonicalPath = f.getCanonicalPath(); // 현재경로 + 입력된 경로(연산된 경로)\n\t\t\tSystem.out.println(\"getCanonicalPath >>> : \" + getCanonicalPath);\n\t\t\t\t\t\t\n\t\t\tFile f1 = new File(filePath + \"/\" + \"aaaaaa.txt\");\n\t\t\tSystem.out.println(\"f1 >>> : \" + f1);\n\t\t\tSystem.out.println(\"f1.getName() >>> : \" + f1.getName());\n\t\t\tboolean bf1 = f1.createNewFile();\n\t\t\tSystem.out.println(\"bf1 >>> : \" + bf1);\n\t\t\t\n\t\t\tboolean bdir1 = f1.isDirectory();\n\t\t\tSystem.out.println(\"bdir1 >>> : \" + bdir1);\n\t\t\tboolean bfile1 = f1.isFile();\n\t\t\tSystem.out.println(\"bfile1 >>> : \" + bfile1);\n\t\t\t\n\t\t\tString getPath1 = f1.getPath(); // File에 입력된 경로 출력 \n\t\t\tSystem.out.println(\"getPath1 >>> : \" + getPath1);\n\t\t\tString getAbsolutePath1 = f1.getAbsolutePath(); // 현재경로 + 입력된 경로(연산되지 않은 경로)\n\t\t\tSystem.out.println(\"getAbsolutePath1 >>> : \" + getAbsolutePath1);\n\t\t\tString getCanonicalPath1 = f1.getCanonicalPath(); // 현재경로 + 입력된 경로(연산된 경로)\n\t\t\tSystem.out.println(\"getCanonicalPath1 >>> : \" + getCanonicalPath1);\n\t\t\t\n\t\t}catch(Exception io) {\n\t\t\t\n\t\t}\t\t\n\t}", "VirtualFile getFile(String uuid);", "public static void main(String[] args) throws IOException{\n String fname =args[0];\n \n //pass the filename or directory name to File object\n File f = new File(fname);\n File f1 = new File(\"testABC.txt\");\n\n f.createNewFile();\n f1.createNewFile();\n \n //apply File class methods on File object\n System.out.println(\"File name :\"+f.getName());\n System.out.println(\"Path: \"+f.getPath());\n System.out.println(\"lastModified: \" +new java.util.Date(f.lastModified()));\n System.out.println(\"Absolute path: \" +f.getAbsolutePath());\n System.out.println(\"Canonical path: \" +f.getCanonicalPath());\n System.out.println(\"Parent:\"+f.getParent());\n System.out.println(\"Exists :\"+f.exists());\n if(f.exists())\n {\n System.out.println(\"Is writeable:\"+f.canWrite());\n System.out.println(\"Is readable:\"+f.canRead());\n System.out.println(\"Is a directory:\"+f.isDirectory());\n System.out.println(\"File Size in bytes \"+f.length());\n }\n\n System.out.println(\"Rename: \"+f.renameTo(f1));\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.renameFile(\"tX )E\", \"tX )E\");\n fileUtil0.downloadCart(\"tX )E\");\n EvoSuiteURL evoSuiteURL0 = new EvoSuiteURL(\"http://xml.amazon.net/onca/xml3?t=popcornmonste2-20&dev-t=DSB0XDDW1GQ3S&BrowseNodeSearch=1;XU-2`&mode=\\\\#^uu!B1x/lh-*M,)6&type=lite&page=There is no Properties File Setting to default&offer=new&f=xml\");\n NetworkHandling.createRemoteTextFile(evoSuiteURL0, \"tX )E\");\n fileUtil0.fetchKeywordSearchFile(\"+(jC + 3`\", \"#^uu!B1x/lh-*M,)6\", \"tX )E\", \"There is no Properties File Setting to default\");\n fileUtil0.downloadKeywordSearchFile(\"tX )E\", \"tX )E\", \"+(jC + 3`\", \"#^uu!B1x/lh-*M,)6\");\n MockFile.createTempFile(\"#^uu!B1x/lh-*M,)6\", \"tX )E\", (File) null);\n fileUtil0.downloadSimilaritesFile(\"tX )E\", \"lite\", \"tX )E\");\n ArrayList<String> arrayList0 = new ArrayList<String>();\n arrayList0.iterator();\n fileUtil0.downloadAccessoriesFile(\"+(jC + 3`\", arrayList0, \"There is no Properties File Setting to default\");\n fileUtil0.renameFile(\"1;XU-2`\", \"tX )E\");\n fileUtil0.downloadBrowseNodeFile(\"+(jC + 3`\", \"R\", \"+(jC + 3`\", \"+(jC + 3`\");\n fileUtil0.downloadBlendedSearchFile(\"1;XU-2`\", \"#^uu!B1x/lh-*M,)6\");\n fileUtil0.renameFile(\"@Yly^-s.@l\", \"tX )E\");\n fileUtil0.downloadSimilaritesFile(\"@Yly^-s.@l\", \"+(jC + 3`\", \"http://xml.amazon.net/onca/xml3\");\n fileUtil0.downloadBrowseNodeFile(\"tX )E\", \"tX )E\", \"http://xml.amazon.net/onca/xml3\", \"1;XU-2`\");\n fileUtil0.downloadOneASINFile(\"#^uu!B1x/lh-*M,)6\", \"'d&Andc.-pE]$E]0\\t\", \"\", \"tX )E\", \"Jk=S(2?.}+~aac+SeU\");\n fileUtil0.downloadGenericSearchFile(\"#^uu!B1x/lh-*M,)6\", \"'d&Andc.-pE]$E]0\\t\", \"\", \"http://xml.amazon.net/onca/xml3\", \"zsWYd.xqZ4/?(dPNX\", \"R\");\n FileInputStream fileInputStream0 = fileUtil0.fetchBNFile(\"#^uu!B1x/lh-*M,)6\", \"1;XU-2`\", \"There is no Properties File Setting to default\");\n assertNull(fileInputStream0);\n }", "@SuppressLint(\"SimpleDateFormat\")\n public static File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + JPEG_FILE_SUFFIX;\n String nameAlbum = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\" + nameDir;// getString(R.string.app_name);\n File albumF = new File(nameAlbum);\n if (!albumF.exists()) {\n albumF.mkdirs();\n File noMedia = new File(albumF, \".nomedia\");\n noMedia.createNewFile();\n }\n\n File imageF = new File(albumF, imageFileName);\n imageF.createNewFile();\n return imageF;\n }", "public static void main(String[] args) throws MalformedURLException, URISyntaxException, IOException {\n File file = new File(\"../index.html\");\n\n Desktop desktop = Desktop.getDesktop();\n if (file.exists()) {\n desktop.open(file);\n System.out.println(\"Archivo abierto\");\n } else {\n System.out.println(\"Archivo no existe\");\n }\n\n }", "public void test(String path){\n File file = new File(path);\n byte[] image = new byte[(int) file.length()];\n try {\n FileInputStream fis = new FileInputStream(file);\n fis.read(image); //read file into bytes[]\n\n fis.close();\n test(image);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public boolean isFile() { return true; }", "private void createRecipeFromFile() {\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n\n // Filter to only show results that can be \"opened\", such as a\n // file (as opposed to a list of contacts or timezones)\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n\n // Filter to show only images, using the image MIME data type.\n // If one wanted to search for ogg vorbis files, the type would be \"audio/ogg\".\n // To search for all documents available via installed storage providers,\n // it would be \"*/*\".\n intent.setType(\"*/*\");\n\n startActivityForResult(intent, READ_REQUEST_CODE);\n }", "private void openFile(String name){\n File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);\n File file = new File(path, \"\"+name);\n\n Intent install = new Intent(Intent.ACTION_VIEW);\n install.setDataAndType(Uri.fromFile(file), \"application/pdf\");\n install.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(install);\n\n }", "public static void main(String[] args) {\n String filename = \"test.txt\";\n FileStream.getFileAsByteArray(filename);\n }", "FileContent createFileContent();", "Path getModBookFilePath();", "private static Item item(String fileName) {\n Item item = new Item();\n item.setTitle(fileName);\n item.setLink(\"/files/\" + fileName);\n return item;\n }", "public static void main(String[] args) {\n\t\tFile file=new File(\"d:\\\\新建文件夹 (3)\\\\12.txt\");\r\n\t\tPath path=Paths.get(\"d:\\\\新建文件夹 (3)\\\\146\\\\125\");\r\n\t\tFile file1=new File(\"d:\\\\新建文件夹 (3)\\\\asf\");\r\n\t\t\tSystem.out.println(path.getFileName());\r\n\t\t\tSystem.out.println(file.getName());\r\n\t\t\tSystem.out.println(path.getRoot());\r\n\t\t\tSystem.out.println(path.getParent());\r\n\t\t\ttry {\r\n\t\t\t\tFiles.createFile(Paths.get(\"d:\\\\新建文件夹 (3)\\\\147\\\\1111111.txt\"));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tFiles.copy(file.toPath(),Paths.get(\"d:\\\\新建文件夹 (3)\\\\146\\\\189.txt\"));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\r\n//\t\tSystem.out.println(file.exists());\r\n////\t\tfile.delete();\r\n//\t\tSystem.out.println(file.canRead());]\r\n//\t\tSystem.out.println(file.canWrite());\r\n//\t\tSystem.out.println(file.getPath());\r\n//\t\tSystem.out.println(file.getAbsolutePath());\r\n//\t\tSystem.out.println(file.getName());\r\n//\t\tfile.renameTo(file1);\r\n//\t\tSystem.out.println(file.length());\r\n\r\n\t}" ]
[ "0.5814825", "0.556683", "0.5496437", "0.5496437", "0.5496437", "0.54317325", "0.54243726", "0.54138285", "0.54138285", "0.54042304", "0.53847575", "0.5350566", "0.5339468", "0.5314561", "0.5274307", "0.52667457", "0.52667457", "0.5259312", "0.5251535", "0.52440983", "0.5238342", "0.5236023", "0.5233297", "0.5223713", "0.52217895", "0.52092516", "0.5198723", "0.5185712", "0.51810336", "0.51810336", "0.5156598", "0.5150826", "0.5147509", "0.5144913", "0.5144341", "0.5132203", "0.51097023", "0.51019764", "0.50947905", "0.50703347", "0.5069277", "0.50682753", "0.5065109", "0.50561905", "0.50500685", "0.5049619", "0.504017", "0.50364405", "0.50134885", "0.49982968", "0.49968213", "0.4988579", "0.49714342", "0.49676198", "0.49603122", "0.49498978", "0.4949374", "0.49464852", "0.494342", "0.49390304", "0.49390304", "0.49369395", "0.49333358", "0.4929696", "0.49138725", "0.49122602", "0.4909088", "0.4900035", "0.48950964", "0.48928604", "0.48897517", "0.48894814", "0.488939", "0.48886198", "0.48882788", "0.4879043", "0.48748037", "0.48642537", "0.4863711", "0.48584646", "0.48566192", "0.48544374", "0.48497963", "0.48489386", "0.4838927", "0.48361725", "0.48357767", "0.48353323", "0.48331553", "0.48321307", "0.48301458", "0.48284736", "0.48266676", "0.48240262", "0.4820096", "0.4817508", "0.48142442", "0.48120397", "0.4802724", "0.47968516" ]
0.50579953
43
Parse an epub file.
public static List<EpubDocument> parse(final File epubFile, final File targetDir, final Consumer<File> fileConsumer, final boolean writeCombinedFile) throws IOException { unzip(epubFile, targetDir, fileConsumer); File metaDir = new File(targetDir, "META-INF"); if(!metaDir.exists()) { throw new IOException("Missing 'META-INF' directory"); } File mimetypeFile = new File(targetDir, "mimetype"); if(!mimetypeFile.exists()) { throw new IOException("Missing 'mimetype' file"); } String checkType = new String(Files.toByteArray(mimetypeFile), Charsets.US_ASCII); if(!supportedMimeTypes.contains(checkType.trim().toLowerCase())) { throw new IOException(String.format("Unsupported mime type, '%s'", checkType)); } List<File> rootFiles = rootFiles(metaDir); if(rootFiles.isEmpty()) { throw new IOException("At least one 'rootfile' must be present in the container"); } List<EpubDocument> documents = Lists.newArrayListWithExpectedSize(2); int count = 0; for(File file : rootFiles) { try(FileInputStream fis = new FileInputStream(file)) { Document packageDoc = Jsoup.parse(fis, Charsets.UTF_8.name(), "", Parser.xmlParser()); Metadata metadata = new Metadata(packageDoc); Map<String, ManifestItem> files = manifestItems(file.getParentFile(), packageDoc); Spine spine = spine(packageDoc, files); if(!writeCombinedFile) { documents.add(new EpubDocument(metadata, spine, null)); } else { final File combinedFile; if(count == 0) { combinedFile = new File(file.getParent(), "combined.html"); } else { combinedFile = new File(file.getParent(), "combined" + count + ".html"); } EpubDocument document = new EpubDocument(metadata, spine, combinedFile); try(FileOutputStream fos = new FileOutputStream(combinedFile)) { document.writeCleanDocument(fos, false); } documents.add(document); } } count++; } return documents; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Document parseFile() throws IOException {\n\tString contents = instream_to_contents();\n\tDocument doc = Jsoup.parse(contents);\n\treturn doc;\n }", "ReleaseFile parse( InputStream is ) throws IOException;", "public static Document parse(String filename) throws ParserException {\n\t\tif (filename == null) {\n\t\t\tthrow new ParserException();\n\t\t}\n\t\tFile file = new File(filename);\n\t\tif (!file.exists() || !file.isFile()) {\n\t\t\tthrow new ParserException();\n\t\t}\n\t\tFile subDir = file.getParentFile();\n\t\tif (!subDir.exists() || !subDir.isDirectory()) {\n\t\t\tthrow new ParserException();\n\t\t}\n\t\t// Document should be valid by here\n\t\tDocument doc = new Document();\n\t\tFieldNames field = FieldNames.TITLE;\n\t\tList<String> authors = new LinkedList<String>();\n\t\tString content = new String();\n\t\tboolean startContent = false;\n\n\t\tdoc.setField(FieldNames.FILEID, file.getName());\n\t\tdoc.setField(FieldNames.CATEGORY, subDir.getName());\n\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\t\tString line = reader.readLine();\n\n\t\t\twhile (line != null) {\n\t\t\t\tif (!line.isEmpty()) {\n\t\t\t\t\tswitch (field) {\n\t\t\t\t\tcase TITLE:\n\t\t\t\t\t\tdoc.setField(field, line);\n\t\t\t\t\t\tfield = FieldNames.AUTHOR;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase AUTHOR:\n\t\t\t\t\tcase AUTHORORG:\n\t\t\t\t\t\tif (line.startsWith(\"<AUTHOR>\") || !authors.isEmpty()) {\n\t\t\t\t\t\t\tString[] seg = null;\n\t\t\t\t\t\t\tString[] author = null;\n\n\t\t\t\t\t\t\tline = line.replace(\"<AUTHOR>\", \"\");\n\t\t\t\t\t\t\tseg = line.split(\",\");\n\t\t\t\t\t\t\tauthor = seg[0].split(\"and\");\n\t\t\t\t\t\t\tauthor[0] = author[0].replaceAll(\"BY|By|by\", \"\");\n\t\t\t\t\t\t\t// Refines author names\n\t\t\t\t\t\t\tfor (int i = 0; i < author.length; ++i) {\n\t\t\t\t\t\t\t\tauthor[i] = author[i].trim();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tauthor[author.length - 1] = author[author.length - 1]\n\t\t\t\t\t\t\t\t\t.replace(\"</AUTHOR>\", \"\").trim();\n\t\t\t\t\t\t\tauthors.addAll(Arrays.asList(author));\n\n\t\t\t\t\t\t\t// Saves author organization\n\t\t\t\t\t\t\tif (seg.length > 1) {\n\t\t\t\t\t\t\t\tdoc.setField(FieldNames.AUTHORORG, seg[1]\n\t\t\t\t\t\t\t\t\t\t.replace(\"</AUTHOR>\", \"\").trim());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (line.endsWith(\"</AUTHOR>\")) {\n\t\t\t\t\t\t\t\t// Saves author\n\t\t\t\t\t\t\t\tdoc.setField(FieldNames.AUTHOR, authors\n\t\t\t\t\t\t\t\t\t\t.toArray(new String[authors.size()]));\n\t\t\t\t\t\t\t\tfield = FieldNames.PLACE;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// This should be a PLACE\n\t\t\t\t\t\t\tfield = FieldNames.PLACE;\n\t\t\t\t\t\t}\n\t\t\t\t\tcase PLACE:\n\t\t\t\t\t\tif (!line.contains(\"-\")) {\n\t\t\t\t\t\t\tfield = FieldNames.CONTENT;\n\t\t\t\t\t\t\tstartContent = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString[] seg = line.split(\"-\");\n\t\t\t\t\t\t\tString[] meta = seg[0].split(\",\");\n\t\t\t\t\t\t\tif (seg.length != 0 && !seg[0].isEmpty()) {\n\n\t\t\t\t\t\t\t\tif (meta.length > 1) {\n\t\t\t\t\t\t\t\t\tdoc.setField(\n\t\t\t\t\t\t\t\t\t\t\tFieldNames.PLACE,\n\t\t\t\t\t\t\t\t\t\t\tseg[0].substring(0,\n\t\t\t\t\t\t\t\t\t\t\t\t\tseg[0].lastIndexOf(\",\"))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.trim());\n\t\t\t\t\t\t\t\t\tdoc.setField(FieldNames.NEWSDATE,\n\t\t\t\t\t\t\t\t\t\t\tmeta[meta.length - 1].trim());\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmeta[0] = meta[0].trim();\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tnew SimpleDateFormat(\"MMM d\",\n\t\t\t\t\t\t\t\t\t\t\t\tLocale.ENGLISH).parse(meta[0]);\n\t\t\t\t\t\t\t\t\t\t// This is a news date\n\t\t\t\t\t\t\t\t\t\tdoc.setField(FieldNames.NEWSDATE,\n\t\t\t\t\t\t\t\t\t\t\t\tmeta[0]);\n\t\t\t\t\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t\t\t\t\t// This is a place\n\t\t\t\t\t\t\t\t\t\tdoc.setField(FieldNames.PLACE, meta[0]);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfield = FieldNames.CONTENT;\n\t\t\t\t\tcase CONTENT:\n\t\t\t\t\t\tif (!startContent) {\n\t\t\t\t\t\t\t// First line of content\n\t\t\t\t\t\t\tString[] cont = line.split(\"-\");\n\t\t\t\t\t\t\tif (cont.length > 1) {\n\t\t\t\t\t\t\t\tfor (int i = 1; i < cont.length; ++i) {\n\t\t\t\t\t\t\t\t\tcontent += cont[i];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstartContent = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontent += \" \" + line;\n\t\t\t\t\t\t}\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t}\n\t\t\tdoc.setField(FieldNames.CONTENT, content);\n\t\t\tdoc.setField(FieldNames.LENGTH, Integer.toString(content.trim().split(\"\\\\s+\").length));\n\t\t\treader.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new ParserException();\n\t\t}\n\n\t\treturn doc;\n\t}", "public void parse(String fileName) throws Exception;", "public void parse(String filename);", "public static Document parse(String filename) throws ParserException {\n\n\t\tString FileID, Category, Title = null, Author = null, AuthorOrg = null, Place = null, NewsDate = null, Content = null, FileN;\n\t\tDocument d = new Document();\n\t\tif (filename == null || filename == \"\")\n\t\t\tthrow new ParserException();\n\t\tFileN = filename;\n\t\tHashMap<Integer, String> map = new HashMap<Integer, String>();\n\t\tBufferedReader r = null;\n\t\tFile file = new File(FileN);\n\t\tif (!file.exists())\n\t\t\tthrow new ParserException();\n\t\tFileID = file.getName();\n\t\tCategory = file.getParentFile().getName();\n\t\ttry {\n\t\t\tr = new BufferedReader(new FileReader(file));\n\t\t\tint i = 1, j = 3;\n\t\t\tBoolean isTitle = true, hasAuthor = false;\n\t\t\tString line;\n\t\t\twhile ((line = r.readLine()) != null) {\n\t\t\t\tline = line.trim();\n\t\t\t\tif (!line.equals(\"\")) {\n\t\t\t\t\tmap.put(i, line);\n\t\t\t\t\tif (isTitle) {\n\t\t\t\t\t\tTitle = line;\n\t\t\t\t\t\tisTitle = false;\n\t\t\t\t\t}\n\t\t\t\t\tif (hasAuthor == false && i == 2) {\n\t\t\t\t\t\tPattern pattern = Pattern\n\t\t\t\t\t\t\t\t.compile(\"<AUTHOR>(.+?)</AUTHOR>\");\n\t\t\t\t\t\tMatcher matcher = pattern.matcher(line);\n\t\t\t\t\t\tif (matcher.find()) {\n\t\t\t\t\t\t\tAuthor = matcher.group(1).replace(\"BY\", \"\");\n\t\t\t\t\t\t\tAuthorOrg = Author.substring(\n\t\t\t\t\t\t\t\t\tAuthor.lastIndexOf(\",\") + 1).trim();\n\t\t\t\t\t\t\tAuthor = Author.split(\",\")[0].trim();\n\t\t\t\t\t\t\thasAuthor = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!hasAuthor && i == 2) {\n\t\t\t\t\t\tString[] str = checkPlace(line);\n\t\t\t\t\t\tContent = str[0];\n\t\t\t\t\t\tPlace = str[1];\n\t\t\t\t\t\tNewsDate = str[2];\n\t\t\t\t\t} else if (hasAuthor && i == 3) {\n\t\t\t\t\t\tString[] str = checkPlace(line);\n\t\t\t\t\t\tContent = str[0];\n\t\t\t\t\t\tPlace = str[1];\n\t\t\t\t\t\tNewsDate = str[2];\n\t\t\t\t\t\tj = 4;\n\t\t\t\t\t}\n\t\t\t\t\tif (i >= j) {\n\t\t\t\t\t\tContent = Content + map.get(i) + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tr.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (Author != null) {\n\t\t\tAuthor = Author.replace(\"By\", \"\").trim();\n\t\t\td.setField(FieldNames.AUTHOR, Author);\n\t\t\td.setField(FieldNames.AUTHORORG, AuthorOrg);\n\t\t} \n\t\td.setField(FieldNames.FILEID, FileID);\n\t\td.setField(FieldNames.CATEGORY, Category);\n\t\td.setField(FieldNames.TITLE, Title);\n\t\td.setField(FieldNames.PLACE, Place);\n\t\td.setField(FieldNames.NEWSDATE, NewsDate);\n\t\td.setField(FieldNames.CONTENT, Content);\n\n\t\treturn d;\n\t}", "public static void main(final String[] args) throws IOException, TikaException, SAXException {\n\t File file = new File(args[0]);\n\n Tika tika = new Tika();\n \n //detecting the file type using detect method\n String filetype = tika.detect(file);\n //System.out.println(filetype);\n \n //Parser method parameters\n //Parser parser = new AutoDetectParser();\n //Parser parser = new DcXMLParser();\n Parser parser = new Eml211Parser();\n \n BodyContentHandler handler = new BodyContentHandler();\n Metadata metadata = new Metadata();\n FileInputStream inputstream = new FileInputStream(file);\n ParseContext context = new ParseContext();\n \n parser.parse(inputstream, handler, metadata, context);\n \n //System.out.println(handler.toString());\n \n System.out.println(\"Extracting Metadata of the document: \");\n //getting the list of all meta data elements \n String[] metadataNames = metadata.names();\n \n for(String name : metadataNames) {\t\t \n System.out.println(name + \": \"+ metadata.get(name));\n } \n }", "public static Document parse(String filename) throws ParserException {\n\t\t// TODO YOU MUST IMPLEMENT THIS\n\t\t// girish - All the code below is mine\n\t\t\t\n\t\t// Creating the object for the new Document\n\t\t\n\t\t\n\t\tif (filename == null){\n\t\t\tthrow new ParserException();\n\t\t}\n\t\t\n\t\t// Variable indexPos to track the current pointer location in the String Array\n\t\tint indexPos = 0;\n\t\t\n\t\t// Creating an instance of the document class to store the parsed content\n\t\tDocument d = new Document();\n\t\t\n\t\t// to store the result sent from the regexAuthor method and regexPlaceDate method\n\t\tObject[] resultAuthor = {null, null, null};\n\t\tObject[] resultPlaceDate = {null, null, null};\n\t\tStringBuilder news = new StringBuilder();\n\t\t\n\t\t// Next 4 lines contains the code to get the fileID and Category metadata\n\t\tString[] fileCat = new String[2];\n\t\t\n\t\tfileCat = regexFileIDCat(\"/((?:[a-z]|-)+)/([0-9]{7})\", filename);\n\t\t// System.out.println(filename);\n\t\t// throw an exception if the file is blank, junk or null\n\t\tif (fileCat[0] == null){\n\t\t\tthrow new ParserException();\n\t\t}\n\t\td.setField(FieldNames.CATEGORY, fileCat[0]);\n\t\td.setField(FieldNames.FILEID, fileCat[1]);\n\t\t\n\t\t\n\t\t// Now , parsing the file\n\t\tFile fileConnection = new File(filename);\n\t\t\n\t\t// newscollated - it will store the parsed file content on a line by line basis\n\t\tArrayList<String> newscollated = new ArrayList<String>();\n\t\t\n\t\t// String that stores the content obtained from the . readline() operation\n\t\tString temp = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\t\n\t\t\tBufferedReader getInfo = new BufferedReader(new FileReader(fileConnection));\n\t\t\twhile ((temp = getInfo.readLine()) != null)\n\t\t\t{\n\t\t\t\tif(temp.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\t\n\t\t\t\t\ttemp = temp + \" \";\n\t\t\t\t\tnewscollated.add(temp);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tgetInfo.close();\n\t\t\t\n\t\t\t//-- deprecated (REMOVE THIS IF OTHER WORKS)\n\t\t\t// setting the title using the arraylist's 0th index element\n\t\t\t//d.setField(FieldNames.TITLE, newscollated.get(0));\n\t\t\t\n\t\t\t// Appending the lines into one big string using StringBuilder\n\t\t\t\n\t\t\tfor (String n: newscollated)\n\t\t\t{\n\t\t\t\tnews.append(n);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// Obtaining the TITLE of the file\n\t\t\tObject[] titleInfo = new Object[2];\n\t\t\t\n\t\t\ttitleInfo = regexTITLE(\"([^a-z]+)\\\\s{2,}\", news.toString());\n\t\t\td.setField(FieldNames.TITLE, titleInfo[0].toString().trim());\n\t\t\tindexPos = (Integer) titleInfo[1];\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t// Getting the Author and Author Org\n\t\t\tresultAuthor = regexAuthor(\"<AUTHOR>(.*)</AUTHOR>\", news.toString());\n\t\t\t\n\t\t\tif (resultAuthor[0] != null)\n\t\t\t{\n\t\t\t\td.setField(FieldNames.AUTHOR, resultAuthor[0].toString());\n\t\t\t}\n\t\t\t\n\t\t\tif (resultAuthor[1] != null)\n\t\t\t{\n\t\t\t\td.setField(FieldNames.AUTHORORG, resultAuthor[1].toString());\n\t\t\t}\n\t\t \n\t\t \n\t\t \n\t\t if ((Integer) resultAuthor[2] != 0)\n\t\t {\n\t\t \tindexPos = (Integer) resultAuthor[2];\n\t\t }\n\t\t\t\n\t\t \n\t\t \n\t\t // Getting the Place and Date\n \t\t\tresultPlaceDate = regexPlaceDate(\"\\\\s{2,}(.+),\\\\s(?:([A-Z][a-z]+\\\\s[0-9]{1,})\\\\s{1,}-)\", news.toString());\n \t\t\t\n \t\t\tif (resultPlaceDate[0] != null)\n \t\t\t{\n \t\t\t\td.setField(FieldNames.PLACE, resultPlaceDate[0].toString().trim());\n \t\t\t}\n \t\t \n \t\t\tif (resultPlaceDate[1] != null)\n \t\t\t{\n \t\t\t\td.setField(FieldNames.NEWSDATE, resultPlaceDate[1].toString().trim());\n \t\t\t}\n \t\t\t\n \t\t // getting the content\n \t\t \n \t\t if ((Integer) resultPlaceDate[2] != 0)\n\t\t {\n\t\t \tindexPos = (Integer) resultPlaceDate[2];\n\t\t }\n \t\t \n \t\t \n \t\t d.setField(FieldNames.CONTENT, news.substring(indexPos + 1));\n \t\t \n \t\t return d;\n \t\t \n\t\t \n\t\t \n\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch(FileNotFoundException e){\n\t\t\tthrow new ParserException();\n\t\t\t\n\t\t}\n\n\t\tcatch(IOException e){\n\t\t\tthrow new ParserException();\n\t\t}\n\t\t\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\treturn d;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public void parsePage() {\n seen = true;\n int first = id.indexOf('_', 0);\n int second = id.indexOf('_', first + 1);\n String firstDir = \"result_\" + id.substring(0, first);\n String secondDir = id.substring(0, second);\n String fileName = id + \".page\";\n String wholePath = pagePath + firstDir + File.separator + secondDir\n + File.separator + fileName;\n try {\n BufferedReader reader = new BufferedReader(new FileReader(wholePath));\n String line = null;\n while((line = reader.readLine()) != null) {\n if (line.equals(\"#ThisURL#\")) {\n url = reader.readLine();\n }\n// else if (line.equals(\"#Length#\")) {\n// length = Integer.parseInt(reader.readLine());\n// }\n else if (line.equals(\"#Title#\")) {\n title = reader.readLine();\n }\n else if (line.equals(\"#Content#\")) {\n content = reader.readLine();\n lowerContent = content.toLowerCase();\n break;\n }\n }\n reader.close();\n if (content == null) {\n return;\n }\n valid = true;\n } catch (IOException e) {\n// System.out.println(\"Parse page \" + id + \" not successful\");\n }\n }", "public String parse(File file);", "public Document parse(File aFile)\n\t\t\t\t throws org.xml.sax.SAXException, java.io.IOException {\n\t\t/**\n\t\t * @todo Fix/implement this later\n\t\t */\n\t\tthrow new SAXException(\"Not supported\");\n\t}", "@Test\n\tpublic void probandoConParser() {\n\t\tString dBoxUrl = \"/home/julio/Dropbox/julio_box/educacion/maestria_explotacion_datos_uba/materias/cuat_4_text_mining/material/tp3/\";\n\t\tString modelUrl = dBoxUrl + \"NER/models/es-ner-person.bin\";\n\t\tString filesUrl = dBoxUrl + \"NER/archivoPrueba\";\n\t\tString sampleFile = filesUrl + \"/viernes-23-05-14-alan-fitzpatrick-gala-cordoba.html\";\n\t\tList<String> docs = getMyDocsFromSomewhere(filesUrl);\n\n\t\ttry {\n\t\t\t// detecting the file type\n\t\t\tBodyContentHandler handler = new BodyContentHandler();\n\t\t\tMetadata metadata = new Metadata();\n\t\t\tFileInputStream inputstream = new FileInputStream(new File(sampleFile));\n\t\t\tParseContext pcontext = new ParseContext();\n\n\t\t\t// Html parser\n\t\t\tHtmlParser htmlparser = new HtmlParser();\n\t\t\thtmlparser.parse(inputstream, handler, metadata, pcontext);\n\t\t\tSystem.out.println(\"Contents of the document:\" + handler.toString());\n\t\t\tSystem.out.println(\"Metadata of the document:\");\n\t\t\tString[] metadataNames = metadata.names();\n\n\t\t\tfor (String name : metadataNames) {\n\t\t\t\tSystem.out.println(name + \": \" + metadata.get(name));\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\n\t}", "private static void parseMETS() throws IOException, XMLStreamException {\r\n\r\n\t\tFile metsFile = new File(additionalDir, metsPath);\r\n\r\n\t\tif (!metsFile.exists()) {\r\n\t\t\tthrow new IOException(\"File does not exist. Current path is \"\r\n\t\t\t\t\t+ metsFile.getAbsolutePath());\r\n\t\t}\r\n\t\tString volumeID = extractVolumeIDFromFilePath(metsPath);\r\n\t\tXMLInputFactory xmlInputFactory = XMLInputFactory.newInstance();\r\n\r\n\t\tvolumeRecord = new VolumeRecord(volumeID);\r\n\r\n\t\t// copyright is assumed to be public domain for all volumes\r\n\t\tvolumeRecord.setCopyright(CopyrightEnum.PUBLIC_DOMAIN);\r\n\r\n\t\tMETSParser metsParser = new METSParser(metsFile, volumeRecord,\r\n\t\t\t\txmlInputFactory);\r\n\t\tmetsParser.parse();\r\n\r\n\t\t// that's it. it is now parsed and the volumeRecord should be populated\r\n\t\t// by the parser\r\n\t\t// use volumeRecord to retrieve the information (see test cases on what\r\n\t\t// information is there)\r\n\r\n\t}", "private Document parse(String path) throws DocumentException, MalformedURLException {\n File file = new File(path);\r\n SAXReader saxReader = new SAXReader();\r\n return saxReader.read(file);\r\n }", "protected abstract void parseFile(File f) throws IOException;", "@VisibleForTesting\n\tDocument parseLocalFile(String url) throws IOException {\n\t\treturn Jsoup.parse(new File(url), \"UTF-8\", \"\");\n\t}", "public abstract void parse() throws IOException;", "public abstract List<EXIFContent> parse();", "public static void main(final String[] args) throws Exception {\n File epubFile = new File(\"/home/matt/test/1984.epub\");\n File targetDir = new File(\"/home/matt/test/target6\");\n List<EpubDocument> docs =\n parse(epubFile, targetDir, file -> System.out.println(\"Processing \" + file.getAbsolutePath()), true);\n\n if(!docs.isEmpty()) {\n File cleanFile = new File(\"/home/matt/test/target6/combined.html\");\n try(FileOutputStream fos = new FileOutputStream(cleanFile)) {\n docs.get(0).writeCleanDocument(fos, true);\n }\n }\n }", "public MinedMainDocument parseMainArtifact() {\n\t\ttry {\n\t\t\tInputStream is = this.getNuxeoInstance().getDocumentInputStream(mainArtefact.getId());\n\t\t\t\n\t\t\tString title = this.getNuxeoInstance().getLastDocTitle();\n\t\t\tif(title==null) title = \"Main Document\";\n\t\t\t\n\t\t\tDocxParser docx = new DocxParser(is);\n\t\t\tdocx.parseDocxAndChapters();\n\t\t\tMinedMainDocument mainDoc = new MinedMainDocument(title, docx.getFullText());\n\t\t\tmainDoc.addChapters(docx.getChapterHeadlines(), docx.getChapterTexts());\n\t\t\tis.close();\n\t\t\treturn mainDoc;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "private void parseFiles() throws ParserException{\n NodeList fileNodesList = root.getElementsByTagName(\"file\");\n for(int i=0; i<fileNodesList.getLength(); i++){\n filesToProcess.add(getFile((Element) fileNodesList.item(i)));\n }\n }", "@Override\n\tpublic void parse(String s) throws MalformedFileException {\n\t\t\n\t}", "public ParsedPage parse(String src);", "public Document setUpDocumentToParse() throws ParserConfigurationException, SAXException, IOException{\n\t\tFile file = new File (dataFilePath);\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\tDocument document = documentBuilder.parse(file);\n\n\t\treturn document;\n\t}", "public static Document parse(InputStream is) throws IOException\n {\n return parse(is, false);\n }", "public void parse(XmlDocument document, InputStream in) throws Exception {\n\t\tURL url = document.getURL();\n\t\tparse(document, url, null, null, in, null);\n\t}", "public void parseXmlFile(String fileName){\n\t\t//get the factory\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\t\n\t\ttry {\n\t\t\t//Using factory get an instance of document builder\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\t\t\t\n\t\t\t//parse using builder to get DOM representation of the XML file\n\t\t\tdoc = db.parse(fileName);\n\t\t} catch(ParserConfigurationException pce) {\n\t\t\tpce.printStackTrace();\n\t\t} catch(SAXException se) {\n\t\t\tSystem.err.println(\"Malformed XML: Make sure to provide a valid XML document.\");\n\t\t} catch(IOException ioe) {\n\t\t\tSystem.err.println(\"File not found: Path to a valid XML file has to be specified.\" );\n\t\t}\n\t}", "public void parseDocument(String XMLFilePath) {\n\t \n\t SAXParserFactory spf = SAXParserFactory.newInstance();\n\t try {\n\t\tSAXParser sp = spf.newSAXParser();\n\t\tsp.parse(XMLFilePath, this);\n\t }catch(SAXException se) {\n\t\tse.printStackTrace();\n\t }catch(ParserConfigurationException pce) {\n\t\tpce.printStackTrace();\n\t }catch (IOException ie) {\n\t\tie.printStackTrace();\n\t }\n\t}", "public void parseInputFile(String filename) throws BadInputFormatException {\r\n\t\tString line;\r\n\r\n\t\ttry {\r\n\t\t\tInputStream fis = new FileInputStream(filename);\r\n\t\t\tInputStreamReader isr = new InputStreamReader(fis);\r\n\t\t\tBufferedReader br = new BufferedReader(isr);\r\n\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tparseMessage(line);\r\n\t\t\t}\r\n\t\t\tbr.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void parse() throws IOException {\n\t}", "void parse();", "private static Document parseXmlFile(String in) {\n try {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource(new StringReader(in));\n return db.parse(is);\n } catch (ParserConfigurationException e) {\n throw new RuntimeException(e);\n } catch (SAXException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public Document parse(DocumentParser parser, InputStream InputStream) throws RedPenException {\n return parser.parse(InputStream, sentenceExtractor, configuration.getTokenizer());\n }", "public static Document parse(InputStream in) throws ParserConfigurationException, SAXException, IOException {\n\t DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t DocumentBuilder db = dbf.newDocumentBuilder();\n\t \n\n\t return db.parse(in);\n\t }", "public void parse() {\n }", "public interface Parser {\n\t\n\t/**\n\t * A method to parse the file\n\t * @param file the file\n\t * @return the content\n\t */\n\tpublic String parse(File file);\n\t\n}", "void processElement(File documentPath) \n\t\t\tthrows XMLFormatException;", "void readAPFdocument (Document apfDoc, String fileText) {\n\t\tNodeList sourceFileElements = apfDoc.getElementsByTagName(\"source_file\");\n\t\tElement sourceFileElement = (Element) sourceFileElements.item(0);\n\t\tsourceFile = sourceFileElement.getAttribute(\"URI\");\n\t\tsourceType = sourceFileElement.getAttribute(\"SOURCE\");\n\n\t\tNodeList documentElements = apfDoc.getElementsByTagName(\"document\");\n\t\tElement documentElement = (Element) documentElements.item(0);\n\t\tdocID = documentElement.getAttribute(\"DOCID\");\n\n\t\tif (Ace.perfectMentions & !Ace.perfectEntities) {\n\t\t\treadPerfectMentions (apfDoc, fileText);\n\t\t\treturn;\n\t\t}\n\n\t\tNodeList entityElements = apfDoc.getElementsByTagName(\"entity\");\n\t\tfor (int i=0; i<entityElements.getLength(); i++) {\n\t\t\tElement entityElement = (Element) entityElements.item(i);\n\t\t\tAceEntity entity = new AceEntity (entityElement, fileText);\n\t\t\taddEntity(entity);\n\t\t}\n\t\tNodeList valueElements = apfDoc.getElementsByTagName(\"value\");\n\t\tfor (int i=0; i<valueElements.getLength(); i++) {\n\t\t\tElement valueElement = (Element) valueElements.item(i);\n\t\t\tAceValue value = new AceValue (valueElement, fileText);\n\t\t\taddValue(value);\n\t\t}\n\t\tNodeList timexElements = apfDoc.getElementsByTagName(\"timex2\");\n\t\tfor (int i=0; i<timexElements.getLength(); i++) {\n\t\t\tElement timexElement = (Element) timexElements.item(i);\n\t\t\tAceTimex timex = new AceTimex (timexElement, fileText);\n\t\t\taddTimeExpression(timex);\n\t\t}\n\t\tNodeList relationElements = apfDoc.getElementsByTagName(\"relation\");\n\t\tfor (int i=0; i<relationElements.getLength(); i++) {\n\t\t\tElement relationElement = (Element) relationElements.item(i);\n\t\t\tAceRelation relation = new AceRelation (relationElement, this, fileText);\n\t\t\taddRelation(relation);\n\t\t}\n\t\tNodeList eventElements = apfDoc.getElementsByTagName(\"event\");\n\t\tfor (int i=0; i<eventElements.getLength(); i++) {\n\t\t\tElement eventElement = (Element) eventElements.item(i);\n\t\t\tAceEvent event = new AceEvent (eventElement, this, fileText);\n\t\t\taddEvent(event);\n\t\t}\n\t}", "private Entry readEntry(XmlPullParser parser) throws XmlPullParserException, IOException {\n\t parser.require(XmlPullParser.START_TAG, ns, \"entry\");\n\t String title = null;\n\t String summary = null;\n\t String link = null;\n\t while (parser.next() != XmlPullParser.END_TAG) {\n\t if (parser.getEventType() != XmlPullParser.START_TAG) {\n\t continue;\n\t }\n\t String name = parser.getName();\n\t if (name.equals(\"title\")) {\n\t title = readTitle(parser);\n\t } else if (name.equals(\"summary\")) {\n\t summary = readSummary(parser);\n\t } else if (name.equals(\"link\")) {\n\t link = readLink(parser);\n\t } else {\n\t skip(parser);\n\t }\n\t }\n\t return new Entry(title, summary, link);\n\t }", "private boolean parse(String fileName)\r\n {\r\n\t/* Make sure xml file exists */\r\n\tFile xml = new File(fileName);\r\n\tif(!xml.exists())\r\n\t {\r\n\t\tSystem.out.println(\"Error (parse): \" + fileName + \" does not exists\");\r\n\t\treturn false;\r\n\t }\r\n\r\n\t/* Create the filename */\r\n\ttry{\r\n\t /* create the parser */\r\n\t DefaultHandler handler = new ETDHandler(fileName);\r\n\r\n\t /* Remember, Remember, the fifth friday of every december */\r\n\t SAXParserFactory sax_fac = SAXParserFactory.newInstance();\r\n\t SAXParser sax_parser = sax_fac.newSAXParser();\r\n\t sax_parser.parse(xml, handler);\r\n\r\n\t}\r\n\tcatch(Throwable t)\r\n\t {\r\n\t\tSystem.out.println(\"Error (parse): \" + t.getMessage());\r\n\t\tt.printStackTrace();\r\n\t }\r\n\r\n\treturn true;\r\n }", "public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException {\r\n\t\tSAXParserFactory spf = SAXParserFactory.newInstance();\r\n\t\t// Create the parser from the factory instance\r\n\t\t// two exceptions to the main method\r\n\t\tSAXParser sp = spf.newSAXParser();\r\n\r\n\t\t/*\r\n\t\t * Parse the XML document. Event based parsing it sends it to a handler . It need a\r\n\t\t * handler to Accepts 2 parameters. The file and the handler.\r\n\t\t */\r\n\t\t\r\n\t\t//set the file path and handler. The handler can implement certain interfaces. Throw exceptions to the mail\r\n\t\tsp.parse(\"C:/GitHub/MyJava/MyJavaProject/src/com/stoneriver/xml/validation/intro.xml\", new MyHandler());\r\n\r\n\t}", "public static final Document parse(final File f) {\r\n String uri = \"file:\" + f.getAbsolutePath();\r\n\r\n if (File.separatorChar == '\\\\') {\r\n uri = uri.replace('\\\\', '/');\r\n }\r\n\r\n return parse(new InputSource(uri));\r\n }", "public abstract XMLDocument parse(URL url);", "void read(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException;", "private static ArrayList<Publication> getParserAuthor() {\n\t\n\t ArrayList<Publication> list= new ArrayList<Publication>(); \n //获取DOM解析器 \n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n DocumentBuilder builder; \n try { \n builder = factory.newDocumentBuilder(); \n Document doc; \n doc = builder.parse(new File(\"Myxml.xml\")); \n //得到一个element根元素,获得根节点 \n Element root = doc.getDocumentElement(); \n System.out.println(\"根元素:\"+root.getNodeName()); \n \n //子节点 \n NodeList personNodes = root.getElementsByTagName(\"publication\"); \n for(int i = 0; i<personNodes.getLength();i++){ \n Element personElement = (Element) personNodes.item(i); \n Publication publication = new Publication(); \n NodeList childNodes = personElement.getChildNodes(); \n //System.out.println(\"*****\"+childNodes.getLength()); \n \n for (int j = 0; j < childNodes.getLength(); j++) { \n if(childNodes.item(j).getNodeType()==Node.ELEMENT_NODE){ \n if(\"authors\".equals(childNodes.item(j).getNodeName())){ \n publication.setAuthors(childNodes.item(j).getFirstChild().getNodeValue()); \n }else if(\"id\".equals(childNodes.item(j).getNodeName())){ \n publication.setId(childNodes.item(j).getFirstChild().getNodeValue()); \n } \n } \n } \n list.add(publication); \n } \n for(Publication publication2 : list){ //为了查看数据是否正确,进行打印结果 \n System.out.println(publication2.toString()); \n } \n } catch (SAXException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n } catch (ParserConfigurationException e) { \n e.printStackTrace(); \n } \n return list;\n}", "public void parse(XmlDocument document, Reader in) throws Exception {\n\t\tURL url = document.getURL();\n\t\tparse(document, url, null, in, null, null);\n\t}", "public void parseFile(String fileName) {\n\t\tparseFile(Values.StorySequences, fileName + \".seq\");\n\t}", "private void parse() {\n if (workingDirectory != null) {\n Parser.initConstants(this, workingDirectory, remainderFile);\n Parser.parseIt();\n workingDirectory = null;\n remainderFile = null;\n jbParse.setEnabled(false);\n }\n }", "@Override\r\n public FirstElement documentBodyParse(String filePath) {\n return null;\r\n }", "public static Document parseXMLFile(final String fileName) throws IOException {\n\t\treturn parseXMLFile(new File(fileName));\n\t}", "public void parse() throws ParserConfigurationException, SAXException,\n\t\t\tIOException, XMLStreamException {\n\n\t\tGem gem = new Gem();\n\t\tVisualParameters params = new VisualParameters();\n\n\t\t// current element name holder\n\t\tString currentElement = null;\n\n\t\tXMLInputFactory factory = XMLInputFactory.newInstance();\n\n\t\tfactory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, true);\n\n\t\tXMLEventReader reader = factory.createXMLEventReader(new StreamSource(\n\t\t\t\txmlFileName));\n\n\t\twhile (reader.hasNext()) {\n\t\t\tXMLEvent event = reader.nextEvent();\n\n\t\t\t// skip any empty content\n\t\t\tif (event.isCharacters() && event.asCharacters().isWhiteSpace()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// handler for start tags\n\t\t\tif (event.isStartElement()) {\n\t\t\t\tStartElement startElement = event.asStartElement();\n\t\t\t\tcurrentElement = startElement.getName().getLocalPart();\n\n\t\t\t\tif (XML.FOND.equalsTo(currentElement)) {\n\t\t\t\t\tfond = new Fond();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (XML.GEM.equalsTo(currentElement)) {\n\t\t\t\t\tgem = new Gem();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (XML.VISUAL_PARAMETRS.equalsTo(currentElement)) {\n\t\t\t\t\tparams = new VisualParameters();\n\t\t\t\t\tAttribute attribute = startElement\n\t\t\t\t\t\t\t.getAttributeByName(new QName(XML.VALUE_COLOR\n\t\t\t\t\t\t\t\t\t.value()));\n\t\t\t\t\tif (attribute != null) {\n\t\t\t\t\t\tparams.setValueColor(EnumColors.fromValue(attribute\n\t\t\t\t\t\t\t\t.getValue()));\n\t\t\t\t\t}\n\t\t\t\t\tattribute = startElement.getAttributeByName(new QName(\n\t\t\t\t\t\t\tXML.TRANSPARENCY.value()));\n\t\t\t\t\tif (attribute != null) {\n\t\t\t\t\t\tparams.setTransparency(Integer.valueOf(attribute\n\t\t\t\t\t\t\t\t.getValue()));\n\t\t\t\t\t}\n\t\t\t\t\tattribute = startElement.getAttributeByName(new QName(\n\t\t\t\t\t\t\tXML.FACETING.value()));\n\t\t\t\t\tif (attribute != null) {\n\t\t\t\t\t\tparams.setFaceting(Integer.valueOf(attribute.getValue()));\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// handler for contents\n\t\t\tif (event.isCharacters()) {\n\t\t\t\tCharacters characters = event.asCharacters();\n\n\t\t\t\tif (XML.NAME.equalsTo(currentElement)) {\n\t\t\t\t\tgem.setName(characters.getData());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (XML.PRECIOUSNESS.equalsTo(currentElement)) {\n\t\t\t\t\tgem.setPreciousness(Boolean.valueOf(characters.getData()));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (XML.ORIGIN.equalsTo(currentElement)) {\n\t\t\t\t\tgem.setOrigin(characters.getData());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (XML.VALUE.equalsTo(currentElement)) {\n\t\t\t\t\tgem.setValue(Double.valueOf(characters.getData()));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// handler for end tags\n\t\t\tif (event.isEndElement()) {\n\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\tString localName = endElement.getName().getLocalPart();\n\n\t\t\t\tif (XML.GEM.equalsTo(localName)) {\n\t\t\t\t\tfond.getGem().add(gem);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (XML.VISUAL_PARAMETRS.equalsTo(localName)) {\n\t\t\t\t\t// just add answer to container\n\t\t\t\t\tgem.setVisualParameters(params);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}", "public void runParser() throws Exception {\n\t\tparseXmlFile();\r\n\t\t\r\n\t\t//get each employee element and create a Employee object\r\n\t\tparseDocument();\r\n\t\t\r\n\t\t//Iterate through the list and print the data\r\n\t\t//printData();\r\n\t\t\r\n\t}", "public AceDocument (String textFileName, String APFfileName) {\n\t\ttry {\n\t\t// initialize APF reader\n\t\tif (builder == null) {\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\tfactory.setValidating(false);\n\t\t\tbuilder = factory.newDocumentBuilder();\n\t\t\t}\n\t\t\tanalyzeDocument (textFileName, APFfileName);\n\t\t} catch (SAXException e) {\n\t\t\tSystem.err.println (\"AceDocument: Exception in initializing APF reader: \" + e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println (\"AceDocument: Exception in initializing APF reader: \" + e);\n\t\t} catch (ParserConfigurationException e) {\n\t\t\tSystem.err.println (\"AceDocument: Exception in initializing APF reader: \" + e);\n\t\t}\n\t}", "public FitnessParser getParser(UploadedFile file ) throws IOException {\n\t\tInputStream stream = file.getInputstream();\n\t\tStringWriter sw = new StringWriter();\n\t\tIOUtils.copy(stream, sw);\n\t\tStringReader sr = new StringReader(sw.toString());\n\t\tBufferedReader br = new BufferedReader(sr);\n\t\t\n\t\tString firstLine = br.readLine();\n\t\tif(firstLine == null) {\n\t\t\tFacesMessage msg = new FacesMessage( FacesMessage.SEVERITY_ERROR, \"Error\", \"Invalid File\" );\n\t\t\tFacesContext.getCurrentInstance().addMessage( null, msg );\n\t\t\treturn null;\n\t\t} \n\t\tFitnessParser ret = null;\n\t\tif(checkFitbitFile(firstLine)) {\n\t\t\tret = new FitbitParser(file);\n\t\t} else if (checkMicrosoftFile(firstLine)) {\n\t\t\tret = new MicrosoftParser(file);\n\t\t} \n\t\t\n\t\tbr.close();\n\t\treturn ret;\n\t}", "@Override\r\n\tpublic void handleFile(String inFilename, String outFilename) \r\n\t{\n\r\n\r\n\t\tString s = slurpFile(inFilename);\r\n\t\tDocument teiDocument = parsePlainText(s);\r\n\t\ttry \r\n\t\t{\r\n\t\t\tPrintStream pout = new PrintStream(new FileOutputStream(outFilename));\r\n\t\t\tpout.print(XML.documentToString(teiDocument));\r\n\t\t\tpout.close();\r\n\t\t} catch (FileNotFoundException e) \r\n\t\t{\r\n\t\t\te.printStackTrace\r\n\t\t\t();\r\n\r\n\t\t}\t\r\n\t}", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tparseFile(\"english_file.txt\");\r\n\t\t\t\t}", "public ArticParser(String pathToXML) throws OmniPageParsingException, IOException {\n super(pathToXML);\n setPageSettings();\n }", "public ArrayList<Item> parse(String fileName) throws SAXException,\n\t\t\tIOException {\n\t\tFile f = new File(fileName);\n\t\tDocument doc = builder.parse(f);\n\n\t\t// get the <items> root element\n\n\t\tElement root = doc.getDocumentElement();\n\t\treturn getItems(root);\n\t}", "public Document parseFile(InputStream inputStream) {\r\n \r\n try {\r\n setDocument(docBuilder.parse(inputStream));\r\n }\r\n catch (SAXException e) {\r\n log.debug(\"Wrong XML file structure: \" + e.getMessage());\r\n return null;\r\n }\r\n catch (IOException e) {\r\n \te.printStackTrace();\r\n log.debug(\"Could not read source file: \" + e.getMessage());\r\n }\r\n log.debug(\"XML file parsed\");\r\n return getDocument();\r\n }", "public ArrayList<Publication> parseXML(){\n ArrayList<Publication> publications = new ArrayList<Publication>();\n try {\n System.out.println(\"Starting parse xml\");\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(new File(\"dblp_abstract_dataset.xml\"));\n document.getDocumentElement().normalize();\n NodeList nodeList = document.getDocumentElement().getChildNodes();\n parseChannelNodes(nodeList,publications);\n System.out.println(\"publications count: \"+publications.size());\n }catch (ParserConfigurationException ex){\n ex.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return publications;\n }", "public static void main (String[] args) {\r\n try {\r\n BufferedReader in = new BufferedReader(\r\n new InputStreamReader(\r\n new FileInputStream(new File(\"D:\\\\bitext.html\")), \"UTF-8\"));\r\n\r\n String s;\r\n StringBuffer b = new StringBuffer();\r\n while( (s = in.readLine()) != null) {\r\n b.append(s );\r\n }\r\n String page= b.toString();\r\n HTMLParser parser = new HTMLParser(page.getBytes(\"UTF-8\"));\r\n //parser.getTagValue (\"meta\");\r\n //System.out.println();\r\n\r\n System.out.println(parser.htmlParsing (false, null, null, false));\r\n //System.out.println(htmlParsing (page3, \"euc-kr\"));\r\n\r\n\r\n } catch (Throwable t) {\r\n t.printStackTrace ();\r\n }\r\n }", "private void readEntry(XmlPullParser parser) throws XmlPullParserException, IOException {\n\n while (parser.next() != XmlPullParser.END_TAG) {\n if (parser.getEventType() != XmlPullParser.START_TAG) {\n continue;\n }\n String name = parser.getName();\n\n switch (name) {\n case \"profile\":\n readProfile(parser);\n break;\n case \"examresult\":\n readExamResult(parser);\n break;\n case \"feesrecord\":\n readFee(parser);\n break;\n case \"attendancerecord\":\n readAttendance(parser);\n break;\n case \"noticesrecord\":\n readNoticeRecord(parser);\n break;\n case \"teachersrecord\":\n readTeacherRecord(parser);\n break;\n default:\n skip(parser);\n break;\n }\n\n }\n complete_flag = true;\n }", "public Map<String,WikiArticle> parse() throws Exception {\n \n DocumentBuilder dB = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n \n Document doc = dB.parse(xmlFile);\n \n \n NodeList allPages = doc.getElementsByTagName(\"page\");\n \n for (int i = 0; i < allPages.getLength(); i++) {\n\n WikiArticle e = new WikiArticle();\n \n Node page = allPages.item(i);\n \n NodeList pageAttribs = page.getChildNodes();\n \n for (int j = 0; j < pageAttribs.getLength(); j++) {\n \n Node pageAttr = pageAttribs.item(j);\n String attrName = pageAttr.getNodeName();\n String attrValue = pageAttr.getTextContent();\n \n if (attrName.equals(\"id\")) {\n \n e.setId(attrValue);\n }\n \n if (attrName.equals(\"title\")) {\n \n e.setTitle(attrValue);\n }\n \n if (attrName.equals(\"revision\")) {\n \n NodeList revAttribs = pageAttr.getChildNodes();\n \n for (int k = 0; k < revAttribs.getLength(); k++) {\n \n Node revAttr = revAttribs.item(k);\n String revAttrName = revAttr.getNodeName();\n String revAttrVal = revAttr.getTextContent();\n \n if (revAttrName.equals(\"text\")) {\n \n e.setText(revAttrVal);\n } \n }\n }\n }\n \n if (!e.isEmpty()) {\n \n String eTitle = e.parseTitle();\n e.parseLinks();\n \n //TODO: Test\n //e.parseProps();\n \n this.entries.put(eTitle, e);\n }\n }\n \n return entries;\n \n }", "public static Vector parseCollectionsFile(File collectionsFile, HashMap books) throws IOException\n\t{\n\t\t// Open the file for reading one line at a time in UTF-8 character encoding\n\t\tLineNumberReader reader = new LineNumberReader(new InputStreamReader(new FileInputStream(collectionsFile), \"UTF-8\"));\n\t\t\n\t\tVector collections = new Vector();\n\t\tCollection collection = null;\n\t\tString line = null;\n\t\tint lineCount = 0;\n\t\t// Read the collections in the file\n\t\twhile ((line = reader.readLine()) != null)\n\t\t{\n\t\t\tlineCount++;\n\t\t\t//ignore blank lines\n\t\t\tif (!line.trim().equals(\"\"))\n\t\t\t{\n\t\t\t//test to see if the line is a comment line\n\t\t\tif (line.startsWith(\"//\") || line.startsWith(\"rem\") || line.startsWith(\"REM\"))\n\t\t\t{\n\t\t\t\t//do nothing - ignore line\n\t\t\t}\n\t\t\t// Test if line specifies a WAP site for the JAD files\n\t\t\telse if (line.startsWith(\"Wap-site:\"))\n\t\t\t{\n\t\t\t\twapSite = line.substring(9).trim();\n\t\t\t}\n\t\t\t// read in the Info URL if it is given\n\t\t\telse if (line.startsWith(\"MIDlet-Info-URL:\"))\n\t\t\t{\n\t\t\t\tmidlet_infoURL = line.substring(\"MIDlet-Info-URL:\".length()).trim();\n\t\t\t}\n\t\t\t// read in the Vendor if it is given\n\t\t\telse if (line.startsWith(\"MIDlet-Vendor:\"))\n\t\t\t{\n\t\t\t\tmidlet_vendor = line.substring(\"MIDlet-Vendor:\".length()).trim();\n\t\t\t}\n\t\t\t// Source-Text is ignored here but is retrieved earlier from within extractSourceTextPath()\n\t\t\telse if (line.startsWith(\"Source-Text:\"))\n\t\t\t{\n\t\t\t}\t\t\n\t\t\t// Source-FileExtension is the extension of the USFM files in the format ptx,ltn,uz..\n // retrieved earlier\n\t\t\telse if (line.startsWith(\"Source-FileExtension:\"))\n\t\t\t{\n \t\t\t}\t\t\n\t\t\t// Source-Format is ignored here but is retrieved earlier\n // Added in version > 2.2.6\n\t\t\telse if (line.startsWith(\"Source-Format:\"))\n\t\t\t{\n\t\t\t}\t\t\t\n\t\t\t// USFM-TitleTag is ignored here but is retrieved earlier\n // Added in version > 2.2.6\n\t\t\telse if (line.startsWith(\"USFM-TitleTag:\"))\n\t\t\t{\n\t\t\t}\t\t\t\n\t\t\t// Phone-Icon-Filepath is the filepath to the alternate icon\n // to be displayed by the application\n // Added in version > 2.2.6\n\t\t\telse if (line.startsWith(\"Phone-Icon-Filepath:\"))\n\t\t\t{\n phoneIconFilepath = line.substring(\"Phone-Icon-Filepath:\".length()).trim();\n }\n else if (line.startsWith(\"Codepage:\"))\n\t\t\t{\n fileCodepage = line.substring(\"Codepage:\".length()).trim();\n }\n // alternate name for the application that will be displayed in the \n // phone title\n // introduced in version > 2.2.6\n \t\t\telse if (line.startsWith(\"Application-Name:\"))\n\t\t\t{\n applicationName = line.substring(\"Application-Name:\".length()).trim();\n\t\t\t}\n // Check to see if the user wants to use red lettering\n // brought in earlier\n else if (line.startsWith(\"RedLettering:\"))\n {\n //defaults to true\n if (line.toLowerCase().indexOf(\"false\") > 0 || line.toLowerCase().indexOf(\"no\") > 0)\n {\n useRedLettering = false;\n }\n }\n\t\t\t// Test if line specifies Info property\n\t\t\telse if (line.startsWith(\"Info:\"))\n\t\t\t{\n\t\t\t\tinfoString = line.substring(5).trim();\n\t\t\t}\n\t\t\t// Test if line specifies Custom-Font property\n\t\t\telse if (line.startsWith(\"Custom-Font:\"))\n\t\t\t{\n\t\t\t\tcustomFontString = line.substring(12).trim();\n\t\t\t}\n\t\t\t// Test if line specifies Language-Code property\n\t\t\telse if (line.startsWith(\"Language-Code:\"))\n\t\t\t{\n\t\t\t\tint commaIndex = line.indexOf(',');\n\t\t\t\tif (commaIndex == -1)\n\t\t\t\t{\n\t\t\t\t\tlanguageCode = line.substring(14).trim();\n\t\t\t\t\tlanguageCodePosition = languageCodePositionType.suffix;\t// default value\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlanguageCode = line.substring(14, commaIndex);\n\t\t\t\t\tString langPosition = line.substring(commaIndex + 1).trim();\n\t\t\t\t\tif (langPosition.equalsIgnoreCase(\"prefix\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tlanguageCodePosition = languageCodePositionType.prefix;\n\t\t\t\t\t}\n\t\t\t\t\telse if (langPosition.equalsIgnoreCase(\"suffix\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tlanguageCodePosition = languageCodePositionType.suffix;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tlanguageCodePosition = languageCodePositionType.suffix;\t// default value\n\t\t\t\t\t\tSystem.out.println(\"Error parsing collections file. Unsupported Language-Code position: \" + langPosition + \", use 'prefix' or 'suffix'. (EX: Language-Code: en, prefix)\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Test if line specifies MIDP property\n\t\t\telse if (line.startsWith(\"MIDP:\"))\n\t\t\t{\n\t\t\t\tString midpVersionString = line.substring(5).trim();\n\n\t\t\t\t// Release 2.4.0 will no longer support MIDP-1.0\n\t\t\t\t//if (midpVersionString.equals(\"MIDP-1.0\"))\n\t\t\t\t//{\n\t\t\t\t//\tmidpVersion = midpVersionString;\n\t\t\t\t//\tMAX_FILE_SIZE = MAX_FILE_SIZE_MIDP_1;\n\t\t\t\t//}\n\t\t\t\t//else\n\t\t\t\tif (!midpVersionString.equals(midpVersion)) //\"MIDP-2.0\"))\n\t\t\t\t{\n\t\t\t\t\t// System.out.println(\"Error parsing collections file. Unsupported MIDP version: \" + midpVersionString + \", try MIDP-1.0 or MIDP-2.0\");\n\t\t\t\t\tSystem.out.println(\"Error parsing collections file. Unsupported MIDP version: \" + midpVersionString + \", use \" + midpVersion);//MIDP-2.0\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Test if this is the alignment property\n\t\t\telse if (line.startsWith(\"Align:\"))\n\t\t\t{\n\t\t\t\t// Set the alignment\n\t\t\t\tString alignString = line.substring(6).trim().toLowerCase();\n\t\t\t\tif (alignString.equals(\"left\"))\n\t\t\t\t{\n\t\t\t\t\talign = ALIGN_LEFT;\n\t\t\t\t}\n\t\t\t\telse if (alignString.equals(\"right\"))\n\t\t\t\t{\n\t\t\t\t\talign = ALIGN_RIGHT;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Error passing collections file. Did not understand align property: '\" + alignString + \"'. Must be either 'Left' or 'Right'.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Test if this is a book name map\n\t\t\telse if (line.startsWith(\"Book-Name-Map:\"))\n\t\t\t{\n\t\t\t\t// Grab the book short name\n\t\t\t\tString bookShortName = line.substring(14);\n\t\t\t\t\n\t\t\t\tint commaIndex = bookShortName.indexOf(',');\n\t\t\t\t\n\t\t\t\tString bookLongName = bookShortName.substring(commaIndex + 1).trim();\n\t\t\t\t\n\t\t\t\tbookShortName = bookShortName.substring(0, commaIndex).trim();\n\t\t\t\t\n\t\t\t\tif (!updateOnly)\n\t\t\t\t{\n\t\t\t\t\t// Find the book\n\t\t\t\t\tBook book = (Book) books.get(bookShortName);\n\n // the \\id tag syntax:\n // \\id <CODE> (Text text text...)\n // where <CODE> \"is normally the standard 3 letter UBS/SIL scripture book abbreviation.\"\n // we allow books to be identified using the id tag if the first word matches.\n // Hence, we add a special exception here.\n\n\t\t\t\t\tif (book == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Warning: can't find book name: \" + bookShortName);\n\t\t\t\t\t\tSystem.out.println(\"Check Book-Name-Map entries with source text file[s].\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// Set the book's long name\n\t\t\t\t\t\tbook.name = bookLongName;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Test if this is a new collection\n\t\t\telse if (line.startsWith(\"Collection:\"))\n\t\t\t{\n\t\t\t\tString collectionName = line.substring(11).trim();\n\t\t\t\t\n\t\t\t\tString fileName = collectionName;\n\t\t\t\t\n\t\t\t\t// If there is a comma then the first name is the file name\n\t\t\t\t// and the second name is the collection name\n\t\t\t\tint commaIndex = collectionName.indexOf(',');\n\t\t\t\t\n\t\t\t\tif (commaIndex != -1)\n\t\t\t\t{\n\t\t\t\t\tfileName = collectionName.substring(0, commaIndex);\n\t\t\t\t\tcollectionName = collectionName.substring(commaIndex + 1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Create a new collection with the name after \"Collection:\"\n\t\t\t\tif (languageCodePosition == languageCodePositionType.suffix)\n\t\t\t\t{\n\t\t\t\t\tcollection = new Collection(fileName + \" \" + languageCode, collectionName + \" \" + languageCode);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcollection = new Collection(languageCode + \" \" + fileName, languageCode + \" \" + collectionName);\n\t\t\t\t}\n\t\t\t\tcollections.add(collection);\n\t\t\t}\n\t\t\telse if (line.startsWith(\"Book:\"))\n\t\t\t{\n\t\t\t\t// If an existing collection doesn't exist then it is an error\n\t\t\t\tif (collection == null)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"'Book:' without collection on line \" + reader.getLineNumber());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// The book line may contain commas if start and end chapters are specified\n\t\t\t\tString bookName = line.substring(5);\n\t\t\t\tint startChapter = -1;\n\t\t\t\tint endChapter = -1;\n\t\t\t\tint commaIndex = bookName.indexOf(',');\n\t\t\t\t\n\t\t\t\tif (commaIndex >= 0)\n\t\t\t\t{\n\t\t\t\t\t// Grab the chapter numbers after the comma\n\t\t\t\t\tString startChapterString = bookName.substring(commaIndex + 1);\n\t\t\t\t\t\n\t\t\t\t\t// Remove the commas and chapter numbers from the book name\n\t\t\t\t\tbookName = bookName.substring(0, commaIndex);\n\t\t\t\t\t\n\t\t\t\t\t// Grab the second comma\n\t\t\t\t\tcommaIndex = startChapterString.indexOf(',');\n\t\t\t\t\t\n\t\t\t\t\tif (commaIndex >= 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tString endChapterString = startChapterString.substring(commaIndex + 1).trim();\n\t\t\t\t\t\tstartChapterString = startChapterString.substring(0, commaIndex).trim();\n\t\t\t\t\t\tstartChapter = Integer.parseInt(startChapterString);\n\t\t\t\t\t\tendChapter = Integer.parseInt(endChapterString);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Start chapter specified without end chapter on line \" + reader.getLineNumber());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Trim whitespace from around the book name\n\t\t\t\tbookName = bookName.trim();\n\t\t\t\t\n\t\t\t\t// If the start and end chapters aren't specified then get them from the XML book.\n\t\t\t\t// We can only do this if updateOnly isn't set, otherwise the source text\n\t\t\t\t// won't have been parsed.\n\t\t\t\tif (startChapter == -1 && !updateOnly)\n\t\t\t\t{\n Book xmlBook = (Book) books.get(bookName);\n\t\t\t\t\tif (xmlBook == null)\n\t\t\t\t\t{\n System.out.println(\"Couldn't find book: \" + bookName);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tstartChapter = xmlBook.startChapter;\n\t\t\t\t\tendChapter = xmlBook.chapters.size() + startChapter - 1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Create a new book and add it to the current collection\n\t\t\t\tBook book = new Book(bookName, startChapter, endChapter);\n\t\t\t\tcollection.add(book);\n\t\t\t}\n\t\t\telse if (line.startsWith(\"UI-\"))\n\t\t\t{\n\t\t\t\t// Override English definition\n\t\t\t\tint index = line.indexOf(':');\n\t\t\t\tuiProperties.put(line.substring(0, index), line.substring(index + 1));\n\t\t\t}\n\t\t\t// Empth verse text\n\t\t\telse if (line.startsWith(\"Empty-Verse-Text:\"))\n\t\t\t{\n\t\t\t\t// Grab text to display where the verse text is missing\n\t\t\t\tEmptyVerseString = line.substring(15).trim();\n\t\t\t}\n\t\t\telse if (line.startsWith(\"USFM-ParseConfig:\")) {\n\t\t\t GoBibleCreator.usfmParseConfigFile = line.substring(\"USFM-ParseConfig:\".length()).trim();\n\t\t\t}\n\t\t\t// If line isn't empty then report that we don't know what it is\n\t\t\telse if (!line.trim().equals(\"\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error parsing collections file. Can't understand line<\"+lineCount+\">:\\n\" + line);\n\t\t\t}\n }\n\t\t} // While\n\t\t\n\t\t// Close the file\n\t\treader.close();\n\t\t\n return collections;\n\t}", "public static Document parseXMLFile(final File file) throws IOException {\n\t\ttry {\t\t\t\n\t\t\tfinal DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n\t\t\tfinal DocumentBuilder documentBuilder = builderFactory.newDocumentBuilder();\n\t\t\tfinal Document document = documentBuilder.parse(file);\n\t\t\t\n\t\t\treturn document;\n\t\t} catch (ParserConfigurationException | SAXException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public XmlParser(String xmlFile) throws ParserConfigurationException, SAXException, IOException \n\t{\n\t\tFile fXmlFile = new File(xmlFile);\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\tdoc.getDocumentElement().normalize();\n\n\t\tNodeList nList = doc.getElementsByTagName(\"MedlineCitation\");\n\t\tfor (int temp = 0; temp < nList.getLength(); temp++) {\n\n\t\t\tNode nNode = nList.item(temp);\n\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\n\t\t\t\tElement eElement = (Element) nNode;\n\n\t\t\t\tString[] ID = getTagValue(\"PMID\", eElement);\n\t\t\t\tint pmid = new Integer(ID[0]).intValue();\t\t \n \n\t\t\t\t\n\t\t\t\tString[] articleTitle = getTagValue(\"ArticleTitle\",eElement);\n\t\t\t\tif(articleTitle!=null)\n\t\t\t\t{\t\n\t\t\t\t\ttokenizeText(articleTitle, pmid, false);\t\t\t\n\t\t\t\t}\n\n\n\t\t\t\tString[] articleText = getTagValue(\"AbstractText\",eElement);\t\t\t\n\t\t\t\tif (articleText!=null)\n\t\t\t\t{\n\t\t\t\t\ttokenizeText(articleText, pmid, true);\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Document parse (String filePath) {\n Document document = null;\n try {\n /* DOM parser instance */\n DocumentBuilder builder = builderFactory.newDocumentBuilder();\n /* parse an XML file into a DOM tree */\n document = builder.parse(filePath);\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return document;\n }", "public void readFile() {\r\n\t\tBufferedReader br = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tString currentLine;\r\n\r\n\t\t\tbr = new BufferedReader(new FileReader(fileName));\r\n\r\n\t\t\twhile ((currentLine = br.readLine()) != null) {\r\n\r\n\t\t\t\tif (!currentLine.equals(\"\")) {\r\n\t\t\t\t\tString[] paragraphs = currentLine.split(\"\\\\n\\\\n\");\r\n\r\n\t\t\t\t\tfor (String paragraphEntry : paragraphs) {\r\n\t\t\t\t\t\t//process(paragraphEntry);\r\n\t\t\t\t\t\t//System.out.println(\"Para:\"+paragraphEntry);\r\n\t\t\t\t\t\tParagraph paragraph = new Paragraph();\r\n\t\t\t\t\t\tparagraph.process(paragraphEntry);\r\n\t\t\t\t\t\tthis.paragraphs.add(paragraph);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (br != null)br.close();\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void loadFileToBackend(String fileName) throws Exception {\r\n\t\tArticleParser articleParser = null;\r\n\t\ttry {\r\n\t\t\tLOGGER.log(Level.FINEST,\"Parsing file\" + fileName);\r\n\t\t\tarticleParser = new ArticleParser(fileName,idGenerator,pubmedDump);\r\n\t\t\tarticleParser.parse();\r\n\t\t\tLOGGER.log(Level.FINEST,\"Parsing of {0} successfull \", fileName);\r\n\t\t\tgraphDelegator.updateGraph(articleParser.getPubmedId(),\r\n\t\t\t\t\t\tarticleParser.getKeywords(),\r\n\t\t\t\t\t\tarticleParser.getCitations());\r\n\t\t\t\r\n\t\t\tarticleParser = null;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tLOGGER.warning(\"Exception while parsing ::\" + ex.getMessage());\r\n\t\t}\r\n\r\n\t}", "public void initParser(String file) {\n if (checkFileExists(file)) {\n parseXml(file);\n }\n }", "private void parseDocument()\n {\n\tElement docEle = dom.getDocumentElement();\n\n\t// get a nodelist of <employee> elements\n\tNodeList nl = docEle.getElementsByTagName(\"path\");\n\tif (nl != null && nl.getLength() > 0)\n\t{\n\t for (int i = 0; i < nl.getLength(); i++)\n\t {// System.out.println(i);\n\n\t\t// get the employee element\n\t\tElement el = (Element) nl.item(i);\n\n\t\t// get the Employee object\n\t\tmakeRoom(el);\n\n\t }\n\n\t //Log.d(\"NUMROOMS\", \"numRooms = \" + numDetectedRooms + \" \" + \"numHallways = \" + numDetectedHallways);\n\t}\n\t// This will read in the numbers. This is possibly useful for giving the rooms their correct numbers.\n\t// Find all of the glyphs within the room using it's coordinates and the ID designated by roomsMap.\n\t// Organize their coordinates from left to right and translate the filename to what number they are.\n\t// These numbers from left to right are the room number.\n\n\t/*\n\t * NodeList glyphs = docEle.getElementsByTagName(\"use\"); if (nl != null && glyphs.getLength() > 0) { for (int i = 0; i < glyphs.getLength(); i++) {\n\t * \n\t * //get the employee element Element el = (Element) glyphs.item(i); //System.out.println(el.getAttribute(\"id\")); String x = el.getAttribute(\"x\"); String y = el.getAttribute(\"y\");\n\t * \n\t * //Create a new Employee with the value read from the xml nodes\n\t * \n\t * myGlyphs.add(new Point((int)Double.parseDouble(x), (int)(Double.parseDouble(y))));\n\t * \n\t * } }\n\t */\n\n\t//Log.d(Constants.TAG, \"XMLReader::parseDocument() Exiting!\");\n }", "private static Document read (File file) throws MalformedURLException, DocumentException {\r\n\t\tSAXReader reader = new SAXReader();\r\n\t\tDocument document = reader.read(file);\r\n\t\treturn document;\r\n\t}", "public void parse(File file, DefaultHandler handler) throws SAXException,\n IOException {\n if (file == null) {\n throw new IllegalArgumentException(\"file must not be null\");\n }\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"file must not be a directory\");\n }\n InputSource source = new InputSource(\"file:\" + file.getAbsolutePath());\n parse(source, handler);\n }", "public void parse(File file, HandlerBase handler) throws SAXException,\n IOException {\n if (file == null) {\n throw new IllegalArgumentException(\"file must not be null\");\n }\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"file must not be a directory\");\n }\n InputSource source = new InputSource(\"file:\" + file.getAbsolutePath());\n parse(source, handler);\n }", "public void processDocument(String url) throws PageReadException {\n // TODO: reset the results.\n impossible = false;\n givenUrl = url;\n nextPageLink = null;\n if (!notFirstPage) {\n xmlImages = new ArrayList<String>();\n title = null;\n }\n\n String content = pageReader.readPage(url);\n\n document = Jsoup.parse(content);\n\n if (document.getElementsByTag(\"body\").size() == 0) {\n LOG.error(\"no body to parse \" + url);\n impossible = true;\n throw new PageReadException(\"no body to parse\");\n }\n\n init(); // this needs another name, it does all the work.\n if (readAllPages && nextPageLink != null) {\n try {\n String textSoFar = articleText;\n notFirstPage = true;\n processDocument(nextPageLink);\n if (articleText != null) {\n articleText = textSoFar + articleText;\n }\n } finally {\n notFirstPage = false;\n System.out.println(articleText);\n }\n }\n\n }", "ReleaseFile parseWithSignature( InputStream is, InputStream signStream, InputStream keyStream ) throws IOException;", "public static void main(String[] args) {\r\n new ParseVimeoXMLFile();\r\n }", "public void parseDocument(String fileLocation) {\n List<Object> objects = FileUtility.readObjectsFromFile(fileLocation);\n new File(FILE_DIRECTORY_NAME).mkdir();\n\n // TODO: Parellize the processing of html parsing for each html page\n\n objects.parallelStream().forEach((object) -> {\n HtmlPage htmlPage = (HtmlPage) object;\n String title = DocumentUtility.extractDocumentID(htmlPage.getURL());\n String parsedText = parseTitle(title) + NEWLINE + parseHtmlText(htmlPage);\n parsedHtmlPages.add(new ParsedHtmlPage(title, parsedText));\n });\n }", "private void parseRawText() {\n\t\t//1-new lines\n\t\t//2-pageObjects\n\t\t//3-sections\n\t\t//Clear any residual data.\n\t\tlinePositions.clear();\n\t\tsections.clear();\n\t\tpageObjects.clear();\n\t\tcategories.clear();\n\t\tinterwikis.clear();\n\t\t\n\t\t//Generate data.\n\t\tparsePageForNewLines();\n\t\tparsePageForPageObjects();\n\t\tparsePageForSections();\n\t}", "public void parse(){\n\n Integer childStart = this.findNewElement(0, this.document.length - 1);\n if(childStart == null){\n return;\n }\n\n this.root.removeData();\n this.copyTextToDocumentTree(this.root, 0, childStart - 1);\n\n DocumentSectionType childType = this.getType(childStart);\n\n do {\n Integer end = this.findNextSameLevelElement(childStart + 1, childType);\n //now we have boundaries of our new element, so let's grab it's index\n //we need appropriate matcher\n\n Matcher childMatcher = childType.getPattern().matcher(this.document[childStart]);\n childMatcher.find();\n DocumentTree child = new DocumentTree(childType, childMatcher.group(1), null);\n\n //now clear first line\n try{\n String group2 = childMatcher.group(2);\n this.document[childStart] = group2 != null ? group2 + \" \" : \"\";\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] = \"\";\n }\n try {\n this.document[childStart] += childMatcher.group(3);\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] += \"\";\n }\n //and copy it's text\n this.copyTextToDocumentTree(child, childStart, end - 1);\n root.addChild(child);\n //finally, parse it\n DocumentParser childParser = new DocumentParser(child, joinChapterWithChapterNames);\n childParser.parse();\n\n childStart = end;\n }while(childStart != this.document.length);\n\n if(this.root.getType() == DocumentSectionType.CHAPTER && this.joinChapterWithChapterNames){\n DocumentTree nameNode = (DocumentTree)this.root.getChildren().get(0);\n this.root.removeData();\n this.root.appendData(nameNode.getIndex());\n this.root.replaceChild(nameNode, nameNode.getChildren());\n }\n\n }", "Collection<MeterRead> parseSimpleNem12(File simpleNem12File) throws SimpleNemParserException;", "public void parse(InputStream stream, ContentHandler handler, Metadata metadata,\n ParseContext context) throws IOException, SAXException, TikaException {\n EmbeddedDocumentExtractor embeddedExtractor =\n EmbeddedDocumentUtil.getEmbeddedDocumentExtractor(context);\n\n metadata.set(Metadata.CONTENT_TYPE, MS_OUTLOOK_PST_MIMETYPE.toString());\n\n XHTMLContentHandler xhtml = new XHTMLContentHandler(handler, metadata);\n xhtml.startDocument();\n\n TikaInputStream in = TikaInputStream.get(stream);\n PSTFile pstFile = null;\n try {\n pstFile = new PSTFile(in.getFile().getPath());\n metadata.set(Metadata.CONTENT_LENGTH, valueOf(pstFile.getFileHandle().length()));\n boolean isValid = pstFile.getFileHandle().getFD().valid();\n metadata.set(\"isValid\", valueOf(isValid));\n if (pstFile.getPSTFileType() == PSTFile.PST_TYPE_2013_UNICODE) {\n throw new TikaException(\n \"OST 2013 support not added yet. It will be when https://github.com/rjohnsondev/java-libpst/issues/60 is fixed.\");\n }\n if (isValid) {\n parseFolder(xhtml, pstFile.getRootFolder(), embeddedExtractor);\n }\n } catch (TikaException e) {\n throw e;\n } catch (Exception e) {\n throw new TikaException(e.getMessage(), e);\n } finally {\n if (pstFile != null && pstFile.getFileHandle() != null) {\n try {\n pstFile.getFileHandle().close();\n } catch (IOException e) {\n //swallow closing exception\n }\n }\n }\n\n xhtml.endDocument();\n }", "public static void main(String[] args) throws ParseException {\n String text;\n\n File file;\n\n /* pdfStripper = null;\n pdDoc = null;\n cosDoc = null;\n */ String parsed = parseWithTika();\n file = new File(filePath);\n try {\n /* parser = new PDFParser(new FileInputStream(file)); // update for PDFBox V 2.0\n parser.parse();\n cosDoc = parser.getDocument();\n pdfStripper = new PDFTextStripper();\n pdDoc = new PDDocument(cosDoc);\n pdDoc.getNumberOfPages();\n */ //pdfStripper.setStartPage(1);\n //pdfStripper.setEndPage(10);\n /* text = pdfStripper.getText(pdDoc);\n String resultString = text.replaceAll(\"\\\\p{C}|\\\\p{Sm}|\\\\p{Sk}|\\\\p{So}\", \" \");\n */\n\n //testDictionary();\n testOpenNlp(parsed);\n testOpenNlp(\"anas al bassit\");\n testOpenNlp(\"Anas Al Bassit\");\n testOpenNlp(\"barack obama\");\n testOpenNlp(\"Barack Obama\");\n\n\n System.out.println();\n } catch (IOException e) {\n e.printStackTrace();\n }\n// catch (ParseException e) {\n// e.printStackTrace();\n// }\n }", "public HTMLParser (byte[] page) {\r\n //page = parseToHTML(page);\r\n\r\n setText (page);\r\n }", "public static final Document parse(final InputStream is) {\r\n final InputSource in = new InputSource(is);\r\n\r\n return parse(in);\r\n }", "public void parse()\n throws ClassNotFoundException, IllegalAccessException,\n\t InstantiationException, IOException, SAXException,\n\t ParserConfigurationException\n {\n\tSAXParser saxParser = SAXParserFactory.newInstance().newSAXParser();\n\txmlReader = saxParser.getXMLReader();\n\txmlReader.setContentHandler(this);\n\txmlReader.setEntityResolver(this);\n\txmlReader.setErrorHandler(this);\n\txmlReader.setDTDHandler(this);\n\txmlReader.parse(xmlSource);\n\t}", "public Document parseFile(String fileName) {\r\n log.debug(\"Parsing XML file... \" + fileName);\r\n DocumentBuilder docBuilder;\r\n Document doc = null;\r\n DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n docBuilderFactory.setIgnoringElementContentWhitespace(true);\r\n try {\r\n docBuilder = docBuilderFactory.newDocumentBuilder();\r\n }\r\n catch (ParserConfigurationException e) {\r\n log.debug(\"Wrong parser configuration: \" + e.getMessage());\r\n return null;\r\n }\r\n File sourceFile = new File(fileName);\r\n try {\r\n doc = docBuilder.parse(sourceFile);\r\n setDocument(doc);\r\n }\r\n catch (SAXException e) {\r\n log.debug(\"Wrong XML file structure: \" + e.getMessage());\r\n return null;\r\n }\r\n catch (IOException e) {\r\n log.debug(\"Could not read source file: \" + e.getMessage());\r\n }\r\n log.debug(\"XML file parsed\");\r\n return doc; \r\n }", "@Override\r\n protected void parseDocuments()\r\n {\n\r\n }", "@Override\n public void parse() {\n if (file == null)\n throw new IllegalStateException(\n \"File cannot be null. Call setFile() before calling parse()\");\n\n if (parseComplete)\n throw new IllegalStateException(\"File has alredy been parsed.\");\n\n FSDataInputStream fis = null;\n BufferedReader br = null;\n\n try {\n fis = fs.open(file);\n br = new BufferedReader(new InputStreamReader(fis));\n\n // Go to our offset. DFS should take care of opening a block local file\n fis.seek(readOffset);\n records = new LinkedList<T>();\n\n LineReader ln = new LineReader(fis);\n Text line = new Text();\n long read = readOffset;\n\n if (readOffset != 0)\n read += ln.readLine(line);\n\n while (read < readLength) {\n int r = ln.readLine(line);\n if (r == 0)\n break;\n\n try {\n T record = clazz.newInstance();\n record.fromString(line.toString());\n records.add(record);\n } catch (Exception ex) {\n LOG.warn(\"Unable to instantiate the updateable record type\", ex);\n }\n read += r;\n }\n\n } catch (IOException ex) {\n LOG.error(\"Encountered an error while reading from file \" + file, ex);\n } finally {\n try {\n if (br != null)\n br.close();\n\n if (fis != null)\n fis.close();\n } catch (IOException ex) {\n LOG.error(\"Can't close file\", ex);\n }\n }\n\n LOG.debug(\"Read \" + records.size() + \" records\");\n }", "public DerParser( InputStream in ) throws IOException {\n this.in = in;\n }", "SAPL parse(InputStream saplInputStream);", "private static SimpleNode parse(String filename) throws ParseException {\n\t\tParser parser;\n\t\t// open file as input stream\n\t\ttry {\n\t\t\tparser = new Parser(new java.io.FileInputStream(filename));\n\t\t}\n\t\tcatch (java.io.FileNotFoundException e) {\n\t\t\tSystem.out.println(\"ERROR: file \" + filename + \" not found.\");\n\t\t\treturn null;\n\t\t}\n\t\t// parse and return root node\n\t\treturn parser.parse();\n\t}", "public DocumentData parseData(byte[] data) throws Exception {\n if (data.length < 30) {\n throw new Exception(\"Unsupported barcode encoding\");\n }\n byte complianceIndicator = data[0];\n if (complianceIndicator == 0x40) {\n // May be AAMVA\n byte elementSeparator = data[1];\n byte recordSeparator = data[2];\n byte segmentTerminator = data[3];\n byte[] fileType = Arrays.copyOfRange(data, 4, 9);\n byte[] iin = Arrays.copyOfRange(data, 9, 15);\n int aamvaVersionNumber = dataToInt(Arrays.copyOfRange(data, 15, 17));\n AAMVASubfileParser subfileParser = new AAMVASubfileParser(aamvaVersionNumber, elementSeparator);\n byte[] jurisdictionVersionNumber = Arrays.copyOfRange(data, 17, 19);\n int numberOfEntries = dataToInt(Arrays.copyOfRange(data, 19, 21));\n int index = 21;\n AAMVADocumentData documentData = null;\n for (int i=0; i<numberOfEntries; i++) {\n String subfileType = new String(Arrays.copyOfRange(data, index, index+2), UTF8);\n int offset = dataToInt(Arrays.copyOfRange(data, index+2, index+6));\n int length = dataToInt(Arrays.copyOfRange(data, index+6, index+10));\n int start = Math.min(offset, data.length);\n int end = Math.min(offset+length, data.length);\n if (numberOfEntries == 1 && offset == 0) {\n start = data.length - length;\n end = data.length;\n }\n AAMVADocumentData subData = subfileParser.parseFields(Arrays.copyOfRange(data, start, end));\n if (documentData == null) {\n documentData = subData;\n } else {\n documentData.appendFieldsFrom(subData);\n }\n index += 10;\n }\n if (documentData == null || documentData.isEmpty()) {\n throw new Exception(\"Empty document\");\n }\n return documentData;\n } else if (data[0] == 0x25) {\n MagStripeDocumentData documentData = new MagStripeDocumentData();\n String track = new String(data, StandardCharsets.US_ASCII);\n String jurisdiction = track.substring(1, 3);\n documentData.setValue(new DataField(\"State/Province\", jurisdiction, jurisdiction), \"State/Province\");\n track = track.substring(3);\n String city = getStringToDelimiter(track, \"^\", 13);\n documentData.setValue(new DataField(\"City\", city, city), \"City\");\n track = track.substring(city.length());\n track = leftTrimString(track, \"^\");\n String name = getStringToDelimiter(track, \"^\", 35);\n String[] names = name.split(\"\\\\$\");\n if (names.length > 2) {\n documentData.setValue(new DataField(\"Title\", names[2], names[2].trim()), \"Title\");\n }\n if (names.length > 1) {\n documentData.setValue(new DataField(\"First name\", names[1], StringUtils.strip(names[1], \"/, \")), \"First name\");\n }\n if (names.length > 0) {\n documentData.setValue(new DataField(\"Last name\", names[0], StringUtils.strip(names[0], \"/, \")), \"Last name\");\n }\n track = track.substring(name.length());\n track = leftTrimString(track, \"^\");\n String address = getStringToDelimiter(track, \"^\", 77 - city.length() - name.length());\n address = getStringToDelimiter(address, \"?\", address.length());\n String[] addressFields = address.split(\"\\\\$\");\n address = TextUtils.join(\"\\n\", addressFields);\n documentData.setValue(new DataField(\"Address\", address, address), \"Address\");\n if (track.substring(0, 1).equals(\"?\")) {\n track = track.substring(1);\n }\n int delimiterIndex = track.indexOf(\";\");\n if (delimiterIndex > -1) {\n track = track.substring(delimiterIndex+1);\n String iin = track.substring(0, 6);\n documentData.setValue(new DataField(\"IIN\", iin, iin), \"IIN\");\n track = track.substring(6);\n String dlNo = getStringToDelimiter(track, \"=\", 13);\n track = track.substring(dlNo.length());\n track = leftTrimString(track, \"=\");\n String expiryYear = \"20\"+track.substring(0, 2);\n String expiryMonth = track.substring(2, 4);\n track = track.substring(4);\n String birthYear = track.substring(0, 4);\n String birthMonth = track.substring(4, 6);\n String birthDate = track.substring(6, 8);\n track = track.substring(8);\n String expiryDate = null;\n if (expiryMonth.equals(\"77\")) {\n expiryDate = \"non-expiring\";\n } else if (expiryMonth.equals(\"88\")) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(Integer.parseInt(\"20\" + expiryYear) + 1, Integer.parseInt(birthMonth), 1);\n expiryDate = Integer.toString(calendar.getActualMaximum(Calendar.DAY_OF_MONTH));\n expiryDate = expiryDate + \"/\" + birthMonth + \"/\" + expiryYear;\n } else if (expiryMonth.equals(\"99\")) {\n expiryDate = birthDate + \"/\" + birthMonth + \"/\" + expiryYear;\n } else {\n Calendar calendar = Calendar.getInstance();\n calendar.set(Integer.parseInt(\"20\" + expiryYear), Integer.parseInt(expiryMonth), 1);\n expiryDate = Integer.toString(calendar.getActualMaximum(Calendar.DAY_OF_MONTH));\n expiryDate = expiryDate + \"/\" + expiryMonth + \"/\" + expiryYear;\n }\n documentData.setValue(new DataField(\"Date of expiry\", expiryDate, expiryDate), \"Date of expiry\");\n documentData.setValue(new DataField(\"Date of birth\", birthDate+birthMonth+birthYear, birthDate+\"/\"+birthMonth+\"/\"+birthYear), \"Date of birth\");\n if (track.length() > 0) {\n String dlNoOverflow = getStringToDelimiter(track, \"=\", 5);\n if (!dlNoOverflow.isEmpty()) {\n dlNo += dlNoOverflow;\n }\n }\n documentData.setValue(new DataField(\"DL/ID#\", dlNo, dlNo), \"DL/ID#\");\n delimiterIndex = track.indexOf(\"%\");\n }\n if (delimiterIndex > -1) {\n track = track.substring(delimiterIndex+1);\n String versionNumber = track.substring(0, 1);\n documentData.setValue(new DataField(\"Version #\", versionNumber, versionNumber), \"Version #\");\n track = track.substring(1);\n String securityVersionNumber = track.substring(0, 1);\n documentData.setValue(new DataField(\"Security v. #\", securityVersionNumber, securityVersionNumber), \"Security v. #\");\n track = track.substring(1);\n String postalCode = StringUtils.strip(track.substring(0, 11), \"/, \");\n documentData.setValue(new DataField(\"Postal code\", postalCode, postalCode), \"Postal code\");\n track = track.substring(11);\n String dlClass = track.substring(0, 2).trim();\n if (!dlClass.isEmpty()) {\n documentData.setValue(new DataField(\"Class\", dlClass, dlClass), \"Class\");\n }\n track = track.substring(2);\n String restrictions = track.substring(0, 10).trim();\n if (!restrictions.isEmpty()) {\n documentData.setValue(new DataField(\"Restrictions\", restrictions, restrictions), \"Restrictions\");\n }\n track = track.substring(10);\n String endorsements = track.substring(0, 4).trim();\n if (!endorsements.isEmpty()) {\n documentData.setValue(new DataField(\"Endorsements\", endorsements, endorsements), \"Endorsements\");\n }\n track = track.substring(4);\n String sex = track.substring(0, 1);\n documentData.setValue(new DataField(\"Sex\", sex, sex), \"Sex\");\n track = track.substring(1);\n String height = track.substring(0, 3).trim();\n if (!height.isEmpty()) {\n documentData.setValue(new DataField(\"Height\", height, height), \"Height\");\n }\n track = track.substring(3);\n String weight = track.substring(0, 3).trim();\n if (!weight.isEmpty()) {\n documentData.setValue(new DataField(\"Weight\", weight, weight), \"Weight\");\n }\n track = track.substring(3);\n String hairColour = track.substring(0, 3).trim();\n if (!hairColour.isEmpty()) {\n documentData.setValue(new DataField(\"Hair color\", hairColour, getHairColour(hairColour)), \"Hair color\");\n }\n track = track.substring(3);\n String eyeColour = track.substring(0, 3).trim();\n if (!eyeColour.isEmpty()) {\n documentData.setValue(new DataField(\"Eye color\", eyeColour, getEyeColour(eyeColour)), \"Eye color\");\n }\n }\n return documentData;\n }\n throw new Exception(\"Nothing decoded\");\n }", "protected String parse(InputStream is, Metadata metadata) throws IOException, SAXException, TikaException \n\t{\n\t\tParseContext context = new ParseContext();\n\t\tParser parser = new AutoDetectParser();\n\t\tcontext.set(Parser.class, parser);\n\t\tContentHandler handler = new BodyContentHandler(-1);\n\t\tparser.parse(is, handler, metadata, context);\n\t\treturn handler.toString();\n\t}", "String readDocument(String path, Charset charset);", "@Override\n\tpublic Document parse(final CharSequence content) {\n\t\tfinal LagartoParser lagartoParser = new LagartoParser(config.parserConfig, content);\n\t\treturn parseWithLagarto(lagartoParser);\n\t}", "@Override\n public void parse() throws ParseException {\n\n /* parse file */\n try {\n\n Scanner scanner = new Scanner(file, CHARSET_UTF_8);\n\n MowerConfig mowerConfig = null;\n\n int lineNumber = 1;\n\n do {\n\n boolean even = lineNumber % 2 == 0;\n String line = scanner.nextLine();\n\n /* if nothing in the file */\n if ((line == null || line.isEmpty()) && lineNumber == 1) {\n\n throw new ParseException(\"Nothing found in the file: \" + file);\n\n /* first line: lawn top right position */\n } else if(lineNumber == 1) {\n\n Position lawnTopRight = Position.parsePosition(line);\n config.setLawnTopRightCorner(lawnTopRight);\n\n /* even line: mower init */\n } else if (even) {\n\n int lastWhitespace = line.lastIndexOf(' ');\n Position p = Position.parsePosition(line.substring(0, lastWhitespace));\n Orientation o = Orientation.parseOrientation(line.substring(lastWhitespace).trim());\n\n mowerConfig = new MowerConfig();\n mowerConfig.setInitialPosition(p);\n mowerConfig.setInitialOrientation(o);\n\n /* odd line: mower commands */\n } else {\n\n mowerConfig.setCommands(MowerCommand.parseCommands(line));\n config.addMowerConfig(mowerConfig);\n }\n\n lineNumber++;\n\n } while(scanner.hasNextLine());\n\n\n } catch (Exception e) {\n throw new ParseException(\"Exception: \" + e.getMessage());\n }\n\n }", "private Document initialize() {\r\n Document doc = null;\r\n try {\r\n File file = new File(\"./evidence.xml\");\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = dbFactory.newDocumentBuilder();\r\n doc = docBuilder.parse(file);\r\n doc.getDocumentElement().normalize();\r\n } catch (ParserConfigurationException | IOException | SAXException e) {\r\n System.err.println(\"Parser failed parse file:\"+e.getMessage());\r\n }\r\n return doc;\r\n }", "public Parser(URL url) {\n \t\t\ttry {\n \t\t\t\tload(url.openStream());\n \t\t\t} catch (Exception e) {\n \t\t\t\t// continue ... actual parsing will report errors\n \t\t\t}\n \t\t}", "public Collection<String> parse(Reader page)\r\n\t{\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\t//create an input source to parse from the stream\r\n\t\t\tInputSource pageInputSource = new InputSource(page);\r\n\t\t\t\r\n\t\t\t// parse page\r\n\t\t\tp.parse(pageInputSource);\r\n\t\t\t\r\n\t\t\treturn linkContextHandler.removeLinkStrings();\r\n\t\t} catch (IOException e)\r\n\t\t{\r\n\r\n\t\t\tLogger.log(0, this.getClass().getSimpleName(), \"parse\",\r\n\t\t\t\t\t\"input error, couldn't parse page: \" + e.toString());\r\n\t\t} catch (SAXException e)\r\n\t\t{\r\n\t\t\tLogger.log(0, this.getClass().getSimpleName(), \"parse\",\r\n\t\t\t\t\t\"SAX exception, tag soup couldn't parse page: \"\r\n\t\t\t\t\t\t\t+ e.toString());\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}" ]
[ "0.67139304", "0.63763946", "0.6140581", "0.6003945", "0.59999573", "0.5900554", "0.5833397", "0.5713595", "0.57113564", "0.5707755", "0.56647444", "0.55292314", "0.5520886", "0.5503243", "0.5472538", "0.5425389", "0.542218", "0.5396502", "0.5317876", "0.5317643", "0.5296849", "0.5221271", "0.51976234", "0.5189842", "0.51795524", "0.51783204", "0.51758665", "0.5173508", "0.5169963", "0.5158157", "0.51564914", "0.51552385", "0.51391345", "0.5121766", "0.50789267", "0.5053554", "0.5052753", "0.50323415", "0.5023345", "0.5000453", "0.4999178", "0.4983895", "0.49837375", "0.4978301", "0.49699128", "0.49671835", "0.49664086", "0.49648234", "0.4951964", "0.49462986", "0.49428463", "0.49359718", "0.49341014", "0.49258623", "0.49148697", "0.48985687", "0.48928854", "0.48882422", "0.48876005", "0.48769075", "0.48551756", "0.48485827", "0.48460695", "0.48456237", "0.48401883", "0.48334113", "0.4832987", "0.48282158", "0.48281172", "0.48234686", "0.4822949", "0.48185903", "0.48172483", "0.48152226", "0.48067546", "0.48053265", "0.47954458", "0.47944856", "0.4779029", "0.4777367", "0.476634", "0.47659376", "0.47604838", "0.47571197", "0.47545984", "0.47535622", "0.47510487", "0.4750908", "0.47437084", "0.47412553", "0.47374082", "0.4728229", "0.4727922", "0.47267598", "0.47264656", "0.47216114", "0.4709957", "0.46980977", "0.4690644", "0.46902743" ]
0.5529447
11
Extract the root files.
private static List<File> rootFiles(final File metaDir) throws IOException { File containerFile = new File(metaDir, "container.xml"); if(!containerFile.exists()) { throw new IOException("Missing 'META-INF/container.xml'"); } List<File> rootFiles = Lists.newArrayListWithExpectedSize(2); try(FileInputStream fis = new FileInputStream(containerFile)) { Document doc = Jsoup.parse(fis, Charsets.UTF_8.name(), "", Parser.xmlParser()); Elements elements = doc.select("rootfile[full-path]"); for(Element element : elements) { String path = element.attr("full-path").trim(); if(path.isEmpty()) { continue; } else if(path.startsWith("/")) { path = path.substring(1); } File rootFile = new File(metaDir.getParent(), path); if(!rootFile.exists()) { throw new IOException(String.format("Missing file, '%s'", rootFile.getAbsolutePath())); } rootFiles.add(rootFile); } } return rootFiles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected File[] getFiles() {\r\n DirectoryScanner scanner = new DirectoryScanner(rootDir,true,\"*.xml\");\r\n List<File> files = scanner.list();\r\n return files.toArray(new File[files.size()]);\r\n }", "public PublishFileSet(Path root) throws IOException {\n this.root = root;\n this.files = getFilesOnPath(root);\n }", "private Collection<File> getInputFiles(String docRoot) {\r\n File dir = new File(docRoot);\r\n if (testXMLDir == null || !dir.isDirectory() || !dir.canRead()) {\r\n throw new RuntimeException(\"unable to read from this directory: \" + testXMLDir);\r\n }\r\n Collection<File> xmlFiles = new ArrayList<File>();\r\n xmlFiles = listFileNames(dir,xmlFiles);\r\n return xmlFiles;\r\n }", "protected List <WebFile> getSourceDirChildFiles()\n{\n // Iterate over source dir and add child packages and files\n List children = new ArrayList();\n for(WebFile child : getFile().getFiles()) {\n if(child.isDir() && child.getType().length()==0)\n addPackageDirFiles(child, children);\n else children.add(child);\n }\n \n return children;\n}", "private void getExtractWithFiles(){\n\t\ttry{\n\t\t\t\n\t\t\tFileInputStream fStream = new FileInputStream(tfile);\n\t\t\tfileBytes = new byte[(int)tfile.length()];\n\t\t\t\n\t\t\tfStream.read(fileBytes, 0, fileBytes.length);\n\t\t\tfileSize = fileBytes.length;\n\t\t}catch(Exception ex){\n\t\t\tSystem.err.println(\"File Packet \"+ex.getMessage());\n\t\t}\n\t}", "VirtualDirectory getRootContents();", "private File extractResources() {\r\n\t\tif (org.opensourcephysics.display.OSPRuntime.appletMode)\r\n\t\t\treturn null;\r\n\t\tFile descTempDirectory = new File(getTemporaryDir() + \"DescriptionPages/\");\r\n\t\tif (!descTempDirectory.exists()) {\r\n\t\t\tif (!descTempDirectory.mkdirs()) {\r\n\t\t\t\tSystem.err.println(\r\n\t\t\t\t\t\t\"DescriptionPages : Could not create directory : \" + descTempDirectory.getAbsolutePath());\r\n\t\t\t\tJOptionPane.showMessageDialog(openPageButton, Memory.getResource(\"DescriptionPages.CannotExtractFiles\"),\r\n\t\t\t\t\t\tMemory.getResource(\"Error\"), JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// System.err.println (\"Extracting description pages to folder :\r\n\t\t// \"+descTempDirectory.getAbsolutePath());\r\n\t\tfor (String filename : model._getClassEjsResources()) {\r\n\t\t\tif (extractToDirectory(filename, descTempDirectory, false) == null)\r\n\t\t\t\treturn null;\r\n\t\t}\r\n\t\textractToDirectory(\"/_ejs_library/css/ejss.css\", descTempDirectory, false); // New in %.3Failure to do this does\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// not invalidate the process\r\n\t\treturn descTempDirectory;\r\n\t}", "private List<File> getFileList(File root){\n\t List<File> returnable = new ArrayList<File>();\n\t if(root.exists()){\n\t\t for(File currentSubFile : root.listFiles()){\n\t\t\t if(currentSubFile.isDirectory()){\n\t\t\t\t returnable.addAll(getFileList(currentSubFile));\n\t\t\t } else {\n\t\t\t\t returnable.add(currentSubFile);\n\t\t\t }\n\t\t }\n\t }\n\t return returnable;\n }", "private static ArrayList<File> getLocalRootHiveXmlDirectories(\n Context ctx,\n NwdDb db) {\n\n HiveRoot localRoot = UtilsHive.getLocalHiveRoot(ctx, db);\n\n return getFoldersForHiveRoot(localRoot, true, false);\n }", "@Override\n\tpublic Iterable<Path> getRootDirectories() {\n\t\treturn null;\n\t}", "private static void getFiles(String root, Vector files) {\n Location f = new Location(root);\n String[] subs = f.list();\n if (subs == null) subs = new String[0];\n Arrays.sort(subs);\n \n // make sure that if a config file exists, it is first on the list\n for (int i=0; i<subs.length; i++) {\n if (subs[i].endsWith(\".bioformats\") && i != 0) {\n String tmp = subs[0];\n subs[0] = subs[i];\n subs[i] = tmp;\n break;\n }\n }\n \n if (subs == null) {\n LogTools.println(\"Invalid directory: \" + root);\n return;\n }\n \n ImageReader ir = new ImageReader();\n Vector similarFiles = new Vector();\n \n for (int i=0; i<subs.length; i++) {\n LogTools.println(\"Checking file \" + subs[i]);\n subs[i] = new Location(root, subs[i]).getAbsolutePath();\n if (isBadFile(subs[i]) || similarFiles.contains(subs[i])) {\n LogTools.println(subs[i] + \" is a bad file\");\n String[] matching = new FilePattern(subs[i]).getFiles();\n for (int j=0; j<matching.length; j++) {\n similarFiles.add(new Location(root, matching[j]).getAbsolutePath());\n }\n continue;\n }\n Location file = new Location(subs[i]);\n \n if (file.isDirectory()) getFiles(subs[i], files);\n else if (file.getName().equals(\".bioformats\")) {\n // special config file for the test suite\n configFiles.add(file.getAbsolutePath());\n }\n else {\n if (ir.isThisType(subs[i])) {\n LogTools.println(\"Adding \" + subs[i]);\n files.add(file.getAbsolutePath());\n }\n else LogTools.println(subs[i] + \" has invalid type\");\n }\n file = null;\n }\n }", "private void parseFiles() throws ParserException{\n NodeList fileNodesList = root.getElementsByTagName(\"file\");\n for(int i=0; i<fileNodesList.getLength(); i++){\n filesToProcess.add(getFile((Element) fileNodesList.item(i)));\n }\n }", "public static void getAllFiles()\n\t{\n\t\t//Getting the File Name\n\n\t\tList<String> fileNames = FileManager.getAllFiles(folderpath);\n\t\n\t\tfor(String f:fileNames)\n\t\tSystem.out.println(f);\n\t\n\t}", "public String execute() {\n String output = \"\";\n String tempOut = \"\";\n FSElement file;\n ArrayList<FSElement> recfiles;\n for (String fileName : dirArray) {\n file = Traverse.accessFS(fileName, root);\n if (file != null) {\n if (file instanceof File) {\n tempOut = getContent((File) file);\n if (!(output.contains(tempOut))) {\n output += tempOut;\n }\n } else if (subdir) {\n recfiles = Traverse.getAllDirs((Directory) file);\n for (FSElement temp : recfiles) {\n if (temp instanceof File) {\n tempOut = getContent((File) temp);\n if (!(output.contains(tempOut))) {\n output += tempOut;\n }\n }\n }\n }\n } else {\n Output.pathIncorrect(fileName);\n }\n }\n if (!(output.equals(\"\"))) {\n output = output.substring(0, output.length() - 2);\n return output;\n } else {\n Output.NoFilesFound();\n return null;\n }\n }", "public List<Path> getTestFiles() throws Exception {\n try (Stream<Path> stream = Files.list(Paths.get(BibTeXMLImporterTest.class.getResource(\"\").toURI()))) {\n return stream.filter(p -> !Files.isDirectory(p)).collect(Collectors.toList());\n }\n\n }", "public List<DatasetBean> getAllFiles(List<DatasetBean> found, DatasetBean root) {\n List<DatasetBean> current = root.getChildren();\n\n if (current == null) {\n found.add(root);\n } else if (current.size() == 0) {\n found.add(root);\n\n } else {\n for (int i = 0; i < current.size(); i++) {\n getAllFiles(found, current.get(i));\n }\n }\n return found;\n }", "static void walkTheDir(){ \n\t try (Stream<Path> paths = Files.walk(Paths.get(\"/ownfiles/tullverketCert/source\"))) {\n\t \t paths\n\t \t .filter(Files::isRegularFile)\n\t \t //.forEach(System.out::println);\n\t \t .forEach( e ->{\n\t \t \t\tSystem.out.println(e);\n\t \t \t\tSystem.out.println(e.getParent());\n\t \t \t\t\n\t \t \t});\n\t \t \n \t}catch (Exception e) { \n\t System.out.println(\"Exception: \" + e); \n\t } \n\t }", "private void listAllClasses(List<Path> foundFiles, Path root) {\r\n if (root.toFile().isFile()) {\r\n foundFiles.add(root);\r\n } else {\r\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(root, filter)) {\r\n for (Path path : stream) {\r\n if (Files.isDirectory(path)) {\r\n listAllClasses(foundFiles, path);\r\n } else {\r\n foundFiles.add(path);\r\n }\r\n }\r\n } catch (AccessDeniedException e) {\r\n logger.error(\"Access denied to directory {}\", root, e);\r\n } catch (IOException e) {\r\n logger.error(\"Error while reading directory {}\", root, e);\r\n }\r\n }\r\n }", "public StaticFiles(final File root) {\r\n\t\tthis.rootPath = root;\r\n\t}", "private void getDriveContents() {\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n // get only the folders in the root directory of drive account\n List<File> files = getContents(TOP_LEVEL + \" and \" + NOT_TRASHED + \" and \" + FOLDER + \" and \" + NOT_SPREADSHEET);\n \n prune(targetDir, files);\n processLanguages(files);\n }\n });\n t.start();\n }", "public void extractAll(String pathToDir) throws Exception {\n File dir = new File(pathToDir);\n File[] files = dir.listFiles();\n\n Set<String> edges = readEdges(files);\n writeEdgeFile(edges, pathToDir + \"/../edge_file.txt\");\n }", "public List <WebFile> getChildFiles()\n{\n if(_type==FileType.SOURCE_DIR) return getSourceDirChildFiles();\n return _file.getFiles();\n}", "synchronized List<File> getRoots() {\n\t\t\treturn new ArrayList<>(roots);\n\t\t}", "public ScanResult getFilesRecursively() {\n\n final ScanResult scanResult = new ScanResult();\n try {\n Files.walkFileTree(this.basePath, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n if (!attrs.isDirectory() && PICTURE_MATCHER.accept(file.toFile())) {\n scanResult.addEntry(convert(file));\n System.out.println(file.toFile());\n }\n return FileVisitResult.CONTINUE;\n }\n });\n } catch (IOException e) {\n // intentional fallthrough\n }\n\n return new ScanResult();\n }", "private static File[] filesMiner(String path) {\n try {\n File directoryPath = new File(path);\n FileFilter onlyFile = new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n return pathname.isFile();\n }\n }; // filter directories\n return directoryPath.listFiles(onlyFile);\n } catch (Exception e) {\n System.err.println(UNKNOWN_ERROR_WHILE_ACCESSING_FILES);\n return null;\n }\n\n }", "static Stream<File> allFilesIn(File folder) \r\n\t{\r\n\t\tFile[] children = folder.listFiles();\r\n\t\tStream<File> descendants = Arrays.stream(children).filter(File::isDirectory).flatMap(Program::allFilesIn);\r\n\t\treturn Stream.concat(descendants, Arrays.stream(children).filter(File::isFile));\r\n\t}", "private static void extract (Path zipPath, Path destination)\n\t\tthrows IOException\n\t{\n\t\tif (Files.isDirectory (zipPath))\n\t\t{\n\t\t\ttry (DirectoryStream<Path> directoryStream = Files\n\t\t\t\t.newDirectoryStream (zipPath);)\n\t\t\t{\n\t\t\t\tfor (Path file : directoryStream)\n\t\t\t\t{\n\t\t\t\t\textract (file, destination);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tPath fileOutZip = destination\n\t\t\t\t.resolve (\"./\" + zipPath.normalize ().toString ()).normalize ();\n\t\t\tFiles.createDirectories (fileOutZip.getParent ());\n\t\t\tFiles.copy (zipPath, fileOutZip, Utils.COPY_OPTION);\n\t\t}\n\t}", "public void loadFilesInFolder(File rootFile) {\r\n\t\tDefaultListModel<File> model = new DefaultListModel<>();\r\n\t\tfor (File nextFile : rootFile.listFiles()) {\r\n\t\t\tmodel.addElement(nextFile);\r\n\t\t}\r\n\t\tlist.setModel(model);\r\n\t}", "public Stream<Path> loadAll() {\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(\"File Retrived\");\n\t\t\treturn Files.walk(this.path, 1).filter(path->!path.equals(this.path)).map(this.path::relativize);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"File Retrived Error\");\n\t\t}\n\t\treturn null;\n\t}", "GitFile[] getFilesImpl() throws Exception\n {\n TreeWalk twalk = new TreeWalk(getRepo()); twalk.addTree(_rev);\n List <GitFile> files = new ArrayList();\n while(twalk.next()) {\n ObjectId id = twalk.getObjectId(0);\n RevObject rid = getRevObject(id);\n String path = _path + (_path.length()>1? \"/\" : \"\") + twalk.getNameString();\n GitFile child = rid instanceof RevTree? new GitTree((RevTree)rid, path) : new GitBlob((RevBlob)rid, path);\n files.add(child);\n }\n return files.toArray(new GitFile[files.size()]);\n }", "List<Path> getFiles();", "Path getRootPath();", "public static void main(String[] args) {\n File directoryPath = new File(\"C:\\\\Users\\\\jarek\\\\Downloads\");\n //List of all files and directories\n String[] contents = directoryPath.list();\n\n Pattern p= Pattern.compile(\"zip$\");\n Matcher m;\n Vector<String> lis = new Vector<>();\n for(int i = 0; i< Objects.requireNonNull(contents).length; i++){\n m=p.matcher(contents[i]);\n if(m.find()) lis.addElement(contents[i]);\n }\n System.out.println(\"List of files and directories in the specified directory:\");\n for (String content : contents) {\n System.out.println(content);\n }\n }", "private static List<File> listChildFiles(File dir) throws IOException {\n\t\t List<File> allFiles = new ArrayList<File>();\n\t\t \n\t\t File[] childFiles = dir.listFiles();\n\t\t for (File file : childFiles) {\n\t\t if (file.isFile()) {\n\t\t allFiles.add(file);\n\t\t } else {\n\t\t List<File> files = listChildFiles(file);\n\t\t allFiles.addAll(files);\n\t\t }\n\t\t }\n\t\t return allFiles;\n\t\t }", "public void getLocalDatas(File root) {\n \n //remove all\n clearList();\n \n //continues until the last elem is added\n for (File elem : root.listFiles()) {\n if (!elem.isDirectory()) {\n \n //gets the Name of the file\n String name = elem.getName();\n \n //calls the static Method calcFileSize() to calculate the size of the file\n double size = CalculateFileSize.calcFileSize(elem);\n add(new DataFile(name, size));\n }\n }\n super.fireTableDataChanged();\n }", "protected Seq<Fi> loadImages(Xml root, Fi tmxFile){\n Seq<Fi> images = new Seq<>();\n\n for(Xml imageLayer : root.getChildrenByName(\"imagelayer\")){\n Xml image = imageLayer.getChildByName(\"image\");\n String source = image.getAttribute(\"source\", null);\n\n if(source != null){\n Fi handle = getRelativeFileHandle(tmxFile, source);\n\n if(!images.contains(handle, false)){\n images.add(handle);\n }\n }\n }\n\n return images;\n }", "private static void rAddFilesToArray(File workingDirectory, ArrayList<File> result) {\n File[] fileList = workingDirectory.listFiles();\n if (fileList == null) return;\n for (File file : fileList) {\n String name = file.getName();\n int lastDotIndex = name.lastIndexOf('.');\n String ext = (lastDotIndex == -1) ? \"\" : name.substring(lastDotIndex + 1);\n if (file.isDirectory())\n rAddFilesToArray(file, result);\n if (!file.equals(remainderFile) && ext.equals(\"xml\")) {\n result.add(file);\n }\n }\n }", "public static void findStructureFiles() {\n\t\tstructureFiles = new LinkedList<File>();\n\t\tLinkedList<File> unexploredDirectories = new LinkedList<File>();\n\t\tFile baseDir = new File(\"structures\");\n\t\t\n\t\tif (baseDir.exists() && baseDir.isDirectory()) {\n\t\t\t// load base directory's files\n\t\t\trecursiveFindStructureFiles(baseDir, unexploredDirectories);\n\t\t\t\n\t\t\t// load sub-directories' files, breadth-first\n\t\t\twhile (!unexploredDirectories.isEmpty()) {\n\t\t\t\trecursiveFindStructureFiles(unexploredDirectories.pop(), unexploredDirectories);\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new IllegalStateException(\"Unable to locate structures folder.\");\n\t\t}\n\t}", "public File[] elements() {\n File plik = new File(katalog);\n katalog = plik.getAbsolutePath();\n if (katalog.endsWith(\".\")) {\n katalog = katalog.substring(0, katalog.length() - 1);\n }\n return plik.listFiles();\n }", "protected void generateClassFiles(RootDoc root, ClassTree classtree) {\n generateClassFiles(classtree);\n PackageDoc[] packages = root.specifiedPackages();\n for (int i = 0; i < packages.length; i++) {\n generateClassFiles(packages[i].allClasses(), classtree);\n }\n }", "public abstract List<LocalFile> getAllFiles();", "@Override\n public void handleExtracting(File file) {\n }", "public static void main(String[] args) {\n String startDir = \"E:/DEKSTOP/Projets/photosortTest\";\n\n //We list what is in this folder :\n\n System.out.println(\"\\n\\n\\nListing of files recursively : \\n\");\n\n printListFilesRecursive(startDir);\n\n //Then we create 2 directories\n createDirectory(startDir, \"css_files\");\n createDirectory(startDir, \"js_files\");\n\n //Then we select all the js file and move it to /js_file, same for css files\n List<String> list_js = new ArrayList<>();\n List<String> list_css = new ArrayList<>();\n\n listFilesRecursiveByExtension(startDir,\"js\",list_js);\n listFilesRecursiveByExtension(startDir,\"css\",list_css);\n\n for (String item_js : list_js){\n copyFile(item_js,startDir+\"/js_files\",new File(item_js).getName());\n }\n\n\n for (String item_css : list_css){\n copyFile(item_css,startDir+\"/css_files\",new File(item_css).getName());\n }\n System.out.println(\"Listing of file dummy : \\n\");\n //array in which we will store the names of files and directories\n\n printDummyListFiles(startDir);\n\n\n\n\n System.out.println(\"\\n\\n\\nListing of JS files recursively : \\n\");\n\n printListFilesRecursiveByExtension(startDir, \"map\");\n\n System.out.println(\"\\n\\n\\nListing of JS files recursively : \\n\");\n\n printListFilesRecursiveByExtension(startDir, \"map\");\n }", "private File[] getFilesInDirectory() {\n\t\t//Show Directory Dialog\n\t\tDirectoryChooser dc = new DirectoryChooser();\n\t\tdc.setTitle(\"Select Menu File Directory\");\n\t\tString folderPath = dc.showDialog(menuItemImport.getParentPopup().getScene().getWindow()).toString();\n\t\t\n\t\t//Update Folder location text\n\t\ttxtFolderLocation.setText(\"Import Folder: \" + folderPath);\n\t\t//Now return a list of all the files in the directory\n\t\tFile targetFolder = new File(folderPath);\n\t\t\n\t\treturn targetFolder.listFiles(); //TODO: This returns the names of ALL files in a dir, including subfolders\n\t}", "private void loadBasePaths() {\n\n Log.d(TAG, \"****loadBasePaths*****\");\n List<FileInfo> paths = BaseMediaPaths.getInstance().getBasePaths();\n for (FileInfo path : paths) {\n\n }\n }", "public File extractTo (File destination) throws IOException\n\t{\n\t\ttry (DirectoryStream<Path> directoryStream = Files\n\t\t\t.newDirectoryStream (zipfs.getPath (\"/\"));)\n\t\t{\n\t\t\tfor (Path file : directoryStream)\n\t\t\t{\n\t\t\t\textract (file, destination.toPath ());\n\t\t\t}\n\t\t}\n\t\treturn destination;\n\t}", "public LinkedList<ApfsFile> getFiles() {\n LinkedList<ApfsFile> files = new LinkedList<ApfsFile>();\n for(ApfsElement apfse: children) {\n if(apfse.isFile())\n files.add((ApfsFile) apfse);\n }\n return files;\n }", "@Override\n protected void createRootDir() {\n }", "public static void run() {\n try (Viewer viewer = new Viewer(TestFiles.SAMPLE_ZIP_WITH_FOLDERS)) {\n ViewInfo viewInfo = viewer.getViewInfo(ViewInfoOptions.forHtmlView());\n\n System.out.println(\"File type: \" + viewInfo.getFileType());\n System.out.println(\"Pages count: \" + viewInfo.getPages().size());\n System.out.println(\"Folders: \");\n System.out.println(\" - /\");\n\n String rootFolder = \"\";\n readFolders(viewer, rootFolder);\n }\n\n System.out.println(\"\\nView info retrieved successfully.\");\n }", "DiscDirectoryInfo getRoot();", "public ExtractReuters(File reutersDir) {\r\n\t\tthis.reutersDir = reutersDir;\r\n\t\tserver = new HttpSolrServer(\"http://localhost:8983/solr/core0\");\r\n\t\t\r\n\t\t/*\r\n\t\t * this.outputDir = outputDir;\r\n\t\t * System.out.println(\"Deleting all files in \" + outputDir); for (File f\r\n\t\t * : outputDir.listFiles()) { f.delete(); }\r\n\t\t */\r\n\t}", "public static void traversal(File root, FileFilter filter, Action<File> action) {\n if (root == null || !root.exists() || !filter.accept(root)) return;\n if (root.isDirectory()) {\n final File[] files = root.listFiles();\n if (files != null) {\n for (File file : files) {\n traversal(file, filter, action);\n }\n }\n } else {\n action.call(root);\n }\n }", "protected void addPrefixedFiles(Vector v, ZipOutputStream zOut)\n throws IOException {\n for (int i=0; i<v.size(); i++) {\n PrefixedFileSet fs = (PrefixedFileSet) v.elementAt(i);\n DirectoryScanner ds = fs.getDirectoryScanner(project);\n String prefix = fs.getPrefix();\n if (prefix.length() > 0 \n && !prefix.endsWith(\"/\")\n && !prefix.endsWith(\"\\\\\")) {\n prefix += \"/\";\n }\n zipDir(null, zOut, prefix);\n addFiles(ds, zOut, prefix);\n }\n }", "@Test\n public void downloadToplevel_treeArtifacts() throws Exception {\n if (OS.getCurrent() == OS.WINDOWS) {\n return;\n }\n setDownloadToplevel();\n writeOutputDirRule();\n write(\n \"BUILD\",\n \"load(':output_dir.bzl', 'output_dir')\",\n \"output_dir(\",\n \" name = 'foo',\",\n \" content_map = {'file-1': '1', 'file-2': '2', 'file-3': '3'},\",\n \")\");\n\n buildTarget(\"//:foo\");\n\n assertValidOutputFile(\"foo/file-1\", \"1\");\n assertValidOutputFile(\"foo/file-2\", \"2\");\n assertValidOutputFile(\"foo/file-3\", \"3\");\n // TODO(chiwang): Make metadata for downloaded outputs local.\n // assertThat(getMetadata(\"//:foo\").values().stream().noneMatch(FileArtifactValue::isRemote))\n // .isTrue();\n }", "private void readRootData() {\n String[] temp;\n synchronized (this.mRootDataList) {\n this.mRootDataList.clear();\n File file = getRootDataFile();\n if (!file.exists()) {\n HiLog.error(RootDetectReport.HILOG_LABEL, \"readRootData file NOT exist!\", new Object[0]);\n return;\n }\n try {\n FileInputStream fileInputStream = new FileInputStream(file);\n InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream, \"UTF-8\");\n BufferedReader reader = new BufferedReader(inputStreamReader);\n StringBuffer sb = new StringBuffer((int) MAX_STR_LEN);\n while (true) {\n int intChar = reader.read();\n if (intChar == -1) {\n break;\n } else if (sb.length() >= MAX_STR_LEN) {\n break;\n } else {\n sb.append((char) intChar);\n }\n }\n for (String str : sb.toString().split(System.lineSeparator())) {\n this.mRootDataList.add(str);\n }\n reader.close();\n inputStreamReader.close();\n fileInputStream.close();\n } catch (FileNotFoundException e) {\n HiLog.error(RootDetectReport.HILOG_LABEL, \"file root result list cannot be found\", new Object[0]);\n } catch (IOException e2) {\n HiLog.error(RootDetectReport.HILOG_LABEL, \"Failed to read root result list\", new Object[0]);\n }\n }\n }", "private static ArrayList<File> buildFilesArray() {\n ArrayList<File> result = new ArrayList<>();\n rAddFilesToArray(workingDirectory, result);\n return result;\n }", "private void getFiles() {\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(inputFileName);\n\t\t\tinputBuffer = new BufferedReader(fr);\n\n\t\t\tFileWriter fw = new FileWriter(outputFileName);\n\t\t\toutputBuffer = new BufferedWriter(fw);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found: \" + e.getMessage());\n\t\t\tSystem.exit(-2);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-3);\n\t\t}\n\t}", "public static synchronized void initializeArchiveFiles() {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initializeArchiveFiles\");\n File sourceFile = new File(System.getProperty(USER_DIR) + File.separator + \"QVCSEnterpriseServer.kbwb\");\n String firstDestinationDirName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_PROJECTS_DIRECTORY\n + File.separator\n + getTestProjectName();\n File firstDestinationDirectory = new File(firstDestinationDirName);\n firstDestinationDirectory.mkdirs();\n File firstDestinationFile = new File(firstDestinationDirName + File.separator + \"QVCSEnterpriseServer.kbwb\");\n\n String secondDestinationDirName = firstDestinationDirName + File.separator + SUBPROJECT_DIR_NAME;\n File secondDestinationDirectory = new File(secondDestinationDirName);\n secondDestinationDirectory.mkdirs();\n File secondDestinationFile = new File(secondDestinationDirName + File.separator + \"QVCSEnterpriseServer.kbwb\");\n\n String thirdDestinationDirName = secondDestinationDirName + File.separator + SUBPROJECT2_DIR_NAME;\n File thirdDestinationDirectory = new File(thirdDestinationDirName);\n thirdDestinationDirectory.mkdirs();\n File thirdDestinationFile = new File(thirdDestinationDirName + File.separator + \"ThirdDirectoryFile.kbwb\");\n\n File fourthDestinationFile = new File(firstDestinationDirName + File.separator + \"Server.kbwb\");\n File fifthDestinationFile = new File(firstDestinationDirName + File.separator + \"AnotherServer.kbwb\");\n File sixthDestinationFile = new File(firstDestinationDirName + File.separator + \"ServerB.kbwb\");\n File seventhDestinationFile = new File(firstDestinationDirName + File.separator + \"ServerC.kbwb\");\n try {\n ServerUtility.copyFile(sourceFile, firstDestinationFile);\n ServerUtility.copyFile(sourceFile, secondDestinationFile);\n ServerUtility.copyFile(sourceFile, thirdDestinationFile);\n ServerUtility.copyFile(sourceFile, fourthDestinationFile);\n ServerUtility.copyFile(sourceFile, fifthDestinationFile);\n ServerUtility.copyFile(sourceFile, sixthDestinationFile);\n ServerUtility.copyFile(sourceFile, seventhDestinationFile);\n } catch (IOException ex) {\n Logger.getLogger(TestHelper.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private static void listFiles(File rootFile, String filename, List<File> fileList) {\n File[] files_ = rootFile.listFiles();\n if(files_ != null) {\n for(File file : files_) {\n if(file.isFile() && file.getName().equalsIgnoreCase(filename))\n \t fileList.add(file);\n else\n listFiles(file, filename, fileList);\n }\n }\n }", "public void getFiles()\n\t{\n\t\tif(fileList.size() == 0)\n\t\t{\n\t\t\tSystem.out.println(\"There is no file or file not found\");\n\t\t}\n\t\tfor(int i = 0; i < fileList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(\"File is at: \" + fileList.get(i));\n\t\t}\n\t}", "public void extractPackage(String zipPath, String destPath) throws IOException {\n File destDir = new File(destPath);\n if(!destDir.exists()) {\n destDir.mkdir();\n }\n ZipInputStream zipIn = new ZipInputStream(new FileInputStream((zipPath)));\n ZipEntry entry = zipIn.getNextEntry();\n while(entry != null) {\n String filePath = destPath+File.separator+entry.getName();\n //filePath = filePath.replaceAll(\" \",\"_\");\n if(!entry.isDirectory()) {\n Log.i(\"extract\",\"Package Name: \"+entry.getName());\n Log.i(\"extract\",filePath);\n String[] temp = entry.getName().split(\"\\\\.\");\n if(validExtension(temp[temp.length-1].toLowerCase())) {\n extractFile(zipIn,filePath);\n }\n //extractFile(zipIn,filePath);\n } else {\n File dir = new File(filePath);\n dir.mkdirs();\n }\n zipIn.closeEntry();;\n entry = zipIn.getNextEntry();\n }\n zipIn.close();\n }", "void getSegmentFiles(DataSegment segment, File dir) throws SegmentLoadingException;", "private Set<RestModel> getArchiveNodes(RestModel root) {\n return ((ArchiveTreeNode) root).getChildren();\n }", "public static ArrayList<File> getListXMLFiles(File parentDir) {\n ArrayList<File> inFiles = new ArrayList<File>();\n File[] files = parentDir.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n inFiles.addAll(getListXMLFiles(file));\n } else {\n if(file.getName().endsWith(\".xml\")){\n inFiles.add(file);\n }\n }\n }\n return inFiles;\n }", "protected void addFiles(Vector v, ZipOutputStream zOut, String prefix)\n throws IOException {\n for (int i=0; i<v.size(); i++) {\n FileSet fs = (FileSet) v.elementAt(i);\n DirectoryScanner ds = fs.getDirectoryScanner(project);\n addFiles(ds, zOut, prefix);\n }\n }", "static public void readServerFiles(DbxClientV2 client) throws Exception\n\t{\n ListFolderResult result = client.files().listFolder(\"\");\n while (true) {\n for (Metadata metadata : result.getEntries()) {\n System.out.println(metadata.getPathLower());\n }\n if (!result.getHasMore()) {\n break;\n }\n result = client.files().listFolderContinue(result.getCursor()); \n }\n\t}", "public File getRoot() {\n return this.root;\n }", "private WebFile[] getFilesForPackageName(String packageName)\n {\n // Get file path\n String filePath = '/' + packageName.replace(\".\", \"/\");\n WebFile[] files = new WebFile[0];\n\n // Iterate over sites and return first match\n for (WebSite classPathSite : _classPathSites) {\n WebFile nodeFile = classPathSite.getFileForPath(filePath);\n if (nodeFile != null)\n files = ArrayUtils.add(files, nodeFile);\n }\n\n // Return files\n return files;\n }", "private void getAllJarFiles(File dir, ArrayList fileList)\n\t{\n\t\tif (dir.exists() && dir.isDirectory())\n\t\t{\n\t\t\tFile[] files = dir.listFiles();\n\t\t\tif (files == null)\n\t\t\t\treturn;\n\n\t\t\tfor (int i = 0; i < files.length; i++)\n\t\t\t{\n\t\t\t\tFile file = files[i];\n\t\t\t\tif (file.isFile())\n\t\t\t\t{\n\t\t\t\t\tif (file.getName().endsWith(\".jar\")) //$NON-NLS-1$\n\t\t\t\t\t\tfileList.add(file);\n\t\t\t\t}\n\t\t\t\telse if (file.isDirectory())\n\t\t\t\t{\n\t\t\t\t\tgetAllJarFiles(file, fileList);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "File getRootDir() {\n\t\treturn rootDirFile;\n\t}", "private ArrayList<char[]> subdirectoriesToFiles(ArrayList<char[]> currentList, ArrayList<char[]> fullFileList) throws IOException {\t\t\n\t\tfor (File file: currentList) {\n\t\t\tif (isJavaFile(file)) \n\t\t\t\tfullFileList.add(file);\n\t\t\telse if (file.isDirectory()){\n\t\t\t\t$.log(file.toString());\n\t\t\t\tsubdirectoriesToFiles(file.getAbsolutePath(), fullFileList);\n\t\t\t}\n\t\t\telse if (isJarFile(file))\n\t\t\t\tsubdirectoriesToFiles(jarToFile(file), fullFileList);\n\t\t}\n\t\treturn fullFileList;\n\t}", "private void findAssignmentFiles(ArrayList<File> files, String directory) {\n\n //---------- Step 1: find and uncompress zip files ----------\n if (bAutoUncompress) {\n ArrayList<File> compressedFiles = findFilesByExtension(directory, COMPRESSION_EXTENSIONS);\n for (File cFile : compressedFiles) {\n //uncompress each zip file\n String[] cmd = {\"unzip\", \"-u\", cFile.getAbsolutePath(), \"-d\", stripFileExtension(cFile.getAbsolutePath())};\n String cmdStr = \"unzip -u \\\"\" + cFile.getAbsolutePath() + \"\\\" -d \\\"\" + stripFileExtension(cFile.getAbsolutePath()) + \"\\\"\";\n console(cmdStr);\n\n try {\n Runtime r = Runtime.getRuntime();\n Process p = r.exec(cmd); //execute the unzip command\n //Process p = r.exec(\"unzip -u \\34/Users/jvolcy/work/test/JordanStill_1124140_assignsubmission_file_/P0502b.zip\\34 -d \\34/Users/jvolcy/work/test/JordanStill_1124140_assignsubmission_file_/P0502b\\34\");\n p.waitFor();\n } catch (Exception e) {\n console(\"[findAssignmentFiles()]\", e);\n }\n }\n }\n\n //---------- Step 2: find programming files in the directory ----------\n ArrayList<File> programmingFiles = findFilesByExtension(directory, PYTHON_AND_CPP_EXTENSIONS);\n if (programmingFiles.size() > 0) {\n files.addAll(programmingFiles);\n //if we found any files, we are done\n return;\n }\n\n //---------- Step 3: search for sub-directories ----------\n ArrayList<File> subDirs = getSubDirectories(directory, true);\n for (File sDir : subDirs) {\n //Step 4: recursively call findAssignmentFiles() if we find subdirectories\n findAssignmentFiles(files, sDir.toString());\n }\n\n //---------- Step 5 ----------\n //No assignment files found. This may be the end of the recursion.\n }", "@Override\r\n public FileName getRoot() {\r\n FileName root = this;\r\n while (root.getParent() != null) {\r\n root = root.getParent();\r\n }\r\n\r\n return root;\r\n }", "private static void getResults() {\n\t\t//Variables\n\t\tFile directoryOfChunks = new File(\"output\");\n\t\tFile[] files = directoryOfChunks.listFiles();\n\t\tArrayList<String> filesInFolder = new ArrayList<>();\n\t\tArrayList<String> chunkResults = new ArrayList<>();\n\t\tBufferedReader br = null;\n\t\tReadFromFile rf = new ReadFromFile();\n\n\t\t//Get files from output folder\n\t\tif(directoryOfChunks.exists() && directoryOfChunks.isDirectory()){\n\t\t\tdirectoryName = \"output\";\n\t\t\t//Copy file names into arraylist\n\t\t\tfor (File f: files) {\n\t\t\t\t//Save file names into arraylist.\n\t\t\t\tfilesInFolder.add(f.getName());\n\t\t\t}\n\t\t}\n\t\t//if not a file or directory print error message\n\t\telse{\n\t\t\tSystem.out.println(\"No such file/directory: \" + directoryOfChunks);\n\t\t}\n\n\t\t//for loop to open and read each individual file\n\t\tfor (String file : filesInFolder) {\n\t\t\ttry {\n\n\t\t\t\tFileReader reader = new FileReader(directoryName + \"\\\\\" + file);\n\t\t\t\tbr = new BufferedReader(reader);\n\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tchunkResults.addAll(rf.readFromChunk(br));\n\t\t}\n\n\t\t//Call sanitizeAndSplit\n\t\tsanitizeAndSplit(chunkResults);\n\t}", "public FilesArchived(File rootDir, String zip) {\n this.root = rootDir;\n this.compression = (\"zstd\".equals(zip)) ? Compression.ZSTD : Compression.GZIP;\n rescan();\n Thread thread = new Thread(this::run);\n thread.setDaemon(true);\n thread.setName(\"FilesArchived-maintainer\");\n thread.start();\n }", "public static void checkRootDirectory() {\n File root = new File(transferITModel.getProperty(\"net.server.rootpath\"));\n JFileChooser jFileChooser = new JFileChooser();\n jFileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n while (true) {\n try {\n if (root.isDirectory()) {\n transferITModel.setProperty(\"net.server.rootpath\", root.getPath());\n break;\n }\n int returnVal = jFileChooser.showOpenDialog(null);\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n root = jFileChooser.getSelectedFile();\n }\n } catch (SecurityException se) {\n }\n\n }\n }", "public void doFiles(){\r\n serversDir = new File(rootDirPath+\"/servers/\");\r\n serverList = new File(rootDirPath+\"serverList.txt\");\r\n if(!serversDir.exists()){ //if server Directory doesn't exist\r\n serversDir.mkdirs(); //create it\r\n }\r\n updateServerList();\r\n }", "public List<SessionFile> getRoots() {\n List<SessionFile> result = Factory.newArrayList();\n for (SharedFile shared : fileSystem.getRoots())\n result.add(getOrCreateFile(shared));\n return result;\n }", "private void cacheFoldersFiles() throws Exception {\n\n ArrayList<FileManagerFile> files = new ArrayList<FileManagerFile>();\n if (fileCount > 0) {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n int offset = 0;\n int count = 1000;\n List<FileManagerFile> filelist;\n\n do {\n filelist = connection.getFileManager().getFileManagerFiles(count, offset);\n offset += count;\n for (FileManagerFile file : filelist) {\n if (file.getFolderId() == id) {\n files.add(file);\n }\n }\n } while (filelist.size() > 0 && files.size() < fileCount);\n }\n this.files = files;\n }", "private List<String> returnFiles(int selection) {\n\t\tString path = System.getProperty(\"user.dir\");\n\t\tList<String> allImages = new ArrayList<String>();\n\t\tpath += this.setFolderPath(selection);\n\t\tFile[] files = new File(path).listFiles();\n\n\t\tfor (File file : files) {\n\t\t\tif (file.isFile() && isCorrectFile(file)) {\n\t\t\t\tallImages.add(file.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t\treturn allImages;\n\t}", "private ArrayList<char[]> subdirectoriesToFiles(String inputDir, ArrayList<char[]> fullFileList) throws IOException {\n\t\tArrayList<char[]> currentList =\n\t\t\t\tnew ArrayList<char[]>(Arrays.asList(new File(inputDir).listFiles()));\n\t\t\n\t\tfor (File file: currentList) {\n\t\t\tif (isJavaFile(file)) \n\t\t\t\tfullFileList.add(file);\n\t\t\t\n\t\t\telse if (file.isDirectory())\n\t\t\t\tsubdirectoriesToFiles(file.getPath(), fullFileList);\n\t\t\t\n\t\t\telse if (isJarFile(file))\n\t\t\t\tsubdirectoriesToFiles(jarToFile(file), fullFileList);\n\t\t}\n\t\treturn fullFileList;\n\t}", "private void scanArgs(String [] args)\n{\n for (int i = 0; i < args.length; ++i) {\n if (args[i].startsWith(\"-\")) {\n \n }\n else { \n root_files.add(new File(args[i]));\n }\n }\n \n if (root_files.isEmpty()) {\n root_files.add(new File(DEFAULT_FILE));\n }\n if (output_file == null) output_file = new File(OUTPUT_FILE);\n}", "public static File[] getHttpExportDirectoryFiles() {\n\t\tif (xml == null) return new File[0];\n\t\treturn httpExportDirectoryFiles;\n\t}", "public static synchronized void removeArchiveFiles() {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.removeArchiveFiles\");\n String firstDestinationDirName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_PROJECTS_DIRECTORY\n + File.separator\n + getTestProjectName();\n File firstDestinationDirectory = new File(firstDestinationDirName);\n\n String secondDestinationDirName = firstDestinationDirName + File.separator + \"subProjectDirectory\";\n File secondDestinationDirectory = new File(secondDestinationDirName);\n\n String thirdDestinationDirName = secondDestinationDirName + File.separator + \"subProjectDirectory2\";\n File thirdDestinationDirectory = new File(thirdDestinationDirName);\n\n String fourthDestinationDirName = firstDestinationDirName + File.separator + QVCSConstants.QVCS_CEMETERY_DIRECTORY;\n File fourthDestinationDirectory = new File(fourthDestinationDirName);\n\n String fifthDestinationDirName = firstDestinationDirName + File.separator + QVCSConstants.QVCS_DIRECTORY_METADATA_DIRECTORY;\n File fifthDestinationDirectory = new File(fifthDestinationDirName);\n\n String sixthDestinationDirName = firstDestinationDirName + File.separator + QVCSConstants.QVCS_BRANCH_ARCHIVES_DIRECTORY;\n File sixthDestinationDirectory = new File(sixthDestinationDirName);\n\n deleteDirectory(sixthDestinationDirectory);\n deleteDirectory(fifthDestinationDirectory);\n deleteDirectory(fourthDestinationDirectory);\n deleteDirectory(thirdDestinationDirectory);\n deleteDirectory(secondDestinationDirectory);\n deleteDirectory(firstDestinationDirectory);\n }", "ILitePackCollection getRoot();", "private File[] getFiles() {\n\n if (mPPTFilePath == null) {\n mPPTFilePath = getArguments().getString(PPTPathString);\n }\n\n String Path = mPPTFilePath;\n File mFile = new File(Path);\n if (mFile.exists() && mFile.isDirectory() && mFile.listFiles()!=null) {\n\n return mFile.listFiles();\n } else {\n Log.d(TAG, \"File==null\");\n return null;\n }\n }", "private static ArrayList<File> getFilesFromSubfolders(String directoryName, ArrayList<File> files) {\n\n File directory = new File(directoryName);\n\n // get all the files from a directory\n File[] fList = directory.listFiles();\n for (File file : fList) {\n if (file.isFile() && file.getName().endsWith(\".json\")) {\n files.add(file);\n } else if (file.isDirectory()) {\n getFilesFromSubfolders(file.getAbsolutePath(), files);\n }\n }\n return files;\n }", "public void searchAllFiles() {\n\t\t/**\n\t\t * Realizamos un pequeño algoritmo de recorrido de árboles en preorden para listar todos los\n\t\t * ebooks con un coste de 2n+1 donde n es el número de nodos.\n\t\t */\n\t\tArrayList<Entry> booksEntry = null;\n\t\ttry {\n\t\t\tString auxPath;\n\t\t\tbooksEntry = new ArrayList<DropboxAPI.Entry>();\n\t\t\tLinkedList<Entry> fifo = new LinkedList<DropboxAPI.Entry>();\n\t\t\tEntry nodo = _mApi.metadata(\"/\", 0, null, true, null);\n\t\t\tfifo.addAll(nodo.contents);\n\t\t\twhile (!fifo.isEmpty()) {\n\t\t\t\tSystem.out.println(fifo);\n\t\t\t\tnodo = fifo.getFirst();\n\t\t\t\tfifo.removeFirst();\n\t\t\t\tauxPath = nodo.path;\n\t\t\t\tif (nodo.isDir) {\n\t\t\t\t\tfifo.addAll(_mApi.metadata(auxPath, 0, null, true, null).contents);\n\t\t\t\t} else {\n\t\t\t\t\tif (isEbook(nodo))\n\t\t\t\t\t\tbooksEntry.add(nodo);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"parar\");\n\t\t} catch (DropboxUnlinkedException e) {\n\t\t\t// The AuthSession wasn't properly authenticated or user unlinked.\n\t\t} catch (DropboxPartialFileException e) {\n\t\t\t// We canceled the operation\n\t\t\t_mErrorMsg = \"Download canceled\";\n\t\t} catch (DropboxServerException e) {\n\t\t\t// Server-side exception. These are examples of what could happen,\n\t\t\t// but we don't do anything special with them here.\n\t\t\tif (e.error == DropboxServerException._304_NOT_MODIFIED) {\n\t\t\t\t// won't happen since we don't pass in revision with metadata\n\t\t\t} else if (e.error == DropboxServerException._401_UNAUTHORIZED) {\n\t\t\t\t// Unauthorized, so we should unlink them. You may want to\n\t\t\t\t// automatically log the user out in this case.\n\t\t\t} else if (e.error == DropboxServerException._403_FORBIDDEN) {\n\t\t\t\t// Not allowed to access this\n\t\t\t} else if (e.error == DropboxServerException._404_NOT_FOUND) {\n\t\t\t\t// path not found (or if it was the thumbnail, can't be\n\t\t\t\t// thumbnailed)\n\t\t\t} else if (e.error == DropboxServerException._406_NOT_ACCEPTABLE) {\n\t\t\t\t// too many entries to return\n\t\t\t} else if (e.error == DropboxServerException._415_UNSUPPORTED_MEDIA) {\n\t\t\t\t// can't be thumbnailed\n\t\t\t} else if (e.error == DropboxServerException._507_INSUFFICIENT_STORAGE) {\n\t\t\t\t// user is over quota\n\t\t\t} else {\n\t\t\t\t// Something else\n\t\t\t}\n\t\t\t// This gets the Dropbox error, translated into the user's language\n\t\t\t_mErrorMsg = e.body.userError;\n\t\t\tif (_mErrorMsg == null) {\n\t\t\t\t_mErrorMsg = e.body.error;\n\t\t\t}\n\t\t} catch (DropboxIOException e) {\n\t\t\t// Happens all the time, probably want to retry automatically.\n\t\t\t_mErrorMsg = \"Network error. Try again.\";\n\t\t} catch (DropboxParseException e) {\n\t\t\t// Probably due to Dropbox server restarting, should retry\n\t\t\t_mErrorMsg = \"Dropbox error. Try again.\";\n\t\t} catch (DropboxException e) {\n\t\t\t// Unknown error\n\t\t\t_mErrorMsg = \"Unknown error. Try again.\";\n\t\t}\n\t\t_booksListEntry = booksEntry;\n\t\tcreateListBooks();\n\t}", "@Override\n\tpublic synchronized void initialize() {\n\t\tFile[] files = mRootDirectory.listFiles();\n\t\tif (files == null) {\n\t\t\treturn;\n\t\t}\n\t\tfor (File file : files) {\n\t\t\tFileInputStream fis = null;\n\t\t\ttry {\n\t\t\t\tfis = new FileInputStream(file);\n\t\t\t\tCacheHeader entry = CacheHeader.readHeader(fis);\n\t\t\t\tentry.size = file.length();\n\t\t\t\tputEntry(entry.key, entry);\n\t\t\t} catch (IOException e) {\n\t\t\t\tif (file != null) {\n\t\t\t\t\tfile.delete();\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (fis != null) {\n\t\t\t\t\t\tfis.close();\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }", "private static void findAllFilesRecurse(File root, ArrayList<File> files, boolean recurse) {\n\t\tFile[] rootContents = root.listFiles();\n\t\tif (rootContents == null) {\n\t\t\tfiles.add(root);\n\t\t} else {\n\t\t\tfor (File f : rootContents) {\n\t\t\t\t// if it is a file or do not go deeper\n\t\t\t\tif (f.isFile() || !recurse) {\n\t\t\t\t\tfiles.add(f);\n\t\t\t\t} else if (recurse) { // directory\n\t\t\t\t\tfindAllFilesRecurse(f, files, true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public List<FileManagerFile> getFiles() throws Exception {\n\n if (files == null) { // defer loading files list until requested.\n cacheFoldersFiles();\n }\n return files;\n }", "public ArrayList<Root> separateRoots(String fileName) throws FileNotFoundException {\n\t\t//TODO: Make this a constructor so that roots are automatically separated when a Separation object is created.\n\t\treadIn(fileName);\n\t\tsplitLevels();\n\t\tcombineSeeds();\n\t\tremoveSmallRoots(20); //Change this number to change size of \"small\" root\n\t\treturn allRoots;\n\t}", "public static List<String> getFiles(String path) {\n\t try {\n\t\t\tURI uri = getResource(path).toURI();\n\t\t String absPath = getResource(\"..\").getPath();\n\t\t\tPath myPath;\n\t\t\tif (uri.getScheme().equals(\"jar\")) {\n\t\t\t FileSystem fileSystem = FileSystems.newFileSystem(uri, Collections.<String, Object>emptyMap());\n\t\t\t myPath = fileSystem.getPath(path);\n\t\t\t \n\t\t\t} else {\n\t\t\t myPath = Paths.get(uri);\n\t\t\t}\n\t\t\t\n\t\t\t List<String> l = Files.walk(myPath)\t\n\t\t\t \t\t\t\t\t .map(filePath -> pathAbs2Rel(absPath, filePath))\n\t\t\t \t .collect(Collectors.toList());\n\t\t\t return l;\n\t\t} catch (URISyntaxException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t return null;\n\t \n\t}", "private void getDemographicFiles(Uin uinObject, List<DocumentsDTO> documents) {\n\t\tuinObject.getDocuments().stream().forEach(demo -> {\n\t\t\ttry {\n\t\t\t\tString fileName = DEMOGRAPHICS + SLASH + demo.getDocId();\n\t\t\t\tLocalDateTime startTime = DateUtils.getUTCCurrentDateTime();\n\t\t\t\tbyte[] data = securityManager\n\t\t\t\t\t\t.decrypt(IOUtils.toByteArray(fsAdapter.getFile(uinObject.getUinHash(), fileName)));\n\t\t\t\tmosipLogger.debug(IdRepoSecurityManager.getUser(), ID_REPO_SERVICE_IMPL, GET_FILES,\n\t\t\t\t\t\t\"time taken to get file in millis: \" + fileName + \" - \"\n\t\t\t\t\t\t\t\t+ Duration.between(startTime, DateUtils.getUTCCurrentDateTime()).toMillis() + \" \"\n\t\t\t\t\t\t\t\t+ \"Start time : \" + startTime + \" \" + \"end time : \"\n\t\t\t\t\t\t\t\t+ DateUtils.getUTCCurrentDateTime());\n\t\t\t\tif (demo.getDocHash().equals(securityManager.hash(data))) {\n\t\t\t\t\tdocuments.add(new DocumentsDTO(demo.getDoccatCode(), CryptoUtil.encodeBase64(data)));\n\t\t\t\t} else {\n\t\t\t\t\tmosipLogger.error(IdRepoSecurityManager.getUser(), ID_REPO_SERVICE_IMPL, GET_FILES,\n\t\t\t\t\t\t\tIdRepoErrorConstants.DOCUMENT_HASH_MISMATCH.getErrorMessage());\n\t\t\t\t\tthrow new IdRepoAppException(IdRepoErrorConstants.DOCUMENT_HASH_MISMATCH);\n\t\t\t\t}\n\t\t\t} catch (IdRepoAppException e) {\n\t\t\t\tmosipLogger.error(IdRepoSecurityManager.getUser(), ID_REPO_SERVICE_IMPL, GET_FILES, \"\\n\" + e.getMessage());\n\t\t\t\tthrow new IdRepoAppUncheckedException(e.getErrorCode(), e.getErrorText(), e);\n\t\t\t} catch (FSAdapterException e) {\n\t\t\t\tmosipLogger.error(IdRepoSecurityManager.getUser(), ID_REPO_SERVICE_IMPL, GET_FILES, \"\\n\" + e.getMessage());\n\t\t\t\tthrow new IdRepoAppUncheckedException(\n\t\t\t\t\t\te.getErrorCode().equals(HDFSAdapterErrorCode.FILE_NOT_FOUND_EXCEPTION.getErrorCode())\n\t\t\t\t\t\t\t\t? IdRepoErrorConstants.FILE_NOT_FOUND\n\t\t\t\t\t\t\t\t: IdRepoErrorConstants.FILE_STORAGE_ACCESS_ERROR,\n\t\t\t\t\t\te);\n\t\t\t} catch (IOException e) {\n\t\t\t\tmosipLogger.error(IdRepoSecurityManager.getUser(), ID_REPO_SERVICE_IMPL, GET_FILES, \"\\n\" + e.getMessage());\n\t\t\t\tthrow new IdRepoAppUncheckedException(IdRepoErrorConstants.FILE_STORAGE_ACCESS_ERROR, e);\n\t\t\t}\n\t\t});\n\t}", "@Override\n protected List<String> compute() {\n List<String> fileNames = new ArrayList<>();\n\n // FolderProcessor tasks to store the sub-tasks that are going to process the sub-folders stored inside folder.\n List<FolderProcessor> subTasks = new ArrayList<>();\n\n // Get the content of the folder.\n File file = new File(path);\n File content[] = file.listFiles();\n\n //For each element in the folder, if there is a subfolder, create a new FolderProcessor object\n //and execute it asynchronously using the fork() method.\n for (int i = 0; i < content.length; i++) {\n if (content[i].isDirectory()) {\n FolderProcessor task = new FolderProcessor(content[i].getAbsolutePath(), extension);\n task.fork();\n subTasks.add(task);\n } else {\n //Otherwise, compare the extension of the file with the extension you are looking for using the checkFile() method\n //and, if they are equal, store the full path of the file in the list of strings declared earlier.\n\n if (checkFile(content[i].getName())) {\n fileNames.add(content[i].getAbsolutePath());\n }\n }\n }\n\n //If the list of the FolderProcessor sub-tasks has more than 50 elements,\n //write a message to the console to indicate this circumstance.\n if (subTasks.size() > 50) {\n System.out.printf(\"%s: %d tasks ran.\\n\", file.getAbsolutePath(), subTasks.size());\n }\n\n // Add the results from the sub-tasks.\n addResultsFrommSubTasks(fileNames, subTasks);\n\n return fileNames;\n }", "public void readResult() {\n File dirXml = new File(System.getProperty(\"user.dir\") + \"/target/classes/\");\n /// Get Parent Directory\n String parentDirectory = dirXml.getParent();\n File folder = new File(parentDirectory + \"/jbehave\");\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles != null) {\n for (File listOfFile : listOfFiles) {\n if (listOfFile.isFile()) {\n String filePath = folder.getPath() + \"/\" + listOfFile.getName();\n System.out.println(\"File \" + filePath);\n if (filePath.contains(\".xml\") && !filePath.contains(\"AfterStories\") && !filePath.contains(\n \"BeforeStories\")) {\n readXML(filePath);\n }\n }\n }\n }\n }", "public void extractResources(final Collection<Resource> files, final File destinationDir) throws IOException {\n for (String file : CONTROL_RESOURCES) {\n final String path = String.format(\"/control/%s\", file);\n final URL resource = DropwizardMojo.class.getResource(path);\n if (resource != null) {\n final ByteSource source = Resources.asByteSource(resource);\n final File target = new File(destinationDir, path);\n extractResource(source, target, true);\n }\n }\n\n // Extract/filter passed in files\n for (Resource resource : files) {\n final String path = String.format(\"/files/%s\", resource.getTarget());\n final ByteSource source = resource.getSource();\n final File target = new File(destinationDir, path);\n extractResource(source, target, resource.isFilter());\n }\n }", "ds.hdfs.generated.FileMetadata getFiles(int index);", "String rootPath();" ]
[ "0.58061266", "0.5774967", "0.5763738", "0.57424563", "0.5714022", "0.5683727", "0.56550324", "0.5646114", "0.5609453", "0.55572295", "0.549731", "0.53557265", "0.53550476", "0.532681", "0.528907", "0.5279828", "0.52750045", "0.5242236", "0.5241654", "0.52041155", "0.5200706", "0.519098", "0.51888627", "0.518802", "0.5187442", "0.5180499", "0.51740235", "0.51609266", "0.5152089", "0.51505727", "0.51378506", "0.5125549", "0.51100653", "0.5107372", "0.5083708", "0.5056886", "0.5051393", "0.50495315", "0.5048399", "0.50423354", "0.5040291", "0.50258905", "0.5025749", "0.50241745", "0.5018847", "0.50121605", "0.49983737", "0.4998005", "0.49920404", "0.49800506", "0.4978623", "0.497478", "0.49512133", "0.4951131", "0.49211442", "0.49150774", "0.49148285", "0.4914817", "0.49086526", "0.49083117", "0.49081805", "0.49067402", "0.49054095", "0.49026808", "0.49016994", "0.48924983", "0.489041", "0.48853675", "0.4872501", "0.48721087", "0.48641238", "0.4863914", "0.48634458", "0.48611245", "0.48594072", "0.48587412", "0.4858626", "0.48564693", "0.4853785", "0.4832562", "0.48286286", "0.48198736", "0.4818562", "0.4815716", "0.48124102", "0.480743", "0.48074177", "0.48033708", "0.47952753", "0.4792595", "0.47909904", "0.47851905", "0.47807702", "0.4777607", "0.47770646", "0.47714815", "0.47616553", "0.4757829", "0.47494134", "0.4744365" ]
0.68496376
0
Write a cleaned, merged document to an output stream.
public void writeCleanDocument(final OutputStream os, final boolean pretty) throws IOException { Document doc = mergedDocument(); doc.outputSettings().escapeMode(Entities.EscapeMode.xhtml); doc.outputSettings().syntax(Document.OutputSettings.Syntax.xml); doc.quirksMode(Document.QuirksMode.noQuirks); if(pretty) { doc.outputSettings().prettyPrint(); } os.write(doc.toString().getBytes(StandardCharsets.UTF_8)); os.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void writeSout(Document document) throws IOException\r\n {\n OutputFormat format = OutputFormat.createCompactFormat();\r\n XMLWriter writer = new XMLWriter( System.out, format );\r\n writer.write( document );\r\n }", "public void writeDocumentToOutput() {\n log.debug(\"Statemend of XML document...\");\r\n // writeDocumentToOutput(root,0);\r\n log.debug(\"... end of statement\");\r\n }", "public void output(Document doc, OutputStream out)\r\n throws IOException {\r\n Writer writer = makeWriter(out);\r\n output(doc, writer); // output() flushes\r\n }", "public void write() throws IOException {\n\t\tfinal String timeLog = LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd_HH-mm-ss\"));\n\t\tfinal File file = new File(\"wordsaurier-document-\" + timeLog + \".txt\");\n\t\t\n\n\t\ttry (OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8)) {\n\t\t\t\n\n\t\t\t\n\t\t\twriter.write(\"Wordsaurier document\\r\\n\");\n\t\t\twriter.write(this.documentSpecification.toString() + \"\\r\\n\");\n\t\t\twriter.write(\"---------------------\\r\\n\");\n\t\t\twriter.write(this.document.getContent());\n\t\t\tLOG.info(\"document was written to {}\", file.getCanonicalPath());\n\t\t\t\n\t\t} catch (final IOException e) {\n\t\t\tthrow e;\n\t\t}\n\t}", "public static void write(Document document,OutputStream stream) throws IOException\r\n {\n XMLWriter writer = new XMLWriter(stream);\r\n writer.write( document );\r\n writer.close();\r\n }", "public void close(){\r\n Transformer t = null;\r\n\t\ttry {\r\n\t\t\tt = TransformerFactory.newInstance().newTransformer();\r\n\t\t\tt.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\tt.setOutputProperty(OutputKeys.INDENT, \"yes\"); \r\n\t\t\tt.transform(new DOMSource(document), new StreamResult(new FileOutputStream(XMLFileName))); \t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "public void output(Document doc, Writer out) throws IOException {\r\n\r\n printDeclaration(doc, out, encoding);\r\n\r\n if (doc.getDocType() != null) {\r\n printDocType(doc.getDocType(), out);\r\n\r\n // Always print line separator after declaration, helps the\r\n // output look better and is semantically inconsequential\r\n out.write(currentFormat.lineSeparator);\r\n }\r\n\r\n // Print out root element, as well as any root level\r\n // comments and processing instructions,\r\n // starting with no indentation\r\n List content = doc.getContent();\r\n int size = content.size();\r\n for( int i = 0; i < size; i++) {\r\n Object obj = content.get( i);\r\n if (obj instanceof Element) {\r\n printElement(doc.getRootElement(), out, 0,\r\n createNamespaceStack());\r\n }\r\n else if (obj instanceof Comment) {\r\n printComment((Comment) obj, out);\r\n }\r\n else if (obj instanceof ProcessingInstruction) {\r\n printProcessingInstruction((ProcessingInstruction) obj, out);\r\n }\r\n else {\r\n // XXX if we get here then we have a illegal content, for\r\n // now we'll just ignore it\r\n }\r\n\r\n newline(out);\r\n indent(out, 0);\r\n }\r\n\r\n // Output final line separator\r\n // We output this no matter what the newline flags say\r\n out.write(currentFormat.lineSeparator);\r\n\r\n out.flush();\r\n }", "public static void writeDontCloseStream(Element document,OutputStream stream) throws IOException\r\n {\n XMLWriter writer = new XMLWriter(stream);\r\n writer.write( document );\r\n }", "private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void writeFile(Document document, File file) throws TransformerException, IOException {\n Transformer tr = TransformerFactory.newInstance().newTransformer();\n\n tr.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\n tr.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\n document.setXmlStandalone(true);\n\n DOMSource source = new DOMSource(document);\n FileOutputStream fos = new FileOutputStream(file);\n StreamResult result = new StreamResult(fos);\n tr.transform(source, result);\n fos.close();\n }", "public void export(OutputStream output) throws IOException {\n\t\tif (!documentPrepared) {\n\t\t\tprepareDocument();\n\t\t}\n\t\tif ((!fileAttached) && (attachZUGFeRDHeaders)) {\n\t\t\tthrow new IOException(\n\t\t\t\t\t\"File must be attached (usually with setTransaction) before perfoming this operation\");\n\t\t}\n\t\tdoc.save(output);\n\t\tif (!disableAutoClose) {\n\t\t\tclose();\n\t\t}\n\t}", "public void writeXML() throws IOException {\n OutputFormat format = OutputFormat.createPrettyPrint();//th format of xml file\n XMLWriter xmlWriter =new XMLWriter( new FileOutputStream(file), format);\n xmlWriter.write(document);//write the new xml into the file\n xmlWriter.flush();\n }", "public void processDocument() {\n\n\t\t// compact concepts\n\t\tprocessConcepts(concepts);\n\t}", "protected static void writeDocument(Output out, Document doc) {\n out.writeXML(doc);\n }", "public boolean writeWordFile() throws Exception {\n\n InputStream is = null;\n FileOutputStream fos = null;\n\n // 1 Cannot find source file, return false\n File inputFile = new File(this.inputPath);\n if (!inputFile.exists()) {\n return false;\n }\n\n File outputFile = new File(this.outputPath);\n // 2 If the target path does not exist, create a new path\n if (!outputFile.getParentFile().exists()) {\n outputFile.getParentFile().mkdirs();\n }\n\n try {\n\n // 3 Write html file content to doc file\n is = new FileInputStream(inputFile);\n POIFSFileSystem poifs = new POIFSFileSystem();\n DirectoryEntry directory = poifs.getRoot();\n directory.createDocument(\n \"WordDocument\", is);\n\n fos = new FileOutputStream(this.outputPath);\n poifs.writeFilesystem(fos);\n\n System.out.println(\"Conversion of word files is complete!\");\n\n return true;\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fos != null) {\n fos.close();\n }\n if (is != null) {\n is.close();\n }\n }\n\n return false;\n }", "@Override\n public void closeCompletely()\n throws XMLStreamException\n {\n _finishDocument(true);\n }", "public void save () {\n\t\tif (!open) {\n\t\t\tSystem.out.println (\"ExternalDocument.save: attempt to save unopened document \" + fileName);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tif (format.equals(\"sgml\")) {\n\t\t\t\tString tagToWrite;\n\t\t\t\tif (allTags)\n\t\t\t\t\ttagToWrite = null;\n\t\t\t\telse if (SGMLtags.length == 0)\n\t\t\t\t\ttagToWrite = \"***\"; // unused annotation type\n\t\t\t\telse if (SGMLtags.length == 1)\n\t\t\t\t\ttagToWrite = SGMLtags[0];\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println (\"ExternalDocument.save: cannot write more than 1 annotation type\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString string = writeSGML(tagToWrite).toString();\n\t\t\t\tFile file = new File(fullFileName());\n\t\t\t\tBufferedWriter writer = new BufferedWriter (\n\t\t\t\t\t\tnew OutputStreamWriter (new FileOutputStream(file), JetTest.encoding));\n\t\t\t\twriteWithSystemNewlines (writer, string);\n\t\t\t\twriter.close();\n\t\t\t} else {\n\t\t\t\t\tSystem.out.println (\"Error saving document \" + fileName);\n\t\t\t\t\tSystem.out.println (\"Unknown document format.\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\tSystem.out.println (e);\n\t\t}\n\t}", "public static void write(Element document,OutputStream stream) throws IOException\r\n {\n XMLWriter writer = new XMLWriter(stream);\r\n writer.write( document );\r\n writer.close();\r\n }", "public static OutputStream write(final Document doc, final OutputStream out, String encoding) throws XMLException {\n\t\tif (doc==null) throw new XMLException(\"Document is null\");\n\t\tdoc.normalizeDocument();\n\t\t// TODO: rivedere e aggiungere strip dei nodi testo vuoti \n\t\t// (ad esempio righe vuote derivanti da rimozione nodi)\n\t\treturn write(doc.getDocumentElement(), out, encoding);\n\t}", "private static void writeDocumentToFile(XWPFDocument doc, DocumentPath documentPath) throws IOException {\n requireAllNonNull(doc, documentPath);\n assert DocumentPath.isValid(documentPath.toString());\n\n try {\n FileOutputStream out = new FileOutputStream(documentPath.toString());\n doc.write(out);\n out.close();\n doc.close();\n } catch (IOException e) {\n throw e;\n }\n }", "void flushExistingText( final PdfOutfile outfile )\r\n {\r\n outfile.addColumnsContentToDocument();\r\n }", "public String outputString(Document doc) {\r\n StringWriter out = new StringWriter();\r\n try {\r\n output(doc, out); // output() flushes\r\n } catch (IOException e) { }\r\n return out.toString();\r\n }", "public void renderAndSave(VirtualDocument document, File output)\n\t\t\tthrows RenderingException, IOException {\n\t\tbyte[] data = renderBinary(document);\n\t\tFiles.write(output.toPath(), data);\n\t\tlogger.info(\"writeFile_done\", output);\n\t}", "public static void write(Document document,File fileDest) throws IOException\r\n {\n XMLWriter writer = new XMLWriter(\r\n new FileWriter( fileDest )\r\n );\r\n writer.write( document );\r\n writer.close();\r\n }", "public static void write(final Document dom, final OutputStream oStream)\n\t\t\tthrows TransformerException {\n\t\tfinal DOMSource source = new DOMSource(dom);\n\t\tfinal StreamResult result = new StreamResult(new OutputStreamWriter(\n\t\t\t\toStream));\n\n\t\tgetTransformer().transform(source, result);\n\t}", "@Override\n public abstract NiceXWPFDocument merge(NiceXWPFDocument source, Iterator<NiceXWPFDocument> mergedIterator,\n XWPFRun location) throws Exception;", "public static void writeDontCloseStream(Element document,Writer writerW) throws IOException\r\n {\n XMLWriter writer = new XMLWriter(writerW);\r\n writer.write( document );\r\n }", "public void output (OutputStream out)\r\n\t{\r\n\t\t/**\r\n * FIXME: The other part of the version hack! Add the version\r\n * declaration to the beginning of the document.\r\n */\r\n\t\ttry\r\n\t\t{\r\n\t\t\tout.write (versionDecl.getBytes ());\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t}\r\n\t\tfor (int i = 0; i < prolog.size (); i++)\r\n\t\t{\r\n\t\t\tConcreteElement e = (ConcreteElement)prolog.elementAt (i);\r\n\t\t\te.output (out);\r\n\t\t}\r\n\t\tif (content != null)\r\n\t\t\tcontent.output (out);\r\n\t}", "protected void doWriteStartDocument(String version, String encoding,\n String standAlone)\n throws XMLStreamException\n {\n if (mCheckStructure) {\n if (mAnyOutput) {\n reportNwfStructure(\"Can not output XML declaration, after other output has already been done.\");\n }\n }\n\n mAnyOutput = true;\n\n if (mConfig.willValidateContent()) {\n // !!! 06-May-2004, TSa: Should validate encoding?\n /*if (encoding != null) {\n }*/\n if (version != null && version.length() > 0) {\n if (!(version.equals(XmlConsts.XML_V_10_STR)\n || version.equals(XmlConsts.XML_V_11_STR))) {\n reportNwfContent(\"Illegal version argument ('\"+version\n +\"'); should only use '\"+XmlConsts.XML_V_10_STR\n +\"' or '\"+XmlConsts.XML_V_11_STR+\"'\");\n }\n }\n }\n\n if (version == null || version.length() == 0) {\n version = WstxOutputProperties.DEFAULT_XML_VERSION;\n }\n\n /* 04-Feb-2006, TSa: Need to know if we are writing XML 1.1\n * document...\n */\n mXml11 = XmlConsts.XML_V_11_STR.equals(version);\n if (mXml11) {\n mWriter.enableXml11();\n }\n\n if (encoding != null && encoding.length() > 0) {\n /* 03-May-2005, TSa: But what about conflicting encoding? Let's\n * only update encoding, if it wasn't set.\n */\n if (mEncoding == null || mEncoding.length() == 0) {\n mEncoding = encoding;\n }\n }\n try {\n mWriter.writeXmlDeclaration(version, encoding, standAlone);\n } catch (IOException ioe) {\n throw new WstxIOException(ioe);\n }\n }", "private static void clearDoc() {\r\n\t\ttry {\r\n\t\t\tdoc.remove(0, doc.getLength());\r\n\t\t} catch (BadLocationException e) {\r\n\t\t}\r\n\t}", "public void saveDocument() throws IOException;", "public static void write(Document document,String fileDest) throws IOException\r\n {\n XMLWriter writer = new XMLWriter(\r\n new FileWriter( fileDest )\r\n );\r\n writer.write( document );\r\n writer.close();\r\n }", "private static void replaceDocument(final StyledDocument doc, BaseBean graph) {\n final StringWriter out = new StringWriter();\n try {\n graph.write(out);\n } catch (Schema2BeansException | IOException ex) {\n Logger.getLogger(TomcatModuleConfiguration.class.getName()).log(Level.INFO, null, ex);\n }\n NbDocument.runAtomic(doc, () -> {\n try {\n doc.remove(0, doc.getLength());\n doc.insertString(0, out.toString(), null);\n } catch (BadLocationException ble) {\n Exceptions.printStackTrace(ble);\n }\n });\n }", "private void closeDocument()\n {\n try\n {\n // close our document\n if ( m_document != null )\n {\n XCloseable closeDoc = (XCloseable)UnoRuntime.queryInterface( XCloseable.class,\n m_document.getDocument() );\n closeDoc.close( true );\n }\n }\n catch ( com.sun.star.uno.Exception e )\n {\n }\n }", "public static void outputXMLdoc() throws Exception {\n // transform the Document into a String\n DOMSource domSource = new DOMSource(doc);\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer transformer = tf.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n transformer.setOutputProperty(OutputKeys.ENCODING,\"UTF-8\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n java.io.StringWriter sw = new java.io.StringWriter();\n StreamResult sr = new StreamResult(sw);\n transformer.transform(domSource, sr);\n String xml = sw.toString();\n\n\tSystem.out.println(xml);\n\n }", "public static void saveDocument(Document doc, File file) throws Exception {\r\n if (doc == null || file == null)\r\n return;\r\n\r\n TransformerFactory tFactory = TransformerFactory.newInstance();\r\n Transformer transformer = tFactory.newTransformer();\r\n\r\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n transformer.setOutputProperty(\r\n \"{http://xml.apache.org/xslt}indent-amount\", \"2\");\r\n\r\n DOMSource source = new DOMSource(doc);\r\n StreamResult result = new StreamResult(file);\r\n transformer.transform(source, result);\r\n }", "@Override\r\n public ODocument toStream() {\r\n acquireExclusiveLock();\r\n try {\r\n document.setInternalStatus(ORecordElement.STATUS.UNMARSHALLING);\r\n\r\n try {\r\n final ORecordTrackedSet idxs = new ORecordTrackedSet(document);\r\n\r\n for (final OIndex<?> i : indexes.values()) {\r\n idxs.add(((OIndexInternal<?>) i).updateConfiguration());\r\n }\r\n document.field(CONFIG_INDEXES, idxs, OType.EMBEDDEDSET);\r\n\r\n } finally {\r\n document.setInternalStatus(ORecordElement.STATUS.LOADED);\r\n }\r\n document.setDirty();\r\n\r\n return document;\r\n } finally {\r\n releaseExclusiveLock();\r\n }\r\n }", "int writeTo(OutputStream out, boolean withXmlDecl) throws IOException;", "private void writeXmlFile( Document doc, String file_path ) {\r\n\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\tDOMSource source \t\t= new DOMSource( doc );\r\n\t\t\tStreamResult result \t= new StreamResult( new File( file_path ));\r\n\t\t\t\r\n\t\t\t// Output to console for testing\r\n\t\t\t// StreamResult result = new StreamResult(System.out);\r\n\r\n\t\t\ttransformer.transform( source, result );\r\n\t\t\tSystem.out.println( \"File saved!\" );\r\n\r\n\r\n\t\t} catch ( TransformerException e ) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void serializeContents(OutputStream stream, TargetType o) throws IOException {\n val writeVersion = this.versions[getWriteVersion()];\n stream.write(writeVersion.getVersion());\n stream.write(writeVersion.getRevisions().size());\n\n // Write each Revision for this Version, in turn.\n for (val r : writeVersion.getRevisions()) {\n stream.write(r.getRevision());\n try (val revisionOutput = RevisionDataOutputStream.wrap(stream)) {\n r.getWriter().accept(o, revisionOutput);\n }\n }\n }", "public void write(PrintStream output) {\r\n writeInternal(finalRoot, output);\r\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearDocumentStandard() {\n documentStandard = null;\n fieldSetFlags()[9] = false;\n return this;\n }", "public void write(JSONDocument doc, OutputStream os){\n try{\n os.write(doc.toString().getBytes());\n os.flush();\n }catch (Exception ex){\n ex.printStackTrace();\n }\n }", "int writeTo(OutputStream out, boolean withXmlDecl, Charset enc) throws IOException;", "public void endDocument() { }", "void flushToOutputStream(OutputStream outputStream) throws IOException;", "public static void write(final Document dom, final File outFile)\n\t\t\tthrows TransformerException, FileNotFoundException {\n\t\tfinal DOMSource source = new DOMSource(dom);\n\t\tfinal StreamResult result = new StreamResult(new OutputStreamWriter(\n\t\t\t\tnew FileOutputStream(outFile)));\n\n\t\tgetTransformer().transform(source, result);\n\t}", "public void write(PrintStream output) {\r\n writeHelper(output, overallRoot);\r\n }", "public void endDocument()\r\n\t{\r\n\t /* marc_out.add(\"=008 \" + running_date + \"s\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\dcu\\\\\\\\\\\\\\\\\\\\sbm\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" + language + \"\\\\d\"); */ /** 008/24-27: biblio+thesis codes **/\r\n\t marc_out.add(\"=008 \" + running_date + \"s\" + comp_date + \"\\\\\\\\\\\\\\\\dcu\\\\\\\\\\\\\\\\\\\\obm\\\\\\\\\\\\000\\\\0\\\\\" + language + \"\\\\d\"); /** 008/24-27: biblio+thesis codes **/\r\n\t marc_out.add(\"=264 30$a[Washington, D. C.] :$bGeorge Washington University,$c\" + comp_date + \".\"); /** 20130430: rev 260*/\r\n\t}", "@Override\n public void cleanup() throws Exception {\n outputStream.close();\n }", "void generateContent(OutputStream output) throws Exception;", "void mergeOut() {\n String outputName = outputDir + flist.get(0).getName().substring(0,\n flist.get(0).getName().lastIndexOf(\".\"));\n if (outputType.equals(\"Text\")) {\n for (int i = 0; i < files.size(); i++) {\n Process p;\n String line;\n try {\n if (files.get(i).startsWith(\"pdf\")) {\n String[] images = files.get(i).split(\"\\n\");\n FileWriter writer = new FileWriter(outputName + \".txt\", true);\n BufferedWriter bWriter = new BufferedWriter(writer);\n for (int j = 1; j < images.length; j++) {\n p = Runtime.getRuntime().exec(SCRIPT + images[j]);\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n while ((line = r.readLine()) != null) {\n bWriter.write(line);\n bWriter.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n }\n bWriter.close();\n //cleanTempImages(images);\n } else if (files.get(i).startsWith(\"err\")) {\n System.out.println(\"Error with reading pdf.\");\n //cleanTempImages(files.get(i).split(\"\\n\"));\n } else {\n p = Runtime.getRuntime().exec(SCRIPT + files.get(i));\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n FileWriter writer = new FileWriter(outputName + \".txt\", true);\n BufferedWriter bWriter = new BufferedWriter(writer);\n while ((line = r.readLine()) != null) {\n bWriter.write(line);\n bWriter.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n bWriter.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n } else if (outputType.equals(\"PDF\")) {\n PDDocument document = new PDDocument();\n for (int i = 0; i < files.size(); i++) {\n Process p;\n String line;\n try {\n if (files.get(i).startsWith(\"pdf\")) {\n String[] images = files.get(i).split(\"\\n\");\n for (int j = 1; j < images.length; j++) {\n PDPage page = new PDPage();\n document.addPage(page);\n PDPageContentStream contentStream = new PDPageContentStream(document, page);\n contentStream.beginText();\n contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);\n contentStream.setLeading(14.5f);\n contentStream.newLineAtOffset(25, 700);\n p = Runtime.getRuntime().exec(SCRIPT + images[j]);\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n while ((line = r.readLine()) != null) {\n contentStream.showText(line);\n contentStream.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n contentStream.endText();\n contentStream.close();\n }\n //cleanTempImages(images);\n } else if (files.get(i).startsWith(\"err\")) {\n System.out.println(\"Error with reading pdf.\");\n //cleanTempImages(files.get(i).split(\"\\n\"));\n } else {\n p = Runtime.getRuntime().exec(SCRIPT + files.get(i));\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n PDPage page = new PDPage();\n document.addPage(page);\n PDPageContentStream contentStream = new PDPageContentStream(document, page);\n contentStream.beginText();\n contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);\n contentStream.setLeading(14.5f);\n contentStream.newLineAtOffset(25, 700);\n while ((line = r.readLine()) != null) {\n contentStream.showText(line);\n contentStream.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n contentStream.endText();\n contentStream.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n try {\n document.save(outputName + \".pdf\");\n document.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n }", "void printJavaDocBody(String doc) throws IOException{\n String docClean = doc.trim()\n .replace(\"\\t\", \"\")\n .replace(\"*/\", \"* /\");\n\n for (String s : docClean.split(\"[\\\\n\\\\r]+\")) {\n emit(\" * \" + s);\n }\n }", "public void write(File output) throws IOException {\n }", "public ODocument toStream() {\n lock.readLock().lock();\n try {\n ODocument document = new ODocument(getIdentity());\n document.field(\"schemaVersion\", CURRENT_VERSION_NUMBER);\n\n // This steps is needed because in classes there are duplicate due to aliases\n Set<OClassImpl> realClases = new HashSet<OClassImpl>();\n for (OClass c : classes.values()) realClases.add(((OClassImpl) c));\n\n Set<ODocument> classesDocuments = new HashSet<ODocument>();\n for (OClassImpl c : realClases) classesDocuments.add(c.toStream());\n document.field(\"classes\", classesDocuments, OType.EMBEDDEDSET);\n\n // This steps is needed because in views there are duplicate due to aliases\n Set<OViewImpl> realViews = new HashSet<OViewImpl>();\n for (OView v : views.values()) realViews.add(((OViewImpl) v));\n\n Set<ODocument> viewsDocuments = new HashSet<ODocument>();\n for (OClassImpl c : realViews) viewsDocuments.add(c.toStream());\n document.field(\"views\", viewsDocuments, OType.EMBEDDEDSET);\n\n List<ODocument> globalProperties = new ArrayList<ODocument>();\n for (OGlobalProperty globalProperty : properties) {\n if (globalProperty != null)\n globalProperties.add(((OGlobalPropertyImpl) globalProperty).toDocument());\n }\n document.field(\"globalProperties\", globalProperties, OType.EMBEDDEDLIST);\n document.field(\"blobClusters\", blobClusters, OType.EMBEDDEDSET);\n return document;\n } finally {\n lock.readLock().unlock();\n }\n }", "public void testRemoveWriteEnableTagsWithDocumentInMemory() {\n String fileName = \"read_only_with_write_parts_removed_as_byte.docx\";\n String fileInput = inputDirectory + \"read_only_with_write_parts.docx\";\n String expectedResult = expectedDirectory + \"read_only_with_write_parts_removed.docx\";\n ZipFile zipFileSource1;\n try {\n zipFileSource1 = new ZipFile(fileInput);\n Package packSource1 = Package.open(zipFileSource1, PackageAccess.ReadWrite);\n WordDocument docxSource1 = new WordDocument(packSource1);\n docxSource1.removeWriteEnabledTags();\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n assertTrue(docxSource1.save(outputStream));\n byte fileAsByte[] = outputStream.toByteArray();\n FileOutputStream file = new FileOutputStream(new File(outputDirectory + fileName));\n file.write(fileAsByte);\n file.close();\n OpenXmlAssert.assertEquals(new File(outputDirectory + fileName), new File(expectedResult));\n } catch (IOException e) {\n logger.error(e);\n fail(\"cannot open:\" + fileInput);\n } catch (OpenXML4JException e) {\n logger.error(e);\n fail(\"failed\" + e.getMessage());\n }\n }", "public void testStripReadOnlyWithOle() {\n String fileName = \"stripedWithOle.docx\";\n String fileInput = inputDirectory + \"diagramn_and_formula.docx\";\n String expectedResult = expectedDirectory + fileName;\n ZipFile zipFileSource1;\n try {\n zipFileSource1 = new ZipFile(fileInput);\n Package packSource1 = Package.open(zipFileSource1, PackageAccess.ReadWrite);\n WordDocument docxSource1 = new WordDocument(packSource1);\n docxSource1.stripReadOnlyPartOfDocument();\n File destFile = new File(outputDirectory + fileName);\n assertTrue(docxSource1.save(destFile));\n OpenXmlAssert.assertEquals(new File(outputDirectory + fileName), new File(expectedResult));\n } catch (IOException e) {\n logger.error(e);\n fail(\"cannot open:\" + fileInput);\n } catch (OpenXML4JException e) {\n logger.error(e);\n fail(\"fail\" + e.getMessage());\n }\n }", "public void endDocument ()\n\t\t{\n\t\t\t//System.out.println(\"End document\");\n\t\t}", "public void output (PrintWriter out)\r\n\t{\r\n\t\t/**\r\n * FIXME: The other part of the version hack! Add the version\r\n * declaration to the beginning of the document.\r\n */\r\n\t\tout.write (versionDecl);\r\n\t\tfor (int i = 0; i < prolog.size (); i++)\r\n\t\t{\r\n\t\t\tConcreteElement e = (ConcreteElement)prolog.elementAt (i);\r\n\t\t\te.output (out);\r\n\t\t}\r\n\t\tif (content != null)\r\n\t\t\tcontent.output (out);\r\n\t}", "public void close() throws IOException{\n\t\tSystem.out.println(\"Indexed \" + writer.numDocs() + \" Docs!\");\n\t\twriter.commit();\n\t\twriter.close();\n\t}", "private Document doMerge(Document[] docs) throws AbstractXmlMergeException\n {\n Document originalDoc = docs[0];\n\n for (int i = 1; i < docs.length; i++)\n {\n\n if (!m_rootMatcher.matches(originalDoc.getRootElement(), docs[i].getRootElement()))\n {\n throw new IllegalArgumentException(\"Root elements do not match.\");\n }\n\n Document output = new Document();\n if (originalDoc.getDocType() != null)\n {\n output.setDocType((DocType) originalDoc.getDocType().clone());\n }\n output.setRootElement(new Element(\"root\"));\n\n m_rootMergeAction.perform(originalDoc.getRootElement(), docs[i].getRootElement(),\n output.getRootElement());\n\n Element root = (Element) output.getRootElement().getChildren().get(0);\n root.detach();\n\n originalDoc.setRootElement(root);\n }\n\n return originalDoc;\n }", "private static void writeDocuments(XMLStreamWriter w, RepositoryConnection con, IRI pred, String classWrap) throws XMLStreamException {\n\n\t\tSet<IRI> documents;\n\t\n\t\ttry (RepositoryResult<Statement> res = con.getStatements(null, pred, null)) {\n\t\t\tdocuments = res.stream()\n\t\t\t\t\t\t\t.map(Statement::getObject)\n\t\t\t\t\t\t\t.filter(IRI.class::isInstance)\n\t\t\t\t\t\t\t.map(IRI.class::cast)\n\t\t\t\t\t\t\t.filter(i -> i.toString().startsWith(\"http\"))\n\t\t\t\t\t\t\t.collect(Collectors.toSet());\t\t\n\t\t}\n\n\t\tif (documents == null || documents.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (IRI document: documents) {\n\t\t\tw.writeStartElement(classWrap);\n\t\t\tw.writeAttribute(\"rdf:about\", document.toString());\n\t\t\twriteGenericInfo(w, con, document);\n\t\t\tw.writeEndElement();\n\t\t}\n\t\tLOG.info(\"Wrote {} {} documents\", documents.size(), classWrap);\n\t}", "public void write(Writer out) throws IOException {\n\t\t/*\n\t\t * get the first interresting node, ie the deepest one that is an\n\t\t * ancestor of every selected node, in the schema and corresponding\n\t\t * nodes in the the document\n\t\t */\n\t\tsetXmlRoot();\n\t\tfirstElement = true;\n\t\t/* marshall once for title */\n\t\tout.write(getTitle(lineNode) + \"\\n\");\n\t\tout.flush();\n\t\t// writeNode(lineNode, (Element) lineElements.get(0), TITLE, out);\n\t\t//\t\tout.write(\"\\n\");\n\t\tfirstElement = true;\n\t\t/* marshall each element */\n\t\tfor (int i = 0; i < lineElements.size(); i++) {\n\t\t\tfirstElement = true;\n\t\t\twriteNode(lineNode, (Element) lineElements.get(i), out, false);\n\t\t\tout.write(\"\\n\");\n\t\t\tout.flush();\n\t\t}\n\t}", "public static void serializeXML\n (org.w3c.dom.Document resultDocument, Writer output)\n throws IOException\n {\n\n OutputFormat myOutputFormat =\n new OutputFormat(resultDocument,\n \"UTF-8\",\n true);\n\n // output used to be replaced with System.out\n XMLSerializer s =\n new XMLSerializer(output,\n myOutputFormat);\n\n try {\n s.serialize(resultDocument);\n // next line added by THA 21.03.05\n output.flush();\n }\n catch (IOException e) {\n System.err.println(\"Couldn't serialize document: \"+\n e.getMessage());\n throw e;\n }\n\n // end of addition\n }", "public synchronized void flush() {\n\t\ttry {\n\t\t\tcloseWriter();\n\t\t} catch(IOException ioe ) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\topenWriter(true);\n\t\t} catch(IOException ioe ) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}", "public static void saveDocument( Document doc, String path ) {\n\t\ttry {\n\t\t\tFormat format = Format.getPrettyFormat();\n\t\t\tXMLOutputter fmt = new XMLOutputter( format );\n\t\t\tFile file = new File( path );\n\t\t\tOutputStream stream = new FileOutputStream( file );\n\t\t\tfmt.output( doc, stream );\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new RuntimeException( \"No se encontro el archivo: \" + path, e );\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException( \"Error al guardar el archivo: \" + path, e );\n\t\t}\n\t}", "@Override\n protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n ByteArrayOutputStream baos = createTemporaryOutputStream();\n\n // Apply preferences and build metadata.\n Document document = new Document();\n PdfWriter writer = PdfWriter.getInstance(document, baos);\n prepareWriter(model, writer, request);\n buildPdfMetadata(model, document, request);\n\n // Build PDF document.\n writer.setInitialLeading(16);\n document.open();\n buildPdfDocument(model, document, writer, request, response);\n document.close();\n\n // Flush to HTTP response.\n writeToResponse(response, baos);\n\n }", "public void endDocument() {\n \t\t\t\t\t\t\t\tif (stderrObserver != null) {\n \t\t\t\t\t\t\t\t\tparserPipedStreamListener.disable();\n \t\t\t\t\t\t\t\t\tstderrObserver.removeListener(parserPipedStreamListener);\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}", "public String write(Document serviceDoc) {\r\n\t\ttry {\r\n\t\t\tTransformerFactory transformerFactory = TransformerFactory\r\n\t\t\t\t\t.newInstance();\r\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\tStringWriter sw = new StringWriter();\r\n\t\t\tStreamResult xmlResult = new StreamResult(sw);\r\n\t\t\tDOMSource source = new DOMSource(serviceDoc);\r\n\t\t\ttransformer.transform(source, xmlResult);\r\n\t\t\tSystem.out.println(\"Writing XML document for Help When Outdoor\");\r\n\t\t\treturn sw.toString();\r\n\t\t} catch (TransformerConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (TransformerException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private static void pdfFilesOutput() {\n\n // make output directory if it doesn't already exist\n new File(\"output\").mkdirs();\n\n Output airportFlightCounter = new AirportFlightCounter(airports);\n Output flightInventory = new FlightInventory(flights);\n Output flightPassengerCounter = new FlightPassengerCounter(flights);\n Output mileageCounter = new MileageCounter(flights, airports);\n\n try {\n airportFlightCounter.toPDFFile();\n flightInventory.toPDFFile();\n flightPassengerCounter.toPDFFile();\n mileageCounter.toPDFFile();\n } catch (DocumentException | FileNotFoundException e) {\n logger.error(\"Could not write to one or more PDF files - please close any open instances of that file\");\n e.printStackTrace();\n }\n\n logger.info(\"Output to PDF files completed\");\n }", "public void endDocument() {\n }", "private void createDOCDocument(String from, File file) throws Exception {\n\t\tPOIFSFileSystem fs = new POIFSFileSystem(Thread.currentThread().getClass().getResourceAsStream(\"/poi/template.doc\"));\n\t\tHWPFDocument doc = new HWPFDocument(fs);\n\t\n\t\tRange range = doc.getRange();\n\t\tParagraph par1 = range.getParagraph(0);\n\t\n\t\tCharacterRun run1 = par1.insertBefore(from, new CharacterProperties());\n\t\trun1.setFontSize(11);\n\t\tdoc.write(new FileOutputStream(file));\n\t}", "public void WriteIndex() throws Exception {\n CorpusReader corpus = new CorpusReader();\n // initiate the output object\n IndexWriter output = new IndexWriter();\n\n // Map to hold doc_id and doc content;\n Map<String, String> doc;\n\n // index the corpus, load the doc one by one\n while ((doc = corpus.NextDoc()) != null){\n // get the doc_id and content of the current doc.\n String doc_id = doc.get(\"DOC_ID\");\n String content = doc.get(\"CONTENT\");\n\n // index the doc\n output.IndexADoc(doc_id, content);\n }\n output.close_index_writer();\n }", "private void merge(Document doc)\n throws PSFUDNullDocumentsException,\n PSFUDMergeDocumentsException\n {\n PSFUDDocMerger merger = new PSFUDDocMerger(m_snapshotDoc, doc);\n merger.merge(this);\n }", "@Override\n\tpublic void flush() {\n\t\ttry {\n\t\t\tFile f = new File(path);\n\t\t\tFileWriter fw = new FileWriter(f);\n\t\t\tfw.write(\"\");\n\t\t\tfw.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t \n\t \n\t\n\t try {\n\t\t \n\t\t\n\t\t \n\t\t\tObjectOutputStream os;\n\t\t\tFile file = new File(path);\n\t\t\tFileOutputStream fos = new FileOutputStream(file, true);\n\t\t\tif (file.length() < 1) {\n\t\t\t\tos = new ObjectOutputStream(fos);\n\t\t\t} else {\n\t\t\t\tos = new MyObjectOutputStream(fos);\n\t\t\t}\n\t\t\tos.writeObject(constantPO);\n\t\t\tos.flush();\n\t\t\tos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void closeStream() {\n output.close();\n input.close();\n }", "public static void flush() {\n if (outputEnabled)\n out.flush();\n }", "public void saveChanges() throws TransformerException {\n\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\r\n\t\tTransformer transformer = transformerFactory.newTransformer();\r\n\t\tDOMSource source = new DOMSource(document);\r\n\t\tStreamResult result = new StreamResult(new File(path));\r\n\t\ttransformer.transform(source, result);\r\n\t}", "void write(Writer out, boolean escapeXML) throws IOException;", "@Override\n\tpublic void endDocument() throws SAXException {\n\t\ttry {\n\t\t\tsuper.endDocument();\n\t\t\tflush();\n\t\t} catch (IOException e) {\n\t\t\tthrow new SAXException(e);\n\t\t}\n\t}", "private void writeOutput() {\n\n textMergeScript.setCurrentDirectoryFromFile (chosenOutputFile);\n tabFileOutput = new TabDelimFile (chosenOutputFile);\n tabFileOutput.setLog (log);\n tabFileOutput.setDataLogging (false);\n boolean outputOK = true;\n try {\n tabFileOutput.openForOutput (list.getRecDef());\n } catch (IOException e) {\n outputOK = false;\n log.recordEvent (LogEvent.MEDIUM,\n \"Problem opening Output File\",\n false);\n }\n if (outputOK) {\n list.openForInput();\n DataRecord inRec;\n int count = 0;\n do {\n inRec = list.nextRecordIn ();\n if (inRec != null) {\n try {\n tabFileOutput.nextRecordOut (inRec);\n count++;\n } catch (IOException e) {\n log.recordEvent (LogEvent.MEDIUM,\n \"Problem writing to Output File\",\n true);\n }\n } // end if in rec not null\n } while (list.hasMoreRecords());\n\n list.close();\n\n try {\n tabFileOutput.close();\n } catch (IOException e) {\n }\n\n log.recordEvent(LogEvent.NORMAL,\n String.valueOf(count) + \" records output\",\n false);\n\n tabNameOutput = chosenOutputFile.getName();\n openOutputDataName.setText (tabNameOutput);\n if (usingDictionary) {\n tabFileName =\n new FileName (chosenOutputFile.getAbsolutePath());\n dictFile =\n new TabDelimFile (textMergeScript.getCurrentDirectory(),\n tabFileName.replaceExt(DICTIONARY_EXT));\n dictFile.setLog (log);\n try {\n dataDict.store (dictFile);\n } catch (IOException e) {\n log.recordEvent (LogEvent.MEDIUM,\n \"Problem writing Output Dictionary\",\n true);\n }\n } // end if using dictionary\n\n textMergeScript.recordScriptAction (\n ScriptConstants.OUTPUT_MODULE,\n ScriptConstants.OPEN_ACTION,\n ScriptConstants.NO_MODIFIER,\n ScriptConstants.NO_OBJECT,\n chosenOutputFile.getAbsolutePath());\n\n } // end if output ok\n\n }", "void save(XMLDocument document, XMLStreamWriter writer) throws XMLStreamException;", "private static String covertDocumentToString(Document document) throws Exception {\n\t\tjava.io.StringWriter sw = new java.io.StringWriter();\n\t\ttry {\n\t\t\tDOMSource domSource = new DOMSource(document);\n\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = tf.newTransformer();\n\n\t\t\ttransformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n\t\t\t// transformer.setOutputProperty(OutputKeys.ENCODING,\"ISO-8859-1\");\n\t\t\t// transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n\t\t\t// transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\n\t\t\tStreamResult sr = new StreamResult(sw);\n\t\t\ttransformer.transform(domSource, sr);\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn sw.toString();\n\t}", "public abstract boolean processSaveDocument(Document document);", "public void commit() {\n\t\ttry {\n\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\tDOMSource domSource = new DOMSource(document);\n\t\t\tStreamResult streamResult = new StreamResult(new File(fileName));\n\t\t\ttransformer.transform(domSource, streamResult);\n\t\t\t//Reload nodes list\n\t\t\tnodes = document.getDocumentElement().getChildNodes();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void writeOutput() {\n\t\tint lineNumber = 0;\n\t\ttry {\n\t\t\tfor (; lineNumber < outputFileCont.size(); lineNumber++) {\n\t\t\t\t// pobranie i zapisanie kolejnego zapamiêtanego wiersza\n\t\t\t\tString line = (String) outputFileCont.get(lineNumber);\n\t\t\t\toutputBuffer.write(line);\n\t\t\t\t// zapisanie znaku nowego wiersza\n\t\t\t\toutputBuffer.newLine();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"B³¹d zapisu do pliku: \" + outputFileName + \" \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\t// niezbêdne\n\t\t\toutputBuffer.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"B³¹d zamkniêcia pliku: \" + outputFileName\n\t\t\t\t\t+ \" \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Zapisano \"\n\t\t\t\t+ lineNumber\n\t\t\t\t+ \" wiersz\"\n\t\t\t\t+ (lineNumber == 1 ? \"\"\n\t\t\t\t\t\t: (lineNumber > 1 && lineNumber < 5 ? \"e\" : \"y\"))\n\t\t\t\t+ \" do pliku \" + outputFileName);\n\t}", "@Override\n public void flush()\n throws XMLStreamException\n {\n try {\n mWriter.flush();\n } catch (IOException ie) {\n throw new WstxIOException(ie);\n }\n }", "public void generarDoc(){\n generarDocP();\n }", "private void writeContent(OutputStream os) throws Exception {\n os.write(HTMLcontent.getBytes());\n}", "@Override\n public void writeStartDocument()\n throws XMLStreamException\n {\n if (mEncoding == null) {\n mEncoding = WstxOutputProperties.DEFAULT_OUTPUT_ENCODING;\n }\n writeStartDocument(mEncoding, WstxOutputProperties.DEFAULT_XML_VERSION);\n }", "@Override\n\tpublic void endDocument() {\n\t\t\n\t}", "private void output(InputStream xmlInput, InputStream xsltInput, OutputStream pdfOutput) throws FOPException, TransformerException {\n FOUserAgent foUserAgent = this.fopFactory.newFOUserAgent();\n\n // Setup output\n // Construct fop with desired output format\n Fop fop = this.fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, pdfOutput);\n\n // Setup XSLT\n TransformerFactory factory = TransformerFactory.newInstance();\n Transformer transformer = factory.newTransformer(new StreamSource(xsltInput));\n\n // Setup input for XSLT transformation\n Source src = new StreamSource(xmlInput);\n\n // Resulting SAX events (the generated FO) must be piped through to FOP\n Result res = new SAXResult(fop.getDefaultHandler());\n\n // Start XSLT transformation and FOP processing\n transformer.transform(src, res);\n }", "public void flush(String filename) throws IOException {\n // open the file\n // the false part means that the buffer won't be automatically flushed\n // we flush after every term\n PrintStream out = new PrintStream(new BufferedOutputStream(\n new FileOutputStream(filename)), false);\n\n // STORE THE INDEX\n\n // an iterator over all terms\n Iterator i = index.keySet().iterator();\n\n // temporary variables\n Iterator docs;\n HashMap docList;\n String doc;\n int[] t;\n\n // the first line is the number of terms\n out.println(index.size());\n String word;\n\n // loop through each term\n while (i.hasNext()) {\n word = (String) i.next();\n\n // print the term\n out.println(word);\n\n // get variables to loop through documents containing the term\n docList = (HashMap) index.get(word);\n docs = docList.keySet().iterator();\n\n // loop through documents containing the term\n while (docs.hasNext()) {\n // get the document and frequency\n doc = (String) docs.next();\n t = (int[]) docList.get(doc);\n\n // store the document and frequency\n out.println(doc);\n out.println(t[0]);\n }\n\n // put another newline on there and flush the buffer\n out.println();\n out.flush();\n }\n\n // close the file\n out.close();\n }", "public void write(final File out) throws IOException;", "public static void writeWord(XWPFDocument document, String fileName) throws IOException {\n\t\tFileOutputStream out = new FileOutputStream(new File(fileName));\n\t\tdocument.write(out);\n\t\tout.close();\n\t}", "@Override\n public PdfTransform<PdfDocument> getDocumentTransform(ArchivalUnit au, OutputStream os) {\n return new BaseDocumentExtractingTransform(os) {\n @Override\n public void outputCreationDate() throws PdfException {\n // Intentionally made blank\n }\n };\n }", "public void endDocument() throws Exception {\n\t\t\tif (isVerbose()) {\n\t\t\t\tunindent();\n\t\t\t\tlogInfo(\"end\", \"\");\n\t\t\t}\n\n\t\t\t// This never gets called anyway -- Alfred catches it\n\t\t\t// if (_currentElement != _root) {\n\t\t\t// logError(\"Document tags do not match\");\n\t\t\t// }\n\t\t}", "public static native boolean saveDocument(String doc, String toFile);", "void index(IDocument document, IIndexerOutput output) throws java.io.IOException;", "public void close() {\n if (this.out == null) {\n return;\n }\n try {\n this.out.flush();\n this.out.close();\n this.out = null;\n } catch (IOException e) {\n e.printStackTrace();\n }\n }" ]
[ "0.6000838", "0.58153266", "0.5749061", "0.5585831", "0.5434067", "0.54223055", "0.53028023", "0.51971924", "0.51913905", "0.51355135", "0.5124818", "0.50659", "0.49901608", "0.4983569", "0.49394435", "0.4912118", "0.48737895", "0.4846218", "0.48275146", "0.48137608", "0.47907457", "0.47884685", "0.47661644", "0.47611085", "0.4729199", "0.4723856", "0.4717641", "0.47053114", "0.4696022", "0.46908918", "0.46854272", "0.46726057", "0.46644482", "0.46339586", "0.46021673", "0.46009916", "0.4595814", "0.4572277", "0.45699972", "0.45651937", "0.45584336", "0.45567626", "0.45307258", "0.45213258", "0.45071784", "0.450388", "0.44929495", "0.44872528", "0.44663876", "0.44598207", "0.44380906", "0.44354787", "0.4425582", "0.44217712", "0.4420416", "0.4415786", "0.44135454", "0.43989876", "0.43976176", "0.43897232", "0.4383413", "0.43543494", "0.43522516", "0.43507987", "0.43506718", "0.43463102", "0.43413532", "0.43386874", "0.43378592", "0.43341815", "0.43270418", "0.43268627", "0.43159702", "0.43153495", "0.43045983", "0.42986563", "0.42975262", "0.4295142", "0.42835346", "0.42810082", "0.42801738", "0.42795143", "0.42744023", "0.42705968", "0.4266558", "0.42643905", "0.4264194", "0.42626008", "0.42576241", "0.42552814", "0.4250069", "0.42489755", "0.4242708", "0.42407557", "0.4239779", "0.42385495", "0.4231591", "0.42217004", "0.42196262", "0.42151597" ]
0.6879032
0
Creates metadata from the package doc.
private Metadata(final Document packageDoc) throws IOException { Element packageElem = packageDoc.selectFirst("package"); if(packageElem == null) { throw new IOException("The package document must contain a 'package' element"); } String uniqueIdentifierId = packageElem.attr("unique-identifier"); Element metadataElem = packageElem.selectFirst("metadata"); if(metadataElem == null) { throw new IOException("The package document must contain a 'metadata' element"); } String identifier = ""; if(!uniqueIdentifierId.isEmpty()) { Element identifierElem = metadataElem.getElementById(uniqueIdentifierId); if(identifierElem != null) { identifier = identifierElem.text(); } } this.identifier = identifier; Element modifiedElem = metadataElem.selectFirst("meta[property=dcterms:modified]"); if(modifiedElem == null) { this.modifiedTimestamp = 0L; } else { Long modifiedTimestamp = tryParseISO8601(modifiedElem.text()); this.modifiedTimestamp = modifiedTimestamp != null ? modifiedTimestamp : 0L; } Element publishedElem = metadataElem.selectFirst("dc|date"); if(publishedElem == null) { this.publishedTimestamp = 0L; } else { Long publishedTimestamp = tryParseISO8601(publishedElem.text()); this.publishedTimestamp = publishedTimestamp != null ? publishedTimestamp : 0L; } this.titles = dcElements(metadataElem, "title"); this.title = titles.isEmpty() ? "" : this.titles.get(0); Element languageElem = metadataElem.selectFirst("dc|language"); this.language = languageElem != null ? languageElem.text() : ""; this.rights = dcElements(metadataElem, "rights"); this.creators = dcElements(metadataElem, "creator"); this.contributors = dcElements(metadataElem, "contributor"); this.subjects = dcElements(metadataElem, "subject"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmetadataEClass = createEClass(METADATA);\n\t\tcreateEAttribute(metadataEClass, METADATA__GAMENAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__SHORTNAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__TIMING);\n\t\tcreateEAttribute(metadataEClass, METADATA__ADRESSING);\n\t\tcreateEAttribute(metadataEClass, METADATA__CARTRIDGE_TYPE);\n\t\tcreateEAttribute(metadataEClass, METADATA__ROM_SIZE);\n\t\tcreateEAttribute(metadataEClass, METADATA__RAM_SIZE);\n\t\tcreateEAttribute(metadataEClass, METADATA__LICENSEE);\n\t\tcreateEAttribute(metadataEClass, METADATA__COUNTRY);\n\t\tcreateEAttribute(metadataEClass, METADATA__VIDEOFORMAT);\n\t\tcreateEAttribute(metadataEClass, METADATA__VERSION);\n\t\tcreateEAttribute(metadataEClass, METADATA__IDE_VERSION);\n\t}", "private void addMetaData() {\r\n\t\tdocument.open();\r\n\t\tdocument.addTitle(\"My first PDF\");\r\n\t\tdocument.addSubject(\"Using iText\");\r\n\t\tdocument.addKeywords(\"Java, PDF, iText\");\r\n\t\tdocument.addAuthor(\"Lars Vogel\");\r\n\t\tdocument.addCreator(\"Lars Vogel\");\r\n\t\tdocument.close();\r\n\t}", "private static void addMetaData(Document document) {\n document.addTitle(\"Report\");\n //document.addSubject(\"Using iText\");\n //document.addKeywords(\"Java, PDF, iText\");\n document.addAuthor(\"Illya Barziy\");\n //document.addCreator(\"Lars Vogel\");\n }", "private void addMetaData(Document document) {\n document.addTitle(\"Tasks export\");\n document.addSubject(\"From Ergon\");\n document.addKeywords(\"Java, PDF\");\n document.addAuthor(\"Ergon\");\n }", "Documentation createDocumentation();", "Documentation createDocumentation();", "private static void addMetaData(Document document) {\n document.addTitle(\"Pharmacy Prescription\");\n document.addSubject(\"Pharmacy Prescription\");\n document.addKeywords(\"Pharmacy, Drugs, Drug, Dispense\");\n document.addAuthor(\"Clinical Support System\");\n document.addCreator(\"Prof. Madya Dr. Mohd. Khanapi Bin Abd. Ghani\");\n }", "Metadata getMetaData();", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttextualRepresentationEClass = createEClass(TEXTUAL_REPRESENTATION);\n\t\tcreateEReference(textualRepresentationEClass, TEXTUAL_REPRESENTATION__BASE_COMMENT);\n\t\tcreateEAttribute(textualRepresentationEClass, TEXTUAL_REPRESENTATION__LANGUAGE);\n\t}", "protected static LibMetaData createLibMetaData(LibMetaData lmd) {\n MetaData metaData = new MetaData();\r\n metaData.add(\"IsThing\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(0), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Number\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(THING, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsItem\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Name\", \"Thing\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_ITEM), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(ITEM, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsBeing\",new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Creatures\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(340), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsMobile\",new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsBlocking\", new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"MoveCost\", new Integer(100), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"DeathDecoration\", \"blood pool\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_MOBILE), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(BEING, metaData);\r\n \r\n lmd = createEffectMetaData(lmd);\r\n lmd = createPoisonMetaData(lmd);\r\n lmd = createFoodMetaData(lmd);\r\n lmd = createScrollMetaData(lmd);\r\n lmd = createMissileMetaData(lmd);\r\n lmd = createRangedWeaponMetaData(lmd);\r\n lmd = createPotionMetaData(lmd);\r\n lmd = createWandMetaData(lmd);\r\n lmd = createRingMetaData(lmd);\r\n lmd = createCoinMetaData(lmd);\r\n lmd = createArmourMetaData(lmd);\r\n lmd = createWeaponMetaData(lmd);\r\n lmd = createSecretMetaData(lmd);\r\n lmd = createSpellBookMetaData(lmd);\r\n lmd = createChestMetaData(lmd);\r\n lmd = createDecorationMetaData(lmd);\r\n lmd = createSceneryMetaData(lmd);\r\n lmd = createPortalMetaData(lmd);\r\n lmd = createTrapMetaData(lmd);\r\n createMonsterMetaData(lmd);\r\n createPersonMetaData(lmd);\r\n return lmd;\r\n }", "private static DocumentationImpl createDocumentation() {\n\t\treturn DocumentationImpl.Builder.info(\"A workspace in which other items can be placed, and top-level options can be configured.\")\n\t\t\t\t.param(\"Initialize\", \"Whether or not to execute the Initialize phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Run\", \"Whether or not to execute the Run phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Duration (minutes)\", \"The number of minutes this workspace will be alive.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Retrieve Data\", \"Whether or not to execute the Retrieve Data phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Cleanup\", \"Whether or not to execute the Cleanup phase.\") // FIXME: STRING: srogers\n\t\t\t\t.build(); // FIXME: srogers: extract string construction into a dedicated method\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\trepositoryEClass = createEClass(REPOSITORY);\n\t\tcreateEAttribute(repositoryEClass, REPOSITORY__NAME);\n\t\tcreateEAttribute(repositoryEClass, REPOSITORY__LOCATION);\n\n\t\trepositoryManagerEClass = createEClass(REPOSITORY_MANAGER);\n\t}", "private void initMetadata() throws IOException {\n \n // start by reading the file header\n in.seek(0);\n byte[] toRead = new byte[4];\n in.read(toRead);\n long order = batoi(toRead); // byte ordering\n little = toRead[2] != 0xff || toRead[3] != 0xff;\n metadata.put(\"Byte Order\", new Boolean(little));\n \n in.skipBytes(4);\n in.read(toRead);\n long version = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Version\", new Long(version));\n \n byte[] er = new byte[2];\n in.read(er);\n short count = DataTools.bytesToShort(er, little);\n metadata.put(\"Count\", new Short(count));\n \n in.skipBytes(2);\n \n in.read(toRead);\n long offset = DataTools.bytesToLong(toRead, little);\n \n // skip to first tag\n in.seek(offset);\n \n // read in each tag and its data\n \n for (int i=0; i<count; i++) {\n in.read(er);\n short tag = DataTools.bytesToShort(er, little);\n in.skipBytes(2);\n \n in.read(toRead);\n offset = DataTools.bytesToLong(toRead, little);\n \n in.read(toRead);\n long fmt = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Format\", new Long(fmt));\n \n in.read(toRead);\n long numBytes = DataTools.bytesToLong(toRead, little);\n metadata.put(\"NumBytes\", new Long(numBytes));\n \n if (tag == 67 || tag == 68) {\n byte[] b = new byte[1];\n in.read(b);\n boolean isOpenlab2;\n if (b[0] == '0') isOpenlab2 = false;\n else isOpenlab2 = true;\n metadata.put(\"isOpenlab2\", new Boolean(isOpenlab2));\n \n in.skipBytes(2);\n in.read(er);\n short layerId = DataTools.bytesToShort(er, little);\n metadata.put(\"LayerID\", new Short(layerId));\n \n in.read(er);\n short layerType = DataTools.bytesToShort(er, little);\n metadata.put(\"LayerType\", new Short(layerType));\n \n in.read(er);\n short bitDepth = DataTools.bytesToShort(er, little);\n metadata.put(\"BitDepth\", new Short(bitDepth));\n \n in.read(er);\n short opacity = DataTools.bytesToShort(er, little);\n metadata.put(\"Opacity\", new Short(opacity));\n \n // not sure how many bytes to skip here\n in.skipBytes(10);\n \n in.read(toRead);\n long type = DataTools.bytesToLong(toRead, little);\n metadata.put(\"ImageType\", new Long(type));\n \n // not sure how many bytes to skip\n in.skipBytes(10);\n \n in.read(toRead);\n long timestamp = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Timestamp\", new Long(timestamp));\n \n in.skipBytes(2);\n \n if (isOpenlab2 == true) {\n byte[] layerName = new byte[127];\n in.read(layerName);\n metadata.put(\"LayerName\", new String(layerName));\n \n in.read(toRead);\n long timestampMS = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Timestamp-MS\", new Long(timestampMS));\n \n in.skipBytes(1);\n byte[] notes = new byte[118];\n in.read(notes);\n metadata.put(\"Notes\", new String(notes));\n }\n else in.skipBytes(123);\n }\n else if (tag == 69) {\n in.read(toRead);\n long platform = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Platform\", new Long(platform));\n \n in.read(er);\n short units = DataTools.bytesToShort(er, little);\n metadata.put(\"Units\", new Short(units));\n \n in.read(er);\n short imageId = DataTools.bytesToShort(er, little);\n metadata.put(\"ID\", new Short(imageId));\n in.skipBytes(1);\n \n byte[] toRead2 = new byte[8];\n double xOrigin = DataTools.readDouble(in, little);\n metadata.put(\"XOrigin\", new Double(xOrigin));\n double yOrigin = DataTools.readDouble(in, little);\n metadata.put(\"YOrigin\", new Double(yOrigin));\n double xScale = DataTools.readDouble(in, little);\n metadata.put(\"XScale\", new Double(xScale));\n double yScale = DataTools.readDouble(in, little);\n metadata.put(\"YScale\", new Double(yScale));\n in.skipBytes(1);\n \n byte[] other = new byte[31];\n in.read(other);\n metadata.put(\"Other\", new String(other));\n }\n \n // Initialize OME metadata\n \n if (ome != null) {\n OMETools.setBigEndian(ome, !little);\n if (metadata.get(\"BitDepth\") != null) {\n int bitDepth = ((Integer) metadata.get(\"BitDepth\")).intValue();\n String type;\n \n if (bitDepth <= 8) type = \"int8\";\n else if (bitDepth <= 16) type = \"int16\";\n else type = \"int32\";\n \n OMETools.setPixelType(ome, type);\n }\n if (metadata.get(\"Timestamp\") != null) {\n OMETools.setCreationDate(ome, (String) metadata.get(\"Timestamp\"));\n }\n \n if (metadata.get(\"XOrigin\") != null) {\n Double xOrigin = (Double) metadata.get(\"XOrigin\");\n OMETools.setStageX(ome, xOrigin.floatValue());\n }\n \n if (metadata.get(\"YOrigin\") != null) {\n Double yOrigin = (Double) metadata.get(\"YOrigin\");\n OMETools.setStageY(ome, yOrigin.floatValue());\n }\n \n if (metadata.get(\"XScale\") != null) {\n Double xScale = (Double) metadata.get(\"XScale\");\n OMETools.setPixelSizeX(ome, xScale.floatValue());\n }\n \n if (metadata.get(\"YScale\") != null) {\n Double yScale = (Double) metadata.get(\"YScale\");\n OMETools.setPixelSizeY(ome, yScale.floatValue());\n }\n }\n in.seek(offset);\n }\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tldprojectEClass = createEClass(LDPROJECT);\n\t\tcreateEAttribute(ldprojectEClass, LDPROJECT__NAME);\n\t\tcreateEAttribute(ldprojectEClass, LDPROJECT__LIFECYCLE);\n\t\tcreateEAttribute(ldprojectEClass, LDPROJECT__ROBUSTNESS);\n\t\tcreateEOperation(ldprojectEClass, LDPROJECT___PUBLISH);\n\t\tcreateEOperation(ldprojectEClass, LDPROJECT___UNPUBLISH);\n\t\tcreateEOperation(ldprojectEClass, LDPROJECT___UPDATE);\n\n\t\tlddatabaselinkEClass = createEClass(LDDATABASELINK);\n\t\tcreateEAttribute(lddatabaselinkEClass, LDDATABASELINK__DATABASE);\n\t\tcreateEAttribute(lddatabaselinkEClass, LDDATABASELINK__PORT);\n\n\t\tldprojectlinkEClass = createEClass(LDPROJECTLINK);\n\n\t\tldnodeEClass = createEClass(LDNODE);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__NAME);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__MONGO_HOSTS);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__MAIN_PROJECT);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__ANALYTICS_READ_PREFERENCE);\n\n\t\t// Create enums\n\t\tlifecycleEEnum = createEEnum(LIFECYCLE);\n\t\trobustnessEEnum = createEEnum(ROBUSTNESS);\n\t}", "protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\taudioEClass = createEClass(AUDIO);\n\t\tcreateEAttribute(audioEClass, AUDIO__CONTENT);\n\t\tcreateEAttribute(audioEClass, AUDIO__NAME);\n\t\tcreateEAttribute(audioEClass, AUDIO__TEXT);\n\n\t\taudioManagerEClass = createEClass(AUDIO_MANAGER);\n\n\t\taudioRecorderEClass = createEClass(AUDIO_RECORDER);\n\n\t\taudioPlayerEClass = createEClass(AUDIO_PLAYER);\n\n\t\t// Create enums\n\t\taudioStyleEEnum = createEEnum(AUDIO_STYLE);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tannotationEClass = createEClass(ANNOTATION);\n\t\tcreateEReference(annotationEClass, ANNOTATION__IMPLEMENTATIONS);\n\n\t\timplementationEClass = createEClass(IMPLEMENTATION);\n\t\tcreateEAttribute(implementationEClass, IMPLEMENTATION__CODE);\n\t\tcreateEReference(implementationEClass, IMPLEMENTATION__TECHNOLOGY);\n\t\tcreateEReference(implementationEClass, IMPLEMENTATION__LANGUAGE);\n\n\t\tsemanticsEClass = createEClass(SEMANTICS);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__ANNOTATIONS);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__LANGUAGES);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__TECHNOLOGIES);\n\n\t\ttargetLanguageEClass = createEClass(TARGET_LANGUAGE);\n\n\t\ttechnologyEClass = createEClass(TECHNOLOGY);\n\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\t}", "private String generateMetadata() {\n ServiceMetadata metadata = new ServiceMetadata();\n\n // Populate metadata using setX() methods\n metadata.setName(this.getClass().getName());\n metadata.setAllow(Discriminators.Uri.ANY);\n metadata.setDescription(\"Mallet Topic Modeling Trainer\");\n metadata.setVersion(\"1.0.0-SNAPSHOT\");\n metadata.setVendor(\"http://www.lappsgrid.org\");\n metadata.setLicense(Discriminators.Uri.APACHE2);\n\n // JSON for input information\n IOSpecification requires = new IOSpecification();\n requires.addFormat(Discriminators.Uri.TEXT); // Plain text (form)\n requires.addLanguage(\"en\"); // Source language\n\n // JSON for output information\n IOSpecification produces = new IOSpecification();\n produces.addFormat(Discriminators.Uri.LAPPS); // LIF (form)\n produces.addLanguage(\"en\"); // Target language\n\n // Embed I/O metadata JSON objects\n metadata.setRequires(requires);\n metadata.setProduces(produces);\n\n // Serialize the metadata into LEDS string and return\n Data<ServiceMetadata> data = new Data<>(Discriminators.Uri.META, metadata);\n return data.asPrettyJson();\n }", "private static void processPackageInfo(Path infoFile, Map<String, Documentation> pkgDocs)\n throws IOException, ShadowException {\n /* Get the contents of the file */\n String declarationLine;\n DocumentationBuilder docBuilder;\n try (BufferedReader info = Files.newBufferedReader(infoFile, StandardCharsets.UTF_8)) {\n declarationLine = null;\n docBuilder = new DocumentationBuilder();\n while (info.ready()) {\n String line = info.readLine();\n if (info.ready()) // Capture all but the last line as comment text\n docBuilder.appendLine(line);\n else declarationLine = line; // The last line is the declaration\n }\n }\n if (declarationLine == null)\n throw new DocumentationException(\"No lines in file: \" + infoFile.toAbsolutePath());\n\n /* Parse the package declaration and doc comment */\n Matcher matcher = pkgDeclaration.matcher(declarationLine);\n if (!matcher.find() || matcher.start() != 0)\n throw new DocumentationException(\n \"No valid package declaration on\" + \" last line: \" + infoFile.toAbsolutePath());\n String pkgName = matcher.group(1);\n if (!insideValidDirectory(pkgName, infoFile))\n throw new DocumentationException(\n \"Declaration of package \"\n + pkgName\n + \" does not match file path: \"\n + infoFile.toAbsolutePath());\n\n /* Add the package documentation to the central map */\n if (pkgDocs.containsKey(pkgName))\n logger.warn(\n \"Already found a package-info file for \"\n + pkgName\n + \", ignoring: \"\n + infoFile.toAbsolutePath());\n pkgDocs.put(pkgName, docBuilder.process());\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\n\t\tpackageDeclarationEClass = createEClass(PACKAGE_DECLARATION);\n\t\tcreateEAttribute(packageDeclarationEClass, PACKAGE_DECLARATION__NAME);\n\t\tcreateEReference(packageDeclarationEClass, PACKAGE_DECLARATION__CONTENT);\n\n\t\treferenceableEClass = createEClass(REFERENCEABLE);\n\t}", "public void createPackageContents()\n\t{\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create data types\n\t\tfeatureNotFoundExceptionEDataType = createEDataType(FEATURE_NOT_FOUND_EXCEPTION);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tbaseElementEClass = createEClass(BASE_ELEMENT);\n\t\tcreateEReference(baseElementEClass, BASE_ELEMENT__KEY_VALUE_MAPS);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__ID);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__NAME);\n\t\tcreateEAttribute(baseElementEClass, BASE_ELEMENT__DESCRIPTION);\n\n\t\tkeyValueMapEClass = createEClass(KEY_VALUE_MAP);\n\t\tcreateEAttribute(keyValueMapEClass, KEY_VALUE_MAP__KEY);\n\t\tcreateEReference(keyValueMapEClass, KEY_VALUE_MAP__VALUES);\n\n\t\tvalueEClass = createEClass(VALUE);\n\t\tcreateEAttribute(valueEClass, VALUE__TAG);\n\t\tcreateEAttribute(valueEClass, VALUE__VALUE);\n\n\t\t// Create enums\n\t\ttimeUnitEEnum = createEEnum(TIME_UNIT);\n\t}", "private void getMetadata() {\n masterRoot = AbstractMetadata.getAbstractedMetadata(sourceProduct);\n masterMetadata = new MetadataDoris(masterRoot);\n masterOrbit = new OrbitsDoris();\n masterOrbit.setOrbit(masterRoot);\n \n // SLAVE METADATA\n // hash table or just map for slaves - now it supports only a single sourceSlave image\n slaveRoot = sourceProduct.getMetadataRoot().getElement(AbstractMetadata.SLAVE_METADATA_ROOT).getElementAt(0);\n slaveMetadata = new MetadataDoris(slaveRoot);\n slaveOrbit = new OrbitsDoris();\n slaveOrbit.setOrbit(slaveRoot);\n }", "public void generarDoc(){\n generarDocP();\n }", "public abstract ModuleDoc doc();", "private ApiInfo metadata() {\n\t\treturn new ApiInfoBuilder().title(\"# Online Home Decor Store #\")\n\t\t\t\t.description(\"Suppliers and Categories operations are present\").build();\t\n\t}", "DocbookPackage getDocbookPackage();", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\toml2OTIProvenanceEClass = createEClass(OML2OTI_PROVENANCE);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OML_UUID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OML_IRI);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_ID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_URL);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__OTI_UUID);\n\t\tcreateEAttribute(oml2OTIProvenanceEClass, OML2OTI_PROVENANCE__EXPLANATION);\n\n\t\t// Create data types\n\t\tuuidEDataType = createEDataType(UUID);\n\t\tomL_IRIEDataType = createEDataType(OML_IRI);\n\t\totI_TOOL_SPECIFIC_IDEDataType = createEDataType(OTI_TOOL_SPECIFIC_ID);\n\t\totI_TOOL_SPECIFIC_UUIDEDataType = createEDataType(OTI_TOOL_SPECIFIC_UUID);\n\t\totI_TOOL_SPECIFIC_URLEDataType = createEDataType(OTI_TOOL_SPECIFIC_URL);\n\t}", "private void prepareREADME() {\n\t\ttry {\n\t\t\tInputStream is = getClass().getResourceAsStream(\"/demo/README.txt\");\n\t\t\tInputStreamReader isr = new InputStreamReader(is);\n\t\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\tString readme = \"\";\n\t\t\twhile ((readme = br.readLine()) != null)\n\t\t\t\tview.appendTextREADME(readme += \"\\n\");\n\t\t\tbr.close();\n\t\t\tisr.close();\n\t\t\tis.close();\n\t\t} catch (IOException e) {\n\t\t\tview.displayErrorMessage(\"ERROR: README creation failed.\");\n\t\t}\n\t}", "public MetaData getMetaData();", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tcmdEClass = createEClass(CMD);\n\t\tcreateEAttribute(cmdEClass, CMD__PRIORITY);\n\t\tcreateEAttribute(cmdEClass, CMD__STAMP);\n\n\t\tcompoundCmdEClass = createEClass(COMPOUND_CMD);\n\t\tcreateEReference(compoundCmdEClass, COMPOUND_CMD__CHILDREN);\n\n\t\txCmdEClass = createEClass(XCMD);\n\t\tcreateEAttribute(xCmdEClass, XCMD__OBJ);\n\n\t\tbyteCmdEClass = createEClass(BYTE_CMD);\n\t\tcreateEAttribute(byteCmdEClass, BYTE_CMD__MESSAGE);\n\n\t\t// Create enums\n\t\tpriorityEEnum = createEEnum(PRIORITY);\n\t}", "private ApiInfo metaData() {\n return new ApiInfoBuilder()\n .title(\"Spring Boot REST API\")\n .description(\"\\\"Spring Boot REST API for Vertica Developer Training\\\"\")\n .version(\"1.0.0\")\n .license(\"Apache License Version 2.0\")\n .licenseUrl(\"https://www.apache.org/licenses/LICENSE-2.0\\\"\")\n .contact(new Contact(\"Thingtrack\", \"https://www.thingtrack.com\", \"[email protected]\"))\n .build();\n }", "public interface PCSMetadata {\n\n /* Met Fields */\n String APPLICATION_SUCCESS_FLAG = \"ApplicationSuccessFlag\";\n\n String ON_DISK = \"OnDisk\";\n\n String TAPE_LOCATION = \"TapeLocation\";\n\n String PRODUCTION_LOCATION = \"ProductionLocation\";\n\n String PRODUCTION_LOCATION_CODE = \"ProductionLocationCode\";\n\n String DATA_VERSION = \"DataVersion\";\n\n String DATA_PROVIDER = \"DataProvider\";\n\n String COLLECTION_LABEL = \"CollectionLabel\";\n\n String COMMENTS = \"Comments\";\n\n String EXECUTABLE_PATHNAMES = \"ExecutablePathnames\";\n\n String EXECUTABLE_VERSIONS = \"ExecutableVersions\";\n\n String PROCESSING_LEVEL = \"ProcessingLevel\";\n\n String JOB_ID = \"JobId\";\n\n String TASK_ID = \"TaskId\";\n\n String PRODUCTION_DATE_TIME = \"ProductionDateTime\";\n\n String INPUT_FILES = \"InputFiles\";\n\n String PGE_NAME = \"PGEName\";\n\n String OUTPUT_FILES = \"OutputFiles\";\n \n String TEST_TAG = \"TestTag\";\n\n String SUB_TEST_TAG = \"SubTestTag\";\n\n String TEST_LOCATION = \"TestLocation\";\n\n String TEST_COUNTER = \"TestCounter\";\n\n String TEST_DATE = \"TestDate\";\n \n String START_DATE_TIME = \"StartDateTime\";\n\n String END_DATE_TIME = \"EndDateTime\";\n\n}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tjElementEClass = createEClass(JELEMENT);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__UUID);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__NAME);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__SHORT_NAME);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__FULL_NAME);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__DESCRIPTION);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__FRAMEWORK);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__PARTICIPATES);\n\t\tcreateEAttribute(jElementEClass, JELEMENT__VISIBILITY);\n\n\t\tjTypeEClass = createEClass(JTYPE);\n\n\t\tjTypedElementEClass = createEClass(JTYPED_ELEMENT);\n\t\tcreateEReference(jTypedElementEClass, JTYPED_ELEMENT__TYPE);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__VALUE);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__DERIVED);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__CALCULATED);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__LOWER);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__UPPER);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__ORDERED);\n\t\tcreateEAttribute(jTypedElementEClass, JTYPED_ELEMENT__UNIQUE);\n\n\t\tjPrimitiveEClass = createEClass(JPRIMITIVE);\n\t\tcreateEReference(jPrimitiveEClass, JPRIMITIVE__PACKAGE);\n\t\tcreateEAttribute(jPrimitiveEClass, JPRIMITIVE__USE_FOR_ID_TYPE);\n\n\t\tjEnumerationEClass = createEClass(JENUMERATION);\n\t\tcreateEReference(jEnumerationEClass, JENUMERATION__PACKAGE);\n\t\tcreateEReference(jEnumerationEClass, JENUMERATION__LITERALS);\n\t\tcreateEReference(jEnumerationEClass, JENUMERATION__CLASS_REPRESENTATION);\n\n\t\tjClassEClass = createEClass(JCLASS);\n\t\tcreateEAttribute(jClassEClass, JCLASS__ABSTRACT);\n\t\tcreateEReference(jClassEClass, JCLASS__STATE_MACHINES);\n\t\tcreateEReference(jClassEClass, JCLASS__OPERATIONS);\n\t\tcreateEReference(jClassEClass, JCLASS__ATTRIBUTE_ORDER);\n\t\tcreateEReference(jClassEClass, JCLASS__ATTRIBUTES_FOR_LISTING);\n\t\tcreateEReference(jClassEClass, JCLASS__FIXED_ENUM);\n\t\tcreateEAttribute(jClassEClass, JCLASS__REPRESENTS_TENANT);\n\t\tcreateEAttribute(jClassEClass, JCLASS__TENANT_MEMBER);\n\t\tcreateEReference(jClassEClass, JCLASS__REPRESENTATION);\n\t\tcreateEAttribute(jClassEClass, JCLASS__REPRESENTS_ENUM);\n\t\tcreateEAttribute(jClassEClass, JCLASS__REPRESENTS_TENANT_USER);\n\t\tcreateEAttribute(jClassEClass, JCLASS__REPRESENTS_USER);\n\t\tcreateEReference(jClassEClass, JCLASS__SUPERTYPE);\n\t\tcreateEReference(jClassEClass, JCLASS__PACKAGE);\n\t\tcreateEReference(jClassEClass, JCLASS__ROLES);\n\t\tcreateEReference(jClassEClass, JCLASS__ATTRIBUTES);\n\t\tcreateEAttribute(jClassEClass, JCLASS__BUSINESS_SINGLETON);\n\t\tcreateEReference(jClassEClass, JCLASS__ALIASES);\n\t\tcreateEAttribute(jClassEClass, JCLASS__WATCHED);\n\t\tcreateEAttribute(jClassEClass, JCLASS__REPRESENTS_ENUM_VALUE);\n\n\t\tjAttributeEClass = createEClass(JATTRIBUTE);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__PLACEHOLDER);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__REGEXP);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__MANDATORY);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__DECIMALS);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__INTERVAL);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__TECHNICAL);\n\t\tcreateEReference(jAttributeEClass, JATTRIBUTE__OWNER_CLASS);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__UI_NO_SEARCH);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__WATCHED);\n\t\tcreateEAttribute(jAttributeEClass, JATTRIBUTE__REPRESENTS_ID);\n\n\t\tjOperationEClass = createEClass(JOPERATION);\n\t\tcreateEAttribute(jOperationEClass, JOPERATION__CLASS_BASED);\n\t\tcreateEReference(jOperationEClass, JOPERATION__OWNER_CLASS);\n\t\tcreateEReference(jOperationEClass, JOPERATION__PARAMETERS);\n\t\tcreateEReference(jOperationEClass, JOPERATION__TRANSITION);\n\t\tcreateEAttribute(jOperationEClass, JOPERATION__BULK);\n\t\tcreateEAttribute(jOperationEClass, JOPERATION__KIND);\n\t\tcreateEAttribute(jOperationEClass, JOPERATION__UI_MUST_CONFIRM);\n\n\t\tjParameterEClass = createEClass(JPARAMETER);\n\t\tcreateEReference(jParameterEClass, JPARAMETER__OWNER_OPERATION);\n\t\tcreateEAttribute(jParameterEClass, JPARAMETER__INPUT);\n\t\tcreateEAttribute(jParameterEClass, JPARAMETER__INTERVAL);\n\n\t\tjRelationshipEClass = createEClass(JRELATIONSHIP);\n\t\tcreateEReference(jRelationshipEClass, JRELATIONSHIP__PACKAGE);\n\t\tcreateEReference(jRelationshipEClass, JRELATIONSHIP__ROLES);\n\t\tcreateEAttribute(jRelationshipEClass, JRELATIONSHIP__DERIVED);\n\n\t\tjRoleEClass = createEClass(JROLE);\n\t\tcreateEAttribute(jRoleEClass, JROLE__LOWER);\n\t\tcreateEAttribute(jRoleEClass, JROLE__UPPER);\n\t\tcreateEAttribute(jRoleEClass, JROLE__NAVIGABLE);\n\t\tcreateEAttribute(jRoleEClass, JROLE__UNIQUE);\n\t\tcreateEAttribute(jRoleEClass, JROLE__ORDERED);\n\t\tcreateEReference(jRoleEClass, JROLE__OWNER_RELATIONSHIP);\n\t\tcreateEAttribute(jRoleEClass, JROLE__DERIVED_EXPRESSION);\n\t\tcreateEAttribute(jRoleEClass, JROLE__DERIVED_DESCRIPTION);\n\t\tcreateEAttribute(jRoleEClass, JROLE__KIND);\n\t\tcreateEAttribute(jRoleEClass, JROLE__OPTION_SCRIPT);\n\t\tcreateEReference(jRoleEClass, JROLE__OWNER_CLASS);\n\t\tcreateEAttribute(jRoleEClass, JROLE__VALUE);\n\t\tcreateEAttribute(jRoleEClass, JROLE__CALCULATED);\n\t\tcreateEAttribute(jRoleEClass, JROLE__INTERVAL);\n\n\t\tjLiteralEClass = createEClass(JLITERAL);\n\t\tcreateEReference(jLiteralEClass, JLITERAL__ENUMERATION);\n\n\t\tjPackageEClass = createEClass(JPACKAGE);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__ENUMERATIONS);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__PRIMITIVES);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__RELATIONSHIPS);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__CHILDREN);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__PARENT);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__OWNER_MODEL);\n\t\tcreateEReference(jPackageEClass, JPACKAGE__CLASSES);\n\n\t\tjStateMachineEClass = createEClass(JSTATE_MACHINE);\n\t\tcreateEReference(jStateMachineEClass, JSTATE_MACHINE__OWNER_CLASS);\n\t\tcreateEReference(jStateMachineEClass, JSTATE_MACHINE__STATES);\n\t\tcreateEReference(jStateMachineEClass, JSTATE_MACHINE__TRANSITIONS);\n\t\tcreateEReference(jStateMachineEClass, JSTATE_MACHINE__CORRESPONDING_ENUM);\n\n\t\tjTransitionEClass = createEClass(JTRANSITION);\n\t\tcreateEReference(jTransitionEClass, JTRANSITION__STATE_MACHINE);\n\t\tcreateEReference(jTransitionEClass, JTRANSITION__GUARD);\n\t\tcreateEReference(jTransitionEClass, JTRANSITION__TO_STATE);\n\t\tcreateEReference(jTransitionEClass, JTRANSITION__FROM_STATE);\n\t\tcreateEReference(jTransitionEClass, JTRANSITION__EXECUTING_OPERATION);\n\n\t\tjStateEClass = createEClass(JSTATE);\n\t\tcreateEReference(jStateEClass, JSTATE__OWNER_STATE_MACHINE);\n\t\tcreateEReference(jStateEClass, JSTATE__INCOMING_TRANSITIONS);\n\t\tcreateEReference(jStateEClass, JSTATE__OUTGOING_TRANSITIONS);\n\t\tcreateEAttribute(jStateEClass, JSTATE__INITIAL_STATE);\n\t\tcreateEAttribute(jStateEClass, JSTATE__FINAL_STATE);\n\n\t\tjGuardEClass = createEClass(JGUARD);\n\t\tcreateEReference(jGuardEClass, JGUARD__TRANSITION);\n\t\tcreateEAttribute(jGuardEClass, JGUARD__TEXT);\n\t\tcreateEAttribute(jGuardEClass, JGUARD__EXPRESSION);\n\n\t\tjModelEClass = createEClass(JMODEL);\n\t\tcreateEReference(jModelEClass, JMODEL__PACKAGES);\n\t\tcreateEAttribute(jModelEClass, JMODEL__PACKAGE_PREFIX);\n\t\tcreateEReference(jModelEClass, JMODEL__APPLICATION_TOP);\n\t\tcreateEReference(jModelEClass, JMODEL__ROOT_MENU_ITEMS);\n\t\tcreateEReference(jModelEClass, JMODEL__INFO);\n\n\t\tjuiMenuItemEClass = createEClass(JUI_MENU_ITEM);\n\t\tcreateEReference(juiMenuItemEClass, JUI_MENU_ITEM__CHILDREN);\n\t\tcreateEReference(juiMenuItemEClass, JUI_MENU_ITEM__PARENT);\n\t\tcreateEReference(juiMenuItemEClass, JUI_MENU_ITEM__REPRESENT);\n\t\tcreateEReference(juiMenuItemEClass, JUI_MENU_ITEM__UIFILTERS);\n\t\tcreateEAttribute(juiMenuItemEClass, JUI_MENU_ITEM__TYPE);\n\t\tcreateEReference(juiMenuItemEClass, JUI_MENU_ITEM__ALIAS);\n\n\t\tjuiAttributeGroupEClass = createEClass(JUI_ATTRIBUTE_GROUP);\n\t\tcreateEReference(juiAttributeGroupEClass, JUI_ATTRIBUTE_GROUP__ATTRIBUTES);\n\t\tcreateEAttribute(juiAttributeGroupEClass, JUI_ATTRIBUTE_GROUP__POSITION);\n\n\t\tjuiFilterEClass = createEClass(JUI_FILTER);\n\t\tcreateEReference(juiFilterEClass, JUI_FILTER__ATTRIBUTE);\n\t\tcreateEAttribute(juiFilterEClass, JUI_FILTER__OPERATOR);\n\t\tcreateEAttribute(juiFilterEClass, JUI_FILTER__VALUE);\n\n\t\tjuiAliasEClass = createEClass(JUI_ALIAS);\n\t\tcreateEReference(juiAliasEClass, JUI_ALIAS__OWNER_CLASS);\n\n\t\tjInfoEClass = createEClass(JINFO);\n\t\tcreateEReference(jInfoEClass, JINFO__SUBMODELS);\n\n\t\tjSubmodelEClass = createEClass(JSUBMODEL);\n\t\tcreateEAttribute(jSubmodelEClass, JSUBMODEL__VERSION);\n\n\t\t// Create enums\n\t\tjVisibilityEEnum = createEEnum(JVISIBILITY);\n\t\tjAssociationKindEEnum = createEEnum(JASSOCIATION_KIND);\n\t\tjOperationKindEEnum = createEEnum(JOPERATION_KIND);\n\t\tjLayerEEnum = createEEnum(JLAYER);\n\t\tjMenuItemTypeEEnum = createEEnum(JMENU_ITEM_TYPE);\n\t\tjOperatorEEnum = createEEnum(JOPERATOR);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tarrayOfStringEClass = createEClass(ARRAY_OF_STRING);\n\t\tcreateEAttribute(arrayOfStringEClass, ARRAY_OF_STRING__VALUES);\n\n\t\tcontainerEClass = createEClass(CONTAINER);\n\t\tcreateEAttribute(containerEClass, CONTAINER__NAME);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CONTAINERID);\n\t\tcreateEAttribute(containerEClass, CONTAINER__IMAGE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__BUILD);\n\t\tcreateEAttribute(containerEClass, CONTAINER__COMMAND);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PORTS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__EXPOSE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__VOLUMES);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ENVIRONMENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ENV_FILE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__NET);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DNS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DNS_SEARCH);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CAP_ADD);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CAP_DROP);\n\t\tcreateEAttribute(containerEClass, CONTAINER__WORKING_DIR);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ENTRYPOINT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__USER);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DOMAIN_NAME);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEM_LIMIT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_SWAP);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PRIVILEGED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__RESTART);\n\t\tcreateEAttribute(containerEClass, CONTAINER__STDIN_OPEN);\n\t\tcreateEAttribute(containerEClass, CONTAINER__INTERACTIVE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_SHARES);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PID);\n\t\tcreateEAttribute(containerEClass, CONTAINER__IPC);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ADD_HOST);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MAC_ADDRESS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__RM);\n\t\tcreateEAttribute(containerEClass, CONTAINER__SECURITY_OPT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DEVICE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__LXC_CONF);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PUBLISH_ALL);\n\t\tcreateEAttribute(containerEClass, CONTAINER__READ_ONLY);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MONITORED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DISK_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DISK_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__BANDWIDTH_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__BANDWIDTH_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MONITORING_INTERVAL);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_MAX_VALUE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_MAX_VALUE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CORE_MAX);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_SET_CPUS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_SET_MEMS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__TTY);\n\t\tcreateEOperation(containerEClass, CONTAINER___CREATE);\n\t\tcreateEOperation(containerEClass, CONTAINER___STOP);\n\t\tcreateEOperation(containerEClass, CONTAINER___RUN);\n\t\tcreateEOperation(containerEClass, CONTAINER___PAUSE);\n\t\tcreateEOperation(containerEClass, CONTAINER___UNPAUSE);\n\t\tcreateEOperation(containerEClass, CONTAINER___KILL__STRING);\n\n\t\tlinkEClass = createEClass(LINK);\n\t\tcreateEAttribute(linkEClass, LINK__ALIAS);\n\n\t\tnetworklinkEClass = createEClass(NETWORKLINK);\n\n\t\tvolumesfromEClass = createEClass(VOLUMESFROM);\n\t\tcreateEAttribute(volumesfromEClass, VOLUMESFROM__MODE);\n\n\t\tcontainsEClass = createEClass(CONTAINS);\n\n\t\tmachineEClass = createEClass(MACHINE);\n\t\tcreateEAttribute(machineEClass, MACHINE__NAME);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_INSTALL_URL);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_OPT);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_INSECURE_REGISTRY);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_REGISTRY_MIRROR);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_LABEL);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_STORAGE_DRIVER);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_ENV);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_IMAGE);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_MASTER);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_DISCOVERY);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_STRATEGY);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_OPT);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_HOST);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_ADDR);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_EXPERIMENTAL);\n\t\tcreateEAttribute(machineEClass, MACHINE__TLS_SAN);\n\t\tcreateEOperation(machineEClass, MACHINE___STARTALL);\n\n\t\tvolumeEClass = createEClass(VOLUME);\n\t\tcreateEAttribute(volumeEClass, VOLUME__DRIVER);\n\t\tcreateEAttribute(volumeEClass, VOLUME__LABELS);\n\t\tcreateEAttribute(volumeEClass, VOLUME__OPTIONS);\n\t\tcreateEAttribute(volumeEClass, VOLUME__SOURCE);\n\t\tcreateEAttribute(volumeEClass, VOLUME__DESTINATION);\n\t\tcreateEAttribute(volumeEClass, VOLUME__MODE);\n\t\tcreateEAttribute(volumeEClass, VOLUME__RW);\n\t\tcreateEAttribute(volumeEClass, VOLUME__PROPAGATION);\n\t\tcreateEAttribute(volumeEClass, VOLUME__NAME);\n\n\t\tnetworkEClass = createEClass(NETWORK);\n\t\tcreateEAttribute(networkEClass, NETWORK__NETWORK_ID);\n\t\tcreateEAttribute(networkEClass, NETWORK__NAME);\n\t\tcreateEAttribute(networkEClass, NETWORK__AUX_ADDRESS);\n\t\tcreateEAttribute(networkEClass, NETWORK__DRIVER);\n\t\tcreateEAttribute(networkEClass, NETWORK__GATEWAY);\n\t\tcreateEAttribute(networkEClass, NETWORK__INTERNAL);\n\t\tcreateEAttribute(networkEClass, NETWORK__IP_RANGE);\n\t\tcreateEAttribute(networkEClass, NETWORK__IPAM_DRIVER);\n\t\tcreateEAttribute(networkEClass, NETWORK__IPAM_OPT);\n\t\tcreateEAttribute(networkEClass, NETWORK__IPV6);\n\t\tcreateEAttribute(networkEClass, NETWORK__OPT);\n\t\tcreateEAttribute(networkEClass, NETWORK__SUBNET);\n\n\t\tmachinegenericEClass = createEClass(MACHINEGENERIC);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__ENGINE_PORT);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__IP_ADDRESS);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__SSH_KEY);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__SSH_USER);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__SSH_PORT);\n\n\t\tmachineamazonec2EClass = createEClass(MACHINEAMAZONEC2);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__ACCESS_KEY);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__AMI);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__INSTANCE_TYPE);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__REGION);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__ROOT_SIZE);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SECRET_KEY);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SECURITY_GROUP);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SESSION_TOKEN);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SUBNET_ID);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__VPC_ID);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__ZONE);\n\n\t\tmachinedigitaloceanEClass = createEClass(MACHINEDIGITALOCEAN);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__ACCESS_TOKEN);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__IMAGE);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__REGION);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__SIZE);\n\n\t\tmachinegooglecomputeengineEClass = createEClass(MACHINEGOOGLECOMPUTEENGINE);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__ZONE);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__MACHINE_TYPE);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__USERNAME);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__INSTANCE_NAME);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__PROJECT);\n\n\t\tmachineibmsoftlayerEClass = createEClass(MACHINEIBMSOFTLAYER);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__API_ENDPOINT);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__USER);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__API_KEY);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__CPU);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__DISK_SIZE);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__DOMAIN);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__HOURLY_BILLING);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__IMAGE);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__LOCAL_DISK);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__PRIVATE_NET_ONLY);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__REGION);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__PUBLIC_VLAN_ID);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__PRIVATE_VLAN_ID);\n\n\t\tmachinemicrosoftazureEClass = createEClass(MACHINEMICROSOFTAZURE);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBSCRIPTION_ID);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBSCRIPTION_CERT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__ENVIRONMENT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__MACHINE_LOCATION);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__RESOURCE_GROUP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SIZE);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SSH_USER);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__VNET);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBNET);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBNET_PREFIX);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__AVAILABILITY_SET);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__OPEN_PORT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__PRIVATE_IP_ADDRESS);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__NO_PUBLIC_IP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__STATIC_PUBLIC_IP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__DOCKER_PORT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__USE_PRIVATE_IP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__IMAGE);\n\n\t\tmachinemicrosofthypervEClass = createEClass(MACHINEMICROSOFTHYPERV);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__VIRTUAL_SWITCH);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__DISK_SIZE);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__STATIC_MAC_ADDRESS);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__VLAN_ID);\n\n\t\tmachineopenstackEClass = createEClass(MACHINEOPENSTACK);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__FLAVOR_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__FLAVOR_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__IMAGE_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__IMAGE_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__AUTH_URL);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__USERNAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__PASSWORD);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__TENANT_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__TENANT_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__REGION);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__ENDPOINT_TYPE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__NET_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__NET_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__SEC_GROUPS);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__FLOATING_IP_POOL);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__ACTIVE_TIME_OUT);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__AVAILABILITY_ZONE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__DOMAIN_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__DOMAIN_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__INSECURE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__IP_VERSION);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__KEYPAIR_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__PRIVATE_KEY_FILE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__SSH_PORT);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__SSH_USER);\n\n\t\tmachinerackspaceEClass = createEClass(MACHINERACKSPACE);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__USERNAME);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__API_KEY);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__REGION);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__END_POINT_TYPE);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__IMAGE_ID);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__FLAVOR_ID);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__SSH_USER);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__SSH_PORT);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__DOCKER_INSTALL);\n\n\t\tmachinevirtualboxEClass = createEClass(MACHINEVIRTUALBOX);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__DISK_SIZE);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_DNS_RESOLVER);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__IMPORT_BOOT2_DOCKER_VM);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_ONLY_CIDR);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_ONLY_NIC_TYPE);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_ONLY_NIC_PROMISC);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__NO_SHARE);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__NO_DNS_PROXY);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__NO_VTX_CHECK);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__SHARE_FOLDER);\n\n\t\tmachinevmwarefusionEClass = createEClass(MACHINEVMWAREFUSION);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__DISK_SIZE);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__MEMORY_SIZE);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__NO_SHARE);\n\n\t\tmachinevmwarevcloudairEClass = createEClass(MACHINEVMWAREVCLOUDAIR);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__USERNAME);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__PASSWORD);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__CATALOG);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__CATALOG_ITEM);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__COMPUTE_ID);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__CPU_COUNT);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__DOCKER_PORT);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__EDGEGATEWAY);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__MEMORY_SIZE);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__VAPP_NAME);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__ORGVDCNETWORK);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__PROVISION);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__PUBLIC_IP);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__SSH_PORT);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__VDC_ID);\n\n\t\tmachinevmwarevsphereEClass = createEClass(MACHINEVMWAREVSPHERE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__USERNAME);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__PASSWORD);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__COMPUTE_IP);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__CPU_COUNT);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__DATACENTER);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__DATASTORE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__DISK_SIZE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__MEMORY_SIZE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__NETWORK);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__POOL);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__VCENTER);\n\n\t\tmachineexoscaleEClass = createEClass(MACHINEEXOSCALE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__URL);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__API_KEY);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__API_SECRET_KEY);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__INSTANCE_PROFILE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__IMAGE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__SECURITY_GROUP);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__AVAILABILITY_ZONE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__SSH_USER);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__USER_DATA);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__AFFINITY_GROUP);\n\n\t\tmachinegrid5000EClass = createEClass(MACHINEGRID5000);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__USERNAME);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__PASSWORD);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__SITE);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__WALLTIME);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__SSH_PRIVATE_KEY);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__SSH_PUBLIC_KEY);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__IMAGE);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__RESOURCE_PROPERTIES);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__USE_JOB_RESERVATION);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__HOST_TO_PROVISION);\n\n\t\tclusterEClass = createEClass(CLUSTER);\n\t\tcreateEAttribute(clusterEClass, CLUSTER__NAME);\n\n\t\t// Create enums\n\t\tmodeEEnum = createEEnum(MODE);\n\t}", "private ApiInfo metaData() {\n return new ApiInfoBuilder()\n .title(\"Spring Boot REST API\")\n .description(\"Spring Boot REST API for Testing Project\")\n .version(\"v1.0\")\n .contact(new Contact(\"Blagovest Anev\", \"https://www.linkedin.com/in/blagovestanev/\", \"[email protected]\"))\n .build();\n }", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n stylesheetEClass = createEClass(STYLESHEET);\n createEAttribute(stylesheetEClass, STYLESHEET__CHAR_SET);\n createEReference(stylesheetEClass, STYLESHEET__IMPORTS);\n createEReference(stylesheetEClass, STYLESHEET__STATEMENTS);\n\n cssTopLevelStatementEClass = createEClass(CSS_TOP_LEVEL_STATEMENT);\n\n cssOtherTopLevelDeclarationEClass = createEClass(CSS_OTHER_TOP_LEVEL_DECLARATION);\n\n importDeclarationEClass = createEClass(IMPORT_DECLARATION);\n createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__IMPORT_URI);\n createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__URL);\n createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__MEDIA);\n\n mediaDeclarationEClass = createEClass(MEDIA_DECLARATION);\n createEReference(mediaDeclarationEClass, MEDIA_DECLARATION__MEDIA_QUERIES);\n createEReference(mediaDeclarationEClass, MEDIA_DECLARATION__MEDIA);\n createEReference(mediaDeclarationEClass, MEDIA_DECLARATION__MEMBERS);\n\n mediaDeclarationMembersEClass = createEClass(MEDIA_DECLARATION_MEMBERS);\n\n mediaQueryEClass = createEClass(MEDIA_QUERY);\n createEAttribute(mediaQueryEClass, MEDIA_QUERY__ONLY);\n createEAttribute(mediaQueryEClass, MEDIA_QUERY__NOT);\n createEAttribute(mediaQueryEClass, MEDIA_QUERY__MEDIA_TYPE);\n createEReference(mediaQueryEClass, MEDIA_QUERY__EXPRESSIONS);\n\n mediaQueryExpressionEClass = createEClass(MEDIA_QUERY_EXPRESSION);\n createEAttribute(mediaQueryExpressionEClass, MEDIA_QUERY_EXPRESSION__FEATURE);\n createEReference(mediaQueryExpressionEClass, MEDIA_QUERY_EXPRESSION__EXPRESSION);\n\n pageDeclarationEClass = createEClass(PAGE_DECLARATION);\n createEAttribute(pageDeclarationEClass, PAGE_DECLARATION__PSEUDO_PAGE);\n createEReference(pageDeclarationEClass, PAGE_DECLARATION__BODY);\n\n namespaceDeclarationEClass = createEClass(NAMESPACE_DECLARATION);\n createEAttribute(namespaceDeclarationEClass, NAMESPACE_DECLARATION__NAME);\n createEAttribute(namespaceDeclarationEClass, NAMESPACE_DECLARATION__URL);\n\n fontFaceDeclarationEClass = createEClass(FONT_FACE_DECLARATION);\n createEReference(fontFaceDeclarationEClass, FONT_FACE_DECLARATION__BODY);\n\n ruleSetEClass = createEClass(RULE_SET);\n createEReference(ruleSetEClass, RULE_SET__SELECTORS);\n createEReference(ruleSetEClass, RULE_SET__BODY);\n\n ruleSetBodyEClass = createEClass(RULE_SET_BODY);\n createEReference(ruleSetBodyEClass, RULE_SET_BODY__DECLARATIONS);\n\n propertyDeclarationEClass = createEClass(PROPERTY_DECLARATION);\n createEReference(propertyDeclarationEClass, PROPERTY_DECLARATION__VALUES_LISTS);\n\n knownPropertyDeclarationEClass = createEClass(KNOWN_PROPERTY_DECLARATION);\n createEAttribute(knownPropertyDeclarationEClass, KNOWN_PROPERTY_DECLARATION__NAME);\n\n unrecognizedPropertyDeclarationEClass = createEClass(UNRECOGNIZED_PROPERTY_DECLARATION);\n createEAttribute(unrecognizedPropertyDeclarationEClass, UNRECOGNIZED_PROPERTY_DECLARATION__NAME);\n\n propertyValuesListsEClass = createEClass(PROPERTY_VALUES_LISTS);\n createEReference(propertyValuesListsEClass, PROPERTY_VALUES_LISTS__LISTS);\n\n propertyValuesListEClass = createEClass(PROPERTY_VALUES_LIST);\n createEReference(propertyValuesListEClass, PROPERTY_VALUES_LIST__VALUES);\n\n propertyValueEClass = createEClass(PROPERTY_VALUE);\n createEReference(propertyValueEClass, PROPERTY_VALUE__VALUE);\n createEAttribute(propertyValueEClass, PROPERTY_VALUE__IMPORTANT);\n\n selectorEClass = createEClass(SELECTOR);\n\n simpleSelectorEClass = createEClass(SIMPLE_SELECTOR);\n\n typeSelectorEClass = createEClass(TYPE_SELECTOR);\n createEReference(typeSelectorEClass, TYPE_SELECTOR__NAMESPACE_PREFIX);\n createEAttribute(typeSelectorEClass, TYPE_SELECTOR__TYPE);\n\n namespacePrefixEClass = createEClass(NAMESPACE_PREFIX);\n createEReference(namespacePrefixEClass, NAMESPACE_PREFIX__NAMESPACE);\n\n universalSelectorEClass = createEClass(UNIVERSAL_SELECTOR);\n createEReference(universalSelectorEClass, UNIVERSAL_SELECTOR__NAMESPACE_PREFIX);\n\n attributeSelectorEClass = createEClass(ATTRIBUTE_SELECTOR);\n createEReference(attributeSelectorEClass, ATTRIBUTE_SELECTOR__ATTRIBUTE);\n createEAttribute(attributeSelectorEClass, ATTRIBUTE_SELECTOR__MATCHER);\n createEReference(attributeSelectorEClass, ATTRIBUTE_SELECTOR__VALUE);\n\n attributeEClass = createEClass(ATTRIBUTE);\n createEReference(attributeEClass, ATTRIBUTE__NAMESPACE_PREFIX);\n createEAttribute(attributeEClass, ATTRIBUTE__NAME);\n\n attributeValueLiteralEClass = createEClass(ATTRIBUTE_VALUE_LITERAL);\n\n idSelectorEClass = createEClass(ID_SELECTOR);\n createEAttribute(idSelectorEClass, ID_SELECTOR__NAME);\n\n classSelectorEClass = createEClass(CLASS_SELECTOR);\n createEAttribute(classSelectorEClass, CLASS_SELECTOR__NAME);\n\n pseudoSelectorEClass = createEClass(PSEUDO_SELECTOR);\n\n noArgsPseudoClassSelectorEClass = createEClass(NO_ARGS_PSEUDO_CLASS_SELECTOR);\n createEAttribute(noArgsPseudoClassSelectorEClass, NO_ARGS_PSEUDO_CLASS_SELECTOR__PSEUDO);\n\n pseudoElementSelectorEClass = createEClass(PSEUDO_ELEMENT_SELECTOR);\n createEAttribute(pseudoElementSelectorEClass, PSEUDO_ELEMENT_SELECTOR__DOUBLE_SEMI_COLON);\n createEAttribute(pseudoElementSelectorEClass, PSEUDO_ELEMENT_SELECTOR__PSEUDO);\n\n languagePseudoClassSelectorEClass = createEClass(LANGUAGE_PSEUDO_CLASS_SELECTOR);\n createEAttribute(languagePseudoClassSelectorEClass, LANGUAGE_PSEUDO_CLASS_SELECTOR__LANGUGAGE_ID);\n\n functionalPseudoClassSelectorEClass = createEClass(FUNCTIONAL_PSEUDO_CLASS_SELECTOR);\n createEAttribute(functionalPseudoClassSelectorEClass, FUNCTIONAL_PSEUDO_CLASS_SELECTOR__PSEUDO);\n createEReference(functionalPseudoClassSelectorEClass, FUNCTIONAL_PSEUDO_CLASS_SELECTOR__ARGUMENT);\n\n typeArgumentEClass = createEClass(TYPE_ARGUMENT);\n\n linearArgumentEClass = createEClass(LINEAR_ARGUMENT);\n createEReference(linearArgumentEClass, LINEAR_ARGUMENT__COEFFICIENT);\n createEAttribute(linearArgumentEClass, LINEAR_ARGUMENT__CONSTANT_SIGN);\n createEAttribute(linearArgumentEClass, LINEAR_ARGUMENT__CONSTANT);\n\n coefficientEClass = createEClass(COEFFICIENT);\n createEAttribute(coefficientEClass, COEFFICIENT__IDENT);\n createEAttribute(coefficientEClass, COEFFICIENT__INT);\n\n constantArgumentEClass = createEClass(CONSTANT_ARGUMENT);\n createEAttribute(constantArgumentEClass, CONSTANT_ARGUMENT__SIGN);\n createEAttribute(constantArgumentEClass, CONSTANT_ARGUMENT__INT);\n\n parityArgumentEClass = createEClass(PARITY_ARGUMENT);\n createEAttribute(parityArgumentEClass, PARITY_ARGUMENT__PARITY);\n\n negationSelectorEClass = createEClass(NEGATION_SELECTOR);\n createEReference(negationSelectorEClass, NEGATION_SELECTOR__SIMPLE_SELECTOR);\n\n valueLiteralEClass = createEClass(VALUE_LITERAL);\n\n numberLiteralEClass = createEClass(NUMBER_LITERAL);\n\n sizeLiteralEClass = createEClass(SIZE_LITERAL);\n\n stringLiteralEClass = createEClass(STRING_LITERAL);\n createEAttribute(stringLiteralEClass, STRING_LITERAL__VALUE);\n\n colorLiteralEClass = createEClass(COLOR_LITERAL);\n\n componentColorLiteralEClass = createEClass(COMPONENT_COLOR_LITERAL);\n\n colorComponentLiteralEClass = createEClass(COLOR_COMPONENT_LITERAL);\n createEReference(colorComponentLiteralEClass, COLOR_COMPONENT_LITERAL__NUMBER);\n createEAttribute(colorComponentLiteralEClass, COLOR_COMPONENT_LITERAL__PERCENTAGE);\n\n urlLiteralEClass = createEClass(URL_LITERAL);\n createEAttribute(urlLiteralEClass, URL_LITERAL__VALUE);\n\n bareWordLiteralEClass = createEClass(BARE_WORD_LITERAL);\n createEAttribute(bareWordLiteralEClass, BARE_WORD_LITERAL__BARE_WORD);\n\n functionCallLiteralEClass = createEClass(FUNCTION_CALL_LITERAL);\n createEAttribute(functionCallLiteralEClass, FUNCTION_CALL_LITERAL__FUNCTION);\n createEReference(functionCallLiteralEClass, FUNCTION_CALL_LITERAL__ARGUMENTS);\n\n descendantCombinatorEClass = createEClass(DESCENDANT_COMBINATOR);\n createEReference(descendantCombinatorEClass, DESCENDANT_COMBINATOR__LEFT);\n createEAttribute(descendantCombinatorEClass, DESCENDANT_COMBINATOR__WS_I);\n createEReference(descendantCombinatorEClass, DESCENDANT_COMBINATOR__RIGHT);\n\n childCombinatorEClass = createEClass(CHILD_COMBINATOR);\n createEReference(childCombinatorEClass, CHILD_COMBINATOR__LEFT);\n createEAttribute(childCombinatorEClass, CHILD_COMBINATOR__WS_L);\n createEAttribute(childCombinatorEClass, CHILD_COMBINATOR__WS_R);\n createEReference(childCombinatorEClass, CHILD_COMBINATOR__RIGHT);\n\n adjacentSiblingCombinatorEClass = createEClass(ADJACENT_SIBLING_COMBINATOR);\n createEReference(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__LEFT);\n createEAttribute(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__WS_L);\n createEAttribute(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__WS_R);\n createEReference(adjacentSiblingCombinatorEClass, ADJACENT_SIBLING_COMBINATOR__RIGHT);\n\n generalSiblingCombinatorEClass = createEClass(GENERAL_SIBLING_COMBINATOR);\n createEReference(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__LEFT);\n createEAttribute(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__WS_L);\n createEAttribute(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__WS_R);\n createEReference(generalSiblingCombinatorEClass, GENERAL_SIBLING_COMBINATOR__RIGHT);\n\n simpleSelectorSequenceEClass = createEClass(SIMPLE_SELECTOR_SEQUENCE);\n createEReference(simpleSelectorSequenceEClass, SIMPLE_SELECTOR_SEQUENCE__HEAD);\n createEReference(simpleSelectorSequenceEClass, SIMPLE_SELECTOR_SEQUENCE__SIMPLE_SELECTORS);\n\n universalNamespacePrefixEClass = createEClass(UNIVERSAL_NAMESPACE_PREFIX);\n\n withoutNamespacePrefixEClass = createEClass(WITHOUT_NAMESPACE_PREFIX);\n\n stringAttributeValueLiteralEClass = createEClass(STRING_ATTRIBUTE_VALUE_LITERAL);\n createEAttribute(stringAttributeValueLiteralEClass, STRING_ATTRIBUTE_VALUE_LITERAL__VALUE);\n\n integerAttributeValueLiteralEClass = createEClass(INTEGER_ATTRIBUTE_VALUE_LITERAL);\n createEAttribute(integerAttributeValueLiteralEClass, INTEGER_ATTRIBUTE_VALUE_LITERAL__VALUE);\n\n decimalAttributeValueLiteralEClass = createEClass(DECIMAL_ATTRIBUTE_VALUE_LITERAL);\n createEAttribute(decimalAttributeValueLiteralEClass, DECIMAL_ATTRIBUTE_VALUE_LITERAL__VALUE);\n\n integerLiteralEClass = createEClass(INTEGER_LITERAL);\n createEAttribute(integerLiteralEClass, INTEGER_LITERAL__INT);\n\n decimalLiteralEClass = createEClass(DECIMAL_LITERAL);\n createEAttribute(decimalLiteralEClass, DECIMAL_LITERAL__DECIMAL);\n\n quantifiedSizeLiteralEClass = createEClass(QUANTIFIED_SIZE_LITERAL);\n createEReference(quantifiedSizeLiteralEClass, QUANTIFIED_SIZE_LITERAL__NUMBER);\n createEAttribute(quantifiedSizeLiteralEClass, QUANTIFIED_SIZE_LITERAL__DIMENSION);\n\n qualifiedSizeLiteralEClass = createEClass(QUALIFIED_SIZE_LITERAL);\n createEAttribute(qualifiedSizeLiteralEClass, QUALIFIED_SIZE_LITERAL__BAREWORD);\n\n fontHeightLiteralEClass = createEClass(FONT_HEIGHT_LITERAL);\n createEReference(fontHeightLiteralEClass, FONT_HEIGHT_LITERAL__FONT_HEIGHT);\n createEReference(fontHeightLiteralEClass, FONT_HEIGHT_LITERAL__LINE_HEIGHT);\n createEAttribute(fontHeightLiteralEClass, FONT_HEIGHT_LITERAL__LINE_HEIGHT_DIMENSION);\n\n rgbColorEClass = createEClass(RGB_COLOR);\n createEAttribute(rgbColorEClass, RGB_COLOR__RGB);\n\n namedColorEClass = createEClass(NAMED_COLOR);\n createEAttribute(namedColorEClass, NAMED_COLOR__COLOR);\n\n componentRGBColorEClass = createEClass(COMPONENT_RGB_COLOR);\n createEReference(componentRGBColorEClass, COMPONENT_RGB_COLOR__RED);\n createEReference(componentRGBColorEClass, COMPONENT_RGB_COLOR__GREEN);\n createEReference(componentRGBColorEClass, COMPONENT_RGB_COLOR__BLUE);\n\n componentRGBAlphaColorEClass = createEClass(COMPONENT_RGB_ALPHA_COLOR);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__RED);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__GREEN);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__BLUE);\n createEReference(componentRGBAlphaColorEClass, COMPONENT_RGB_ALPHA_COLOR__OPACITY);\n\n componentHSLColorEClass = createEClass(COMPONENT_HSL_COLOR);\n createEReference(componentHSLColorEClass, COMPONENT_HSL_COLOR__HUE);\n createEReference(componentHSLColorEClass, COMPONENT_HSL_COLOR__SATURATION);\n createEReference(componentHSLColorEClass, COMPONENT_HSL_COLOR__LIGHTNESS);\n\n componentHSLAlphaColorEClass = createEClass(COMPONENT_HSL_ALPHA_COLOR);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__HUE);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__SATURATION);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__LIGHTNESS);\n createEReference(componentHSLAlphaColorEClass, COMPONENT_HSL_ALPHA_COLOR__OPACITY);\n\n alphaLiteralEClass = createEClass(ALPHA_LITERAL);\n createEReference(alphaLiteralEClass, ALPHA_LITERAL__OPACITY);\n\n // Create enums\n knownPropertiesEEnum = createEEnum(KNOWN_PROPERTIES);\n attributeSelectorMatchersEEnum = createEEnum(ATTRIBUTE_SELECTOR_MATCHERS);\n noArgsPseudosEEnum = createEEnum(NO_ARGS_PSEUDOS);\n pseudoElementsEEnum = createEEnum(PSEUDO_ELEMENTS);\n functionalPseudoClassesEEnum = createEEnum(FUNCTIONAL_PSEUDO_CLASSES);\n paritiesEEnum = createEEnum(PARITIES);\n dimensionsEEnum = createEEnum(DIMENSIONS);\n colorNamesEEnum = createEEnum(COLOR_NAMES);\n }", "@Override\n protected MetaData makeMetaData() {\n return new MetaData();\n }", "public interface MetaData extends MetaSearch {\n\t/** place holder for mandatory meta data */\n\tpublic static String sPLACE_HOLDER = \"(...)\";\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * get archive with which this MetaData instance is associated (null for\n\t * template meta data).\n\t * \n\t * @return open archive associated with these meta data.\n\t */\n\tpublic Archive getArchive();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set template meta data from which descriptions for matching database objects\n\t * are copied\n\t * \n\t * @param mdTemplate template meta data.\n\t * @throws IOException if an I/O error occurred.\n\t */\n\tpublic void setTemplate(MetaData mdTemplate) throws IOException;\n\n\t/*\n\t * ==================================================================== global\n\t * properties\n\t * ====================================================================\n\t */\n\t/**\n\t * get current version of SIARD format of XML. If an file of an older SIARD\n\t * format is opened, the older version is returned until a change in the meta\n\t * data is saved, at which point the meta data are saved in the current format.\n\t * \n\t * @return version of SIARD format of XML.\n\t */\n\tpublic String getVersion();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set name of the archived database (must not be null or empty!).\n\t * \n\t * @param sDbName name of the archived database.\n\t */\n\tpublic void setDbName(String sDbName);\n\n\t/**\n\t * get name of the archived database.\n\t * \n\t * @return name of the archived database.\n\t */\n\tpublic String getDbName();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set short free form description of the database content.\n\t * \n\t * @param sDescription short free form description of the database content.\n\t */\n\tpublic void setDescription(String sDescription);\n\n\t/**\n\t * get short free form description of the database content.\n\t * \n\t * @return short free form description of the database content.\n\t */\n\tpublic String getDescription();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set name of person responsible for archiving the database.\n\t * \n\t * @param sArchiver name of person responsible for archiving the database.\n\t */\n\tpublic void setArchiver(String sArchiver);\n\n\t/**\n\t * get name of person responsible for archiving the database.\n\t * \n\t * @return name of person responsible for archiving the database.\n\t */\n\tpublic String getArchiver();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set contact data (telephone number or email address) of archiver.\n\t * \n\t * @param sArchiverContact contact data (telephone number or email address) of\n\t * archiver.\n\t */\n\tpublic void setArchiverContact(String sArchiverContact);\n\n\t/**\n\t * get contact data (telephone number or email address) of archiver.\n\t * \n\t * @return contact data (telephone number or email address) of archiver.\n\t */\n\tpublic String getArchiverContact();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set name of data owner (section and institution responsible for data) of\n\t * database when it was archived.\n\t * \n\t * @param sDataOwner name of data owner.\n\t */\n\tpublic void setDataOwner(String sDataOwner);\n\n\t/**\n\t * get name of data owner (section and institution responsible for data) of\n\t * database when it was archived.\n\t * \n\t * @return name of data owner.\n\t */\n\tpublic String getDataOwner();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set time span during which data where entered into the database.\n\t * \n\t * @param sDataOriginTimespan time span during which data where entered into the\n\t * database.\n\t */\n\tpublic void setDataOriginTimespan(String sDataOriginTimespan);\n\n\t/**\n\t * get time span during which data where entered into the database.\n\t * \n\t * @return time span during which data where entered into the database.\n\t */\n\tpublic String getDataOriginTimespan();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set global folder for external LOB files. Can only be set if the field is not\n\t * null or the SIARD archive is open for modification of primary data and still\n\t * empty. It must not be set to null. It must start with \"..\", \"/\" or \"file:/\".\n\t * It must be terminated with \"/\" (because it denotes a folder). If the given\n\t * URI starts with \"file:/\", it refers to a remote absolute folder. If it starts\n\t * with \"/\" it refers to an absolute local folder. Otherwise it is a relative\n\t * URI. If the global lobFolder is set, it is to be resolved relative to it.\n\t * Otherwise it must start with \"..\" which refers to the folder containing the\n\t * SIARD file.\n\t * \n\t * @param uriLobFolder URI for global folder for external files.\n\t * @throws IOException if the value could not be set.\n\t */\n\tpublic void setLobFolder(URI uriLobFolder) throws IOException;\n\n\t/**\n\t * get global folder for external LOB files.\n\t * \n\t * @return root folder for external LOB files.\n\t */\n\tpublic URI getLobFolder();\n\n\t/**\n\t * absolute global folder for external LOB files or null, if no global LOB\n\t * folder is set.\n\t * \n\t * @return absolute global folder for external LOB files or null, if no global\n\t * LOB folder is set.\n\t */\n\tpublic URI getAbsoluteLobFolder();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set name and version of program that generated the metadata file. Can only be\n\t * set if the SIARD archive is open for modification of primary data.\n\t * \n\t * @param sProducerApplication name and version of program that generated the\n\t * metadata file.\n\t * @throws IOException if the value could not be set.\n\t */\n\tpublic void setProducerApplication(String sProducerApplication) throws IOException;\n\n\t/**\n\t * get name and version of program that generated the metadata file.\n\t * \n\t * @return name and version of program that generated the metadata file.\n\t */\n\tpublic String getProducerApplication();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * get date of creation of archive (automatically generated by SIARD).\n\t * \n\t * @return date of creation of archive (automatically generated by SIARD).\n\t */\n\tpublic Calendar getArchivalDate();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * get message digest codes over all primary data in folder \"content\".\n\t * \n\t * @return message digest codes over all primary data in folder \"content\".\n\t */\n\tpublic List<MessageDigestType> getMessageDigest();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set DNS name of client machine from which connection to the database was\n\t * established for archiving. Can only be set if the SIARD archive is open for\n\t * modification of primary data.\n\t * \n\t * @param sClientMachine DNS name of client machine from which connection to the\n\t * database was established for archiving.\n\t * @throws IOException if the value could not be set.\n\t */\n\tpublic void setClientMachine(String sClientMachine) throws IOException;\n\n\t/**\n\t * get DNS name of client machine from which connection to the database was\n\t * established for archiving.\n\t * \n\t * @return DNS name of client machine from which connection to the database was\n\t * established for archiving.\n\t */\n\tpublic String getClientMachine();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set name of database product and version from which database originates. Can\n\t * only be set if the SIARD archive is open for modification of primary data.\n\t * \n\t * @param sDatabaseProduct name of database product and version from which\n\t * database originates.\n\t * @throws IOException if the value could not be set.\n\t */\n\tpublic void setDatabaseProduct(String sDatabaseProduct) throws IOException;\n\n\t/**\n\t * get name of database product and version from which database originates.\n\t * \n\t * @return name of database product and version from which database originates.\n\t */\n\tpublic String getDatabaseProduct();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set connection string (JDBC URL) used for archiving. Can only be set if the\n\t * SIARD archive is open for modification of primary data.\n\t * \n\t * @param sConnection connection string (JDBC URL) used for archiving.\n\t * @throws IOException if the value could not be set.\n\t */\n\tpublic void setConnection(String sConnection) throws IOException;\n\n\t/**\n\t * get connection string (JDBC URL) used for archiving.\n\t * \n\t * @return connection string (JDBC URL) used for archiving.\n\t */\n\tpublic String getConnection();\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * set database user used for archiving Can only be set if the SIARD archive is\n\t * open for modification of primary data.\n\t * \n\t * @param sDatabaseUser database user used for archiving.\n\t * @throws IOException if the value could not be set.\n\t */\n\tpublic void setDatabaseUser(String sDatabaseUser) throws IOException;\n\n\t/**\n\t * get database user used for archiving.\n\t * \n\t * @return database user used for archiving.\n\t */\n\tpublic String getDatabaseUser();\n\n\t/*\n\t * ==================================================================== list\n\t * properties\n\t * ====================================================================\n\t */\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * get number of schema meta data entries.\n\t * \n\t * @return number of schema meta data entries.\n\t */\n\tpublic int getMetaSchemas();\n\n\t/**\n\t * get the schema meta data with the given index.\n\t * \n\t * @param iSchema index of schema meta data.\n\t * @return schema meta data.\n\t */\n\tpublic MetaSchema getMetaSchema(int iSchema);\n\n\t/**\n\t * get the schema meta data with the given name.\n\t * \n\t * @param sName name of schema meta data.\n\t * @return schema meta data.\n\t */\n\tpublic MetaSchema getMetaSchema(String sName);\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * get number of user meta data entries.\n\t * \n\t * @return number of user meta data entries.\n\t */\n\tpublic int getMetaUsers();\n\n\t/**\n\t * get the user meta data with the given index.\n\t * \n\t * @param iUser index of user meta data.\n\t * @return user meta data.\n\t */\n\tpublic MetaUser getMetaUser(int iUser);\n\n\t/**\n\t * get the user meta data with the given user name.\n\t * \n\t * @param sName user name.\n\t * @return user meta data.\n\t */\n\tpublic MetaUser getMetaUser(String sName);\n\n\t/**\n\t * add new user to meta data. A new user can only be created if the SIARD\n\t * archive is open for modification of primary data.\n\t * \n\t * @param sName user name of the new user meta data.\n\t * @return user meta data.\n\t * @throws IOException if new user could be created.\n\t */\n\tpublic MetaUser createMetaUser(String sName) throws IOException;\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * get number of role meta data entries.\n\t * \n\t * @return number of role meta data entries.\n\t */\n\tpublic int getMetaRoles();\n\n\t/**\n\t * get the role meta data with the given index.\n\t * \n\t * @param iRole index of role meta data.\n\t * @return role meta data.\n\t */\n\tpublic MetaRole getMetaRole(int iRole);\n\n\t/**\n\t * get the role meta data with the given role name.\n\t * \n\t * @param sName role name.\n\t * @return role meta data.\n\t */\n\tpublic MetaRole getMetaRole(String sName);\n\n\t/**\n\t * add new role meta data. A new role can only be created if the SIARD archive\n\t * is open for modification of primary data.\n\t * \n\t * @param sName role name of the new role meta data.\n\t * @param sAdmin name of administrator (user or role) of the new role.\n\t * @return role meta data.\n\t * @throws IOException if new user could be created.\n\t */\n\tpublic MetaRole createMetaRole(String sName, String sAdmin) throws IOException;\n\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * get number of privilege meta data entries.\n\t * \n\t * @return number of privilege meta data entries.\n\t */\n\tpublic int getMetaPrivileges();\n\n\t/**\n\t * get the privilege meta data with the given index.\n\t * \n\t * @param iPrivilege index of privilege meta data.\n\t * @return privilege meta data.\n\t */\n\tpublic MetaPrivilege getMetaPrivilege(int iPrivilege);\n\n\t/**\n\t * get the privilege meta data with the given content.\n\t * \n\t * @param sType type of privilege including ROLE privilege or ALL PRIVILEGES.\n\t * @param sObject object of privilege (or null for ROLE privilege).\n\t * @param sGrantor name of grantor of privilege (user or role).\n\t * @param sGrantee name od grantee of privilege (user or role).\n\t * @return privilege meta data.\n\t */\n\tpublic MetaPrivilege getMetaPrivilege(String sType, String sObject, String sGrantor, String sGrantee);\n\n\t/**\n\t * add new privilege meta data. A new privilege can only be created if the SIARD\n\t * archive is open for modification of primary data.\n\t * \n\t * @param sType type of privilege including ROLE privilege or ALL PRIVILEGES.\n\t * @param sObject privilege object (may be null for ROLE privilege)\n\t * @param sGrantor name of grantor (user or role).\n\t * @param sGrantee name of grantee (user or role).\n\t * @return privilge meta data.\n\t * @throws IOException if new user could be created.\n\t */\n\tpublic MetaPrivilege createMetaPrivilege(String sType, String sObject, String sGrantor, String sGrantee)\n\t\t\tthrows IOException;\n\n\t/*\n\t * ==================================================================== methods\n\t * ====================================================================\n\t */\n\t/*------------------------------------------------------------------*/\n\t/**\n\t * checks whether this is the meta data instance of a valid archive, i.e.\n\t * whether it contains at least one table containing at least one record of\n\t * primary data.\n\t * \n\t * @return true, if instance is valid.\n\t */\n\tpublic boolean isValid();\n\n}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n ledsCodeDSLEClass = createEClass(LEDS_CODE_DSL);\n createEReference(ledsCodeDSLEClass, LEDS_CODE_DSL__PROJECT);\n\n projectEClass = createEClass(PROJECT);\n createEAttribute(projectEClass, PROJECT__NAME);\n createEReference(projectEClass, PROJECT__INFRASTRUCTURE_BLOCK);\n createEReference(projectEClass, PROJECT__INTERFACE_BLOCK);\n createEReference(projectEClass, PROJECT__APPLICATION_BLOCK);\n createEReference(projectEClass, PROJECT__DOMAIN_BLOCK);\n\n interfaceBlockEClass = createEClass(INTERFACE_BLOCK);\n createEAttribute(interfaceBlockEClass, INTERFACE_BLOCK__NAME);\n createEReference(interfaceBlockEClass, INTERFACE_BLOCK__INTERFACE_APPLICATION);\n\n interfaceApplicationEClass = createEClass(INTERFACE_APPLICATION);\n createEAttribute(interfaceApplicationEClass, INTERFACE_APPLICATION__TYPE);\n createEAttribute(interfaceApplicationEClass, INTERFACE_APPLICATION__NAME);\n createEAttribute(interfaceApplicationEClass, INTERFACE_APPLICATION__NAME_APP);\n\n infrastructureBlockEClass = createEClass(INFRASTRUCTURE_BLOCK);\n createEAttribute(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__BASE_PACKAGE);\n createEAttribute(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__PROJECT_VERSION);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__LANGUAGE);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__FRAMEWORK);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__ORM);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__DATABASE);\n\n databaseEClass = createEClass(DATABASE);\n createEAttribute(databaseEClass, DATABASE__VERSION_VALUE);\n createEAttribute(databaseEClass, DATABASE__NAME_VALUE);\n createEAttribute(databaseEClass, DATABASE__USER_VALUE);\n createEAttribute(databaseEClass, DATABASE__PASS_VALUE);\n createEAttribute(databaseEClass, DATABASE__HOST_VALUE);\n createEAttribute(databaseEClass, DATABASE__ENV_VALUE);\n\n nameVersionEClass = createEClass(NAME_VERSION);\n createEAttribute(nameVersionEClass, NAME_VERSION__NAME_VALUE);\n createEAttribute(nameVersionEClass, NAME_VERSION__VERSION_VALUE);\n\n applicationBlockEClass = createEClass(APPLICATION_BLOCK);\n createEAttribute(applicationBlockEClass, APPLICATION_BLOCK__NAME);\n createEAttribute(applicationBlockEClass, APPLICATION_BLOCK__APPLICATION_DOMAIN);\n\n domainBlockEClass = createEClass(DOMAIN_BLOCK);\n createEAttribute(domainBlockEClass, DOMAIN_BLOCK__NAME);\n createEReference(domainBlockEClass, DOMAIN_BLOCK__MODULE);\n\n moduleBlockEClass = createEClass(MODULE_BLOCK);\n createEAttribute(moduleBlockEClass, MODULE_BLOCK__NAME);\n createEReference(moduleBlockEClass, MODULE_BLOCK__ENUM_BLOCK);\n createEReference(moduleBlockEClass, MODULE_BLOCK__ENTITY_BLOCK);\n createEReference(moduleBlockEClass, MODULE_BLOCK__SERVICE_BLOCK);\n\n serviceBlockEClass = createEClass(SERVICE_BLOCK);\n createEAttribute(serviceBlockEClass, SERVICE_BLOCK__NAME);\n createEReference(serviceBlockEClass, SERVICE_BLOCK__SERVICE_FIELDS);\n\n serviceMethodEClass = createEClass(SERVICE_METHOD);\n createEAttribute(serviceMethodEClass, SERVICE_METHOD__NAME);\n createEReference(serviceMethodEClass, SERVICE_METHOD__METHOD_ACESS);\n\n entityBlockEClass = createEClass(ENTITY_BLOCK);\n createEAttribute(entityBlockEClass, ENTITY_BLOCK__ACESS_MODIFIER);\n createEAttribute(entityBlockEClass, ENTITY_BLOCK__IS_ABSTRACT);\n createEAttribute(entityBlockEClass, ENTITY_BLOCK__NAME);\n createEReference(entityBlockEClass, ENTITY_BLOCK__CLASS_EXTENDS);\n createEReference(entityBlockEClass, ENTITY_BLOCK__ATTRIBUTES);\n createEReference(entityBlockEClass, ENTITY_BLOCK__REPOSITORY);\n\n attributeEClass = createEClass(ATTRIBUTE);\n createEAttribute(attributeEClass, ATTRIBUTE__ACESS_MODIFIER);\n createEAttribute(attributeEClass, ATTRIBUTE__TYPE);\n createEAttribute(attributeEClass, ATTRIBUTE__NAME);\n createEAttribute(attributeEClass, ATTRIBUTE__PK);\n createEAttribute(attributeEClass, ATTRIBUTE__UNIQUE);\n createEAttribute(attributeEClass, ATTRIBUTE__NULLABLE);\n createEAttribute(attributeEClass, ATTRIBUTE__MIN);\n createEAttribute(attributeEClass, ATTRIBUTE__MAX);\n\n repositoryEClass = createEClass(REPOSITORY);\n createEAttribute(repositoryEClass, REPOSITORY__NAME);\n createEReference(repositoryEClass, REPOSITORY__METHODS);\n\n repositoryFieldsEClass = createEClass(REPOSITORY_FIELDS);\n createEAttribute(repositoryFieldsEClass, REPOSITORY_FIELDS__NAME);\n createEReference(repositoryFieldsEClass, REPOSITORY_FIELDS__METHODS_PARAMETERS);\n createEAttribute(repositoryFieldsEClass, REPOSITORY_FIELDS__RETURN_TYPE);\n\n enumBlockEClass = createEClass(ENUM_BLOCK);\n createEAttribute(enumBlockEClass, ENUM_BLOCK__NAME);\n createEAttribute(enumBlockEClass, ENUM_BLOCK__VALUES);\n\n methodParameterEClass = createEClass(METHOD_PARAMETER);\n createEReference(methodParameterEClass, METHOD_PARAMETER__TYPE_AND_ATTR);\n\n typeAndAttributeEClass = createEClass(TYPE_AND_ATTRIBUTE);\n createEAttribute(typeAndAttributeEClass, TYPE_AND_ATTRIBUTE__TYPE);\n createEAttribute(typeAndAttributeEClass, TYPE_AND_ATTRIBUTE__NAME);\n\n extendBlockEClass = createEClass(EXTEND_BLOCK);\n createEReference(extendBlockEClass, EXTEND_BLOCK__VALUES);\n }", "public void buildPackageDoc(XMLNode node, Content contentTree) throws Exception {\n contentTree = packageWriter.getPackageHeader(Util.getPackageName(packageDoc));\n buildChildren(node, contentTree);\n packageWriter.addPackageFooter(contentTree);\n packageWriter.printDocument(contentTree);\n packageWriter.close();\n Util.copyDocFiles(configuration, packageDoc);\n }", "PackageDesc(OctaveStruct pkg) {\n\t this.name = pkg.get(OctaveString .class, \"name\" ).getString();\n\t this.version = pkg.get(OctaveString .class, \"version\").getString();\n\t this.date = pkg.get(OctaveString .class, \"date\" ).getString();\n\t this.author = pkg.get(OctaveString .class, \"author\" ).getString();\n\t this.dir = new File(pkg.get(OctaveString.class, \"dir\" ).getString());\n\t this.archprefix = new File(pkg.get(OctaveString.class, \"archprefix\").getString());\n\t this.isLoaded = pkg.get(OctaveBoolean.class, \"loaded\" ).get(1, 1);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated)\n\t\t\treturn;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tprojectEClass = createEClass(PROJECT);\n\t\tcreateEReference(projectEClass, PROJECT__PLUGINS);\n\t\tcreateEAttribute(projectEClass, PROJECT__NAME);\n\t\tcreateEReference(projectEClass, PROJECT__REPOSITORIES);\n\t\tcreateEReference(projectEClass, PROJECT__DEPENDENCIES);\n\t\tcreateEReference(projectEClass, PROJECT__VIEWS);\n\t\tcreateEReference(projectEClass, PROJECT__PROPERTIES);\n\n\t\tpluginEClass = createEClass(PLUGIN);\n\t\tcreateEReference(pluginEClass, PLUGIN__REPOSITORIES);\n\t\tcreateEReference(pluginEClass, PLUGIN__OUTPUT_PORTS);\n\t\tcreateEReference(pluginEClass, PLUGIN__DISPLAYS);\n\n\t\tportEClass = createEClass(PORT);\n\t\tcreateEAttribute(portEClass, PORT__NAME);\n\t\tcreateEAttribute(portEClass, PORT__EVENT_TYPES);\n\t\tcreateEAttribute(portEClass, PORT__ID);\n\n\t\tinputPortEClass = createEClass(INPUT_PORT);\n\t\tcreateEReference(inputPortEClass, INPUT_PORT__PARENT);\n\n\t\toutputPortEClass = createEClass(OUTPUT_PORT);\n\t\tcreateEReference(outputPortEClass, OUTPUT_PORT__SUBSCRIBERS);\n\t\tcreateEReference(outputPortEClass, OUTPUT_PORT__PARENT);\n\n\t\tpropertyEClass = createEClass(PROPERTY);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__NAME);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__VALUE);\n\n\t\tfilterEClass = createEClass(FILTER);\n\t\tcreateEReference(filterEClass, FILTER__INPUT_PORTS);\n\n\t\treaderEClass = createEClass(READER);\n\n\t\trepositoryEClass = createEClass(REPOSITORY);\n\n\t\tdependencyEClass = createEClass(DEPENDENCY);\n\t\tcreateEAttribute(dependencyEClass, DEPENDENCY__FILE_PATH);\n\n\t\trepositoryConnectorEClass = createEClass(REPOSITORY_CONNECTOR);\n\t\tcreateEAttribute(repositoryConnectorEClass, REPOSITORY_CONNECTOR__NAME);\n\t\tcreateEReference(repositoryConnectorEClass, REPOSITORY_CONNECTOR__REPOSITORY);\n\t\tcreateEAttribute(repositoryConnectorEClass, REPOSITORY_CONNECTOR__ID);\n\n\t\tdisplayEClass = createEClass(DISPLAY);\n\t\tcreateEAttribute(displayEClass, DISPLAY__NAME);\n\t\tcreateEReference(displayEClass, DISPLAY__PARENT);\n\t\tcreateEAttribute(displayEClass, DISPLAY__ID);\n\n\t\tviewEClass = createEClass(VIEW);\n\t\tcreateEAttribute(viewEClass, VIEW__NAME);\n\t\tcreateEAttribute(viewEClass, VIEW__DESCRIPTION);\n\t\tcreateEReference(viewEClass, VIEW__DISPLAY_CONNECTORS);\n\t\tcreateEAttribute(viewEClass, VIEW__ID);\n\n\t\tdisplayConnectorEClass = createEClass(DISPLAY_CONNECTOR);\n\t\tcreateEAttribute(displayConnectorEClass, DISPLAY_CONNECTOR__NAME);\n\t\tcreateEReference(displayConnectorEClass, DISPLAY_CONNECTOR__DISPLAY);\n\t\tcreateEAttribute(displayConnectorEClass, DISPLAY_CONNECTOR__ID);\n\n\t\tanalysisComponentEClass = createEClass(ANALYSIS_COMPONENT);\n\t\tcreateEAttribute(analysisComponentEClass, ANALYSIS_COMPONENT__NAME);\n\t\tcreateEAttribute(analysisComponentEClass, ANALYSIS_COMPONENT__CLASSNAME);\n\t\tcreateEReference(analysisComponentEClass, ANALYSIS_COMPONENT__PROPERTIES);\n\t\tcreateEAttribute(analysisComponentEClass, ANALYSIS_COMPONENT__ID);\n\t}", "DataPackage createDataPackage();", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\telementEClass = createEClass(ELEMENT);\n\t\tcreateEOperation(elementEClass, ELEMENT___GET_ONTOLOGY);\n\t\tcreateEOperation(elementEClass, ELEMENT___EXTRA_VALIDATE__DIAGNOSTICCHAIN_MAP);\n\n\t\tannotationEClass = createEClass(ANNOTATION);\n\t\tcreateEReference(annotationEClass, ANNOTATION__PROPERTY);\n\t\tcreateEReference(annotationEClass, ANNOTATION__LITERAL_VALUE);\n\t\tcreateEReference(annotationEClass, ANNOTATION__REFERENCE_VALUE);\n\t\tcreateEReference(annotationEClass, ANNOTATION__OWNING_ELEMENT);\n\t\tcreateEOperation(annotationEClass, ANNOTATION___GET_VALUE);\n\t\tcreateEOperation(annotationEClass, ANNOTATION___GET_ANNOTATED_ELEMENT);\n\n\t\tidentifiedElementEClass = createEClass(IDENTIFIED_ELEMENT);\n\t\tcreateEReference(identifiedElementEClass, IDENTIFIED_ELEMENT__OWNED_ANNOTATIONS);\n\t\tcreateEOperation(identifiedElementEClass, IDENTIFIED_ELEMENT___GET_IRI);\n\n\t\timportEClass = createEClass(IMPORT);\n\t\tcreateEAttribute(importEClass, IMPORT__KIND);\n\t\tcreateEAttribute(importEClass, IMPORT__NAMESPACE);\n\t\tcreateEAttribute(importEClass, IMPORT__PREFIX);\n\t\tcreateEReference(importEClass, IMPORT__OWNING_ONTOLOGY);\n\t\tcreateEOperation(importEClass, IMPORT___GET_IRI);\n\t\tcreateEOperation(importEClass, IMPORT___GET_SEPARATOR);\n\n\t\tinstanceEClass = createEClass(INSTANCE);\n\t\tcreateEReference(instanceEClass, INSTANCE__OWNED_PROPERTY_VALUES);\n\n\t\taxiomEClass = createEClass(AXIOM);\n\t\tcreateEOperation(axiomEClass, AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tassertionEClass = createEClass(ASSERTION);\n\t\tcreateEOperation(assertionEClass, ASSERTION___GET_SUBJECT);\n\t\tcreateEOperation(assertionEClass, ASSERTION___GET_OBJECT);\n\n\t\tpredicateEClass = createEClass(PREDICATE);\n\t\tcreateEReference(predicateEClass, PREDICATE__ANTECEDENT_RULE);\n\t\tcreateEReference(predicateEClass, PREDICATE__CONSEQUENT_RULE);\n\n\t\targumentEClass = createEClass(ARGUMENT);\n\t\tcreateEAttribute(argumentEClass, ARGUMENT__VARIABLE);\n\t\tcreateEReference(argumentEClass, ARGUMENT__LITERAL);\n\t\tcreateEReference(argumentEClass, ARGUMENT__INSTANCE);\n\n\t\tliteralEClass = createEClass(LITERAL);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_VALUE);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_STRING_VALUE);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_LEXICAL_VALUE);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_TYPE_IRI);\n\n\t\tontologyEClass = createEClass(ONTOLOGY);\n\t\tcreateEAttribute(ontologyEClass, ONTOLOGY__NAMESPACE);\n\t\tcreateEAttribute(ontologyEClass, ONTOLOGY__PREFIX);\n\t\tcreateEReference(ontologyEClass, ONTOLOGY__OWNED_IMPORTS);\n\t\tcreateEOperation(ontologyEClass, ONTOLOGY___GET_IRI);\n\t\tcreateEOperation(ontologyEClass, ONTOLOGY___GET_SEPARATOR);\n\n\t\tmemberEClass = createEClass(MEMBER);\n\t\tcreateEAttribute(memberEClass, MEMBER__NAME);\n\t\tcreateEOperation(memberEClass, MEMBER___GET_REF);\n\t\tcreateEOperation(memberEClass, MEMBER___IS_REF);\n\t\tcreateEOperation(memberEClass, MEMBER___RESOLVE);\n\t\tcreateEOperation(memberEClass, MEMBER___GET_IRI);\n\t\tcreateEOperation(memberEClass, MEMBER___GET_ABBREVIATED_IRI);\n\n\t\tvocabularyBoxEClass = createEClass(VOCABULARY_BOX);\n\n\t\tdescriptionBoxEClass = createEClass(DESCRIPTION_BOX);\n\n\t\tvocabularyEClass = createEClass(VOCABULARY);\n\t\tcreateEReference(vocabularyEClass, VOCABULARY__OWNED_STATEMENTS);\n\n\t\tvocabularyBundleEClass = createEClass(VOCABULARY_BUNDLE);\n\n\t\tdescriptionEClass = createEClass(DESCRIPTION);\n\t\tcreateEReference(descriptionEClass, DESCRIPTION__OWNED_STATEMENTS);\n\n\t\tdescriptionBundleEClass = createEClass(DESCRIPTION_BUNDLE);\n\n\t\tstatementEClass = createEClass(STATEMENT);\n\n\t\tvocabularyMemberEClass = createEClass(VOCABULARY_MEMBER);\n\n\t\tdescriptionMemberEClass = createEClass(DESCRIPTION_MEMBER);\n\n\t\tvocabularyStatementEClass = createEClass(VOCABULARY_STATEMENT);\n\t\tcreateEReference(vocabularyStatementEClass, VOCABULARY_STATEMENT__OWNING_VOCABULARY);\n\n\t\tdescriptionStatementEClass = createEClass(DESCRIPTION_STATEMENT);\n\t\tcreateEReference(descriptionStatementEClass, DESCRIPTION_STATEMENT__OWNING_DESCRIPTION);\n\n\t\ttermEClass = createEClass(TERM);\n\n\t\truleEClass = createEClass(RULE);\n\t\tcreateEReference(ruleEClass, RULE__REF);\n\t\tcreateEReference(ruleEClass, RULE__ANTECEDENT);\n\t\tcreateEReference(ruleEClass, RULE__CONSEQUENT);\n\n\t\tbuiltInEClass = createEClass(BUILT_IN);\n\t\tcreateEReference(builtInEClass, BUILT_IN__REF);\n\n\t\tspecializableTermEClass = createEClass(SPECIALIZABLE_TERM);\n\t\tcreateEReference(specializableTermEClass, SPECIALIZABLE_TERM__OWNED_SPECIALIZATIONS);\n\n\t\tpropertyEClass = createEClass(PROPERTY);\n\n\t\ttypeEClass = createEClass(TYPE);\n\n\t\trelationBaseEClass = createEClass(RELATION_BASE);\n\t\tcreateEReference(relationBaseEClass, RELATION_BASE__SOURCES);\n\t\tcreateEReference(relationBaseEClass, RELATION_BASE__TARGETS);\n\t\tcreateEReference(relationBaseEClass, RELATION_BASE__REVERSE_RELATION);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__FUNCTIONAL);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__INVERSE_FUNCTIONAL);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__SYMMETRIC);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__ASYMMETRIC);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__REFLEXIVE);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__IRREFLEXIVE);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__TRANSITIVE);\n\n\t\tspecializablePropertyEClass = createEClass(SPECIALIZABLE_PROPERTY);\n\t\tcreateEReference(specializablePropertyEClass, SPECIALIZABLE_PROPERTY__OWNED_EQUIVALENCES);\n\n\t\tclassifierEClass = createEClass(CLASSIFIER);\n\t\tcreateEReference(classifierEClass, CLASSIFIER__OWNED_EQUIVALENCES);\n\t\tcreateEReference(classifierEClass, CLASSIFIER__OWNED_PROPERTY_RESTRICTIONS);\n\n\t\tscalarEClass = createEClass(SCALAR);\n\t\tcreateEReference(scalarEClass, SCALAR__REF);\n\t\tcreateEReference(scalarEClass, SCALAR__OWNED_ENUMERATION);\n\t\tcreateEReference(scalarEClass, SCALAR__OWNED_EQUIVALENCES);\n\n\t\tentityEClass = createEClass(ENTITY);\n\t\tcreateEReference(entityEClass, ENTITY__OWNED_KEYS);\n\n\t\tstructureEClass = createEClass(STRUCTURE);\n\t\tcreateEReference(structureEClass, STRUCTURE__REF);\n\n\t\taspectEClass = createEClass(ASPECT);\n\t\tcreateEReference(aspectEClass, ASPECT__REF);\n\n\t\tconceptEClass = createEClass(CONCEPT);\n\t\tcreateEReference(conceptEClass, CONCEPT__REF);\n\t\tcreateEReference(conceptEClass, CONCEPT__OWNED_ENUMERATION);\n\n\t\trelationEntityEClass = createEClass(RELATION_ENTITY);\n\t\tcreateEReference(relationEntityEClass, RELATION_ENTITY__REF);\n\t\tcreateEReference(relationEntityEClass, RELATION_ENTITY__FORWARD_RELATION);\n\n\t\tannotationPropertyEClass = createEClass(ANNOTATION_PROPERTY);\n\t\tcreateEReference(annotationPropertyEClass, ANNOTATION_PROPERTY__REF);\n\n\t\tsemanticPropertyEClass = createEClass(SEMANTIC_PROPERTY);\n\t\tcreateEOperation(semanticPropertyEClass, SEMANTIC_PROPERTY___IS_FUNCTIONAL);\n\t\tcreateEOperation(semanticPropertyEClass, SEMANTIC_PROPERTY___GET_DOMAIN_LIST);\n\t\tcreateEOperation(semanticPropertyEClass, SEMANTIC_PROPERTY___GET_RANGE_LIST);\n\n\t\tscalarPropertyEClass = createEClass(SCALAR_PROPERTY);\n\t\tcreateEReference(scalarPropertyEClass, SCALAR_PROPERTY__REF);\n\t\tcreateEAttribute(scalarPropertyEClass, SCALAR_PROPERTY__FUNCTIONAL);\n\t\tcreateEReference(scalarPropertyEClass, SCALAR_PROPERTY__DOMAINS);\n\t\tcreateEReference(scalarPropertyEClass, SCALAR_PROPERTY__RANGES);\n\t\tcreateEOperation(scalarPropertyEClass, SCALAR_PROPERTY___GET_DOMAIN_LIST);\n\t\tcreateEOperation(scalarPropertyEClass, SCALAR_PROPERTY___GET_RANGE_LIST);\n\n\t\tstructuredPropertyEClass = createEClass(STRUCTURED_PROPERTY);\n\t\tcreateEReference(structuredPropertyEClass, STRUCTURED_PROPERTY__REF);\n\t\tcreateEAttribute(structuredPropertyEClass, STRUCTURED_PROPERTY__FUNCTIONAL);\n\t\tcreateEReference(structuredPropertyEClass, STRUCTURED_PROPERTY__DOMAINS);\n\t\tcreateEReference(structuredPropertyEClass, STRUCTURED_PROPERTY__RANGES);\n\t\tcreateEOperation(structuredPropertyEClass, STRUCTURED_PROPERTY___GET_DOMAIN_LIST);\n\t\tcreateEOperation(structuredPropertyEClass, STRUCTURED_PROPERTY___GET_RANGE_LIST);\n\n\t\trelationEClass = createEClass(RELATION);\n\t\tcreateEOperation(relationEClass, RELATION___IS_INVERSE_FUNCTIONAL);\n\t\tcreateEOperation(relationEClass, RELATION___IS_SYMMETRIC);\n\t\tcreateEOperation(relationEClass, RELATION___IS_ASYMMETRIC);\n\t\tcreateEOperation(relationEClass, RELATION___IS_REFLEXIVE);\n\t\tcreateEOperation(relationEClass, RELATION___IS_IRREFLEXIVE);\n\t\tcreateEOperation(relationEClass, RELATION___IS_TRANSITIVE);\n\t\tcreateEOperation(relationEClass, RELATION___GET_DOMAINS);\n\t\tcreateEOperation(relationEClass, RELATION___GET_RANGES);\n\t\tcreateEOperation(relationEClass, RELATION___GET_INVERSE);\n\t\tcreateEOperation(relationEClass, RELATION___GET_DOMAIN_LIST);\n\t\tcreateEOperation(relationEClass, RELATION___GET_RANGE_LIST);\n\n\t\tforwardRelationEClass = createEClass(FORWARD_RELATION);\n\t\tcreateEReference(forwardRelationEClass, FORWARD_RELATION__RELATION_ENTITY);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_REF);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_FUNCTIONAL);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_INVERSE_FUNCTIONAL);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_SYMMETRIC);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_ASYMMETRIC);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_REFLEXIVE);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_IRREFLEXIVE);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_TRANSITIVE);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_DOMAINS);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_RANGES);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_INVERSE);\n\n\t\treverseRelationEClass = createEClass(REVERSE_RELATION);\n\t\tcreateEReference(reverseRelationEClass, REVERSE_RELATION__RELATION_BASE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_REF);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_FUNCTIONAL);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_INVERSE_FUNCTIONAL);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_SYMMETRIC);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_ASYMMETRIC);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_REFLEXIVE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_IRREFLEXIVE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_TRANSITIVE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_DOMAINS);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_RANGES);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_INVERSE);\n\n\t\tunreifiedRelationEClass = createEClass(UNREIFIED_RELATION);\n\t\tcreateEReference(unreifiedRelationEClass, UNREIFIED_RELATION__REF);\n\t\tcreateEOperation(unreifiedRelationEClass, UNREIFIED_RELATION___GET_DOMAINS);\n\t\tcreateEOperation(unreifiedRelationEClass, UNREIFIED_RELATION___GET_RANGES);\n\t\tcreateEOperation(unreifiedRelationEClass, UNREIFIED_RELATION___GET_INVERSE);\n\n\t\tnamedInstanceEClass = createEClass(NAMED_INSTANCE);\n\t\tcreateEReference(namedInstanceEClass, NAMED_INSTANCE__OWNED_TYPES);\n\n\t\tconceptInstanceEClass = createEClass(CONCEPT_INSTANCE);\n\t\tcreateEReference(conceptInstanceEClass, CONCEPT_INSTANCE__REF);\n\n\t\trelationInstanceEClass = createEClass(RELATION_INSTANCE);\n\t\tcreateEReference(relationInstanceEClass, RELATION_INSTANCE__REF);\n\t\tcreateEReference(relationInstanceEClass, RELATION_INSTANCE__SOURCES);\n\t\tcreateEReference(relationInstanceEClass, RELATION_INSTANCE__TARGETS);\n\n\t\tstructureInstanceEClass = createEClass(STRUCTURE_INSTANCE);\n\t\tcreateEReference(structureInstanceEClass, STRUCTURE_INSTANCE__TYPE);\n\t\tcreateEReference(structureInstanceEClass, STRUCTURE_INSTANCE__OWNING_AXIOM);\n\t\tcreateEReference(structureInstanceEClass, STRUCTURE_INSTANCE__OWNING_ASSERTION);\n\n\t\tkeyAxiomEClass = createEClass(KEY_AXIOM);\n\t\tcreateEReference(keyAxiomEClass, KEY_AXIOM__PROPERTIES);\n\t\tcreateEReference(keyAxiomEClass, KEY_AXIOM__OWNING_ENTITY);\n\t\tcreateEOperation(keyAxiomEClass, KEY_AXIOM___GET_KEYED_ENTITY);\n\t\tcreateEOperation(keyAxiomEClass, KEY_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tspecializationAxiomEClass = createEClass(SPECIALIZATION_AXIOM);\n\t\tcreateEReference(specializationAxiomEClass, SPECIALIZATION_AXIOM__SUPER_TERM);\n\t\tcreateEReference(specializationAxiomEClass, SPECIALIZATION_AXIOM__OWNING_TERM);\n\t\tcreateEOperation(specializationAxiomEClass, SPECIALIZATION_AXIOM___GET_SUB_TERM);\n\t\tcreateEOperation(specializationAxiomEClass, SPECIALIZATION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tinstanceEnumerationAxiomEClass = createEClass(INSTANCE_ENUMERATION_AXIOM);\n\t\tcreateEReference(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM__INSTANCES);\n\t\tcreateEReference(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM__OWNING_CONCEPT);\n\t\tcreateEOperation(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM___GET_ENUMERATED_CONCEPT);\n\t\tcreateEOperation(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tpropertyRestrictionAxiomEClass = createEClass(PROPERTY_RESTRICTION_AXIOM);\n\t\tcreateEReference(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM__PROPERTY);\n\t\tcreateEReference(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM__OWNING_CLASSIFIER);\n\t\tcreateEReference(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM__OWNING_AXIOM);\n\t\tcreateEOperation(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM___GET_RESTRICTING_DOMAIN);\n\t\tcreateEOperation(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tliteralEnumerationAxiomEClass = createEClass(LITERAL_ENUMERATION_AXIOM);\n\t\tcreateEReference(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM__LITERALS);\n\t\tcreateEReference(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM__OWNING_SCALAR);\n\t\tcreateEOperation(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM___GET_ENUMERATED_SCALAR);\n\t\tcreateEOperation(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tclassifierEquivalenceAxiomEClass = createEClass(CLASSIFIER_EQUIVALENCE_AXIOM);\n\t\tcreateEReference(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM__SUPER_CLASSIFIERS);\n\t\tcreateEReference(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM__OWNED_PROPERTY_RESTRICTIONS);\n\t\tcreateEReference(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM__OWNING_CLASSIFIER);\n\t\tcreateEOperation(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM___GET_SUB_CLASSIFIER);\n\t\tcreateEOperation(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tscalarEquivalenceAxiomEClass = createEClass(SCALAR_EQUIVALENCE_AXIOM);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__SUPER_SCALAR);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__OWNING_SCALAR);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__LENGTH);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MIN_LENGTH);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MAX_LENGTH);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__PATTERN);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__LANGUAGE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MIN_INCLUSIVE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MIN_EXCLUSIVE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MAX_INCLUSIVE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MAX_EXCLUSIVE);\n\t\tcreateEOperation(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM___GET_SUB_SCALAR);\n\t\tcreateEOperation(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tpropertyEquivalenceAxiomEClass = createEClass(PROPERTY_EQUIVALENCE_AXIOM);\n\t\tcreateEReference(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM__SUPER_PROPERTY);\n\t\tcreateEReference(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM__OWNING_PROPERTY);\n\t\tcreateEOperation(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM___GET_SUB_PROPERTY);\n\t\tcreateEOperation(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tpropertyRangeRestrictionAxiomEClass = createEClass(PROPERTY_RANGE_RESTRICTION_AXIOM);\n\t\tcreateEAttribute(propertyRangeRestrictionAxiomEClass, PROPERTY_RANGE_RESTRICTION_AXIOM__KIND);\n\t\tcreateEReference(propertyRangeRestrictionAxiomEClass, PROPERTY_RANGE_RESTRICTION_AXIOM__RANGE);\n\n\t\tpropertyCardinalityRestrictionAxiomEClass = createEClass(PROPERTY_CARDINALITY_RESTRICTION_AXIOM);\n\t\tcreateEAttribute(propertyCardinalityRestrictionAxiomEClass, PROPERTY_CARDINALITY_RESTRICTION_AXIOM__KIND);\n\t\tcreateEAttribute(propertyCardinalityRestrictionAxiomEClass, PROPERTY_CARDINALITY_RESTRICTION_AXIOM__CARDINALITY);\n\t\tcreateEReference(propertyCardinalityRestrictionAxiomEClass, PROPERTY_CARDINALITY_RESTRICTION_AXIOM__RANGE);\n\n\t\tpropertyValueRestrictionAxiomEClass = createEClass(PROPERTY_VALUE_RESTRICTION_AXIOM);\n\t\tcreateEReference(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM__LITERAL_VALUE);\n\t\tcreateEReference(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM__STRUCTURE_INSTANCE_VALUE);\n\t\tcreateEReference(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM__NAMED_INSTANCE_VALUE);\n\t\tcreateEOperation(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM___GET_VALUE);\n\n\t\tpropertySelfRestrictionAxiomEClass = createEClass(PROPERTY_SELF_RESTRICTION_AXIOM);\n\n\t\ttypeAssertionEClass = createEClass(TYPE_ASSERTION);\n\t\tcreateEReference(typeAssertionEClass, TYPE_ASSERTION__TYPE);\n\t\tcreateEReference(typeAssertionEClass, TYPE_ASSERTION__OWNING_INSTANCE);\n\t\tcreateEOperation(typeAssertionEClass, TYPE_ASSERTION___GET_SUBJECT);\n\t\tcreateEOperation(typeAssertionEClass, TYPE_ASSERTION___GET_OBJECT);\n\n\t\tpropertyValueAssertionEClass = createEClass(PROPERTY_VALUE_ASSERTION);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__PROPERTY);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__LITERAL_VALUE);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__STRUCTURE_INSTANCE_VALUE);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__NAMED_INSTANCE_VALUE);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__OWNING_INSTANCE);\n\t\tcreateEOperation(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION___GET_VALUE);\n\t\tcreateEOperation(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION___GET_SUBJECT);\n\t\tcreateEOperation(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION___GET_OBJECT);\n\n\t\tunaryPredicateEClass = createEClass(UNARY_PREDICATE);\n\t\tcreateEReference(unaryPredicateEClass, UNARY_PREDICATE__ARGUMENT);\n\n\t\tbinaryPredicateEClass = createEClass(BINARY_PREDICATE);\n\t\tcreateEReference(binaryPredicateEClass, BINARY_PREDICATE__ARGUMENT1);\n\t\tcreateEReference(binaryPredicateEClass, BINARY_PREDICATE__ARGUMENT2);\n\n\t\tbuiltInPredicateEClass = createEClass(BUILT_IN_PREDICATE);\n\t\tcreateEReference(builtInPredicateEClass, BUILT_IN_PREDICATE__BUILT_IN);\n\t\tcreateEReference(builtInPredicateEClass, BUILT_IN_PREDICATE__ARGUMENTS);\n\n\t\ttypePredicateEClass = createEClass(TYPE_PREDICATE);\n\t\tcreateEReference(typePredicateEClass, TYPE_PREDICATE__TYPE);\n\n\t\trelationEntityPredicateEClass = createEClass(RELATION_ENTITY_PREDICATE);\n\t\tcreateEReference(relationEntityPredicateEClass, RELATION_ENTITY_PREDICATE__TYPE);\n\n\t\tpropertyPredicateEClass = createEClass(PROPERTY_PREDICATE);\n\t\tcreateEReference(propertyPredicateEClass, PROPERTY_PREDICATE__PROPERTY);\n\n\t\tsameAsPredicateEClass = createEClass(SAME_AS_PREDICATE);\n\n\t\tdifferentFromPredicateEClass = createEClass(DIFFERENT_FROM_PREDICATE);\n\n\t\tquotedLiteralEClass = createEClass(QUOTED_LITERAL);\n\t\tcreateEAttribute(quotedLiteralEClass, QUOTED_LITERAL__VALUE);\n\t\tcreateEAttribute(quotedLiteralEClass, QUOTED_LITERAL__LANG_TAG);\n\t\tcreateEReference(quotedLiteralEClass, QUOTED_LITERAL__TYPE);\n\t\tcreateEOperation(quotedLiteralEClass, QUOTED_LITERAL___GET_LEXICAL_VALUE);\n\t\tcreateEOperation(quotedLiteralEClass, QUOTED_LITERAL___GET_TYPE_IRI);\n\n\t\tintegerLiteralEClass = createEClass(INTEGER_LITERAL);\n\t\tcreateEAttribute(integerLiteralEClass, INTEGER_LITERAL__VALUE);\n\t\tcreateEOperation(integerLiteralEClass, INTEGER_LITERAL___GET_TYPE_IRI);\n\n\t\tdecimalLiteralEClass = createEClass(DECIMAL_LITERAL);\n\t\tcreateEAttribute(decimalLiteralEClass, DECIMAL_LITERAL__VALUE);\n\t\tcreateEOperation(decimalLiteralEClass, DECIMAL_LITERAL___GET_TYPE_IRI);\n\n\t\tdoubleLiteralEClass = createEClass(DOUBLE_LITERAL);\n\t\tcreateEAttribute(doubleLiteralEClass, DOUBLE_LITERAL__VALUE);\n\t\tcreateEOperation(doubleLiteralEClass, DOUBLE_LITERAL___GET_TYPE_IRI);\n\n\t\tbooleanLiteralEClass = createEClass(BOOLEAN_LITERAL);\n\t\tcreateEAttribute(booleanLiteralEClass, BOOLEAN_LITERAL__VALUE);\n\t\tcreateEOperation(booleanLiteralEClass, BOOLEAN_LITERAL___IS_VALUE);\n\t\tcreateEOperation(booleanLiteralEClass, BOOLEAN_LITERAL___GET_TYPE_IRI);\n\n\t\t// Create enums\n\t\tseparatorKindEEnum = createEEnum(SEPARATOR_KIND);\n\t\trangeRestrictionKindEEnum = createEEnum(RANGE_RESTRICTION_KIND);\n\t\tcardinalityRestrictionKindEEnum = createEEnum(CARDINALITY_RESTRICTION_KIND);\n\t\timportKindEEnum = createEEnum(IMPORT_KIND);\n\n\t\t// Create data types\n\t\tunsignedIntEDataType = createEDataType(UNSIGNED_INT);\n\t\tunsignedIntegerEDataType = createEDataType(UNSIGNED_INTEGER);\n\t\tdecimalEDataType = createEDataType(DECIMAL);\n\t\tidEDataType = createEDataType(ID);\n\t\tnamespaceEDataType = createEDataType(NAMESPACE);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tspringProjectEClass = createEClass(SPRING_PROJECT);\r\n\t\tcreateEAttribute(springProjectEClass, SPRING_PROJECT__BASE_PACKAGE);\r\n\t\tcreateEAttribute(springProjectEClass, SPRING_PROJECT__NAME);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__DB_SOURCE);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__ENTITIES);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__CONTROLLERS);\r\n\r\n\t\trestControllerEClass = createEClass(REST_CONTROLLER);\r\n\t\tcreateEAttribute(restControllerEClass, REST_CONTROLLER__NAME);\r\n\t\tcreateEAttribute(restControllerEClass, REST_CONTROLLER__PATH);\r\n\t\tcreateEReference(restControllerEClass, REST_CONTROLLER__USED_ENTITIES);\r\n\t\tcreateEReference(restControllerEClass, REST_CONTROLLER__MAPPINGS);\r\n\r\n\t\trestMappingEClass = createEClass(REST_MAPPING);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__PATH);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__NAME);\r\n\t\tcreateEReference(restMappingEClass, REST_MAPPING__USED_ENTITY);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__BODY);\r\n\r\n\t\tgetMappingEClass = createEClass(GET_MAPPING);\r\n\r\n\t\tpostMappingEClass = createEClass(POST_MAPPING);\r\n\t\tcreateEReference(postMappingEClass, POST_MAPPING__PARAMETERS);\r\n\r\n\t\tentityEClass = createEClass(ENTITY);\r\n\t\tcreateEReference(entityEClass, ENTITY__SUPER_CLASS);\r\n\t\tcreateEAttribute(entityEClass, ENTITY__NAME);\r\n\t\tcreateEAttribute(entityEClass, ENTITY__GENERATE_REPOSITORY);\r\n\t\tcreateEReference(entityEClass, ENTITY__FIELDS);\r\n\t\tcreateEReference(entityEClass, ENTITY__MAPPING);\r\n\r\n\t\tmappingEClass = createEClass(MAPPING);\r\n\t\tcreateEAttribute(mappingEClass, MAPPING__NAME);\r\n\t\tcreateEReference(mappingEClass, MAPPING__ENTITY);\r\n\t\tcreateEAttribute(mappingEClass, MAPPING__IS_LIST);\r\n\t\tcreateEReference(mappingEClass, MAPPING__MAPPING_TYPE);\r\n\r\n\t\tmappingTypeEClass = createEClass(MAPPING_TYPE);\r\n\t\tcreateEAttribute(mappingTypeEClass, MAPPING_TYPE__CASCADE);\r\n\t\tcreateEReference(mappingTypeEClass, MAPPING_TYPE__MAPPED_BY);\r\n\r\n\t\toneToManyEClass = createEClass(ONE_TO_MANY);\r\n\r\n\t\tmanyToOneEClass = createEClass(MANY_TO_ONE);\r\n\r\n\t\tmanyToManyEClass = createEClass(MANY_TO_MANY);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__JOIN_TABLE_NAME);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__JOIN_COLUMNS);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__INVERSE_JOIN_COLUMNS);\r\n\r\n\t\toneToOneEClass = createEClass(ONE_TO_ONE);\r\n\r\n\t\tfieldEClass = createEClass(FIELD);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__IS_ID);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__NAME);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__DATATYPE);\r\n\r\n\t\tdbSourceEClass = createEClass(DB_SOURCE);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__ENABLE_CONSOLE);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__WEB_ALLOW_OOTHERS);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__CONSOLE_PATH);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__URL);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__USER);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__PASSWORD);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__DRIVE_CLASS_NAME);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__SERVER_PORT);\r\n\r\n\t\t// Create enums\r\n\t\tcascadeEEnum = createEEnum(CASCADE);\r\n\t}", "public org.thdl.lex.component.Meta getMeta();", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttreeEClass = createEClass(TREE);\n\t\tcreateEReference(treeEClass, TREE__CHILDREN);\n\n\t\tnodeEClass = createEClass(NODE);\n\t\tcreateEReference(nodeEClass, NODE__CHILDREN);\n\t\tcreateEAttribute(nodeEClass, NODE__NAME);\n\t}", "public void buildPackageDescription(XMLNode node, Content packageContentTree) {\n if (configuration.nocomment) {\n return;\n }\n packageWriter.addPackageDescription(packageContentTree);\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void parseMetadata(String resp, String downloadUUID) throws DocumentException{\n\t\tSAXReader reader = new SAXReader();\n\t\treader.setStripWhitespaceText(true);\n\t\treader.setMergeAdjacentText(true);\n\t\tDocument document = reader.read(new StringReader(resp));\n\t\t\n\t\tMap<String, String> namespaceURIs=null;\n\t\ttry {\n\t\t\tnamespaceURIs = Namespaces.getNamespaces(resp);\n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t \n\t\tlog.info(\"Parsing Metadata\");\n\t\t\n\t\tServiceElements serviceElements = new ServiceElements();\n\t\tList<DatasetElements> dataSetList=new ArrayList<DatasetElements>();\n\n\t\tserviceElements.setTitle(getElement(ServiceXPaths.getXPath(ServiceXPaths.TITEL,namespaceURIs), namespaceURIs, document));\n\t\tserviceElements.setDesc(getElement(ServiceXPaths.getXPath(ServiceXPaths.DESC,namespaceURIs), namespaceURIs, document));\n\t\tserviceElements.setDateStamp(getElement(ServiceXPaths.getXPath(ServiceXPaths.DATE_STAMP,namespaceURIs), namespaceURIs, document));\n\t\tserviceElements.setRights(getElement(ServiceXPaths.getXPath(ServiceXPaths.RIGHTS,namespaceURIs), namespaceURIs, document));\n\t\tserviceElements.setLanguage(getElement(ServiceXPaths.getXPath(ServiceXPaths.LANGUAGE,namespaceURIs), namespaceURIs, document));\n\t\tserviceElements.setAuthorName(getElement(ServiceXPaths.getXPath(ServiceXPaths.AUTHOR_NAME,namespaceURIs), namespaceURIs, document));\n\t\tserviceElements.setAuthorMail(getElement(ServiceXPaths.getXPath(ServiceXPaths.AUTHOR_MAIL,namespaceURIs), namespaceURIs, document));\n\t\tserviceElements.setOrgName(getElement(ServiceXPaths.getXPath(ServiceXPaths.ORG_NAME,namespaceURIs), namespaceURIs, document));\n\t\tserviceElements.setBrowseGraphic(getElement(ServiceXPaths.getXPath(ServiceXPaths.BROWSE_GRAPHIC,namespaceURIs), namespaceURIs, document));\n\n\t\t XPath xPathKW = DocumentHelper.createXPath(ServiceXPaths.getXPath(ServiceXPaths.KEYWORDS,namespaceURIs));\n\t\t xPathKW.setNamespaceURIs(namespaceURIs);\n\t\t List<Node> asResultsNodesKW = xPathKW.selectNodes(document.getRootElement());\n\t\t List<String> keywords =new ArrayList<String>();\n\t\t for(int j=0;j<asResultsNodesKW.size();j++){\n\t\t\t keywords.add(asResultsNodesKW.get(j).getStringValue().replace(\"&\", \"&amp;\"));\n\t\t }\n\t\t serviceElements.setKeywords(keywords);\t\n\t\t \n\t\t XPath xPath2 = DocumentHelper.createXPath(ServiceXPaths.getXPath(ServiceXPaths.OPERATES_ON,namespaceURIs));\n\t\t xPath2.setNamespaceURIs(namespaceURIs);\n\n\t\t List<Node> asResultsNodes2 = xPath2.selectNodes(document.getRootElement());\t\t\n\n\t\t for(int i=0;i<asResultsNodes2.size();i++){\n\t\t\t \n\t\t\t DatasetElements dataSet=new DatasetElements();\n\t\t\t \t\t \n\t\t\t String respDS=CSWUtil.executeRequest(cswURL, asResultsNodes2.get(i).getText(), proxyHost, proxyPort);\n\t\t\t Document document2 = reader.read(new StringReader(respDS));\n\t\t\t namespaceURIs = Namespaces.getNamespaces(respDS);\n\t\t\t dataSet.setCodeUUID(getElement(DatasetXPaths.getXPath(DatasetXPaths.UUID,namespaceURIs), namespaceURIs, document2));\n\t\t\t dataSet.setId(getElement(DatasetXPaths.getXPath(DatasetXPaths.FILE_ID,namespaceURIs), namespaceURIs, document2));\n\t\t\t dataSet.setTitle(getElement(DatasetXPaths.getXPath(DatasetXPaths.TITLE,namespaceURIs), namespaceURIs, document2));\n\t\t\t dataSet.setDesc(getElement(DatasetXPaths.getXPath(DatasetXPaths.DESC,namespaceURIs), namespaceURIs, document2));\n\t\t\t dataSet.setDateStamp(getElement(DatasetXPaths.getXPath(DatasetXPaths.DATE_STAMP,namespaceURIs), namespaceURIs, document2));\n\t\t\t dataSet.setRights(getElement(DatasetXPaths.getXPath(DatasetXPaths.RIGHTS,namespaceURIs), namespaceURIs, document2));\n\t\t\t dataSet.setAuthorName(getElement(DatasetXPaths.getXPath(DatasetXPaths.AUTHOR_NAME,namespaceURIs), namespaceURIs, document2));\n\t\t\t dataSet.setAuthorMail(getElement(DatasetXPaths.getXPath(DatasetXPaths.AUTHOR_MAIL,namespaceURIs), namespaceURIs, document2));\n\t\t\t dataSet.setOrganisationName(getElement(DatasetXPaths.getXPath(DatasetXPaths.ORG_NAME,namespaceURIs), namespaceURIs, document2)); \n\t\t\t dataSet.setBBOXwest(getElement(DatasetXPaths.getXPath(DatasetXPaths.BBOX_WEST,namespaceURIs), namespaceURIs, document2));\n\t\t\t dataSet.setBBOXeast(getElement(DatasetXPaths.getXPath(DatasetXPaths.BBOX_EAST,namespaceURIs), namespaceURIs, document2));\n\t\t\t dataSet.setBBOXsouth(getElement(DatasetXPaths.getXPath(DatasetXPaths.BBOX_SOUTH,namespaceURIs), namespaceURIs, document2));\n\t\t\t dataSet.setBBOXnorth(getElement(DatasetXPaths.getXPath(DatasetXPaths.BBOX_NORTH,namespaceURIs), namespaceURIs, document2));\n\t\t\t dataSet.setType(getElement(DatasetXPaths.getXPath(DatasetXPaths.TYPE,namespaceURIs), namespaceURIs, document2));\n\t\t\t dataSet.setLanguage(getElement(DatasetXPaths.getXPath(DatasetXPaths.LANGUAGE,namespaceURIs), namespaceURIs, document2));\n\t\t\t dataSet.setBrowseGraphic(getElement(DatasetXPaths.getXPath(DatasetXPaths.BROWSE_GRAPHIC,namespaceURIs), namespaceURIs, document2));\n\t\t\t \n\t\t\t List<String> dsURLList=new ArrayList<String>();\n\t\t\t List<String> dsDescriptionList=new ArrayList<String>();\n\t\t\t List<String> dsCodeListValueList=new ArrayList<String>();\n\t\t\t List<String> dsNameValueList=new ArrayList<String>();\n\t\t\t List<String> dsAppProfileValueList=new ArrayList<String>();\n\t\t\t \n\t\t\t \n\t\t\t XPath xPath8 = DocumentHelper.createXPath(DatasetXPaths.getXPath(DatasetXPaths.ONLINE_RESSOURCE,namespaceURIs));\n\t\t\t xPath8.setNamespaceURIs(namespaceURIs);\n\t\t\t List<Node> asResultsNodes8 = xPath8.selectNodes(document2.getRootElement());\n\t\t\t for(int j=0;j<asResultsNodes8.size();j++){\n\t\t\t\t XPath xPath9 = DocumentHelper.createXPath(DatasetXPaths.getXPath(DatasetXPaths.ONLINE_RESSOURCE_DESC_SUB,namespaceURIs));\n\t\t\t\t XPath xPath10 = DocumentHelper.createXPath(DatasetXPaths.getXPath(DatasetXPaths.ONLINE_RESSOURCE_URL_SUB,namespaceURIs));\n\t\t\t\t XPath xPath11 = DocumentHelper.createXPath(DatasetXPaths.getXPath(DatasetXPaths.ONLINE_RESSOURCE_CODE_SUB,namespaceURIs));\n\t\t\t\t //XPath xPath12 = DocumentHelper.createXPath(DatasetXLinks.getXPath(DatasetXPaths.ONLINE_RESSOURCE_PROTOCOL_SUB,namespaceURIs));\n\t\t\t\t XPath xPath13 = DocumentHelper.createXPath(DatasetXPaths.getXPath(DatasetXPaths.ONLINE_RESSOURCE_PROFILE_SUB,namespaceURIs));\n\t\t\t\t XPath xPath14 = DocumentHelper.createXPath(DatasetXPaths.getXPath(DatasetXPaths.ONLINE_RESSOURCE_NAME_SUB,namespaceURIs));\t\t\t\t\t\t \n\t\t\t\t \n\t\t\t\t xPath9.setNamespaceURIs(namespaceURIs);\n\t\t\t\t xPath10.setNamespaceURIs(namespaceURIs);\n\t\t\t\t xPath11.setNamespaceURIs(namespaceURIs);\n\t\t\t\t //xPath12.setNamespaceURIs(namespaceURIs);\n\t\t\t\t xPath13.setNamespaceURIs(namespaceURIs);\n\t\t\t\t xPath14.setNamespaceURIs(namespaceURIs);\n\t\t\t\t \n\t\t\t\t List<Node> asResultsNodes9 = xPath9.selectNodes(asResultsNodes8.get(j));\n\t\t\t\t List<Node> asResultsNodes10 = xPath10.selectNodes(asResultsNodes8.get(j));\n\t\t\t\t List<Node> asResultsNodes11 = xPath11.selectNodes(asResultsNodes8.get(j));\n\t\t\t\t //List<Node> asResultsNodes12 = xPath12.selectNodes(asResultsNodes8.get(j));\n\t\t\t\t List<Node> asResultsNodes13 = xPath13.selectNodes(asResultsNodes8.get(j));\n\t\t\t\t List<Node> asResultsNodes14 = xPath14.selectNodes(asResultsNodes8.get(j));\n\t\t\t\t \n\t\t\t\t String desc = \"\";\n\t\t\t\t String url =\"\";\n\t\t\t\t String code = \"\";\n\t\t\t\t //String protocol = \"\";\n\t\t\t\t String appProfile = \"\";\n\t\t\t\t String name = \"\";\n\t\t\t\t \n\t\t\t\t if(asResultsNodes9.size() > 0){\n\t\t\t\t\t desc =asResultsNodes9.get(0).getStringValue();\n\t\t\t\t }\n\t\t\t\t if(asResultsNodes10.size() > 0){\n\t\t\t\t\t url = asResultsNodes10.get(0).getStringValue();\n\t\t\t\t }\n\t\t\t\t if(asResultsNodes11.size() > 0){\n\t\t\t\t\t code =asResultsNodes11.get(0).getStringValue();\n\t\t\t\t }\n//\t\t\t\t\t if(asResultsNodes12.size() > 0l){\n//\t\t\t\t\t\t protocol =asResultsNodes12.get(0).getStringValue();\n//\t\t\t\t\t }\n\t\t\t\t if(asResultsNodes13.size() > 0){\n\t\t\t\t\t appProfile =asResultsNodes13.get(0).getStringValue();\n\t\t\t\t }\n\t\t\t\t if(asResultsNodes14.size() > 0){\n\t\t\t\t\t name =asResultsNodes14.get(0).getStringValue();\n\t\t\t\t }\n\t\t\t\t \t\t\t\t\t\t\t\t \n\t\t\t\t dsURLList.add(url.replaceAll(\"&\", \"&amp;\"));\n\t\t\t\t dsDescriptionList.add(desc.replaceAll(\"&\", \"&amp;\"));\n\t\t\t\t dsCodeListValueList.add(code.replaceAll(\"&\", \"&amp;\"));\n\t\t\t\t dsNameValueList.add(name.replaceAll(\"&\", \"&amp;\"));\n\t\t\t\t dsAppProfileValueList.add(appProfile.replaceAll(\"&\", \"&amp;\"));\n\n\t\t\t }\n\t\t\t dataSet.setURLList(dsURLList);\n\t\t\t dataSet.setDescriptionList(dsDescriptionList);\n\t\t\t dataSet.setCodeListValueList(dsCodeListValueList);\n\t\t\t dataSet.setNameList(dsNameValueList);\n\t\t\t dataSet.setAppProfileList(dsAppProfileValueList);\n\t\t\t \n\t\t\t dataSetList.add(dataSet);\n\t\t }\n\t\t \n\t\t writeFeed(serviceElements, dataSetList, downloadUUID);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated)\n\t\t\treturn;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tuserEClass = createEClass(USER);\n\t\tcreateEAttribute(userEClass, USER__NAME);\n\t\tcreateEReference(userEClass, USER__UR);\n\n\t\troleEClass = createEClass(ROLE);\n\t\tcreateEAttribute(roleEClass, ROLE__NAME);\n\t\tcreateEReference(roleEClass, ROLE__RD);\n\t\tcreateEReference(roleEClass, ROLE__SENIORS);\n\t\tcreateEReference(roleEClass, ROLE__JUNIORS);\n\t\tcreateEReference(roleEClass, ROLE__RU);\n\n\t\tpermissionEClass = createEClass(PERMISSION);\n\t\tcreateEAttribute(permissionEClass, PERMISSION__NAME);\n\t\tcreateEReference(permissionEClass, PERMISSION__PD);\n\n\t\tpolicyEClass = createEClass(POLICY);\n\t\tcreateEReference(policyEClass, POLICY__USERS);\n\t\tcreateEReference(policyEClass, POLICY__ROLES);\n\t\tcreateEReference(policyEClass, POLICY__PERMISSIONS);\n\t\tcreateEAttribute(policyEClass, POLICY__NAME);\n\t\tcreateEReference(policyEClass, POLICY__DEMARCATIONS);\n\n\t\tdemarcationEClass = createEClass(DEMARCATION);\n\t\tcreateEAttribute(demarcationEClass, DEMARCATION__NAME);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__DP);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__SUBS);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__SUPS);\n\t\tcreateEReference(demarcationEClass, DEMARCATION__DR);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\r\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\r\n\r\n\t\tcomDiagEClass = createEClass(COM_DIAG);\r\n\t\tcreateEReference(comDiagEClass, COM_DIAG__ELEMENTS);\r\n\t\tcreateEAttribute(comDiagEClass, COM_DIAG__LEVEL);\r\n\r\n\t\tcomDiagElementEClass = createEClass(COM_DIAG_ELEMENT);\r\n\t\tcreateEReference(comDiagElementEClass, COM_DIAG_ELEMENT__GRAPH);\r\n\r\n\t\tlifelineEClass = createEClass(LIFELINE);\r\n\t\tcreateEAttribute(lifelineEClass, LIFELINE__NUMBER);\r\n\r\n\t\tmessageEClass = createEClass(MESSAGE);\r\n\t\tcreateEAttribute(messageEClass, MESSAGE__OCCURENCE);\r\n\t\tcreateEReference(messageEClass, MESSAGE__SOURCE);\r\n\t\tcreateEReference(messageEClass, MESSAGE__TARGET);\r\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tgemmaEClass = createEClass(GEMMA);\r\n\t\tcreateEReference(gemmaEClass, GEMMA__MACRO_OMS);\r\n\t\tcreateEReference(gemmaEClass, GEMMA__TRANSICIONES);\r\n\t\tcreateEReference(gemmaEClass, GEMMA__VARIABLES_GEMMA);\r\n\r\n\t\tmacroOmEClass = createEClass(MACRO_OM);\r\n\t\tcreateEAttribute(macroOmEClass, MACRO_OM__NAME);\r\n\t\tcreateEAttribute(macroOmEClass, MACRO_OM__TIPO);\r\n\t\tcreateEReference(macroOmEClass, MACRO_OM__OMS);\r\n\r\n\t\tomEClass = createEClass(OM);\r\n\t\tcreateEAttribute(omEClass, OM__NAME);\r\n\t\tcreateEAttribute(omEClass, OM__TIPO);\r\n\t\tcreateEAttribute(omEClass, OM__ES_OM_RAIZ);\r\n\t\tcreateEReference(omEClass, OM__VARIABLES_OM);\r\n\t\tcreateEAttribute(omEClass, OM__ES_VISIBLE);\r\n\r\n\t\ttrasicionEntreOmOmEClass = createEClass(TRASICION_ENTRE_OM_OM);\r\n\t\tcreateEReference(trasicionEntreOmOmEClass, TRASICION_ENTRE_OM_OM__ORIGEN);\r\n\t\tcreateEReference(trasicionEntreOmOmEClass, TRASICION_ENTRE_OM_OM__DESTINO);\r\n\r\n\t\ttransicionEntreMacroOmOmEClass = createEClass(TRANSICION_ENTRE_MACRO_OM_OM);\r\n\t\tcreateEReference(transicionEntreMacroOmOmEClass, TRANSICION_ENTRE_MACRO_OM_OM__ORIGEN);\r\n\t\tcreateEReference(transicionEntreMacroOmOmEClass, TRANSICION_ENTRE_MACRO_OM_OM__DESTINO);\r\n\r\n\t\texpresionBinariaEClass = createEClass(EXPRESION_BINARIA);\r\n\t\tcreateEReference(expresionBinariaEClass, EXPRESION_BINARIA__EXPRESION_IZQUIERDA);\r\n\t\tcreateEReference(expresionBinariaEClass, EXPRESION_BINARIA__EXPRESION_DERECHA);\r\n\t\tcreateEAttribute(expresionBinariaEClass, EXPRESION_BINARIA__OPERADOR);\r\n\r\n\t\telementoExpresionEClass = createEClass(ELEMENTO_EXPRESION);\r\n\r\n\t\tvariableOmEClass = createEClass(VARIABLE_OM);\r\n\t\tcreateEAttribute(variableOmEClass, VARIABLE_OM__NAME);\r\n\r\n\t\ttransicionEClass = createEClass(TRANSICION);\r\n\t\tcreateEAttribute(transicionEClass, TRANSICION__NAME);\r\n\t\tcreateEReference(transicionEClass, TRANSICION__ELEMENTO_EXPRESION);\r\n\r\n\t\tvariableGemmaEClass = createEClass(VARIABLE_GEMMA);\r\n\t\tcreateEAttribute(variableGemmaEClass, VARIABLE_GEMMA__NAME);\r\n\r\n\t\trefVariableGemmaEClass = createEClass(REF_VARIABLE_GEMMA);\r\n\t\tcreateEReference(refVariableGemmaEClass, REF_VARIABLE_GEMMA__VARIABLE_GEMMA);\r\n\t\tcreateEAttribute(refVariableGemmaEClass, REF_VARIABLE_GEMMA__NIVEL_DE_ESCRITURA);\r\n\r\n\t\texpresionNotEClass = createEClass(EXPRESION_NOT);\r\n\t\tcreateEReference(expresionNotEClass, EXPRESION_NOT__ELEMENTO_EXPRESION);\r\n\r\n\t\trefVariableOmEClass = createEClass(REF_VARIABLE_OM);\r\n\t\tcreateEReference(refVariableOmEClass, REF_VARIABLE_OM__VARIABLE_OM);\r\n\r\n\t\texpresionConjuntaEClass = createEClass(EXPRESION_CONJUNTA);\r\n\t\tcreateEReference(expresionConjuntaEClass, EXPRESION_CONJUNTA__ELEMENTO_EXPRESION);\r\n\r\n\t\t// Create enums\r\n\t\ttipoOmEEnum = createEEnum(TIPO_OM);\r\n\t\ttipoMacroOmEEnum = createEEnum(TIPO_MACRO_OM);\r\n\t\ttipoOperadorEEnum = createEEnum(TIPO_OPERADOR);\r\n\t\tnivelDeEscrituraEEnum = createEEnum(NIVEL_DE_ESCRITURA);\r\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\trunnableEClass = createEClass(RUNNABLE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__COMPONENT_INSTANCE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__PORT_INSTANCE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__PERIOD);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__LABEL_ACCESSES);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__DEADLINE);\r\n\r\n\t\tlabelEClass = createEClass(LABEL);\r\n\t\tcreateEReference(labelEClass, LABEL__COMPONENT_INSTANCE);\r\n\t\tcreateEReference(labelEClass, LABEL__COMPONENT_STATECHART);\r\n\t\tcreateEAttribute(labelEClass, LABEL__IS_CONSTANT);\r\n\r\n\t\tlabelAccessEClass = createEClass(LABEL_ACCESS);\r\n\t\tcreateEAttribute(labelAccessEClass, LABEL_ACCESS__ACCESS_KIND);\r\n\t\tcreateEReference(labelAccessEClass, LABEL_ACCESS__ACCESS_LABEL);\r\n\t\tcreateEReference(labelAccessEClass, LABEL_ACCESS__ACCESSING_RUNNABLE);\r\n\r\n\t\t// Create enums\r\n\t\tlabelAccessKindEEnum = createEEnum(LABEL_ACCESS_KIND);\r\n\t}", "public void createPackageContents() {\n if(isCreated) {\n return;\n }\n isCreated = true;\n\n // Create classes and their features\n namedElementEClass = createEClass(NAMED_ELEMENT);\n createEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\n modularizationModelEClass = createEClass(MODULARIZATION_MODEL);\n createEReference(modularizationModelEClass, MODULARIZATION_MODEL__MODULES);\n createEReference(modularizationModelEClass, MODULARIZATION_MODEL__CLASSES);\n\n moduleEClass = createEClass(MODULE);\n createEReference(moduleEClass, MODULE__CLASSES);\n\n classEClass = createEClass(CLASS);\n createEReference(classEClass, CLASS__MODULE);\n createEReference(classEClass, CLASS__DEPENDS_ON);\n createEReference(classEClass, CLASS__DEPENDED_ON_BY);\n }", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "DocumentationFactory getDocumentationFactory();", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tfticBaseEClass = createEClass(FTIC_BASE);\n\n\t\titemEClass = createEClass(ITEM);\n\n\t\thypertextEClass = createEClass(HYPERTEXT);\n\t\tcreateEReference(hypertextEClass, HYPERTEXT__CONTENT);\n\n\t\ttextElementEClass = createEClass(TEXT_ELEMENT);\n\t\tcreateEAttribute(textElementEClass, TEXT_ELEMENT__VISIBLE_CONTENT);\n\n\t\tlinkEClass = createEClass(LINK);\n\t\tcreateEReference(linkEClass, LINK__TARGET);\n\n\t\ttermEClass = createEClass(TERM);\n\n\t\tfactorTableEClass = createEClass(FACTOR_TABLE);\n\t\tcreateEAttribute(factorTableEClass, FACTOR_TABLE__TYPE);\n\t\tcreateEReference(factorTableEClass, FACTOR_TABLE__ENTRIES);\n\n\t\tftEntryEClass = createEClass(FT_ENTRY);\n\t\tcreateEAttribute(ftEntryEClass, FT_ENTRY__NUMBERING);\n\t\tcreateEAttribute(ftEntryEClass, FT_ENTRY__NAME);\n\t\tcreateEReference(ftEntryEClass, FT_ENTRY__CHILDREN);\n\n\t\tfactorCategoryEClass = createEClass(FACTOR_CATEGORY);\n\n\t\tfactorEClass = createEClass(FACTOR);\n\t\tcreateEReference(factorEClass, FACTOR__DESCRIPTION);\n\t\tcreateEReference(factorEClass, FACTOR__FLEXIBILITY);\n\t\tcreateEReference(factorEClass, FACTOR__CHANGEABILITY);\n\t\tcreateEReference(factorEClass, FACTOR__INFLUENCE);\n\t\tcreateEAttribute(factorEClass, FACTOR__PRIORITY);\n\n\t\tissueCardEClass = createEClass(ISSUE_CARD);\n\t\tcreateEAttribute(issueCardEClass, ISSUE_CARD__NAME);\n\t\tcreateEReference(issueCardEClass, ISSUE_CARD__DESCRIPTION);\n\t\tcreateEReference(issueCardEClass, ISSUE_CARD__SOLUTION);\n\t\tcreateEReference(issueCardEClass, ISSUE_CARD__STRATEGIES);\n\t\tcreateEReference(issueCardEClass, ISSUE_CARD__INFLUENCING_FACTORS);\n\t\tcreateEReference(issueCardEClass, ISSUE_CARD__RELATED_ISSUES);\n\n\t\tstrategyEClass = createEClass(STRATEGY);\n\t\tcreateEAttribute(strategyEClass, STRATEGY__NAME);\n\t\tcreateEReference(strategyEClass, STRATEGY__DESCRIPTION);\n\n\t\tinfluencingFactorEClass = createEClass(INFLUENCING_FACTOR);\n\t\tcreateEReference(influencingFactorEClass, INFLUENCING_FACTOR__DESCRIPTION);\n\t\tcreateEReference(influencingFactorEClass, INFLUENCING_FACTOR__FACTOR);\n\n\t\trelatedIssueEClass = createEClass(RELATED_ISSUE);\n\t\tcreateEReference(relatedIssueEClass, RELATED_ISSUE__ISSUE);\n\t\tcreateEReference(relatedIssueEClass, RELATED_ISSUE__DESCRIPTION);\n\n\t\tfticPackageEClass = createEClass(FTIC_PACKAGE);\n\t\tcreateEReference(fticPackageEClass, FTIC_PACKAGE__TABLES);\n\t\tcreateEReference(fticPackageEClass, FTIC_PACKAGE__ISSUE_CARDS);\n\t\tcreateEAttribute(fticPackageEClass, FTIC_PACKAGE__NAME);\n\n\t\t// Create enums\n\t\tcategoryTypeEEnum = createEEnum(CATEGORY_TYPE);\n\t}", "public Map<String, AttributeSet> getMetadata(Package pkg);", "public String[] getMetaKeywords(PackageDoc packageDoc) {\n if( configuration.keywords ) {\n String pkgName = utils.getPackageName(packageDoc);\n return new String[] { pkgName + \" \" + \"package\" };\n } else {\n return new String[] {};\n }\n }", "public void createPackageContents() {\r\n if (isCreated) return;\r\n isCreated = true;\r\n\r\n // Create classes and their features\r\n kShapeLayoutEClass = createEClass(KSHAPE_LAYOUT);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__XPOS);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__YPOS);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__WIDTH);\r\n createEAttribute(kShapeLayoutEClass, KSHAPE_LAYOUT__HEIGHT);\r\n createEReference(kShapeLayoutEClass, KSHAPE_LAYOUT__INSETS);\r\n\r\n kEdgeLayoutEClass = createEClass(KEDGE_LAYOUT);\r\n createEReference(kEdgeLayoutEClass, KEDGE_LAYOUT__BEND_POINTS);\r\n createEReference(kEdgeLayoutEClass, KEDGE_LAYOUT__SOURCE_POINT);\r\n createEReference(kEdgeLayoutEClass, KEDGE_LAYOUT__TARGET_POINT);\r\n\r\n kLayoutDataEClass = createEClass(KLAYOUT_DATA);\r\n\r\n kPointEClass = createEClass(KPOINT);\r\n createEAttribute(kPointEClass, KPOINT__X);\r\n createEAttribute(kPointEClass, KPOINT__Y);\r\n\r\n kInsetsEClass = createEClass(KINSETS);\r\n createEAttribute(kInsetsEClass, KINSETS__TOP);\r\n createEAttribute(kInsetsEClass, KINSETS__BOTTOM);\r\n createEAttribute(kInsetsEClass, KINSETS__LEFT);\r\n createEAttribute(kInsetsEClass, KINSETS__RIGHT);\r\n\r\n kIdentifierEClass = createEClass(KIDENTIFIER);\r\n createEAttribute(kIdentifierEClass, KIDENTIFIER__ID);\r\n\r\n kVectorEClass = createEClass(KVECTOR);\r\n createEAttribute(kVectorEClass, KVECTOR__X);\r\n createEAttribute(kVectorEClass, KVECTOR__Y);\r\n\r\n kVectorChainEClass = createEClass(KVECTOR_CHAIN);\r\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tinvoiceEClass = createEClass(INVOICE);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_ID);\n\t\tcreateEReference(invoiceEClass, INVOICE__BILLING_ACCOUNT);\n\t\tcreateEReference(invoiceEClass, INVOICE__CONTACT_MECH);\n\t\tcreateEReference(invoiceEClass, INVOICE__CURRENCY_UOM);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__DUE_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_ATTRIBUTES);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_ITEMS);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__INVOICE_MESSAGE);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_NOTES);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_STATUSES);\n\t\tcreateEReference(invoiceEClass, INVOICE__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__PAID_DATE);\n\t\tcreateEReference(invoiceEClass, INVOICE__PARTY);\n\t\tcreateEReference(invoiceEClass, INVOICE__PARTY_ID_FROM);\n\t\tcreateEReference(invoiceEClass, INVOICE__RECURRENCE_INFO);\n\t\tcreateEAttribute(invoiceEClass, INVOICE__REFERENCE_NUMBER);\n\t\tcreateEReference(invoiceEClass, INVOICE__ROLE_TYPE);\n\t\tcreateEReference(invoiceEClass, INVOICE__STATUS);\n\n\t\tinvoiceAttributeEClass = createEClass(INVOICE_ATTRIBUTE);\n\t\tcreateEReference(invoiceAttributeEClass, INVOICE_ATTRIBUTE__INVOICE);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceAttributeEClass, INVOICE_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceContactMechEClass = createEClass(INVOICE_CONTACT_MECH);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__INVOICE);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__CONTACT_MECH);\n\t\tcreateEReference(invoiceContactMechEClass, INVOICE_CONTACT_MECH__CONTACT_MECH_PURPOSE_TYPE);\n\n\t\tinvoiceContentEClass = createEClass(INVOICE_CONTENT);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__INVOICE);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__CONTENT);\n\t\tcreateEReference(invoiceContentEClass, INVOICE_CONTENT__INVOICE_CONTENT_TYPE);\n\t\tcreateEAttribute(invoiceContentEClass, INVOICE_CONTENT__FROM_DATE);\n\t\tcreateEAttribute(invoiceContentEClass, INVOICE_CONTENT__THRU_DATE);\n\n\t\tinvoiceContentTypeEClass = createEClass(INVOICE_CONTENT_TYPE);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__INVOICE_CONTENT_TYPE_ID);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceContentTypeEClass, INVOICE_CONTENT_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemEClass = createEClass(INVOICE_ITEM);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVOICE);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__AMOUNT);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__DESCRIPTION);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVENTORY_ITEM);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__INVOICE_ITEM_TYPE);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__OVERRIDE_GL_ACCOUNT);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__OVERRIDE_ORG_PARTY);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__PARENT_INVOICE_ID);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__PARENT_INVOICE_ITEM_SEQ_ID);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__PRODUCT);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__PRODUCT_FEATURE);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__QUANTITY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__SALES_OPPORTUNITY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTH_GEO);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTH_PARTY);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__TAX_AUTHORITY_RATE_SEQ);\n\t\tcreateEAttribute(invoiceItemEClass, INVOICE_ITEM__TAXABLE_FLAG);\n\t\tcreateEReference(invoiceItemEClass, INVOICE_ITEM__UOM);\n\n\t\tinvoiceItemAssocEClass = createEClass(INVOICE_ITEM_ASSOC);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_ASSOC_TYPE);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__FROM_DATE);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ID_FROM);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_SEQ_ID_FROM);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__INVOICE_ITEM_SEQ_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__AMOUNT);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__PARTY_ID_FROM);\n\t\tcreateEReference(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__PARTY_ID_TO);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__QUANTITY);\n\t\tcreateEAttribute(invoiceItemAssocEClass, INVOICE_ITEM_ASSOC__THRU_DATE);\n\n\t\tinvoiceItemAssocTypeEClass = createEClass(INVOICE_ITEM_ASSOC_TYPE);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__INVOICE_ITEM_ASSOC_TYPE_ID);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceItemAssocTypeEClass, INVOICE_ITEM_ASSOC_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemAttributeEClass = createEClass(INVOICE_ITEM_ATTRIBUTE);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__INVOICE_ID);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemAttributeEClass, INVOICE_ITEM_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceItemTypeEClass = createEClass(INVOICE_ITEM_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_ID);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__DEFAULT_GL_ACCOUNT);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_ATTRS);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__INVOICE_ITEM_TYPE_GL_ACCOUNTS);\n\t\tcreateEReference(invoiceItemTypeEClass, INVOICE_ITEM_TYPE__PARENT_TYPE);\n\n\t\tinvoiceItemTypeAttrEClass = createEClass(INVOICE_ITEM_TYPE_ATTR);\n\t\tcreateEReference(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__INVOICE_ITEM_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__ATTR_NAME);\n\t\tcreateEAttribute(invoiceItemTypeAttrEClass, INVOICE_ITEM_TYPE_ATTR__DESCRIPTION);\n\n\t\tinvoiceItemTypeGlAccountEClass = createEClass(INVOICE_ITEM_TYPE_GL_ACCOUNT);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__INVOICE_ITEM_TYPE);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__ORGANIZATION_PARTY);\n\t\tcreateEReference(invoiceItemTypeGlAccountEClass, INVOICE_ITEM_TYPE_GL_ACCOUNT__GL_ACCOUNT);\n\n\t\tinvoiceItemTypeMapEClass = createEClass(INVOICE_ITEM_TYPE_MAP);\n\t\tcreateEReference(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_ITEM_MAP_KEY);\n\t\tcreateEReference(invoiceItemTypeMapEClass, INVOICE_ITEM_TYPE_MAP__INVOICE_ITEM_TYPE);\n\n\t\tinvoiceNoteEClass = createEClass(INVOICE_NOTE);\n\t\tcreateEReference(invoiceNoteEClass, INVOICE_NOTE__INVOICE);\n\n\t\tinvoiceRoleEClass = createEClass(INVOICE_ROLE);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__INVOICE);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__PARTY);\n\t\tcreateEReference(invoiceRoleEClass, INVOICE_ROLE__ROLE_TYPE);\n\t\tcreateEAttribute(invoiceRoleEClass, INVOICE_ROLE__DATETIME_PERFORMED);\n\t\tcreateEAttribute(invoiceRoleEClass, INVOICE_ROLE__PERCENTAGE);\n\n\t\tinvoiceStatusEClass = createEClass(INVOICE_STATUS);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__STATUS);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__INVOICE);\n\t\tcreateEAttribute(invoiceStatusEClass, INVOICE_STATUS__STATUS_DATE);\n\t\tcreateEReference(invoiceStatusEClass, INVOICE_STATUS__CHANGE_BY_USER_LOGIN);\n\n\t\tinvoiceTermEClass = createEClass(INVOICE_TERM);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__INVOICE_TERM_ID);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__DESCRIPTION);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__INVOICE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__INVOICE_ITEM_SEQ_ID);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__INVOICE_TERM_ATTRIBUTES);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TERM_DAYS);\n\t\tcreateEReference(invoiceTermEClass, INVOICE_TERM__TERM_TYPE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TERM_VALUE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__TEXT_VALUE);\n\t\tcreateEAttribute(invoiceTermEClass, INVOICE_TERM__UOM_ID);\n\n\t\tinvoiceTermAttributeEClass = createEClass(INVOICE_TERM_ATTRIBUTE);\n\t\tcreateEReference(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__INVOICE_TERM);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_NAME);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_DESCRIPTION);\n\t\tcreateEAttribute(invoiceTermAttributeEClass, INVOICE_TERM_ATTRIBUTE__ATTR_VALUE);\n\n\t\tinvoiceTypeEClass = createEClass(INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__INVOICE_TYPE_ID);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(invoiceTypeEClass, INVOICE_TYPE__HAS_TABLE);\n\t\tcreateEReference(invoiceTypeEClass, INVOICE_TYPE__INVOICE_TYPE_ATTRS);\n\t\tcreateEReference(invoiceTypeEClass, INVOICE_TYPE__PARENT_TYPE);\n\n\t\tinvoiceTypeAttrEClass = createEClass(INVOICE_TYPE_ATTR);\n\t\tcreateEReference(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__INVOICE_TYPE);\n\t\tcreateEAttribute(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__ATTR_NAME);\n\t\tcreateEAttribute(invoiceTypeAttrEClass, INVOICE_TYPE_ATTR__DESCRIPTION);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tcharacteristicComponentEClass = createEClass(CHARACTERISTIC_COMPONENT);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__NAME);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__MODULE);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__PREFIX);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__CONTAINER);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__ACTIONS);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__ATTRIBUTES);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__PROPERTIES);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__USED_BACI_TYPES);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__USED_DEV_IOS);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__COMPONENT_INSTANCES);\n\n\t\tactionEClass = createEClass(ACTION);\n\t\tcreateEAttribute(actionEClass, ACTION__NAME);\n\t\tcreateEAttribute(actionEClass, ACTION__TYPE);\n\t\tcreateEReference(actionEClass, ACTION__PARAMETERS);\n\n\t\tparameterEClass = createEClass(PARAMETER);\n\t\tcreateEAttribute(parameterEClass, PARAMETER__NAME);\n\t\tcreateEAttribute(parameterEClass, PARAMETER__TYPE);\n\n\t\tattributeEClass = createEClass(ATTRIBUTE);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__NAME);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__TYPE);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__REQUIRED);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__DEFAULT_VALUE);\n\n\t\tpropertyEClass = createEClass(PROPERTY);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__NAME);\n\t\tcreateEReference(propertyEClass, PROPERTY__BACI_TYPE);\n\t\tcreateEReference(propertyEClass, PROPERTY__DEV_IO);\n\n\t\tusedDevIOsEClass = createEClass(USED_DEV_IOS);\n\t\tcreateEReference(usedDevIOsEClass, USED_DEV_IOS__DEV_IOS);\n\n\t\tdevIOEClass = createEClass(DEV_IO);\n\t\tcreateEAttribute(devIOEClass, DEV_IO__NAME);\n\t\tcreateEAttribute(devIOEClass, DEV_IO__REQUIRED_LIBRARIES);\n\t\tcreateEReference(devIOEClass, DEV_IO__DEV_IO_VARIABLES);\n\n\t\tdevIOVariableEClass = createEClass(DEV_IO_VARIABLE);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__NAME);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__TYPE);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__IS_READ);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__IS_WRITE);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__IS_PROPERTY_SPECIFIC);\n\n\t\tusedBaciTypesEClass = createEClass(USED_BACI_TYPES);\n\t\tcreateEReference(usedBaciTypesEClass, USED_BACI_TYPES__BACI_TYPES);\n\n\t\tbaciTypeEClass = createEClass(BACI_TYPE);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__NAME);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__ACCESS_TYPE);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__BASIC_TYPE);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__SEQ_TYPE);\n\n\t\tcomponentInstancesEClass = createEClass(COMPONENT_INSTANCES);\n\t\tcreateEReference(componentInstancesEClass, COMPONENT_INSTANCES__INSTANCES);\n\t\tcreateEReference(componentInstancesEClass, COMPONENT_INSTANCES__CONTAINING_CARACTERISTIC_COMPONENT);\n\n\t\tinstanceEClass = createEClass(INSTANCE);\n\t\tcreateEAttribute(instanceEClass, INSTANCE__NAME);\n\t\tcreateEReference(instanceEClass, INSTANCE__CONTAINING_COMPONENT_INSTANCES);\n\t\tcreateEReference(instanceEClass, INSTANCE__ATTRIBUTE_VALUES_CONTAINER);\n\t\tcreateEReference(instanceEClass, INSTANCE__CHARACTERISTIC_VALUES_CONTAINER);\n\t\tcreateEAttribute(instanceEClass, INSTANCE__AUTO_START);\n\t\tcreateEAttribute(instanceEClass, INSTANCE__DEFAULT);\n\n\t\tattributeValuesEClass = createEClass(ATTRIBUTE_VALUES);\n\t\tcreateEReference(attributeValuesEClass, ATTRIBUTE_VALUES__INSTANCE_ATTRIBUTES);\n\t\tcreateEReference(attributeValuesEClass, ATTRIBUTE_VALUES__CONTAINING_INSTANCE);\n\n\t\tattributeValueEClass = createEClass(ATTRIBUTE_VALUE);\n\t\tcreateEAttribute(attributeValueEClass, ATTRIBUTE_VALUE__NAME);\n\t\tcreateEAttribute(attributeValueEClass, ATTRIBUTE_VALUE__VALUE);\n\n\t\tcharacteristicValuesEClass = createEClass(CHARACTERISTIC_VALUES);\n\t\tcreateEAttribute(characteristicValuesEClass, CHARACTERISTIC_VALUES__PROPERTY_NAME);\n\t\tcreateEReference(characteristicValuesEClass, CHARACTERISTIC_VALUES__INSTANCE_CHARACTERISTICS);\n\t\tcreateEReference(characteristicValuesEClass, CHARACTERISTIC_VALUES__CONTAINING_INSTANCE);\n\n\t\tcharacteristicValueEClass = createEClass(CHARACTERISTIC_VALUE);\n\t\tcreateEAttribute(characteristicValueEClass, CHARACTERISTIC_VALUE__NAME);\n\t\tcreateEAttribute(characteristicValueEClass, CHARACTERISTIC_VALUE__VALUE);\n\n\t\tpropertyDefinitionEClass = createEClass(PROPERTY_DEFINITION);\n\n\t\t// Create enums\n\t\taccessTypeEEnum = createEEnum(ACCESS_TYPE);\n\t\tbasicTypeEEnum = createEEnum(BASIC_TYPE);\n\t\tseqTypeEEnum = createEEnum(SEQ_TYPE);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttableEClass = createEClass(TABLE);\n\t\tcreateEReference(tableEClass, TABLE__DATABASE);\n\t\tcreateEReference(tableEClass, TABLE__COLUMNS);\n\t\tcreateEReference(tableEClass, TABLE__CONSTRAINTS);\n\n\t\ttableConstraintEClass = createEClass(TABLE_CONSTRAINT);\n\t\tcreateEAttribute(tableConstraintEClass, TABLE_CONSTRAINT__NAME);\n\t\tcreateEReference(tableConstraintEClass, TABLE_CONSTRAINT__TABLE);\n\n\t\tprimaryKeyTableConstraintEClass = createEClass(PRIMARY_KEY_TABLE_CONSTRAINT);\n\t\tcreateEReference(primaryKeyTableConstraintEClass, PRIMARY_KEY_TABLE_CONSTRAINT__COLUMNS);\n\n\t\tuniqueTableConstraintEClass = createEClass(UNIQUE_TABLE_CONSTRAINT);\n\t\tcreateEReference(uniqueTableConstraintEClass, UNIQUE_TABLE_CONSTRAINT__COLUMNS);\n\n\t\tcheckTableConstraintEClass = createEClass(CHECK_TABLE_CONSTRAINT);\n\t\tcreateEReference(checkTableConstraintEClass, CHECK_TABLE_CONSTRAINT__EXPRESSION);\n\n\t\tforeignKeyTableConstraintEClass = createEClass(FOREIGN_KEY_TABLE_CONSTRAINT);\n\t\tcreateEReference(foreignKeyTableConstraintEClass, FOREIGN_KEY_TABLE_CONSTRAINT__COLUMNS);\n\t\tcreateEReference(foreignKeyTableConstraintEClass, FOREIGN_KEY_TABLE_CONSTRAINT__FOREIGN_TABLE);\n\t\tcreateEReference(foreignKeyTableConstraintEClass, FOREIGN_KEY_TABLE_CONSTRAINT__FOREIGN_COLUMNS);\n\t}", "public void createPackageContents()\r\n {\r\n if (isCreated) return;\r\n isCreated = true;\r\n\r\n // Create classes and their features\r\n productEClass = createEClass(PRODUCT);\r\n createEAttribute(productEClass, PRODUCT__PRICE);\r\n createEAttribute(productEClass, PRODUCT__NAME);\r\n createEAttribute(productEClass, PRODUCT__ID);\r\n createEReference(productEClass, PRODUCT__PRODUCER);\r\n createEReference(productEClass, PRODUCT__WISHLISTS);\r\n createEReference(productEClass, PRODUCT__OFFERED_BY);\r\n\r\n customerEClass = createEClass(CUSTOMER);\r\n createEReference(customerEClass, CUSTOMER__ALL_BOUGHT_PRODUCTS);\r\n createEAttribute(customerEClass, CUSTOMER__NAME);\r\n createEAttribute(customerEClass, CUSTOMER__AGE);\r\n createEAttribute(customerEClass, CUSTOMER__ID);\r\n createEReference(customerEClass, CUSTOMER__WISHLISTS);\r\n createEAttribute(customerEClass, CUSTOMER__USERNAME);\r\n\r\n producerEClass = createEClass(PRODUCER);\r\n createEAttribute(producerEClass, PRODUCER__ID);\r\n createEAttribute(producerEClass, PRODUCER__NAME);\r\n createEReference(producerEClass, PRODUCER__PRODUCTS);\r\n\r\n storeEClass = createEClass(STORE);\r\n createEReference(storeEClass, STORE__CUSTOMERS);\r\n createEReference(storeEClass, STORE__PRODUCTS);\r\n createEReference(storeEClass, STORE__PRODUCERS);\r\n createEReference(storeEClass, STORE__SELLERS);\r\n\r\n bookEClass = createEClass(BOOK);\r\n createEAttribute(bookEClass, BOOK__AUTHOR);\r\n\r\n dvdEClass = createEClass(DVD);\r\n createEAttribute(dvdEClass, DVD__INTERPRET);\r\n\r\n wishlistEClass = createEClass(WISHLIST);\r\n createEReference(wishlistEClass, WISHLIST__PRODUCTS);\r\n\r\n sellerEClass = createEClass(SELLER);\r\n createEAttribute(sellerEClass, SELLER__NAME);\r\n createEAttribute(sellerEClass, SELLER__ID);\r\n createEAttribute(sellerEClass, SELLER__USERNAME);\r\n createEReference(sellerEClass, SELLER__ALL_PRODUCTS_TO_SELL);\r\n createEReference(sellerEClass, SELLER__EREFERENCE0);\r\n createEReference(sellerEClass, SELLER__SOLD_PRODUCTS);\r\n }", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tannotationModelEClass = createEClass(ANNOTATION_MODEL);\r\n\t\tcreateEAttribute(annotationModelEClass, ANNOTATION_MODEL__NAME);\r\n\t\tcreateEReference(annotationModelEClass, ANNOTATION_MODEL__HAS_ANNOTATED_ELEMENT);\r\n\t\tcreateEReference(annotationModelEClass, ANNOTATION_MODEL__HAS_ANNOTATION);\r\n\r\n\t\tannotationEClass = createEClass(ANNOTATION);\r\n\r\n\t\tauthorizableResourceEClass = createEClass(AUTHORIZABLE_RESOURCE);\r\n\t\tcreateEReference(authorizableResourceEClass, AUTHORIZABLE_RESOURCE__HAS_RESOURCE_ACCESS_POLICY_SET);\r\n\t\tcreateEReference(authorizableResourceEClass, AUTHORIZABLE_RESOURCE__IS_AUTHORIZABLE_RESOURCE);\r\n\t\tcreateEAttribute(authorizableResourceEClass, AUTHORIZABLE_RESOURCE__BTRACK_OWNERSHIP);\r\n\r\n\t\tresourceAccessPolicySetEClass = createEClass(RESOURCE_ACCESS_POLICY_SET);\r\n\t\tcreateEAttribute(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__NAME);\r\n\t\tcreateEAttribute(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__POLICY_COMBINING_ALGORITHM);\r\n\t\tcreateEReference(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__HAS_RESOURCE_ACCESS_POLICY);\r\n\t\tcreateEReference(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__HAS_RESOURCE_ACCESS_POLICY_SET);\r\n\r\n\t\tannotatedElementEClass = createEClass(ANNOTATED_ELEMENT);\r\n\r\n\t\tannResourceEClass = createEClass(ANN_RESOURCE);\r\n\t\tcreateEReference(annResourceEClass, ANN_RESOURCE__ANNOTATES_RESOURCE);\r\n\r\n\t\tresourceAccessPolicyEClass = createEClass(RESOURCE_ACCESS_POLICY);\r\n\t\tcreateEAttribute(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__NAME);\r\n\t\tcreateEAttribute(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__RULE_COMBINING_ALGORITHM);\r\n\t\tcreateEReference(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__HAS_APPLY_CONDITION);\r\n\t\tcreateEReference(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__HAS_RESOURCE_ACCESS_RULE);\r\n\r\n\t\tconditionEClass = createEClass(CONDITION);\r\n\t\tcreateEAttribute(conditionEClass, CONDITION__OPERATOR);\r\n\t\tcreateEReference(conditionEClass, CONDITION__HAS_LEFT_SIDE_OPERAND);\r\n\t\tcreateEReference(conditionEClass, CONDITION__HAS_RIGHT_SIDE_OPERAND);\r\n\r\n\t\tattributeEClass = createEClass(ATTRIBUTE);\r\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__ATTRIBUTE_CATEGORY);\r\n\t\tcreateEReference(attributeEClass, ATTRIBUTE__IS_ATTRIBUTE_EXISTING_PROPERTY);\r\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__VALUE);\r\n\t\tcreateEReference(attributeEClass, ATTRIBUTE__IS_ATTRIBUTE_NEW_PROPERTY);\r\n\t\tcreateEReference(attributeEClass, ATTRIBUTE__IS_ATTRIBUTE_RESOURCE);\r\n\r\n\t\tannPropertyEClass = createEClass(ANN_PROPERTY);\r\n\t\tcreateEReference(annPropertyEClass, ANN_PROPERTY__ANNOTATES_PROPERTY);\r\n\r\n\t\tresourceAccessRuleEClass = createEClass(RESOURCE_ACCESS_RULE);\r\n\t\tcreateEReference(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__HAS_MATCH_CONDITION);\r\n\t\tcreateEAttribute(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__NAME);\r\n\t\tcreateEAttribute(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__RULE_TYPE);\r\n\t\tcreateEReference(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__HAS_ALLOWED_ACTION);\r\n\r\n\t\tauthorizationSubjectEClass = createEClass(AUTHORIZATION_SUBJECT);\r\n\t\tcreateEReference(authorizationSubjectEClass, AUTHORIZATION_SUBJECT__IS_AUTHORIZATION_SUBJECT);\r\n\r\n\t\tannCRUDActivityEClass = createEClass(ANN_CRUD_ACTIVITY);\r\n\t\tcreateEReference(annCRUDActivityEClass, ANN_CRUD_ACTIVITY__ANNOTATES_CRUD_ACTIVITY);\r\n\r\n\t\tallowedActionEClass = createEClass(ALLOWED_ACTION);\r\n\t\tcreateEReference(allowedActionEClass, ALLOWED_ACTION__IS_ALLOWED_ACTION);\r\n\r\n\t\tnewPropertyEClass = createEClass(NEW_PROPERTY);\r\n\t\tcreateEReference(newPropertyEClass, NEW_PROPERTY__BELONGS_TO_RESOURCE);\r\n\t\tcreateEAttribute(newPropertyEClass, NEW_PROPERTY__NAME);\r\n\t\tcreateEAttribute(newPropertyEClass, NEW_PROPERTY__TYPE);\r\n\t\tcreateEAttribute(newPropertyEClass, NEW_PROPERTY__BIS_UNIQUE);\r\n\r\n\t\t// Create enums\r\n\t\tcombiningAlgorithmEEnum = createEEnum(COMBINING_ALGORITHM);\r\n\t\toperatorEEnum = createEEnum(OPERATOR);\r\n\t\tattributeCategoryEEnum = createEEnum(ATTRIBUTE_CATEGORY);\r\n\t\truleTypeEEnum = createEEnum(RULE_TYPE);\r\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tissueEClass = createEClass(ISSUE);\r\n\t\tcreateEReference(issueEClass, ISSUE__PROPOSALS);\r\n\t\tcreateEReference(issueEClass, ISSUE__SOLUTION);\r\n\t\tcreateEReference(issueEClass, ISSUE__CRITERIA);\r\n\t\tcreateEAttribute(issueEClass, ISSUE__ACTIVITY);\r\n\t\tcreateEReference(issueEClass, ISSUE__ASSESSMENTS);\r\n\r\n\t\tproposalEClass = createEClass(PROPOSAL);\r\n\t\tcreateEReference(proposalEClass, PROPOSAL__ASSESSMENTS);\r\n\t\tcreateEReference(proposalEClass, PROPOSAL__ISSUE);\r\n\r\n\t\tsolutionEClass = createEClass(SOLUTION);\r\n\t\tcreateEReference(solutionEClass, SOLUTION__UNDERLYING_PROPOSALS);\r\n\t\tcreateEReference(solutionEClass, SOLUTION__ISSUE);\r\n\r\n\t\tcriterionEClass = createEClass(CRITERION);\r\n\t\tcreateEReference(criterionEClass, CRITERION__ASSESSMENTS);\r\n\r\n\t\tassessmentEClass = createEClass(ASSESSMENT);\r\n\t\tcreateEReference(assessmentEClass, ASSESSMENT__PROPOSAL);\r\n\t\tcreateEReference(assessmentEClass, ASSESSMENT__CRITERION);\r\n\t\tcreateEAttribute(assessmentEClass, ASSESSMENT__VALUE);\r\n\r\n\t\tcommentEClass = createEClass(COMMENT);\r\n\t\tcreateEReference(commentEClass, COMMENT__SENDER);\r\n\t\tcreateEReference(commentEClass, COMMENT__RECIPIENTS);\r\n\t\tcreateEReference(commentEClass, COMMENT__COMMENTED_ELEMENT);\r\n\r\n\t\taudioCommentEClass = createEClass(AUDIO_COMMENT);\r\n\t\tcreateEReference(audioCommentEClass, AUDIO_COMMENT__AUDIO_FILE);\r\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tcontrolEClass = createEClass(CONTROL);\n\t\tcreateEReference(controlEClass, CONTROL__MIDI);\n\t\tcreateEAttribute(controlEClass, CONTROL__BACKGROUND);\n\t\tcreateEAttribute(controlEClass, CONTROL__CENTERED);\n\t\tcreateEAttribute(controlEClass, CONTROL__COLOR);\n\t\tcreateEAttribute(controlEClass, CONTROL__H);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED_X);\n\t\tcreateEAttribute(controlEClass, CONTROL__INVERTED_Y);\n\t\tcreateEAttribute(controlEClass, CONTROL__LOCAL_OFF);\n\t\tcreateEAttribute(controlEClass, CONTROL__NAME);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER_X);\n\t\tcreateEAttribute(controlEClass, CONTROL__NUMBER_Y);\n\t\tcreateEAttribute(controlEClass, CONTROL__OSC_CS);\n\t\tcreateEAttribute(controlEClass, CONTROL__OUTLINE);\n\t\tcreateEAttribute(controlEClass, CONTROL__RESPONSE);\n\t\tcreateEAttribute(controlEClass, CONTROL__SCALEF);\n\t\tcreateEAttribute(controlEClass, CONTROL__SCALET);\n\t\tcreateEAttribute(controlEClass, CONTROL__SECONDS);\n\t\tcreateEAttribute(controlEClass, CONTROL__SIZE);\n\t\tcreateEAttribute(controlEClass, CONTROL__TEXT);\n\t\tcreateEAttribute(controlEClass, CONTROL__TYPE);\n\t\tcreateEAttribute(controlEClass, CONTROL__W);\n\t\tcreateEAttribute(controlEClass, CONTROL__X);\n\t\tcreateEAttribute(controlEClass, CONTROL__Y);\n\n\t\tlayoutEClass = createEClass(LAYOUT);\n\t\tcreateEReference(layoutEClass, LAYOUT__TABPAGE);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__MODE);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__ORIENTATION);\n\t\tcreateEAttribute(layoutEClass, LAYOUT__VERSION);\n\n\t\tmidiEClass = createEClass(MIDI);\n\t\tcreateEAttribute(midiEClass, MIDI__CHANNEL);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA1);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA2F);\n\t\tcreateEAttribute(midiEClass, MIDI__DATA2T);\n\t\tcreateEAttribute(midiEClass, MIDI__TYPE);\n\t\tcreateEAttribute(midiEClass, MIDI__VAR);\n\n\t\ttabpageEClass = createEClass(TABPAGE);\n\t\tcreateEReference(tabpageEClass, TABPAGE__CONTROL);\n\t\tcreateEAttribute(tabpageEClass, TABPAGE__NAME);\n\n\t\ttopEClass = createEClass(TOP);\n\t\tcreateEReference(topEClass, TOP__LAYOUT);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tdataChannelEClass = createEClass(DATA_CHANNEL);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__CAPACITY);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__SOURCE_EVENT_GROUP);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__SINK_EVENT_GROUP);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__DATA_CHANNEL_SOURCE_CONNECTOR);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__DATA_CHANNEL_SINK_CONNECTOR);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__PARTITIONING);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__TIME_GROUPING);\r\n\t\tcreateEReference(dataChannelEClass, DATA_CHANNEL__JOINS);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__OUTGOING_DISTRIBUTION);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__SCHEDULING);\r\n\t\tcreateEAttribute(dataChannelEClass, DATA_CHANNEL__PUT_POLICY);\r\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n mathExpEClass = createEClass(MATH_EXP);\n createEReference(mathExpEClass, MATH_EXP__DECLARATIONS);\n\n declarationEClass = createEClass(DECLARATION);\n\n externalDefEClass = createEClass(EXTERNAL_DEF);\n createEAttribute(externalDefEClass, EXTERNAL_DEF__NAME);\n createEReference(externalDefEClass, EXTERNAL_DEF__PARAMETERS);\n\n parameterEClass = createEClass(PARAMETER);\n createEReference(parameterEClass, PARAMETER__TYPE);\n createEAttribute(parameterEClass, PARAMETER__PARAMETER_NAME);\n\n typeEClass = createEClass(TYPE);\n createEAttribute(typeEClass, TYPE__NAME);\n\n resultStatementEClass = createEClass(RESULT_STATEMENT);\n createEAttribute(resultStatementEClass, RESULT_STATEMENT__LABEL);\n createEReference(resultStatementEClass, RESULT_STATEMENT__EXP);\n\n expressionEClass = createEClass(EXPRESSION);\n\n plusEClass = createEClass(PLUS);\n createEReference(plusEClass, PLUS__LEFT);\n createEReference(plusEClass, PLUS__RIGHT);\n\n minusEClass = createEClass(MINUS);\n createEReference(minusEClass, MINUS__LEFT);\n createEReference(minusEClass, MINUS__RIGHT);\n\n multEClass = createEClass(MULT);\n createEReference(multEClass, MULT__LEFT);\n createEReference(multEClass, MULT__RIGHT);\n\n divEClass = createEClass(DIV);\n createEReference(divEClass, DIV__LEFT);\n createEReference(divEClass, DIV__RIGHT);\n\n varEClass = createEClass(VAR);\n createEAttribute(varEClass, VAR__ID);\n\n letEClass = createEClass(LET);\n createEAttribute(letEClass, LET__ID);\n createEReference(letEClass, LET__BINDING);\n createEReference(letEClass, LET__BODY);\n\n externalUseEClass = createEClass(EXTERNAL_USE);\n createEReference(externalUseEClass, EXTERNAL_USE__EXTERNAL);\n createEReference(externalUseEClass, EXTERNAL_USE__ARGUMENTS);\n\n numEClass = createEClass(NUM);\n createEAttribute(numEClass, NUM__VALUE);\n }", "private void createDocs() {\n\t\t\n\t\tArrayList<Document> docs=new ArrayList<>();\n\t\tString foldername=\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\input\";\n\t\tFile folder=new File(foldername);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tfor (File file : listOfFiles) {\n\t\t\ttry {\n\t\t\t\tFileInputStream fisTargetFile = new FileInputStream(new File(foldername+\"\\\\\"+file.getName()));\n\t\t\t\tString fileContents = IOUtils.toString(fisTargetFile, \"UTF-8\");\n\t\t\t\tString[] text=fileContents.split(\"ParseText::\");\n\t\t\t\tif(text.length>1){\n\t\t\t\t\tString snippet=text[1].trim().length()>100 ? text[1].trim().substring(0, 100): text[1].trim();\n\t\t\t\t\tDocument doc=new Document();\n\t\t\t\t\tdoc.setFileName(file.getName().replace(\".txt\", \"\"));\n\t\t\t\t\tdoc.setUrl(text[0].split(\"URL::\")[1].trim());\n\t\t\t\t\tdoc.setText(snippet+\"...\");\n\t\t\t\t\tdocs.add(doc);\n\t\t\t\t}\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t}\t\n\t\tDBUtil.insertDocs(docs);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tpartyQualEClass = createEClass(PARTY_QUAL);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__PARTY);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__PARTY_QUAL_TYPE);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__FROM_DATE);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__QUALIFICATION_DESC);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__STATUS);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__THRU_DATE);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__TITLE);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__VERIF_STATUS);\n\n\t\tpartyQualTypeEClass = createEClass(PARTY_QUAL_TYPE);\n\t\tcreateEAttribute(partyQualTypeEClass, PARTY_QUAL_TYPE__PARTY_QUAL_TYPE_ID);\n\t\tcreateEAttribute(partyQualTypeEClass, PARTY_QUAL_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(partyQualTypeEClass, PARTY_QUAL_TYPE__HAS_TABLE);\n\t\tcreateEReference(partyQualTypeEClass, PARTY_QUAL_TYPE__PARENT_TYPE);\n\n\t\tpartyResumeEClass = createEClass(PARTY_RESUME);\n\t\tcreateEAttribute(partyResumeEClass, PARTY_RESUME__RESUME_ID);\n\t\tcreateEReference(partyResumeEClass, PARTY_RESUME__CONTENT);\n\t\tcreateEReference(partyResumeEClass, PARTY_RESUME__PARTY);\n\t\tcreateEAttribute(partyResumeEClass, PARTY_RESUME__RESUME_DATE);\n\t\tcreateEAttribute(partyResumeEClass, PARTY_RESUME__RESUME_TEXT);\n\n\t\tpartySkillEClass = createEClass(PARTY_SKILL);\n\t\tcreateEReference(partySkillEClass, PARTY_SKILL__PARTY);\n\t\tcreateEReference(partySkillEClass, PARTY_SKILL__SKILL_TYPE);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__RATING);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__SKILL_LEVEL);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__STARTED_USING_DATE);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__YEARS_EXPERIENCE);\n\n\t\tperfRatingTypeEClass = createEClass(PERF_RATING_TYPE);\n\t\tcreateEAttribute(perfRatingTypeEClass, PERF_RATING_TYPE__PERF_RATING_TYPE_ID);\n\t\tcreateEAttribute(perfRatingTypeEClass, PERF_RATING_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(perfRatingTypeEClass, PERF_RATING_TYPE__HAS_TABLE);\n\t\tcreateEReference(perfRatingTypeEClass, PERF_RATING_TYPE__PARENT_TYPE);\n\n\t\tperfReviewEClass = createEClass(PERF_REVIEW);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__EMPLOYEE_PARTY);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__EMPLOYEE_ROLE_TYPE_ID);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__PERF_REVIEW_ID);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__COMMENTS);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__EMPL_POSITION);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__FROM_DATE);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__MANAGER_PARTY);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__MANAGER_ROLE_TYPE_ID);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__PAYMENT);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__THRU_DATE);\n\n\t\tperfReviewItemEClass = createEClass(PERF_REVIEW_ITEM);\n\t\tcreateEReference(perfReviewItemEClass, PERF_REVIEW_ITEM__EMPLOYEE_PARTY);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__EMPLOYEE_ROLE_TYPE_ID);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_REVIEW_ID);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_REVIEW_ITEM_SEQ_ID);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__COMMENTS);\n\t\tcreateEReference(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_RATING_TYPE);\n\t\tcreateEReference(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_REVIEW_ITEM_TYPE);\n\n\t\tperfReviewItemTypeEClass = createEClass(PERF_REVIEW_ITEM_TYPE);\n\t\tcreateEAttribute(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__PERF_REVIEW_ITEM_TYPE_ID);\n\t\tcreateEAttribute(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__HAS_TABLE);\n\t\tcreateEReference(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__PARENT_TYPE);\n\n\t\tperformanceNoteEClass = createEClass(PERFORMANCE_NOTE);\n\t\tcreateEReference(performanceNoteEClass, PERFORMANCE_NOTE__PARTY);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__FROM_DATE);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__ROLE_TYPE_ID);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__COMMENTS);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__COMMUNICATION_DATE);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__THRU_DATE);\n\n\t\tpersonTrainingEClass = createEClass(PERSON_TRAINING);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__PARTY);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__TRAINING_CLASS_TYPE);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__FROM_DATE);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__APPROVAL_STATUS);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__APPROVER);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__REASON);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__THRU_DATE);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__TRAINING_REQUEST);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__WORK_EFFORT);\n\n\t\tresponsibilityTypeEClass = createEClass(RESPONSIBILITY_TYPE);\n\t\tcreateEAttribute(responsibilityTypeEClass, RESPONSIBILITY_TYPE__RESPONSIBILITY_TYPE_ID);\n\t\tcreateEAttribute(responsibilityTypeEClass, RESPONSIBILITY_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(responsibilityTypeEClass, RESPONSIBILITY_TYPE__HAS_TABLE);\n\t\tcreateEReference(responsibilityTypeEClass, RESPONSIBILITY_TYPE__PARENT_TYPE);\n\n\t\tskillTypeEClass = createEClass(SKILL_TYPE);\n\t\tcreateEAttribute(skillTypeEClass, SKILL_TYPE__SKILL_TYPE_ID);\n\t\tcreateEAttribute(skillTypeEClass, SKILL_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(skillTypeEClass, SKILL_TYPE__HAS_TABLE);\n\t\tcreateEReference(skillTypeEClass, SKILL_TYPE__PARENT_TYPE);\n\n\t\ttrainingClassTypeEClass = createEClass(TRAINING_CLASS_TYPE);\n\t\tcreateEAttribute(trainingClassTypeEClass, TRAINING_CLASS_TYPE__TRAINING_CLASS_TYPE_ID);\n\t\tcreateEAttribute(trainingClassTypeEClass, TRAINING_CLASS_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(trainingClassTypeEClass, TRAINING_CLASS_TYPE__HAS_TABLE);\n\t\tcreateEReference(trainingClassTypeEClass, TRAINING_CLASS_TYPE__PARENT_TYPE);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tsutEClass = createEClass(SUT);\n\t\tcreateEAttribute(sutEClass, SUT__HOSTNAME);\n\t\tcreateEAttribute(sutEClass, SUT__IP);\n\t\tcreateEAttribute(sutEClass, SUT__HARDWARE);\n\t\tcreateEReference(sutEClass, SUT__SUT);\n\t\tcreateEReference(sutEClass, SUT__METRICMODEL);\n\t\tcreateEAttribute(sutEClass, SUT__TYPE);\n\n\t\tloadGeneratorEClass = createEClass(LOAD_GENERATOR);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__HOSTNAME);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__IP);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__IS_MONITOR);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__SUT);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__METRICMODEL);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__HARDWARE);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__MONITOR);\n\n\t\tmonitorEClass = createEClass(MONITOR);\n\t\tcreateEAttribute(monitorEClass, MONITOR__HOSTNAME);\n\t\tcreateEAttribute(monitorEClass, MONITOR__IP);\n\t\tcreateEReference(monitorEClass, MONITOR__SUT);\n\t\tcreateEAttribute(monitorEClass, MONITOR__HARDWARE);\n\t\tcreateEAttribute(monitorEClass, MONITOR__DESCRIPTION);\n\n\t\tmetricModelEClass = createEClass(METRIC_MODEL);\n\t\tcreateEAttribute(metricModelEClass, METRIC_MODEL__NAME);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__MEMORY);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__TRANSACTION);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__DISK);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__CRITERIA);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__THRESHOLD);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__ASSOCIATIONCOUNTERCRITERIATHRESHOLD);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__DISK_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__TRANSACTION_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__MEMORY_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__METRIC);\n\n\t\t// Create enums\n\t\tsuT_TYPEEEnum = createEEnum(SUT_TYPE);\n\t\thardwareEEnum = createEEnum(HARDWARE);\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\teDomainSchemaEClass = createEClass(EDOMAIN_SCHEMA);\n\t\tcreateEReference(eDomainSchemaEClass, EDOMAIN_SCHEMA__CS);\n\t\tcreateEReference(eDomainSchemaEClass, EDOMAIN_SCHEMA__DS);\n\n\t\teControlSchemaEClass = createEClass(ECONTROL_SCHEMA);\n\t\tcreateEReference(eControlSchemaEClass, ECONTROL_SCHEMA__ACTOR);\n\n\t\teDataSchemaEClass = createEClass(EDATA_SCHEMA);\n\t\tcreateEReference(eDataSchemaEClass, EDATA_SCHEMA__CS);\n\t\tcreateEReference(eDataSchemaEClass, EDATA_SCHEMA__ITEM);\n\n\t\teDomainSpecificEntityEClass = createEClass(EDOMAIN_SPECIFIC_ENTITY);\n\t\tcreateEAttribute(eDomainSpecificEntityEClass, EDOMAIN_SPECIFIC_ENTITY__COMMAND_PRIORITY);\n\t\tcreateEReference(eDomainSpecificEntityEClass, EDOMAIN_SPECIFIC_ENTITY__CMD);\n\n\t\teDomainSpecificCommandEClass = createEClass(EDOMAIN_SPECIFIC_COMMAND);\n\t\tcreateEAttribute(eDomainSpecificCommandEClass, EDOMAIN_SPECIFIC_COMMAND__CMD_ID);\n\n\t\teActorEClass = createEClass(EACTOR);\n\t\tcreateEAttribute(eActorEClass, EACTOR__KIND_INTERACTION);\n\t\tcreateEReference(eActorEClass, EACTOR__TYPES_CONTROLLED);\n\n\t\teItemEClass = createEClass(EITEM);\n\t\tcreateEAttribute(eItemEClass, EITEM__ARISING_BEHAVIOR);\n\t\tcreateEReference(eItemEClass, EITEM__TYPE);\n\n\t\teDomainSpecificTypeEClass = createEClass(EDOMAIN_SPECIFIC_TYPE);\n\t\tcreateEAttribute(eDomainSpecificTypeEClass, EDOMAIN_SPECIFIC_TYPE__INTERACTION_BEHAVIOR);\n\t\tcreateEAttribute(eDomainSpecificTypeEClass, EDOMAIN_SPECIFIC_TYPE__CARDINALITY);\n\n\t\t// Create enums\n\t\teArisingEEnum = createEEnum(EARISING);\n\t\teCardinalityEEnum = createEEnum(ECARDINALITY);\n\t\teInteractionBehaviorEEnum = createEEnum(EINTERACTION_BEHAVIOR);\n\t\teCoordinationBehaviorEEnum = createEEnum(ECOORDINATION_BEHAVIOR);\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n programmeEClass = createEClass(PROGRAMME);\n createEReference(programmeEClass, PROGRAMME__PROCEDURES);\n\n procedureEClass = createEClass(PROCEDURE);\n createEAttribute(procedureEClass, PROCEDURE__NAME);\n createEAttribute(procedureEClass, PROCEDURE__PARAM);\n createEAttribute(procedureEClass, PROCEDURE__PARAMS);\n createEReference(procedureEClass, PROCEDURE__INST);\n\n instructionEClass = createEClass(INSTRUCTION);\n\n openEClass = createEClass(OPEN);\n createEAttribute(openEClass, OPEN__NAME);\n createEAttribute(openEClass, OPEN__VALUE);\n\n gotoEClass = createEClass(GOTO);\n createEAttribute(gotoEClass, GOTO__NAME);\n createEAttribute(gotoEClass, GOTO__VALUE);\n\n clickEClass = createEClass(CLICK);\n createEAttribute(clickEClass, CLICK__NAME);\n createEAttribute(clickEClass, CLICK__TYPE);\n createEReference(clickEClass, CLICK__IDENTIFIER);\n\n fillEClass = createEClass(FILL);\n createEAttribute(fillEClass, FILL__NAME);\n createEAttribute(fillEClass, FILL__FIELD_TYPE);\n createEReference(fillEClass, FILL__IDENTIFIER);\n createEAttribute(fillEClass, FILL__VAR);\n createEAttribute(fillEClass, FILL__VALUE);\n\n checkEClass = createEClass(CHECK);\n createEAttribute(checkEClass, CHECK__NAME);\n createEAttribute(checkEClass, CHECK__ALL);\n createEReference(checkEClass, CHECK__IDENTIFIER);\n\n uncheckEClass = createEClass(UNCHECK);\n createEAttribute(uncheckEClass, UNCHECK__NAME);\n createEAttribute(uncheckEClass, UNCHECK__ALL);\n createEReference(uncheckEClass, UNCHECK__IDENTIFIER);\n\n selectEClass = createEClass(SELECT);\n createEAttribute(selectEClass, SELECT__NAME);\n createEAttribute(selectEClass, SELECT__ELEM);\n createEReference(selectEClass, SELECT__IDENTIFIER);\n\n readEClass = createEClass(READ);\n createEAttribute(readEClass, READ__NAME);\n createEReference(readEClass, READ__IDENTIFIER);\n createEReference(readEClass, READ__SAVE_PATH);\n\n elementidentifierEClass = createEClass(ELEMENTIDENTIFIER);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__NAME);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__TYPE);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__VALUE);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__INFO);\n createEAttribute(elementidentifierEClass, ELEMENTIDENTIFIER__VAR);\n\n verifyEClass = createEClass(VERIFY);\n createEAttribute(verifyEClass, VERIFY__VALUE);\n\n verifY_CONTAINSEClass = createEClass(VERIFY_CONTAINS);\n createEAttribute(verifY_CONTAINSEClass, VERIFY_CONTAINS__TYPE);\n createEReference(verifY_CONTAINSEClass, VERIFY_CONTAINS__IDENTIFIER);\n createEReference(verifY_CONTAINSEClass, VERIFY_CONTAINS__CONTAINED_IDENTIFIER);\n createEReference(verifY_CONTAINSEClass, VERIFY_CONTAINS__VARIABLE);\n\n verifY_EQUALSEClass = createEClass(VERIFY_EQUALS);\n createEReference(verifY_EQUALSEClass, VERIFY_EQUALS__OPERATION);\n createEReference(verifY_EQUALSEClass, VERIFY_EQUALS__REGISTERED_VALUE);\n\n registereD_VALUEEClass = createEClass(REGISTERED_VALUE);\n createEAttribute(registereD_VALUEEClass, REGISTERED_VALUE__VAR);\n\n countEClass = createEClass(COUNT);\n createEAttribute(countEClass, COUNT__NAME);\n createEReference(countEClass, COUNT__IDENTIFIER);\n createEReference(countEClass, COUNT__SAVE_VARIABLE);\n\n savevarEClass = createEClass(SAVEVAR);\n createEAttribute(savevarEClass, SAVEVAR__VAR);\n\n playEClass = createEClass(PLAY);\n createEAttribute(playEClass, PLAY__NAME);\n createEAttribute(playEClass, PLAY__PREOCEDURE);\n createEAttribute(playEClass, PLAY__PARAMS);\n }", "protected void createMetaData(final TidaModel model) {\n\n\t\t// add some descriptors\n\t\tmodel.getMetaDataModel().createDescriptor(\"STRING\", \"Dog\");\n\t\tmodel.getMetaDataModel().createDescriptor(\"STRING\", \"Cat\");\n\t\tmodel.getMetaDataModel().createDescriptor(\"STRING\", \"Mouse\");\n\t\tmodel.getMetaDataModel().createDescriptor(\"STRING\", \"ÜÄÖß\");\n\t\tfor (int i = 0; i < 1000; i++) {\n\t\t\tmodel.getMetaDataModel().createDescriptor(\"INT\", i);\n\t\t}\n\t\tfor (long i = Long.MAX_VALUE; i > Long.MAX_VALUE - 1000; i--) {\n\t\t\tmodel.getMetaDataModel().createDescriptor(\"LONG\", i);\n\t\t}\n\t}", "public static StudyMetadata createFrom(XmlDoc.Element meta) throws Throwable {\n\t\tStudyMetadata sm = new StudyMetadata();\n\t\tsm.restore(meta);\n\t\treturn sm;\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__AGENT);\n\n agentEClass = createEClass(AGENT);\n createEAttribute(agentEClass, AGENT__NAME);\n\n intentEClass = createEClass(INTENT);\n createEReference(intentEClass, INTENT__SUPER_TYPE);\n createEReference(intentEClass, INTENT__IS_FOLLOW_UP);\n createEReference(intentEClass, INTENT__QUESTION);\n createEReference(intentEClass, INTENT__TRAINING);\n\n isFollowUpEClass = createEClass(IS_FOLLOW_UP);\n createEReference(isFollowUpEClass, IS_FOLLOW_UP__INTENT);\n\n entityEClass = createEClass(ENTITY);\n createEReference(entityEClass, ENTITY__EXAMPLE);\n\n questionEClass = createEClass(QUESTION);\n createEReference(questionEClass, QUESTION__QUESTION_ENTITY);\n createEAttribute(questionEClass, QUESTION__PROMPT);\n\n questionEntityEClass = createEClass(QUESTION_ENTITY);\n createEReference(questionEntityEClass, QUESTION_ENTITY__WITH_ENTITY);\n\n trainingEClass = createEClass(TRAINING);\n createEReference(trainingEClass, TRAINING__TRAININGREF);\n\n trainingRefEClass = createEClass(TRAINING_REF);\n createEAttribute(trainingRefEClass, TRAINING_REF__PHRASE);\n createEReference(trainingRefEClass, TRAINING_REF__DECLARATION);\n\n declarationEClass = createEClass(DECLARATION);\n createEAttribute(declarationEClass, DECLARATION__TRAININGSTRING);\n createEReference(declarationEClass, DECLARATION__REFERENCE);\n\n entityExampleEClass = createEClass(ENTITY_EXAMPLE);\n createEAttribute(entityExampleEClass, ENTITY_EXAMPLE__NAME);\n\n sysvariableEClass = createEClass(SYSVARIABLE);\n createEAttribute(sysvariableEClass, SYSVARIABLE__VALUE);\n\n referenceEClass = createEClass(REFERENCE);\n createEReference(referenceEClass, REFERENCE__ENTITY);\n createEReference(referenceEClass, REFERENCE__SYSVAR);\n }", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tbankEClass = createEClass(BANK);\r\n\t\tcreateEReference(bankEClass, BANK__MANAGERS);\r\n\t\tcreateEReference(bankEClass, BANK__ACCOUNTS);\r\n\t\tcreateEReference(bankEClass, BANK__CLIENTS);\r\n\r\n\t\tclientEClass = createEClass(CLIENT);\r\n\t\tcreateEReference(clientEClass, CLIENT__MANAGER);\r\n\t\tcreateEReference(clientEClass, CLIENT__ACCOUNTS);\r\n\t\tcreateEAttribute(clientEClass, CLIENT__NAME);\r\n\t\tcreateEReference(clientEClass, CLIENT__SPONSORSHIPS);\r\n\t\tcreateEAttribute(clientEClass, CLIENT__CAPACITY);\r\n\r\n\t\tmanagerEClass = createEClass(MANAGER);\r\n\t\tcreateEReference(managerEClass, MANAGER__CLIENTS);\r\n\t\tcreateEAttribute(managerEClass, MANAGER__NAME);\r\n\r\n\t\taccountEClass = createEClass(ACCOUNT);\r\n\t\tcreateEReference(accountEClass, ACCOUNT__OWNERS);\r\n\t\tcreateEAttribute(accountEClass, ACCOUNT__CREDIT);\r\n\t\tcreateEAttribute(accountEClass, ACCOUNT__OVERDRAFT);\r\n\t\tcreateEReference(accountEClass, ACCOUNT__CARDS);\r\n\r\n\t\tcardEClass = createEClass(CARD);\r\n\t\tcreateEAttribute(cardEClass, CARD__NUMBER);\r\n\t\tcreateEAttribute(cardEClass, CARD__TYPE);\r\n\r\n\t\t// Create enums\r\n\t\tcardTypeEEnum = createEEnum(CARD_TYPE);\r\n\t}", "protected void addTitlePage(Document doc) throws Exception {\n \n \t\tdoc.add(new Paragraph(\"\\n\\n\\n\\n\"));\r\t\t\t\n // data dictionary\n Font font = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 22);\n \t\tParagraph prg = new Paragraph(\"Data Dictionary\", font);\n prg.setAlignment(Element.ALIGN_CENTER);\n doc.add(prg);\n \n doc.add(new Paragraph(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\"));\n \n // full definition\n font = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 14);\n prg = new Paragraph(\"Definition of\", font);\n prg.setAlignment(Element.ALIGN_CENTER);\n doc.add(prg);\n \n // dataset name\n font = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 26);\n prg = new Paragraph(dsName, font);\n \t\tprg.setAlignment(Element.ALIGN_CENTER);\n \t\tdoc.add(prg);\n \t\t\n \t\t// dataset word\n font = FontFactory.getFont(FontFactory.HELVETICA, 14);\n \t\tprg = new Paragraph(\"dataset\", font);\n prg.setAlignment(Element.ALIGN_CENTER);\n doc.add(prg);\n \n \t\tdoc.add(new Paragraph(\"\\n\\n\"));\n \t\t\n \t\t// version\n \t\tprg = new Paragraph();\n \t\tprg.add(new Chunk(\"Version: \", font));\n \t\tprg.add(new Chunk(dsVersion, font));\n \t\tprg.setAlignment(Element.ALIGN_CENTER);\n \t\tdoc.add(prg);\n \t\t\n \t\t// date\n \t\t//prg = new Paragraph(getTitlePageDate());\n \t\t//prg.setAlignment(Element.ALIGN_CENTER);\n \t\t//doc.add(prg);\n \n doc.add(new Paragraph(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"));\n \n // European Environment Agency\n font = FontFactory.getFont(FontFactory.TIMES_BOLD, 12);\n prg = new Paragraph(\"European Environment Agency\", font);\n prg.setAlignment(Element.ALIGN_CENTER);\n \n if (!Util.voidStr(logo)){\n Image img = Image.getInstance(logo);\n img.setAlignment(Image.LEFT);\n \n prg.add(new Chunk(img, 0, 0));\n }\n \n doc.add(prg);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttaskEClass = createEClass(TASK);\n\t\tcreateEAttribute(taskEClass, TASK__TASK_ID);\n\t\tcreateEAttribute(taskEClass, TASK__NAME);\n\t\tcreateEReference(taskEClass, TASK__SUBTASKS);\n\t\tcreateEAttribute(taskEClass, TASK__DEADLINE);\n\n\t\tperiodicTaskEClass = createEClass(PERIODIC_TASK);\n\t\tcreateEAttribute(periodicTaskEClass, PERIODIC_TASK__PERIOD);\n\t\tcreateEAttribute(periodicTaskEClass, PERIODIC_TASK__OFFSET);\n\n\t\taperiodicTaskEClass = createEClass(APERIODIC_TASK);\n\t\tcreateEReference(aperiodicTaskEClass, APERIODIC_TASK__INTERARRIVAL_DISTRIBUTION);\n\n\t\tsubtaskEClass = createEClass(SUBTASK);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__NAME);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__PRIORITY);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__RET_ANCHOR_USED);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__ACTIVATION_SYNCHRONOUS);\n\t\tcreateEReference(subtaskEClass, SUBTASK__EXEC_TIME_DISTRIBUTION);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__BYPASS);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__DOWNSAMPLING_FACTOR);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__CALLING_THREAD_PRIORITY);\n\t\tcreateEReference(subtaskEClass, SUBTASK__MUTEXES);\n\t\tcreateEAttribute(subtaskEClass, SUBTASK__PIN_ID);\n\n\t\tdistributionEClass = createEClass(DISTRIBUTION);\n\n\t\tconstantEClass = createEClass(CONSTANT);\n\t\tcreateEAttribute(constantEClass, CONSTANT__VALUE);\n\n\t\texponentialEClass = createEClass(EXPONENTIAL);\n\t\tcreateEAttribute(exponentialEClass, EXPONENTIAL__MEAN);\n\n\t\tuniformEClass = createEClass(UNIFORM);\n\t\tcreateEAttribute(uniformEClass, UNIFORM__MAX);\n\t\tcreateEAttribute(uniformEClass, UNIFORM__MIN);\n\n\t\tunknownEClass = createEClass(UNKNOWN);\n\t\tcreateEAttribute(unknownEClass, UNKNOWN__MEAN);\n\t\tcreateEAttribute(unknownEClass, UNKNOWN__MIN);\n\t\tcreateEAttribute(unknownEClass, UNKNOWN__MAX);\n\n\t\tnormalEClass = createEClass(NORMAL);\n\t\tcreateEAttribute(normalEClass, NORMAL__MEAN);\n\t\tcreateEAttribute(normalEClass, NORMAL__STD_DEV);\n\n\t\tperformanceModelEClass = createEClass(PERFORMANCE_MODEL);\n\t\tcreateEReference(performanceModelEClass, PERFORMANCE_MODEL__TASKS);\n\t\tcreateEAttribute(performanceModelEClass, PERFORMANCE_MODEL__NAME);\n\t\tcreateEReference(performanceModelEClass, PERFORMANCE_MODEL__MUTEXES);\n\t\tcreateEAttribute(performanceModelEClass, PERFORMANCE_MODEL__SOURCE_FILE);\n\n\t\tssTaskEClass = createEClass(SS_TASK);\n\t\tcreateEAttribute(ssTaskEClass, SS_TASK__BUDGET);\n\t\tcreateEAttribute(ssTaskEClass, SS_TASK__REPLENISHMENT_PERIOD);\n\t\tcreateEAttribute(ssTaskEClass, SS_TASK__BACKGROUND_PRIORITY);\n\n\t\tmutexEClass = createEClass(MUTEX);\n\t\tcreateEAttribute(mutexEClass, MUTEX__NAME);\n\t}", "protected void createDocsAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/docs\";\t\t\n\t\taddAnnotation\n\t\t (readCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given csv file. Fails if file is not found or format is invalid.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"<code>Table</code> EMF Object. \",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | eq [read-csv-file \\\"workspace:/assertData/table.csv\\\"] | \\n\\t\\tassert-true \\\"Data in table does not match input file\\\" \\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a list of objects from input pipe and prints them as a plain-text table into output pipe.\",\n\t\t\t \"returns\", \"Series of string objects\"\n\t\t });\t\t\t\t\n\t\taddAnnotation\n\t\t (writeCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Writes given table into csv file. Fails if file is not accessible.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"The value of <code>table</code> argument.\",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | write-csv-file \\\"workspace:/assertData/table.csv\\\"\\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to write\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write CSV data to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the same table which has some columns excluded. \",\n\t\t\t \"returns\", \"Copy of input table object without columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to exclude columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to exclude from table. It is OK to pass column names which are not present in table\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (selectColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table containing only columns passed into <code>columns</code> argument.\",\n\t\t\t \"returns\", \"Copy of input table object with only columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to take from table. If given column name is not present in input table, command fails\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (assertTablesMatchEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Compares contents of two tables. If contents are not the same, fails with a descriptive message\",\n\t\t\t \"example\", \"assert-tables-match [get-editor \\\"context\\\" | get-section Parameters | get-table | get-table-data ]\\n [get-editor \\\"context2\\\" | get-section Parameters | get-table | get-table-data]\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreColumnOrder(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"When true, column order is not taken into account\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreMissingColumns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the comparison behaviour in case when one of tables contains a column which is not present in other table:\\n<ul>\\n<li><b>NONE</b> &ndash; all columns must be present in both tables</li>\\n<li><b>LEFT</b> &ndash; columns from right table which are not present in left, are ignored</li>\\n<li><b>RIGHT</b> &ndash; columns from left table which are not present in right, are ignored</li>\\n<li><b>BOTH</b> &ndash; comparison performed only on columns present in both tables</li>\\n<p>Another way to interpret this argument is that it is an answer on question &quot;Which column can have less columns?&quot;</p>\\n<p>The primary reasoning for this argument is to provide smooth migration when presentation is changed \\u2013 consider this scenario: we have a CSV file with table data, and we have UI table. If we add or remove extra columns in the UI, we can keep existing sample data file and just correct the <code>ignoreMissingColumns</code> argument</p>\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (writeLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads objects from input pipe and writes them into file line-by-line as strings\",\n\t\t\t \"example\", \"//writes a list of launch configuration into a file line-by-line\\nlist-launch-configurations | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\"\\n// appends \\\"New line\\\" into a file. \\nstr \\\"New line\\\" | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" -append\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write lines to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Append(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Whether to append given lines into file. Default value is false\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads lines from file identified by uri and writes them one-by-one into output pipe\",\n\t\t\t \"example\", \"//Displays alert with lines count\\nshow-alert [concat \\\"The number of lines is \\\"[read-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" | length | str]]\\n\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to read lines from. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (selectRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"select-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"exclude-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (asTableDataEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Converts its input to table data format, exactly the same as <code>get-table-data</code> returns.\",\n\t\t\t \"returns\", \"Table data.\",\n\t\t\t \"example\", \"get-log -levels error | as-table-data | write-csv-file \\\"workspace:/Project/file2.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Object(s) to convert from.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readPropertiesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given .properties file. Fails if file is not found or format is invalid\",\n\t\t\t \"returns\", \"ECL map with values from properties file\",\n\t\t\t \"example\", \"...get-item \\\"General Registers/pc\\\" | get-property \\\"values[\\\\\\'Value\\\\\\']\\\"\\n| matches [format \\\"%s.*\\\" [read-properties -uri \\\"file:/C:/Users/Administrator/Desktop/p.properties\\\" | get myKey]] | verify-true\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadProperties_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\n\t}", "@POST( CONTROLLER + METADATA_PATH )\n VersionedObjectKey createMetadataObject( @Body CreateMetadataObjectRequest request );", "@Test( expected = IllegalStateException.class )\n public void testSetPackageMetaData()\n {\n PathBuilder.instance().forReleaseIndexFile().setPackageMetaData( packageMetaData );\n }", "protected void parseDescription(XMPMetadata metadata)\n\t\t\tthrows XmpParsingException, XMLStreamException, XmpSchemaException,\n\t\t\tXmpUnknownValueTypeException, XmpExpectedRdfAboutAttribute,\n\t\t\tBadFieldValueException {\n\t\tnsMap.resetComplexBasicTypesDeclarationInSchemaLevel();\n\t\tint cptNS = reader.get().getNamespaceCount();\n\t\tHashMap<String, String> namespaces = new HashMap<String, String>();\n\t\tfor (int i = 0; i < cptNS; i++) {\n\t\t\tnamespaces.put(reader.get().getNamespacePrefix(i), reader.get()\n\t\t\t\t\t.getNamespaceURI(i));\n\t\t\tif (nsMap.isComplexBasicTypes(reader.get().getNamespaceURI(i))) {\n\t\t\t\t// System.out.println(\"in parseDesc method: prefix:\"+reader.get().getNamespacePrefix(i)+\", nsURI:\"+reader.get().getNamespaceURI(i));\n\t\t\t\tnsMap.setComplexBasicTypesDeclarationForLevelSchema(reader\n\t\t\t\t\t\t.get().getNamespaceURI(i), reader.get()\n\t\t\t\t\t\t.getNamespacePrefix(i));\n\t\t\t}\n\t\t}\n\t\t// Different treatment for PDF/A Extension schema\n\t\t// System.out.println(PDFAExtensionSchema.PDFAEXTENSION+\";\"+PDFAExtensionSchema.PDFAPROPERTY+\";\"+PDFAExtensionSchema.PDFASCHEMA);\n\t\tif (namespaces.containsKey(PDFAExtensionSchema.PDFAEXTENSION)) {\n\t\t\tif (namespaces.containsKey(PDFAExtensionSchema.PDFAPROPERTY)\n\t\t\t\t\t&& namespaces.containsKey(PDFAExtensionSchema.PDFASCHEMA)) {\n\t\t\t\tif (namespaces\n\t\t\t\t\t\t.containsValue(PDFAExtensionSchema.PDFAEXTENSIONURI)\n\t\t\t\t\t\t&& namespaces\n\t\t\t\t\t\t.containsValue(PDFAExtensionSchema.PDFAPROPERTYURI)\n\t\t\t\t\t\t&& namespaces\n\t\t\t\t\t\t.containsValue(PDFAExtensionSchema.PDFASCHEMAURI)) {\n\t\t\t\t\tPDFAExtensionSchema schema = metadata\n\t\t\t\t\t\t\t.createAndAddPDFAExtensionSchemaWithNS(namespaces);\n\t\t\t\t\ttreatDescriptionAttributes(metadata, schema);\n\t\t\t\t\tparseExtensionSchema(schema, metadata);\n\n\t\t\t\t} else {\n\t\t\t\t\tthrow new XmpUnexpectedNamespaceURIException(\n\t\t\t\t\t\t\t\"Unexpected namespaceURI in PDFA Extension Schema encountered\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new XmpUnexpectedNamespacePrefixException(\n\t\t\t\t\t\t\"Unexpected namespace Prefix in PDFA Extension Schema\");\n\t\t\t}\n\n\t\t} else {\n\t\t\t// TODO Considering first namespace is that corresponding to the\n\t\t\t// schema (see if it must be changed)\n\t\t\tString namespaceUri = reader.get().getNamespaceURI(0);\n\t\t\tString namespacePrefix = reader.get().getNamespacePrefix(0);\n\t\t\tXMPSchema schema = nsMap.getAssociatedSchemaObject(metadata, namespaceUri, namespacePrefix);\n\t\t\tif (schema != null) {\n\t\t\t\tnamespaces.remove(namespacePrefix);\n\t\t\t} else {\n\t\t\t\tschema = metadata.createAndAddDefaultSchema(namespacePrefix,namespaceUri);\n\t\t\t}\n\t\t\tfor (int i = 1; i < cptNS; i++) {\n\t\t\t\tschema.setAttribute(new Attribute(XMPSchema.NS_NAMESPACE,\n\t\t\t\t\t\t\"xmlns\", reader.get().getNamespacePrefix(i), reader.get().getNamespaceURI(i)));\n\t\t\t}\n\t\t\ttreatDescriptionAttributes(metadata, schema);\n\t\t\twhile (reader.get().nextTag() == XMLStreamReader.START_ELEMENT) {\n\t\t\t\tparseProperty(schema, metadata);\n\t\t\t}\n\t\t}\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "public void prepareForRun(OpenDefinitionsDocument doc) { }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tliveScoreEClass = createEClass(LIVE_SCORE);\n\t\tcreateEReference(liveScoreEClass, LIVE_SCORE__PREFEREDPLAYER);\n\t\tcreateEAttribute(liveScoreEClass, LIVE_SCORE__SALONNAME);\n\n\t\tpreferedPlayerEClass = createEClass(PREFERED_PLAYER);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__NAME);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__WON);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__PLAYINGS);\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__SPEC);\n\n statementEClass = createEClass(STATEMENT);\n createEReference(statementEClass, STATEMENT__DEF);\n createEReference(statementEClass, STATEMENT__OUT);\n createEReference(statementEClass, STATEMENT__IN);\n createEAttribute(statementEClass, STATEMENT__COMMENT);\n\n definitionEClass = createEClass(DEFINITION);\n createEAttribute(definitionEClass, DEFINITION__NAME);\n createEReference(definitionEClass, DEFINITION__PARAM_LIST);\n createEAttribute(definitionEClass, DEFINITION__TYPE);\n createEReference(definitionEClass, DEFINITION__EXPRESSION);\n\n paramListEClass = createEClass(PARAM_LIST);\n createEAttribute(paramListEClass, PARAM_LIST__PARAMS);\n createEAttribute(paramListEClass, PARAM_LIST__TYPES);\n\n outEClass = createEClass(OUT);\n createEReference(outEClass, OUT__EXP);\n createEAttribute(outEClass, OUT__NAME);\n\n inEClass = createEClass(IN);\n createEAttribute(inEClass, IN__NAME);\n createEAttribute(inEClass, IN__TYPE);\n\n typedExpressionEClass = createEClass(TYPED_EXPRESSION);\n createEReference(typedExpressionEClass, TYPED_EXPRESSION__EXP);\n createEAttribute(typedExpressionEClass, TYPED_EXPRESSION__TYPE);\n\n expressionEClass = createEClass(EXPRESSION);\n\n valueEClass = createEClass(VALUE);\n createEAttribute(valueEClass, VALUE__OP);\n createEReference(valueEClass, VALUE__EXP);\n createEReference(valueEClass, VALUE__STATEMENTS);\n createEAttribute(valueEClass, VALUE__NAME);\n createEReference(valueEClass, VALUE__ARGS);\n\n argEClass = createEClass(ARG);\n createEAttribute(argEClass, ARG__ARG);\n createEReference(argEClass, ARG__EXP);\n\n ifStatementEClass = createEClass(IF_STATEMENT);\n createEReference(ifStatementEClass, IF_STATEMENT__IF);\n createEReference(ifStatementEClass, IF_STATEMENT__THEN);\n createEReference(ifStatementEClass, IF_STATEMENT__ELSE);\n\n operationEClass = createEClass(OPERATION);\n createEReference(operationEClass, OPERATION__LEFT);\n createEAttribute(operationEClass, OPERATION__OP);\n createEReference(operationEClass, OPERATION__RIGHT);\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(metadataEClass, Metadata.class, \"Metadata\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMetadata_Gamename(), ecorePackage.getEString(), \"Gamename\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Shortname(), ecorePackage.getEString(), \"Shortname\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Timing(), ecorePackage.getEString(), \"Timing\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Adressing(), ecorePackage.getEString(), \"Adressing\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_CartridgeType(), ecorePackage.getEString(), \"CartridgeType\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_RomSize(), ecorePackage.getEString(), \"RomSize\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_RamSize(), ecorePackage.getEString(), \"RamSize\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Licensee(), ecorePackage.getEString(), \"Licensee\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Country(), ecorePackage.getEString(), \"Country\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Videoformat(), ecorePackage.getEString(), \"Videoformat\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Version(), ecorePackage.getEInt(), \"Version\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_IdeVersion(), ecorePackage.getEString(), \"IdeVersion\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "DocBook createDocBook();", "public synchronized MetadataModel<WebAppMetadata> getAnnotationMetadataModel() {\n if (webAppAnnMetadataModel == null) {\n FileObject ddFO = getDeploymentDescriptor();\n File ddFile = ddFO != null ? FileUtil.toFile(ddFO) : null;\n ProjectSourcesClassPathProvider cpProvider = project.getLookup().lookup(ProjectSourcesClassPathProvider.class);\n\n MetadataUnit metadataUnit = MetadataUnit.create(\n cpProvider.getProjectSourcesClassPath(ClassPath.BOOT),\n cpProvider.getProjectSourcesClassPath(ClassPath.COMPILE),\n cpProvider.getProjectSourcesClassPath(ClassPath.SOURCE),\n // XXX: add listening on deplymentDescriptor\n ddFile);\n webAppAnnMetadataModel = WebAppMetadataModelFactory.createMetadataModel(metadataUnit, false);\n }\n return webAppAnnMetadataModel;\n }", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\n\t\taddAnnotation\n\t\t (getJClass_Operations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"simple\"\n\t\t });\n\t}", "protected void addMetadataFieldsFromParameters() {\n for (Map.Entry<String, String> e: parameters.entrySet()) {\n if (e.getKey().startsWith(\"meta-\")) {\n String fieldName = e.getKey().substring(5);\n String fieldValue = e.getValue();\n currentDoc.addTextualMetadataField(fieldName, fieldValue, getDocWriter().metadataFieldType(false));\n }\n }\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tqueryExpressionEClass = createEClass(QUERY_EXPRESSION);\n\n\t\tvalueExpressionEClass = createEClass(VALUE_EXPRESSION);\n\n\t\tsearchConditionEClass = createEClass(SEARCH_CONDITION);\n\n\t\tqueryExpressionDefaultEClass = createEClass(QUERY_EXPRESSION_DEFAULT);\n\t\tcreateEAttribute(queryExpressionDefaultEClass, QUERY_EXPRESSION_DEFAULT__SQL);\n\n\t\tsearchConditionDefaultEClass = createEClass(SEARCH_CONDITION_DEFAULT);\n\t\tcreateEAttribute(searchConditionDefaultEClass, SEARCH_CONDITION_DEFAULT__SQL);\n\n\t\tvalueExpressionDefaultEClass = createEClass(VALUE_EXPRESSION_DEFAULT);\n\t\tcreateEAttribute(valueExpressionDefaultEClass, VALUE_EXPRESSION_DEFAULT__SQL);\n\t}", "@Override\r\n\tpublic String readMetadataFile(String packageName) {\n\t\treturn null;\r\n\t}", "public void createPackageContents() {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n calcEClass = createEClass(CALC);\n createEReference(calcEClass, CALC__EXPR);\n\n exprEClass = createEClass(EXPR);\n\n bitShiftExprEClass = createEClass(BIT_SHIFT_EXPR);\n createEReference(bitShiftExprEClass, BIT_SHIFT_EXPR__CHILDREN);\n createEAttribute(bitShiftExprEClass, BIT_SHIFT_EXPR__OPERATORS);\n\n bitShiftExprChildEClass = createEClass(BIT_SHIFT_EXPR_CHILD);\n\n additiveExprEClass = createEClass(ADDITIVE_EXPR);\n createEReference(additiveExprEClass, ADDITIVE_EXPR__CHILDREN);\n createEAttribute(additiveExprEClass, ADDITIVE_EXPR__OPERATORS);\n\n additiveExprChildEClass = createEClass(ADDITIVE_EXPR_CHILD);\n\n multiplicativeExprEClass = createEClass(MULTIPLICATIVE_EXPR);\n createEReference(multiplicativeExprEClass, MULTIPLICATIVE_EXPR__CHILDREN);\n createEAttribute(multiplicativeExprEClass, MULTIPLICATIVE_EXPR__OPERATORS);\n\n multiplicativeExprChildEClass = createEClass(MULTIPLICATIVE_EXPR_CHILD);\n\n numberEClass = createEClass(NUMBER);\n createEAttribute(numberEClass, NUMBER__VALUE);\n\n // Create enums\n bitShiftOpEEnum = createEEnum(BIT_SHIFT_OP);\n additiveOpEEnum = createEEnum(ADDITIVE_OP);\n multiplicativeOpEEnum = createEEnum(MULTIPLICATIVE_OP);\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmealyMachineEClass = createEClass(MEALY_MACHINE);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__INITIAL_STATE);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__STATES);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__INPUT_ALPHABET);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__OUTPUT_ALPHABET);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__TRANSITIONS);\n\n\t\tstateEClass = createEClass(STATE);\n\t\tcreateEAttribute(stateEClass, STATE__NAME);\n\n\t\talphabetEClass = createEClass(ALPHABET);\n\t\tcreateEAttribute(alphabetEClass, ALPHABET__CHARACTERS);\n\n\t\ttransitionEClass = createEClass(TRANSITION);\n\t\tcreateEReference(transitionEClass, TRANSITION__SOURCE_STATE);\n\t\tcreateEReference(transitionEClass, TRANSITION__TARGET_STATE);\n\t\tcreateEAttribute(transitionEClass, TRANSITION__INPUT);\n\t\tcreateEAttribute(transitionEClass, TRANSITION__OUTPUT);\n\t}", "@NotNull\n\tpublic StringBuilder getMetadata() {\n\t\tStringBuilder metadata = new StringBuilder();\n\t\tif (title != null)\n\t\t\tmetadata.append(title).append(\" \");\n\t\tif (authors != null)\n\t\t\tfor (String author : authors)\n\t\t\t\tmetadata.append(author).append(\" \");\n\t\tif (miscMetadata != null)\n\t\t\tfor (String metadata0 : miscMetadata)\n\t\t\t\tmetadata.append(metadata0).append(\" \");\n\t\treturn metadata;\n\t}" ]
[ "0.6427908", "0.62970304", "0.62213856", "0.6206541", "0.6164856", "0.6164856", "0.60433507", "0.6031446", "0.5953341", "0.58867383", "0.5808649", "0.57930684", "0.572104", "0.57173496", "0.5715269", "0.57107776", "0.5705811", "0.5705503", "0.5684943", "0.568388", "0.5679351", "0.5674628", "0.565351", "0.5633034", "0.56068385", "0.5579611", "0.55782557", "0.55674607", "0.55640996", "0.55615723", "0.55133486", "0.54927236", "0.5450421", "0.5436444", "0.5384366", "0.53789556", "0.5363183", "0.53610927", "0.5357747", "0.53567255", "0.535275", "0.53480154", "0.5333808", "0.53318685", "0.5325353", "0.53227496", "0.53225857", "0.53199124", "0.53076214", "0.52921975", "0.52869666", "0.5285019", "0.52705574", "0.5266885", "0.52637076", "0.5244584", "0.5244584", "0.52361685", "0.52345353", "0.52027375", "0.5200073", "0.5195089", "0.51920956", "0.51772416", "0.5175546", "0.51701283", "0.5152626", "0.5151263", "0.5150584", "0.5134191", "0.5131041", "0.51272804", "0.51263887", "0.5106937", "0.5102036", "0.50988764", "0.5089371", "0.50891995", "0.50843006", "0.5084221", "0.5082893", "0.5077029", "0.507683", "0.50768244", "0.5070553", "0.50652164", "0.5063111", "0.5062889", "0.5062667", "0.5060556", "0.50571525", "0.50416625", "0.5040598", "0.503126", "0.5029722", "0.5015325", "0.5015149", "0.5014071", "0.50117826", "0.50116044" ]
0.6740146
0
Merge all the linear XHTML into a single document.
public Document mergeLinearXHTML() throws IOException { Iterator<ManifestItem> items = linearXHTML().iterator(); if(!items.hasNext()) { return null; } Document doc = checkNotNull(items.next().document()); Element body = doc.body(); while(items.hasNext()) { Document curr = checkNotNull(items.next().document()); for(Node node : curr.body().childNodes()) { body.appendChild(node.clone()); } } return doc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Document doMerge(Document[] docs) throws AbstractXmlMergeException\n {\n Document originalDoc = docs[0];\n\n for (int i = 1; i < docs.length; i++)\n {\n\n if (!m_rootMatcher.matches(originalDoc.getRootElement(), docs[i].getRootElement()))\n {\n throw new IllegalArgumentException(\"Root elements do not match.\");\n }\n\n Document output = new Document();\n if (originalDoc.getDocType() != null)\n {\n output.setDocType((DocType) originalDoc.getDocType().clone());\n }\n output.setRootElement(new Element(\"root\"));\n\n m_rootMergeAction.perform(originalDoc.getRootElement(), docs[i].getRootElement(),\n output.getRootElement());\n\n Element root = (Element) output.getRootElement().getChildren().get(0);\n root.detach();\n\n originalDoc.setRootElement(root);\n }\n\n return originalDoc;\n }", "public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }", "public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }", "public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }", "public void openXml() throws ParserConfigurationException, TransformerConfigurationException, SAXException {\n\n SAXTransformerFactory saxTransformerFactory = (SAXTransformerFactory) SAXTransformerFactory.newInstance();\n transformer = saxTransformerFactory.newTransformerHandler();\n\n // pretty XML output\n Transformer serializer = transformer.getTransformer();\n serializer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n serializer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setResult(result);\n transformer.startDocument();\n transformer.startElement(null, null, \"inserts\", null);\n }", "private void prepDocument() {\n if (body == null) {\n body = document.appendElement(\"body\");\n }\n\n body.attr(\"id\", \"readabilityBody\");\n\n Elements frames = document.getElementsByTag(\"frame\");\n if (frames.size() > 0) {\n LOG.error(\"Frames. Can't deal. Write code later to look at URLs and fetch\");\n impossible = true;\n return;\n }\n\n Elements stylesheets = document.getElementsByTag(\"style\");\n stylesheets.remove();\n stylesheets = document.select(\"link[rel='stylesheet']\");\n stylesheets.remove();\n\n /* Turn all double br's into p's */\n /*\n * Note, this is pretty costly as far as processing goes. Maybe optimize later.\n */\n handlePP();\n handleDoubleBr();\n fontsToSpans();\n }", "public void build() throws IOException {\n if (packageWriter == null) {\n //Doclet does not support this output.\n return;\n }\n build(layoutParser.parseXML(ROOT), contentTree);\n }", "public void writeCleanDocument(final OutputStream os, final boolean pretty) throws IOException {\n Document doc = mergedDocument();\n doc.outputSettings().escapeMode(Entities.EscapeMode.xhtml);\n doc.outputSettings().syntax(Document.OutputSettings.Syntax.xml);\n doc.quirksMode(Document.QuirksMode.noQuirks);\n if(pretty) {\n doc.outputSettings().prettyPrint();\n }\n\n os.write(doc.toString().getBytes(StandardCharsets.UTF_8));\n os.flush();\n }", "public void transformToSecondXml();", "public void close(){\r\n Transformer t = null;\r\n\t\ttry {\r\n\t\t\tt = TransformerFactory.newInstance().newTransformer();\r\n\t\t\tt.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\tt.setOutputProperty(OutputKeys.INDENT, \"yes\"); \r\n\t\t\tt.transform(new DOMSource(document), new StreamResult(new FileOutputStream(XMLFileName))); \t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "public void commit() {\n\t\ttry {\n\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\tDOMSource domSource = new DOMSource(document);\n\t\t\tStreamResult streamResult = new StreamResult(new File(fileName));\n\t\t\ttransformer.transform(domSource, streamResult);\n\t\t\t//Reload nodes list\n\t\t\tnodes = document.getDocumentElement().getChildNodes();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public abstract NiceXWPFDocument merge(NiceXWPFDocument source, Iterator<NiceXWPFDocument> mergedIterator,\n XWPFRun location) throws Exception;", "Document toXml() throws ParserConfigurationException, TransformerException, IOException;", "public void writeDocumentToOutput() {\n log.debug(\"Statemend of XML document...\");\r\n // writeDocumentToOutput(root,0);\r\n log.debug(\"... end of statement\");\r\n }", "public PoaMaestroMultivaloresHTML() {\n/* 253 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 255 */ buildDocument();\n/* */ }", "private void createDOMTree(){\n\t\t\tElement rootEle = dom.createElement(\"html\");\r\n\t\t\tdom.appendChild(rootEle);\r\n\t\t\t\r\n\t\t\t//\t\t\tcreates <head> and <title> tag\r\n\t\t\tElement headEle = dom.createElement(\"head\");\r\n\t\t\tElement titleEle = dom.createElement(\"title\");\r\n\t\t\t\r\n\t\t\t//\t\t\tset value to <title> tag\r\n\t\t\tText kuerzelText = dom.createTextNode(\"Auswertung\");\r\n\t\t\ttitleEle.appendChild(kuerzelText);\r\n\t\t\theadEle.appendChild(titleEle);\r\n\t\t\t\r\n\t\t\tElement linkEle = dom.createElement(\"link\");\r\n\t\t\tlinkEle.setAttribute(\"rel\", \"stylesheet\");\r\n\t\t\tlinkEle.setAttribute(\"type\", \"text/css\");\r\n\t\t\tlinkEle.setAttribute(\"href\", \"./format.css\");\r\n\t\t\theadEle.appendChild(linkEle);\r\n\t\t\t\r\n\t\t\trootEle.appendChild(headEle);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tElement bodyEle = dom.createElement(\"body\");\r\n\t\t\tElement divEle = dom.createElement(\"div\");\r\n\t\t\tdivEle.setAttribute(\"id\", \"cont\");\r\n\t\t\t\r\n\t\t\tVector<String> tmp = myData.get(0);\r\n\t\t\tElement h2Ele = dom.createElement(\"h2\");\r\n\t\t\tString h1Str = \"\";\r\n\t\t\tfor(Iterator i = tmp.iterator(); i.hasNext(); )\r\n\t\t\t{\r\n\t\t\t\th1Str = h1Str + (String)i.next() + \" \";\r\n\t\t\t}\r\n\t\t\tText aText = dom.createTextNode(h1Str);\r\n\t\t\th2Ele.appendChild(aText);\r\n\t\t\tdivEle.appendChild(h2Ele);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tElement tableEle = dom.createElement(\"table\");\r\n//\t\t\ttableEle.setAttribute(\"border\", \"1\");\r\n\t\t\t\r\n\t\t\ttmp = myData.get(0);\r\n\t\t\tElement trHeadEle = createTrHeadElement(tmp);\r\n\t\t\ttableEle.appendChild(trHeadEle);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tIterator it = myData.iterator();\r\n\t\t\twhile(it.hasNext()) {\r\n\t\t\t\ttmp = (Vector<String>)it.next();\r\n\t\t\t\tElement trEle = createTrElement(tmp);\r\n\t\t\t\ttableEle.appendChild(trEle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdivEle.appendChild(tableEle);\r\n\t\t\tbodyEle.appendChild(divEle);\r\n\t\t\trootEle.appendChild(bodyEle);\r\n\t\t\t\r\n\t\t}", "private static Nodes downloadXMLDocument(\n URL source, String xpointer, Builder builder, ArrayList baseURLs,\n String accept, String acceptLanguage, String parentLanguage) \n throws IOException, ParsingException, XIncludeException, \n XPointerSyntaxException, XPointerResourceException {\n\n String base = source.toExternalForm();\n if (xpointer == null && baseURLs.indexOf(base) != -1) {\n throw new InclusionLoopException(\n \"Tried to include the already included document \" + base +\n \" from \" + baseURLs.get(baseURLs.size()-1), (String) baseURLs.get(baseURLs.size()-1));\n } \n \n URLConnection uc = source.openConnection();\n setHeaders(uc, accept, acceptLanguage);\n InputStream in = new BufferedInputStream(uc.getInputStream());\n Document doc;\n try {\n doc = builder.build(in, source.toExternalForm());\n }\n finally {\n in.close();\n }\n \n resolveInPlace(doc, builder, baseURLs); \n Nodes included;\n if (xpointer != null && xpointer.length() != 0) {\n included = XPointer.query(doc, xpointer); \n // fill in lang attributes here\n for (int i = 0; i < included.size(); i++) {\n Node node = included.get(i);\n // Current implementation can only select elements\n Element top = (Element) node;\n Attribute lang = top.getAttribute(\"lang\", \n \"http://www.w3.org/XML/1998/namespace\");\n if (lang == null) {\n String childLanguage = getXMLLangValue(top);\n if (!parentLanguage.equals(childLanguage)) {\n top.addAttribute(new Attribute(\"xml:lang\", \n \"http://www.w3.org/XML/1998/namespace\", \n childLanguage));\n }\n }\n }\n }\n else {\n included = new Nodes();\n for (int i = 0; i < doc.getChildCount(); i++) {\n Node child = doc.getChild(i);\n if (!(child instanceof DocType)) {\n included.append(child);\n } \n }\n }\n // so we can detach the old root if necessary\n doc.setRootElement(new Element(\"f\")); \n for (int i = 0; i < included.size(); i++) {\n Node node = included.get(i);\n // Take account of xml:base attribute, which we normally \n // don't do when detaching\n String noFragment = node.getBaseURI();\n if (noFragment.indexOf('#') >= 0) {\n noFragment = noFragment.substring(0, noFragment.indexOf('#'));\n }\n node.detach();\n if (node instanceof Element) {\n ((Element) node).setBaseURI(noFragment);\n }\n } \n \n return included;\n \n }", "protected void handleEmbededOfficeDoc(\n DirectoryEntry dir, XHTMLContentHandler xhtml)\n throws IOException, SAXException, TikaException {\n // Is it an embedded OLE2 document, or an embedded OOXML document?\n try {\n Entry ooxml = dir.getEntry(\"Package\");\n\n // It's OOXML\n TikaInputStream ooxmlStream = TikaInputStream.get(\n new DocumentInputStream((DocumentEntry)ooxml)\n );\n ZipContainerDetector detector = new ZipContainerDetector();\n MediaType type = detector.detect(ooxmlStream, new Metadata());\n handleEmbeddedResource(ooxmlStream, null, type.toString(), xhtml);\n return;\n } catch(FileNotFoundException e) {\n // It's regular OLE2\n }\n\n // Need to dump the directory out to a new temp file, so\n // it's stand along\n POIFSFileSystem newFS = new POIFSFileSystem();\n copy(dir, newFS.getRoot());\n\n File tmpFile = File.createTempFile(\"tika\", \".ole2\");\n try {\n FileOutputStream out = new FileOutputStream(tmpFile);\n newFS.writeFilesystem(out);\n out.close();\n\n // What kind of document is it?\n Metadata metadata = new Metadata();\n POIFSDocumentType type = POIFSDocumentType.detectType(dir);\n metadata.set(Metadata.CONTENT_TYPE, type.getType().toString());\n\n // Trigger for the document itself \n TikaInputStream embedded = TikaInputStream.get(tmpFile);\n try {\n if (extractor.shouldParseEmbedded(metadata)) {\n extractor.parseEmbedded(embedded, xhtml, metadata);\n }\n } finally {\n embedded.close();\n }\n } finally {\n tmpFile.delete();\n }\n }", "@Override\r\n\tpublic void startDocument() throws SAXException\r\n\t{\r\n\t\t//\t\ttry \n\t\t//\t\t{\n\t\t//\t\t\tif (task.isMergeSourceFiles())\r\n\t\t//\t\t\t{\r\n\t\t//\t\t\t\t//\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\telse\r\n\t\t//\t\t\t{\r\n\t\t//\t\t\t\tmultiFileStartDocument();\r\n\t\t//\t\t\t}\n\t\t//\t\t} \n\t\t//\t\tcatch (Exception e) \n\t\t//\t\t{\n\t\t//\t\t\tthrow new SAXException(\"Exception on starting document \", e);\n\t\t//\t\t}\r\n\t}", "private void parseXMLDocument(final Document doc)\r\n {\r\n Node docRoot = doc.getDocumentElement();\r\n StringBuilder indent = new StringBuilder();\r\n\r\n fullXmlTree.append(\"<\" + docRoot.getNodeName() + \">\\n\");\r\n searchTreeFromBranch(docRoot, 0, indent);\r\n fullXmlTree.append(\"</\" + docRoot.getNodeName() + \">\\n\");\r\n\r\n if (getPrintFullTree())\r\n {\r\n printFullTree();\r\n }\r\n }", "@SuppressWarnings(\"PMD.AvoidDuplicateLiterals\")\n public XML getFixedResult() {\n final List<String> packages = this.skeleton.xpath(\"//package/@id\");\n String finalres = \"\";\n if (this.tempres.toString().indexOf(\"<package\") > 6) {\n finalres = this.tempres.toString().substring(\n 0,\n this.tempres.toString().indexOf(\"<package\") - 6\n );\n }\n for (final String apackage : packages) {\n finalres = finalres.concat(\n String.format(\n \" <package id=\\\"%s\\\">\\n\",\n apackage\n )\n );\n final List<String> classes = this.skeleton.xpath(\n String.format(\n \"//package[@id ='%s']/class/@id\",\n apackage\n )\n );\n for (final String aclass : classes) {\n finalres = this.calc(aclass, finalres);\n }\n finalres = finalres.concat(\" </package>\\n\");\n }\n if (this.tempres.toString().indexOf(\"</app\") > 1) {\n finalres = finalres.concat(\n this.tempres.toString().substring(\n this.tempres.toString().indexOf(\"</app\")\n )\n );\n }\n return new XMLDocument(finalres);\n }", "private void loadFromDoc(Document data) {\n if (total == null) { total = data; return; }\n\tNodeList tree = data.getDocumentElement().getChildNodes();\n\tfor (int i = 0; i < tree.getLength(); i++) {\n Node totroot = total.getDocumentElement();\n totroot.insertBefore(total.importNode(tree.item(i), true), null);\n }\n }", "public void endDocument() throws SAXException {\n\t\tSortedSet<Integer> parents = new TreeSet<Integer>();\n\t\tfor (int i : this.idMap.keySet()) {\n\t\t\tparents.add(Integer.parseInt(this.idMap.get(i).get(1)));\n\t\t}\n\n\t\tmapChildren(parents);\n\n\t\tif (!parents.isEmpty()) {\n\t\t\trecursion(parents.first());\n\t\t}\n\t\tthis.string.append(\"</\" + this.idMap.get(this.root).get(2) + \">\");\n\n\t\tthis.string.append(\"</schema>\");\n\n\t}", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\ttry {\n\t\t\treset();\n\n\t\t\tif (writeXmlDecl) {\n\t\t\t\tString e = \"\";\n\t\t\t\tif (encoding != null) {\n\t\t\t\t\te = \" encoding=\\\"\" + encoding + '\\\"';\n\t\t\t\t}\n\n\t\t\t\twriteXmlDecl(\"<?xml version=\\\"1.0\\\"\" + e + \" standalone=\\\"yes\\\"?>\");\n\t\t\t}\n\n\t\t\tif (header != null) {\n\t\t\t\twrite(header);\n\t\t\t}\n\n\t\t\tsuper.startDocument();\n\t\t} catch (IOException e) {\n\t\t\tthrow new SAXException(e);\n\t\t}\n\t}", "public XWPFDocument startConversion() {\n\n convertParagraphs(docx);\n convertFooter(docx);\n convertHeader(docx);\n convertTables(docx);\n updateStylesToNewFont();\n\n\n return docx;\n }", "private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public IndicadoresEficaciaHTML() {\n/* 163 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 165 */ buildDocument();\n/* */ }", "public String parserXHtml(String html) {\r\n\t\torg.jsoup.nodes.Document document = Jsoup.parseBodyFragment(html);\r\n\t\tdocument.outputSettings().syntax(org.jsoup.nodes.Document.OutputSettings.Syntax.xml);\r\n\t\tdocument.outputSettings().charset(\"UTF-8\");\r\n\t\treturn document.toString();\r\n\t}", "public static String saveDomToString(Document doc, String encoding, boolean bIndent,String output)\n throws Exception {\n if (doc == null) {\n throw (new Exception(\"No_dom_to_save\"));\n }\n // find out how we should form output\n // make sure we have some encoding\n if (encoding == null) {\n encoding = doc.getXmlEncoding();\n }\n if (encoding == null) {\n encoding = default_encoding;\n }\n\n try {\n DOMSource xmlDomSource = new DOMSource(doc);\n\n // make an identity transformation\n TransformerFactory transFac = TransformerFactory.newInstance();\n Transformer trans = transFac.newTransformer();\n // set transformatoion properties\n // this is an identity transformation\n // and no properties are set exept defaults\n\n //NOTE: we have a problem with HTML5 which wants a simple header: \n // <!DOCTYPE HTML>\n // we assume that the template is set accordingly\n // This will not give us PublicID and SystemID as null\n // we will have to detect this situastion before we return\n // the text, see below, after transformation\n\n // problem:\n // this will kill other transformed input that make html root\n // use explicit: html5 output option ? (yes)\n\n DocumentType dt = doc.getDoctype();\n String pid = null;\n String sid = null;\n String name = null;\n if (dt != null) {\n pid = dt.getPublicId();\n sid = dt.getSystemId();\n name = dt.getName();\n }\n\n boolean is_HTML5 = false;\n output=output.toLowerCase();\n switch(output){\n case Options.TEXT:\n trans.setOutputProperty(OutputKeys.MEDIA_TYPE, \"text/plain; charset=\" + encoding);\n break;\n \n case Options.XML:\n trans.setOutputProperty(OutputKeys.METHOD, Options.XML);\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\n if (pid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, pid);\n }\n if (sid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, sid);\n }\n break;\n \n case Options.XHTML:\n trans.setOutputProperty(OutputKeys.METHOD, Options.XML);\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n if (pid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, pid);\n }\n if (sid != null) {\n trans.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, sid);\n }\n break;\n \n case Options.HTML5:\n case Options.HTML:\n trans.setOutputProperty(OutputKeys.METHOD, Options.XML);\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n is_HTML5 = true;\n break;\n \n default:\n throw new Exception(\"bad output type: \" + output);\n }\n \n\n trans.setOutputProperty(OutputKeys.STANDALONE, \"yes\");\n trans.setOutputProperty(OutputKeys.ENCODING, encoding);\n\n if (bIndent) {\n trans.setOutputProperty(OutputKeys.INDENT, \"yes\");\n trans.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"0\");\n } else {\n // use no to avoid prince-problems with toc targets ?????\n trans.setOutputProperty(OutputKeys.INDENT, \"no\");\n }\n\n java.io.StringWriter out = new java.io.StringWriter();\n java.io.BufferedWriter bos = new java.io.BufferedWriter(out);\n StreamResult outStream = new StreamResult(bos);\n trans.transform(xmlDomSource, outStream);\n bos.flush();\n\n // this is where we can clean up a doctype\n // prepared for html 5\n\n String result = out.toString().trim();\n if (is_HTML5 && ( (result.startsWith(\"<html\")) \n || (result.startsWith(\"<HTML\")))) {\n result = \"<!DOCTYPE HTML>\\n\" + result;\n }\n\n return result;\n } catch (java.io.UnsupportedEncodingException ex) {\n System.out.println(\"domer:saveDomToString. \" + ex.getMessage());\n throw new Exception(ex.getMessage());\n } catch (TransformerConfigurationException tce) {\n System.out.println(\"domer:saveDomToString. \" + tce.getMessage());\n throw new Exception(tce.getMessage());\n } catch (TransformerException te) {\n System.out.println(\"domer:saveDomToString. \" + te.getMessage());\n throw new Exception(te.getMessage());\n } catch (FactoryConfigurationError f) {\n System.out.println(\"domer:saveDomToString. \" + f.getMessage());\n throw new Exception(f.getMessage());\n } catch (IllegalArgumentException iae) {\n System.out.println(\"domer:saveDomToString. \" + iae.getMessage());\n throw new Exception(iae.getMessage());\n } catch (Exception e) {\n System.out.println(\"domer:saveDomToString. \" + e.getMessage());\n throw new Exception(e.getMessage());\n }\n }", "public AdmClientePreferencialHTML() {\n/* 191 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 193 */ buildDocument();\n/* */ }", "protected void doWriteStartDocument(String version, String encoding,\n String standAlone)\n throws XMLStreamException\n {\n if (mCheckStructure) {\n if (mAnyOutput) {\n reportNwfStructure(\"Can not output XML declaration, after other output has already been done.\");\n }\n }\n\n mAnyOutput = true;\n\n if (mConfig.willValidateContent()) {\n // !!! 06-May-2004, TSa: Should validate encoding?\n /*if (encoding != null) {\n }*/\n if (version != null && version.length() > 0) {\n if (!(version.equals(XmlConsts.XML_V_10_STR)\n || version.equals(XmlConsts.XML_V_11_STR))) {\n reportNwfContent(\"Illegal version argument ('\"+version\n +\"'); should only use '\"+XmlConsts.XML_V_10_STR\n +\"' or '\"+XmlConsts.XML_V_11_STR+\"'\");\n }\n }\n }\n\n if (version == null || version.length() == 0) {\n version = WstxOutputProperties.DEFAULT_XML_VERSION;\n }\n\n /* 04-Feb-2006, TSa: Need to know if we are writing XML 1.1\n * document...\n */\n mXml11 = XmlConsts.XML_V_11_STR.equals(version);\n if (mXml11) {\n mWriter.enableXml11();\n }\n\n if (encoding != null && encoding.length() > 0) {\n /* 03-May-2005, TSa: But what about conflicting encoding? Let's\n * only update encoding, if it wasn't set.\n */\n if (mEncoding == null || mEncoding.length() == 0) {\n mEncoding = encoding;\n }\n }\n try {\n mWriter.writeXmlDeclaration(version, encoding, standAlone);\n } catch (IOException ioe) {\n throw new WstxIOException(ioe);\n }\n }", "private void doLayout()\n \t{\n \t\tModel model = doc.getModel();\n \t\tExtendedLayoutModel sbase = (ExtendedLayoutModel)model.getExtension(LayoutConstants.namespaceURI);\n \t\tif (sbase != null)\n \t\t{\n \t\t\tfor (Layout l : sbase.getListOfLayouts())\n \t\t\t{\n \t\t\t\t// TODO: list of compartment glyphs, text glyphs, etc...\n \t\t\t\tfor (SpeciesGlyph g : l.getListOfSpeciesGlyphs())\n \t\t\t\t{\n \t\t\t\t\tString sid = g.getSpecies();\n \t\t\t\t\tPeerSpecies sbr = getSpeciesPeer(sid);\n \t\t\t\t\tif (sbr != null) {\n \t\t\t\t\t\tsbr.setSpeciesGlyph(g);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "public static void outputXMLdoc() throws Exception {\n // transform the Document into a String\n DOMSource domSource = new DOMSource(doc);\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer transformer = tf.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n transformer.setOutputProperty(OutputKeys.ENCODING,\"UTF-8\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n java.io.StringWriter sw = new java.io.StringWriter();\n StreamResult sr = new StreamResult(sw);\n transformer.transform(domSource, sr);\n String xml = sw.toString();\n\n\tSystem.out.println(xml);\n\n }", "public void test446019() throws Exception\n {\n // Info: Doctype given is \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n // Info: Document content looks like XHTML 1.0 Transitional\n // No warnings or errors were found.\n\n executeTidyTest(\"446019.xhtml\");\n\n assertLogContains(\"XHTML 1.0 Transitional\");\n }", "public abstract StringBuffer toXML ();", "public void startDocument() {\n\t\t\tif (isVerbose()) {\n\t\t\t\tlogInfo(\"start\", \"\");\n\t\t\t\tindent();\n\t\t\t}\n\n\t\t\t_attributes.clear();\n\t\t\t_root = null;\n\t\t}", "@Override\n\t\t\t\tpublic void startDocument() throws SAXException {\n\t\t\t\t\tsuper.startDocument();\n\t\t\t\t\tbuilder = new StringBuilder();\n\t\t\t\t}", "private static void clearDoc() {\r\n\t\ttry {\r\n\t\t\tdoc.remove(0, doc.getLength());\r\n\t\t} catch (BadLocationException e) {\r\n\t\t}\r\n\t}", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\tsuper.startDocument();\n\t\tbuilder = new StringBuilder();\n\t}", "public void startDocument() throws IOException {\n FacesContext context = FacesContext.getCurrentInstance();\n UIViewRoot viewRoot = context.getViewRoot();\n HtmlPage page = FacesUtils.getHtmlPage(viewRoot);\n if (page == null || !page.isRendered()) {\n HtmlPageRenderer renderer = getHtmlPageRenderer(context);\n if (renderer != null) {\n renderer.encodePageBegin(context, viewRoot);\n }\n }\n }", "public void startDocument()\n throws SAXException {\n newContent = new StringBuffer();\n // TODO: what is the proper way to set this?\n newContent.append(\"<?xml version=\\\"1.0\\\"?>\");\n }", "public abstract StringBuffer toXML();", "protected void assembleDocument() {\n\n // Create the missive\n this.createMissive();\n }", "public String createXMLmarkup(String documentId,TextLabels labels) {\n\t// create vector of labels with their start and end positions\n\tVector types = new Vector();\n\tfor(Iterator i=labels.getTypes().iterator(); i.hasNext(); ){\n\t String type = (String)i.next();\n\t for(Span.Looper j=labels.instanceIterator(type, documentId); j.hasNext(); ) {\n\t\tSpan s = j.nextSpan();\n\t\tVector l = new Vector();\n\t\tl.add(type);\n\t\tint st = s.documentSpanStartIndex();\n\t\tInteger start = new Integer(st);\n\t\tint e = st + s.size(); \n\t\tInteger end = new Integer(e);\n\t\tl.add(start);\n\t\tl.add(end);\n\t\tl.add(s);\n\t\ttypes.add(l);\n\t }\n\t}\n\t//Sort Labels so that there are no overlapping labels and longest spans are on outside\n\tVector newTypes = new Vector();\n\tnewTypes.add((Vector)types.get(0));\n\tboolean flag = true;\n\tfor(int x=1; x<types.size(); x++) {\n\t int curStart = ((Integer)(((Vector)types.get(x)).get(1))).intValue();\n\t int curEnd = ((Integer)(((Vector)types.get(x)).get(2))).intValue();\n\t flag = true;\n\t for(int y=0; y<newTypes.size(); y++){\n\t\tint prevStart = ((Integer)(((Vector)newTypes.get(y)).get(1))).intValue();\n\t\t int prevEnd = ((Integer)(((Vector)newTypes.get(y)).get(2))).intValue();\n\t\t if(curStart > prevStart && curStart < prevEnd && curEnd > prevEnd){\n\t\t\tflag = false;\n\t\t\tbreak;\n\t\t }\n\t }\n\t //add type to array if no conflicts in order\n\t if(flag) {\n\t\tboolean flag2 = true;\n\t\tfor(int i=0; i<newTypes.size(); i++){\n\t\t int prevStart = ((Integer)(((Vector)newTypes.get(i)).get(1))).intValue();\n\t\t int prevEnd = ((Integer)(((Vector)newTypes.get(i)).get(2))).intValue();\n\t\t if(curStart < prevStart || (curStart == prevStart && curEnd > prevEnd)) {\n\t\t\tnewTypes.insertElementAt((Vector)types.get(x),i);\n\t\t\tflag2 = false;\n\t\t\tbreak;\n\t\t } \t\t\t\n\t\t}\n\t\tif(flag2)\n\t\t newTypes.add((Vector)types.get(x));\n\t }\n\t}\n\tVector orderedMarkers = new Vector();\n\tVector previousEnd = new Vector();\n\tint la = 0;\n\tInteger high = new Integer(la);\n\tpreviousEnd.add(high);\n\torderedMarkers = createOrderedMarkers(newTypes, orderedMarkers, previousEnd);\n\tfor(int a=0; a<orderedMarkers.size(); a++) {\n\t String t = ((String)(((Vector)orderedMarkers.get(a)).get(0)));\n\t int start = ((Integer)(((Vector)orderedMarkers.get(a)).get(1))).intValue();\n\t //System.out.println(t + \": \" + start);\n\t}\n\t//Embed Labels in TextBase\n\tStringBuffer buf = new StringBuffer(\"\");\n\tString source = labels.getTextBase().documentSpan(documentId).asString();\n\tint currentPos = 0;\n\tfor(int i=0; i<orderedMarkers.size(); i++) { \n\t String t = ((String)(((Vector)orderedMarkers.get(i)).get(0)));\n\t //int pos = ((Integer)(((Vector)orderedMarkers.get(i)).get(1))).intValue();\n\t Span s = ((Span)(((Vector)orderedMarkers.get(i)).get(2)));\n\t int pos;\n\t if(t.startsWith(\"</\")){\n\t\tif (s.documentSpanStartIndex()+s.size() < s.documentSpan().size()){\n\t\t\tpos = s.documentSpan().subSpan( s.documentSpanStartIndex()+s.size(), 1).getTextToken(0).getLo();\t\t\n\t\t}else{\n\t\t pos = s.documentSpan().getTextToken(s.documentSpan().size()-1).getHi();\n\t\t}\n\t } else {\n\t\tif (s.documentSpanStartIndex() < s.documentSpan().size()){\n\t\t\tpos = s.documentSpan().subSpan( s.documentSpanStartIndex(), 1).getTextToken(0).getLo();\n\t\t}else{\n\t\t\tpos = s.documentSpan().getTextToken(s.documentSpan().size()-1).getHi();\n\t\t}\n\t }\n\t if(pos >= 0 && pos > currentPos) {\n\t\tbuf.append( source.substring(currentPos, pos) );\n\t\tcurrentPos = pos;\n\t }\n\t buf.append(t);\n\t}\n\treturn buf.toString();\n\t//return \"Not Yet\";\n }", "public RtfDocument optimize()\n {\n m_stylesheet = m_doc.getStyleSheet();\n\n // RTF files with Wordpad may not have a stylesheet.\n // m_defaultParaProperties = m_stylesheet.getStyle(0).getTextProperties();\n\n optimizeDocument(m_doc);\n\n return m_doc;\n }", "public DOECorpus loadFromHTML() {\n\t\tFile[] files = getFileList();\n\t\t\n\t\tSystem.out.println(\"Found \" + files.length + \" documents in \" + this.sourceDir);\n\t\tSystem.out.println(\"Parsing their contents...\");\n\t\tint totalLineCount = 0;\n\t\t\n\t\tDOECorpus corpus = new DOECorpus();\n\t\t\n\t\tfor(File file : files) {\n\t\t\ttry {\n\t\t\t\tDocument htmlDoc = Jsoup.parse(file, null);\n\t\t\t\tString originalLocation = htmlDoc.location();\n\t\t\t\tString shortTitle = htmlDoc.title();\n\t\t\t\tString shortShortTitle = \"\";\n\t\t\t\tString cameronNumber = \"\";\n\t\t\t\t\n\t\t\t\tDOECorpusDocument corpusDoc = new DOECorpusDocument(shortTitle, shortShortTitle, cameronNumber, originalLocation);\n\t\t\t\t\t\t\n\t\t\t\tElements paragraphElements = htmlDoc.select(\"p\");\n\t\t\t\tDOECorpusLine lineBefore = null;\n\t\t\t\t\n\t\t\t\tfor(Element p : paragraphElements) {\n\t\t\t\t\tString text = p.text();\n\t\t\t\t\t\n\t\t\t\t\tif(ignoreLine(text))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\telse if(text.startsWith(SHORT_SHORT_TITLE))\n\t\t\t\t\t\tshortShortTitle = text.replace(SHORT_SHORT_TITLE, \"\");\n\t\t\t\t\t\n\t\t\t\t\telse if(text.startsWith(CAMERON_NUMBER))\n\t\t\t\t\t\tcameronNumber = text.replace(CAMERON_NUMBER, \"\");\n\t\t\t\t\t\n\t\t\t\t\telse if(text.startsWith(\"[\")) {\n\t\t\t\t\t\tString lineID = \"\";\n\t\t\t\t\t\tString line = \"\";\n\t\t\t\t\t\tPattern linePattern = Pattern.compile(\"\\\\[([0-9]+\\\\s\\\\([0-9a-zA-Z\\\\.,\\\\s\\\\(\\\\)]+\\\\))\\\\]\\\\s(.*)\");\n\t\t\t\t\t\tMatcher m = linePattern.matcher(text);\n\t\t\t\t\t\tif (m.matches()) {\n\t\t\t\t\t\t lineID = m.group(1).trim();\n\t\t\t\t\t\t line = m.group(2).trim();\n\t\t\t\t\t\t \n\t\t\t\t\t\t DOECorpusLine newLine = new DOECorpusLine(lineID, line, shortTitle);\n\t\t\t\t\t\t newLine.setLineBefore(lineBefore);\n\t\t\t\t\t\t if(lineBefore != null)\n\t\t\t\t\t\t\t lineBefore.setLineAfter(newLine);\n\t\t\t\t\t\t corpusDoc.addLine(newLine);\n\t\t\t\t\t\t lineBefore = newLine;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(!text.isEmpty())\t// This should be the full title\n\t\t\t\t\t\tcorpusDoc.setFullTitle(text);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttotalLineCount += corpusDoc.getLineCount();\n\t\t\t\tcorpus.addDocument(corpusDoc);\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Parsing their contents...DONE\");\n\t\tSystem.out.println(\"Total number of lines: \" + totalLineCount);\n\t\t\n\t\tSystem.out.println(\"Splitting lines into sentences...\");\n\t\tcorpus.splitIntoSentences();\n\t\tSystem.out.println(\"Splitting lines into sentences...DONE\");\n\t\t\n\t\tSystem.out.println(\"Tokenizing sentences...\");\n\t\tcorpus.tokenize();\n\t\tSystem.out.println(\"Tokenizing sentences...DONE\");\n\t\tSystem.out.println(\"Total number of tokens: \" + corpus.getTokenCount());\n\t\tSystem.out.println(\"Total number of types: \" + corpus.getTypeCount());\n\t\tSystem.out.println(\"Total number of sentences: \" + corpus.getSentenceCount());\n\t\tSystem.out.println(\"Average sentence length: \" + corpus.getAvgSenLength());\n\t\tSystem.out.println(\"Minimum sentence length: \" + corpus.getMinSenLength());\n\t\tSystem.out.println(\"Maximum sentence length: \" + corpus.getMaxSenLength());\n\t\t\n\t\treturn corpus;\n\t}", "public static DocumentFragment produceDocFragmentFromString(String theText, String enc, reporter theReporter)\n throws Exception {\n if (theText == null) {\n return null;\n }\n if (enc == null) {\n enc = default_encoding;\n }\n theText = theText.trim();\n if (!theText.startsWith(\"<?xml\")) {\n // put in artificial root so we reckognize it if it\n // is wrapped during tidy\n theText = \"<?xml version=\\\"1.0\\\" encoding=\\\"\" + enc + \"\\\"?><\"+WXTROOT+\">\" + theText + \"</\"+WXTROOT+\">\";\n //?? does not seem to help\n byte[] data = theText.getBytes(enc);\n theText = new String(data, enc);\n }\n try {\n // dont block tidy in this attempt\n Document doc = domer.makeDomFromString(theText, false,enc);\n doc.normalize();\n DocumentFragment df = doc.createDocumentFragment();\n NodeList nlist = doc.getDocumentElement().getChildNodes();\n\n for (int ix = 0; ix < nlist.getLength(); ix++) {\n df.appendChild(nlist.item(ix).cloneNode(true));\n }\n\n return df;\n \n } catch (DOMException e) {\n throw (new Exception(e.getMessage()));\n } catch (Exception e) {\n throw (new Exception(e.getMessage()));\n }\n }", "public void parse(){\n\n Integer childStart = this.findNewElement(0, this.document.length - 1);\n if(childStart == null){\n return;\n }\n\n this.root.removeData();\n this.copyTextToDocumentTree(this.root, 0, childStart - 1);\n\n DocumentSectionType childType = this.getType(childStart);\n\n do {\n Integer end = this.findNextSameLevelElement(childStart + 1, childType);\n //now we have boundaries of our new element, so let's grab it's index\n //we need appropriate matcher\n\n Matcher childMatcher = childType.getPattern().matcher(this.document[childStart]);\n childMatcher.find();\n DocumentTree child = new DocumentTree(childType, childMatcher.group(1), null);\n\n //now clear first line\n try{\n String group2 = childMatcher.group(2);\n this.document[childStart] = group2 != null ? group2 + \" \" : \"\";\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] = \"\";\n }\n try {\n this.document[childStart] += childMatcher.group(3);\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] += \"\";\n }\n //and copy it's text\n this.copyTextToDocumentTree(child, childStart, end - 1);\n root.addChild(child);\n //finally, parse it\n DocumentParser childParser = new DocumentParser(child, joinChapterWithChapterNames);\n childParser.parse();\n\n childStart = end;\n }while(childStart != this.document.length);\n\n if(this.root.getType() == DocumentSectionType.CHAPTER && this.joinChapterWithChapterNames){\n DocumentTree nameNode = (DocumentTree)this.root.getChildren().get(0);\n this.root.removeData();\n this.root.appendData(nameNode.getIndex());\n this.root.replaceChild(nameNode, nameNode.getChildren());\n }\n\n }", "@Override\n\tpublic String generateHtmlFromXsl(Document doc, File fileForXsl) throws ParserConfigurationException, SAXException,\n\t\t\tIOException, TransformerFactoryConfigurationError, TransformerException {\n\t\tStreamSource streamSource = new StreamSource(fileForXsl);\n\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer(streamSource);\n\t\tStringWriter writer = new StringWriter();\n\t\ttransformer.transform(new DOMSource(doc), new StreamResult(writer));\n\n\t\treturn writer.getBuffer().toString();\n\t}", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "private void transform(final File in, final File out, final boolean inHTML) throws TransformerException \r\n\t{\r\n\t\tfinal InputStream xslStream = XSLTLoader.class.getClassLoader().getResourceAsStream(this.xslStyleSheet);\r\n\t\tfinal TransformerFactory f = TransformerFactory.newInstance();\r\n\t\tfinal DocumentBuilder dBuilder;\r\n\t\ttry {\r\n\t\t\tdBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n\t\t} catch (ParserConfigurationException e1) {\r\n\t\t\tthrow new TransformerException(e1);\r\n\t\t}\r\n\r\n\t\tf.setURIResolver(new URIResolver() {\r\n\r\n\t\t\tpublic Source resolve(String href, String base) throws TransformerException {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tClassLoader cl = this.getClass().getClassLoader();\r\n\t\t\t\t\tjava.io.InputStream in = cl.getResourceAsStream(href);\r\n\r\n\t\t\t\t InputSource xslInputSource = new InputSource(in);\r\n\t\t\t\t Document xslDoc;\r\n\t\t\t\t\txslDoc = dBuilder.parse(xslInputSource);\r\n\t\t\t\t\tDOMSource xslDomSource = new DOMSource(xslDoc);\r\n\t\t\t\t xslDomSource.setSystemId(\"xslt/\" + href);\r\n\t\t\t\t return xslDomSource;\r\n\t\t\t\t} catch (SAXException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal Transformer transformer = f.newTransformer(new StreamSource(xslStream));\r\n\t\tfinal ByteArrayOutputStream byteArrIn = new ByteArrayOutputStream();\r\n\r\n\t\ttransformer.transform(new StreamSource(in), new StreamResult(byteArrIn));\r\n\t\t\r\n\t\tBufferedWriter bWriter = null;\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbWriter = new BufferedWriter(new FileWriter(out));\r\n\t\t\t\r\n\t\t\tif(inHTML)\r\n\t\t\t{\r\n\t\t\t\tfinal String tplContent = Utils.getStringFromClassPathResource(XHTML_TPL);\r\n\t\t\t\tfinal String content = byteArrIn.toString().replace(DOC_START, \"\");\r\n\t\t\t\t\r\n\t\t\t\tIOUtils.write(tplContent.replace(TPL_VAR, content), bWriter);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tIOUtils.write(byteArrIn.toString(), bWriter);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tthrow new TransformerException(e);\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tIOUtils.closeQuietly(bWriter);\r\n\t\t}\r\n\t}", "private void clearFullTree()\r\n {\r\n fullXmlTree = new StringBuilder();\r\n }", "protected String completeHtml(String data) {\n if (data.indexOf(\"<html>\") == -1) {\n\t\t\tdata = \"<html><head></head><body style='margin:0;padding:0;'>\"\n\t\t\t\t\t+ data + \"</body></html>\";\n }\n\n\t\treturn data;\n\t}", "private void buildReport() throws IOException {\n try (InputStream template = Thread.currentThread().getContextClassLoader().getResourceAsStream(TEMPLATE_DIR + \"/\" + TEMPLATE_NAME)) {\n reportDoc = Jsoup.parse(template, null, \"\");\n Element diffReportContainer = reportDoc.select(\".diffReport\").first();\n Element diffResultTable = diffReportContainer.select(\".diffResult\").first().clone();\n\n diffReportContainer.empty();\n\n for (SimpleImmutableEntry<String, List<File>> diffResult : fileDiffResults) {\n diffReportContainer.appendChild(getDiffTable(diffResultTable, diffResult));\n }\n }\n }", "public String markupDocumentSpan(String documentId,TextLabels labels) {\n\t\tTreeMap boundaries = new TreeMap();\n\t\tfor (Iterator i=labels.getTypes().iterator(); i.hasNext(); ) {\n\t\t\tString type = (String)i.next();\n\t\t\tfor (Span.Looper j=labels.instanceIterator(type, documentId); j.hasNext(); ) {\n\t\t\t\tSpan s = j.nextSpan();\n\t\t\t\t//System.out.println(\"Left Boundary: \" + s.getLeftBoundary());\n\t\t\t\t//System.out.println(\"Right Boundary: \" + s.getRightBoundary());\n\t\t\t\tsetBoundary(boundaries,\"begin\",type,s.getLeftBoundary());\n\t\t\t\tsetBoundary(boundaries,\"end\",type,s.getRightBoundary());\n\t\t\t}\n\t\t}\n\t\t// now walk thru boundaries and find out which set as\n\t\t// associated with each segment - want map from boundaries to\n\t\t// type sets\n\t\tString source = labels.getTextBase().documentSpan(documentId).asString();\n\t\t//System.out.println(\"source is \"+source);\n\t\tStringBuffer buf = new StringBuffer(\"\");\n\t\tbuf.append(\"<root>\");\n\t\tint currentPos = 0;\n\t\tSet currentTypes = new TreeSet();\n\t\tString lastMarkup = null;\n\t\tfor (Iterator i=boundaries.keySet().iterator(); i.hasNext(); ) {\n\t\t\tSpan b = (Span)i.next();\n\t\t\t//System.out.println(\"b=\"+b);\n\t\t\t// work out what types are in effect here\n\t\t\tSet ops = (Set)boundaries.get(b);\n\t\t\tfor (Iterator j=ops.iterator(); j.hasNext(); ) {\n\t\t\t\tString[] op = (String[]) j.next();\n\t\t\t\tSystem.out.println(\"op is \"+op[0]+\",\"+op[1]);\n\t\t\t\tif (\"begin\".equals(op[0])) currentTypes.add(op[1]);\n\t\t\t\telse currentTypes.remove(op[1]);\n\t\t\t}\n\t\t\t// output next section of document\n\t\t\tint pos;\n\t\t\tif (b.documentSpanStartIndex() < b.documentSpan().size())\n\t\t\t\tpos = b.documentSpan().subSpan( b.documentSpanStartIndex(), 1).getTextToken(0).getLo();\n\t\t\telse\n\t\t\t\tpos = b.documentSpan().getTextToken(b.documentSpan().size()-1).getHi();\n\n\t\t\t//System.out.println(\"boundary \"+pos+\" currentTypes=\"+currentTypes);\n\t\t\tbuf.append( source.substring(currentPos, pos) );\n\t\t\t// close off last markup\n\t\t\tif (lastMarkup!=null) buf.append(\"</\"+lastMarkup+\">\");\n\t\t\t// work out next markup symbol\n\t\t\tString markup = null;\n\t\t\tString value = null;\n\t\t\tif (currentTypes.size()==1) {\n\t\t\t\tmarkup = (String) (currentTypes.iterator().next());\n\t\t\t} else if (currentTypes.size()>1) {\n\t\t\t\tmarkup = \"overlap\";\n\t\t\t\tStringBuffer vBuf = new StringBuffer(\"\");\n\t\t\t\tfor (Iterator j=currentTypes.iterator(); j.hasNext(); ) {\n\t\t\t\t\tif (vBuf.length()>0) vBuf.append(\",\");\n\t\t\t\t\tvBuf.append( (String) j.next() );\n\t\t\t\t}\n\t\t\t\tvalue = vBuf.toString();\n\t\t\t}\n\t\t\tif (markup!=null && value!=null) {\n\t\t\t\tbuf.append(\"<\"+markup+\" value=\\\"\"+value+\"\\\">\");\n\t\t\t} else if (markup!=null) {\n\t\t\t\tbuf.append(\"<\"+markup+\">\");\n\t\t\t}\n\t\t\t// update position, lastMarkup\n\t\t\tcurrentPos = pos;\n\t\t\tlastMarkup = markup;\n\t\t\t//System.out.println(\"after update buf='\"+buf+\"'\");\n\t\t} // each boundary\n\t\t// close it all off\n\t\tbuf.append(source.substring(currentPos,source.length()));\n\t\tbuf.append(\"</root>\");\n\t\treturn buf.toString();\n\t}", "@Override\n public void doTag() throws JspException, IOException {\n setAttributes();\n\n String layout = getBodyContent();\n jspContext.getOut().write(layout);\n }", "private ConfigurationHTMLPrinter epilogue() {\n return endTable().decrementIndent().println(\"</body\").decrementIndent().println(\"</html>\");\n }", "private void buildRTF() {\n\t\n}", "public AdmClientePreferencialHTML(boolean buildDOM) { this(StandardDocumentLoader.getInstance(), buildDOM); }", "public PoaMaestroMultivaloresHTML(boolean buildDOM) { this(StandardDocumentLoader.getInstance(), buildDOM); }", "public PoaMaestroMultivaloresHTML(DocumentLoader loader, boolean buildDOM) {\n/* 286 */ this.fDocumentLoader = loader;\n/* */ \n/* 288 */ if (buildDOM)\n/* */ {\n/* 290 */ buildDocument();\n/* */ }\n/* */ }", "public PoaMaestroMultivaloresHTML(DocumentLoader loader) { this(loader, true); }", "public AdmClientePreferencialHTML(DocumentLoader loader, boolean buildDOM) {\n/* 224 */ this.fDocumentLoader = loader;\n/* */ \n/* 226 */ if (buildDOM)\n/* */ {\n/* 228 */ buildDocument();\n/* */ }\n/* */ }", "private void normaliseWhitespace() {\t\t\t\r\n\t\tdocument.normalizeDocument();\r\n\t\t\r\n\t\tif (document.getDocumentElement() == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tfinal Queue<Node> queue = Lists.newLinkedList();\r\n\t\tqueue.add(document.getDocumentElement());\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tfinal Node node = queue.remove();\r\n\t\t\tfinal NodeList children = node.getChildNodes();\r\n\t\t\tfor (int index = 0; index < children.getLength(); index++) {\r\n\t\t\t\tqueue.add(children.item(index));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (node.getNodeType() == Node.TEXT_NODE) {\r\n\t\t\t\tnode.setTextContent(node.getTextContent().trim());\r\n\t\t\t\tif (node.getTextContent().isEmpty()) {\r\n\t\t\t\t\tnode.getParentNode().removeChild(node);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private Document getFragmentAsDocument(CharSequence value)\n/* */ {\n/* 75 */ Document fragment = Jsoup.parse(value.toString(), \"\", Parser.xmlParser());\n/* 76 */ Document document = Document.createShell(\"\");\n/* */ \n/* */ \n/* 79 */ Iterator<Element> nodes = fragment.children().iterator();\n/* 80 */ while (nodes.hasNext()) {\n/* 81 */ document.body().appendChild((Node)nodes.next());\n/* */ }\n/* */ \n/* 84 */ return document;\n/* */ }", "private void processSingle()\n {\n boolean bResolveRefs = false;\n if ((m_iOptions & OPT_RES_REFS) != 0)\n bResolveRefs = true;\n \n OOLocaleReader reader = new OOLocaleReader(m_inFile);\n reader.readDocument(bResolveRefs);\n \n //create instance of LDMLLocaleWriterForOO which does the writing to file\n PrintStream ps = Utilities.setLocaleWriter2(m_localeStr, null, m_dest_dir);\n m_LDMLLocaleWriterForOO = new LDMLLocaleWriterForOO(ps);\n \n Hashtable aliases = OOToLDMLMapper.mapRefs(reader.m_Refs2);\n m_LDMLLocaleWriterForOO.setAliases(aliases);\n \n //start writing the LDML\n m_LDMLLocaleWriterForOO.open(XMLNamespace.OPEN_OFFICE, m_dtd_dir, \"ldmlOpenOffice.dtd\", m_cldr_ver);\n \n Hashtable data = new Hashtable();\n \n //###### write identity ######\n data.put(LDMLConstants.VERSION + \" \" + LDMLConstants.NUMBER, \"1.2\");\n data.put(LDMLConstants.GENERATION, \"Generated from ConvertOOLocale\");\n if (reader.m_LangId!=null)\n data.put(LDMLConstants.LANGUAGE + \" \" + LDMLConstants.TYPE, reader.m_LangId);\n if (reader.m_Country_CountryID!=null)\n data.put(LDMLConstants.TERRITORY + \" \" + LDMLConstants.TYPE, reader.m_Country_CountryID);\n \n //write PlatformID as special under <identity>\n if (reader.m_PlatformID != null) data.put(OpenOfficeLDMLConstants.PLATFORM_ID, reader.m_PlatformID);\n \n m_LDMLLocaleWriterForOO.writeIdentity(data);\n data.clear();\n \n //###### write localeDisplayNames ######\n //defaultNames will be written as special under localeDisplayNames\n if (reader.m_LangId!=null) data.put(LDMLConstants.LANGUAGE + \" \" + LDMLConstants.TYPE, reader.m_LangId );\n if (reader.m_Language_DefaultName!=null) data.put(OpenOfficeLDMLConstants.DEFAULT_NAME + \" \" + reader.m_LangId, reader.m_Language_DefaultName);\n if (reader.m_Country_CountryID!=null) data.put(LDMLConstants.TERRITORY + \" \" + LDMLConstants.TYPE, reader.m_Country_CountryID);\n if (reader.m_Country_DefaultName!=null) data.put(OpenOfficeLDMLConstants.DEFAULT_NAME + \" \" + reader.m_Country_CountryID , reader.m_Country_DefaultName);\n m_LDMLLocaleWriterForOO.writeLocaleDisplaynames(data);\n data.clear();\n \n //###### write delimiters ######\n Hashtable markers = OOToLDMLMapper.MapDelimiters(reader.m_Markers);\n if (markers != null) data.putAll(markers);\n m_LDMLLocaleWriterForOO.writeDelimiterss(data);\n data.clear();\n \n //###### write measurement ######\n String measSys = OOToLDMLMapper.MapMeasurementSystem(reader.m_MeasurementSystem);\n if (measSys!=null) data.put(LDMLConstants.MEASUREMENT, measSys);\n m_LDMLLocaleWriterForOO.writeMeasurement(data);\n data.clear();\n \n //###### write calendars ######\n Vector calendars = OOToLDMLMapper.MapCalendar(reader.m_Calendars);\n if (calendars!=null) data.put(LDMLConstants.CALENDAR + \" \" + LDMLConstants.TYPE, calendars);\n \n Hashtable abbrDays = OOToLDMLMapper.MapDays(reader.m_AbbrDays);\n if (abbrDays!=null) data.put(LDMLConstants.DAY_WIDTH + \" \" + LDMLConstants.ABBREVIATED, abbrDays);\n \n Hashtable wideDays = OOToLDMLMapper.MapDays(reader.m_WideDays);\n if (wideDays!=null) data.put(LDMLConstants.DAY_WIDTH + \" \" + LDMLConstants.WIDE, wideDays);\n \n Hashtable abbrMonths = OOToLDMLMapper.MapMonths(reader.m_AbbrMonths);\n if (abbrMonths!=null) data.put(LDMLConstants.MONTH_WIDTH + \" \" + LDMLConstants.ABBREVIATED, abbrMonths);\n \n Hashtable wideMonths = OOToLDMLMapper.MapMonths(reader.m_WideMonths);\n if (wideMonths!=null) data.put(LDMLConstants.MONTH_WIDTH + \" \" + LDMLConstants.WIDE, wideMonths);\n \n //reservedWords contains quarters, true/false, above/below\n /* Hashtable wideQuarters = OOToLDMLMapper.MapWideQuarters(reader.m_ReservedWords);\n if (wideQuarters != null) data.put(LDMLConstants.QUARTER_WIDTH+ \" \" + LDMLConstants.WIDE, wideQuarters);\n Hashtable abbrQuarters = OOToLDMLMapper.MapAbbrQuarters(reader.m_ReservedWords);\n if (abbrQuarters != null) data.put(LDMLConstants.QUARTER_WIDTH+ \" \" + LDMLConstants.ABBREVIATED, abbrQuarters);\n */\n Hashtable abbrEras = OOToLDMLMapper.MapEras(reader.m_AbbrEras);\n if (abbrEras!=null) data.put(LDMLConstants.ERAABBR, abbrEras);\n \n Hashtable wideEras = OOToLDMLMapper.MapEras(reader.m_WideEras);\n if (wideEras!=null) data.put(LDMLConstants.ERANAMES, wideEras);\n \n Hashtable startDayOfWeek = OOToLDMLMapper.MapStartDayOfWeek(reader.m_StartDayOfWeek);\n if (startDayOfWeek!=null) data.put(LDMLConstants.FIRSTDAY, startDayOfWeek);\n \n Hashtable minDaysInFirstWeek = OOToLDMLMapper.MapMinDaysInFirstWeek(reader.m_MinDaysInFirstweek);\n if (minDaysInFirstWeek!=null) data.put(LDMLConstants.MINDAYS, minDaysInFirstWeek);\n \n if (reader.m_TimeAM!=null) data.put(LDMLConstants.AM, reader.m_TimeAM);\n if (reader.m_TimePM!=null) data.put(LDMLConstants.PM, reader.m_TimePM);\n \n //get the DATE FormatElements\n Hashtable formatElements_date = new Hashtable();\n Hashtable formatCodes_date = new Hashtable();\n Hashtable formatDefaultNames_date = new Hashtable();\n \n OOToLDMLMapper.MapFormatElements(reader.m_FormatElements,\n reader.m_FormatCodes,\n reader.m_FormatDefaultNames,\n formatElements_date,\n formatCodes_date, //the patterns\n formatDefaultNames_date,\n OOConstants.FEU_DATE, m_localeStr, m_bConvertDateTime);\n \n data.put(LDMLConstants.DATE_FORMAT, formatElements_date);\n data.put(LDMLConstants.DATE_FORMAT + \" \" + LDMLConstants.PATTERN, formatCodes_date);\n data.put(LDMLConstants.DATE_FORMAT + OpenOfficeLDMLConstants.DEFAULT_NAME, formatDefaultNames_date);\n \n //get the TIME FormatElements\n Hashtable formatElements_time = new Hashtable();\n Hashtable formatCodes_time = new Hashtable();\n Hashtable formatDefaultNames_time = new Hashtable();\n OOToLDMLMapper.MapFormatElements(reader.m_FormatElements,\n reader.m_FormatCodes,\n reader.m_FormatDefaultNames,\n formatElements_time,\n formatCodes_time, //the patterns\n formatDefaultNames_time,\n OOConstants.FEU_TIME, m_localeStr, m_bConvertDateTime);\n \n data.put(LDMLConstants.TIME_FORMAT, formatElements_time);\n data.put(LDMLConstants.TIME_FORMAT + \" \" + LDMLConstants.PATTERN, formatCodes_time);\n data.put(LDMLConstants.TIME_FORMAT + OpenOfficeLDMLConstants.DEFAULT_NAME, formatDefaultNames_time);\n \n //get the DATE_TIME FormatElements\n Hashtable formatElements_date_time = new Hashtable();\n Hashtable formatCodes_date_time = new Hashtable();\n Hashtable formatDefaultNames_date_time = new Hashtable();\n OOToLDMLMapper.MapFormatElements(reader.m_FormatElements,\n reader.m_FormatCodes,\n reader.m_FormatDefaultNames,\n formatElements_date_time,\n formatCodes_date_time, //the patterns\n formatDefaultNames_date_time,\n OOConstants.FEU_DATE_TIME, m_localeStr, m_bConvertDateTime);\n \n data.put(LDMLConstants.DATE_TIME_FORMAT, formatElements_date_time);\n data.put(LDMLConstants.DATE_TIME_FORMAT + \" \" + LDMLConstants.PATTERN, formatCodes_date_time);\n data.put(LDMLConstants.DATE_TIME_FORMAT + OpenOfficeLDMLConstants.DEFAULT_NAME, formatDefaultNames_date_time);\n \n m_LDMLLocaleWriterForOO.writeDates(data);\n data.clear();\n \n //###### numbers ######\n Hashtable symbols = new Hashtable();\n symbols = OOToLDMLMapper.MapSymbols(reader.m_Separators);\n if (symbols != null) data.put(LDMLConstants.SYMBOLS, symbols);\n \n Hashtable currencies = new Hashtable();\n Hashtable currency = OOToLDMLMapper.MapCurrency(reader.m_Currency);\n if (currency != null) currencies.put(LDMLConstants.CURRENCY, currency);\n if (reader.m_CurrencyID != null) currencies.put(LDMLConstants.ID, reader.m_CurrencyID);\n if (reader.m_CurrencySymbol != null) currencies.put(LDMLConstants.SYMBOL, reader.m_CurrencySymbol);\n if (reader.m_CurrencyName != null) currencies.put(LDMLConstants.DISPLAY_NAME, reader.m_CurrencyName);\n data.put(LDMLConstants.CURRENCIES, currencies);\n \n //get the FIXED_NUMBER FormatElements\n //OO dtd also mentions FRACTION_NUMBER but its not used in any XML files\n Hashtable formatElements_fn = new Hashtable();\n Hashtable formatCodes_fn = new Hashtable();\n Hashtable formatDefaultNames_fn = new Hashtable();\n OOToLDMLMapper.MapFormatElements(reader.m_FormatElements,\n reader.m_FormatCodes,\n reader.m_FormatDefaultNames,\n formatElements_fn,\n formatCodes_fn,\n formatDefaultNames_fn,\n OOConstants.FEU_FIXED_NUMBER, m_localeStr, m_bConvertDateTime);\n \n data.put(LDMLConstants.DECIMAL_FORMATS, formatElements_fn);\n data.put(LDMLConstants.DECIMAL_FORMATS + \" \" + LDMLConstants.PATTERN, formatCodes_fn);\n data.put(LDMLConstants.DECIMAL_FORMATS + OpenOfficeLDMLConstants.DEFAULT_NAME, formatDefaultNames_fn);\n \n //get the SCIENTIFIC_NUMBER FormatElements\n Hashtable formatElements_sn = new Hashtable();\n Hashtable formatCodes_sn = new Hashtable();\n Hashtable formatDefaultNames_sn = new Hashtable();\n OOToLDMLMapper.MapFormatElements(reader.m_FormatElements,\n reader.m_FormatCodes,\n reader.m_FormatDefaultNames,\n formatElements_sn,\n formatCodes_sn,\n formatDefaultNames_sn,\n OOConstants.FEU_SCIENTIFIC_NUMBER, m_localeStr, m_bConvertDateTime);\n \n data.put(LDMLConstants.SCIENTIFIC_FORMATS, formatElements_sn);\n data.put(LDMLConstants.SCIENTIFIC_FORMATS + \" \" + LDMLConstants.PATTERN, formatCodes_sn);\n data.put(LDMLConstants.SCIENTIFIC_FORMATS + OpenOfficeLDMLConstants.DEFAULT_NAME, formatDefaultNames_sn);\n \n //get the PERCENT_NUMBER FormatElements\n Hashtable formatElements_pn = new Hashtable();\n Hashtable formatCodes_pn = new Hashtable();\n Hashtable formatDefaultNames_pn = new Hashtable();\n OOToLDMLMapper.MapFormatElements(reader.m_FormatElements,\n reader.m_FormatCodes,\n reader.m_FormatDefaultNames,\n formatElements_pn,\n formatCodes_pn,\n formatDefaultNames_pn,\n OOConstants.FEU_PERCENT_NUMBER, m_localeStr, m_bConvertDateTime);\n \n data.put(LDMLConstants.PERCENT_FORMATS, formatElements_pn);\n data.put(LDMLConstants.PERCENT_FORMATS + \" \" + LDMLConstants.PATTERN, formatCodes_pn);\n data.put(LDMLConstants.PERCENT_FORMATS + OpenOfficeLDMLConstants.DEFAULT_NAME, formatDefaultNames_pn);\n \n //get the CURRENCY FormatElements\n Hashtable formatElements_c = new Hashtable();\n Hashtable formatCodes_c = new Hashtable();\n Hashtable formatDefaultNames_c = new Hashtable();\n OOToLDMLMapper.MapFormatElements(reader.m_FormatElements,\n reader.m_FormatCodes,\n reader.m_FormatDefaultNames,\n formatElements_c,\n formatCodes_c,\n formatDefaultNames_c,\n OOConstants.FEU_CURRENCY, m_localeStr, m_bConvertDateTime);\n \n data.put(LDMLConstants.CURRENCY_FORMATS, formatElements_c);\n data.put(LDMLConstants.CURRENCY_FORMATS + \" \" + LDMLConstants.PATTERN, formatCodes_c);\n data.put(LDMLConstants.CURRENCY_FORMATS + OpenOfficeLDMLConstants.DEFAULT_NAME, formatDefaultNames_c);\n \n m_LDMLLocaleWriterForOO.writeNumbers(data);\n data.clear();\n \n \n //###### write remaining OpenOffice.org specials under top level <special> element ######\n \n //any containers with attribute names should undergo MapFirstCharToLowerCase\n // as in OpenOffice DTD most attribute names start with capital, whereas all attribs and eleemnts\n // in ldml for OO start with lower case\n //MapFirstCharToLowerCase not needed for containers with no attrib names in them\n \n Hashtable forbiddenChars = OOToLDMLMapper.MapFirstCharToLowerCase(reader.m_ForbiddenChars);\n if (forbiddenChars != null) data.put(OpenOfficeLDMLConstants.FORBIDDEN_CHARACTERS, forbiddenChars);\n \n //reservedWords contains quarters, true/false, above/below\n Hashtable reservedWords = OOToLDMLMapper.MapFirstCharToLowerCase(reader.m_ReservedWords);\n if (reservedWords != null) data.put(OpenOfficeLDMLConstants.RESERVED_WORDS, reservedWords);\n \n Vector numLevels = OOToLDMLMapper.MapFirstCharToLowerCase(reader.m_NumberingLevels);\n if (numLevels != null) data.put(OpenOfficeLDMLConstants.NUMBERING_LEVELS, numLevels);\n \n Vector OutlineNumberingLevels = OOToLDMLMapper.MapFirstCharToLowerCase(reader.m_OutlineNumberingLevels);\n if (OutlineNumberingLevels != null) data.put(OpenOfficeLDMLConstants.OUTLUNE_NUMBERING_LEVELS, OutlineNumberingLevels);\n \n Vector translits = OOToLDMLMapper.MapFirstCharToLowerCase(reader.m_Transliterations);\n if (translits != null) data.put(OpenOfficeLDMLConstants.TRANSLITERATIONS, translits);\n \n if (reader.m_SearchOptions != null) data.put(OpenOfficeLDMLConstants.SEARCH_OPTIONS, reader.m_SearchOptions);\n \n if (reader.m_IndexKeys != null) data.put(OpenOfficeLDMLConstants.INDEX_KEY, reader.m_IndexKeys);\n if (reader.m_IndexKeysData != null) data.put(OpenOfficeLDMLConstants.INDEX, reader.m_IndexKeysData);\n if (reader.m_UnicodeScript != null) data.put(OpenOfficeLDMLConstants.UNICODE_SCRIPT, reader.m_UnicodeScript);\n if (reader.m_FollowPageWord != null) data.put(OpenOfficeLDMLConstants.FOLLOW_PAGE_WORD, reader.m_FollowPageWord);\n \n Vector collators = OOToLDMLMapper.MapFirstCharToLowerCase(reader.m_Collators);\n if (collators != null) data.put(OpenOfficeLDMLConstants.COLLATOR, collators);\n if (reader.m_CollationOptions != null) data.put(OpenOfficeLDMLConstants.COLLATION_OPTIONS, reader.m_CollationOptions);\n \n Vector format = OOToLDMLMapper.MapFirstCharToLowerCase(reader.m_LCFormat);\n if (format != null) data.put(OpenOfficeLDMLConstants.FORMAT, format);\n \n Hashtable localeInfo = OOToLDMLMapper.mapLocaleInfo(reader.m_LocaleInfo);\n if (localeInfo != null) data.put(OpenOfficeLDMLConstants.LOCALE, localeInfo);\n \n m_LDMLLocaleWriterForOO.writeSpecial(data);\n data.clear();\n \n m_LDMLLocaleWriterForOO.close();\n \n }", "private void addBody()\n throws PaginatedResultSetXmlGenerationException\n {\n addPreamble();\n addRecords();\n addPostamble();\n }", "private static String footer() {\r\n String output = \"\";\r\n\r\n output += \"\\n\\\\end{document}\";\r\n\r\n return output;\r\n }", "public void generarDoc(){\n generarDocP();\n }", "public void loadxml ()\n\t{\n\t\t\t\tString [] kategorienxml;\n\t\t\t\tString [] textbausteinexml;\n\t\t\t\tString [] textexml;\n\t\t\t\t\n\t\t\t\tString filenamexml = \"Katalogname_gekuerzt_lauffaehig-ja.xml\";\n\t\t\t\tFile xmlfile = new File (filenamexml);\n\t\t\t\t\n\t\t\t\t// lies gesamten text aus: String gesamterhtmlcode = \"\";\n\t\t\t\tString gesamterhtmlcode = \"\";\n\t\t\t\tString [] gesamtertbarray = new String[1001];\n\t\t BufferedReader inx = null;\n\t\t try {\n\t\t inx = new BufferedReader(new FileReader(xmlfile));\n\t\t String zeilex = null;\n\t\t while ((zeilex = inx.readLine()) != null) {\n\t\t \tSystem.out.println(zeilex + \"\\n\");\n\t\t \tRandom rand = new Random();\n\t\t \tint n = 0;\n\t\t \t// Obtain a number between [0 - 49].\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.End\\\"/>\")) // dann ab hier speichern bis zum ende:\n\t\t \t{\n\t\t \t\t// \terstelle neue random zahl und speichere alle folgenden zeilen bis zum .Start in diesen n rein\n\t\t \t\tn = rand.nextInt(1001);\n\n\t\t \t\t\n\t\t \t}\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n] + zeilex;\n\t\t \tFile f = new File (\"baustein_\"+ n + \".txt\");\n\t\t \t\n\t\t \tFileWriter fw = new FileWriter (f);\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\\\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\\\"\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/></w:rPr><w:r><w:rPr><w:rStyle w:val=\\\"T8\\\"/></w:rPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\t\t \t<w:rStyle\" , \"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:p>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:pStyle w:val=\\\"_37_b._20_Text\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr><w:r><w:t>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:r><w:rPr><w:rStyle\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\\\"><w:pPr></\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:pPr><w:r>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"compatible:1.0\\\"><w:pPr></w:pPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:p><w:p\",\"\");\n\t\t \n\n\t\t \t\n\n\t\t \tfw.write(gesamtertbarray[n]);\n\t\t \tfw.flush();\n\t\t \tfw.close();\n\t\t \t\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.Start\\\"))\"))\n \t\t\t{\n\t\t \t\t// dann erhöhe speicher id für neue rand zahl, weil ab hier ist ende des vorherigen textblocks;\n\t\t\t \tn = rand.nextInt(1001);\n \t\t\t}\n\t\t \n\t\t }}\n\t\t \tcatch (Exception s)\n\t\t {}\n\t\t \n\t\t\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t}", "public void run() {\n try {\r\n TransformerFactory tFactory = TransformerFactory.newInstance();\r\n // Fortify Mod: prevent external entity injection\r\n tFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);\r\n Transformer transformer = tFactory.newTransformer();\r\n transformer.setOutputProperty(\"encoding\", \"UTF-8\");\r\n transformer.setOutputProperty(\"indent\", \"yes\");\r\n transformer.transform(new DOMSource(doc), new StreamResult(\r\n pos));\r\n } catch (Exception e) {\r\n throw new RuntimeException(\r\n \"Error converting Document to InputStream. \"\r\n + e.getMessage());\r\n } finally {\r\n try {\r\n pos.close();\r\n } catch (IOException e) {\r\n\r\n }\r\n }\r\n }", "public Document augmentDocumentXml(Document document) throws IOException, SAXException {\n\t\tString fileName = getBbnFileName(document);\n\n\t\t// move to the next BBN file if necessary\n\t\t// this will be efficient if the documents are passed in WSJ order as it avoids reloading the same file\n\t\tif (!fileName.equals(currentBbnFile)) {\n\t\t\tFile xmlFile = new File(StaticConfig.bbnPath + fileName);\n\t\t\txmlReader.parse(new InputSource(xmlFile.getPath()));\n\t\t\tcurrentBbnFile = fileName;\n\t\t}\n\n\t\tList<String> tags = handler.getTags(document.docId.getFileStr());\n\t\tList<Token> tokenList = document.tokenList;\n\n\t\t// sanity check: same number of tokens?\n\t\tif (tags.size() != tokenList.size()) {\n\t\t\tthrow new Error(\"Tag and token counts differ\");\n\t\t}\n\n\t\t// align tags and tokens\n\t\tfor (int i = 0; i < tokenList.size(); i++) {\n\t\t\tToken token = tokenList.get(i);\n\t\t\tString neTag = tags.get(i);\n\t\t\ttoken.goldNer = neTag;\n\t\t}\n\n\t\treturn document;\n\t}", "public FreeMindWriter startRichText() {\n tagClose();\n out.println( \"<richcontent TYPE='NODE'><html>\\n <head>\\n\\n </head>\\n <body>\" );\n return this; \n }", "private static String createOriginalDocumentBody(DocumentNode document) {\n\t\tStringBuilder text = new StringBuilder();\n\t\tNode childNode;\n\t\tint size;\n\t\t\n\t\ttry {\n\t\t\tsize = document.numberOfChildren();\n\t\t} catch (NullPointerException e) {\n\t\t\tsize = 0;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tchildNode = document.getChild(i);\n\n\t\t\tif ((childNode instanceof ForLoopNode)) {\n\t\t\t\ttext.append(getText(childNode));\n\t\t\t} else {\n\t\t\t\ttext.append(childNode.getText());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn text.toString();\n\t}", "private void marshallDocument(Virtualnetworkmanager root, PrintStream outputFile) throws JAXBException, SAXException {\n\t\t\n\t\t// Creating the JAXB context to perform a validation \n\t\tJAXBContext jc;\n\t\t// Creating an instance of the XML Schema \n\t\tSchema schema;\n\t\t\t\t\n\t\ttry {\n\t\t\tjc = JAXBContext.newInstance(PACKAGE);\n\t\t\tschema = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI).newSchema(new File(XSD_NAME));\n\t\t}\n\t\tcatch(IllegalArgumentException e) {\n\t\t\tSystem.err.println(\"Error! No implementation of the schema language is available\");\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tSystem.err.println(\"Error! The instance of the schema or the file of the schema is not well created!\\n\");\n\t\t\tthrow new SAXException(\"The schema file is null!\");\n\t\t}\n\t\t\n\t\t// Creating the XML document \t\t\n\t\tMarshaller m = jc.createMarshaller();\n\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\tm.setProperty(Marshaller.JAXB_SCHEMA_LOCATION, XSD_LOCATION+\" \"+XSD_NAME);\n\t\tm.setSchema(schema);\n\t\tm.marshal(root, outputFile);\n\t\t\n\t}", "void startDocument()\n throws SAXException\n {\n contentHandler.setDocumentLocator(this);\n contentHandler.startDocument();\n attributesList.clear();\n }", "private String documentToString(Document dom) {\n\tStringBuffer buf = new StringBuffer();\n\tlinearize(dom, buf);\n\treturn buf.toString();\n }", "public void testMergeOneServletIntoEmptyDocument() throws Exception\n {\n String srcXml = \"<web-app></web-app>\";\n WebXml srcWebXml = WebXmlIo.parseWebXml(\n new ByteArrayInputStream(srcXml.getBytes(StandardCharsets.UTF_8)), null);\n String mergeXml = \"<web-app>\"\n + \" <servlet>\"\n + \" <servlet-name>s1</servlet-name>\"\n + \" <servlet-class>sclass1</servlet-class>\"\n + \" </servlet>\"\n + \"</web-app>\";\n WebXml mergeWebXml = WebXmlIo.parseWebXml(\n new ByteArrayInputStream(mergeXml.getBytes(StandardCharsets.UTF_8)), null);\n WebXmlMerger merger = new WebXmlMerger(srcWebXml);\n merger.merge(mergeWebXml);\n assertTrue(WebXmlUtils.hasServlet(srcWebXml, \"s1\"));\n }", "@Override\n public void writeStartDocument()\n throws XMLStreamException\n {\n if (mEncoding == null) {\n mEncoding = WstxOutputProperties.DEFAULT_OUTPUT_ENCODING;\n }\n writeStartDocument(mEncoding, WstxOutputProperties.DEFAULT_XML_VERSION);\n }", "public DefaultXmlMerge()\n {\n m_rootMergeAction.setActionFactory(new StaticOperationFactory(new FullMergeAction()));\n m_rootMergeAction.setMapperFactory(new StaticOperationFactory(new IdentityMapper()));\n m_rootMergeAction.setMatcherFactory(new StaticOperationFactory(new AttributeMatcher()));\n }", "public void writeTemplateContent() throws IOException {\n\t\tFile templateFile = generateTemplateFile(templateFilename);\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(templateFile, false), \"UTF-8\"));\n\t\tbw.write(\"<!DOCTYPE html>\\n<html><head></head><body><p></p>\");\n\t\tfor (String s : contentList) {\n\t\t\tbw.write(s);\n\t\t}\n\t\tbw.write(\"</body></html>\");\n\t\tbw.close();\n\t\tJsoup.parse(templateFile, \"UTF-8\");\n\t}", "public void test553468() throws Exception\n {\n\n // Info: Doctype given is \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n // Info: Document content looks like XHTML 1.0 Transitional\n // No warnings or errors were found.\n\n executeTidyTest(\"553468.xhtml\");\n\n assertLogContains(\"XHTML 1.0 Transitional\");\n }", "HTML createHTML();", "static void processDoc1(Document doc, int docno) throws IOException {\n\t\tString script = JetTest.config.getProperty(\"processDocument\");\n\t\t// if there is a name tagger, clear its cache\n\t\tif (JetTest.nameTagger != null) JetTest.nameTagger.newDocument();\n\t\tSpan all = new Span(0, doc.length());\n\t\tControl.applyScript (doc, all, script);\n\t}", "private static void replaceDocument(final StyledDocument doc, BaseBean graph) {\n final StringWriter out = new StringWriter();\n try {\n graph.write(out);\n } catch (Schema2BeansException | IOException ex) {\n Logger.getLogger(TomcatModuleConfiguration.class.getName()).log(Level.INFO, null, ex);\n }\n NbDocument.runAtomic(doc, () -> {\n try {\n doc.remove(0, doc.getLength());\n doc.insertString(0, out.toString(), null);\n } catch (BadLocationException ble) {\n Exceptions.printStackTrace(ble);\n }\n });\n }", "public void write(Writer out) throws IOException {\n\t\t/*\n\t\t * get the first interresting node, ie the deepest one that is an\n\t\t * ancestor of every selected node, in the schema and corresponding\n\t\t * nodes in the the document\n\t\t */\n\t\tsetXmlRoot();\n\t\tfirstElement = true;\n\t\t/* marshall once for title */\n\t\tout.write(getTitle(lineNode) + \"\\n\");\n\t\tout.flush();\n\t\t// writeNode(lineNode, (Element) lineElements.get(0), TITLE, out);\n\t\t//\t\tout.write(\"\\n\");\n\t\tfirstElement = true;\n\t\t/* marshall each element */\n\t\tfor (int i = 0; i < lineElements.size(); i++) {\n\t\t\tfirstElement = true;\n\t\t\twriteNode(lineNode, (Element) lineElements.get(i), out, false);\n\t\t\tout.write(\"\\n\");\n\t\t\tout.flush();\n\t\t}\n\t}", "@Override\n\tpublic void startDocument() throws SAXException {\n\t\tSystem.out.println(\"---解析文档开始----\");\n\t}", "public AdmClientePreferencialHTML(DocumentLoader loader) { this(loader, true); }", "public XML xml() {\n return new XMLDocument(new Xembler(this.dirs).domQuietly());\n }", "public static void main(String[] args) throws ParserConfigurationException, TransformerException, IOException {\n\t\tString[] nomeid={\"primo\",\"secondo\",\"terzo\",\"quarto\",\"quinto\",\"sesto\",\"settimo\",\"ottavo\",\"nono\",\"decimo\",\"undicesimo\",\"dodicesimo\",\"tredicesimo\",\"quattordicesimo\",\"quindicesimo\",\"sedicesimo\",\"diciassettesimo\",\"diciottesimo\",\"diciannovesimo\"};\r\n\r\n\t\t\r\n\t\t\r\n\t//for(int j=0;j<19;j++){\t\r\n\t\t\r\n\t\t//int nomefile=j+1;\r\n\t\tFile f=new File(\"C:\\\\Users\\\\Windows\\\\Desktop\\\\corpus\\\\corpus artigianale\\\\corpus2.xml\");\r\n\t\tString content = readFile(\"C:\\\\Users\\\\Windows\\\\Desktop\\\\corpus\\\\corpus artigianale\\\\corpus2.txt\", StandardCharsets.UTF_8);\t\r\n\t\tString[] frase=content.split(\"\\\\.\");\r\n\t\tString nome=nomeid[4];\t\r\n\t\t\t\r\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\r\n\t \r\n\t\t\t// root elements\r\n\t\t\tDocument doc = docBuilder.newDocument();\r\n\t\t\tElement rootElement = doc.createElement(\"add\");\r\n\t\t\tdoc.appendChild(rootElement);\r\n\t\t\t\r\n\t\t\r\n\t\t\tint count=0;\r\n\t\t\t\r\n\t\t\tfor (int i=0;i<frase.length;i++){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//if(frase[i].length()>150)\r\n\t\t\t\t//{// doc elements\r\n\t\t\t\t\tElement documento = doc.createElement(\"doc\");\r\n\t\t\t\t\trootElement.appendChild(documento);\r\n\t\t\t\t\r\n\t\t\t\t// id elements\r\n\t\t\t\t\t\tElement id = doc.createElement(\"field\");\r\n\t\t\t\t\t\tid.setAttribute(\"name\",\"id\");\r\n\t\t\t\t\t\tid.appendChild(doc.createTextNode(nome+i));\r\n\t\t\t\t\t\tdocumento.appendChild(id);\r\n\t\t\t\t//name element\r\n\t\t\t\t\t\tElement name = doc.createElement(\"field\");\r\n\t\t\t\t\t\tname.setAttribute(\"name\", \"name\");\r\n\t\t\t\t\t\tname.appendChild(doc.createTextNode(frase[i]));\r\n\t\t\t\t\t\tdocumento.appendChild(name);\r\n\t\t\t\t count++;\r\n\t\t\t\t//}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(count);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// write the content into xml file\r\n\t\t\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\r\n\t\t\t\t\tTransformer transformer = transformerFactory.newTransformer();\r\n\t\t\t\t\tDOMSource source = new DOMSource(doc);\r\n\t\t\t\t\tStreamResult result = new StreamResult(f);\r\n\t\t\t \r\n\t\t\t\t\t// Output to console for testing\r\n\t\t\t\t\t// StreamResult result = new StreamResult(System.out);\r\n\t\t\t \r\n\t\t\t\t\ttransformer.transform(source, result);\r\n\t\t\t \r\n\t\t\t\t\tSystem.out.println(\"File saved!\");\r\n\t\t\r\n\t //}\r\n\t\r\n\t}", "public void writeToXML(){\n\t\t\n\t\t String s1 = \"\";\n\t\t String s2 = \"\";\n\t\t String s3 = \"\";\n\t\t Element lastElement= null;\n\t\t\n\t\tDocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dbElement;\n\t\tBufferedReader brRead=null;\n\n\t\ttry{\n\t\t\tdbElement = dbfactory.newDocumentBuilder();\n\t\t\t\n\t\t\t//Create the root\n\t\t\tDocument docRoot = dbElement.newDocument();\n\t\t\tElement rootElement = docRoot.createElement(\"ROYAL\");\n\t\t\tdocRoot.appendChild(rootElement);\n\t\t\t\n\t\t\t//Create elements\n\t\t\t\n\t\t\t//Element fam = docRoot.createElement(\"FAM\");\n\t\t\tElement e= null;\n\t\t\tbrRead = new BufferedReader(new FileReader(\"complet.ged\"));\n\t\t\tString line=\"\";\n\t\t\twhile((line = brRead.readLine()) != null){\n\t\t\t\tString lineTrim = line.trim();\n\t\t\t\tString str[] = lineTrim.split(\" \");\n\t\t\t\t//System.out.println(\"length = \"+str.length);\n\n\t\t\t\tif(str.length == 2){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3 = \"\";\n\t\t\t\t}else if(str.length ==3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2=\"\";\n\n\t\t\t\t\ts2 = str[1];\n//\t\t\t\t\tSystem.out.println(\"s2=\"+s2);\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\ts3 = str[2];\n//\t\t\t\t\ts3 = s[0];\n\t\t\t\t\t\n\t\t\t\t}else if(str.length >3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\tfor(int i =2; i<str.length; i++){\n\t\t\t\t\t\ts3 = s3 + str[i]+ \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//System.out.println(s1+\"!\"+s2+\"!\"+s3+\"!\");\n\t\t\t\t//Write to file xml\n\t\t\t\t//writeToXML(s1, s2, s3);\n\t\t\t//Element indi = docRoot.createElement(\"INDI\");\t\n\t\t\t//System.out.println(\"Check0 :\" + s1);\n\t\t\tif( Integer.parseInt(s1)==0){\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Check1\");\n\t\t\t\tif(s3.equalsIgnoreCase(\"INDI\")){\n\t\t\t\t\t//System.out.println(\"Check2\");\n\t\t\t\t\tSystem.out.println(\"This is a famille Individual!\");\n\t\t\t\t\te = docRoot.createElement(\"INDI\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t\n\t\t\t\t\t//Set attribute to INDI\n\t\t\t\t\tAttr indiAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tindiAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(indiAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"FAM\")){\n\t\t\t\t\t//System.out.println(\"Check3\");\n\t\t\t\t\tSystem.out.println(\"This is a famille!\");\n\t\t\t\t\te = docRoot.createElement(\"FAM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}if(s2.equalsIgnoreCase(\"HEAD\")){\n\t\t\t\t\tSystem.out.println(\"This is a head!\");\n\t\t\t\t\te = docRoot.createElement(\"HEAD\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"SUBM\")){\n\n\t\t\t\t\tSystem.out.println(\"This is a subm!\");\n\t\t\t\t\te = docRoot.createElement(\"SUBM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==1){\n\n\t\t\t\tString child = s2;\n\t\t\t\tif(child.equalsIgnoreCase(\"SOUR\")||child.equalsIgnoreCase(\"DEST\")||child.equalsIgnoreCase(\"DATE\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"FILE\")||child.equalsIgnoreCase(\"CHAR\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"NAME\")||child.equalsIgnoreCase(\"TITL\")||child.equalsIgnoreCase(\"SEX\")||child.equalsIgnoreCase(\"REFN\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"PHON\")||child.equalsIgnoreCase(\"DIV\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"HEAD\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"BIRT\")||child.equalsIgnoreCase(\"DEAT\")||child.equalsIgnoreCase(\"COMM\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"BURI\")||child.equalsIgnoreCase(\"ADDR\")||child.equalsIgnoreCase(\"CHR\")){\n\t\t\t\t\t\n\t\t\t\t\tString name = lastElement.getNodeName();\t\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"FAMS\")||child.equalsIgnoreCase(\"FAMC\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\t\tx.setAttribute(\"id\",s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"HUSB\")||child.equalsIgnoreCase(\"WIFE\")||child.equalsIgnoreCase(\"CHIL\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"MARR\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==2){\n\t\t\t\tString lastName = lastElement.getNodeName();\n\t\t\t\tif((lastName.equalsIgnoreCase(\"BIRT\"))||(lastName.equalsIgnoreCase(\"DEAT\"))||(lastName.equalsIgnoreCase(\"BURI\"))\n\t\t\t\t\t\t||(lastName.equalsIgnoreCase(\"MARR\"))||(lastName.equalsIgnoreCase(\"CHR\"))){\n\t\t\t\t\t//Add child nodes to birt, deat or marr\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"DATE\")){\n\t\t\t\t\t\tElement date = docRoot.createElement(\"DATE\");\n\t\t\t\t\t\tdate.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(date);\n\t\t\t\t\t}\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"PLAC\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"PLAC\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif(lastName.equalsIgnoreCase(\"COMM\")||lastName.equalsIgnoreCase(\"ADDR\")){\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"CONT\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"CONT\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//lastElement = e;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t//Saved this element for the next step\n\t\t\t\n\t\t\t//Write to file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"iso-8859-1\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, \"Royal.dtd\");\n\t\t\tDOMSource source = new DOMSource(docRoot);\n\t\t\tStreamResult result = new StreamResult(new File(\"complet.xml\"));\n\t \n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t \n\t\t\ttransformer.transform(source, result);\n\t \n\t\t\tSystem.out.println(\"\\nXML DOM Created Successfully.\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void testFlatteningInclusive()\n throws IOException, XMLStreamException\n {\n final String INPUT_DTD =\n \"<?xml version='1.0' encoding='UTF-8'?>\\n\"\n +\"<!ELEMENT root (branch+)>\\n\"\n +\"<!ATTLIST root attr CDATA #IMPLIED\\n\"\n +\" attr2 IDREF #IMPLIED>\\n\"\n +\"<!-- comment -->\\n\"\n +\"<!ENTITY % pe '<!-- comment! -->'>\\n\"\n +\"<!ELEMENT branch (child*)>\\n\"\n +\"<!ELEMENT child (#PCDATA)>\\n\"\n +\"<![INCLUDE[\\n\"\n +\"<!ATTLIST child attr CDATA 'def!'>\\n\"\n +\"]]>\\n\"\n +\"<!NOTATION myNot SYSTEM 'foobar:xyz'>\\n\"\n +\"%pe;\\n\"\n +\"<!ENTITY a '&#65;'>\\n\"\n +\"<?proc instr?>\\r\\n\"\n ;\n //StringReader strr = new StringReader(DTD);\n ReaderConfig cfg = ReaderConfig.createFullDefaults();\n for (int i = 0; i < 8; ++i) {\n boolean inclComments = (i & 4) != 0;\n boolean inclConditionals = (i & 2) != 0;\n boolean inclPEs = (i & 1) != 0;\n WstxInputSource input = DefaultInputResolver.sourceFromString\n (null, cfg, \"[dtd]\", /*xml version for compat checks*/ XmlConsts.XML_V_UNKNOWN, INPUT_DTD);\n StringWriter strw = new StringWriter();\n /*DTDSubset ss =*/ FullDTDReader.flattenExternalSubset\n (input, strw,\n inclComments, inclConditionals, inclPEs);\n strw.flush();\n String output = strw.toString();\n\n /* Ok, so... how do we test it? For now, let's actually\n * just re-parse it to ensure it seems valid? And let's also\n * compare second-time output.\n */\n input = DefaultInputResolver.sourceFromString\n (null, cfg, \"[dtd]\", /*xml version for compatibility checks*/ XmlConsts.XML_V_UNKNOWN, output);\n\n strw = new StringWriter();\n DTDSubset ss = FullDTDReader.flattenExternalSubset\n (input, strw, inclComments, inclConditionals, inclPEs);\n assertNotNull(ss);\n strw.flush();\n String output2 = strw.toString();\n\n assertEquals(output, output2);\n }\n }", "private static Document createCopiedDocument(Document originalDocument) {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db;\n Document copiedDocument = null;\n try {\n db = dbf.newDocumentBuilder();\n Node originalRoot = originalDocument.getDocumentElement();\n copiedDocument = db.newDocument();\n Node copiedRoot = copiedDocument.importNode(originalRoot, true);\n copiedDocument.appendChild(copiedRoot);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return copiedDocument;\n }", "public void convert(final net.simpleframework.lib.org.jsoup.nodes.Document in,\n\t\t\tfinal Document out) {\n\t\tif (!StringUtil.isBlank(in.location())) {\n\t\t\tout.setDocumentURI(in.location());\n\t\t}\n\n\t\tfinal net.simpleframework.lib.org.jsoup.nodes.Element rootEl = in.child(0); // skip\n\t\t// the\n\t\t// #root\n\t\t// node\n\t\tNodeTraversor.traverse(new W3CBuilder(out), rootEl);\n\t}", "public String serializeXHTML(String uri, RDFRepository _repository) throws IOException, RepositoryConfigException, RepositoryException, QueryEvaluationException {\n\t\t/*//added by pcc 21,Jun. 11 for profiling\n\t\tint numTextbox=0, numButton=0, numRButton=0,\n\t\tnumCheckbox=0, numListbox=0, numListItem=0;\n\t\tlong startTime=0, timePage=0, TimeWContainer=0, accTimeTextbox=0, accTimeButton=0,\n\t\taccTimeRButton=0, accTimeCheckbox=0, accTimeListbox=0, accTimeListItem=0;\n\t\tlong totalTime_start=0, totalTime=0;\n\t\ttotalTime_start = System.currentTimeMillis();\n\t\t//added by pcc 21,Jun. 11 for profiling*/\n\t\t\n\t\t// Define output writer\n\t\tStringWriter out = new StringWriter();\n\t\tRDFaMetaWriter writer = new RDFaMetaWriter(out);\n\t\t\n\t\t// Create the connection to the repository\t\t\n\t\tc = _repository.createObjectConnection();\t\t\n\t\t\n\t\torg.openrdf.model.URI u = c.getValueFactory().createURI(uri);\n\t\t\n\t\t// try {\n\t\t// TurtleWriter turtleWriter = new TurtleWriter(System.out);\n\t\t// c\n\t\t// .prepareGraphQuery(QueryLanguage.SERQL,\n\t\t// // \"CONSTRUCT * FROM {<\"+ uri\n\t\t// //\n\t\t// //\n\t\t// +\">} p {y} USING NAMESPACE raul = <http://purl.org/NET/raul#>\").evaluate(turtleWriter);\n\t\t// \"CONSTRUCT * FROM {x} p {y} USING NAMESPACE raul = <http://purl.org/NET/raul#>\")\n\t\t// .evaluate(turtleWriter);\n\t\t//\t\t\n\t\t// // TurtleWriter turtleWriter1 = new TurtleWriter(System.out);\n\t\t// // c.prepareGraphQuery(QueryLanguage.SERQL,\n\t\t// // \"CONSTRUCT * FROM {x} p {y}\").evaluate(turtleWriter1);\n\t\t//\t\t\n\t\t// } catch (Exception e) {\n\t\t// } finally {\n\t\t// }\n\n\t\t// Define output writer\n\t\t//StringWriter out = new StringWriter();\n\t\t//RDFaMetaWriter writer = new RDFaMetaWriter(out);\n\t\t\n\n\t\turiInit(_repository);\n\n\t\t// ObjectQuery query = null;\n\t\t// try {\n\t\t// query = c.prepareObjectQuery(\n\t\t// \"PREFIX raul:<http://purl.org/NET/raul#>\\n PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\\n\"+\n\t\t// \"SELECT ?title WHERE {<http://raul.deri.ie/forms/addproduct#addProduct> a raul:Page. <http://raul.deri.ie/forms/addproduct#addProduct> raul:title ?title}\");\n\t\t// } catch (MalformedQueryException e1) {\n\t\t// e1.printStackTrace();\n\t\t// }\n\t\t// Object page1 = query.evaluate().singleResult();\n\t\t// System.out.println(page1);\n\t\t\n\t\t// Get the RaUL page object\t\t\n\t\tPage page = c.getObject(Page.class, u);\t\t\n\t\t\n\t\tMap<String, String> namespaceTable = new HashMap<String, String>();\n\t\tnamespaceTable.put(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\", \"rdf\");\n\t\tnamespaceTable.put(\"http://www.w3.org/2002/07/owl#\", \"owl\");\n\t\tnamespaceTable.put(\"http://www.w3.org/2001/XMLSchema#\", \"xsd\");\n\t\tnamespaceTable.put(\"http://purl.org/NET/raul#\", \"raul\");\n\t\tnamespaceTable.put(\"http://www.w3.org/2000/01/rdf-schema#\", \"rdfs\");\n\t\t//writer.startRDF(uri, namespaceTable);\n\t\t\n\t\t\n\t\tif (!page.getRaulTitles().isEmpty()) {\n\t\t\t/*//added by pcc 21,Jun. 11 for profiling\n\t\t\tstartTime = System.currentTimeMillis();\n\t\t\t//added by pcc 21,Jun. 11 for profiling*/\n\n\t\t\t/*//modified by pcc 27, Jun. 11\n\t\t\tMap<String, String> namespaceTable = new HashMap<String, String>();\n\t\t\tnamespaceTable.put(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\", \"rdf\");\n\t\t\tnamespaceTable.put(\"http://www.w3.org/2002/07/owl#\", \"owl\");\n\t\t\tnamespaceTable.put(\"http://www.w3.org/2001/XMLSchema#\", \"xsd\");\n\t\t\tnamespaceTable.put(\"http://purl.org/NET/raul#\", \"raul\");\n\t\t\tnamespaceTable.put(\"http://www.w3.org/2000/01/rdf-schema#\", \"rdfs\");\n\t\t\t*/\n\t\t\twriter.startRDF(uri, namespaceTable);\t\t\t\n\t\t\t\n\t\t\t// Write the properties of the page object\t\t\t\n\t\t\twriter.startMeta();\t\t\t\n\n\t\t\t// Write the title property\n\t\t\tIterator<String> iteratorTitles = page.getRaulTitles().iterator();\n\t\t\tSet<String> set = new LinkedHashSet<String>();\n\t\t\twhile (iteratorTitles.hasNext()) {\n\t\t\t\tString var = iteratorTitles.next();\n\t\t\t\tif (!set.contains(var)) {\n\t\t\t\t\tLiteral title = _repository.Literal(var, null);\n\t\t\t\t\twriter.handleMetaAttribute(raultitle, title);\n\t\t\t\t\tout.append(\"\t<title>\" + var + \"</title>\\n\");\n\t\t\t\t\tset.add(var);\n\t\t\t\t} else {\n\t\t\t\t\tset.add(var);\n\t\t\t\t}\n\t\t\t}\n\t\t\tset.clear();\n\n\t\t\twriter.endMeta();\n\n\t\t\t// Start the Page properties in the Body\n\t\t\tSet<URI> raulPageProperties = new HashSet<URI>();\n\t\t\traulPageProperties.add(raulPage);\n\t\t\twriter.startNode(uri, raulPageProperties);\n\t\t\tout.append(\"\t<span style=\\\"display:none;\\\">\\n\");\n\n\t\t\t// Write the class property\n\t\t\tSet<String> clazzes = page.getRaulClasses();\n\t\t\twriteStringProperty(raulclass, clazzes, 2, writer, _repository);\n\n\t\t\t// Write the id property\n\t\t\tSet<String> ids = page.getRaulIds();\n\t\t\twriteStringProperty(raulid, ids, 2, writer, _repository);\n\n\t\t\t// Write the list property\n\t\t\tSet<Class> widgetcontainers = page.getRaulLists();\n\t\t\twriteObjectProperty(raullist, widgetcontainers, 2, writer, _repository);\n\n\t\t\tout.append(\"\t</span>\\n\");\n\t\t\twriter.endNode(uri, raulPageProperties);\n\t\t\t\n\t\t\t/*//added by pcc 21,Jun. 11 for profiling\n\t\t\ttimePage = System.currentTimeMillis() - startTime;\n\t\t\t//added by pcc 21,Jun. 11 for profiling*/\n\t\t}else{ //added by pcc 27, Jun. 11\n\t\t\tout.append(\"<div \");\n\t\t\twriter.setNamespace(uri, namespaceTable);\t\t\t\n\t\t\tout.append(\">\\n\");\n\t\t\t// Start the Page properties in the Body\n\t\t\tSet<URI> raulPageProperties = new HashSet<URI>();\n\t\t\traulPageProperties.add(raulPage);\n\t\t\twriter.startNode(uri, raulPageProperties);\n\t\t\tout.append(\"\t<span style=\\\"display:none;\\\">\\n\");\n\n\t\t\t// Write the class property\n\t\t\tSet<String> clazzes = page.getRaulClasses();\n\t\t\twriteStringProperty(raulclass, clazzes, 2, writer, _repository);\n\n\t\t\t// Write the id property\n\t\t\tSet<String> ids = page.getRaulIds();\n\t\t\twriteStringProperty(raulid, ids, 2, writer, _repository);\n\t\t\t\n\t\t\t// Write the list property\n\t\t\tSet<Class> widgetcontainers = page.getRaulLists();\n\t\t\twriteObjectProperty(raullist, widgetcontainers, 2, writer, _repository);\n\n\t\t\tout.append(\"\t</span>\\n\");\n\t\t\twriter.endNode(uri, raulPageProperties);\n\t\t}\n\t\t\n\t\t/*//added by pcc 21,Jun. 11 for profiling\n\t\t\tstartTime = System.currentTimeMillis();\n\t\t//added by pcc 21,Jun. 11 for profiling*/\t\t\t\n\t\t\n\t\t// Get all widgetContainerLists in the Page\n\t\tSet<Class> widgetContainerLists = page.getRaulLists();\n\t\tSet<Object> setWidgetContainerLists = new HashSet<Object>();\n\t\t\n\t\tfor (Iterator<Class> iWidgetContainerLists = widgetContainerLists.iterator(); iWidgetContainerLists.hasNext();) {\n\t\t\t\n\t\t\tObject var = iWidgetContainerLists.next();\n\t\t\t// Get the next WidgetContainerList\n\t\t\t\n\t\t\tif (!setWidgetContainerLists.contains(var)) {\t\t\t\t\n\t\t\t\torg.openrdf.model.URI uriWidgetContainerListObject = c.getValueFactory().createURI(var.toString());\n\t\t\t\t\n\t\t\t\tResource widgetContainerSequence = c.getObject(Resource.class, uriWidgetContainerListObject);\t\t\t\t\n\t\t\t\t// Get all WidgetContainers in the RDF Seq\t\t\t\t\n\t\t\t\tString widgetContainerList = widgetContainerSequence.getRdfsMembers().toString().replaceAll(\"\\\\[|\\\\]\", \"\");\n\t\t\t\t\n\t\t\t\tString[] WidgetContainerString = widgetContainerList.split(\", \");\n\t\t\t\t\n\t\t\t\t// Write the WidgetContainer Sequence\n\t\t\t\twriteSequenceList(uriWidgetContainerListObject, WidgetContainerString, 0, out, _repository);\n\n\t\t\t\tSet<Object> setWidgetContainer = new HashSet<Object>();\n\n\t\t\t\t// Iterate through the WidgetContainers\n\t\t\t\tfor (int iWidgetContainer = 0; iWidgetContainer < WidgetContainerString.length; iWidgetContainer++) {\n\t\t\t\t\t\n\t\t\t\t\tObject WidgetContainerList = WidgetContainerString[iWidgetContainer];\n\t\t\t\t\tObject varWidgetContainer = WidgetContainerString[iWidgetContainer];\n\t\t\t\t\tif (!setWidgetContainer.contains(varWidgetContainer)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\torg.openrdf.model.URI uriWidgetContainer = c.getValueFactory().createURI(WidgetContainerList.toString());\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Get the WidgetContainer object\n\t\t\t\t\t\tWidgetContainer widgetContainer = c.getObject(WidgetContainer.class, uriWidgetContainer);\t\t\t\t\t\t\n\t\t\t\t\t\tSet<CRUDOperation> methods = widgetContainer.getRaulMethods();\n\t\t\t\t\t\tSet<String> actions = widgetContainer.getRaulActions();\n\t\t\t\t\t\tSet<String> WidgetContainerClasses = widgetContainer.getRaulClasses();\n\t\t\t\t\t\tSet<String> WidgetContainerIds = widgetContainer.getRaulIds();\n\t\t\t\t\t\tSet<String> WidgetContainerNames = widgetContainer.getRaulNames();\n\t\t\t\t\t\tSet<String> WidgetContainerTitles = widgetContainer.getRaulTitles();\t\t\t\t\t\t\n\t\t\t\t\t\tSet<Class> widgetList = widgetContainer.getRaulLists();\n\t\t\t\t\t\t\n\t\t\t\t\t\tSet<URI> raulWidgetContainerProperties = new HashSet<URI>();\n\t\t\t\t\t\traulWidgetContainerProperties.add(raulWidgetContainer);\t\t\t\t\t\t\n\t\t\t\t\t\twriter.startNode(uriWidgetContainer.toString(), raulWidgetContainerProperties);\n\t\t\t\t\t\tout.append(\"\t<span style=\\\"display:none;\\\">\\n\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Write the methods property\n\t\t\t\t\t\twriteMethodsProperty(methods, 2, writer, _repository);\n\n\t\t\t\t\t\t// Write the actions property\n\t\t\t\t\t\twriteStringProperty(raulaction, actions, 2, writer, _repository);\n\n\t\t\t\t\t\t// Write the class property\n\t\t\t\t\t\twriteStringProperty(raulclass, WidgetContainerClasses, 2, writer, _repository);\n\n\t\t\t\t\t\t// Write the id property\n\t\t\t\t\t\twriteStringProperty(raulid, WidgetContainerIds, 2, writer, _repository);\n\n\t\t\t\t\t\t// Write the name property\n\t\t\t\t\t\twriteStringProperty(raulname, WidgetContainerNames, 2, writer, _repository);\n\n\t\t\t\t\t\t// Write the titles property\n\t\t\t\t\t\twriteStringProperty(raultitle, WidgetContainerTitles, 2, writer, _repository);\n\n\t\t\t\t\t\t// Write the list property\n\t\t\t\t\t\twriteListsProperty(widgetList, 2, writer, _repository);\n\n\t\t\t\t\t\t// End the WidgetContainer properties\n\t\t\t\t\t\tout.append(\"\t</span>\\n\");\n\t\t\t\t\t\twriter.endNode(uri, raulWidgetContainerProperties);\n\n\t\t\t\t\t\tSet<URI> raulCRUDOperationProperties = new HashSet<URI>();\n\t\t\t\t\t\tSet<Object> setCRUDOperations = new HashSet<Object>();\n\t\t\t\t\t\tSet<String> operationClass = new LinkedHashSet<String>();\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (Iterator<CRUDOperation> methodsiter = methods.iterator(); methodsiter.hasNext();) {\n\t\t\t\t\t\t\tObject varMethods = methodsiter.next();\n\t\t\t\t\t\t\tif (!setCRUDOperations.contains(varMethods)) {\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\torg.openrdf.model.URI unknownCRUDOperation = c.getValueFactory().createURI(varMethods.toString());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// try CREATE Operation\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tCREATEOperation operation = c.getObject(CREATEOperation.class, unknownCRUDOperation);\n\t\t\t\t\t\t\t\t\toperationClass.add(\"CREATEOperation\");\n\t\t\t\t\t\t\t\t\traulCRUDOperationProperties.add(raulCREATEOperation);\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} catch (ClassCastException e) {\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// try READ Operation\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tREADOperation operation = c.getObject(READOperation.class, unknownCRUDOperation);\n\t\t\t\t\t\t\t\t\toperationClass.add(\"READOperation\");\n\t\t\t\t\t\t\t\t\traulCRUDOperationProperties.add(raulREADOperation);\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} catch (ClassCastException e) {\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// try UPDATE Operation\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tUPDATEOperation operation = c.getObject(UPDATEOperation.class, unknownCRUDOperation);\n\t\t\t\t\t\t\t\t\toperationClass.add(\"UPDATEOperation\");\n\t\t\t\t\t\t\t\t\traulCRUDOperationProperties.add(raulUPDATEOperation);\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} catch (ClassCastException e) {\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// try DELETE Operation\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tDELETEOperation operation = c.getObject(DELETEOperation.class, unknownCRUDOperation);\n\t\t\t\t\t\t\t\t\toperationClass.add(\"DELETEOperation\");\n\t\t\t\t\t\t\t\t\traulCRUDOperationProperties.add(raulDELETEOperation);\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} catch (ClassCastException e) {\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\twriter.startNode(varMethods.toString(), raulCRUDOperationProperties);\n\t\t\t\t\t\t\t\twriter.endNode(varMethods.toString(), raulCRUDOperationProperties);\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tsetCRUDOperations.add(varMethods);\n\t\t\t\t\t\t\t} else {\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsetCRUDOperations.add(varMethods);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\twriteTagForm(operationClass, actions, WidgetContainerClasses, WidgetContainerIds, out);\n\t\t\t\t\t\t\n\t\t\t\t\t\twidgetsHandler(widgetList, uri, out, writer, _repository);\n\t\t\t\t\t\t\n\t\t\t\t\t\tout.append(\"</form>\\n\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetWidgetContainer.add(varWidgetContainer);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetWidgetContainer.add(varWidgetContainer);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tsetWidgetContainerLists.add(var);\n\n\t\t\t} else {\n\t\t\t\tsetWidgetContainerLists.add(var);\n\t\t\t}\n\n\t\t}\n\t\t\n\t\t// rdfWriter.close();\n\t\tif (!page.getRaulTitles().isEmpty())\n\t\t\twriter.endRDF();\n\t\telse\n\t\t\tout.append(\"</div>\\n\"); //added by pcc 27, Jun. 11\n\t\t\n\t\t/*//added by pcc 21,Jun. 11 for profiling\n\t\ttotalTime = System.currentTimeMillis() - totalTime_start;\t\t\n\t\tout.append(\"________________________________________________________________________________\\n\");\t\t\t\t\n\t\tout.append(\"timePage:\" + timePage + \"\\n\");\n\t\tout.append(\"TimeWContainer:\" + TimeWContainer + \"\\n\");\n\t\tout.append(\"numTextbox:\" + numTextbox + \"\\taccTimeTextbox:\" + accTimeTextbox + \"\\n\");\n\t\tout.append(\"numButton:\" + numButton + \"\\taccTimeButton:\" + accTimeButton + \"\\n\");\n\t\tout.append(\"numRButton:\" + numRButton + \"\\taccTimeRButton:\" + accTimeRButton + \"\\n\");\n\t\tout.append(\"numCheckbox:\" + numCheckbox + \"\\taccTimeCheckbox:\" + accTimeCheckbox + \"\\n\");\n\t\tout.append(\"numListbox:\" + numListbox + \"\\taccTimeListbox:\" + accTimeListbox + \"\\n\");\n\t\tout.append(\"numListItem:\" + numListItem + \"\\taccTimeListItem:\" + accTimeListItem + \"\\n\");\n\t\tout.append(\"totalTime:\" + totalTime + \"\\n\");\t\t\n\t\tout.append(\"________________________________________________________________________________\\n\");\t\t\n\t\t//added by pcc 21,Jun. 11 for profiling*/\n\t\t\n\t\t//writer.endRDF();\n\t\twriter.close();\n\t\treturn out.toString();\n\t}", "@Override\n\tpublic void endDocument() throws SAXException {\n\t\tSystem.out.println(\"文档解析完成\");\n\t}", "public static void main(ArrayList<Vacation> vac,ArrayList<Medical> med,ArrayList<Doc> doc,FullWorker fw,Time tim,Stuff stf,Stuffl stfl,float sal,int hou) {\n try {\n Document document = new Document();\n PdfWriter.getInstance(document, new FileOutputStream(FILE));\n document.open();\n addMetaData(document);\n addTitlePage(document);\n //addContent(document);\n addPersonal(document,fw,sal,hou);\n addWorker(document,stf,stfl);\n addTime(document,tim);\n addVacation(document, vac);\n addDocument(document,doc);\n addMedical(document, med);\n document.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }" ]
[ "0.5544877", "0.54115516", "0.5362269", "0.53566444", "0.51794136", "0.5161853", "0.5088291", "0.50684035", "0.5037779", "0.49782428", "0.49710268", "0.49448493", "0.49201673", "0.4896299", "0.48789006", "0.48095316", "0.48038176", "0.47958454", "0.47432107", "0.4731832", "0.4731735", "0.47213033", "0.46932518", "0.46904105", "0.46898022", "0.468283", "0.46807882", "0.46693492", "0.46426594", "0.4633294", "0.46323776", "0.4603734", "0.45901066", "0.45881853", "0.45769736", "0.45723298", "0.45633495", "0.45382673", "0.45220107", "0.45132542", "0.4507429", "0.45067576", "0.4503199", "0.44848102", "0.44756", "0.44739506", "0.44663617", "0.4453531", "0.44507885", "0.44331536", "0.44331536", "0.44331536", "0.44331536", "0.4427775", "0.44269893", "0.44233835", "0.44100612", "0.44097954", "0.4407257", "0.4407201", "0.43993837", "0.43871066", "0.43687177", "0.43539622", "0.43533772", "0.43512243", "0.4350307", "0.43407363", "0.43154395", "0.43102372", "0.4304537", "0.42960647", "0.4294632", "0.42915004", "0.42880443", "0.42793497", "0.42753807", "0.4270854", "0.4266894", "0.4266224", "0.42658547", "0.4262551", "0.42605218", "0.4239012", "0.42353457", "0.4234504", "0.42330945", "0.4231834", "0.4217516", "0.4210639", "0.42012495", "0.41920096", "0.4190494", "0.41897237", "0.4189557", "0.41769144", "0.41760284", "0.4173332", "0.41732132", "0.41708708" ]
0.7616231
0
Gets the raw bytes for this item.
public byte[] bytes() throws IOException { try(FileInputStream fis = new FileInputStream(file)) { return ByteStreams.toByteArray(fis); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] getAsBytes() {\n\t\treturn m_RawContent;\n\t}", "public byte[] getBytes() {\n return baos.toByteArray();\n }", "public byte[] getBytes()\n {\n try { return getRepo().newObjectReader().open(_entry.getObjectId()).getBytes(); }\n catch(Exception e) { throw new RuntimeException(e); }\n }", "@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}", "public byte[] getBytes() {\n return bytes;\n }", "com.google.protobuf.ByteString\n getAboutRawBytes();", "public byte[] getBytes() {\n return bytes;\n }", "public byte[] getBytes() {\n return bytes;\n }", "public byte[] getBytes()\n {\n return bytes;\n }", "public byte[] getBytes() {\n return mBytes;\n }", "com.google.protobuf.ByteString getSerializedItem();", "public byte[] getBytes() {\r\n return bytes;\r\n }", "public byte[] getBytes()\n\t{\n\t\treturn bytes;\n\t}", "public byte[] getBytes() {\r\n \treturn toString().getBytes();\r\n }", "public byte[] getBytes() {\n\t\treturn bytes;\n\t}", "public byte[] getBytes() {\r\n return mBytes;\r\n }", "public byte[] getAsBytes() {\n return (byte[])data;\n }", "default byte[] getBytes() throws IOException {\n try (InputStream is = getInputStream()) {\n return IOUtils.toByteArray(is);\n }\n }", "public byte[] GetBytes() {\n return data;\n }", "public byte[] getBytes() {\r\n\t\treturn mByteList;\r\n\t}", "public byte[] getBytes() {\r\n\r\n if (bytes == null) {\r\n bytes = new byte[getLength()];\r\n }\r\n\r\n return bytes;\r\n }", "public byte[] readRawBytes() throws IOException {\n return readRawBytes(Type.BYTES.code);\n }", "public byte[] asByteArray() {\n return data;\n }", "public com.google.protobuf.ByteString\n getGetBytes() {\n return instance.getGetBytes();\n }", "byte[] getBytes();", "byte[] getBytes();", "@Override\n public byte[] getBytes() {\n int len = 0;\n List<byte[]> chunks = new ArrayList<>();\n for (RvtAoiMetadataKey tag : getTags()) {\n chunks.add(new byte[] {(byte) tag.getIdentifier()});\n len += 1;\n IRvtPoiAoiMetadataValue value = getField(tag);\n byte[] bytes = value.getBytes();\n byte[] lengthBytes = BerEncoder.encode(bytes.length);\n chunks.add(lengthBytes);\n len += lengthBytes.length;\n chunks.add(bytes);\n len += bytes.length;\n }\n return ArrayUtils.arrayFromChunks(chunks, len);\n }", "public byte[] getAsBytes () {\r\n\t \r\n\t //code description\r\n\t \r\n\t Properties p = new Properties();\t\r\n\t return this.getAsBytes(p);\r\n\t \r\n }", "@Override\r\n\tpublic byte[] getBytes() throws UnsupportedEncodingException {\r\n\t\tbyte[] bytes = new byte[RECORD_SIZE];\r\n\t\tbytes = Utilities.completeBytes(bytes, this.bidInfo.getBytes(), 0);\r\n\t\tbytes = Utilities.completeBytes(bytes,\r\n\t\t\t\tUtilities.stringToBytes(Utilities.completeLength(biddingName, 30)), 32);\r\n\t\tbytes = Utilities.completeBytes(bytes, Utilities.intToBytes(typeProduct.ordinal()), 62);\r\n\t\tbytes = Utilities.completeBytes(bytes, product.getBytes(), 66);\r\n\t\tbytes = Utilities.completeBytes(bytes, publicationTime.getBytes(), 157);\r\n\t\tbytes = Utilities.completeBytes(bytes, initTime.getBytes(), 171);\r\n\t\tbytes = Utilities.completeBytes(bytes, finishTime.getBytes(), 185);\r\n\t\tbytes = Utilities.completeBytes(bytes, (byte) ((isAutomaticIncremet)?0:1), 199);\r\n\t\tbytes = Utilities.completeBytes(bytes, (byte) ((isPublic)?0:1), 200);\r\n\t\tbytes = Utilities.completeBytes(bytes,\r\n\t\t\t\tUtilities.stringToBytes(Utilities.completeLength(owner, 20)), 201);\r\n\t\treturn bytes;\r\n\t}", "public byte[] getBytes() {\n\treturn null;\n }", "public byte[] toBytes() {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n writeTo(os);\n } catch (IOException e) {e.printStackTrace();}\n return os.toByteArray();\n }", "@Override\r\n\t@JsonIgnore\r\n\tpublic byte[] asBytes() {\n\t\treturn null;\r\n\t}", "public byte[] getBytes() throws IOException {\r\n return mFile.getBytes();\r\n }", "List<Byte> getAsBytes();", "@Override\n\tpublic byte[] getBytes() {\n\t\treturn null;\n\t}", "public byte[] getBytes()\r\n {\r\n return buf;\r\n }", "public abstract byte[] toRawSECSItem();", "public byte[] getCopyBytes() {\n try {\n return serialToStream();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "public byte[] toByteArray() {\n\t\treturn baos.toByteArray();\n\t}", "@Override\n public byte[] getBytes() {\n return new byte[0];\n }", "com.google.protobuf.ByteString\n getContentsBytes();", "public byte[] getByteData() { return bytedata; }", "com.google.protobuf.ByteString\n getContentsBytes();", "public byte[] getBinaryValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a hexBinary.\");\n }", "com.google.protobuf.ByteString\n getToBytes();", "public byte[] getAllBytes() {\n return nativeGetAllBytes(__nativePtr);\n }", "public ByteArray getBin() {\n return bin;\n }", "public byte[] getData()\n {\n if (m_data == null)\n {\n return null;\n }\n return (byte[]) m_data.clone();\n }", "public byte[] value() {\n return value;\n }", "public byte[] toBytes() {\n return toProtobuf().toByteArray();\n }", "public byte[] value() {\n return value;\n }", "public byte[] getData() {\n return ByteExtensions.clone(this.data);\n }", "@Override\n public byte[] getBytes() throws IOException {\n byte[] marshalledBytes = null;\n\n ByteArrayOutputStream baOutStream = new ByteArrayOutputStream();\n DataOutputStream dOut = new DataOutputStream(baOutStream);\n\n dOut.writeInt(type);\n\n dOut.writeInt(ID);\n\n dOut.writeInt(totalPacketsSent);\n\n dOut.writeInt(totalPacketsRelayed);\n\n dOut.writeLong(sendSummation);\n\n dOut.writeInt(totalPacketsRcvd);\n\n dOut.writeLong(rcvSummation);\n\n dOut.flush();\n marshalledBytes = baOutStream.toByteArray();\n\n baOutStream.close();\n dOut.close();\n\n return marshalledBytes;\n }", "public byte[] getDataBlock() {\n return serialize;\n }", "public byte[] serialize() {\n try {\n ByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(this);\n return b.toByteArray();\n } catch (IOException ioe) {\n return null;\n }\n }", "com.google.protobuf.ByteString\n getActualBytes();", "public byte[] getData() {\n return this.data;\n }", "public byte[] getBytes()\n {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public InputStream getItemAsInputStream() {\r\n\t\treturn item;\r\n\t}", "@Override\n\tpublic String toString()\n\t{\n\t\treturn new String(bytes);\n\t}", "public byte[] toArray()\r\n {\r\n return _stream.toByteArray();\r\n }", "public byte[] getFileBytes(){\n\t\treturn fileBytes;\n\t}", "public byte[] getBytes() {\r\n return this.seqArray;\r\n }", "byte[] byteValue() {\n\treturn data;\n }", "public byte[] getData() {\n return data;\n }", "public com.google.protobuf.ByteString\n getToBytes() {\n Object ref = to_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n to_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getToBytes() {\n Object ref = to_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n to_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public byte[] getData() {\n if (this.length==0) {\n return new byte[0];\n }\n return data;\n }", "public byte[] getData();", "public byte[] getContent();", "public byte[] getEncoded() \n {\n try\n {\n return super.getEncoded();\n }\n catch (IOException e)\n {\n return null;\n }\n }", "public com.google.protobuf.ByteString\n getBodyBytes() {\n return instance.getBodyBytes();\n }", "public byte[] getRawContent() {\n try {\n if (this.messageContent == null &&\n this.messageContentBytes == null &&\n this.messageContentObject == null) {\n return null;\n } else if (this.messageContentObject != null ) {\n String messageContent = this.messageContentObject.toString();\n byte[] messageContentBytes;\n ContentType contentTypeHeader =\n (ContentType)this.nameTable.get\n (ContentTypeHeader.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n messageContentBytes = messageContent.getBytes(charset);\n } else {\n messageContentBytes =\n messageContent.getBytes(DEFAULT_ENCODING);\n }\n } else messageContentBytes =\n messageContent.getBytes(DEFAULT_ENCODING);\n return messageContentBytes;\n } else if ( this.messageContent != null ) {\n byte[] messageContentBytes;\n ContentType contentTypeHeader =\n (ContentType)this.nameTable.get\n (ContentTypeHeader.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n messageContentBytes =\n this.messageContent.getBytes(charset);\n } else {\n messageContentBytes =\n this.messageContent.getBytes(DEFAULT_ENCODING);\n }\n } else messageContentBytes =\n this.messageContent.getBytes(DEFAULT_ENCODING);\n return messageContentBytes;\n } else {\n return messageContentBytes;\n }\n } catch (UnsupportedEncodingException ex) {\n InternalErrorHandler.handleException(ex);\n return null;\n }\n }", "public byte[] getBytes(String attr) {\n return (byte[]) super.get(attr);\n }", "public byte[] getBytes() {\n byte[] indexData = VarInt.encode(txIndex);\n byte[] bytes = new byte[32+indexData.length];\n System.arraycopy(txHash.getBytes(), 0, bytes, 0, 32);\n System.arraycopy(indexData, 0, bytes, 32, indexData.length);\n return bytes;\n }", "public int getBytes() {\n\t return mBytes;\n\t}", "public byte[] toByteArray() throws IOException\n {\n try (InputStream is = createInputStream())\n {\n return is.readAllBytes();\n }\n }", "byte[] getByteContent() throws IOException;", "public ByteBuffer raw() {\n\n\t\t// Allocate buffer\n\t\tByteBuffer b = ByteBuffer.allocate(rawLength()).order(ByteOrder.LITTLE_ENDIAN);\n\n\t\t// Populate buffer\n\t\tb.put(length.raw());\n\t\tb.put(s.getBytes(Charset.forName(\"UTF-8\")));\n\n\t\t// Return rewinded buffer\n\t\tb.rewind();\n\n\t\t// Return buffer\n\t\treturn b;\n\t}", "public byte[] getValue() {\n return this.value;\n }", "public byte[] getData() {\r\n return Arrays.copyOf(data, data.length);\r\n }", "public byte getData() {\n return data;\n }", "com.google.protobuf.ByteString\n getViewBytes();", "public String getImageBase64() {\n return this.imageBase64;\n }", "public byte[] getObjectdata()\n {\n return null;\n }", "@NonNull\n public byte[] getTagData() {\n return mImpl.getTagData().toByteArray();\n }", "public byte[] getByteArray()\n \t{\n \t\t// In some cases the array is bigger than the actual number\n \t\t// of valid bytes.\n \t\tint realByteLength = getLengthInBytes();\n \n \t\t// Currently the case is that the return from this\n \t\t// call only includes the valid bytes.\n \t\tif (value.length != realByteLength) {\n \t\t\tbyte[] data = new byte[realByteLength];\n \t\t\tSystem.arraycopy(value, 0, data, 0, realByteLength);\n \n \t\t\tvalue = data;\n \t\t}\n \n \t\treturn value;\n \t}", "public byte[] getData() {\n\treturn null;\n }", "public String toString() {\n\t\treturn BlobUtil.string(buffer, offset, size);\n\t}", "public byte getData() {\n return this.data;\n }", "public byte[] getContent() {\r\n return content;\r\n }", "public byte[] toByteArray() {\n return null;\n }", "public com.google.protobuf.ByteString\n getContentsBytes() {\n java.lang.Object ref = contents_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n contents_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public byte[] getByteArray() throws IOException {\n ByteArrayOutputStream dados = new ByteArrayOutputStream();\n DataOutputStream saida = new DataOutputStream(dados);\n\n saida.writeInt(idProduto);\n saida.writeUTF(nomePro);\n saida.writeUTF(descricao);\n saida.writeFloat(preco);\n return dados.toByteArray();\n }", "public ByteArray content (){\r\n\t\t\tif(isCompressed) {\r\n\t\t\t\tuncompress();\r\n\t\t\t}\r\n\t\t\treturn _content;\r\n\t\t}", "public byte[] getBytes(){\n\t\treturn message;\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn Base64.encode(mByteList);\r\n\t}", "byte[] getData() {\n return data;\n }", "public byte[] getContent() {\n return content;\n }", "public com.google.protobuf.ByteString\n getContentBytes() {\n return instance.getContentBytes();\n }" ]
[ "0.7382581", "0.7215406", "0.7146673", "0.70268303", "0.7005073", "0.6991081", "0.6985129", "0.69832647", "0.6936978", "0.69274044", "0.69245625", "0.6923333", "0.6887467", "0.6870625", "0.68666285", "0.68588215", "0.6754337", "0.6721338", "0.6682804", "0.66761535", "0.665949", "0.6586794", "0.657507", "0.6547613", "0.6546779", "0.6546779", "0.65164346", "0.6486342", "0.6484951", "0.6484735", "0.64752847", "0.64592993", "0.6416544", "0.63842833", "0.63780713", "0.63454956", "0.63359", "0.6331995", "0.6326647", "0.6320594", "0.6319048", "0.6315757", "0.6314078", "0.62944484", "0.6288999", "0.6265463", "0.6231225", "0.621807", "0.61972046", "0.61868733", "0.61801285", "0.61675376", "0.6117214", "0.610164", "0.61001056", "0.6092212", "0.60918283", "0.60836047", "0.60649735", "0.6044125", "0.60348743", "0.6034164", "0.6030859", "0.602542", "0.60188895", "0.60107607", "0.5999484", "0.59833366", "0.5979866", "0.59777457", "0.5967889", "0.59517664", "0.59487903", "0.5946771", "0.5938162", "0.5923629", "0.59232", "0.59110457", "0.5908822", "0.58975667", "0.58974075", "0.58866805", "0.5886147", "0.5877562", "0.58671325", "0.5862902", "0.58619803", "0.58527285", "0.5844448", "0.58423465", "0.5834839", "0.58344215", "0.5828844", "0.58250237", "0.58170354", "0.5814064", "0.5812108", "0.58095205", "0.58056104", "0.58004564" ]
0.62000835
48
Externally process the bytes for this item supplied as a stream.
public void processByteStream(final Consumer<InputStream> processor) throws IOException { try(BufferedInputStream bis = new BufferedInputStream(new FileInputStream(file))) { processor.accept(bis); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onBinaryData(InputStream is) throws IOException {\n }", "public void processStreamInput() {\n }", "@Override\n public void extendStream(byte[] bytes) {\n try {\n ByteArrayOutputStream outStream = new ByteArrayOutputStream();\n stream.transferTo(outStream);\n outStream.write(bytes);\n stream = new ByteArrayInputStream(outStream.toByteArray());\n } catch (IOException ex) {\n throw new RuntimeException(\"IO Exception from ByteArrayStream\");\n }\n }", "private static void read(final InputStream istream, final byte[] bytes)\r\n throws IOException {\r\n int pos = 0;\r\n while (pos < bytes.length) {\r\n int read = istream.read(bytes, pos, bytes.length - pos);\r\n if (read < 0) {\r\n throw new RuntimeException(\"premature EOF\");\r\n }\r\n pos += read;\r\n }\r\n }", "protected InputStream decorateInputStream(HttpExchange exchange, InputStream is)\n/* */ throws IOException\n/* */ {\n/* 131 */ return is;\n/* */ }", "public abstract Object decode(InputStream is) ;", "public InputStream asByteStream() {\n return new ByteArrayInputStream(rawBytes);\n }", "protected InputStream decorateInputStream(HttpExchange exchange, InputStream is)\r\n/* 51: */ throws IOException\r\n/* 52: */ {\r\n/* 53:125 */ return is;\r\n/* 54: */ }", "@Override\n\tpublic void read(InStream inStream) {\n\t}", "private IItem getJSonStreamAsItem() {\n final IItem item = JSonItemReader.parseItem(getInputStream(), api.getItemDefinition());\n\n ValidatorEngine.validate(item, false);\n\n return item;\n }", "int readFrom(byte[] iStream, int pos, ORecordVersion version);", "void read(final DataInputStream in) throws IOException {\n // This code is tested over in TestHFileReaderV1 where we read an old hfile w/ this new code.\n int pblen = ProtobufUtil.lengthOfPBMagic();\n byte[] pbuf = new byte[pblen];\n if (in.markSupported()) in.mark(pblen);\n int read = in.read(pbuf);\n if (read != pblen) throw new IOException(\"read=\" + read + \", wanted=\" + pblen);\n if (ProtobufUtil.isPBMagicPrefix(pbuf)) {\n parsePB(HFileProtos.FileInfoProto.parseDelimitedFrom(in));\n } else {\n if (in.markSupported()) {\n in.reset();\n parseWritable(in);\n } else {\n // We cannot use BufferedInputStream, it consumes more than we read from the underlying IS\n ByteArrayInputStream bais = new ByteArrayInputStream(pbuf);\n SequenceInputStream sis = new SequenceInputStream(bais, in); // Concatenate input streams\n // TODO: Am I leaking anything here wrapping the passed in stream? We are not calling close on the wrapped\n // streams but they should be let go after we leave this context? I see that we keep a reference to the\n // passed in inputstream but since we no longer have a reference to this after we leave, we should be ok.\n parseWritable(new DataInputStream(sis));\n }\n }\n }", "public abstract InputStream getInputStream();", "public abstract InputStream getInputStream();", "int writeTo(byte[] iStream, int pos, ORecordVersion version);", "InputStream getDataStream();", "public int forEachByte(ByteProcessor processor)\r\n/* 661: */ {\r\n/* 662:670 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 663:671 */ return super.forEachByte(processor);\r\n/* 664: */ }", "@Override\n\tpublic void interpretBytes() {\n\t\t\n\t}", "protected byte[] stream2blob(InputStream is) throws IOException, IllegalArgumentException {\n return StreamUtils.stream2blob(is);\n }", "protected abstract void writeToExternal(byte[] b, int off, int len) throws IOException;", "public abstract InputStream mo131998b();", "public abstract void onBinaryReceived(byte[] data);", "public interface IStreamProcessor {\r\n\r\n\t/**\r\n\t * \r\n\t * @return the mime type the stream processor can detect\r\n\t */\r\n\tString getMimeType();\r\n\t\r\n\t/**\r\n\t * This method is used to detect for an array of bytes if this stream processor can handle that data \r\n\t * \r\n\t * @param buffer the input data\r\n\t * @return true if the buffer contains data this stream processor is able to process \r\n\t * @throws NMEAProcessingException\r\n\t */\r\n\tboolean isValidStreamProcessor(int[] buffer) throws RawDataEventException;\r\n\t\r\n\t/**\r\n\t * reads a single byte from an underlying stream or source\r\n\t * \r\n\t * @param c\r\n\t * @param streamProvider\r\n\t * @return false if processing should stop due user termination\r\n\t * @throws NMEAProcessingException\r\n\t */\r\n\tboolean readByte(int c, String streamProvider) throws RawDataEventException ;\r\n\t\r\n\t/**\r\n\t * actively closes the stream\r\n\t * @throws IOException\r\n\t */\r\n\tvoid close() throws IOException;\r\n\r\n\t/**\r\n\t * This may be used to aid misinterpretations in stream processor detection\r\n\t * \r\n\t * @return if the stream processor accepts binary data or ascii data.\r\n\t */\r\n\tboolean isBinary();\r\n}", "protected abstract OutputStream getStream() throws IOException;", "@Override\r\n\tpublic byte[] streamUnZipper(byte[] sampleBytes) throws FileSystemUtilException {\r\n\t\tthrow new FileSystemUtilException(\"000000\", null, Level.ERROR, null);\r\n\r\n\t}", "@Override\n public void consume(Stream<T> items) {\n final Set<byte[]> hashes =\n new TreeSet<>(\n (left, right) -> {\n for (int i = 0, j = 0; i < left.length && j < right.length; i++, j++) {\n var a = (left[i] & 0xff);\n var b = (right[j] & 0xff);\n if (a != b) {\n return a - b;\n }\n }\n return left.length - right.length;\n });\n final var output = SftpServer.MAPPER.createArrayNode();\n items.forEach(\n item -> {\n final var outputNode = output.addObject();\n for (final var writer : writers) {\n writer.accept(item, outputNode);\n }\n try {\n hashes.add(\n MessageDigest.getInstance(\"SHA1\")\n .digest(SftpServer.MAPPER.writeValueAsBytes(outputNode)));\n } catch (NoSuchAlgorithmException | JsonProcessingException e) {\n throw new RuntimeException(e);\n }\n });\n\n // Now, we can take a hash of the sorted hashes and be confident that if the data is the same,\n // the has will be the same even if the data was supplied in a different order\n try {\n final var digest = MessageDigest.getInstance(\"SHA1\");\n for (final var hash : hashes) {\n digest.update(hash);\n }\n final var totalHash = Utils.bytesToHex(digest.digest());\n if (totalHash.equals(lastHash)) {\n return;\n }\n if (server.get().refill(name, command + \" \" + totalHash, output)) {\n lastHash = totalHash;\n }\n\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }", "public void readData(InputStream inStream);", "protected InputStream unarmor(InputStream stream)\r\n\t\t\tthrows IOException, PGPException {\r\n\t\treturn PGPUtil.getDecoderStream(stream);\r\n\t}", "@Override\n public DataAttributes process(InputStream input) throws Ex {\n return null;\n }", "@Override // c.d.a.m.w.b.AbstractC0024b\n public InputStream b(byte[] bArr) {\n return new ByteArrayInputStream(bArr);\n }", "@SuppressWarnings(\"unused\")\r\n private void addReadStream(InputStream asciiStream) {\n\t\taddReadSize(100);\r\n\t}", "public void processRecord(WARCRecord wr, OutputStream os) {\n processed++;\n ArchiveRecordBase record = new HeritrixArchiveRecordWrapper(wr);\n ArchiveHeaderBase header = record.getHeader();\n lastSeenURL = header.getUrl();\n\n }", "protected abstract InputStream getStream(String resource);", "public interface ByteHandler {\n\n /**\n * Method to serialize any byte-chunk.\n *\n * @param toSerialize byte to be serialized\n * @return result of the serialization\n */\n OutputStream serialize(OutputStream toSerialize);\n\n /**\n * Method to deserialize any byte-chunk.\n *\n * @param toDeserialize to deserialize\n * @return result of the deserialization\n */\n InputStream deserialize(InputStream toDeserialize);\n\n /**\n * Method to retrieve a new instance.\n *\n * @return new instance\n */\n ByteHandler getInstance();\n}", "@Override\n\tpublic void processData() {\n\t\t\n\t}", "@Override\n public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { in.readByte(); // version\n type = in.readUTF();\n subType = in.readUTF();\n // allow for more data from future version\n int extra = in.readShort();\n if (extra > 0) {\n byte[] extraBytes = new byte[extra];\n in.read(extraBytes, 0, extra);\n }\n }", "public void received(ByteArrayInputStream bis, MetaData metaData) throws IOException, TypeException, ReflectiveOperationException;", "@Override\n public DataAttributes process(InputStream input,\n DataAttributes dataAttributes) throws Ex {\n return null;\n }", "protected abstract InputStream getInStreamImpl(String filename) throws IOException;", "private int readStream(final DataInputStream dis)\n\t\tthrows IOException {\n\t\tif(dis.readInt() > MAX_PROTOCOL_VERSION) {\n\t\t\treturn E_UNSUPPORTED_PROTOCOL_VERSION;\n\t\t}\n\n\t\tint length = dis.readInt();\n\t\tLog.i(\"PhoneLink\", \"Received a \"+length+\" byte parcel\");\n\t\tbyte[] data = new byte[length];\n\t\tint position = 0;\n\t\tdo {\n\t\t\tposition += dis.read(data, position, length-position);\n\t\t} while(position < length);\n\n\t\tParcel parcel = Parcel.obtain();\n\t\tparcel.unmarshall(data, 0, length);\n\t\tparcel.setDataPosition(0);\n\t\tIntent newIntent = (Intent) parcel.readValue(Intent.class.getClassLoader());\n\t\tmIntentHandler.processIntent(newIntent);\n\t\treturn OK;\n\t}", "@Override\n public void read(byte[] bytes) {\n }", "private void handleBinaryData(int size) throws IOException {\n\t\tbyte[] data = new byte[size];\n\t\tint bytesRead = source.read(data);\n\t\tif (bytesRead != size) {\n\t\t\tthrow new EOFException();\n\t\t}\n\t\thandler.handleBinaryBytes(data);\n\t}", "static byte[] streamToBytes(final InputStream in) throws IOException {\n return streamToBytes(in, new byte[7]);\n }", "public InputStream getStream();", "protected d a(InputStream paramInputStream, int paramInt) {\n }", "@Override\n public Bitstream createSingleBitstream(Context context, Item item, InputStream is)\n throws AuthorizeException, IOException, SQLException\n {\n return createSingleBitstream(context, item, is, \"ORIGINAL\");\n }", "@Test\r\n\tpublic void testCompressing() throws ClassNotFoundException,\r\n\t\t\tInstantiationException, IllegalAccessException {\n\r\n\t\tAbstractStream abstractStream = Factory\r\n\t\t\t\t.getStream(\"by.bsu.decorator.bean.FileStream\");\r\n\t\tCompressingStream stream = (CompressingStream) Factory\r\n\t\t\t\t.getStream(\"by.bsu.decorator.bean.CompressingStream\");\r\n\t\tstream.setAbstractStream(abstractStream);\r\n\t\tString str = stream.handleBufferFull();\r\n\r\n\t\tbyte[] b = new byte[10];\r\n\t\tfor (int i = 0; i < 10; i++)\r\n\t\t\tb[i] = (byte) i;\r\n\t\tstream.putByte(b);\r\n\t\tSystem.out.println(str);\r\n\t\tassertEquals(\"Compressing Stream. File Stream. \", str);\r\n\t}", "@Override\n public T readData(InputStream in) throws IOException\n {\n String doc = _read(in, \"UTF-8\");\n return _deserializer.deserialize(doc, _itemClass);\n }", "protected abstract List<List<SearchResults>> processStream();", "@SuppressWarnings(\"unused\")\r\n private void addReadStream(Reader asciiStream) {\n\t\taddReadSize(100);\r\n\t}", "Stream<In> getInputStream();", "public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {\n\n updateBinaryStream(columnIndex, x, -1);\n }", "protected final void forEachActiveStream(Http2FrameStreamVisitor streamVisitor) throws Http2Exception {\n/* 83 */ this.frameCodec.forEachActiveStream(streamVisitor);\n/* */ }", "public MyInputStream(InputStream in) {\n super(in);\n this.in = in;\n }", "public InputStream getItemAsInputStream() {\r\n\t\treturn item;\r\n\t}", "protected InputStreamFilterWrapper(InputStream inputStream) {\n this.inputStream = inputStream;\n }", "public int forEachByte(int index, int length, ByteProcessor processor)\r\n/* 667: */ {\r\n/* 668:676 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 669:677 */ return super.forEachByte(index, length, processor);\r\n/* 670: */ }", "public void OnFileDataReceived(byte[] data,int read, int length, int downloaded);", "private void processIn() throws IOException {\n for (; ; ) {\n var status = fr.process(bbin);\n switch (status) {\n case ERROR:\n silentlyClose();\n return;\n case REFILL:\n return;\n case DONE:\n Frame frame = fr.get();\n fr.reset();\n treatFrame(frame);\n break;\n }\n }\n }", "protected byte[] getBinaryData(Resource resource, @SuppressWarnings(\"unused\") SlingHttpServletRequest request) throws IOException {\n InputStream is = resource.adaptTo(InputStream.class);\n if (is == null) {\n return null;\n }\n try {\n return IOUtils.toByteArray(is);\n }\n finally {\n is.close();\n }\n }", "@Override\n public IIOMetadata getStreamData() {\n return super.streamData;\n }", "void record(int actualReadBytes);", "public MP3RetaggingInputStream(final InputStream in, byte[] newID3ByteArray) throws IOException {\r\n this.in = new MP3AudioOnlyInputStream(in);\r\n this.tagArray = newID3ByteArray;\r\n }", "public InputStreamHolder (InputStream the_stream) {\n\t\t\tstream = the_stream;\n\t\t\tis_closed = false;\n\t\t}", "@Override\n public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {\n\n\n }", "public abstract void processMsg(ConsumerRecord<byte[], byte[]> record);", "@Override\r\n public Object getBufferedFileInputStream(String name) {\n return null; \r\n }", "protected void openStream ()\n {\n stream = Util.stream (entry, \"Holder.java\");\n }", "private void addBinaryData(Document doc, OutputStream out, String tempDir) throws TransformerException {\n InputStream xsl = Thread.currentThread().getContextClassLoader()\n .getResourceAsStream(\"data/xslt/bytestreams.xsl\");\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n\n Transformer transformer = transformerFactory.newTransformer(new StreamSource(xsl));\n transformer.setParameter(\"tempDir\", tempDir);\n\n Source xmlSource = new DocumentSource(doc);\n\n Result outputTarget = new StreamResult(out); // new\n // FileWriter(outFile));\n\n log.debug(\"starting bytestream transformation ...\");\n transformer.transform(xmlSource, outputTarget);\n log.debug(\"FINISHED bytestream transformation!\");\n }", "public StreamedContent getPhotoByByte(byte[] p) {\n FacesContext context = FacesContext.getCurrentInstance();\n if (context.getRenderResponse()) {\n return new DefaultStreamedContent();\n } else if (p == null) {\n return new DefaultStreamedContent();\n } else {\n InputStream targetStream = new ByteArrayInputStream(p);\n StreamedContent str = DefaultStreamedContent.builder().contentType(\"image/png\").name(\"photo.png\").stream(() -> targetStream).build();\n return str;\n }\n }", "public abstract SeekInputStream getRawInput();", "public abstract byte[] toRawSECSItem();", "public ExecutableReader(ExecutableStream stream) throws Exception {\n\t\texStr = stream;\n\t\tread(stream);\n\t}", "public void updateBinaryStream(String columnName, InputStream x) throws SQLException {\n\n updateBinaryStream(columnName, x, -1);\n }", "protected Iterator parse(InputStream stream)\r\n\t\t\tthrows IOException, PGPException {\r\n\t\treturn new BcPGPObjectFactory(stream).iterator();\r\n\t}", "public abstract void read0(int aPosition, PageIOStream aStream);", "public interface StreamReceiver{\r\n\t/**\r\n\t * Writes an array of bytes to the object holding one end of the pipe.\r\n\t * \r\n\t * @param b The byte array to be written.\r\n\t */\r\n\tpublic abstract void write(byte[] b);\r\n\t\r\n}", "protected abstract List<InputStream> convertToInputStream(InputStream is, String paramSourceMimeType)\n\t\t\tthrows ConversionException;", "public int onBytes(byte[] b) {\n synchronized (this) {//ensure block is not interleaved with new input on other threads.\n int accum = 0;\n for (byte item : b) {//#PRESERVE order!\n accum = onByte(item & 255);//lookahead is of bytes alone, no codes will be mebedded\n }\n return accum;\n }\n }", "protected final InputStream getStream() { return _inputSource; }", "byte[] getByteContent() throws IOException;", "byte[] readBytes();", "public interface ContentDAOSPI {\n\n\tpublic InputStream getInputStream(int id);\n\n\tpublic void setBytes(int i, byte[] bytes);\n\n}", "private InputStream getRawStream(boolean skipHeader) throws MessagingException {\n/* 155 */ InputStream rawcontent = null;\n/* */ try {\n/* 157 */ synchronized (this) {\n/* 158 */ rawcontent = this.rawData.get();\n/* 159 */ if (rawcontent == null) {\n/* 160 */ TempFile cache = this.folder.getFileCache();\n/* 161 */ if (cache != null) {\n/* 162 */ Session s = ((POP3Store)this.folder.getStore()).getSession();\n/* 163 */ if (this.folder.logger.isLoggable(Level.FINE)) {\n/* 164 */ this.folder.logger.fine(\"caching message #\" + this.msgnum + \" in temp file\");\n/* */ }\n/* 166 */ AppendStream os = cache.getAppendStream();\n/* 167 */ BufferedOutputStream bos = new BufferedOutputStream(os);\n/* */ try {\n/* 169 */ this.folder.getProtocol().retr(this.msgnum, bos);\n/* */ } finally {\n/* 171 */ bos.close();\n/* */ } \n/* 173 */ rawcontent = os.getInputStream();\n/* */ } else {\n/* 175 */ rawcontent = this.folder.getProtocol().retr(this.msgnum, (this.msgSize > 0) ? (this.msgSize + this.hdrSize) : 0);\n/* */ } \n/* */ \n/* 178 */ if (rawcontent == null) {\n/* 179 */ this.expunged = true;\n/* 180 */ throw new MessageRemovedException(\"can't retrieve message #\" + this.msgnum + \" in POP3Message.getContentStream\");\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 185 */ if (this.headers == null || ((POP3Store)this.folder.getStore()).forgetTopHeaders) {\n/* */ \n/* 187 */ this.headers = new InternetHeaders(rawcontent);\n/* 188 */ this.hdrSize = (int)((SharedInputStream)rawcontent).getPosition();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 203 */ int len, offset = 0;\n/* */ do {\n/* 205 */ len = 0;\n/* */ int c1;\n/* 207 */ while ((c1 = rawcontent.read()) >= 0 && \n/* 208 */ c1 != 10) {\n/* */ \n/* 210 */ if (c1 == 13) {\n/* */ \n/* 212 */ if (rawcontent.available() > 0) {\n/* 213 */ rawcontent.mark(1);\n/* 214 */ if (rawcontent.read() != 10) {\n/* 215 */ rawcontent.reset();\n/* */ }\n/* */ } \n/* */ \n/* */ break;\n/* */ } \n/* 221 */ len++;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 226 */ if (rawcontent.available() == 0) {\n/* */ break;\n/* */ }\n/* */ }\n/* 230 */ while (len != 0);\n/* */ \n/* */ \n/* 233 */ this.hdrSize = (int)((SharedInputStream)rawcontent).getPosition();\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 238 */ this.msgSize = rawcontent.available();\n/* */ \n/* 240 */ this.rawData = new SoftReference(rawcontent);\n/* */ } \n/* */ } \n/* 243 */ } catch (EOFException eex) {\n/* 244 */ this.folder.close(false);\n/* 245 */ throw new FolderClosedException(this.folder, eex.toString());\n/* 246 */ } catch (IOException ex) {\n/* 247 */ throw new MessagingException(\"error fetching POP3 content\", ex);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 255 */ rawcontent = ((SharedInputStream)rawcontent).newStream(skipHeader ? this.hdrSize : 0L, -1L);\n/* */ \n/* 257 */ return rawcontent;\n/* */ }", "void setBinaryStream(int index, InputStream stream, int count)\n throws SQLException;", "@Override\n\tpublic void processMessage(byte[] message) {\n\t}", "private void readFromStream(InputStream in) throws IOException {\n\n\t\tdataValue = null;\t// allow gc of the old value before the new.\n\t\tbyte[] tmpData = new byte[32 * 1024];\n\n\t\tint off = 0;\n\t\tfor (;;) {\n\n\t\t\tint len = in.read(tmpData, off, tmpData.length - off);\n\t\t\tif (len == -1)\n\t\t\t\tbreak;\n\t\t\toff += len;\n\n\t\t\tint available = Math.max(1, in.available());\n\t\t\tint extraSpace = available - (tmpData.length - off);\n\t\t\tif (extraSpace > 0)\n\t\t\t{\n\t\t\t\t// need to grow the array\n\t\t\t\tint size = tmpData.length * 2;\n\t\t\t\tif (extraSpace > tmpData.length)\n\t\t\t\t\tsize += extraSpace;\n\n\t\t\t\tbyte[] grow = new byte[size];\n\t\t\t\tSystem.arraycopy(tmpData, 0, grow, 0, off);\n\t\t\t\ttmpData = grow;\n\t\t\t}\n\t\t}\n\n\t\tdataValue = new byte[off];\n\t\tSystem.arraycopy(tmpData, 0, dataValue, 0, off);\n\t}", "boolean readByte(int c, String streamProvider) throws RawDataEventException ;", "@Override\n\tpublic void setBinaryStream(int parameterIndex, InputStream x) throws SQLException {\n\t\t\n\t}", "public IRubyObject each_byteInternal(ThreadContext context, Block block) {\n Ruby runtime = context.getRuntime();\n \n \ttry {\n OpenFile myOpenFile = getOpenFileChecked();\n \n while (true) {\n myOpenFile.checkReadable(runtime);\n myOpenFile.setReadBuffered();\n waitReadable(myOpenFile.getMainStream());\n \n int c = myOpenFile.getMainStreamSafe().fgetc();\n \n // CRuby checks ferror(f) and retry getc for\n // non-blocking IO.\n if (c == -1) {\n break;\n }\n \n assert c < 256;\n block.yield(context, getRuntime().newFixnum(c));\n }\n \n return this;\n } catch (InvalidValueException ex) {\n throw runtime.newErrnoEINVALError();\n } catch (BadDescriptorException e) {\n throw runtime.newErrnoEBADFError();\n } catch (EOFException e) {\n return runtime.getNil();\n \t} catch (IOException e) {\n \t throw runtime.newIOErrorFromException(e);\n }\n }", "protected void unserialize(InputStream paramInputStream) throws IOException {\n/* 336 */ this.m_index_ = new char[this.m_dataOffset_];\n/* 337 */ DataInputStream dataInputStream = new DataInputStream(paramInputStream);\n/* 338 */ for (byte b = 0; b < this.m_dataOffset_; b++) {\n/* 339 */ this.m_index_[b] = dataInputStream.readChar();\n/* */ }\n/* */ }", "@Override\r\n\tprotected void process(List<String> chunks) {\r\n\t\tfor (String data: chunks) {\r\n\t\t\thandleData(data);\r\n\t\t}\r\n\t}", "public InputStream getInputStream(long position);", "@Override\n\tprotected void setData(DataStream dataStream) throws IOException {\n\t\t\n\t}", "public void OnFileIncoming(int length);", "static Bitmap decodeStream(InputStream p1, Request p2) throws IOException {\n }", "@Override\n public int read(byte[] bytes, int offset, int count) throws IOException {\n return updateBytesRead(super.read(bytes, offset, count));\n }", "@NotNull\n RecordId writeStream(@NotNull InputStream stream) throws IOException;", "private static byte[] streamToBytes(InputStream in, int length)\n\t\t\tthrows IOException {\n\t\tbyte[] bytes = new byte[length];\n\t\tint count;\n\t\tint pos = 0;\n\t\twhile (pos < length\n\t\t\t\t&& ((count = in.read(bytes, pos, length - pos)) != -1)) {\n\t\t\tpos += count;\n\t\t}\n\t\tif (pos != length) {\n\t\t\tthrow new IOException(\"Expected \" + length + \" bytes, read \" + pos\n\t\t\t\t\t+ \" bytes\");\n\t\t}\n\t\treturn bytes;\n\t}", "String writeStreamToStore(InputStream in, long actualSize, Mailbox mbox) throws IOException, ServiceException;" ]
[ "0.6275447", "0.60319275", "0.58591557", "0.56729615", "0.5494292", "0.5490886", "0.5468852", "0.5456359", "0.54314446", "0.53837126", "0.5368489", "0.53588027", "0.52780586", "0.52780586", "0.52684206", "0.52611953", "0.52603585", "0.5251401", "0.52484816", "0.5214687", "0.51850635", "0.5183765", "0.51805544", "0.51736146", "0.5152794", "0.5131511", "0.51163787", "0.51119953", "0.5095702", "0.5078707", "0.5076292", "0.5067787", "0.50564617", "0.50468934", "0.5042595", "0.50041926", "0.5000035", "0.49807775", "0.49747747", "0.49707988", "0.49439403", "0.49315333", "0.49265498", "0.49252316", "0.49248204", "0.49085957", "0.49024606", "0.4895647", "0.4884314", "0.48833793", "0.48781553", "0.486576", "0.4860178", "0.4859393", "0.485699", "0.48499158", "0.48480016", "0.48476148", "0.48436138", "0.48317578", "0.48154694", "0.4812921", "0.48103428", "0.48076794", "0.48001686", "0.47965425", "0.47955608", "0.47939733", "0.47909898", "0.47864947", "0.47843623", "0.47764978", "0.47742194", "0.4774076", "0.4761429", "0.4761136", "0.47538763", "0.47412252", "0.4734794", "0.47338957", "0.47300482", "0.47287053", "0.47243544", "0.47240174", "0.47175893", "0.4705265", "0.47050655", "0.47037774", "0.469064", "0.46888915", "0.4684941", "0.46838516", "0.4673423", "0.46688053", "0.46663165", "0.4663104", "0.46622792", "0.46551192", "0.46526462", "0.4646315" ]
0.5670777
4
Gets the size of this item in bytes.
public long size() { return file.length(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long sizeInKB() {\n return this.sizeInKB;\n }", "public long getSize() {\n return size.get();\n }", "public int getSizeBytes() {\n if (getDataType() == DataType.SEQUENCE)\n return getDataType().getSize();\n else if (getDataType() == DataType.STRING)\n return getDataType().getSize();\n else if (getDataType() == DataType.STRUCTURE)\n return size * members.getStructureSize();\n // else if (this.isVariableLength())\n // return 0; // do not know\n else\n return size * getDataType().getSize();\n }", "@ManagedAttribute(description = \"Size in bytes\")\n\tpublic long getSizeInBytes() {\n\t\ttry {\n\t\t\treturn store.estimateSize().bytes();\n\t\t} catch (IOException e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "public int get_size()\r\n\t{\r\n\t\treturn this.size;\r\n\t}", "public int size() {\n return bytes.length;\n }", "public long getSize() {\n\t\treturn size;\n\t}", "public long getSize() {\r\n\t\treturn size;\r\n\t}", "public Long sizeInBytes() {\n return this.sizeInBytes;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\r\n return size;\r\n }", "public long getSize() {\n return mSize;\n }", "public int getSize()\n\t{\n\t\treturn bytes.length;\n\t}", "public synchronized int getSize() {\n\t\treturn this.size;\n\t}", "public long size() {\n\t\treturn size;\n\t}", "public long getSize() {\n return size;\n }", "public final int getSize() {\n return size;\n }", "public int getSize() {\n\t\t\treturn this.size;\n\t\t}", "@Override\n\tpublic long size() {\n\t\t\n\t\treturn mySize;\n\t}", "public int getSize() {\n\t\treturn m_size;\n\t}", "public int getSize() {\n\t\treturn this.size;\n\t}", "public int getSize() {\n\t\treturn this.size;\n\t}", "public int getSize() {\n\t\treturn this.size;\n\t}", "public int getSize() {\n\t\treturn this.size;\n\t}", "public int getSize() {\n\t\treturn this.size;\n\t}", "public Integer getSize() {\n return size;\n }", "public int getSize() {\n\t\treturn _size;\n\t}", "public static byte getSize() {\n return SIZE;\n }", "public int getSize() {\n return this.size;\n }", "public int getSize() {\r\n return _size;\r\n }", "public final long getSize() { return size; }", "public long getByteCount() {\n return byteCount;\n }", "public int getSize() {\n synchronized (itemsList) {\n return itemsList.size();\n }\n }", "public int getSize() {\r\n\t\treturn this.size;\r\n\t}", "public int getSize() {\r\n\t\treturn this.size;\r\n\t}", "public long getSize()\n {\n return getLong(\"Size\");\n }", "public int getLength() {\n return mySize.getLength();\n }", "public TSizeInBytes getSize() {\n\n\t\treturn size;\n\t}", "public int getSize() {\r\n return this.size;\r\n }", "public int getSize() {\n return this.serialize().limit();\n }", "public int getSize()\n\t{\n\t\treturn this.size;\n\t}", "public int getSize()\n {\n return this.size;\n }", "public int sizeInBytes() {\n\t\treturn this.actualsizeinwords * 8;\n\t}", "public synchronized long size() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public String getSize() {\n return size;\n }", "public String getSize() {\n return size;\n }", "public int getSize(){\n\t\treturn this.size;\n\t}", "public String getSize() {\r\n return size;\r\n }", "@Nonnegative\n public int getSize()\n {\n return items.size();\n }", "@Override\n\tpublic long size() {\n\t\treturn this.currentLength.get();\n\t}", "public int getSize() {\r\n\t\treturn size;\r\n\t}", "public final String getSizeAttribute() {\n return getAttributeValue(\"size\");\n }", "public int getSize() {\n return iSize;\n }", "public int size() {\n\t\tif (baos == null || baos.toByteArray() == null) return 0;\n\t\telse return baos.toByteArray().length;\n\t}", "public int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public double getSize() {\n return size_;\n }", "public int getSize() {\r\n return size;\r\n }", "public int getSize( )\n {\n return size;\n }", "public int size() {\r\n if (NumItems > Integer.MAX_VALUE) {\r\n return Integer.MAX_VALUE;\r\n }\r\n return NumItems;\r\n }", "@NotPersistent\n public String getSize() {\n return size;\n }", "public int getSize()\n\t{\n\t\treturn size;\n\t}", "public int getSize()\n\t{\n\t\treturn size;\n\t}", "public int getLengthInBytes()\n {\n return lengthInBytes;\n }", "public int size () {\r\n return this.size;\r\n }", "public int getSize() {\n\n return size;\n }", "public double getSize() {\n return size_;\n }", "public int size() {\n return mSize;\n }", "public int getSize()\r\n {\r\n return size;\r\n }", "@MavlinkFieldInfo(\n position = 2,\n unitSize = 4,\n description = \"total data size (set on ACK only).\"\n )\n public final long size() {\n return this.size;\n }", "public int getSize() {\r\n \treturn size;\r\n }", "public long getTotalSize() {\n return totalSize;\n }", "public int getSize()\r\n {\r\n return size;\r\n }", "public int getSize()\n {\n return size;\n }", "public int getSize()\n {\n return size;\n }", "public int getSize()\n {\n return size;\n }", "public int getSize() {\n\t\treturn size();\n\t}", "private int getSize() {\r\n\t\treturn this.size;\r\n\t}" ]
[ "0.78038675", "0.7703986", "0.769477", "0.7692874", "0.7596061", "0.75872934", "0.7583282", "0.7579769", "0.7575892", "0.7555777", "0.7555777", "0.7555777", "0.7555777", "0.7539284", "0.7520762", "0.7505902", "0.7505862", "0.74894434", "0.7469699", "0.7466726", "0.7458119", "0.7456071", "0.7452335", "0.74404263", "0.74404263", "0.74404263", "0.74404263", "0.74404263", "0.74401635", "0.74306685", "0.74281013", "0.7414865", "0.7402618", "0.74022245", "0.74008495", "0.7398092", "0.73972124", "0.73972124", "0.7393826", "0.7385713", "0.7383258", "0.73678243", "0.7360196", "0.7359467", "0.7355843", "0.73480374", "0.72946405", "0.728468", "0.728468", "0.728468", "0.728468", "0.728468", "0.728468", "0.728468", "0.728468", "0.728468", "0.728468", "0.728468", "0.728468", "0.728468", "0.7284539", "0.7284539", "0.72759426", "0.72716475", "0.726153", "0.7255134", "0.72496545", "0.7247219", "0.72453105", "0.7244955", "0.7239831", "0.7239831", "0.7239831", "0.7239831", "0.7239831", "0.7239831", "0.7239831", "0.7239831", "0.72320175", "0.72297436", "0.7220023", "0.72187036", "0.72046024", "0.7192861", "0.7181745", "0.7181745", "0.7172445", "0.7169865", "0.7165742", "0.71623224", "0.7162069", "0.71597767", "0.71551013", "0.7145732", "0.7145128", "0.7139376", "0.71310735", "0.71310735", "0.71310735", "0.7130353", "0.71279377" ]
0.0
-1
Create a map of manifest items vs id.
private static Map<String, ManifestItem> manifestItems(final File rootDir, final Document opfDoc) throws IOException { Map<String, ManifestItem> files = Maps.newLinkedHashMap(); for(Element element : opfDoc.select("manifest > item")) { String href = element.attr("href").trim(); if(href.isEmpty()) { continue; } else if(href.startsWith("/")) { href = href.substring(1); } File file = new File(rootDir, href); if(!file.exists()) { throw new IOException(String.format("Missing file, '%s'", file.getAbsolutePath())); } String id = element.attr("id").trim(); if(id.isEmpty()) { throw new IOException(String.format("Missing id for, '%s'", file.getAbsolutePath())); } String mediaType = element.attr("media-type").trim(); files.put(id, new ManifestItem(id, href, file, mediaType)); } return files; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Map<String, Integer> m589m(Context context) {\r\n Map<String, Integer> hashMap = new HashMap();\r\n try {\r\n List<PackageInfo> installedPackages = context.getPackageManager().getInstalledPackages(0);\r\n if (installedPackages != null && installedPackages.size() > 0) {\r\n for (PackageInfo packageInfo : installedPackages) {\r\n hashMap.put(packageInfo.packageName, Integer.valueOf(packageInfo.applicationInfo.uid));\r\n }\r\n }\r\n } catch (Throwable th) {\r\n }\r\n return hashMap;\r\n }", "private void loadItemsMaps()\n {\n _icons=new HashMap<String,List<Item>>(); \n _names=new HashMap<String,List<Item>>(); \n List<Item> items=ItemsManager.getInstance().getAllItems();\n for(Item item : items)\n {\n String icon=item.getIcon();\n if (icon!=null)\n {\n registerMapping(_icons,icon,item);\n String mainIconId=icon.substring(0,icon.indexOf('-'));\n registerMapping(_icons,mainIconId,item);\n String name=item.getName();\n registerMapping(_names,name,item);\n }\n }\n }", "public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}", "private Map<String,List<String>> createExtentionMap()\r\n\t{\r\n\t\tMap<String,List<String>> extMap = new HashMap<String, List<String>>();\t\r\n\t\t\r\n\t\tfor(String material :this.materialWorkflow.getMaterial())\r\n\t\t{\r\n\t\t\tString extentions = material.substring(material.indexOf(\".\")+1,material.length());\r\n\t\t\t\r\n\t\t\tif(!extMap.containsKey(extentions))\r\n\t\t\t{\r\n\t\t\t\tList<String> materialList = new ArrayList<String>();\t\t\r\n\t\t\t\tmaterialList.add(material);\r\n\t\t\t\t\r\n\t\t\t\textMap.put(extentions, materialList);\r\n\t\t\t}else\t\t\t\r\n\t\t\t\textMap.get(extentions).add(material);\t\t\t\r\n\t\t}\t\r\n\t\t\r\n\t\treturn extMap;\t\t\r\n\t}", "public final Map<String, Long> mo14821i() {\n HashMap hashMap = new HashMap();\n HashMap hashMap2 = new HashMap();\n try {\n Iterator it = ((ArrayList) mo14817d()).iterator();\n while (it.hasNext()) {\n File file = (File) it.next();\n C3474b j = mo14822j(file.getName());\n if (j != null) {\n hashMap2.put(file.getName(), j);\n }\n }\n } catch (IOException e) {\n f6563c.mo14884b(6, \"Could not process directory while scanning installed packs: %s\", new Object[]{e});\n }\n for (String str : hashMap2.keySet()) {\n hashMap.put(str, Long.valueOf(mo14833u(str)));\n }\n return hashMap;\n }", "private void read_manifest(){\n dir = new File(context.getFilesDir(), folderName);\n dir.mkdir();\n manifestFile = new File(dir, \"manifest\");\n BufferedReader manifestIn = null;\n try {\n manifestIn = new BufferedReader(new FileReader(manifestFile));\n String line;\n while ((line = manifestIn.readLine()) != null) {\n String[] keyValuePair = line.split(\",\");\n pictureList.add(new KeyNamePair(keyValuePair[0], keyValuePair[1]));\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (manifestIn != null) {\n try {\n manifestIn.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "static Map<String, Handlers> getIntentMap()\n\t{\n\t\tMap<String, Handlers> h_map = new HashMap<>();\n\t\t\n\t\t\n\t\th_map.put (ADDRESS_ADD , Handlers.NODE_CREATE);\n\t\th_map.put (ADDRESS_ASSOCIATE , Handlers.LINK_CREATE);\n\t\th_map.put (ADDRESS_DELETE , Handlers.NODE_DELETE);\n\t\th_map.put (EVENT_ADD , Handlers.NODE_CREATE_AND_LINK);\n\t\th_map.put (EVENT_DELETE , Handlers.NODE_DELETE);\n\t\th_map.put (GROUP_ADD , Handlers.NODE_CREATE);\n\t\th_map.put (GROUP_DELETE , Handlers.NODE_DELETE);\n\t\th_map.put (GROUP_MEMBER_ADD , Handlers.LINK_CREATE);\n\t\th_map.put (GROUP_MEMBER_DELETE, Handlers.LINK_DELETE);\n\t\th_map.put (PERSON_ADD , Handlers.NODE_CREATE);\n\t\th_map.put (PERSON_DELETE , Handlers.NODE_DELETE);\n\t\th_map.put (SUBSCRIPTION_ADD , Handlers.NODE_CREATE_AND_MULTILINK);\n\t\th_map.put (SUBSCRIPTION_DELETE, Handlers.NODE_DELETE);\n\t\th_map.put (USER_DELETE , Handlers.NODE_DELETE);\n\t\th_map.put (USER_REGISTER , Handlers.REGISTER_USER);\n\n\t\treturn h_map;\n\t}", "private static Map<String, Integer> assignVertexIds(DAG dag) {\n Map<String, Integer> vertexIdMap = new LinkedHashMap<>();\n final int[] vertexId = {0};\n dag.forEach(v -> vertexIdMap.put(v.getName(), vertexId[0]++));\n return vertexIdMap;\n }", "@SuppressWarnings(\"unused\")\n private static <T extends AbstractApiIdentifiableDTO> Map<Long, T> generateIdMap(List<T> idList) {\n Map<Long, T> results = new HashMap<>(idList.size());\n\n for (T idSingle : idList) {\n results.put(idSingle.getId(), idSingle);\n }\n\n return results;\n }", "private static <T extends AbstractApiIdentifiableDTO> Map<Long, List<T>> generateIdMapList(List<T> idList) {\n Map<Long, List<T>> results = new HashMap<>();\n\n for (T idSingle : idList) {\n Long sourceId = idSingle.getId();\n if (results.containsKey(sourceId)) {\n results.get(sourceId).add(idSingle);\n } else {\n // ID didn't exist so add a new list\n List<T> list = new ArrayList<>(1);\n list.add(idSingle);\n results.put(sourceId, list);\n }\n }\n\n return results;\n }", "private static void mapDbAsstIDs()\r\n {\r\n if (dbIdMap == null) {\r\n dbIdMap = new HashMap<String, Integer>();\r\n dbIdMap.put(\"repair\", 1);\r\n dbIdMap.put(\"fuel\", 2);\r\n dbIdMap.put(\"tuition\", 3);\r\n dbIdMap.put(\"clothing\", 4);\r\n dbIdMap.put(\"registration\", 5);\r\n dbIdMap.put(\"utilities\", 21);\r\n }\r\n }", "public Map getShelfItemBelonging(String first, String second, List<ShelfItem> items);", "public Map<String, Object> getPrimaryKey() {\n Map<String, Object> ret = new LinkedHashMap<String, Object>(6);\n ret.put(\"regItemUid\", getRegItemUid());\n return ret;\n }", "public Map<String,String> getMetadataElementMap() {\n\t\tMap<String,String> uiList = new LinkedHashMap<String,String>();\n\t\tfor (MetadataElement element: MetadataElement.values()){\n\t\t\tuiList.put(element.toString(), element.getDisplayName());\n\t\t}\n \n\t\treturn uiList;\n\t}", "public interface IDs {\n\n static final String SERIES_STANDARD_ID = \"c7fb8441-d5db-4113-8af0-e4ba0c3f51fd\";\n static final String EPISODE_STANDARD_ID = \"a99a8588-93df-4811-8403-fe22c70fa00a\";\n static final String FILE_STANDARD_ID = \"c5919cbf-fbf3-4250-96e6-3fefae51ffc5\";\n static final String RECORDING_STANDARD_ID = \"4a40811d-c067-467f-8ff6-89f37eddb933\";\n static final String ZAP2IT_STANDARD_ID = \"545c4b00-5409-4d92-9cda-59a44f0ec7a9\";\n}", "private static Map getMapPotionIds() {\n/* 350 */ if (mapPotionIds == null) {\n/* */ \n/* 352 */ mapPotionIds = new LinkedHashMap<>();\n/* 353 */ mapPotionIds.put(\"water\", new int[1]);\n/* 354 */ mapPotionIds.put(\"awkward\", new int[] { 16 });\n/* 355 */ mapPotionIds.put(\"thick\", new int[] { 32 });\n/* 356 */ mapPotionIds.put(\"potent\", new int[] { 48 });\n/* 357 */ mapPotionIds.put(\"regeneration\", getPotionIds(1));\n/* 358 */ mapPotionIds.put(\"moveSpeed\", getPotionIds(2));\n/* 359 */ mapPotionIds.put(\"fireResistance\", getPotionIds(3));\n/* 360 */ mapPotionIds.put(\"poison\", getPotionIds(4));\n/* 361 */ mapPotionIds.put(\"heal\", getPotionIds(5));\n/* 362 */ mapPotionIds.put(\"nightVision\", getPotionIds(6));\n/* 363 */ mapPotionIds.put(\"clear\", getPotionIds(7));\n/* 364 */ mapPotionIds.put(\"bungling\", getPotionIds(23));\n/* 365 */ mapPotionIds.put(\"charming\", getPotionIds(39));\n/* 366 */ mapPotionIds.put(\"rank\", getPotionIds(55));\n/* 367 */ mapPotionIds.put(\"weakness\", getPotionIds(8));\n/* 368 */ mapPotionIds.put(\"damageBoost\", getPotionIds(9));\n/* 369 */ mapPotionIds.put(\"moveSlowdown\", getPotionIds(10));\n/* 370 */ mapPotionIds.put(\"diffuse\", getPotionIds(11));\n/* 371 */ mapPotionIds.put(\"smooth\", getPotionIds(27));\n/* 372 */ mapPotionIds.put(\"refined\", getPotionIds(43));\n/* 373 */ mapPotionIds.put(\"acrid\", getPotionIds(59));\n/* 374 */ mapPotionIds.put(\"harm\", getPotionIds(12));\n/* 375 */ mapPotionIds.put(\"waterBreathing\", getPotionIds(13));\n/* 376 */ mapPotionIds.put(\"invisibility\", getPotionIds(14));\n/* 377 */ mapPotionIds.put(\"thin\", getPotionIds(15));\n/* 378 */ mapPotionIds.put(\"debonair\", getPotionIds(31));\n/* 379 */ mapPotionIds.put(\"sparkling\", getPotionIds(47));\n/* 380 */ mapPotionIds.put(\"stinky\", getPotionIds(63));\n/* */ } \n/* */ \n/* 383 */ return mapPotionIds;\n/* */ }", "Map<DimensionalItemId, DimensionalItemObject> getIndicatorDimensionalItemMap(\n Collection<Indicator> indicators);", "public String getManifestId()\n {\n return mManifestId;\n }", "public static Map<String,List<CustomItemDto>> createMap(List<CustomItemDto> items){\n\t\t\n\t\tMap<String,List<CustomItemDto>> map=new HashMap<>();\n\n\t\tfor(CustomItemDto item:items){\n\t\t\n\t \tif(!map.containsKey(item.getCardType())){\t\n\t \t\tList<CustomItemDto> c = new ArrayList<>();\n\t\t\tc.add(item);\n\t\t map.put(item.getCardType(),c);\n\t\t }else{\t\n\t\t\tList<CustomItemDto> c=map.get(item.getCardType());\n\t\t c.add(item);\t\t\n\t\t\t\t}//else\n\t\t\t}\n\t\treturn map;\n\t\t}", "private Map<String, Node> getLookupDictionaryForId(Document doc){\n Map<String, Node> lookup = new HashMap<String, Node>();\n NodeList foodItemNodeList = doc.getElementsByTagName(\"FoodItem\");\n for(int i=0; i < foodItemNodeList.getLength(); i++){\n Element foodItemNode = (Element)foodItemNodeList.item(i);\n String id = foodItemNode.getElementsByTagName(\"id\").item(0).getTextContent();\n lookup.put(id, foodItemNodeList.item(i));\n }\n return lookup;\n }", "public HashMap<String, List<String>> getItemMap() {\r\n\r\n\t\thelmet_abilities.add(Game_constants.INTELLIGENCE);\r\n\t\thelmet_abilities.add(Game_constants.WISDOM);\r\n\t\thelmet_abilities.add(Game_constants.ARMOR_CLASS);\r\n\r\n\t\tarmor_abilities.add(Game_constants.ARMOR_CLASS);\r\n\r\n\t\tshield_abilities.add(Game_constants.ARMOR_CLASS);\r\n\r\n\t\tring_abilities.add(Game_constants.ARMOR_CLASS);\r\n\t\tring_abilities.add(Game_constants.STRENGTH);\r\n\t\tring_abilities.add(Game_constants.CONSTITUTION);\r\n\t\tring_abilities.add(Game_constants.WISDOM);\r\n\t\tring_abilities.add(Game_constants.CHARISMA);\r\n\r\n\t\tbelt_abilities.add(Game_constants.CONSTITUTION);\r\n\t\tbelt_abilities.add(Game_constants.STRENGTH);\r\n\r\n\t\tboots_abilities.add(Game_constants.ARMOR_CLASS);\r\n\t\tboots_abilities.add(Game_constants.DEXTERITY);\r\n\r\n\t\tweapon_abilities.add(Game_constants.ATTACK_BONUS);\r\n\t\tweapon_abilities.add(Game_constants.DAMAGE_BONUS);\r\n\r\n\t\titem_map.put(Game_constants.HELMET, helmet_abilities);\r\n\t\titem_map.put(Game_constants.ARMOR, armor_abilities);\r\n\t\titem_map.put(Game_constants.SHIELD, shield_abilities);\r\n\t\titem_map.put(Game_constants.RING, ring_abilities);\r\n\t\titem_map.put(Game_constants.BELT, belt_abilities);\r\n\t\titem_map.put(Game_constants.BOOTS, boots_abilities);\r\n\t\titem_map.put(Game_constants.WEAPON_MELEE, weapon_abilities);\r\n\t\titem_map.put(Game_constants.WEAPON_RANGE, weapon_abilities);\r\n\r\n\t\treturn item_map;\r\n\r\n\t}", "private Map<String, List<EpisodeACLTransition>> groupByEpisodeId(List<EpisodeACLTransition> ts) {\n return mlist(ts)\n .foldl(MultiMap.<String, EpisodeACLTransition> multiHashMapWithArrayList(),\n new Function2<MultiMap<String, EpisodeACLTransition>, EpisodeACLTransition, MultiMap<String, EpisodeACLTransition>>() {\n @Override\n public MultiMap<String, EpisodeACLTransition> apply(MultiMap<String, EpisodeACLTransition> mmap,\n EpisodeACLTransition t) {\n return mmap.put(t.getEpisodeId(), t);\n }\n }).value();\n }", "Map<Integer, String> getMetaLocal();", "@Override\n\tpublic Map<Long,FornameRequirements> getRequirementsMapByIds(List<Long> ids) {\n\t\tList<FornameRequirements> list=fornameRequirementsMapper.getRequirementsListByIds(ids);\n\t\tMap<Long,FornameRequirements> data=new HashMap<Long,FornameRequirements>();\n\t\tfor(FornameRequirements obj:list){\n\t\t\tdata.put(obj.getId(), obj);\n\t\t}\n\t\treturn data;\n\t}", "public static Map<String, BidInfo> getAllBids() {\n\t\tMap<String, BidInfo> bids = new HashMap<String, BidInfo>();\n\n\t\tFile folder = new File(\"bids/\");\n\t\tFile[] listOfFiles = folder.listFiles();\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++) {\n\t\t\tif (listOfFiles[i].isFile()) {\n\t\t\t\tbids.put(listOfFiles[i].getName(), searchBid(listOfFiles[i].getName()));\n\t\t\t}\n\t\t}\n\n\t\treturn bids;\n\t}", "private void readManifest() {\n String fn = Configs.manifestLocation;\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n try {\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(fn);\n Node root = doc.getElementsByTagName(\"manifest\").item(0);\n String appPkg = root.getAttributes().getNamedItem(\"package\").getTextContent();\n\n Node appNode = doc.getElementsByTagName(\"application\").item(0);\n NodeList nodes = appNode.getChildNodes();\n for (int i = 0; i < nodes.getLength(); ++i) {\n Node n = nodes.item(i);\n String eleName = n.getNodeName();\n if (\"activity\".equals(eleName)) {\n try {\n NamedNodeMap m = n.getAttributes();\n String cls = m.getNamedItem(\"android:name\").getTextContent();\n if ('.' == cls.charAt(0)) {\n cls = appPkg + cls;\n }\n // record the information for activity filters\n NodeList filterNodes = n.getChildNodes();\n for (int idx = 0; idx < filterNodes.getLength(); idx++) {\n Node filterNode = filterNodes.item(idx);\n if (filterNode.getNodeName().equals(\"intent-filter\")) {\n Node actionNode = filterNode.getFirstChild();\n IntentFilter filter = new IntentFilter();\n // assume no duplicated intent filter for any activity\n while (actionNode != null) {\n if (actionNode.getNodeName().equals(\"action\")) {\n String actionName = actionNode.getAttributes().getNamedItem(\"android:name\").getTextContent();\n filter.addAction(actionName);\n } else if (actionNode.getNodeName().equals(\"category\")) {\n String category = actionNode.getAttributes().getNamedItem(\"android:name\").getTextContent();\n filter.addCategory(category);\n } else if (actionNode.getNodeName().equals(\"data\")) {\n {\n Node mTypeNode = actionNode.getAttributes().getNamedItem(\"android:mimeType\");\n String mType = mTypeNode == null ? null : mTypeNode.getTextContent();\n if (mType != null) {\n filter.addDataType(mType);\n }\n }\n {\n Node scheNode = actionNode.getAttributes().getNamedItem(\"android:scheme\");\n String scheme = scheNode == null ? null : scheNode.getTextContent();\n if (scheme != null) {\n filter.addDataScheme(scheme);\n }\n }\n {\n Node hostNode = actionNode.getAttributes().getNamedItem(\"android:host\");\n String host = hostNode == null ? null : hostNode.getTextContent();\n Node portNode = actionNode.getAttributes().getNamedItem(\"android:port\");\n String port = portNode == null ? null : portNode.getTextContent();\n if (host != null || port != null) {\n filter.addDataAuthority(host, port);\n }\n }\n {\n Node pathNode = actionNode.getAttributes().getNamedItem(\"android:path\");\n String path = pathNode == null ? null : pathNode.getTextContent();\n if (path != null) {\n filter.addDataPath(path, PatternMatcher.PATTERN_LITERAL);\n }\n }\n {\n Node pathNode = actionNode.getAttributes().getNamedItem(\"android:pathPrefix\");\n String path = pathNode == null ? null : pathNode.getTextContent();\n if (path != null) {\n filter.addDataPath(path, PatternMatcher.PATTERN_PREFIX);\n }\n }\n {\n Node pathNode = actionNode.getAttributes().getNamedItem(\"android:pathPattern\");\n String path = pathNode == null ? null : pathNode.getTextContent();\n if (path != null) {\n filter.addDataPath(path, PatternMatcher.PATTERN_SIMPLE_GLOB);\n }\n }\n }\n actionNode = actionNode.getNextSibling();\n }\n filterManager.addFilter(cls, filter);\n }\n }\n } catch (NullPointerException ne) {\n //work around for uk.co.busydoingnothing.catverbs_5.apk\n Logger.verb(\"ERROR\", \"Nullpointer Exception in readManifest, may be caused by \" +\n \"customized namespace\");\n continue;\n }\n }\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n Logger.err(getClass().getSimpleName(), ex.getMessage());\n }\n }", "private static Map<VOTableVersion,VersionDetail>\n createMap( VersionDetail[] vds ) {\n Map<VOTableVersion,VersionDetail> map =\n new LinkedHashMap<VOTableVersion,VersionDetail>();\n for ( int i = 0; i < vds.length; i++ ) {\n map.put( vds[ i ].version_, vds[ i ] );\n }\n return map;\n }", "Map<Integer, ItemStack> getContents();", "public boolean populateManifestMap( Node iNode )\n {\n // looks exactly like prunetree as we walk down the tree\n LOGGER.entering( \"ManifestMap\", \"populateManifestMap\" ); \n\n boolean result = true;\n\n // is there anything to do?\n if ( iNode == null )\n {\n result = false;\n return result;\n }\n\n int type = iNode.getNodeType();\n\n switch ( type )\n {\n case Node.PROCESSING_INSTRUCTION_NODE:\n {\n break;\n }\n case Node.DOCUMENT_NODE:\n {\n Node rootNode = ((Document)iNode).getDocumentElement();\n\n result = populateManifestMap( rootNode ) && result;\n\n break;\n }\n case Node.ELEMENT_NODE:\n {\n String parentNodeName = iNode.getLocalName();\n\n if ( parentNodeName.equalsIgnoreCase(\"manifest\") ) \n {\n // We are dealing with an IMS <manifest> element, get the IMS\n // CP identifier for the <manifest> elememnt\n mManifestId =\n DOMTreeUtility.getAttributeValue( iNode,\n \"identifier\" ); \n\n LOGGER.finest( \"ManifestMap:populateManifestMap, \" + \n \"Just stored a Manifest Id value of \" + \n mManifestId );\n\n // Recurse to populate mItemIdrefs and mItemIds\n\n // Find the <organization> elements\n\n Node orgsNode = DOMTreeUtility.getNode( iNode, \"organizations\" ); \n\n if( orgsNode != null )\n {\n Vector orgElems = DOMTreeUtility.getNodes( orgsNode, \"organization\" ); \n\n LOGGER.finest( \"ManifestMap:populateManifestMap, \" + \n \"Number of <organization> elements: \" + \n orgElems.size() );\n\n if ( !orgElems.isEmpty() )\n {\n int orgElemsSize = orgElems.size();\n for (int i = 0; i < orgElemsSize; i++ )\n {\n Vector itemElems = DOMTreeUtility.getNodes(\n (Node)orgElems.elementAt(i), \"item\" ); \n\n LOGGER.finest( \"ManifestMap:populateManifestMap, \" + \n \"Number of <item> elements: \" + \n itemElems.size() );\n\n if ( !itemElems.isEmpty() )\n {\n int itemElemsSize = itemElems.size();\n for (int j = 0; j < itemElemsSize; j++ )\n {\n result = populateManifestMap(\n (Node)(itemElems.elementAt(j)) ) && result;\n }\n }\n }\n }\n }\n\n //recurse to populate mResourceIds\n\n Node resourcesNode = DOMTreeUtility.getNode( iNode, \"resources\" ); \n\n if( resourcesNode != null )\n {\n Vector resourceElems = DOMTreeUtility.getNodes(\n resourcesNode, \"resource\" ); \n\n LOGGER.finest( \"ManifestMap:populateManifestMap, \" + \n \"Number of <resource> elements: \" + \n resourceElems.size() );\n\n int resourceElemsSize = resourceElems.size();\n for (int k = 0; k < resourceElemsSize; k++ )\n {\n result = populateManifestMap(\n (Node)(resourceElems.elementAt(k)) ) && result;\n }\n }\n }\n else if ( parentNodeName.equalsIgnoreCase(\"item\") ) \n {\n //store item identifier value\n String itemId =\n DOMTreeUtility.getAttributeValue( iNode, \"identifier\" );\n \n mItemIds.add( itemId );\n\n LOGGER.finest( \"ManifestMap:populateManifestMap, \" + \n \"Just stored an Item Id value of \" + \n itemId );\n\n //store item identifier reference value\n String itemIdref =\n DOMTreeUtility.getAttributeValue( iNode, \"identifierref\" );\n \n mItemIdrefs.add( itemIdref );\n\n LOGGER.finest( \"ManifestMap:populateManifestMap, \" + \n \"Just stored an Item Idref value of \" + \n itemIdref );\n\n //recurse to populate all child item elements\n Vector items = DOMTreeUtility.getNodes( iNode, \"item\" ); \n if ( !items.isEmpty() )\n {\n int itemsSize = items.size();\n for ( int z = 0; z < itemsSize; z++ )\n {\n result = populateManifestMap(\n (Node)items.elementAt(z) ) && result;\n }\n }\n }\n else if ( parentNodeName.equalsIgnoreCase(\"resource\") ) \n {\n //store resource identifier value\n String resourceId =\n DOMTreeUtility.getAttributeValue( iNode, \"identifier\" ); \n // convert to lower so case sensativity does not play a role\n \n mResourceIds.add( resourceId );\n\n LOGGER.finest( \"ManifestMap:populateManifestMap, \" + \n \"Just stored a Resource Id value of \" + \n resourceId );\n\n // populate <dependency> element\n\n Vector dependencyElems = DOMTreeUtility.getNodes( iNode,\n \"dependency\" ); \n\n int dependencyElemsSize= dependencyElems.size();\n\n for(int w=0; w < dependencyElemsSize; w++ )\n {\n Node dependencyElem = (Node)dependencyElems.elementAt(w);\n\n //store resource identifier value\n String dependencyIdref =\n DOMTreeUtility.getAttributeValue( dependencyElem,\n \"identifierref\" ); \n \n mDependencyIdrefs.add( dependencyIdref );\n\n LOGGER.finest( \"ManifestMap:populateManifestMap, \" + \n \"Just stored a Dependency Idref value of \" + \n mDependencyIdrefs );\n }\n }\n\n break;\n }\n // handle entity reference nodes\n case Node.ENTITY_REFERENCE_NODE:\n {\n break;\n }\n\n // text\n case Node.COMMENT_NODE:\n {\n break;\n }\n\n case Node.CDATA_SECTION_NODE:\n {\n break;\n }\n\n case Node.TEXT_NODE:\n {\n break;\n }\n \n default:\n {\n break;\n }\n }\n\n LOGGER.exiting( \"ManifestMap\", \"populateManifestMap\" ); \n\n return result;\n }", "public HashMap<String, String> getStatsNamesAndIds() {\n\t\tNodeList nl = getStats();\n\t\tHashMap<String, String> id_name = new LinkedHashMap<String, String>();\n\t\tint len = nl.getLength();\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tString id = ParserHelper.requiredAttributeGetter((Element) nl.item(i), \"id\");\n\t\t\tString name = ParserHelper.requiredAttributeGetter((Element) nl.item(i), \"name\");\n\t\t\tif (id != null && name != null) {\n\t\t\t\tid_name.put(id, name);\n\t\t\t}\n\t\t}\n\t\treturn id_name;\n\t}", "static Map<String, Boolean> getUUIDMap(){\n\t\tMap<String, Boolean> m = new HashMap<String, Boolean>();\n\t\t\n\t\tm.put(Config.DYNAMIC_PROXIMITY_UUID, false);\n\t\tm.put(Config.STATIC_PROXIMITY_UUID, false);\n\t\t\n\t\treturn m;\n\t}", "private HashMap<String, String> getAttributesWithDeploysAsJsonString(final IItem item) {\n final HashMap<String, String> map = new HashMap<String, String>();\n map.putAll(item.getAttributes());\n for (final Entry<String, IItem> deploy : item.getDeploys().entrySet()) {\n map.put(deploy.getKey(), deploy.getValue().toJson());\n }\n return map;\n }", "public Map<String, Object> getPrimaryKey() {\n Map<String, Object> ret = new LinkedHashMap<String, Object>(6);\n ret.put(\"masp\", getMasp());\n return ret;\n }", "public Map<Integer, Item> getAllItems() {\n\t\treturn hashOperations.entries(KEY);\n\t}", "public static HashMap<Integer, Item> storeItems(){\n\t\tItem prod1 = new Item(\"Candy\",40);\n\t\tItem prod2 = new Item(\"Bread\",30);\n\t\tItem prod3 = new Item(\"Butter\",50);\n\t\tItem prod4 = new Item(\"Milk\",43);\n\t\tItem prod5 = new Item(\"Toast\",60);\n\t\tItem prod6 = new Item(\"Curd\",20);\n\t\tItem prod7 = new Item(\"Cream\",80);\n\t\tItem prod8 = new Item(\"Pastry\",45);\n\t\tItem prod9 = new Item(\"Cake\",300);\n\t\tItem prod10 = new Item(\"Panner\",200);\n\t\tItem prod11 = new Item(\"Egg\",8);\n\t\tproducts.put(1,prod1);\n\t\tproducts.put(2,prod2);\n\t\tproducts.put(3,prod3);\n\t\tproducts.put(4,prod4);\n\t\tproducts.put(5,prod5);\n\t\tproducts.put(6,prod6);\n\t\tproducts.put(7,prod7);\n\t\tproducts.put(8,prod8);\n\t\tproducts.put(9,prod9);\n\t\tproducts.put(10,prod10);\n\t\tproducts.put(11,prod11);\n\t\treturn products;\n\t}", "public Map<String, ICodeBaseEntry> getApplicationCodebaseEntries();", "public void createIDMap()\n {\n IDMap = new HashMap<>();\n idFile.open(\"idpassword.txt\");\n String line = idFile.getNextLine();\n\n\n\n while(line!=null) {\n String[] fields = line.split(\",\");\n IDMap.put(fields[0], fields[1]);\n\n line = idFile.getNextLine();\n\n }\n\n }", "private Map<String, String> toMap(final Attributes atts) {\r\n\t\tfinal Map<String, String> values = Maps.newLinkedHashMap();\r\n\t\t\r\n\t\tfor (int index = 0; index < atts.getLength(); index++) {\r\n\t\t\tvalues.put(atts.getLocalName(index), atts.getValue(index));\r\n\t\t}\r\n\t\t\r\n\t\treturn values;\r\n\t}", "private Map<Integer, NewsItem> toMap(List<NewsItem> articles) {\n Map<Integer, NewsItem> result = new HashMap<>();\n\n for (NewsItem newsItem : articles) {\n result.put(newsItem.getItemId(), newsItem);\n }\n\n return result;\n }", "private Map<String, List<SeriesACLTransition>> groupBySeriesId(List<SeriesACLTransition> ts) {\n return mlist(ts)\n .foldl(MultiMap.<String, SeriesACLTransition> multiHashMapWithArrayList(),\n new Function2<MultiMap<String, SeriesACLTransition>, SeriesACLTransition, MultiMap<String, SeriesACLTransition>>() {\n @Override\n public MultiMap<String, SeriesACLTransition> apply(MultiMap<String, SeriesACLTransition> mmap,\n SeriesACLTransition t) {\n return mmap.put(t.getSeriesId(), t);\n }\n }).value();\n }", "private synchronized int generateItemID(){\r\n\t\tint i;\r\n\t\tfor(i = 1; items.containsKey(i) || finishedItems.containsKey(i);i++);\r\n\t\treturn i;\r\n\t}", "protected abstract Map<String, Serializable> getEventKeyAndIdMap();", "public Map<String, Object> getIds() {\n return ids;\n }", "private static Map<String, String> getValues(Context context) {\n Map<String, String> result = new HashMap<>();\n ApplicationInfo appInfo = context.getApplicationContext().getApplicationInfo();\n // App data\n result.put(APP_BUNDLE, appInfo.packageName);\n result.put(APP_DOMAIN, appInfo.packageName);\n result.put(APP_ID, appInfo.packageName);\n result.put(APP_NAME, (appInfo.labelRes == 0) ? appInfo.nonLocalizedLabel.toString() : context.getString(appInfo.labelRes));\n // Advertizing ID\n String advertisingId = SettingsProvider.getInstance().getString(SettingsProvider.GOOGLE_ADVERTISING_ID);\n result.put(DEVICE_IFA, advertisingId);\n // Device data\n result.put(DEVICE_MAKE, Build.MANUFACTURER);\n result.put(DEVICE_MODEL, Build.MODEL);\n // Default device type is '7' (set top box device)\n result.put(DEVICE_TYPE, \"7\");\n // Default VPI is 'MP4'\n result.put(VPI, \"MP4\");\n // UUID us the same as Advertising id\n result.put(UUID, advertisingId);\n return result;\n }", "private static Map<String, String> createContigEntry(String id, long length, String assembly,\n String species) {\n Map<String, String> toReturn = new LinkedHashMap<>();\n toReturn.put(\"ID\", id);\n toReturn.put(\"length\", String.valueOf(length));\n toReturn.put(\"assembly\", assembly);\n toReturn.put(\"species\", species);\n\n return toReturn;\n }", "protected Map createAttachmentsMap() {\n return new HashMap();\n }", "public Map<String, Object> getPrimaryKey() {\n Map<String, Object> ret = new LinkedHashMap<String, Object>(6);\n ret.put(\"atrfAudUid\", getAtrfAudUid());\n return ret;\n }", "java.util.Map<java.lang.String, java.lang.Long> getYarnMetricsMap();", "private void addToMaps(String name, UUID uuid) {\n\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.DAY_OF_MONTH, 3);\n\n // Create the entry and populate the local maps\n CachedUUIDEntry entry = new CachedUUIDEntry(name, uuid, calendar);\n nameToUuidMap.put(name.toLowerCase(), entry);\n uuidToNameMap.put(uuid, entry);\n }", "public static void main(String[] args) {\n\n\t\tList<De> d = new ArrayList<De>();\n\n\t\td.add(new De(1, \"A\", 10.2f));\n\t\td.add(new De(2, \"B\", 33.2f));\n\t\td.add(new De(3, \"C\", 55.2f));\n\t\td.add(new De(4, \"D\", 166.2f));\n\t\td.add(new De(5, \"E\", 18.2f));\n\n\t\td.forEach(k -> System.out.println(k.id));\n\n\t\tMap<Integer, String> m = d.stream().collect(Collectors.toMap(i -> i.id, v -> v.name));\n\t\tSystem.out.println(m);\n\t}", "public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }", "public Map<T, V> populateMap() {\n Map<T, V> map = new HashMap<>();\n for (int i = 0; i < entryNumber; i++) {\n cacheKeys[i] = (T) Integer.toString(random.nextInt(1000000000));\n String key = cacheKeys[i].toString();\n map.put((T) key, (V) Integer.toString(random.nextInt(1000000000)));\n }\n return map;\n }", "ManifestIdentifier getIdentifier();", "private static Map<Long, Set<XliffAlt>> getXliffAltMap(List<XliffAlt> alts)\n {\n // tuvId : Set<XliffAlt>\n Map<Long, Set<XliffAlt>> xlfAltMap = new HashMap<Long, Set<XliffAlt>>();\n\n for (XliffAlt alt : alts)\n {\n Set<XliffAlt> myAlts = xlfAltMap.get(alt.getTuvId());\n if (myAlts == null)\n {\n myAlts = new HashSet<XliffAlt>();\n myAlts.add(alt);\n xlfAltMap.put(alt.getTuvId(), myAlts);\n }\n else\n {\n myAlts.add(alt);\n xlfAltMap.put(alt.getTuvId(), myAlts);\n }\n }\n\n return xlfAltMap;\n }", "public HashMap<String, ArrayList<String>> getAlgorithmNameToVersionsMap() {\n\n \n HashMap<String, ArrayList<String>> algorithmNameToVersionMap = new HashMap<>();\n\n for (HashMap<String, ArrayList<String>> fileMapping : identificationAlgorithms.values()) {\n\n for (String softwareName : fileMapping.keySet()) {\n\n ArrayList<String> newVersions = fileMapping.get(softwareName);\n\n if (newVersions != null && !newVersions.isEmpty()) {\n\n ArrayList<String> currentVersions = algorithmNameToVersionMap.get(softwareName);\n\n if (currentVersions == null) {\n\n currentVersions = new ArrayList<>(newVersions);\n algorithmNameToVersionMap.put(softwareName, currentVersions);\n\n } else {\n\n for (String version : newVersions) {\n\n if (!currentVersions.contains(version)) {\n\n currentVersions.add(version);\n\n }\n }\n }\n }\n }\n }\n\n return algorithmNameToVersionMap;\n\n }", "private void createHash() throws IOException\n\t{\n\t\tmap = new HashMap<String, ImageIcon>();\n\t\t\n\t\tfor(int i = 0; i < pokemonNames.length; i++)\n\t\t{\n\t\t\tmap.put(pokemonNames[i], new ImageIcon(getClass().getResource(fileLocations[i])));\n\t\t}\n\t}", "public static Map<String, String> getRegistrationEntry(Context context) {\n Map<String, String> map = new HashMap<String, String>();\n Cursor cursor = context.getContentResolver().query(ContentUris.withAppendedId(RegistrationProvider.CONTENT_URI, Long.valueOf(1)), null, null, null, null);\n if (cursor != null\n && cursor.moveToNext()) {\n map.put(RegistrationProvider.INSTALL_DATE, cursor.getString(cursor.getColumnIndex(RegistrationProvider.INSTALL_DATE)));\n map.put(RegistrationProvider.LAST_DATE, cursor.getString(cursor.getColumnIndex(RegistrationProvider.LAST_DATE)));\n }\n Log.d(MainActivity.APP_TAG, \"Utility: Get Registration Entries: \" + map);\n return map;\n }", "private Map<String, Integer> identifyInputs(Bookshelf basis) {\n\n\tMap<String, Integer> idPairs = new HashMap<String, Integer>();\n\n\tmaxTagMag = 0;\n\n\tint i = 0;\n\n\tIterator<Book> books = basis.iterator();\n\n\twhile (books.hasNext()) {\n\t Book book = books.next();\n\t Iterator<Map.Entry<String, Integer>> tags = book.enumerateTags()\n\t\t .iterator();\n\n\t while (tags.hasNext()) {\n\n\t\tMap.Entry<String, Integer> tag = tags.next();\n\n\t\tmaxTagMag = Math.max(maxTagMag, Math.abs(tag.getValue()));\n\n\t\tif (!idPairs.containsValue(tag.getKey())) {\n\t\t idPairs.put(tag.getKey(), i);\n\t\t ++i;\n\t\t}\n\t }\n\t}\n\tidPairs.put(OTHER, i);\n\n\tnumTags = i + 1;\n\n\treturn idPairs;\n }", "public Map<String, Object> toMetadataHash() {\n\t\tMap<String, Object> hash = new LinkedHashMap<String, Object>();\n\t\thash.put(\"environment\", appService.getEnvironment());\n\t\thash.put(\"app\", appService.toMetadataHash());\n\t\thash.put(\"api\", apiService.toMetadataHash());\n\t\thash.put(\"sso\", ssoService.toMetadataHash());\n\t\thash.put(\"connec\", connecService.toMetadataHash());\n\t\thash.put(\"webhook\", webhookService.toMetadataHash());\n\n\t\treturn hash;\n\t}", "public Map<String, Object> getPrimaryKey() {\n Map<String, Object> ret = new LinkedHashMap<String, Object>(6);\n ret.put(\"idacquirente\", Integer.valueOf(getIdacquirente()));\n return ret;\n }", "Map<String, RemoteModule> allModulesByKey();", "public Map<Integer, BigInteger> shareInfoToMap(List<SecretShare.ShareInfo> shares) {\n\n Map<Integer, BigInteger> keys = new HashMap<Integer, BigInteger>();\n\n for (int i = 0; i < shares.size(); i++) {\n keys.put(shares.get(i).getIndex(), shares.get(i).getShare()); // maps the splits to a <Integer, BigInteger>\n // mapping\n // TODO: The mapping probably does not need a loop\n }\n return keys;\n }", "Manifest createManifest();", "private void createBitStremMap(){\n itemListMap = new HashMap<>();\n \n for (ArrayList<Integer> transactions_set1 : transactions_set) {\n ArrayList curr_tr = (ArrayList) transactions_set1;\n if(curr_tr.size() >= min_itemset_size_K) \n for (Object curr_tr1 : curr_tr) {\n int item = (int) curr_tr1;\n itemListMap.put(item, itemListMap.getOrDefault(item, 0)+1);\n }\n }\n \n // 3. Remove items without minimum support\n itemListMap.values().removeIf(val -> val<min_sup);\n \n // 4. Sort the map to a set of entries\n Set<Map.Entry<Integer, Integer>> set = itemListMap.entrySet();\n frequentItemListSetLenOne = new ArrayList<>(set);\n Collections.sort( frequentItemListSetLenOne, new Comparator<Map.Entry<Integer, Integer>>(){\n @Override\n public int compare( Map.Entry<Integer, Integer> o1, Map.Entry<Integer, Integer> o2 )\n {\n return (o2.getValue()).compareTo( o1.getValue() );\n }\n });\n\n // 5.\n itemIndex = new HashMap<>();\n for(Map.Entry<Integer, Integer> entry : frequentItemListSetLenOne){\n itemIndex.put(entry.getKey(), itemIndex.size());\n }\n\n // 6.\n bitsetLen = frequentItemListSetLenOne.size();\n }", "private Map<String, String> internalGetResIdsForFile(IProject project, String xmlFileWsPath) {\n\n TreeMap<String, String> ids = new TreeMap<String, String>();\n\n // Access the project that contains the resource that contains the compilation unit\n IResource resource = project.getFile(xmlFileWsPath);\n\n if (resource != null && resource.exists() && resource.getType() == IResource.FILE) {\n IStructuredModel smodel = null;\n\n try {\n IFile file = (IFile) resource;\n IModelManager modelMan = StructuredModelManager.getModelManager();\n smodel = modelMan.getExistingModelForRead(file);\n if (smodel == null) {\n smodel = modelMan.getModelForRead(file);\n }\n\n if (smodel instanceof IDOMModel) {\n IDOMDocument doc = ((IDOMModel) smodel).getDocument();\n\n // We want all the IDs in an XML structure like this:\n // <resources>\n // <string name=\"ID\">something</string>\n // </resources>\n\n Node root = findChild(doc, null, SdkConstants.TAG_RESOURCES);\n if (root != null) {\n for (Node strNode = findChild(root, null,\n SdkConstants.TAG_STRING);\n strNode != null;\n strNode = findChild(null, strNode,\n SdkConstants.TAG_STRING)) {\n NamedNodeMap attrs = strNode.getAttributes();\n Node nameAttr = attrs.getNamedItem(SdkConstants.ATTR_NAME);\n if (nameAttr != null) {\n String id = nameAttr.getNodeValue();\n\n // Find the TEXT node right after the element.\n // Whitespace matters so we don't try to normalize it.\n String text = \"\"; //$NON-NLS-1$\n for (Node txtNode = strNode.getFirstChild();\n txtNode != null && txtNode.getNodeType() == Node.TEXT_NODE;\n txtNode = txtNode.getNextSibling()) {\n text += txtNode.getNodeValue();\n }\n\n ids.put(id, text);\n }\n }\n }\n }\n\n } catch (Throwable e) {\n AdtPlugin.log(e, \"GetResIds failed in %1$s\", xmlFileWsPath); //$NON-NLS-1$\n } finally {\n if (smodel != null) {\n smodel.releaseFromRead();\n }\n }\n }\n\n return ids;\n }", "public Map<String, String> getAllAssets(Context context) throws Exception;", "public HashMap<String, JSONObject> getListPrograms();", "private Map<String, PermissionType> getPermissionTypeMapForLabelToMaskChange() {\n\t\tMap<String, PermissionType> permissionTypeMap = new LinkedHashMap<String, PermissionType>();\n\n\t\tList<PermissionType> permissionTypes = permissionTypeRepo.findAll();\n\t\tfor (int i = 0; i < permissionTypes.size(); i++) {\n\t\t\tpermissionTypeMap.put(permissionTypes.get(i).getName(), permissionTypes.get(i));\n\t\t}\n\t\treturn permissionTypeMap;\n\t}", "private Map<String, String> m12810c(int i) {\n Map hashMap = new HashMap();\n am.m5200a(hashMap, this.f10118e.getVideoStartReason() == VideoStartReason.AUTO_STARTED, this.f10118e.mo1836b() ^ true);\n m12807a(hashMap);\n m12809b(hashMap);\n m12808a(hashMap, i);\n m12811c(hashMap);\n return hashMap;\n }", "private Map<Integer, List<Pair<String, Integer>>> getAdditionalInformation() {\n Cursor cursor = mContentResolver.query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI, QUERY_PROJECTION_PHONE, null, null, null);\n\n int idIndex = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.CONTACT_ID);\n int phoneIndex = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER);\n int typeIndex = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.TYPE);\n\n Map<Integer, List<Pair<String, Integer>>> numbers = new HashMap<Integer, List<Pair<String, Integer>>>();\n\n while (cursor.moveToNext()) {\n int id = cursor.getInt(idIndex);\n if (!numbers.containsKey(id)) {\n // create a new entry\n numbers.put(id, new LinkedList<Pair<String, Integer>>());\n }\n\n numbers.get(id).add(new Pair<String, Integer>(cursor.getString(phoneIndex), cursor.getInt(typeIndex)));\n }\n\n return numbers;\n }", "private static Map<String, Integer> getSourceMap() {\n\t\tList<Source> sources = SourceService.findAll();\n\t\tMap<String, Integer> sourceMap = new HashMap<String, Integer>();\n\t\t\n\t\tfor (Source source : sources) {\n\t\t\tsourceMap.put(source.getDomain(), source.getId());\n\t\t}\n\t\t\n\t\treturn sourceMap;\n\t}", "private Map<String, ImmutablePair<Long, Integer>> buildIdxBoms(Long partId) throws SQLException {\n Map<String, ImmutablePair<Long, Integer>> retVal = new HashMap<>(10);\n GetBomsResponse bomsResponse = graphDbService.getBoms(partId);\n Connection conn = dataSource.getConnection();\n try {\n PreparedStatement ps = conn.prepareStatement(\"select manfr_part_num \"\n + \"from part where manfr_id = \" + TURBO_INTERNATIONAL_MANUFACTURER_ID + \" and id=?\");\n try {\n Row[] rows = bomsResponse.getRows();\n for (int i = 0; i < rows.length; i++) {\n Row r = rows[i];\n Long pid = r.getPartId();\n Integer qty = r.getQty();\n ps.setLong(1, pid);\n ResultSet rs = ps.executeQuery();\n boolean found = rs.next();\n if (!found) {\n throw new AssertionError(\"BOM entry (part [\" + pid + \"]) not found in the database for \"\n + \"the part [\" + partId + \"]. Processing of BOM entries for this part is stopped.\");\n }\n String manfrPartNum = rs.getString(1);\n ImmutablePair<Long, Integer> mpn2prtQty = new ImmutablePair<>(pid, qty);\n retVal.put(manfrPartNum, mpn2prtQty);\n }\n } finally {\n ps.close();\n }\n } finally {\n conn.close();\n }\n return retVal;\n }", "private void buildAttrNamesSet() {\r\n\t\tFileReader file = null;\r\n\t\tString fileName = \"data/attributesType.txt\";\r\n\r\n\t\ttry {\r\n\t\t\tfile = new FileReader(fileName);\r\n\t\t\tBufferedReader reader = new BufferedReader(file);\r\n\t\t\tString line = \"\";\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tString strLine[] = line.split(\" \");\r\n\t\t\t\tint type = Integer.parseInt(strLine[1]);\r\n\t\t\t\thmAttrNames.put(strLine[0], new Integer(type));\r\n\t\t\t}\r\n\r\n\t\t\tfile.close();\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * // Get a set of the entries Set set = hmAttrNames.entrySet(); // Get\r\n\t\t * an iterator Iterator i = set.iterator(); // Display elements while\r\n\t\t * (i.hasNext()) { Map.Entry me = (Map.Entry) i.next();\r\n\t\t * System.out.print(me.getKey() + \": \");\r\n\t\t * System.out.println(me.getValue()); } System.out.println();\r\n\t\t */\r\n\t}", "private static HashMap<String, String[]> buildUpdateMap(File remainderFile)\n throws ParserConfigurationException, IOException, SAXException {\n DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n Document document = documentBuilder.parse(remainderFile);\n Node head = document.getDocumentElement();\n NodeList updatedOffers = head.getChildNodes();\n HashMap<String, String[]> result = new HashMap<>();\n // Build update map\n for (int i = 0; i < updatedOffers.getLength(); i++) {\n Node rfOffer = updatedOffers.item(i);\n if (rfOffer.getNodeName().equals(\"offer\")) {\n NodeList rfOfferChilds = rfOffer.getChildNodes();\n String[] values = new String[5];\n String id = null;\n for (int j = 0; j < rfOfferChilds.getLength(); j++) {\n Node rfOfferChild = rfOfferChilds.item(j);\n switch (rfOfferChild.getNodeName()) {\n case \"id\":\n id = rfOfferChild.getTextContent();\n break;\n case \"price\":\n values[0] = rfOfferChild.getTextContent();\n break;\n case \"quantity\":\n values[1] = rfOfferChild.getTextContent();\n break;\n case \"status\":\n values[2] = rfOfferChild.getTextContent();\n break;\n case \"novelty\":\n values[3] = rfOfferChild.getTextContent();\n break;\n case \"priority\":\n values[4] = rfOfferChild.getTextContent();\n break;\n default:\n break;\n }\n }\n if (id != null) result.put(id, values);\n }\n }\n return result;\n }", "org.apache.xmlbeans.XmlAnyURI xgetManifestHashAlgorithm();", "private static void initializeMap() {\n\t\tmap = new HashMap<String, MimeTransferEncoding>();\n\t\tfor (MimeTransferEncoding mte : MimeTransferEncoding.values()) {\n\t\t\tmap.put(mte.string, mte);\n\t\t}\n\t}", "public Map<String, Object> getTagMap();", "Map<String, Object> getAllMetadata();", "public Map<String, Object> getPrimaryKey() {\n Map<String, Object> ret = new LinkedHashMap<String, Object>(6);\n ret.put(\"btrAudUid\", getBtrAudUid());\n return ret;\n }", "public Map<String, String> toMap() {\n Map<String, String> result = new HashMap<String, String>();\n if (identifier != null) result.put(\"specidentifier\", identifier);\n result.put(\"specversion\", version.getVersion());\n result.put(\"specuri\", uri);\n return result;\n }", "Map getGenAttributes();", "private Map<Integer, MessageEncoder> initialiseMap() {\n Map<Integer, MessageEncoder> composerMap = new HashMap<>();\n composerMap.put(AC35MessageType.BOAT_ACTION.getCode(), new BoatActionEncoder());\n composerMap.put(AC35MessageType.REQUEST.getCode(), new RequestEncoder());\n composerMap.put(AC35MessageType.COLOUR.getCode(), new ColourEncoder());\n\n return Collections.unmodifiableMap(composerMap);\n }", "private void loadLoreEntries() {\n entryIDMap = new ConcurrentHashMap<>();\n entryIDThreads = new ThreadGroup(\"entryIDThreads\");\n\n for (int i = 0; i < bookSelectionData.size(); i++) {\n\n final String entryName = bookSelectionData.get(i).getBookName();\n final long entryID = bookSelectionData.get(i).getBookID();\n\n new Thread(entryIDThreads, new Runnable() {\n @Override\n public void run() {\n try {\n ArrayList<Long> arraylist = new ArrayList<>();\n arraylist.add(entryID);\n DataAccessObject_LoreBookSelectionDefinition node = database.getDao().getPresentationNodeById(arraylist).get(0);\n JsonObject json = node.getJson();\n JsonArray entryNodes = json.getAsJsonObject(\"children\").getAsJsonArray(\"records\");\n\n long[] ID = new long[entryNodes.size()];\n for (int j = 0; j < entryNodes.size(); j++) {\n JsonObject entry = (JsonObject) entryNodes.get(j);\n long hash = Long.parseLong(entry.get(\"recordHash\").getAsString());\n ID[j] = convertHash(hash);\n }\n entryIDMap.put(entryName, ID);\n } catch (Exception ignored) {\n }\n }\n }).start();\n }\n }", "public static JwComparator<AcUspsInternationalClaim> getItemIdComparator()\n {\n return AcUspsInternationalClaimTools.instance.getItemIdComparator();\n }", "public Map<ResourceType<L>, Offline<org.hawkular.inventory.api.model.ResourceType.Blueprint>> build(\n List<ResourceType<L>> resourceTypes) {\n\n Map<ResourceType<L>, Offline<org.hawkular.inventory.api.model.ResourceType.Blueprint>> retVal;\n retVal = new HashMap<>(resourceTypes.size());\n\n synchronized (addedIds) {\n prepareAddedIds();\n\n // we don't sync parent-child relations for types; all types are stored at root level in inventory\n for (ResourceType<L> rt : resourceTypes) {\n InventoryStructure.Builder<org.hawkular.inventory.api.model.ResourceType.Blueprint> invBldr;\n org.hawkular.inventory.api.model.ResourceType.Blueprint rtBP = buildResourceTypeBlueprint(rt);\n invBldr = InventoryStructure.Offline.of(rtBP);\n resourceType(rt, invBldr);\n retVal.put(rt, invBldr.build());\n }\n }\n\n return retVal;\n }", "public void readIDs() {\n try {\n FileInputStream fileIn = new FileInputStream(\"temp/ids.ser\");\n ObjectInputStream in = new ObjectInputStream(fileIn);\n ids = (HashMap<String, Member>) in.readObject();\n in.close();\n fileIn.close();\n } catch (IOException e) {\n ids = new HashMap<>();\n } catch (ClassNotFoundException c) {\n System.out.println(\"Class HashMap not found\");\n c.printStackTrace();\n return;\n }\n\n }", "public Map<MediaFileType, MediaFile> getArtworkMap() {\n Map<MediaFileType, MediaFile> artworkMap = new HashMap<>();\n List<MediaFile> mfs = getMediaFiles();\n for (MediaFile mf : mfs) {\n if (!mf.isGraphic()) {\n continue;\n }\n if (!artworkMap.containsKey(mf.getType())) {\n artworkMap.put(mf.getType(), mf);\n }\n }\n return artworkMap;\n }", "protected Map<String, URL> loadIconBuilder(IconRegistry iconRegistry)\n {\n List<IconRecord> records = new LinkedList<>(getIconsFromRegistry(iconRegistry));\n\n Map<String, Long> publicUrlToIdMap = records.stream().collect(Collectors\n .toMap(r -> getPublicUrl(r.imageURLProperty().get()), r -> Long.valueOf(r.idProperty().get()), (v1, v2) -> v2));\n\n removeOldRecords(iconRegistry, records);\n\n if (records.isEmpty())\n {\n records = readIconsFromFile(iconRegistry, publicUrlToIdMap);\n }\n\n return createMap(records);\n }", "private Manifest getManifest() {\n Manifest manifest = new Manifest();\n Attributes attributes = manifest.getMainAttributes();\n attributes.put(Attributes.Name.MANIFEST_VERSION, \"1.0\");\n attributes.put(Attributes.Name.IMPLEMENTATION_VENDOR, \"Balahnin Sergey\");\n return manifest;\n }", "public Map<String, Object> getPrimaryKey() {\n Map<String, Object> ret = new LinkedHashMap<String, Object>(6);\n ret.put(\"iduser\", Integer.valueOf(getIduser()));\n return ret;\n }", "private static Map<String, Integer> getHashTags(){\n\t\t\n\t\tMap<String, Integer> map = new HashMap<String, Integer>();\n\t\t\n\t\tfor(Status status : statusList){\n\t\t\tHashtagEntity[] entitles = status.getHashtagEntities();\n\t\t\tfor(HashtagEntity entity : entitles){\n\t\t\t\tString str = entity.getText();\n\t\t\t\t\n\t\t\t\tif(map.containsKey(str)){\n\t\t\t\t\tint count = map.get(str);\n\t\t\t\t\tmap.put(str, ++count);\n\t\t\t\t}else{\n\t\t\t\t\tmap.put(str, 1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn map;\n\t}", "public Map<String, String> getResIdsForFile(IProject project, String xmlFileWsPath) {\n Map<String, String> cache = mResIdCache.get(xmlFileWsPath);\n if (cache == null) {\n cache = internalGetResIdsForFile(project, xmlFileWsPath);\n mResIdCache.put(xmlFileWsPath, cache);\n }\n return cache;\n }", "java.util.Map<java.lang.Integer, java.lang.Integer>\n getInfoMap();", "Collection<LocatorIF> getItemIdentifiers();", "public abstract java.util.Map<java.lang.String, java.lang.Integer> idiosyncraticEventIncidenceCountMap();", "public Map<String, String> mo9339b() {\n HashMap hashMap = new HashMap();\n hashMap.put(\"sdk_version\", AppLovinSdk.VERSION);\n hashMap.put(\"build\", String.valueOf(131));\n if (!((Boolean) this.f2745b.mo10202a(C1096c.f2507eM)).booleanValue()) {\n hashMap.put(AppLovinWebViewActivity.INTENT_EXTRA_KEY_SDK_KEY, this.f2745b.mo10246t());\n }\n C1200b c = this.f2745b.mo10189O().mo10261c();\n hashMap.put(InMobiNetworkValues.PACKAGE_NAME, C1277l.m3044d(c.f2980c));\n hashMap.put(TapjoyConstants.TJC_APP_VERSION_NAME, C1277l.m3044d(c.f2979b));\n hashMap.put(TapjoyConstants.TJC_PLATFORM, \"android\");\n hashMap.put(\"os\", C1277l.m3044d(VERSION.RELEASE));\n return hashMap;\n }", "public static Map<Long, Book> readToMap() throws ApplicationException {\r\n ArrayList<String> bookList = readFile();\r\n Map<Long, Book> books = new HashMap<>();\r\n\r\n for (int i = 0; i < bookList.size(); i++) {\r\n String[] rows = bookList.get(i).split(COMMA_DELIMITER, -1);\r\n Book book = readBookString(rows);\r\n books.put(book.getId(), book);\r\n LOG.debug(String.format(\"%s has been added to the Map\", book.getAuthor()));\r\n\r\n }\r\n\r\n return books;\r\n\r\n }", "public void loadApplications() {\n PackageManager manager = context.getPackageManager();\n\n Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);\n mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);\n\n final List<ResolveInfo> apps = manager.queryIntentActivities(mainIntent, 0);\n Collections.sort(apps, new ResolveInfo.DisplayNameComparator(manager));\n\n if (apps != null) {\n applications.clear();\n\n for (ResolveInfo app : apps) {\n App application = new App();\n\n application.name = app.loadLabel(manager).toString();\n application.setActivity(new ComponentName(\n app.activityInfo.applicationInfo.packageName,\n app.activityInfo.name),\n Intent.FLAG_ACTIVITY_NEW_TASK\n | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);\n application.icon = app.activityInfo.loadIcon(manager);\n\n applications.add(application);\n }\n }\n }", "private HashMap<String, String> getAnswerIdsByID(String id)\n\t{\n\t\tHashMap<String, String> ans_map = new HashMap<String, String>();\n\t\tNode ans_l10ns = doc.selectSingleNode(\"//document/answer_l10ns/rows\");\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Element> a_meta = doc.selectNodes(\"//document/answers/rows/row[qid=\" + id +\"]\");\n\t\tfor (Element elem : a_meta) {\n\t\t\tans_map.put(elem.elementText(\"aid\"), ans_l10ns.selectSingleNode(\"row[aid=\" + elem.elementText(\"aid\") + \"]/answer\").getText());\n\t\t}\n\t\treturn ans_map;\n\t}", "public static void ProcessListOfItems(Attributes atts,HashMap<Integer, HashMap<String,String > > Container)\n { \n \tHashMap<String,String> ObjectData = new HashMap<String,String>();\n \tInteger ObjectID = ParseIntStringOrMinusOne(atts.getValue(ID_ATTR));\n \tFCOrderManagerXMLHelper.DoConvertAttrsToStringMap(atts,ObjectData);\n \tContainer.put(ObjectID,ObjectData);\n }" ]
[ "0.60797495", "0.60226804", "0.5672419", "0.54026794", "0.5291946", "0.5290537", "0.528109", "0.5261683", "0.5247034", "0.52331024", "0.5211069", "0.51978725", "0.5164194", "0.5128916", "0.51202977", "0.50804806", "0.50518245", "0.50441986", "0.50416225", "0.5001806", "0.4990414", "0.49882978", "0.49661672", "0.49451444", "0.49107376", "0.49033555", "0.49005705", "0.48985192", "0.48964715", "0.48820242", "0.4865658", "0.48639485", "0.4863787", "0.48606077", "0.4847962", "0.48404485", "0.48332855", "0.48321158", "0.4821104", "0.4817355", "0.4815368", "0.48118404", "0.4810503", "0.4795433", "0.4793851", "0.4780104", "0.47596633", "0.47562176", "0.47538134", "0.4749697", "0.47398728", "0.4730016", "0.472716", "0.47271225", "0.47246718", "0.47242868", "0.47190323", "0.47143438", "0.47027794", "0.4689961", "0.46778318", "0.46748844", "0.46726114", "0.46711594", "0.46632144", "0.4654038", "0.46523955", "0.46505126", "0.4650383", "0.4636559", "0.46222776", "0.46143854", "0.4609807", "0.45981905", "0.4592635", "0.45899695", "0.45858726", "0.45729387", "0.45660996", "0.45623755", "0.45615548", "0.45607436", "0.45583957", "0.45503178", "0.45409653", "0.45352596", "0.45307925", "0.4529506", "0.452454", "0.45236596", "0.45179784", "0.45142278", "0.4504429", "0.45041364", "0.4503144", "0.45015356", "0.44993463", "0.44988883", "0.4480607", "0.4479486" ]
0.6414323
0
save the best model with testing data
public Option() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveModel() {\n\t}", "@Override\n\tpublic void saveTestingData() {\n\t\t\n\t}", "public boolean save(Data model);", "@Test\n\tpublic void saveTest(){\n\t\t\n\t}", "public void saveModel(ModelClass model) throws StorageIOException {\n try {\n Dao<ModelDB, String> modelDao = this.databaseHelper.getDao(ModelDB.class);\n\n ModelDB modelEntity = classToDB(model);\n modelDao.createOrUpdate(modelEntity);\n \n } catch (SQLException e) {\n throw new StorageIOException(\"Failed to save model\", e);\n }\n }", "@Test\n public void loadAndSave() throws Exception {\n ArrayList<Country> cs = Main.load(testInput);\n Main.save(cs,testOutput);\n\n //Then\n File outputFile = new File(testOutput);\n assertTrue(outputFile != null);\n\n }", "public void saveToFile(File file, Model model) throws IOException;", "public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}", "public void save(){\n\t\tlowresModelManager.save();\n\t}", "public void saveModel(File model_file) throws Exception{\n\t\t// Write model to file\n\t\t//System.out.println(mClassifier.getClass());\n\t\tSystem.out.println(\"Saving Trained Model. Please wait.\");\n\t\tif(mClassifier instanceof DynamicLMClassifier){\n\t\t\tFileOutputStream fileOut = new FileOutputStream(model_file);\n\t ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n\t ((DynamicLMClassifier<NGramProcessLM>) mClassifier).compileTo(objOut);\n\t objOut.close();\n\t System.out.println(\"Saving Trained Model. Complete.\");\n\t\t}else{\n\t\t\tthrow new Exception(\"Cannot compile a non dynamic traning set\");\n\t\t}\n\t}", "public void saveModel(String path) {\n try\n {\n for (int i=0; i<size; i++) {\n for (int j=0; j<size; j++) {\n PerformanceResultsPair resultsPair = resultsGrid[i][j];\n String directoryName = (i > j)?\n resultsPair.getP2FirstResults().getDescription():\n resultsPair.getP1FirstResults().getDescription();\n resultsPair.saveTo(path + FileUtil.FILE_SEPARATOR() + directoryName);\n }\n }\n } catch (IOException e) {\n throw new IllegalStateException(\"Could not save the model\", e);\n }\n }", "void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }", "public void saveModel() {\n\n }", "private void save(ComputationGraph net) throws Exception {\r\n ModelSerializer.writeModel(net, locationToSave, saveUpdater);\r\n }", "@Test\n\tpublic void testSave() {\n\t}", "public void saveModelAs() {\r\n \t\t// Updates station positions into data structure\r\n \t\tupdateStationPositions();\r\n \t\tint status = modelLoader.saveModel(model, mainWindow, null);\r\n \t\tswitch (status) {\r\n \t\t\tcase ModelLoader.SUCCESS:\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t\topenedArchive = modelLoader.getSelectedFile();\r\n \t\t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t\tbreak;\r\n \t\t\tcase ModelLoader.FAILURE:\r\n \t\t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t\t\tbreak;\r\n \t\t}\r\n \t}", "private void initAndSaveGrid(GridGame game) {\n\t\tgame.modeler = createDumbInitModeler(trainingData );\n\t\tint i = 0;\n\t\tfor (TransitionMemory tm : trainingData) {\n\t\t\tif (i++ > 10) break; // just a few to learn the\n\t\t\tgame.modeler.saveMemory(tm);\n\t\t}\n\t\tgame.modeler.learnFromMemory(0, 0, 0, false, 1, 10000); // just to get node dimensions\n\t\tUtils.saveObjectToFile(GRID_FILE, SerializableGridGame.create(game));\n\t\tif (Utils.loadObjectFromFile(GRID_FILE) == null) System.out.println(\"Problem saving grid\");\n\t}", "@Test\n public void f12AssociateAssetTypeWithModelTest() {\n clickOn(\"#assetTypeMenuBtn\").sleep(2000);\n\n //select second asset type\n Node node = lookup(\"#columnName\").nth(2).query();\n clickOn(node).sleep(1000);\n\n clickOn(\"#associatedModelLabel\").sleep(1000);\n Label label = (Label) scene.getRoot().lookup(\"#associatedModelLabel\");\n String modelBefore = label.getText();\n\n //go to model tab\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n FlowPane models = (FlowPane) scene.getRoot().lookup(\"#modelsThumbPane\");\n\n //change to RandomForest\n clickOn(models.getChildren().get(2)).sleep(1000);\n clickOn(\"#modelSaveBtn\").sleep(1000);\n\n node = lookup(\"#columnName\").nth(2).query();\n clickOn(node);\n\n label = (Label) scene.getRoot().lookup(\"#associatedModelLabel\");\n String modelAfter = label.getText();\n\n clickOn(\"#associatedModelLabel\").sleep(3000);\n //model after changing should not be the same\n assertFalse(\"Model after changing is the same as it was before.\", modelBefore.equals(modelAfter));\n }", "public void saveModel() {\r\n \t\tif (openedArchive == null) {\r\n \t\t\tsaveModelAs();\r\n \t\t\treturn;\r\n \t\t}\r\n \r\n \t\t// Updates station positions into data structure\r\n \t\tupdateStationPositions();\r\n \t\tint status = modelLoader.saveModel(model, mainWindow, openedArchive);\r\n \t\tswitch (status) {\r\n \t\t\tcase ModelLoader.SUCCESS:\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t\tbreak;\r\n \t\t\tcase ModelLoader.FAILURE:\r\n \t\t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t\t\tbreak;\r\n \t\t}\r\n \t}", "public void model() \n\t{\n\t\t\n\t\ttry \n\t\t{\n\t\t GRBEnv env = new GRBEnv();\n\t\t GRBModel model = new GRBModel(env, \"resources/students.lp\");\n\n\t\t model.optimize();\n\n\t\t int optimstatus = model.get(GRB.IntAttr.Status);\n\n\t\t if (optimstatus == GRB.Status.INF_OR_UNBD) {\n\t\t model.getEnv().set(GRB.IntParam.Presolve, 0);\n\t\t model.optimize();\n\t\t optimstatus = model.get(GRB.IntAttr.Status);\n\t\t }\n\n\t\t if (optimstatus == GRB.Status.OPTIMAL) {\n\t\t double objval = model.get(GRB.DoubleAttr.ObjVal);\n\t\t System.out.println(\"Optimal objective: \" + objval);\n\t\t } else if (optimstatus == GRB.Status.INFEASIBLE) {\n\t\t System.out.println(\"Model is infeasible\");\n\n\t\t // Compute and write out IIS\n\t\t model.computeIIS();\n\t\t model.write(\"model.ilp\");\n\t\t } else if (optimstatus == GRB.Status.UNBOUNDED) {\n\t\t System.out.println(\"Model is unbounded\");\n\t\t } else {\n\t\t System.out.println(\"Optimization was stopped with status = \"\n\t\t + optimstatus);\n\t\t }\n\n\t\t // Dispose of model and environment\n\t\t model.write(\"resources/model.sol\");\n\t\t model.dispose();\n\t\t env.dispose();\n\n\t\t } catch (GRBException e) {\n\t\t System.out.println(\"Error code: \" + e.getErrorCode() + \". \" +\n\t\t e.getMessage());\n\t\t }\n\t\t\n\t}", "@Test\r\n public void testSave() {\r\n System.out.println(\"save\");\r\n Festivity object = new Festivity();\r\n object.setStart(Calendar.getInstance().getTime());\r\n object.setEnd(Calendar.getInstance().getTime());\r\n object.setName(\"Test Fest\"+System.currentTimeMillis());\r\n object.setPlace(\"Narnia\");\r\n boolean expResult = true;\r\n boolean result = Database.save(object);\r\n assertEquals(expResult, result);\r\n }", "public boolean saveOrUpdate(Data model);", "@Test\n\tpublic void RecommendationModelMaintest() {\n\t\tRecommendationModel object3 = new RecommendationModel();\n\t\tassertNotNull(object3);\n\t}", "protected void saveData(DataModel[] models) throws Exception {\n }", "void storeTraining(Training training);", "public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }", "public Base save(Base model) throws IOException {\n\t\tif (model.getID().equals(\"\")) {\n\t\t\treturn Core.create(model, getHttpMethodExecutor());\n\t\t} else {\n\t\t\treturn Core.update(model, getHttpMethodExecutor());\n\t\t}\n\n\t}", "public void test(List<String> modelFiles, String testFile, String prpFile) {\n/* 1014 */ List<List<RankList>> trainingData = new ArrayList<>();\n/* 1015 */ List<List<RankList>> testData = new ArrayList<>();\n/* */ \n/* */ \n/* 1018 */ int nFold = modelFiles.size();\n/* */ \n/* 1020 */ List<RankList> samples = readInput(testFile);\n/* */ \n/* 1022 */ System.out.print(\"Preparing \" + nFold + \"-fold test data... \");\n/* 1023 */ FeatureManager.prepareCV(samples, nFold, trainingData, testData);\n/* 1024 */ System.out.println(\"[Done.]\");\n/* 1025 */ double rankScore = 0.0D;\n/* 1026 */ List<String> ids = new ArrayList<>();\n/* 1027 */ List<Double> scores = new ArrayList<>();\n/* 1028 */ for (int f = 0; f < nFold; f++) {\n/* */ \n/* 1030 */ List<RankList> test = testData.get(f);\n/* 1031 */ Ranker ranker = this.rFact.loadRankerFromFile(modelFiles.get(f));\n/* 1032 */ int[] features = ranker.getFeatures();\n/* 1033 */ if (normalize) {\n/* 1034 */ normalize(test, features);\n/* */ }\n/* 1036 */ for (RankList aTest : test) {\n/* 1037 */ RankList l = ranker.rank(aTest);\n/* 1038 */ double score = this.testScorer.score(l);\n/* 1039 */ ids.add(l.getID());\n/* 1040 */ scores.add(Double.valueOf(score));\n/* 1041 */ rankScore += score;\n/* */ } \n/* */ } \n/* 1044 */ rankScore /= ids.size();\n/* 1045 */ ids.add(\"all\");\n/* 1046 */ scores.add(Double.valueOf(rankScore));\n/* 1047 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ \n/* 1049 */ if (!prpFile.isEmpty()) {\n/* */ \n/* 1051 */ savePerRankListPerformanceFile(ids, scores, prpFile);\n/* 1052 */ System.out.println(\"Per-ranked list performance saved to: \" + prpFile);\n/* */ } \n/* */ }", "public void saveTrainingDataToFileUpSamplingWithSMOTE() throws Exception {\r\n //set tokenizer - we can specify n-grams for classification\r\n NGramTokenizer tokenizer = new NGramTokenizer();\r\n tokenizer.setNGramMinSize(1);\r\n tokenizer.setNGramMaxSize(1);\r\n tokenizer.setDelimiters(\"\\\\W\");\r\n\r\n //set stemmer - set english stemmer\r\n SnowballStemmer stemmer = new SnowballStemmer();\r\n stemmer.setStemmer(\"english\");\r\n\r\n //set lemmatizer\r\n StanfordCoreNLPLemmatizer scnlpl = new StanfordCoreNLPLemmatizer();\r\n\r\n //create new filter for vector transformation\r\n StringToWordVector filter = new StringToWordVector();\r\n filter.setLowerCaseTokens(true);\r\n filter.setOutputWordCounts(true);\r\n filter.setTFTransform(true);\r\n filter.setIDFTransform(true);\r\n filter.setStopwords(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\StopWordsR2.txt\"));\r\n filter.setTokenizer(tokenizer);\r\n filter.setStemmer(scnlpl);\r\n\r\n System.out.println(\"Stemmer Name- \" + filter.getStemmer());\r\n\r\n InstanceQuery query = new InstanceQuery();\r\n query.setUsername(\"root\");\r\n query.setPassword(\"\");\r\n\r\n int numberOfPapers = 5;\r\n\r\n Instances[] otherArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'other'\");\r\n otherArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='other'\");\r\n otherArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='other'\");\r\n otherArticles[2] = query.retrieveInstances();\r\n\r\n //SELECT content, label FROM article_the_island_2012 where `label` IS NOT NULL\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'other'\");\r\n otherArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'other'\");\r\n otherArticles[4] = query.retrieveInstances();\r\n\r\n Instances[] crimeArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'crime'\");\r\n crimeArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='crime'\");\r\n crimeArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='crime'\");\r\n crimeArticles[2] = query.retrieveInstances();\r\n\r\n //SELECT content, label FROM article_the_island_2012 where `label` IS NOT NULL\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'crime'\");\r\n crimeArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'crime'\");\r\n crimeArticles[4] = query.retrieveInstances();\r\n\r\n FastVector attributeList = new FastVector(2);\r\n Attribute a1 = new Attribute(\"text\", (FastVector) null);\r\n FastVector classVal = new FastVector();\r\n classVal.addElement(\"crime\");\r\n classVal.addElement(\"other\");\r\n Attribute c = new Attribute(\"@@class@@\", classVal);\r\n //add class attribute and news text\r\n attributeList.addElement(a1);\r\n attributeList.addElement(c);\r\n Instances trainingData = new Instances(\"TrainingNews\", attributeList, 0);\r\n trainingData.setClassIndex(1);\r\n\r\n int crimeArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < crimeArticles[i].numInstances(); j++) {\r\n\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, crimeArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, crimeArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n crimeArticlesCount++;\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n\r\n System.out.println(\"Total Number of Crime Instances: \" + crimeArticlesCount);\r\n\r\n int otherArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < otherArticles[i].numInstances(); j++) {\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, otherArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, otherArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n otherArticlesCount++;\r\n\r\n// if (otherArticlesCount == 100) {\r\n// break;\r\n// }\r\n }\r\n//// if (otherArticlesCount == 100) {\r\n//// break;\r\n//// }\r\n }\r\n System.out.println(\"Total Number of Other Instances: \" + otherArticlesCount);\r\n System.out.println(\"Total num of instances= \" + trainingData.numInstances());\r\n\r\n\r\n // apply the StringToWordVector filter\r\n filter.setInputFormat(trainingData);\r\n Instances dataFiltered = Filter.useFilter(trainingData, filter);\r\n System.out.println(\"Number of Attributes after stop words removal- \" + dataFiltered.numAttributes());\r\n System.out.println(\"\\n\\nFiltered data:\\n\\n\" + dataFiltered);\r\n\r\n /**\r\n * Resamples a dataset by applying the Synthetic Minority Oversampling\r\n * TEchnique (SMOTE)\r\n * http://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node6.html\r\n * http://weka.sourceforge.net/doc.packages/SMOTE/weka/filters/supervised/instance/SMOTE.html \r\n *\r\n */\r\n SMOTE s = new SMOTE();\r\n s.setInputFormat(dataFiltered);\r\n // Specifies percentage of SMOTE instances to create.\r\n s.setPercentage(464.0);\r\n Instances dataBalanced = Filter.useFilter(dataFiltered, s);\r\n\r\n Random r = new Random();\r\n dataBalanced.randomize(r);\r\n\r\n ArffSaver saver = new ArffSaver();\r\n saver.setInstances(dataBalanced);\r\n saver.setFile(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataUSSMOTE464Random.arff\"));\r\n saver.writeBatch();\r\n }", "public void evaluate(String trainFile, double percentTrain, String testFile, String featureDefFile) {\n/* 799 */ List<RankList> train = new ArrayList<>();\n/* 800 */ List<RankList> validation = new ArrayList<>();\n/* 801 */ int[] features = prepareSplit(trainFile, featureDefFile, percentTrain, normalize, train, validation);\n/* 802 */ List<RankList> test = null;\n/* */ \n/* */ \n/* 805 */ if (!testFile.isEmpty()) {\n/* */ \n/* 807 */ test = readInput(testFile);\n/* 808 */ if (normalize) {\n/* 809 */ normalize(test, features);\n/* */ }\n/* */ } \n/* 812 */ RankerTrainer trainer = new RankerTrainer();\n/* 813 */ Ranker ranker = trainer.train(this.type, train, validation, features, this.trainScorer);\n/* */ \n/* 815 */ if (test != null) {\n/* */ \n/* 817 */ double rankScore = evaluate(ranker, test);\n/* 818 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ } \n/* 820 */ if (modelFile.compareTo(\"\") != 0) {\n/* */ \n/* 822 */ System.out.println(\"\");\n/* 823 */ ranker.save(modelFile);\n/* 824 */ System.out.println(\"Model saved to: \" + modelFile);\n/* */ } \n/* */ }", "@Test\n void save() {\n }", "public void saveTrainingDataToFileUpSampling() throws Exception {\r\n //set tokenizer - we can specify n-grams for classification\r\n NGramTokenizer tokenizer = new NGramTokenizer();\r\n tokenizer.setNGramMinSize(1);\r\n tokenizer.setNGramMaxSize(1);\r\n tokenizer.setDelimiters(\"\\\\W\");\r\n\r\n //set stemmer - set english stemmer\r\n SnowballStemmer stemmer = new SnowballStemmer();\r\n stemmer.setStemmer(\"english\");\r\n\r\n //set lemmatizer\r\n StanfordCoreNLPLemmatizer scnlpl = new StanfordCoreNLPLemmatizer();\r\n\r\n //create new filter for vector transformation\r\n StringToWordVector filter = new StringToWordVector();\r\n filter.setLowerCaseTokens(true);\r\n filter.setOutputWordCounts(true);\r\n filter.setTFTransform(true);\r\n filter.setIDFTransform(true);\r\n filter.setStopwords(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\StopWordsR2.txt\")); // stop word removal given in research paper\r\n filter.setTokenizer(tokenizer);\r\n filter.setStemmer(scnlpl);\r\n\r\n System.out.println(\"Stemmer Name- \" + filter.getStemmer());\r\n\r\n InstanceQuery query = new InstanceQuery();\r\n query.setUsername(\"root\");\r\n query.setPassword(\"\");\r\n\r\n int numberOfPapers = 5;\r\n\r\n Instances[] otherArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'other'\");\r\n otherArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='other'\");\r\n otherArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='other'\");\r\n otherArticles[2] = query.retrieveInstances();\r\n\r\n //SELECT content, label FROM article_the_island_2012 where `label` IS NOT NULL\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'other'\");\r\n otherArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'other'\");\r\n otherArticles[4] = query.retrieveInstances();\r\n\r\n Instances[] crimeArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'crime'\");\r\n crimeArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='crime'\");\r\n crimeArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='crime'\");\r\n crimeArticles[2] = query.retrieveInstances();\r\n\r\n //SELECT content, label FROM article_the_island_2012 where `label` IS NOT NULL\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'crime'\");\r\n crimeArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'crime'\");\r\n crimeArticles[4] = query.retrieveInstances();\r\n\r\n FastVector attributeList = new FastVector(2);\r\n Attribute a1 = new Attribute(\"text\", (FastVector) null);\r\n FastVector classVal = new FastVector();\r\n classVal.addElement(\"crime\");\r\n classVal.addElement(\"other\");\r\n Attribute c = new Attribute(\"@@class@@\", classVal);\r\n //add class attribute and news text\r\n attributeList.addElement(a1);\r\n attributeList.addElement(c);\r\n Instances trainingData = new Instances(\"TrainingNews\", attributeList, 0);\r\n trainingData.setClassIndex(1);\r\n\r\n int crimeArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < crimeArticles[i].numInstances(); j++) {\r\n for (int k = 0; k < 5; k++) {\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, crimeArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, crimeArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n crimeArticlesCount++;\r\n }\r\n }\r\n }\r\n System.out.println(\"Total Number of Crime Instances: \" + crimeArticlesCount);\r\n\r\n int otherArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < otherArticles[i].numInstances(); j++) {\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, otherArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, otherArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n otherArticlesCount++;\r\n\r\n if (otherArticlesCount == crimeArticlesCount) {\r\n break;\r\n }\r\n }\r\n if (otherArticlesCount == crimeArticlesCount) {\r\n break;\r\n }\r\n }\r\n System.out.println(\"Total Number of Other Instances: \" + otherArticlesCount);\r\n System.out.println(\"Total num of instances= \" + trainingData.numInstances());\r\n\r\n // apply the StringToWordVector filter\r\n filter.setInputFormat(trainingData);\r\n Instances dataFiltered = Filter.useFilter(trainingData, filter);\r\n System.out.println(\"Number of Attributes after stop words removal- \" + dataFiltered.numAttributes());\r\n System.out.println(\"\\n\\nFiltered data:\\n\\n\" + dataFiltered);\r\n\r\n Random r = new Random();\r\n dataFiltered.randomize(r);\r\n\r\n ArffSaver saver = new ArffSaver();\r\n saver.setInstances(dataFiltered);\r\n saver.setFile(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataUSRandom.arff\"));\r\n saver.writeBatch();\r\n }", "public void evaluate(String sampleFile, String featureDefFile, int nFold, float tvs, String modelDir, String modelFile) {\n/* 854 */ List<List<RankList>> trainingData = new ArrayList<>();\n/* 855 */ List<List<RankList>> validationData = new ArrayList<>();\n/* 856 */ List<List<RankList>> testData = new ArrayList<>();\n/* */ \n/* */ \n/* */ \n/* 860 */ List<RankList> samples = readInput(sampleFile);\n/* */ \n/* */ \n/* 863 */ int[] features = readFeature(featureDefFile);\n/* 864 */ if (features == null) {\n/* 865 */ features = FeatureManager.getFeatureFromSampleVector(samples);\n/* */ }\n/* 867 */ FeatureManager.prepareCV(samples, nFold, tvs, trainingData, validationData, testData);\n/* */ \n/* */ \n/* 870 */ if (normalize)\n/* */ {\n/* 872 */ for (int j = 0; j < nFold; j++) {\n/* */ \n/* 874 */ normalizeAll(trainingData, features);\n/* 875 */ normalizeAll(validationData, features);\n/* 876 */ normalizeAll(testData, features);\n/* */ } \n/* */ }\n/* */ \n/* 880 */ Ranker ranker = null;\n/* 881 */ double scoreOnTrain = 0.0D;\n/* 882 */ double scoreOnTest = 0.0D;\n/* 883 */ double totalScoreOnTest = 0.0D;\n/* 884 */ int totalTestSampleSize = 0;\n/* */ \n/* 886 */ double[][] scores = new double[nFold][]; int i;\n/* 887 */ for (i = 0; i < nFold; i++) {\n/* 888 */ (new double[2])[0] = 0.0D; (new double[2])[1] = 0.0D; scores[i] = new double[2];\n/* 889 */ } for (i = 0; i < nFold; i++) {\n/* */ \n/* 891 */ List<RankList> train = trainingData.get(i);\n/* 892 */ List<RankList> vali = null;\n/* 893 */ if (tvs > 0.0F)\n/* 894 */ vali = validationData.get(i); \n/* 895 */ List<RankList> test = testData.get(i);\n/* */ \n/* 897 */ RankerTrainer trainer = new RankerTrainer();\n/* 898 */ ranker = trainer.train(this.type, train, vali, features, this.trainScorer);\n/* */ \n/* 900 */ double s2 = evaluate(ranker, test);\n/* 901 */ scoreOnTrain += ranker.getScoreOnTrainingData();\n/* 902 */ scoreOnTest += s2;\n/* 903 */ totalScoreOnTest += s2 * test.size();\n/* 904 */ totalTestSampleSize += test.size();\n/* */ \n/* */ \n/* 907 */ scores[i][0] = ranker.getScoreOnTrainingData();\n/* 908 */ scores[i][1] = s2;\n/* */ \n/* */ \n/* 911 */ if (!modelDir.isEmpty()) {\n/* */ \n/* 913 */ ranker.save(FileUtils.makePathStandard(modelDir) + \"f\" + (i + 1) + \".\" + modelFile);\n/* 914 */ System.out.println(\"Fold-\" + (i + 1) + \" model saved to: \" + modelFile);\n/* */ } \n/* */ } \n/* 917 */ System.out.println(\"Summary:\");\n/* 918 */ System.out.println(this.testScorer.name() + \"\\t| Train\\t| Test\");\n/* 919 */ System.out.println(\"----------------------------------\");\n/* 920 */ for (i = 0; i < nFold; i++)\n/* 921 */ System.out.println(\"Fold \" + (i + 1) + \"\\t| \" + SimpleMath.round(scores[i][0], 4) + \"\\t| \" + SimpleMath.round(scores[i][1], 4) + \"\\t\"); \n/* 922 */ System.out.println(\"----------------------------------\");\n/* 923 */ System.out.println(\"Avg.\\t| \" + SimpleMath.round(scoreOnTrain / nFold, 4) + \"\\t| \" + SimpleMath.round(scoreOnTest / nFold, 4) + \"\\t\");\n/* 924 */ System.out.println(\"----------------------------------\");\n/* 925 */ System.out.println(\"Total\\t| \\t\\t| \" + SimpleMath.round(totalScoreOnTest / totalTestSampleSize, 4) + \"\\t\");\n/* */ }", "public void save() {\t\n\t\n\t\n\t}", "@Test\n\tpublic void testProcessAndLoad() {\n\t\tPreProcessor preProcessor = new PreProcessor();\n\t\tpreProcessor.processFiles(new File(\"res/tests/test1.txt\"));\n\t\tNGramModel actualModel = preProcessor.getNgramModel();\n\t\tactualModel.end();\n\t\t\n\t\tString testFilePath = \"res/bin/test.bin\";\n\t\t\n\t\tFile dir = new File(\"res/bin\");\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdirs();\n\t\t}\n\t\t\n\t\tpreProcessor.writeToFile(testFilePath);\n\t\t\n\t\tLoader loader = new Loader();\n\t\tNGramModel loadedModel = loader.load(testFilePath);\n\t\tassertEquals(loadedModel.numNgrams(), actualModel.getNgrams().size());\n\t\t\n\t\tfor (Map.Entry<NGram, Integer> current : actualModel.getNgrams().entrySet()) {\n\t\t\tassertEquals((int)current.getValue(), loadedModel.getCount(current.getKey()));\n\t\t}\n\t\t\n\t\tfor (int i = 1; i <= actualModel.maxLength(); i++) {\n\t\t\tassertEquals(loadedModel.numberOfNGramLength(i), actualModel.numberOfNGramLength(i));\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < actualModel.topUnigrams().size(); i++) {\n\t\t\tassertEquals(loadedModel.topUnigrams().get(i), actualModel.topUnigrams().get(i));\n\t\t}\n\t\t\n\t\tassertEquals(\n\t\t\tloadedModel.getGoodTuringEstimation().getTotal(),\n\t\t\tactualModel.getGoodTuringEstimation().getTotal());\n\t\t\n\t\tassertEquals(\n\t\t\tloadedModel.getGoodTuringEstimation().getA(),\n\t\t\tactualModel.getGoodTuringEstimation().getA(), 1E-6);\n\t\t\n\t\tassertEquals(\n\t\t\tloadedModel.getGoodTuringEstimation().getB(),\n\t\t\tactualModel.getGoodTuringEstimation().getB(), 1E-6);\n\t}", "@Test\r\n public void testSave_again() {\r\n\r\n PaymentDetailPojo expResult = instance.save(paymentDetail1);\r\n assertEquals(expResult, instance.save(paymentDetail1));\r\n }", "public void saveWorkout(Wrapper wrapper){\n wrapper = setExercisesFromDB(wrapper);\r\n\r\n // zapisanie danych do tabeli TrainingPlan\r\n TrainingPlan trainingPlan = wrapper.getChooseExercises().get(0).getExerciseTraining().getTrainingPlan();\r\n trainingPlan = saveTrainingPlan(trainingPlan);\r\n\r\n // zapisanie danych do tabeli ExerciseTraining\r\n saveExerciseTraining(wrapper.getChooseExercises(), trainingPlan);\r\n }", "public void saveData(){\r\n file.executeAction(modelStore);\r\n }", "@Test\r\n\tpublic void saveGame() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: saveGame \r\n\t\tGame game = new tsw.domain.Game();\r\n\t\tTswacct tswAcct = null;\r\n\t\tservice.saveGame(tswAcct, game, null);\r\n\t}", "@Test\n public void test23() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n SerializedClassifier serializedClassifier0 = new SerializedClassifier();\n Object[] objectArray0 = new Object[25];\n double[] doubleArray0 = evaluation0.evaluateModel((Classifier) serializedClassifier0, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "void save();", "void save();", "void save();", "@Test\r\n\t@Order(2)\r\n\tvoid testModel() {\r\n\t\trobot.setModel(null);\r\n\t\tassertNotEquals(null, robot.getModel(),\"Model test failed\\nREASON: null model not allowed!\");\r\n\t}", "public void save();", "public void save();", "public void save();", "public void save();", "@Test\n public void save() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n assert repot.findOne(1) == t;\n assert repo.findOne(1) == s;\n assert repon.findOne(\"11\") == n;\n }\n catch (ValidationException e){\n assert true;\n }\n }", "public void saveModel(String filePath) {\n\n\t\tFile parentFile = new File(filePath).getParentFile();\n\t\tif (parentFile != null && !parentFile.exists()) {\n\t\t\tparentFile.mkdirs();\n\t\t}\n\n\t\ttry {\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(filePath));\n\t\t\toos.writeObject(new HMMModel(pi, A, B));\n\t\t\toos.close();\n\t\t\tSystem.out.println(\"Model saved.\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void runBest() {\n }", "@Test\n public void testSave() throws Exception {\n IDataSet databaseDataSet = databaseTester.getConnection().createDataSet();\n ITable actualTable = databaseDataSet.getTable(\"employees2\");\n SortedTable sortedActualTable = new SortedTable(actualTable, new String[]{\"ID\"});\n\n // Load expected data from an XML dataset\n IDataSet expectedDataSet = new FlatXmlDataSetBuilder().build(new File(\"src\\\\test\\\\resources\\\\dataset.xml\"));\n ITable expectedTable = expectedDataSet.getTable(\"employees\");\n\n\n // Assert actual database table match expected table\n Assertion.assertEquals(expectedTable, sortedActualTable);\n }", "public void saveResults();", "public void saveTrainingDataToFileDownSampling() throws Exception {\r\n //set tokenizer - we can specify n-grams for classification\r\n NGramTokenizer tokenizer = new NGramTokenizer();\r\n tokenizer.setNGramMinSize(1);\r\n tokenizer.setNGramMaxSize(1);\r\n tokenizer.setDelimiters(\"\\\\W\");\r\n\r\n //set stemmer - set english stemmer\r\n SnowballStemmer stemmer = new SnowballStemmer();\r\n stemmer.setStemmer(\"english\");\r\n\r\n //set lemmatizer\r\n StanfordCoreNLPLemmatizer scnlpl = new StanfordCoreNLPLemmatizer();\r\n\r\n //create new filter for vector transformation\r\n StringToWordVector filter = new StringToWordVector();\r\n filter.setLowerCaseTokens(true);\r\n filter.setOutputWordCounts(true);\r\n filter.setTFTransform(true);\r\n filter.setIDFTransform(true);\r\n filter.setStopwords(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\StopWordsR2.txt\")); // stop word removal given in research paper\r\n filter.setTokenizer(tokenizer);\r\n filter.setStemmer(scnlpl);\r\n System.out.println(\"Stemmer Name- \" + filter.getStemmer());\r\n\r\n InstanceQuery query = new InstanceQuery();\r\n query.setUsername(\"root\");\r\n query.setPassword(\"\");\r\n\r\n int numberOfPapers = 5;\r\n\r\n Instances[] otherArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'other'\");\r\n otherArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='other'\");\r\n otherArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='other'\");\r\n otherArticles[2] = query.retrieveInstances();\r\n\r\n //SELECT content, label FROM article_the_island_2012 where `label` IS NOT NULL\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'other'\");\r\n otherArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'other'\");\r\n otherArticles[4] = query.retrieveInstances();\r\n\r\n Instances[] crimeArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'crime'\");\r\n crimeArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='crime'\");\r\n crimeArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='crime'\");\r\n crimeArticles[2] = query.retrieveInstances();\r\n\r\n //SELECT content, label FROM article_the_island_2012 where `label` IS NOT NULL\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'crime'\");\r\n crimeArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'crime'\");\r\n crimeArticles[4] = query.retrieveInstances();\r\n\r\n FastVector attributeList = new FastVector(2);\r\n Attribute a1 = new Attribute(\"text\", (FastVector) null);\r\n FastVector classVal = new FastVector();\r\n classVal.addElement(\"crime\");\r\n classVal.addElement(\"other\");\r\n Attribute c = new Attribute(\"@@class@@\", classVal);\r\n //add class attribute and news text\r\n attributeList.addElement(a1);\r\n attributeList.addElement(c);\r\n Instances trainingData = new Instances(\"TrainingNews\", attributeList, 0);\r\n trainingData.setClassIndex(1);\r\n\r\n int crimeArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < crimeArticles[i].numInstances(); j++) {\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, crimeArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, crimeArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n crimeArticlesCount++;\r\n }\r\n }\r\n System.out.println(\"Total Number of Crime Instances: \" + crimeArticlesCount);\r\n\r\n int otherArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < otherArticles[i].numInstances(); j++) {\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, otherArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, otherArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n otherArticlesCount++;\r\n\r\n if (otherArticlesCount == crimeArticlesCount) {\r\n break;\r\n }\r\n }\r\n if (otherArticlesCount == crimeArticlesCount) {\r\n break;\r\n }\r\n }\r\n System.out.println(\"Total Number of Other Instances: \" + otherArticlesCount);\r\n System.out.println(\"Total num of instances= \" + trainingData.numInstances());\r\n\r\n // apply the StringToWordVector filter\r\n filter.setInputFormat(trainingData);\r\n Instances dataFiltered = Filter.useFilter(trainingData, filter);\r\n System.out.println(\"Number of Attributes after stop words removal- \" + dataFiltered.numAttributes());\r\n System.out.println(\"\\n\\nFiltered data:\\n\\n\" + dataFiltered);\r\n\r\n Random r = new Random();\r\n dataFiltered.randomize(r);\r\n\r\n ArffSaver saver = new ArffSaver();\r\n saver.setInstances(dataFiltered);\r\n saver.setFile(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataDSRandom.arff\"));\r\n saver.writeBatch();\r\n }", "public void saveTraining(File datum) throws IOException, FileNotFoundException {\n bp.writer(datum);\n }", "void saveGame() throws IOException, Throwable {\n Save save = new Save(\"01\");\n save.addToSaveGame(objectsToSave());\n save.saveGame();\n }", "private void save() {\n Saver.saveTeam(team);\n }", "@Test\r\n public void testSave() {\r\n\r\n PaymentDetailPojo result = instance.save(paymentDetail1);\r\n assertTrue(paymentDetail1.hasSameParameters(result));\r\n assertTrue(result.getId() > 0);\r\n }", "public void score(List<String> modelFiles, String testFile, String outputFile) {\n/* 1180 */ List<List<RankList>> trainingData = new ArrayList<>();\n/* 1181 */ List<List<RankList>> testData = new ArrayList<>();\n/* */ \n/* */ \n/* 1184 */ int nFold = modelFiles.size();\n/* */ \n/* 1186 */ List<RankList> samples = readInput(testFile);\n/* 1187 */ System.out.print(\"Preparing \" + nFold + \"-fold test data... \");\n/* 1188 */ FeatureManager.prepareCV(samples, nFold, trainingData, testData);\n/* 1189 */ System.out.println(\"[Done.]\");\n/* */ try {\n/* 1191 */ BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outputFile), \"UTF-8\"));\n/* 1192 */ for (int f = 0; f < nFold; f++) {\n/* */ \n/* 1194 */ List<RankList> test = testData.get(f);\n/* 1195 */ Ranker ranker = this.rFact.loadRankerFromFile(modelFiles.get(f));\n/* 1196 */ int[] features = ranker.getFeatures();\n/* 1197 */ if (normalize)\n/* 1198 */ normalize(test, features); \n/* 1199 */ for (RankList l : test) {\n/* 1200 */ for (int j = 0; j < l.size(); j++) {\n/* 1201 */ out.write(l.getID() + \"\\t\" + j + \"\\t\" + ranker.eval(l.get(j)) + \"\");\n/* 1202 */ out.newLine();\n/* */ } \n/* */ } \n/* */ } \n/* 1206 */ out.close();\n/* */ }\n/* 1208 */ catch (IOException ex) {\n/* */ \n/* 1210 */ throw RankLibError.create(\"Error in Evaluator::score(): \", ex);\n/* */ } \n/* */ }", "public void evaluate(String trainFile, String validationFile, String testFile, String featureDefFile) {\n/* 710 */ List<RankList> train = readInput(trainFile);\n/* */ \n/* 712 */ List<RankList> validation = null;\n/* */ \n/* 714 */ if (!validationFile.isEmpty()) {\n/* 715 */ validation = readInput(validationFile);\n/* */ }\n/* 717 */ List<RankList> test = null;\n/* */ \n/* 719 */ if (!testFile.isEmpty()) {\n/* 720 */ test = readInput(testFile);\n/* */ }\n/* 722 */ int[] features = readFeature(featureDefFile);\n/* 723 */ if (features == null) {\n/* 724 */ features = FeatureManager.getFeatureFromSampleVector(train);\n/* */ }\n/* 726 */ if (normalize) {\n/* */ \n/* 728 */ normalize(train, features);\n/* 729 */ if (validation != null)\n/* 730 */ normalize(validation, features); \n/* 731 */ if (test != null) {\n/* 732 */ normalize(test, features);\n/* */ }\n/* */ } \n/* 735 */ RankerTrainer trainer = new RankerTrainer();\n/* 736 */ Ranker ranker = trainer.train(this.type, train, validation, features, this.trainScorer);\n/* */ \n/* 738 */ if (test != null) {\n/* */ \n/* 740 */ double rankScore = evaluate(ranker, test);\n/* 741 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ } \n/* 743 */ if (modelFile.compareTo(\"\") != 0) {\n/* */ \n/* 745 */ System.out.println(\"\");\n/* 746 */ ranker.save(modelFile);\n/* 747 */ System.out.println(\"Model saved to: \" + modelFile);\n/* */ } \n/* */ }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "public void sortAndSave() {\n\t\tsort();\n\t\tShopIO.writeFile(ShopIO.getDataFile(), ShopIO.getGson().toJson(this));\n\t}", "public void evaluate(String sampleFile, String validationFile, String featureDefFile, double percentTrain) {\n/* 761 */ List<RankList> trainingData = new ArrayList<>();\n/* 762 */ List<RankList> testData = new ArrayList<>();\n/* 763 */ int[] features = prepareSplit(sampleFile, featureDefFile, percentTrain, normalize, trainingData, testData);\n/* 764 */ List<RankList> validation = null;\n/* */ \n/* */ \n/* 767 */ if (!validationFile.isEmpty()) {\n/* */ \n/* 769 */ validation = readInput(validationFile);\n/* 770 */ if (normalize) {\n/* 771 */ normalize(validation, features);\n/* */ }\n/* */ } \n/* 774 */ RankerTrainer trainer = new RankerTrainer();\n/* 775 */ Ranker ranker = trainer.train(this.type, trainingData, validation, features, this.trainScorer);\n/* */ \n/* 777 */ double rankScore = evaluate(ranker, testData);\n/* */ \n/* 779 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* 780 */ if (modelFile.compareTo(\"\") != 0) {\n/* */ \n/* 782 */ System.out.println(\"\");\n/* 783 */ ranker.save(modelFile);\n/* 784 */ System.out.println(\"Model saved to: \" + modelFile);\n/* */ } \n/* */ }", "public void save() throws Exception{\n\t\tFileOutputStream saveFile = new FileOutputStream(Config.languageModelFile);\n\t\tObjectOutputStream save = new ObjectOutputStream(saveFile);\n\t\tsave.writeObject(lm_);\n\t\tsave.close();\n\t}", "public void testSave() throws RepositoryException{\n session.save();\n sessionControl.replay();\n sfControl.replay();\n \n jt.save();\n }", "@Test\n public void f4RULModelsTest() {\n //Parts of this test uses f12 (Associate asset type)\n\n //Go to first asset\n clickOn(\"#thumbnailTab\");\n FlowPane root = (FlowPane) scene.getRoot().lookup(\"#assetsThumbPane\");\n clickOn(root.getChildren().get(0)).sleep(1000);\n\n clickOn(\"#modelOutput\").sleep(3000);\n Text firstModel = (Text) scene.getRoot().lookup(\"#modelOutput\");\n String modelBefore = firstModel.getText();\n\n //Go to asset type info\n clickOn(\"#assetTypeMenuBtn\").sleep(2000);\n\n //select first asset type\n Node node = lookup(\"#columnName\").nth(1).query();\n clickOn(node).sleep(1000);\n clickOn(\"#associatedModelLabel\").sleep(1000);\n\n //go to model tab\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n FlowPane models = (FlowPane) scene.getRoot().lookup(\"#modelsThumbPane\");\n\n //change to LSTM\n clickOn(models.getChildren().get(1)).sleep(1000);\n clickOn(\"#modelSaveBtn\").sleep(1000);\n\n //Go back to first asset to check the model again\n clickOn(\"#assetMenuBtn\").sleep(1000);\n clickOn(\"#thumbnailTab\").sleep(1000);\n root = (FlowPane) scene.getRoot().lookup(\"#assetsThumbPane\");\n\n //Check that the model of first asset changed\n clickOn(root.getChildren().get(0)).sleep(1000);\n clickOn(\"#modelOutput\").sleep(3000);\n Text secondModel = (Text) scene.getRoot().lookup(\"#modelOutput\");\n String modelAfter = secondModel.getText();\n\n assertNotSame(\"Models should be different after updating\", modelBefore, modelAfter);\n clickOn(\"#backBtn\").sleep(2000);\n }", "void saveRandom();", "public static void main(String[] args) {\n saveModel();\n\t}", "public void saveModel(VolunteerModel model) {\n facadeDAO.saveVolunteerModelToFile(model);\n }", "@Test\n public void save() throws Exception {\n }", "private void saveFitex(){\n Element pds = getPDS() ;\n JFileChooser aFileChooser = new JFileChooser();\n aFileChooser.setFileFilter(new MyFileFilterXML());\n if (lastUsedFile != null){\n aFileChooser.setCurrentDirectory(lastUsedFile.getParentFile());\n aFileChooser.setSelectedFile(lastUsedFile);\n }else{\n File file = new File(aFileChooser.getCurrentDirectory(), dataset.getName()+\".xml\");\n aFileChooser.setSelectedFile(file);\n }\n int r = aFileChooser.showSaveDialog(this);\n if (r == JFileChooser.APPROVE_OPTION){\n setCursor(new Cursor(Cursor.WAIT_CURSOR));\n File file = aFileChooser.getSelectedFile();\n if(!MyUtilities.isXMLFile(file)){\n file = MyUtilities.getXMLFile(file);\n }\n lastUsedFile = file;\n OutputStreamWriter fileWriter = null;\n try{\n fileWriter = new OutputStreamWriter(new FileOutputStream(file), \"utf-8\");\n\t\txmlOutputter.output(pds, fileWriter);\n datasetModif = false;\n dataProcessToolPanel.logSaveDataset(dataset);\n }catch (IOException e){\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n displayError(new CopexReturn(getBundleString(\"MSG_ERROR_SAVE\"), false), getBundleString(\"TITLE_DIALOG_ERROR\"));\n }finally{\n if (fileWriter != null){\n try{\n fileWriter.close();\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n }catch (IOException e){\n displayError(new CopexReturn(getBundleString(\"MSG_ERROR_SAVE\"), false), getBundleString(\"TITLE_DIALOG_ERROR\"));\n }\n }\n }\n }\n }", "@WorkerThread\n public abstract void saveToDb(NetworkModel fetchedModel);", "public void save() {\n SharedPreferences settings = activity.getSharedPreferences(\"Preferences\", 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putLong(\"bestDistance\", values.bestDistance);\n\n // Commit the edits!\n editor.commit();\n\n }", "@Before\n\tpublic void loadModel() {\n\t\tloader.unloadAll();\n\n\t\tmodel = loader\n\t\t\t\t.loadViaXslt(\"/net/meisen/dissertation/performance/implementations/similarity/tida/tida-model-timeSeriesSimilarityEvaluator.xml\");\n\t\tevaluator = new TimeSeriesSimilarityEvaluator(model);\n\t}", "@Test\r\n public void testSave_two() {\r\n\r\n PaymentDetailPojo expResult1 = instance.save(paymentDetail1);\r\n PaymentDetailPojo expResult2 = instance.save(paymentDetail2);\r\n \r\n assertEquals(expResult1, instance.save(paymentDetail1)); \r\n assertEquals(expResult2, instance.save(paymentDetail2));\r\n }", "TrainingTest createTrainingTest();", "@SuppressWarnings(\"unchecked\")\n public static void prepareStrategy(final int nFolds, final String splitPath, final String recPath, final String outPath) {\n for (int i = 0; i < nFolds; i++) {\n File trainingFile = new File(splitPath + \"train_\" + i + \".csv\");\n File testFile = new File(splitPath + \"test_\" + i + \".csv\");\n File recFile = new File(recPath + \"recs_\" + i + \".csv\");\n DataModelIF<Long, Long> trainingModel;\n DataModelIF<Long, Long> testModel;\n DataModelIF<Long, Long> recModel;\n try {\n trainingModel = new SimpleParser().parseData(trainingFile);\n testModel = new SimpleParser().parseData(testFile);\n recModel = new SimpleParser().parseData(recFile);\n } catch (IOException e) {\n e.printStackTrace();\n return;\n }\n\n Double threshold = REL_TH;\n String strategyClassName = \"net.recommenders.rival.evaluation.strategy.UserTest\";\n EvaluationStrategy<Long, Long> strategy = null;\n try {\n strategy = (EvaluationStrategy<Long, Long>) (Class.forName(strategyClassName)).getConstructor(DataModelIF.class, DataModelIF.class, double.class).\n newInstance(trainingModel, testModel, threshold);\n } catch (InstantiationException | IllegalAccessException | NoSuchMethodException | ClassNotFoundException | InvocationTargetException e) {\n e.printStackTrace();\n }\n\n DataModelIF<Long, Long> modelToEval = DataModelFactory.getDefaultModel();\n for (Long user : recModel.getUsers()) {\n assert strategy != null;\n for (Long item : strategy.getCandidateItemsToRank(user)) {\n if (!Double.isNaN(recModel.getUserItemPreference(user, item))) {\n modelToEval.addPreference(user, item, recModel.getUserItemPreference(user, item));\n }\n }\n }\n try {\n DataModelUtils.saveDataModel(modelToEval, outPath + \"strategymodel_\" + i + \".csv\", true, \"\\t\");\n } catch (FileNotFoundException | UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }\n }", "public void save() {\n }", "public void openModel() {\r\n \t\tisReleased = true;\r\n \t\tif (checkForSave(\"<html>Save changes before opening a saved model?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(animationHolder != null ) {\r\n \t\t\tanimationHolder.stop();\r\n \t\t}\r\n \t\tJMODELModel tmpmodel = new JMODELModel();\r\n \t\tint state = modelLoader.loadModel(tmpmodel, mainWindow);\r\n \t\tif (state == ModelLoader.SUCCESS || state == ModelLoader.WARNING) {\r\n \t\t\tresetMouseState();\r\n \t\t\t// Avoid checkForSave again...\r\n \t\t\tif (model != null) {\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t}\r\n \t\t\tnewModel();\r\n \t\t\t// At this point loading was successful, so substitutes old model\r\n \t\t\t// with loaded one\r\n \t\t\tmodel = tmpmodel;\r\n \t\t\tthis.populateGraph();\r\n \t\t\tsetSelect.setEnabled(true);\r\n \t\t\tcomponentBar.clickButton(setSelect);\r\n \t\t\topenedArchive = modelLoader.getSelectedFile();\r\n \t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t// Removes selection\r\n \t\t\tgraph.clearSelection();\r\n \t\t\t// If model contains results, enable Results Window\r\n \t\t\tif (model.containsSimulationResults()) {\r\n \t\t\t\tif (model.isParametricAnalysisEnabled()) {\r\n \t\t\t\t\tthis.setResultsWindow(new PAResultsWindow(model.getParametricAnalysisModel(), (PAResultsModel) model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthis.setResultsWindow(new ResultsWindow(model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tmodel.resetSaveState();\r\n \t\t\tSystem.gc();\r\n \t\t} else if (state == ModelLoader.FAILURE) {\r\n \t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t}\r\n \t\t// Shows warnings if any\r\n \t\tif (state == ModelLoader.WARNING) {\r\n \t\t\tnew WarningWindow(modelLoader.getLastWarnings(), mainWindow, modelLoader.getInputFileFormat(), CommonConstants.JSIM).show();\r\n \t\t}\r\n \r\n \t}", "public void train(){\n recoApp.training(idsToTest);\n }", "public void infer() {\n runTime.setStartTime(System.currentTimeMillis());\n runTime.setIter(newModel.test_iters);\n System.out.println(\"Sampling \" + newModel.test_iters + \" testing iterations!\");\n\n for (int currentIter = 1; currentIter <= newModel.test_iters; currentIter++) {\n System.out.println(\"Iteration \" + currentIter + \"...\");\n\n for (int d = 0; d < newModel.D; d++) {\n\n for (int n = 0; n < newModel.corpus.docs[d].length; n++){\n HiddenVariable hv = infSZSampling(d, n);\n newModel.sAssign[d][n] = hv.sentiment;\n newModel.zAssign[d][n] = hv.topic;\n }\n } // end for each document\n } // end iterations\n runTime.setEndTime(System.currentTimeMillis());\n System.out.println(\"Gibbs sampling for inference completed!\");\n System.out.println(\"Saving the inference outputs!\");\n\n computeNewPi();\n computeNewTheta();\n computeNewPhi();\n newModel.computePerplexity();\n newModel.evaluateSentiment();\n newModel.saveModel(oldModel.modelName + \"-inference\", runTime);\n newModel.corpus.localDict.writeWordMap(option.model_dir + File.separator + oldModel.modelName + \"-inference\" + Model.wordMapSuffix);\n\n }", "void setTrainData(DataModel trainData);", "@Test\r\n\tpublic void saveGameGamestatses() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: saveGameGamestatses \r\n\t\tInteger gameId_2 = 0;\r\n\t\tGamestats related_gamestatses = new tsw.domain.Gamestats();\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tGame response = null;\r\n\t\tresponse = service.saveGameGamestatses(gameId_2, related_gamestatses, null, null);\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: saveGameGamestatses\r\n\t}", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "public void rank(List<String> modelFiles, String testFile, String indriRanking) {\n/* 1325 */ List<List<RankList>> trainingData = new ArrayList<>();\n/* 1326 */ List<List<RankList>> testData = new ArrayList<>();\n/* */ \n/* */ \n/* 1329 */ int nFold = modelFiles.size();\n/* */ \n/* 1331 */ List<RankList> samples = readInput(testFile);\n/* 1332 */ System.out.print(\"Preparing \" + nFold + \"-fold test data... \");\n/* 1333 */ FeatureManager.prepareCV(samples, nFold, trainingData, testData);\n/* 1334 */ System.out.println(\"[Done.]\");\n/* */ \n/* */ try {\n/* 1337 */ BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(indriRanking), \"UTF-8\"));\n/* 1338 */ for (int f = 0; f < nFold; f++) {\n/* */ \n/* 1340 */ List<RankList> test = testData.get(f);\n/* 1341 */ Ranker ranker = this.rFact.loadRankerFromFile(modelFiles.get(f));\n/* 1342 */ int[] features = ranker.getFeatures();\n/* 1343 */ if (normalize) {\n/* 1344 */ normalize(test, features);\n/* */ }\n/* 1346 */ for (RankList l : test) {\n/* 1347 */ double[] scores = new double[l.size()];\n/* 1348 */ for (int j = 0; j < l.size(); j++)\n/* 1349 */ scores[j] = ranker.eval(l.get(j)); \n/* 1350 */ int[] idx = MergeSorter.sort(scores, false);\n/* 1351 */ for (int i = 0; i < idx.length; i++) {\n/* 1352 */ int k = idx[i];\n/* */ \n/* 1354 */ String str = l.getID() + \" Q0 \" + l.get(k).getDescription().replace(\"#\", \"\").trim() + \" \" + (i + 1) + \" \" + SimpleMath.round(scores[k], 5) + \" indri\";\n/* 1355 */ out.write(str);\n/* 1356 */ out.newLine();\n/* */ } \n/* */ } \n/* */ } \n/* 1360 */ out.close();\n/* */ }\n/* 1362 */ catch (Exception ex) {\n/* */ \n/* 1364 */ throw RankLibError.create(\"Error in Evaluator::rank(): \", ex);\n/* */ } \n/* */ }", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "public void saveTrainingDataToFileHybridSampling1() throws Exception {\n NGramTokenizer tokenizer = new NGramTokenizer();\r\n tokenizer.setNGramMinSize(1);\r\n tokenizer.setNGramMaxSize(1);\r\n tokenizer.setDelimiters(\"\\\\W\");\r\n\r\n //set stemmer - set english stemmer\r\n SnowballStemmer stemmer = new SnowballStemmer();\r\n stemmer.setStemmer(\"english\");\r\n\r\n //set lemmatizer\r\n StanfordCoreNLPLemmatizer scnlpl = new StanfordCoreNLPLemmatizer();\r\n\r\n //create new filter for vector transformation\r\n StringToWordVector filter = new StringToWordVector();\r\n filter.setLowerCaseTokens(true);\r\n filter.setOutputWordCounts(true);\r\n filter.setTFTransform(true);\r\n filter.setIDFTransform(true);\r\n filter.setStopwords(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\StopWordsR2.txt\")); // stop word removal given in research paper\r\n filter.setTokenizer(tokenizer);\r\n filter.setStemmer(scnlpl);\r\n\r\n System.out.println(\"Stemmer Name- \" + filter.getStemmer());\r\n\r\n InstanceQuery query = new InstanceQuery();\r\n query.setUsername(\"root\");\r\n query.setPassword(\"\");\r\n\r\n int numberOfPapers = 5;\r\n Instances[] otherArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'other'\");\r\n otherArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='other'\");\r\n otherArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='other'\");\r\n otherArticles[2] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'other'\");\r\n otherArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'other'\");\r\n otherArticles[4] = query.retrieveInstances();\r\n\r\n Instances[] crimeArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'crime'\");\r\n crimeArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='crime'\");\r\n crimeArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='crime'\");\r\n crimeArticles[2] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'crime'\");\r\n crimeArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'crime'\");\r\n crimeArticles[4] = query.retrieveInstances();\r\n\r\n FastVector attributeList = new FastVector(2);\r\n Attribute a1 = new Attribute(\"text\", (FastVector) null);\r\n FastVector classVal = new FastVector();\r\n classVal.addElement(\"crime\");\r\n classVal.addElement(\"other\");\r\n Attribute c = new Attribute(\"@@class@@\", classVal);\r\n //add class attribute and news text\r\n attributeList.addElement(a1);\r\n attributeList.addElement(c);\r\n Instances trainingData = new Instances(\"TrainingNews\", attributeList, 0);\r\n trainingData.setClassIndex(1);\r\n\r\n //up sampling using SMOTE\r\n int crimeArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < crimeArticles[i].numInstances(); j++) {\r\n\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, crimeArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, crimeArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n crimeArticlesCount++;\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n\r\n System.out.println(\"Total Number of Crime Instances: \" + crimeArticlesCount);\r\n\r\n //downsampling using ?? \r\n int otherArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < otherArticles[i].numInstances(); j++) {\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, otherArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, otherArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n otherArticlesCount++;\r\n\r\n if (otherArticlesCount == 4872) {\r\n break;\r\n }\r\n }\r\n if (otherArticlesCount == 4872) {\r\n break;\r\n }\r\n }\r\n System.out.println(\"Total Number of Other Instances: \" + otherArticlesCount);\r\n System.out.println(\"Total num of instances= \" + trainingData.numInstances());\r\n\r\n // apply the StringToWordVector filter\r\n filter.setInputFormat(trainingData);\r\n Instances dataFiltered = Filter.useFilter(trainingData, filter);\r\n System.out.println(\"Number of Attributes after stop words removal- \" + dataFiltered.numAttributes());\r\n System.out.println(\"\\n\\nFiltered data:\\n\\n\" + dataFiltered);\r\n\r\n /**\r\n * Resamples a dataset by applying the Synthetic Minority Oversampling\r\n * TEchnique (SMOTE)\r\n * http://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node6.html\r\n * http://weka.sourceforge.net/doc.packages/SMOTE/weka/filters/supervised/instance/SMOTE.html \r\n *\r\n */\r\n SMOTE s = new SMOTE();\r\n s.setInputFormat(dataFiltered);\r\n // Specifies percentage of SMOTE instances to create.\r\n s.setPercentage(300.0);//464\r\n Instances dataBalanced = Filter.useFilter(dataFiltered, s);\r\n\r\n Random r = new Random();\r\n dataBalanced.randomize(r);\r\n\r\n ArffSaver saver = new ArffSaver();\r\n saver.setInstances(dataBalanced);\r\n saver.setFile(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataHybridRandom.arff\"));\r\n saver.writeBatch();\r\n }", "private void setBestSample(Sample s) {\n//\t\t System.out.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\");\n//\t\t System.out.println(\"!!! New best sample with fitness \" +\n//\t\t s.getFitness() + \"!!!\");\n\t\tbestSample = s;\n\t}", "protected void saveValues() {\n dataModel.persist();\n }", "@Override\n public void save() {\n \n }", "@Test\n\t\tpublic void testSave2()\n\t\t{\n\t\t\tChObject cho = repoTest.get(\"68268301\");\n\t\t\trepoTest.remove(cho);\n\t\t\tcho.setDate(\"1900\");\n\t\t\tcho.setDescription(\"test input\");\n\t\t\trepoTest.save(cho);\n\n\t\t\tChObject cho2 = repoTest.get(\"68268301\");\n\t\t\tassertTrue(\"1900\".equals(cho2.getDate()));\n\t\t\tassertTrue(\"test input\".equals(cho2.getDescription()));\n\t\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Test\r\n public void testLoadSave() {\r\n Settings expResult = Settings.BEGINNER;\r\n expResult.save();\r\n Settings result = Settings.load();\r\n assertEquals(expResult, result);\r\n\r\n expResult = Settings.EXPERT;\r\n expResult.save();\r\n result = Settings.load();\r\n assertEquals(expResult, result);\r\n\r\n expResult = Settings.INTERMEDIATE;\r\n expResult.save();\r\n result = Settings.load();\r\n assertEquals(expResult, result);\r\n }", "@Test\r\n\tpublic void saveGameProgram() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: saveGameProgram \r\n\t\tInteger gameId = 0;\r\n\t\tProgram related_program = new tsw.domain.Program();\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tGame response = null;\r\n\t\tresponse = service.saveGameProgram(gameId, related_program);\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: saveGameProgram\r\n\t}", "public void test(String modelFile, String testFile, String prpFile) {\n/* 975 */ Ranker ranker = this.rFact.loadRankerFromFile(modelFile);\n/* 976 */ int[] features = ranker.getFeatures();\n/* 977 */ List<RankList> test = readInput(testFile);\n/* 978 */ if (normalize) {\n/* 979 */ normalize(test, features);\n/* */ }\n/* 981 */ double rankScore = 0.0D;\n/* 982 */ List<String> ids = new ArrayList<>();\n/* 983 */ List<Double> scores = new ArrayList<>();\n/* 984 */ for (RankList aTest : test) {\n/* 985 */ RankList l = ranker.rank(aTest);\n/* 986 */ double score = this.testScorer.score(l);\n/* 987 */ ids.add(l.getID());\n/* 988 */ scores.add(Double.valueOf(score));\n/* 989 */ rankScore += score;\n/* */ } \n/* 991 */ rankScore /= test.size();\n/* 992 */ ids.add(\"all\");\n/* 993 */ scores.add(Double.valueOf(rankScore));\n/* 994 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ \n/* */ \n/* 997 */ if (!prpFile.isEmpty()) {\n/* */ \n/* 999 */ savePerRankListPerformanceFile(ids, scores, prpFile);\n/* 1000 */ System.out.println(\"Per-ranked list performance saved to: \" + prpFile);\n/* */ } \n/* */ }", "protected void establishTransformationModel() {\r\n\t \r\n\t\tTransformationModel transformModel ;\r\n\t\tArrayList<TransformationStack> modelTransformStacks ;\r\n\t\t\r\n\t\t\r\n\t\t// the variables needed for the profile\r\n\t\t// targetStruc = getTargetVector();\r\n\t\tsomData = soappTransformer.getSomData() ; \r\n\t\t// soappTransformer.setSomData( somApplication.getSomData() );\r\n\t\tsomApplication.setSomData(somData) ;\r\n\t\t\r\n\t\tsomData.getVariablesLabels() ;\r\n\t\t \r\n\t\t\r\n\t\t// from here we transfer...\r\n\t\tmodelTransformStacks = soappTransformer.getTransformationModel().getVariableTransformations();\r\n\t\ttransformModel = soappTransformer.getTransformationModel() ;\r\n\t\t \r\n\t\t\r\n\t\ttransformationModelImported = true;\r\n\t}", "public static void main(String[] args) throws Exception {\n DataSet houseVotes = DataParser.parseData(HouseVotes.filename, HouseVotes.columnNames, HouseVotes.dataTypes, HouseVotes.ignoreColumns, HouseVotes.classColumn, HouseVotes.discretizeColumns);\n DataSet breastCancer = DataParser.parseData(BreastCancer.filename, BreastCancer.columnNames, BreastCancer.dataTypes, BreastCancer.ignoreColumns, BreastCancer.classColumn, HouseVotes.discretizeColumns);\n DataSet glass = DataParser.parseData(Glass.filename, Glass.columnNames, Glass.dataTypes, Glass.ignoreColumns, Glass.classColumn, Glass.discretizeColumns);\n DataSet iris = DataParser.parseData(Iris.filename, Iris.columnNames, Iris.dataTypes, Iris.ignoreColumns, Iris.classColumn, Iris.discretizeColumns);\n DataSet soybean = DataParser.parseData(Soybean.filename, Soybean.columnNames, Soybean.dataTypes, Soybean.ignoreColumns, Soybean.classColumn, Soybean.discretizeColumns);\n \n /*\n * The contents of the DataSet are not always random.\n * You can shuffle them using Collections.shuffle()\n */\n \n Collections.shuffle(houseVotes);\n Collections.shuffle(breastCancer);\n Collections.shuffle(glass);\n Collections.shuffle(iris);\n Collections.shuffle(soybean);\n /*\n * Lastly, you want to split the data into a regular dataset and a testing set.\n * DataSet has a function for this, since it gets a little weird.\n * This grabs 10% of the data in the dataset and sets pulls it out to make the testing set.\n * This also means that the remaining 90% in DataSet can serve as our training set.\n */\n\n DataSet houseVotesTestingSet = houseVotes.getTestingSet(.1);\n DataSet breastCancerTestingSet = breastCancer.getTestingSet(.1);\n DataSet glassTestingSet = glass.getTestingSet(.1);\n DataSet irisTestingSet = iris.getTestingSet(.1);\n DataSet soybeanTestingSet = soybean.getTestingSet(.1);\n \n //KNN\n //House Votes\n System.out.println(HouseVotes.class.getSimpleName());\n KNN knn = new KNN(houseVotes, houseVotesTestingSet, HouseVotes.classColumn, 3);\n String[] knnHouseVotes = new String[houseVotesTestingSet.size()];\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n knnHouseVotes[i] = knn.classify(houseVotesTestingSet.get(i));\n }\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n if(knnHouseVotes[i].equals(houseVotesTestingSet.get(i)[HouseVotes.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnHouseVotes[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnHouseVotes[i] + \", actually \" + houseVotesTestingSet.get(i)[HouseVotes.classColumn].value() + \")\");\n }\n }\n \n //Breast Cancer\n System.out.println(BreastCancer.class.getSimpleName());\n knn = new KNN(breastCancer, breastCancerTestingSet, BreastCancer.classColumn, 3);\n String[] knnBreastCancer = new String[breastCancerTestingSet.size()];\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n knnBreastCancer[i] = knn.classify(breastCancerTestingSet.get(i));\n }\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n if(knnBreastCancer[i].equals(breastCancerTestingSet.get(i)[BreastCancer.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnBreastCancer[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnBreastCancer[i] + \", actually \" + breastCancerTestingSet.get(i)[BreastCancer.classColumn].value() + \")\");\n }\n }\n \n //Glass\n System.out.println(Glass.class.getSimpleName());\n knn = new KNN(glass, glassTestingSet, Glass.classColumn, 3);\n String[] knnGlass = new String[glassTestingSet.size()];\n for(int i = 0; i < glassTestingSet.size(); i++) {\n knnGlass[i] = knn.classify(glassTestingSet.get(i));\n }\n for(int i = 0; i < glassTestingSet.size(); i++) {\n if(knnGlass[i].equals(glassTestingSet.get(i)[Glass.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnGlass[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnGlass[i] + \", actually \" + glassTestingSet.get(i)[Glass.classColumn].value() + \")\");\n }\n }\n \n //Iris\n System.out.println(Iris.class.getSimpleName());\n knn = new KNN(iris, irisTestingSet, Iris.classColumn, 3);\n String[] knnIris = new String[irisTestingSet.size()];\n for(int i = 0; i < irisTestingSet.size(); i++) {\n knnIris[i] = knn.classify(irisTestingSet.get(i));\n }\n for(int i = 0; i < irisTestingSet.size(); i++) {\n if(knnIris[i].equals(irisTestingSet.get(i)[Iris.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnIris[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnIris[i] + \", actually \" + irisTestingSet.get(i)[Iris.classColumn].value() + \")\");\n }\n }\n \n //Soybean\n System.out.println(Soybean.class.getSimpleName());\n knn = new KNN(soybean, soybeanTestingSet, Soybean.classColumn, 3);\n String[] knnSoybean = new String[soybeanTestingSet.size()];\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n knnSoybean[i] = knn.classify(soybeanTestingSet.get(i));\n }\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n if(knnSoybean[i].equals(soybeanTestingSet.get(i)[Soybean.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnSoybean[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnSoybean[i] + \", actually \" + soybeanTestingSet.get(i)[Soybean.classColumn].value() + \")\");\n }\n }\n \n \n /*\n * Lets setup ID3:\n * DataSet, TestSet, column with the class categorization. (republican, democrat in this case)\n */\n\n System.out.println(HouseVotes.class.getSimpleName());\n ID3 id3 = new ID3(houseVotes, houseVotesTestingSet, HouseVotes.classColumn);\n String[] id3HouseVotes = new String[houseVotesTestingSet.size()];\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n id3HouseVotes[i] = id3.classify(houseVotesTestingSet.get(i));\n }\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n if(id3HouseVotes[i].equals(houseVotesTestingSet.get(i)[HouseVotes.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3HouseVotes[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3HouseVotes[i] + \", actually \" + houseVotesTestingSet.get(i)[HouseVotes.classColumn].value() + \")\");\n }\n }\n\n System.out.println(BreastCancer.class.getSimpleName());\n id3 = new ID3(breastCancer, breastCancerTestingSet, BreastCancer.classColumn);\n String[] id3BreastCancer = new String[breastCancerTestingSet.size()];\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n id3BreastCancer[i] = id3.classify(breastCancerTestingSet.get(i));\n }\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n if(id3BreastCancer[i].equals(breastCancerTestingSet.get(i)[BreastCancer.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3BreastCancer[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3BreastCancer[i] + \", actually \" + breastCancerTestingSet.get(i)[BreastCancer.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Glass.class.getSimpleName());\n id3 = new ID3(glass, glassTestingSet, Glass.classColumn);\n String[] id3Glass = new String[glassTestingSet.size()];\n for(int i = 0; i < glassTestingSet.size(); i++) {\n id3Glass[i] = id3.classify(glassTestingSet.get(i));\n }\n for(int i = 0; i < glassTestingSet.size(); i++) {\n if(id3Glass[i].equals(glassTestingSet.get(i)[Glass.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Glass[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Glass[i] + \", actually \" + glassTestingSet.get(i)[Glass.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Iris.class.getSimpleName());\n id3 = new ID3(iris, irisTestingSet, Iris.classColumn);\n String[] id3Iris = new String[irisTestingSet.size()];\n for(int i = 0; i < irisTestingSet.size(); i++) {\n id3Iris[i] = id3.classify(irisTestingSet.get(i));\n }\n for(int i = 0; i < irisTestingSet.size(); i++) {\n if(id3Iris[i].equals(irisTestingSet.get(i)[Iris.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Iris[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Iris[i] + \", actually \" + irisTestingSet.get(i)[Iris.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Soybean.class.getSimpleName());\n id3 = new ID3(soybean, soybeanTestingSet, Soybean.classColumn);\n String[] id3Soybean = new String[soybeanTestingSet.size()];\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n id3Soybean[i] = id3.classify(soybeanTestingSet.get(i));\n }\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n if(id3Soybean[i].equals(soybeanTestingSet.get(i)[Soybean.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Soybean[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Soybean[i] + \", actually \" + soybeanTestingSet.get(i)[Soybean.classColumn].value() + \")\");\n }\n }\n }", "public void dmall() {\n \r\n BufferedReader datafile = readDataFile(\"Work//weka-malware.arff\");\r\n \r\n Instances data = null;\r\n\t\ttry {\r\n\t\t\tdata = new Instances(datafile);\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n data.setClassIndex(data.numAttributes() - 1);\r\n \r\n // Choose a type of validation split\r\n Instances[][] split = crossValidationSplit(data, 10);\r\n \r\n // Separate split into training and testing arrays\r\n Instances[] trainingSplits = split[0];\r\n Instances[] testingSplits = split[1];\r\n \r\n // Choose a set of classifiers\r\n Classifier[] models = { new J48(),\r\n new DecisionTable(),\r\n new DecisionStump(),\r\n new BayesianLogisticRegression() };\r\n \r\n // Run for each classifier model\r\n//for(int j = 0; j < models.length; j++) {\r\n int j = 0;\r\n \tswitch (comboClassifiers.getSelectedItem().toString()) {\r\n\t\t\tcase \"J48\":\r\n\t\t\t\tj = 0;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionTable\":\r\n\t\t\t\tj = 1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionStump\":\r\n\t\t\t\tj = 2;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"BayesianLogisticRegression\":\r\n\t\t\t\tj = 3;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n \t\r\n\r\n // Collect every group of predictions for current model in a FastVector\r\n FastVector predictions = new FastVector();\r\n \r\n // For each training-testing split pair, train and test the classifier\r\n for(int i = 0; i < trainingSplits.length; i++) {\r\n Evaluation validation = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tvalidation = simpleClassify(models[j], trainingSplits[i], testingSplits[i]);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n predictions.appendElements(validation.predictions());\r\n \r\n // Uncomment to see the summary for each training-testing pair.\r\n// textArea.append(models[j].toString() + \"\\n\");\r\n textArea.setText(models[j].toString() + \"\\n\");\r\n// System.out.println(models[j].toString());\r\n }\r\n \r\n // Calculate overall accuracy of current classifier on all splits\r\n double accuracy = calculateAccuracy(predictions);\r\n \r\n // Print current classifier's name and accuracy in a complicated, but nice-looking way.\r\n textArea.append(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\\n\");\r\n System.out.println(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\");\r\n//}\r\n \r\n\t}", "public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;" ]
[ "0.62034345", "0.6159235", "0.6073614", "0.59663814", "0.5913385", "0.58684814", "0.5856101", "0.58527213", "0.58446556", "0.5835124", "0.58181036", "0.5806366", "0.57946825", "0.5788842", "0.57641095", "0.5750063", "0.574543", "0.56807095", "0.56446564", "0.5637885", "0.5632742", "0.56158596", "0.5607863", "0.55939126", "0.5583905", "0.5583346", "0.5572171", "0.55599666", "0.5556587", "0.55334926", "0.55121666", "0.5490919", "0.5484383", "0.54721487", "0.5466381", "0.5465167", "0.54352254", "0.54222846", "0.54200256", "0.54073703", "0.540397", "0.540397", "0.540397", "0.5403667", "0.5382882", "0.5382882", "0.5382882", "0.5382882", "0.5381668", "0.5377992", "0.5376418", "0.5372158", "0.53682274", "0.5366671", "0.5361823", "0.53511775", "0.535021", "0.53407735", "0.5333595", "0.5328363", "0.53096116", "0.53096116", "0.5309424", "0.53017133", "0.5301091", "0.5296486", "0.5292568", "0.5290915", "0.52865624", "0.5281591", "0.5276531", "0.52763784", "0.5273944", "0.52708346", "0.5269237", "0.52661055", "0.525934", "0.5237027", "0.5233623", "0.52331144", "0.52257085", "0.52183163", "0.5216205", "0.52102685", "0.5200246", "0.5199222", "0.51804376", "0.5178681", "0.5175092", "0.5167902", "0.5162367", "0.51487696", "0.5148632", "0.5148632", "0.513886", "0.51376635", "0.5132789", "0.5130279", "0.51293886", "0.51193", "0.51159436" ]
0.0
-1
/ Nel caso si debba eliminare un prodotto in base al suo codice, basta istanziare un VideogameBean dandogli solo il valore codice prodotto salva VideogameBean nel database
public void doSave(VideogameBean prod) throws SQLException { DatabaseConnector connector = new DatabaseConnector(); connector.startConnection(); PreparedStatement state = null; state = connector.getJdbcConnection() .prepareStatement("insert into Videogioco values (?, ?, ?, ?, ?, ?, ?, ?)"); state.setInt(1, prod.getVideogameCode()); state.setString(2, prod.getTitle()); state.setString(3, prod.getDescription()); state.setString(4, prod.getConsole()); state.setDouble(5, prod.getPrice()); state.setInt(6, prod.getAvailability()); state.setInt(7, prod.getShipment()); state.setString(8, prod.getImgPath()); state.executeUpdate(); connector.closeConnection(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eliminar() {\n try {\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(3, this.Selected);\n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"2\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue eliminada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n addMessage(\"Eliminado Exitosamente\", 1);\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al eliminar el registro, contacte al administrador del sistema\", 2);\n }\n }", "@Override\n public void eliminarPropiedad(String pIdPropiedad) {\n try {\n bdPropiedad.manipulationQuery(\"DELETE FROM PROPIEDAD WHERE ID_PROPIEDAD = '\" + pIdPropiedad + \"'\");\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public String vistaEliminar(String codaloja, String codactiv) {Alojamiento alojbusc = alojamientoService.find(codaloja);\n// Actividad actbusc = actividadService.find(codactiv);\n// Alojamiento_actividad aloact = new Alojamiento_actividad();\n// Alojamiento_actividad_PK aloact_pk = new Alojamiento_actividad_PK();\n// aloact_pk.setActividad(actbusc);\n// aloact_pk.setAlojamiento(alojbusc);\n// aloact.setId(aloact_pk);\n// \n// actividadAlojamientoService.remove(aloact);\n// \n// \n// \n return \"eliminarAsignacion\";\n }", "public void eliminarMateria() {\n ejbFacade.remove(materia);\n items = ejbFacade.findAll();\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.update(\"MateriaListForm:datalist\");\n requestContext.execute(\"PF('Confirmacion').hide()\");\n departamento = new Departamento();\n materia = new Materia();\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se eliminó con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n requestContext.update(\"MateriaListForm\");\n }", "@Override\r\n public void eliminar(final Empleat entitat) throws UtilitatPersistenciaException {\r\n JdbcPreparedDao jdbcDao = new JdbcPreparedDao() {\r\n\r\n @Override\r\n public void setParameter(PreparedStatement pstm) throws SQLException {\r\n int field=0;\r\n pstm.setInt(++field, entitat.getCodi());\r\n }\r\n\r\n @Override\r\n public String getStatement() {\r\n return \"delete from Empleat where codi = ?\";\r\n }\r\n };\r\n UtilitatJdbcPlus.executar(con, jdbcDao);\r\n }", "public void eliminarTipoPago(String codTipoPago) throws Exception {\n if (this.tiposPagos.containsKey(codTipoPago)) {\r\n this.generarAuditoria(\"BAJA\", \"TIPOPAGO\", codTipoPago, \"\", GuiIngresar.getUsuario());\r\n this.tiposPagos.remove(codTipoPago);\r\n setChanged();\r\n notifyObservers();\r\n //retorno = true;\r\n } else {\r\n throw new Exception(\"El tipo pago no Existe\");\r\n }\r\n //return retorno;\r\n }", "@Override\r\n\tpublic void deleteFamille (Long idFamilleComp) {\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\tObject C=session.get(Famille.class, idFamilleComp);\r\n \t\tif(C==null) throw new RuntimeException(\"FamilleComp non crées\");\r\n \t session.delete(C);\r\n \t session.getTransaction().commit();\r\n\t}", "public void elimina(DTOAcreditacionGafetes acreGafete) throws Exception;", "public void eliminar(Provincia provincia) throws BusinessErrorHelper;", "@Override\n\tpublic MensajeBean elimina(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.elimina(nuevo);\n\t}", "@Override\n public void deletarPessoa(int codigo) throws ErroDAOException {\n }", "public String eliminarDetalle()\r\n/* 340: */ {\r\n/* 341:400 */ this.cuentaContableDimensionContable = ((CuentaContableDimensionContable)this.dtCuentaContable.getRowData());\r\n/* 342:401 */ this.cuentaContableDimensionContable.setEliminado(true);\r\n/* 343:402 */ return \"\";\r\n/* 344: */ }", "public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }", "public boolean eliminarLoteria(int codigo) {\n\n String instruccion = \"delete from loteria where codigo =\" + codigo;\n boolean val = false;\n PreparedStatement pre;\n Connection con = null;\n try {\n con = Recurso.Conexion.getPool().getDataSource().getConnection();\n pre = con.prepareStatement(instruccion);\n pre.execute();\n val = true;\n } catch (SQLException ex) {\n ex.printStackTrace();\n\n } finally {\n if (con != null) {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(GestorLoteria.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return val;\n }\n\n }", "@Override\n public void deletar(Object pacienteParametro) {\n Paciente paciente;\n paciente = (Paciente) pacienteParametro;\n EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"vesaliusPU\"); \n EntityManager em = factory.createEntityManager();\n em.getTransaction().begin();\n em.remove(em.merge(paciente));\n em.getTransaction().commit();\n em.close();\n factory.close();\n }", "public void excluirPorChavePrimaria(@SuppressWarnings(\"rawtypes\") Class pClasse, Object pPrimaryKey);", "public boolean eliminarCliente(int codigo){\n\t\ttry{\n\t\t\tString insert = \"DELETE FROM clientes WHERE codigo = ? ;\";\n\t\t\tPreparedStatement ps = con.prepareStatement(insert);\n\t\t\tps.setInt(1, codigo);\n\t\t\tSavepoint sp1 = con.setSavepoint(\"SAVE_POINT_ONE\");\t\t\t\n\t\t\tps.executeUpdate();\t\n\t\t\tcon.commit();\n\t\t\treturn true;\n\t\t}catch(Exception e){\n System.out.println(e.getMessage());\n e.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public void eliminar(Maquina maquina)\r\n/* 24: */ {\r\n/* 25: 52 */ this.maquinaDao.eliminar(maquina);\r\n/* 26: */ }", "public void eliminarPaciente(String codigo)\n {\n try\n {\n int rows_update=0;\n PreparedStatement pstm=con.conexion.prepareStatement(\"DELETE paciente.* FROM paciente WHERE IdPaciente='\"+codigo+\"'\");\n rows_update=pstm.executeUpdate();\n \n if (rows_update==1)\n {\n JOptionPane.showMessageDialog(null,\"Registro eliminado exitosamente\");\n }\n else\n {\n JOptionPane.showMessageDialog(null,\"No se pudo eliminar el registro, verifique datos\");\n con.desconectar();\n }\n }\n catch (SQLException e)\n {\n JOptionPane.showMessageDialog(null,\"Error \"+e.getMessage()); \n }\n }", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}", "public void eliminarcola(){\n Cola_banco actual=new Cola_banco();// se crea un metodo actual para indicar los datos ingresado\r\n actual=primero;//se indica que nuestro dato ingresado va a ser actual\r\n if(primero != null){// se usa una condiccion si nuestro es ingresado es diferente de null\r\n while(actual != null){//se usa el while que recorra la cola indicando que actual es diferente de null\r\n System.out.println(\"\"+actual.nombre);// se imprime un mensaje con los datos ingresado con los datos ingresado desde el teclado\r\n actual=actual.siguiente;// se indica que el dato actual pase a ser igual con el apuntador siguente\r\n }\r\n }else{// se usa la condicion sino se cumple la condicion\r\n System.out.println(\"\\n la cola se encuentra vacia\");// se indica al usuario que la cola esta vacia\r\n }\r\n }", "@Override\n public void doDelete(FasciaOrariaBean bean) throws SQLException {\n Connection con = null;\n PreparedStatement statement = null;\n String sql = \"DELETE FROM fasciaoraria WHERE id=?\";\n try {\n con = DriverManagerConnectionPool.getConnection();\n statement = con.prepareStatement(sql);\n statement.setInt(1, bean.getId());\n System.out.println(\"doUpdate=\" + statement);\n statement.executeUpdate();\n con.commit();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n\n try {\n\n statement.close();\n DriverManagerConnectionPool.releaseConnection(con);\n\n } catch (SQLException e) {\n\n e.printStackTrace();\n }\n }\n }", "public void vaciarCarrito() {\r\n String sentSQL = \"DELETE from carrito\";\r\n try {\r\n Statement st = conexion.createStatement();\r\n st.executeUpdate(sentSQL);\r\n st.close();\r\n LOG.log(Level.INFO,\"Carrito vaciado\");\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n \tLOG.log(Level.WARNING,e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "public String eliminarDetalleIVAFacturaSRI()\r\n/* 433: */ {\r\n/* 434:436 */ DetalleFacturaProveedorSRI detalleFacturaProveedorSRI = (DetalleFacturaProveedorSRI)this.dtDetalleIVAFacturaProveedorSRI.getRowData();\r\n/* 435:437 */ detalleFacturaProveedorSRI.setEliminado(true);\r\n/* 436: */ \r\n/* 437:439 */ return \"\";\r\n/* 438: */ }", "@Override\r\n\tpublic MensajeBean elimina(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.elimina(nuevo);\r\n\t}", "@Override\r\n\tpublic void remover(Tipo tipo) {\n String sql = \"delete from tipos_servicos where id = ?\";\r\n try {\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, tipo.getId());\r\n \r\n stmt.execute();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t}", "@Override\n\tpublic void delete(Iscrizioni o)\n\t\t\tthrows ClassNotFoundException, SQLException, NotHandledTypeException, NamingException, ParseException {\n\t\tIscrizioni i = em.find(Iscrizioni.class, o.getIdIscrizione());\n\t\tem.remove(i);\n//\t\tObject[] campi = { o.getIdIscrizione() };\n//\t\tString sql = \"DELETE FROM `iscrizioni` WHERE `idIscrizione` = ? \";\n//\t\tDBHandler dbHandler = new DBHandler();\n//\t\tdbHandler.sql(sql, campi);\n\t}", "public void eliminarVenta(int codVenta) throws Exception {\n if (this.ventas.containsKey(codVenta)) {\r\n this.ventas.remove(codVenta);\r\n setChanged();\r\n notifyObservers();\r\n //retorno = true;\r\n } else {\r\n throw new Exception(\"La Venta no Existe\");\r\n }\r\n //return retorno;\r\n }", "@Override\n public void excluir(Pessoa pessoa) {\n String sql = \"DELETE FROM pessoa WHERE uuid=?\";\n try {\n this.conexao = Conexao.abrirConexao();\n PreparedStatement statement = conexao.prepareStatement(sql);\n statement.setLong(1, pessoa.getId());\n statement.executeUpdate();\n } catch (SQLException ex) {\n Logger.getLogger(PessoasJDBC.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n Conexao.fecharConexao(conexao);\n }\n\n }", "public void eliminarBodegaActual(){\n Nodo_bodega_actual.obtenerAnterior().definirSiguiente(Nodo_bodega_actual.obtenerSiguiente());\n if(Nodo_bodega_actual.obtenerSiguiente() != null){\n Nodo_bodega_actual.obtenerSiguiente().definirAnterior(Nodo_bodega_actual.obtenerAnterior());\n } \n }", "public void eliminarDatos(EstructuraContratosDatDTO estructuraNominaSelect) {\n\t\t\n\t}", "private void eliminarDeMisPropiedades(Casilla casilla){\n if(esDeMipropiedad(casilla)){\n propiedades.remove(casilla.getTituloPropiedad());\n }\n \n }", "public void eliminar(Producto producto) throws IWDaoException;", "public RespuestaBD eliminarRegistro(int codigoFlujo, int secuencia) {\n/* 296 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* */ try {\n/* 299 */ String s = \"delete from wkf_detalle where codigo_flujo=\" + codigoFlujo + \" and secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* 304 */ rta = this.dat.executeUpdate2(s);\n/* */ }\n/* 306 */ catch (Exception e) {\n/* 307 */ e.printStackTrace();\n/* 308 */ Utilidades.writeError(\"FlujoDetalleDAO:eliminarRegistro \", e);\n/* 309 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 311 */ return rta;\n/* */ }", "@Override\n\tpublic void eliminar(Object T) {\n\t\tSeccion seccionE= (Seccion)T;\n\t\tif(seccionE!=null){\n\t\t\ttry{\n\t\t\tString insertTableSQL = \"update seccion set estatus=?\" +\"where codigo=? and estatus='A'\";\n\t\t\tPreparedStatement preparedStatement = conexion.prepareStatement(insertTableSQL);\n\t\t\tpreparedStatement.setString(1, \"I\");\n\t\t\tpreparedStatement.setString(2, seccionE.getCodigo());\n\t\t\tpreparedStatement.executeUpdate();\n\t\t}catch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"No se elimino el registro\");\n\t\t}\n\t\tSystem.out.println(\"Eliminacion exitosa\");\n\t}\n\n\t}", "@Override\n\tpublic void delete(int codigo) {\n\t\tSystem.out.println(\"Borra el empleado con \" + codigo + \" en la BBDD.\");\n\t}", "public void elimina(Long id) {\n\n final EntityManager em = getEntityManager();\n\n try {\n\n final EntityTransaction tx = em.getTransaction();\n\n tx.begin();\n\n // Busca un conocido usando su llave primaria.\n\n final Conocido modelo = em.find(Conocido.class, id);\n\n if (modelo != null) {\n\n /* Si la referencia no es nula, significa que el modelo se encontró la\n\n * referencia no es nula y se elimina. */\n\n em.remove(modelo);\n\n }\n\n tx.commit();\n\n } finally {\n\n em.close();\n\n }\n\n }", "@Override\n\tpublic int elimina(Solicitud bean) throws Exception {\n\t\treturn 0;\n\t}", "public void deletar() throws Exception {\n // Verifica se o bean existe\n if(b == null)\n throw new Exception(Main.recursos.getString(\"bd.objeto.nulo\"));\n\n String sql = \"DELETE FROM banca WHERE idBanca = \" + b.getIdBanca();\n\n Transacao.executar(sql);\n }", "public void excluir() {\n try {\n ClienteDao fdao = new ClienteDao();\n fdao.Excluir(cliente);\n\n JSFUtil.AdicionarMensagemSucesso(\"Cliente excluido com sucesso!\");\n\n } catch (RuntimeException e) {\n JSFUtil.AdicionarMensagemErro(\"Não é possível excluir um cliente que tenha uma venda associado!\");\n e.printStackTrace();\n }\n }", "@Transactional\r\n\t\tpublic void removeCertificadoComunidad(ComunidadQueryBean query){ \r\n\t\t\tif(query.getHashCertificado()!=null && query.getIdComunidad()!=null){\r\n\t\t\t\t if(!isCertificadoActivo(query)){\r\n\t\t\t\t\t JugComunidadCertificado entity= getCertificadobyHash(query);\r\n\t\t\t\t\t comunidadRepository.remove(entity); \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t }\r\n\t\t\r\n\t\t}", "private void eliminar() {\n\n int row = vista.tblClientes.getSelectedRow();\n cvo.setId_cliente(Integer.parseInt(vista.tblClientes.getValueAt(row, 0).toString()));\n int men = JOptionPane.showConfirmDialog(null, \"Estas seguro que deceas eliminar el registro?\", \"pregunta\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\n if (men == JOptionPane.YES_OPTION) {\n try {\n cdao.eliminar(cvo);\n cvo.setId_cliente(row);\n } catch (Exception e) {\n System.out.println(\"Mensaje eliminar\" + e.getMessage());\n }\n }\n }", "@Override\r\n public void elminarVehiculo(String placa) {\n Connection conn = null;\r\n try{\r\n conn = Conexion.getConnection();\r\n String sql = \"delete from vehiculo where veh_placa=?\";\r\n PreparedStatement statement = conn.prepareStatement(sql);\r\n statement.setString(1, placa);\r\n int rowsDelete = statement.executeUpdate();\r\n if(rowsDelete > 0){\r\n JOptionPane.showMessageDialog(null, \"Registro eliminado de manera correcta\");\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(VehiculoDAOJDBCImpl.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\n\tpublic boolean eliminaDipendente() {\n\t\treturn false;\n\t}", "public void deletar(int codigo) throws SQLException{\r\n conecta = FabricaConexao.conexaoBanco();\r\n sql = \"delete from conserto where concodigo =? \";\r\n pstm = conecta.prepareStatement(sql);\r\n pstm.setInt(1, codigo);\r\n pstm.execute();\r\n FabricaConexao.fecharConexao();\r\n \r\n }", "public String eliminarDetalleFacturaSRI()\r\n/* 425: */ {\r\n/* 426:428 */ DetalleFacturaProveedorSRI detalleFacturaProveedorSRI = (DetalleFacturaProveedorSRI)this.dtDetalleFacturaProveedorSRI.getRowData();\r\n/* 427:429 */ detalleFacturaProveedorSRI.setEliminado(true);\r\n/* 428: */ \r\n/* 429:431 */ return \"\";\r\n/* 430: */ }", "public VistaBorrar() throws SQLException {\n initComponents();\n Conexion.getInstance();\n \n llenarTabla();\n \n //jTable1.setModel(defaultTableModel);\n //controladorListar = new ControladorListar();\n //ArrayList<Pelicula> listPelicula=controladorListar.getListadoPeliculaEliminar();\n //Object[] fila=new Object[2];\n //for(int x=0; x<listPelicula.size(); x++){\n // fila[0]=listPelicula.get(x).getCodigo();\n // fila[1]=listPelicula.get(x).getNombre();\n // defaultTableModel.addRow(fila);\n \n }", "private void clearData() {\n em.createQuery(\"delete from ViajeroEntity\").executeUpdate();\n }", "public void eliminarIntemediaPersonaMovilidad(Movilidad mov){\n try{\n String query = \"DELETE FROM PERSONA_MOVILIDAD WHERE ID_MOVILIDAD = \"+ mov.getIdMovilidad();\n Query q = getSessionFactory().getCurrentSession().createSQLQuery(query);\n q.executeUpdate();\n }catch(Exception e){\n e.printStackTrace();\n }\n \n }", "public String eliminarProgramaPeriodoDesarrollo_action()throws SQLException\n {\n mensaje=\"\";\n for(ProgramaProduccionPeriodo bean:programaProduccionPeriodoDesarrolloList)\n {\n if(bean.getChecked())\n {\n try\n {\n con = Util.openConnection(con);\n con.setAutoCommit(false);\n String consulta = \"select count(*) as contLotes\"+\n \" from PROGRAMA_PRODUCCION p where p.COD_PROGRAMA_PROD='\"+bean.getCodProgramaProduccion()+\"'\";\n LOGGER.debug(\"consulta verificar que el programa no tenga registrado lotes \"+consulta);\n Statement st=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\n ResultSet res=st.executeQuery(consulta);\n res.next();\n PreparedStatement pst=null;\n if(res.getInt(\"contLotes\")>0)\n {\n mensaje=\"No se puede eliminar el Programa de Produccion porque tiene registrado \"+res.getInt(\"contLotes\")+\" lotes\";\n }\n else\n {\n consulta=\"delete PROGRAMA_PRODUCCION_PERIODO where COD_PROGRAMA_PROD='\"+bean.getCodProgramaProduccion()+\"'\";\n LOGGER.debug(\"consulta delete programa produccion periodo \"+consulta);\n pst=con.prepareStatement(consulta);\n if(pst.executeUpdate()>0)LOGGER.info(\"se elimino el programa de produccion periodo\");\n mensaje=\"1\";\n }\n con.commit();\n\n if(pst!=null)pst.close();\n con.close();\n }\n catch (SQLException ex)\n {\n con.rollback();\n con.close();\n mensaje=\"Ocurrio un error al momento de eliminar el programa periodo, intente de nuevo\";\n LOGGER.warn(\"error\", ex);\n }\n }\n }\n if(mensaje.equals(\"1\"))\n {\n this.cargarProgramaProduccionPeriodoDesarrollo_action();\n }\n return null;\n }", "public void eliminar(){\n conexion = base.GetConnection();\n try{\n PreparedStatement borrar = conexion.prepareStatement(\"DELETE from usuarios where Cedula='\"+this.Cedula+\"'\" );\n \n borrar.executeUpdate();\n // JOptionPane.showMessageDialog(null,\"borrado\");\n }catch(SQLException ex){\n System.err.println(\"Ocurrió un error al borrar: \"+ex.getMessage());\n \n }\n }", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}", "@Override\n public Pacote remove(Object key) {\n Pacote pt = this.get(key);\n try {\n conn = Connect.connect();\n \n PreparedStatement stm = conn.prepareStatement(\"UPDATE Pacote SET visivel=FALSE WHERE nomePacote=?;\");\n \n stm.setString(1, (String)key); //parse da key para a querie\n stm.executeUpdate();\n \n } catch (SQLException | ClassNotFoundException e) {\n throw new NullPointerException(e.getMessage());\n } finally {\n Connect.close(conn);\n }\n return pt;\n }", "public boolean remover(Veterinario obj) throws ClassNotFoundException, SQLException{\n VeterinarioDAO dao = new VeterinarioDAO();\n return dao.remover(obj);\n }", "public boolean eliminarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 484 */ String s = \"delete from cal_plan_metas\";\n/* 485 */ s = s + \" where codigo_ciclo=\" + codigoCiclo;\n/* 486 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 487 */ s = s + \" codigo_meta=\" + codigoMeta;\n/* 488 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 491 */ catch (Exception e) {\n/* 492 */ e.printStackTrace();\n/* 493 */ Utilidades.writeError(\"CalPlanMetasFactory:eliminarRegistro\", e);\n/* */ \n/* 495 */ return false;\n/* */ } \n/* */ }", "public void borrarBeanActual() {\n\t\t// borrar el bean(controller) que se esta utilizando.\n\t\tString bean = this.getNombreBeanActual();\n\t\t// borrar el bean de session\n\t\tif (!TratamientoDeDatos.esNullCeroVacio(bean)) {\n\t\t\tFacesUtils.deleteSession(bean);\n\t\t}\n\t}", "public void eliminarPrograma() {\r\n // Abro y obtengo la conexion\r\n this.conection.abrirConexion();\r\n Connection con = this.conection.getConexion();\r\n\r\n // Preparo la consulta\r\n String sql = \"UPDATE programa SET \\n\"\r\n + \"estado = '0'\\n\"\r\n + \"WHERE programa.codigo = ?\";\r\n System.out.println(sql);\r\n\r\n try {\r\n // La ejecuto\r\n PreparedStatement ps = con.prepareStatement(sql);\r\n ps.setInt(1, this.codigo);\r\n int rows = ps.executeUpdate();\r\n System.out.println(rows);\r\n // Cierro la conexion\r\n this.conection.cerrarConexion();\r\n } catch (SQLException ex) {\r\n System.out.println(ex.getMessage());\r\n }\r\n }", "void desalocar(Processo processo) {\n for (int r = 0; r < size(); r++) {\n if (get(r).idProcesso == processo.getId()) {\n //TODO Marcar o bloco como livre\n get(r).espaçoUsado = 0;\n get(r).idProcesso = -1;\n }\n }\n }", "public void eliminarEmpleado(CLEmpleado cl) throws SQLException{\r\n String sql = \"{CALL sp_eliminarEmpleado(?)}\";\r\n \r\n try{\r\n ps = cn.prepareCall(sql);\r\n ps.setInt(1, cl.getIdEmpleado());\r\n ps.execute();\r\n \r\n }catch(SQLException e){\r\n JOptionPane.showMessageDialog(null, \"error: \"+ e.getMessage());\r\n \r\n }\r\n \r\n }", "public void eliminar(AplicacionOferta aplicacionOferta){\n try{\n aplicacionOfertaDao.remove(aplicacionOferta);\n }catch(Exception e){\n Logger.getLogger(AplicacionOfertaServicio.class.getName()).log(Level.SEVERE, null, e);\n }\n }", "@Override //删除id\n\tpublic void deletePoInfoById(String poinid) throws Exception {\n\t\tdao.delete(\"PoInfoMapper.deletePoInfoById\", poinid);\n\t}", "public void guardar() {\n try {\n if (this.buscarCodApelacion()) {\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.INSERTA_APELACIONES(apelacionesBean); \n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.apelacionesBean.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"0\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue insertada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n this.apelacionesBean = new ApelacionesBean();\n addMessage(\"Guadado Exitosamente\", 1);\n } else {\n addMessage(\"La solicitud de apelacion especificada no existe\", 1);\n this.Listar();\n }\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al insertar el registro, contacte al administrador del sistema\", 1);\n }\n }", "@Override\n\tpublic void excluir(Produto entidade) {\n\n\t}", "public static void vaciartabla(){\n DefaultTableModel modelo=(DefaultTableModel) jtproveedores.getModel(); \n for (int i = 0; i < jtproveedores.getRowCount(); i++) {\n modelo.removeRow(i);\n i-=1;\n } \n }", "public void removeCarritoDeCompras (Long compradorId) {\r\n\r\n CompradorEntity compradorEntity = compradorPersistence.find(compradorId); \r\n CarritoDeComprasEntity carroEntity = carroPersistence.find(compradorEntity.getCarritoDeCompras().getId());\r\n carroPersistence.delete(compradorEntity.getListaDeDeseos().getId());\r\n compradorEntity.setListaDeDeseos(null);\r\n carroEntity.setComprador(null);\r\n \r\n}", "@Override\n\tpublic void remover(Parcela entidade) {\n\n\t}", "public boolean eliminarproducto(ProductoDTO c) {\r\n \r\n try {\r\n PreparedStatement ps;\r\n ps = conn.getConn().prepareStatement(SQL_DELETE);\r\n ps.setInt(1, c.getId());\r\n\r\n if (ps.executeUpdate() > 0) {\r\n\r\n JOptionPane.showMessageDialog(null, \"Prudcto eliminado exitosamente\");\r\n return true;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProductoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n conn.cerrarconexion();\r\n }\r\n JOptionPane.showMessageDialog(null, \"No se ha podido registrar\");\r\n return false;\r\n\r\n }", "public void eliminar(Producto producto) throws BusinessErrorHelper;", "public void eliminar(Dia dia) {\n Session session = sessionFactory.openSession();\n //la transaccion a relizar\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n //eliminamos el Dia\n session.delete(dia);\n \n tx.commit();\n }\n catch (Exception e) {\n //Se regresa a un estado consistente \n if (tx!=null){ \n tx.rollback();\n }\n e.printStackTrace(); \n }\n finally {\n //cerramos siempre la sesion\n session.close();\n }\n }", "public void domicilioElimina(){\r\n\t\tlog.info(\"DomicilioElimina()\");\r\n\t\tfor (int i = 0; i < DomicilioPersonaList.size(); i++) { \t\t\r\n\t \tlog.info(\"\"+DomicilioPersonaList.get(i).getItem()+\" ,idd \"+getIdd() +\" \"+DomicilioPersonaList.get(i).getDomicilio());\r\n\r\n\t\tif((DomicilioPersonaList.get(i).getIddomiciliopersona()== 0 || DomicilioPersonaList.get(i).getIddomiciliopersona()== null) && DomicilioPersonaList.get(i).getItem()==\"Por Agregar\"){\r\n\t\t\tlog.info(\"N2----> DomicilioPersonaList.get(i).getIddomiciliopersona()\" +\" \" +DomicilioPersonaList.get(i).getIddomiciliopersona());\r\n\t\t\tDomicilioPersonaSie domtemp = new DomicilioPersonaSie();\r\n\t\t\tdomtemp.setIddomiciliopersona(idd);\r\n\t\t\tDomicilioPersonaList.remove(domtemp);\r\n\t\tfor (int j = i; j < DomicilioPersonaList.size(); j++) {\r\n\t\t\tlog.info(\" i \" +i+\" j \"+ j);\r\n\t\t\ti=i+1;\r\n\t\t\tDomicilioPersonaList.set(j, DomicilioPersonaList.get(j));\r\n\t\t}break;\r\n\t\t}\r\n\t\telse if(DomicilioPersonaList.get(i).getIddomiciliopersona() ==(getIdd()) && DomicilioPersonaList.get(i).getItem()==\"Agregado\"){\r\n\t\t\tlog.info(\"ALERTA WDFFFF\");\r\n\t\t\tDomicilioPersonaSie obj = new DomicilioPersonaSie();\r\n\t\t\tobj.setIddomiciliopersona(idd);\r\n\t\t\tlog.info(\"DENTRO LISTA DESHABILITADO\");\r\n\t\t\tDomicilioPersonaDeshabilitado.add(obj);\t\r\n\t\t\tFaceMessage.FaceMessageError(\"ALERTA\", \"Los Cambios se realizaran despues de hacer clic en el boton Guardar\");\t\t\t\r\n//\t\t\tmsg = new FacesMessage(FacesMessage.SEVERITY_WARN,\r\n//\t\t\tConstants.MESSAGE_ERROR_TELEFONO_CLIENTE,mensaje);\r\n//\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void exclui(long codigo)throws SQLException{\n\n\t\tString sql = \"delete from \" + TABELA + \" where codigo=?\";\n\n\t\tPreparedStatement stmt = connection.prepareStatement(sql);\n\n\t\t//setar parametros da query sql\n\t\tstmt.setLong(1, codigo);\n\n\t\tstmt.execute();\n\t\tstmt.close();\n\n\t}", "public void excluir(Filme f) {\r\n\r\n //Pegando o gerenciador de acesso ao BD\r\n EntityManager gerenciador = JPAUtil.getGerenciador();\r\n\r\n //Iniciar a transação\r\n gerenciador.getTransaction().begin();\r\n\r\n //Para excluir tem que dar o merge primeiro para \r\n //sincronizar o ator do BD com o ator que foi\r\n //selecionado na tela\r\n f = gerenciador.merge(f);\r\n\r\n //Mandar sincronizar as alterações \r\n gerenciador.remove(f);\r\n\r\n //Commit na transação\r\n gerenciador.getTransaction().commit();\r\n\r\n }", "@Override\r\n\tpublic void insertar() {\n\t\ttab_cuenta.eliminar();\r\n\t\t\r\n\t\t\r\n\t}", "public void deleteProveedor (Long id_proveedor){\n proveedorPersistence.delete(id_proveedor);\n }", "public void excluir(){\n\t\tSystem.out.println(\"\\n*** Excluindo Registro\\n\");\n\t\ttry{\n\t\t\tpacienteService.excluir(getPaciente());\n\t\t\tatualizarTela();\n\t\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\tfacesContext.addMessage(null, new FacesMessage(\"Registro Deletado com Sucesso!!\")); //Mensagem de validacao \n\t\t}catch(Exception e){\n\t\t\tSystem.err.println(\"** Erro ao deletar: \"+e.getMessage());\n\t\t\tatualizarTela();\n\t\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\tfacesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Erro ao deletar o paciente: \"+e.getMessage(), \"\")); //Mensagem de erro \n\t\t\t\n\t\t}\n\t}", "private void excluir(String text) { \n try{\n //Variaveis de sessao\n Session s = HibernateUtil.getSessionFactory().openSession();\n s.beginTransaction();\n //sql \n Query q = s.createSQLQuery(\"delete from estacionamento where placa = \"+text);\n //execulta e grava\n q.executeUpdate();\n s.getTransaction().commit();\n \n //exeção //nao conectou // erro\n }catch(HibernateException e){\n JOptionPane.showConfirmDialog(null, \"erro :\"+e );\n }\n \n \n \n \n }", "public void eliminaBD() {\r\n CBD.openConexion();\r\n //------Reune los datos de producto con id--------------//\r\n String A = CBD.getInveID(II.lblid.getText());\r\n String B[] = A.split(\",\");\r\n //------Reune los datos de producto con id--------------//\r\n //------Verifica si la cantidad es 0--------------//\r\n if (Integer.parseInt(B[5]) == 0) {\r\n //------Elimina--------------//\r\n if(CBD.deleteDBProd(\"[ID PRODUCTO]\", B[7])){\r\n JOptionPane.showMessageDialog(II, \"Producto eliminado\");\r\n }else{\r\n JOptionPane.showMessageDialog(II, \"Error producto no pudo ser eliminado\");\r\n }\r\n //------Elimina--------------//\r\n } else {\r\n JOptionPane.showMessageDialog(II, \"No puedes eliminar un producto si su existencia es mayor a 0\");\r\n }\r\n CBD.closeConexion();\r\n }", "public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro\");\n }", "public void deleteBeneficioDeuda(Map parametros);", "public void removerCarro() {\n\n if (carrosCadastrados.size() > 0) {//verifica se existem carros cadastrados\n listarCarros();\n System.out.println(\"Digite o id do carro que deseja excluir\");\n int idCarro = verifica();\n for (int i = 0; i < carrosCadastrados.size(); i++) {\n if (carrosCadastrados.get(i).getId() == idCarro) {\n if (carrosCadastrados.get(i).getEstado()) {//para verificar se o querto está sendo ocupado\n System.err.println(\"O carrp está sendo utilizado por um hospede nesse momento\");\n } else {\n carrosCadastrados.remove(i);\n System.err.println(\"cadastro removido\");\n }\n }\n\n }\n } else {\n System.err.println(\"Não existem carros cadastrados\");\n }\n }", "public static int delete(Periode p){ \n int status=0; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection(); \n //melakukan query database untuk menghapus data berdasarkan id atau primary key\n PreparedStatement ps=con.prepareStatement(\"delete from periode where id=?\"); \n ps.setInt(1,p.getId()); \n status=ps.executeUpdate(); \n }catch(Exception e){System.out.println(e);} \n\n return status; \n }", "public void anularEquiparacion() {\n\n\n try {\n\n if (!equiparacionBeanSelected.getEqp_estado().equals(\"2\")) {\n EquiparacionesDao equiparacionDAo = new EquiparacionesDao();\n equiparacionBeanSelected.setEqp_estado(\"3\");\n\n equiparacionDAo.dmlDr_regt_equiparaciones(2, equiparacionBeanSelected);\n\n MateriasSolicitudDao materiaDao = new MateriasSolicitudDao();\n\n addMessage(\"Registro anulado satisfactoriamente\", 1);\n FacesContext facesContext = FacesContext.getCurrentInstance(); \n Dr_siseg_usuarioBean usuario= new Dr_siseg_usuarioBean();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n \n BitacoraSolicitudDao bitacoraSolicitudDao=new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean=new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(equiparacionBeanSelected.getEqp_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"E\");\n bitacoraSolicitudBean.setBit_detalle(\"La Equiparacion fue Eliminada\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n \n \n listaEquiparaciones();\n }else{\n addMessage(\"Equiparacion NO puede ser Eliminada\", 1);\n }\n\n } catch (ExceptionConnection ex) {\n /* Logger.getLogger(EquivalenciaController.class\n .getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al anular el registro, contacte al administrador del sistema\", 2);\n */ }\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(cbElPuesto.getSelectedIndex()!=0) {\n\t\t\t\t\tString eliminar=((String) cbElPuesto.getSelectedItem());\n\t\t\t\t\tSystem.out.println(eliminar);\n\t\t\t\t\tdata.setQuery(\"DELETE FROM TipoPuesto WHERE puesto='\"+eliminar+\"'\");\n\t\t\t\t\tcbElPuesto.removeAllItems();\n\t\t\t\t\tcbEdPuesto.removeAllItems();\n\t\t\t\t\tcbElPuesto.addItem(\"Seleccione un hospital...\");\n\t\t\t\t\tcbEdPuesto.addItem(\"Seleccione un hospital...\");\n\t\t\t\t\tJOptionPane.showMessageDialog(btnEliminar,\"Eliminación exitosa\");\n\t\t\t\t\tregistros=(ResultSet) data.getQuery(\"Select * from TipoPuesto\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\twhile(registros.next()) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcbElPuesto.addItem(registros.getString(\"puesto\"));\n\t\t\t\t\t\t\tcbEdPuesto.addItem(registros.getString(\"puesto\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t}", "public void telefonoElimina(){\r\n \tlog.info(\"en eliminarTelefono()\");\t\r\n \tfor (int i = 0; i < TelefonoPersonaList.size(); i++) { \t\t\r\n \t\tlog.info(\"\"+TelefonoPersonaList.get(i).getItem()+\" ,idt \"+getIdt() +\" \"+TelefonoPersonaList.get(i).getTelefono());\r\n// \tlog.info(\"N1--->TelefonoPersonaList.get(i).getIdtelefonopersona()\"+\" --\" +TelefonoPersonaList.get(i).getIdtelefonopersona());\r\n\t\tif((TelefonoPersonaList.get(i).getIdtelefonopersona()== 0 || TelefonoPersonaList.get(i).getIdtelefonopersona()== null) && TelefonoPersonaList.get(i).getItem()==\"Por Agregar\"){\r\n\t\t\tlog.info(\"N2----> TelefonoPersonaList.get(i).getIdtelefonopersona()\" +\" \" +TelefonoPersonaList.get(i).getIdtelefonopersona());\r\n\t\t\tTelefonoPersonaSie teltemp = new TelefonoPersonaSie();\r\n\t\t\tteltemp.setIdtelefonopersona(idt);\r\n\t\t\tTelefonoPersonaList.remove(teltemp);\r\n\t\tfor (int j = i; j < TelefonoPersonaList.size(); j++) {\r\n\t\t\tlog.info(\" i \" +i+\" j \"+ j);\r\n\t\t\ti=i+1;\r\n\t\t\t//TelefonoPersonaList.get(j).setItem(i);\r\n\t\t\tTelefonoPersonaList.set(j, TelefonoPersonaList.get(j));\r\n\t\t}break;\r\n\t\t\t}\r\n\t\telse if(TelefonoPersonaList.get(i).getIdtelefonopersona() ==(getIdt()) && TelefonoPersonaList.get(i).getItem()==\"Agregado\"){\r\n\t\t\t\tlog.info(\"ALERTA WDFFFF\");\r\n\t\t\t\tTelefonoPersonaSie obj = new TelefonoPersonaSie(); \r\n\t\t\t\tobj.setIdtelefonopersona(idt);\r\n\t\t\t\tlog.info(\"DENTRO LISTA DESHABILITADO\");\t\t\t\t\r\n\t\t\t\tTelefonoDeshabilitado.add(obj);\r\n\t\t\r\n\t\t\t\tFaceMessage.FaceMessageError(\"ALERTA\", \"Los Cambios se realizaran despues de hacer clic en el boton Guardar\");\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t }", "int deleteByPrimaryKey(String idTipoComprobante) throws SQLException;", "@Override\r\n\tpublic void remove(int codigoLivro) throws BaseDadosException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Eliminar los datos del equipo\");\r\n\t}", "public boolean eliminar(){\n\t\tString query = \"DELETE FROM Almacen WHERE Id_Producto = \"+this.getId();\n\t\tif(updateQuery(query)){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void eliminar(String sentencia){\n try {\n Statement stmt = Conexion.getInstancia().createStatement();\n stmt.executeUpdate(sentencia);\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n }", "public void Apagar(int codigo) throws SQLException {\r\n\t\ttry {\r\n\t\t\tString delete = \"delete fornecedor where cd_fornecedor=?\";\r\n\t\t\tPreparedStatement preparedStatement = this.connection.prepareStatement(delete);\r\n\t\t\tpreparedStatement.setInt(1, codigo);\r\n\t\t\tpreparedStatement.execute();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\tthis.connection.close();\r\n\t\t}\r\n\t}", "private void excluirAction() {\r\n Integer i = daoPedido.excluir(this.pedidoVO);\r\n\r\n if (i != null && i > 0) {\r\n msg = activity.getString(R.string.SUCCESS_excluido, pedidoVO.toString());\r\n Toast.makeText(activity, msg + \"(\" + i + \")\", Toast.LENGTH_SHORT).show();\r\n Log.i(\"DB_INFO\", \"Sucesso ao Alterar: \" + this.pedidoVO.toString());\r\n\r\n// this.adapter.remove(this.pedidoVO);\r\n this.refreshData(2);\r\n } else {\r\n msg = activity.getString(R.string.ERROR_excluir, pedidoVO.toString());\r\n Toast.makeText(activity, msg, Toast.LENGTH_SHORT).show();\r\n Log.e(\"DB_INFO\", \"Erro ao Excluir: \" + this.pedidoVO.toString());\r\n }\r\n }", "public static void eliminarEstudiante(String Nro_de_ID) {\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.print(\"Conexion Establecida\");\r\n Statement sentencia = conexion.createStatement();\r\n int insert = sentencia.executeUpdate(\"delete from estudiante where Nro_de_ID = '\" + Nro_de_ID + \"'\");\r\n\r\n sentencia.close();\r\n conexion.close();\r\n } catch (Exception ex) {\r\n System.out.print(\"Error en la conexion\" + ex);\r\n }\r\n }", "@Override\n\tpublic int delete(PrestationCDI obj) throws DAOException {\n\t\treturn 0;\n\t}", "@Override\n\t\tpublic void eliminar() {\n\t\t\tutilitario.getTablaisFocus().eliminar();\n\t\t}", "public void deleteCargaConsultorasNivel1ByEtapa(String codigoPais,String codigoEtapa);", "@Override\r\n\tpublic void deleteConcursoContrataById(int id) {\n\r\n\t}", "@Override\n\tpublic boolean eliminarPorId(Integer llave) {\n\t\treturn false;\n\t}", "public void eliminar() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n clientefacadelocal.remove(userFound);\n FacesContext fc = FacesContext.getCurrentInstance();\n fc.getExternalContext().redirect(\"../index.xhtml\");\n System.out.println(\"Usuario Eliminado\");\n } else {\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n System.out.println(\"Error al eliminar el cliente \" + e);\n }\n }", "@Override\n public boolean eliminar(ModelCliente cliente) {\n strSql = \"DELETE CLIENTE WHERE ID_CLIENTE = \" + cliente.getIdCliente();\n \n \n try {\n //se abre una conexión hacia la BD\n conexion.open();\n //Se ejecuta la instrucción y retorna si la ejecución fue satisfactoria\n respuesta = conexion.executeSql(strSql);\n //Se cierra la conexión hacia la BD\n conexion.close();\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DaoCliente.class.getName()).log(Level.SEVERE, null, ex); \n return false;\n } catch(Exception ex){\n Logger.getLogger(DaoCliente.class.getName()).log(Level.SEVERE, null, ex); \n }\n return respuesta;\n }", "void excluir(List<TabelaIRRFLegadoDTO> lstTabelaIRRF) throws BancoobException;", "private void btnDeleteActionPerformed(java.awt.event.ActionEvent evt) {\n String delete = TabelSiswa.getValueAt(baris, 1).toString();\n try{\n Statement stmt = koneksi.createStatement();\n String query = \"DELETE FROM pasien WHERE nis = '\" + delete + \"'\";\n int berhasil = stmt.executeUpdate(query);\n if(berhasil == 1){\n JOptionPane.showMessageDialog(null, \"Data berhasil dihapus\");\n dtm.getDataVector().removeAllElements();\n showData();\n showStok();\n }else{\n JOptionPane.showMessageDialog(null, \"Data gagal dihapus\");\n }\n }catch(SQLException ex){\n ex.printStackTrace();\n JOptionPane.showMessageDialog(null, \"Terjadi kesalahan\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n }" ]
[ "0.6892025", "0.66842717", "0.66104037", "0.64864916", "0.6486229", "0.6483629", "0.64688885", "0.64270097", "0.641055", "0.63981605", "0.6395952", "0.6358972", "0.63546926", "0.6346585", "0.63019204", "0.6294622", "0.629078", "0.6263366", "0.6252668", "0.6245625", "0.6243576", "0.6243473", "0.6241342", "0.62397903", "0.6225941", "0.62151986", "0.6213807", "0.6204893", "0.62010735", "0.61961967", "0.6183467", "0.6175321", "0.61734", "0.6158491", "0.6146534", "0.614446", "0.6131937", "0.61138743", "0.61017257", "0.61005807", "0.6092203", "0.60906047", "0.60838616", "0.60694987", "0.6056654", "0.60541093", "0.60516804", "0.60508645", "0.604903", "0.60477173", "0.6043142", "0.6038723", "0.60348326", "0.6033393", "0.6031997", "0.60223913", "0.60190403", "0.6018806", "0.60168415", "0.6006483", "0.6001858", "0.5993607", "0.5992582", "0.59858453", "0.59845585", "0.59841365", "0.59734493", "0.595125", "0.59473085", "0.5945314", "0.59377503", "0.59364", "0.5934438", "0.59317213", "0.59301174", "0.5929832", "0.5926713", "0.59244174", "0.5914838", "0.59129065", "0.59090245", "0.59054273", "0.5904227", "0.5892613", "0.5888572", "0.5883903", "0.5882545", "0.58788556", "0.58776647", "0.5876481", "0.5874093", "0.5866065", "0.586219", "0.5861053", "0.58516973", "0.5850933", "0.5850682", "0.5846097", "0.58413506", "0.5837878", "0.58331704" ]
0.0
-1
restituisce tutti gli VideogameBean del database
public ArrayList<VideogameBean> doRetrieveAll() throws SQLException{ DatabaseConnector connector = new DatabaseConnector(); connector.startConnection(); PreparedStatement stateAll = connector.getJdbcConnection() .prepareStatement("SELECT * FROM Videogioco"); ResultSet container = stateAll.executeQuery(); ArrayList<VideogameBean> allBeans = new ArrayList<VideogameBean>(); while(container.next()==true) { int codiceVideogioco = container.getInt("codiceVideogioco"); String titolo = container.getString("titolo"); String descrizione = container.getString("descrizione"); String console = container.getString("console"); double prezzo = container.getDouble("prezzo"); int disp = container.getInt("disponibilita"); int spedizione = container.getInt("spedizione"); String imgPath = container.getString("imgPath"); VideogameBean prod = new VideogameBean(); prod.setVideogameCode(codiceVideogioco); prod.setTitle(titolo); prod.setDescription(descrizione); prod.setConsole(console); prod.setPrice(prezzo); prod.setAvailability(disp); prod.setShipment(spedizione); prod.setImgPath(imgPath); allBeans.add(prod); } if (allBeans.size()==0) { connector.closeConnection(); return null; } connector.closeConnection(); return allBeans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public libroBean() throws SQLException\r\n {\r\n variables = new VariablesConexion();\r\n variables.iniciarConexion();\r\n conexion=variables.getConexion();\r\n \r\n }", "Tablero consultarTablero();", "public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }", "private void cargarDeDB() {\n Query query = session.createQuery(\"SELECT p FROM Paquete p WHERE p.reparto is NULL\");\n data = FXCollections.observableArrayList();\n\n List<Paquete> paquetes = query.list();\n for (Paquete paquete : paquetes) {\n data.add(paquete);\n }\n\n cargarTablaConPaquetes();\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void formDatabaseTable() {\n }", "private void getDatabase(){\n\n }", "private RefereesInLeagueDBAccess() {\n\n }", "void agregarVotoPlayLIst(Voto voto) throws ExceptionDao;", "LiveStockDatabase(LiveStock liveStock){\r\n\t\tthis.liveStock = liveStock;\r\n\t}", "public void uptadeDB(){\n //mainDatabase.modifyStaff(this);\n }", "Object getDB();", "private void GetData(){\n try {\n Connection conn =(Connection)app.pegawai.Database.koneksiDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet sql = stm.executeQuery(\"select * from user\");\n data.setModel(DbUtils.resultSetToTableModel(sql));\n\n }\n catch (SQLException | HeadlessException e) {\n }\n}", "private LivreDAO getLivreDAO() {\r\n return this.livreDAO;\r\n }", "public Propiedad() {\n bdPropiedad = new DaoPropiedad();\n bdComentario = new DaoComentario();\n }", "private RepositorioOrdemServicoHBM() {\n\n\t}", "public void setDbTable(String v) {this.dbTable = v;}", "public void consultarEditorialesDAO() {\n Collection<Editorial> editoriales = em.createQuery(\"SELECT e\"\n + \" FROM Editorial e\").getResultList();\n\n //Iteramos entre autores\n for (Editorial e : editoriales) {\n\n System.out.println(e.getNombre());\n\n }\n\n }", "public EtiquetaDao() {\n //subiendola en modo Embedded\n this.sql2o = new Sql2o(\"jdbc:h2:~/demojdbc\", \"sa\", \"\");\n createTable();\n //cargaDemo();\n }", "public Index() {\n EntityManager emgr = new BeanBase().getEntityManager();\n this.listaUltimasEntradas = new BeanBaseJWiki().getUltimosCincoArticulosSmall();\n this.listaExistenciasFallidas = emgr.createQuery(\"SELECT e FROM Existencia e WHERE e.idestado.idestado=2\").getResultList();\n this.listaExistenciasMantenimiento = emgr.createQuery(\"SELECT e FROM Existencia e WHERE e.idestado.idestado=3\").getResultList();\n this.listaEquiposFallidos = emgr.createQuery(\"SELECT e FROM Equiposimple e WHERE e.idestado.idestado=2\").getResultList();\n this.listaEquiposMantenimiento = emgr.createQuery(\"SELECT e FROM Equiposimple e WHERE e.idestado.idestado=3\").getResultList();\n\n Calendar cal = Calendar.getInstance(); \n this.listaReservasHoy = new BeanBaseJCanon().getReservasMismoDia(cal.get(Calendar.DAY_OF_MONTH), cal.get(Calendar.MONTH) + 1, cal.get(Calendar.YEAR));\n\n }", "private void connectDatabase(){\n }", "private static void VeureVendes (BaseDades bd) {\n ArrayList <Venda> llista = new ArrayList <Venda>();\n llista = bd.consultaVen(\"SELECT * FROM VENDES\");\n if (llista != null)\n for (int i = 0; i<llista.size(); i++) {\n Venda p = (Venda) llista.get(i);\n Producte prod = bd.consultarUnProducte(p.getIdproducte());\n System.out.println(\"ID Venda =>\"+p.getNumvenda()+\"* Producte: \"\n +prod.getDescripcio()+\"* Quantitat: \"+p.getQuantitat()\n +\"* Data: \"+p.getDatavenda());\n }\n }", "public void llenarTabla(){\n pedidoMatDao.llenarTabla();\n }", "private void updateDB() {\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n nomeUtilizador.setText(f.getNome());\n factory = Persistence.createEntityManagerFactory(Persistence_UNIT_NAME);\n EntityManager em = factory.createEntityManager();\n Query q = em.createNamedQuery(\"Funcionario.findByIdfuncionario\");\n q.setParameter(\"idfuncionario\", a.getIdfuncionario());\n \n Funcionario admin = new Funcionario();\n admin = (Funcionario) q.getSingleResult();\n \n BigDecimal id = ((Funcionario) admin).getIdfuncionario();\n String nome = ((Funcionario) admin).getNome();\n password = ((Funcionario) admin).getPassword();\n String morada = ((Funcionario) admin).getRua();\n String email = ((Funcionario) admin).getEmail();\n BigInteger ncc = ((Funcionario) admin).getNcc();\n BigInteger nif = ((Funcionario) admin).getNif();\n String data = ((Funcionario) admin).getDataNascimento();\n BigInteger telemovel = ((Funcionario) admin).getTelemovel();\n \n \n adminNome.setText(nome);\n //adminPassword.setText(password);\n adminMorada.setText(morada);\n adminEmail.setText(email);\n adminNcc.setText(ncc.toString() );\n adminNif.setText(nif.toString());\n adminData.setValue(LocalDate.parse(data));\n adminTelemovel.setText(telemovel.toString());\n }", "List<Videogioco> findAllVideogioco();", "@Override\n public List<Paciente> listar(){\n EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"vesaliusPU\"); \n EntityManager em = factory.createEntityManager();\n List<Paciente> listaPaciente = em.createQuery(\"SELECT pac FROM Paciente pac\").getResultList(); \n em.close();\n factory.close();\n return (listaPaciente);\n }", "@Override\r\n public VehiculoModel consultarVehiculo(String placa) {\n Connection conn = null;\r\n VehiculoModel vehiculo = null; //defino un objeto de vehiculo como nulo\r\n try{\r\n conn = Conexion.getConnection();\r\n String sql = \"Select * from vehiculo where vehPlaca=?\";\r\n PreparedStatement statement = conn.prepareStatement(sql); //se prepara para la query\r\n statement.setString(1, placa);\r\n ResultSet result = statement.executeQuery(sql);\r\n while(result.next()){\r\n vehiculo = new VehiculoModel(result.getString(1), result.getString(2), result.getString(3), \r\n result.getInt(4), result.getInt(5), result.getString(6), result.getInt(7));\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Codigo : \" + ex.getErrorCode() + \"\\nError: \" + ex.getMessage());\r\n }\r\n \r\n return vehiculo;\r\n }", "public BOEmpresa() {\r\n\t\tdaoEmpresa = new DAOEmpresaJPA();\r\n\t}", "public PonenciaBean() {\r\n controlador= new PonenciaAutorJpaController(JPAUtil.getEntityManagerFactory());\r\n controladorPonencia= new PonenciaJpaController(JPAUtil.getEntityManagerFactory());\r\n controladorEvento= new EventoJpaController(JPAUtil.getEntityManagerFactory());\r\n controladorTrabajoInvestigacion= new TrabajoInvestigacionJpaController(JPAUtil.getEntityManagerFactory());\r\n \r\n ponenciaModificar= new Ponencia(0, \"\", new Date());\r\n ponenciaAgregar= new Ponencia(0, \"\", new Date());\r\n ponencias= new ArrayList<>();\r\n eventos= new ArrayList<>();\r\n trabajos= new ArrayList<>();\r\n String temp = ((HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest()).getParameter(\"identificacion\");\r\n identificacionInvestigador=Integer.parseInt(temp);\r\n \r\n eventos= controladorEvento.findEventoEntities();\r\n trabajos=controladorTrabajoInvestigacion.findTrabajoInvestigacionEntities();\r\n List<PonenciaAutor> listaPonenciaAutor = controlador.findPonenciaAutorEntities();\r\n for(PonenciaAutor pa: listaPonenciaAutor){\r\n if(pa.getInvestigadorIdentificacion().getIdentificacion()== identificacionInvestigador){\r\n ponencias.add(pa.getPonenciaId());\r\n }\r\n }\r\n }", "@RequestMapping(value=\"/pokemon\", method =RequestMethod.GET)\n\tpublic boolean initDataBase() {//Inicializacion de la BD. Solo llamado una vez al iniciar la aplicacion\n\t\tboolean done = false;\n\t\thandler = new MongoDBQueries();//Inicializacion del objeto\n\t\thandler.initialize();//Inicializacion de la BD y la coleccion\n\t\thandler.getFile();//Lectura del fichero JSON e introduccion en la coleccion\n\t\tdone = true;\n\t\treturn done;\n\t}", "private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n newProspects = ejbFacade.findAllNew();\n \n FacesContext fc = FacesContext.getCurrentInstance();\n\tgetIdParam(fc);\n \n }", "public CadastroCarroView() {\n initComponents();\n ReadTable();\n MarcaVeiculoDao marca = new MarcaVeiculoDao();\n ModeloVeiculoDao modelo = new ModeloVeiculoDao();\n StatusDao status = new StatusDao();\n //Função abaixo Carrega o jCombox Marca.\n for(MarcaVeiculoBeans marcab : marca.ReadMarca()){\n \n jComboMarca.addItem(marcab);\n \n \n }\n //Função abaixo carrega o jCombox Modelos.\n for(ModeloVeiculoBeans modelob : modelo.Read()){\n jComboModelo.addItem(modelob);\n }\n \n for(StatusBeans sts : status.ReadStatus() ){\n jComboStatusID.addItem(sts);\n }\n }", "Videogioco findVideogiocoById(int id);", "void setDataFromDBContent() {\n\n }", "public void ustaw(){\n\t driver.initialize(this);\n\t driver.edit(new DodajSerwisDTO());\n\t }", "public interface EscalaDAO {\r\n\r\n /**\r\n * Select numero manifiesto aeat.\r\n *\r\n * @param srvcId\r\n * the srvc id\r\n * @return the string\r\n */\r\n String selectNumeroManifiestoAeat(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del estado de una escala a partir del estado de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateRecalcularEstado(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del codigo de exencion de una escala a partir del codigo de exencion de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateExencion(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de estancia de una escala a partir del tipo de estancia de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateEstancia(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de navegacion de entrada de una escala a partir del puerto anterior.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateNavegacionEntrada(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de navegacion de salida de una escala a partir del puerto siguiente.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateNavegacionSalida(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de IVA de una escala a partir de datos de la escala.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateTipoIva(final Long srvcId);\r\n\r\n /**\r\n * Modificacion de las fechas de inicio/fin de una escala a partir las fechas de inicio/fin de sus\r\n * atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateRecalcularFechas(final Long srvcId);\r\n}", "@Override\n public Collection<FasciaOrariaBean> doRetrieveAll() throws SQLException {\n Connection con = null;\n PreparedStatement statement = null;\n String sql = \"SELECT * FROM fasciaoraria\";\n ArrayList<FasciaOrariaBean> collection = new ArrayList<>();\n try {\n con = DriverManagerConnectionPool.getConnection();\n statement = con.prepareStatement(sql);\n System.out.println(\"DoRetriveAll\" + statement);\n ResultSet rs = statement.executeQuery();\n while (rs.next()) {\n FasciaOrariaBean bean = new FasciaOrariaBean();\n bean.setId(rs.getInt(\"id\"));\n bean.setFascia(rs.getString(\"fascia\"));\n collection.add(bean);\n }\n return collection;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n\n try {\n\n statement.close();\n DriverManagerConnectionPool.releaseConnection(con);\n\n } catch (SQLException e) {\n\n e.printStackTrace();\n }\n }\n return collection;\n }", "public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }", "public ListaReservasBean() {\r\n\t\tthis.listaReservas = new ArrayList<ReservaDAO>();\r\n\t}", "public OnibusDAO() {}", "@Override\n\tpublic void initDemoDB() {\n\t}", "public interface FakturaTekstVDAO extends DAO<FakturaTekstV> {\r\n\t/**\r\n\t * Finner tekster tilhørende faktura\r\n\t * \r\n\t * @param fakturaId\r\n\t * @return tekster\r\n\t */\r\n\tList<FakturaTekstV> findByFakturaId(Integer fakturaId);\r\n}", "public ConsultarPersona() {\n \n initComponents();\n try{\n provincias = (ProvinciasFacadeRemote) servidor.lookup(ProvinciasFacadeRemote.class.getName());\n }catch(NamingException ex) {\n JOptionPane.showMessageDialog(rootPane, \"No se ha podido cargar el Bean - \"+ ex.getMessage() , \"ERROR\", 2);\n this.dispose();\n }\n try{\n localidades = (LocalidadesFacadeRemote) servidor.lookup(LocalidadesFacadeRemote.class.getName());\n }catch(NamingException ex) {\n JOptionPane.showMessageDialog(rootPane, \"No se ha podido cargar el Bean - \"+ ex.getMessage() , \"ERROR\", 2);\n this.dispose();\n }\n try{\n personas = (PersonasFacadeRemote) servidor.lookup(PersonasFacadeRemote.class.getName());\n }catch(NamingException ex) {\n JOptionPane.showMessageDialog(rootPane, \"No se ha podido cargar el Bean - \"+ ex.getMessage() , \"ERROR\", 2);\n this.dispose();\n }\n this.setAlwaysOnTop(true);\n }", "private void ini_SelectDB()\r\n\t{\r\n\r\n\t}", "public EditorialBean() {\r\n editorialDAOImp = new EditorialDAOImp();\r\n editorial = new Editorial();\r\n }", "private DatabaseCustomAccess(Context context) {\n\t\thelper = new SpokaneValleyDatabaseHelper(context);\n\n\t\tsaveInitialPoolLocation(); // save initial pools into database\n\t\tsaveInitialTotalScore(); // create total score in database\n\t\tsaveInitialGameLocation(); // create game location for GPS checking\n\t\tLoadingDatabaseTotalScore();\n\t\tLoadingDatabaseScores();\n\t\tLoadingDatabaseGameLocation();\n\t}", "@Override\r\npublic List<Map<String, Object>> readAll() {\n\treturn detalle_pedidoDao.realAll();\r\n}", "public List<Joueur> List_Joueur_HommesForComboBox() \r\n {\r\n List<Joueur> j = new ArrayList<>();\r\n String req= \"SELECT * FROM personne WHERE datedestruction is NULL and role = 'Joueur' and sexe='Homme' \";\r\n try {\r\n ResultSet res = ste.executeQuery(req);\r\n while (res.next()) {\r\n \r\n Joueur Jou = new Joueur(\r\n res.getInt(\"idpersonne\"),\r\n \r\n res.getString(\"nom\"),\r\n res.getString(\"prenom\")\r\n );\r\n j.add(Jou);\r\n \r\n System.out.println(\"------- joueurs selectionné avec succés----\");\r\n \r\n }\r\n \r\n } catch (SQLException ex) {\r\n System.out.println(\"----------Erreur lors methode : List_Joueur_Hommes()------\");\r\n }\r\n return j;\r\n \r\n}", "public Repository (Application application, Activity activity){\n VideoDatabase database=VideoDatabase.getInstance(application);\n myDAO=database.myDAO();\n allChapters=myDAO.getAllChapter();\n allLecture=myDAO.getAllLecture();\n this.activity=activity;\n //allChapterJson=myDAO.getAllChapterJson();\n //allLectureJson=myDAO.getAllLectureJson();\n }", "@ActionKey(\"db\")\n\tpublic void testDB() {\n\t\tUser user = User.dao.findById(1, \"qword_id\");\n\t\trenderText(\"data in database:\" + user.getStr(\"qword_id\"));\n\t\t\n\t}", "@Override\n public void showDiaryFromDB() {\n diaryPresenter.showDiaryFromDB();\n }", "@Dao\npublic interface FParamDiskonItemVendorDao {\n /**\n * @param fParamDiskonItemVendor\n * Harus Menggunakan\n * .allowMainThreadQueries() pada Configurasi database utama agar tidak perlu menggunakan AsynT\n */\n @Insert\n void insert(FParamDiskonItemVendor fParamDiskonItemVendor);\n @Update\n void update(FParamDiskonItemVendor fParamDiskonItemVendor);\n @Delete\n void delete(FParamDiskonItemVendor fParamDiskonItemVendor);\n\n\n @Query(\"DELETE FROM fParamDiskonItemVendor\")\n void deleteAllFParamDiskonItemVendor();\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor \")\n LiveData<List<FParamDiskonItemVendor>> getAllFParamDiskonItemVendorLive();\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor \")\n List<FParamDiskonItemVendor> getAllFParamDiskonItemVendor();\n\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor WHERE id = :id \")\n List<FParamDiskonItemVendor> getAllById(int id);\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor WHERE fdivisionBean = :id \")\n List<FParamDiskonItemVendor> getAllByDivision(int id);\n\n}", "public Produto consultarProduto(Produto produto) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n Produto cerveja = null;\r\n String sql = \"SELECT TBL_CERVEJARIA.ID_CERVEJARIA, TBL_CERVEJARIA.CERVEJARIA, TBL_CERVEJARIA.PAIS, \"\r\n + \"TBL_CERVEJA.ID_CERVEJA, TBL_CERVEJA.ID_CERVEJARIA AS \\\"FK_CERVEJARIA\\\", \"\r\n + \"TBL_CERVEJA.ROTULO, TBL_CERVEJA.PRECO, TBL_CERVEJA.VOLUME, TBL_CERVEJA.TEOR, TBL_CERVEJA.COR, TBL_CERVEJA.TEMPERATURA, \"\r\n + \"TBL_CERVEJA.FAMILIA_E_ESTILO, TBL_CERVEJA.DESCRICAO, TBL_CERVEJA.SABOR, TBL_CERVEJA.IMAGEM_1, TBL_CERVEJA.IMAGEM_2, TBL_CERVEJA.IMAGEM_3 \"\r\n + \"FROM TBL_CERVEJARIA \"\r\n + \"INNER JOIN TBL_CERVEJA \"\r\n + \"ON TBL_CERVEJARIA.ID_CERVEJARIA = TBL_CERVEJA.ID_CERVEJARIA \"\r\n + \"WHERE ID_CERVEJA = ?\";\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, produto.getIdCerveja());\r\n rs = stmt.executeQuery();\r\n if (rs.next()) {\r\n cerveja = new Produto();\r\n cerveja.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n cerveja.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n cerveja.setPais(rs.getString(\"PAIS\"));\r\n cerveja.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n cerveja.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n cerveja.setRotulo(rs.getString(\"ROTULO\"));\r\n cerveja.setPreco(rs.getString(\"PRECO\"));\r\n cerveja.setVolume(rs.getString(\"VOLUME\"));\r\n cerveja.setTeor(rs.getString(\"TEOR\"));\r\n cerveja.setCor(rs.getString(\"COR\"));\r\n cerveja.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n cerveja.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n cerveja.setDescricao(rs.getString(\"DESCRICAO\"));\r\n cerveja.setSabor(rs.getString(\"SABOR\"));\r\n cerveja.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n cerveja.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n cerveja.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n } else {\r\n return cerveja;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return cerveja;\r\n }", "public static void main(String[] args) {\n String url = \"jdbc:mysql://obiwan2.univ-brest.fr/zfm1-zparlanme\";\r\n String user = \"zparlanme\";\r\n String password = \"y4alfp4y\";\r\n\r\n Livre livre = new Livre();\r\n livre.setTitre(\"Salammbô\");\r\n livre.setAuteur(\"Flaubert\");\r\n livre.setAnnee(1862);\r\n\r\n try {\r\n Connection co = (Connection) DriverManager.getConnection(url, user, password);\r\n\r\n Statement st = (Statement) co.createStatement();\r\n\r\n // st.executeUpdate(\r\n // \"insert into t_livre (titre, auteur, annee) values ('Salammbô', 'Flaubert',\r\n // 1862)\");\r\n\r\n // V2\r\n st.executeUpdate(\"insert into t_livre (titre, auteur, annee) values ('\" + livre.getTitre()\r\n + \"', '\" + livre.getAuteur() + \"', \" + livre.getAnnee() + \")\");\r\n\r\n st.close();\r\n co.close();\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }", "public interface ReWelfareDAO {\n int deleteByPrimaryKey(Long welfareId);\n\n void insert(ReWelfare record);\n\n void insertSelective(ReWelfare record);\n\n void insertBatch(List<ReWelfare> records);\n\n ReWelfare selectByPrimaryKey(Long welfareId);\n\n int updateByPrimaryKeySelective(ReWelfare record);\n\n int updateByPrimaryKey(ReWelfare record);\n\n /**\n * 精选列表\n * @param platform\n * @return\n */\n List<ReWelfare> selectSelectionListByPlatform(int platform);\n\n /**\n * 福利\n *\n * @param platform\n * @param welfareId\n * @param welfareType\n * @return\n */\n List<ReWelfare> selectListByPlatform(int platform, Long welfareId, Integer welfareType);\n\n /**\n * 从mysql中获取福利id列表\n * @param platform 平台\n * @param welfareType 类型\n * @return\n */\n List<Long> selectWelfareIdListOrderByUpdateTimeDesc(int platform,Integer welfareType);\n}", "public interface ProgramaTVDAO {\n\t/**\n\t * Crea una nueva monitorización\n\t * @param titulo Título del programa\n\t * @param episodeCode Código del Episodio (ej. T01E03)\n\t * @param fechaInicio Fecha y hora de Inicio\n\t * @param fechaFin Fecha y hora de Fin\n\t * @param hashtag Hashtag que se monitorizará\n\t * @return Objeto ProgramaTV\n\t */\n\tpublic ProgramaTV crearMonitorizacion(String titulo, String episodeCode, Date fechaInicio, Date fechaFin, String hashtag);\n\n\t/**\n\t * Monitorización por clave primaria\n\t * @param primaryKey Clave primaria\n\t * @return Objeto ProgramaTV\n\t */\n\tpublic ProgramaTV programaPorId(Long primaryKey);\n\t\n\t/**\n\t * Todas las monitorizaciones que llevan el mismo hashtag\n\t * @param hashtag Hashtag\n\t * @return Lista de objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> ProgramasPorHashtag(String hashtag);\n\t\n\t/**\n\t * Lista de monitorizaciones del mismo programa\n\t * @param titulo Título del programa\n\t * @return Lista de objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> programasPorTitulo(String titulo);\n\t\n\t /**\n\t * Todas las monitorizaciones\n\t * @return Lists de todos los objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> todosLosProgramas();\n\t\n\t/**\n\t * Top 5 programas más vistos\n\t * @return Array ordenado de los 5 programas más vistos\n\t */\n\tpublic ProgramaTV[] programasTop5();\n\n\t/**\n\t * Actualiza monitorizacion\n\t * @param prog Objeto ProgramaTV\n\t */\n\tpublic void updateProgramaTV(ProgramaTV prog);\n\n\n\t/**\n\t * Borra una monitorización\n\t * @param prog Clave primaria de la monitorización\n\t */\n\tpublic void deleteProgramaTV(Long prog);\n\t\n\t/**\n\t * Borra todos los programas\n\t */\n\tpublic void deleteAll();\n\t\n\n\t\n\n\t}", "public void index() {\n\t\t\n\t\tList<Filme> preferencias = new ArrayList<Filme>();\n\t\tfor( Map.Entry<Key, Integer> entry : session.getUsuario().getPreferencias().entrySet()){\n\t\t\tFilme tmp = filmeDao.getById(entry.getKey());\n\t\t\ttmp.setVotos(entry.getValue());\n\t\t\tpreferencias.add(tmp);\n\t\t}\n\t\t\n\t\t// passando todos os filmes, o usuário e as preferencias dele\n\t\tresult.include(\"filmes\", filmeDao.getAllInOrder() );\n\t\tresult.include(\"usuario\", session.getUsuario() );\n\t\tresult.include(\"preferencias\", preferencias);\n\t}", "@Override\r\n\tprotected void initVentajas() {\n\r\n\t}", "public interface VedioDao {\n void addVedio(Vedio vedio);\n\n void deleteVedio(Vedio news);\n\n int findCountVedioByCondition(int typeId, String vedioKey);\n\n List<Vedio> findVedioByCondition(int begin, int pageCount, int typeId, String vedioKey);\n\n void deleteMoreVedio(String[] checkVedioIDs);\n \n Vedio find(int vedio_id);\n}", "public vistaAlojamientos() {\n initComponents();\n \n try {\n miConn = new Conexion(\"jdbc:mysql://localhost/turismo\", \"root\", \"\");\n ad = new alojamientoData(miConn);\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(vistaAlojamientos.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "public Aplicacion() {\n initComponents();\n try{\n basedatos = new ConexionAtlas(\n new MongoClientURI(\"mongodb+srv://jaimeAdmin:[email protected]/Ejemplo1?retryWrites=true&w=majority\")\n ).getDatabase(\"Ejemplo1\");\n coleccion = basedatos.getCollection(\"persona\");\n \n tablin.addColumn(\"ID\");\n tablin.addColumn(\"Nombre\");\n tablin.addColumn(\"Domicilio\");\n tablin.addColumn(\"Edad\");\n tablin.addColumn(\"Sueldo\");\n \n jTable1.setModel(tablin);\n cargarDatos();\n jButton4.setEnabled(false);\n }catch(Exception e){\n mensaje(e.getMessage());\n } \n }", "private void ucitajDrajver()throws Exception{\r\n db.loadDriver();\r\n }", "public static void main(String[] args) throws SQLException {\n\t\n\t\tDocumentDAO y = new DocumentDAO();\n\tObservableList<Document> listeDoc= (new DocumentDAO()).findall();\n\tSystem.out.println(listeDoc.get(0));\n\t\t\n\t\t//VisiteurDAO v = new VisiteurDAO();\n\t//<Visiteur> idVisiteur = v.findById(\"a131\");\n\t\t\n\t\n\t\n\t}", "public interface IProvinciaDAO {\r\n\r\n\tpublic abstract Provincia findById(Integer id);\r\n\r\n\tpublic abstract Provincia save(Provincia p);\r\n\r\n\tpublic abstract List<Provincia> findByName(String name);\r\n\r\n}", "public interface VitaeService {\n boolean addVitae(Vitae vitae);\n boolean deleteVitae(Vitae vitae);\n boolean updateVitae(Vitae vitae);\n List<Vitae> getByUidVitae(Vitae vitae);\n Vitae getByIdVC(Vitae vitae);\n List<Vitae> getPage(Map<String,Object> data);\n}", "public String elegirBloque() throws SQLException {\n\t\tCRUD crud = new CRUD();\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\tBloque bloque = context.getApplication().evaluateExpressionGet(context, \"#{bloque}\", Bloque.class);\n\t\tActividad actividad = new Actividad();\n\t\tactividad.setNombresA(crud.select_Bloque_actividad(bloque.getTematica()));\n\t\tSystem.out.println(\"look: \"+bloque.getTematica()+\" \"+actividad.getNombresA().get(0));\n\t\t\n\t\t// put the user object into the POST request \n\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"actividad\", actividad);\n\t\t\n\t\treturn\"elegirActividad.xhtml?faces-redirect=false\";\n\t}", "@WebMethod\t\r\n\t public void initializeBD(){\r\n\t\tDataAccess dBManager=new DataAccess();\r\n\t\tdBManager.initializeDB();\r\n\t\tdBManager.close();\r\n\t}", "private void buscarProducto() {\n EntityManagerFactory emf= Persistence.createEntityManagerFactory(\"pintureriaPU\");\n List<Almacen> listaproducto= new FacadeAlmacen().buscarxnombre(jTextField1.getText().toUpperCase());\n DefaultTableModel modeloTabla=new DefaultTableModel();\n modeloTabla.addColumn(\"Id\");\n modeloTabla.addColumn(\"Producto\");\n modeloTabla.addColumn(\"Proveedor\");\n modeloTabla.addColumn(\"Precio\");\n modeloTabla.addColumn(\"Unidades Disponibles\");\n modeloTabla.addColumn(\"Localizacion\");\n \n \n for(int i=0; i<listaproducto.size(); i++){\n Vector vector=new Vector();\n vector.add(listaproducto.get(i).getId());\n vector.add(listaproducto.get(i).getProducto().getDescripcion());\n vector.add(listaproducto.get(i).getProducto().getProveedor().getNombre());\n vector.add(listaproducto.get(i).getProducto().getPrecio().getPrecio_contado());\n vector.add(listaproducto.get(i).getCantidad());\n vector.add(listaproducto.get(i).getLocalizacion());\n modeloTabla.addRow(vector);\n }\n jTable1.setModel(modeloTabla);\n }", "@PostConstruct\n public void loadData()\n {\n try \n {\n usu = new RhUsuario();\n \n rol = new RhRol();\n \n uc = new UsuController();\n \n usuList = uc.findAll(usu);\n \n encrypter = new Encryption();\n } \n catch (Exception ex) \n {\n Logger.getLogger(UsuarioManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public interface TProvinciasDAO {\n\t\n\tpublic ArrayList<TProvinciasBean> obtenerProvincias(String codigoDepartamento) throws DataAccessException;\n\t\n}", "public DanielPatricio() throws SQLException {\n initComponents();\n //limpiar();\n recargarDropDownCarros();\n recargarTextArea();\n recargarDataTable();\n \n \n }", "public abstract void loadFromDatabase();", "@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();", "public CrudRolUsuario(Context context){\n db = Conexion.obtenerBaseDatosLectura(context , null );\n }", "@PostConstruct\n public void init() {\n entradas = entradaFacadeLocal.findAll();\n salidas = salidaFacadeLocal.findAll();\n inventarios = inventarioFacadeLocal.leerTodos();\n }", "Turno consultarTurno();", "private void loadDataFromDatabase() {\n mSwipeRefreshLayout.setRefreshing(true);\n mPresenter.loadDataFromDatabase();\n }", "public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }", "@Override\n public void onDbStarted() {\n }", "private List<MusicVideo> selectAllMusicVideosFromDB(){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query<MusicVideo> query = session.createQuery(\"FROM MusicVideo mv JOIN FETCH mv.artiste JOIN FETCH mv.genre\", MusicVideo.class) ;\n List<MusicVideo> listOfMusicVideos = query.getResultList() ;\n session.close() ;\n return listOfMusicVideos ;\n }", "@PostConstruct\n\tpublic void init() {\n\t\t/*\n\t\t * Esta parte se usó para añadir alumnos, senseis y cursos de prueba cuando la\n\t\t * base de datos usaba create-drop, ahora que los datos son persitentes no es\n\t\t * necesario, dejo aqui esta parte del código por si os fueran de utilidad para\n\t\t * realizar algunas pruebas durante las correcciones.\n\t\t * \n\t\t * Alumno a = new Alumno(\"Jorge\", \"Garrido\", \"Rodríguez\", \"[email protected]\",\n\t\t * \"20072517A\", \"651666999\", LocalDate.of(1997, 04, 02), \"Cádiz\", 11550,\n\t\t * \"Chipiona\", \"Avd/Almería 74\", \"\", \"Marrón-Negro\", LocalDate.now(), \"Si\",\n\t\t * \"Alergia estacional\"); Alumno b = new Alumno(\"Sara\", \"Clarke\", \"Swuch\",\n\t\t * \"[email protected]\", \"00055521J\", \"000555444\", LocalDate.of(1999, 05, 19),\n\t\t * \"Cádiz\", 12550, \"Jerez\", \"Calle fino\", \"\", \"Azul\", LocalDate.now(), \"Si\",\n\t\t * \"\"); Alumno c = new Alumno(\"Antonio\", \"Peinado\", \"Rodríguez\",\n\t\t * \"[email protected]\", \"01247857H\", \"651666999\", LocalDate.of(1998, 05, 19),\n\t\t * \"Cádiz\", 11550, \"Chipiona\", \"calle girasol,20\", \"\", \"Blanco\",\n\t\t * LocalDate.now(), \"No\", \"Asma\"); Alumno d = new Alumno(\"Marina\", \"Figueroa\",\n\t\t * \"Flores\", \"[email protected]\", \"57489624G\", \"651666999\", LocalDate.of(1994,\n\t\t * 05, 19), \"Cádiz\", 11550, \"Chipiona\", \"AVD/Rosaleda sn\", \"\", \"Marrón\",\n\t\t * LocalDate.now(), \"No\", \"\"); Alumno e = new Alumno(\"Daniel\", \"Villanueva\",\n\t\t * \"Garcia\", \"[email protected]\", \"3333333E\", \"651666999\", LocalDate.of(1988,\n\t\t * 05, 19), \"Cádiz\", 11550, \"Chipiona\", \"Avd/Miguel Cervantes, 52\", \"\", \"Negro\",\n\t\t * LocalDate.now(), \"Si\", \"\"); Alumno f = new Alumno(\"Lorena\", \"Cespedes\",\n\t\t * \"Roman\", \"[email protected]\", \"2222222D\", \"651666999\", LocalDate.of(1989,\n\t\t * 05, 19), \"Cádiz\", 11550, \"Chipiona\", \"Avd/Andalucía,15\", \"\", \"Amarillo\",\n\t\t * LocalDate.now(), \"Si\", \"\"); Alumno g = new Alumno(\"Sergio\", \"Arques\",\n\t\t * \"Tubio\", \"[email protected]\", \"1111111C\", \"651666999\", LocalDate.of(1996,\n\t\t * 05, 19), \"Cádiz\", 11550, \"Chipiona\", \"calle/ Castaño, 10\", \"\", \"Verde\",\n\t\t * LocalDate.now(), \"No\", \"\"); Alumno h = new Alumno(\"Elon\", \"Musk\", \"Ramirez\",\n\t\t * \"[email protected]\", \"0000000B\", \"651666999\", LocalDate.of(2004, 05, 19),\n\t\t * \"Cádiz\", 11550, \"Chipiona\", \"Avd/Neptuno, 7\", \"\", \"Blanco-Amarillo\",\n\t\t * LocalDate.now(), \"No\", \"\");\n\t\t * \n\t\t * alumnoServicio.save(a); alumnoServicio.save(b); alumnoServicio.save(c);\n\t\t * alumnoServicio.save(d); alumnoServicio.save(e); alumnoServicio.save(f);\n\t\t * alumnoServicio.save(g); alumnoServicio.save(h);\n\t\t * \n\t\t * Curso nuevoA = new Curso(2021, \"Juveniles\", 25.00); Curso nuevoB = new\n\t\t * Curso(2021, \"Alevines\", 25.00); Curso nuevoC = new Curso(2021, \"Adultos\",\n\t\t * 30.00);\n\t\t * \n\t\t * cursoServicio.save(nuevoA); cursoServicio.save(nuevoB);\n\t\t * cursoServicio.save(nuevoC);\n\t\t * \n\t\t * Sensei sa = new Sensei(\"Jose María\", null, null, null, null, null, null,\n\t\t * null, 0, null, null, null, \"Negro 1 DAN\", 1150.00); Sensei sb = new\n\t\t * Sensei(\"Ramón\", null, null, null, null, null, null, null, 0, null, null,\n\t\t * null, \"Negro 5 DAN\", 1150.00); Sensei sc = new Sensei(\"Abraham\", null, null,\n\t\t * null, null, null, null, null, 0, null, null, null, \"Negro 3 DAN\", 1150.00);\n\t\t * \n\t\t * senseiServicio.save(sa); senseiServicio.save(sb); senseiServicio.save(sc);\n\t\t * \n\t\t * sa.addCurso(nuevoA); cursoServicio.edit(nuevoA);\n\t\t * \n\t\t * sb.addCurso(nuevoB); cursoServicio.edit(nuevoB);\n\t\t * \n\t\t * sc.addCurso(nuevoC); cursoServicio.edit(nuevoC);\n\t\t * \n\t\t * nuevoC.addAlumno(a); alumnoServicio.edit(a);\n\t\t * \n\t\t * nuevoA.addAlumno(b); alumnoServicio.edit(b);\n\t\t * \n\t\t * nuevoB.addAlumno(c); alumnoServicio.edit(c);\n\t\t * \n\t\t * nuevoC.addAlumno(d); alumnoServicio.edit(d);\n\t\t * \n\t\t * nuevoC.addAlumno(e); alumnoServicio.edit(e);\n\t\t * \n\t\t * nuevoA.addAlumno(f); alumnoServicio.edit(f); nuevoA.addAlumno(g);\n\t\t * alumnoServicio.edit(g);\n\t\t * \n\t\t * nuevoA.addAlumno(h); alumnoServicio.edit(h);\n\t\t */\n\t}", "@Query(\"Select * from Asignatura\")\n LiveData<List<Asignatura>> obtenerAsignaturas();", "@Test\n public void getViajeroTest() {\n ViajeroEntity entity = data.get(0);\n ViajeroEntity newEntity = vp.find(entity.getId());\n Assert.assertNotNull(newEntity);\n Assert.assertEquals(entity.getId(), newEntity.getId());\n }", "public void livrosLidos(Livro livro){\n\n Boolean enviar = true;\n\n LivroLido livrol = new LivroLido();\n\n //setando o valor do id livro lid\n livrol.setIdLivro(livro.getId());\n\n //saber se o livro já foi enviado\n if(myBooksDb.daoLivrosLidos().idLivros(livro.getId()) == livro.getId()){\n enviar = false;\n Toast.makeText(getContext(),\"O livro já se encontra em livros lidos\", Toast.LENGTH_SHORT).show();\n }\n //verificar se o livro esta em outra tela\n else if(myBooksDb.daoLivroLer().idLivros(livro.getId()) == livro.getId()){\n enviar = false;\n tranferirLidos(livro.getId(),livrol);\n }\n\n if(enviar == true){\n myBooksDb.daoLivrosLidos().inserir(livrol);\n }\n\n }", "public AbysswalkerGame(DataBase db) { this.db = db; }", "public ReservaBean() {\r\n nrohabitacion=1;\r\n createLista(nrohabitacion);\r\n editable=true;\r\n sino=\"\";\r\n \r\n reserva = new TReserva();\r\n }", "public FieldMarshal() {\n \n _emf = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory(\"FieldMarshalMySqlPU\");\n tournamentJpaController = new TournamentJpaController(_emf);\n tournamentManager = new TournamentManager( tournamentJpaController ); \n //playerManager = new PlayerManager( _emf );\n initComponents();\n \n //loadTournamentView.setEntityManager(_em);\n loadView.setManager(tournamentManager);\n //loadView.addPropertyChangeListener(tournamentManager);\n //loadView.updateList();\n \n ///tournamentManager.addObserver(tournamentView);\n ///tournamentManager.addObserver(playersView); \n \n tournamentView.setManager(tournamentManager);\n //playersView.setManager(tournamentManager);\n \n \n //tournamentView.updateView();\n //playersView.updateView();\n playersView.setManager(tournamentManager);\n }", "public Principal() {\n initComponents();\n\n System.out.println(\"lista de hoteles disponibles\");\n List<Document> hoteles = db.getAllDocuments(\"hoteles\");\n for (Document hotel : hoteles) {\n this.hoteles.add(hotel.getString(\"nombre\"));\n System.out.println(hotel.getString(\"nombre\"));\n }\n \n List<Document> ciudades = db.getAllDocuments(\"ciudades\");\n for (Document ciudad : ciudades) {\n this.ciudades_destino.add(ciudad.getString(\"nombre\"));\n }\n \n }", "public interface DAOAvaliadorInterface extends DAOGenericoInterface{\n \n /**\n * Método para listar os avaliadores cadastrados no sistema.\n * @return \n */\n public List<AvaliadorDB> listar();\n \n /**\n * Método para inserir um avaliador no sistema.\n * @param avaliador \n */\n public void inserir(AvaliadorDB avaliador);\n \n /**\n * Método para alterar um avaliador cadastrado no sistema.\n * @param avaliador \n */\n public void alterar(AvaliadorDB avaliador);\n \n}", "@Override\n public void updateDatabase() {\n }", "ProSchoolWare selectByPrimaryKey(String id);", "List<Videogioco> retriveByNome(String nome);", "public CRUD_form() {\n initComponents();\n DbCon.getConnection(\"jdbc:mysql://localhost:3306/test\", \"root\", \"rishi\");\n }", "@GET\n @Path(\"/database/get\")\n public Response getDatabase() throws JsonGenerationException, JsonMappingException, IOException{\n return Response.status(200).entity(Json.newObjectMapper(true).writeValueAsString(Database2.get())).build();\n }", "Jugador consultarGanador();", "private Offce_item() {\n\n initComponents();\n con = MysqlConnect.getDbCon();\n }", "VentaJPA obtenerVenta(int comprobante);", "public BemPessoaDAOImpl() {\n\t\tsuper(\"PESQUISAR_BEM_PESSOA\");\n\t}" ]
[ "0.6069413", "0.5984916", "0.5950583", "0.5946782", "0.58430064", "0.5831752", "0.5827547", "0.58250177", "0.581153", "0.5801556", "0.57783884", "0.57265455", "0.572614", "0.56784606", "0.5677129", "0.5676781", "0.5670268", "0.5668276", "0.5660085", "0.56574005", "0.56490797", "0.56169623", "0.56112397", "0.5607703", "0.5594525", "0.55898774", "0.5589494", "0.5577501", "0.5566939", "0.5561774", "0.55586195", "0.55429083", "0.55377644", "0.5535917", "0.5532726", "0.5526473", "0.55261344", "0.5507552", "0.5499326", "0.5497431", "0.54832315", "0.5481068", "0.5480675", "0.5472191", "0.5470086", "0.5469713", "0.54537004", "0.5437601", "0.5434866", "0.5434792", "0.5419788", "0.54127383", "0.53982157", "0.5396982", "0.53887457", "0.53879607", "0.53832215", "0.538322", "0.53815717", "0.5379266", "0.53782475", "0.5372239", "0.53703713", "0.53700286", "0.536891", "0.53664535", "0.5360283", "0.53558624", "0.5337153", "0.5336349", "0.533143", "0.5330609", "0.5329634", "0.5328883", "0.532816", "0.5322977", "0.5321848", "0.5321505", "0.5319491", "0.53172046", "0.5311772", "0.5311647", "0.53088415", "0.53055143", "0.5305002", "0.5297396", "0.52915543", "0.5290694", "0.5289", "0.52855426", "0.5278012", "0.527713", "0.5276728", "0.5273317", "0.5270109", "0.5268969", "0.5268959", "0.52686375", "0.5268433", "0.52661765" ]
0.6108446
0
behaviors/methods as general rule, public constructor: public method that creates the instance whats called when the new keyword is used with the class 1. visibility modifier: usually public 2.never static 3.NO RETURN TYPE 4. name =name of the class (capitalize the same) 5. arguments vary might take 1 arguments for each instance variable might take no arguments and set everything to default values no arguments just sets everything to default values
public Student(){ firstName = ""; lastName = ""; bootcamp = ""; id = 42; grade = 1.0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reproducible newInstance();", "private void __sep__Constructors__() {}", "private Instantiation(){}", "void DefaultConstructor(){}", "defaultConstructor(){}", "public OOP_207(){\n\n }", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "Instance createInstance();", "private A(){\n System.out.println(\"Instance created\");\n }", "public Constructor(){\n\t\t\n\t}", "TypesOfConstructor(){\n System.out.println(\"This is default constructor\");\n }", "@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}", "NewClass1 createNewClass1();", "public Instance() {\n }", "public Demo3() {}", "protected PrintBill() \r\n\t{/* nothing needed, but this prevents a public no-arg constructor from being created automatically */}", "public Hello()\n {\n // initialise instance variables\n \n }", "ByCicle(int weight, String name) {\r\n //super keyword can be used to access the instance variables of superclass\r\n //\"super\" can also be used to invoke parent class constructor and method\r\n super(weight);//Accessign Superclass constructor and its variable\r\n //Global Variable=Local variable\r\n this.name = name;\r\n }", "protected abstract void construct();", "Constructor() {\r\n\t\t \r\n\t }", "public AbstractClass() { //Sobrecarga del constructor AbstractClass ya que se puede inicializar de 2 maneras\n }", "private Supervisor() {\r\n\t}", "ConstuctorOverloading(int num){\n\t\tSystem.out.println(\"I am contructor with 1 parameter\");\n\t}", "VehicleClass() {}", "public Player()\n // POST: A default Player object is created with all class members set to 0\n\t{\n\t\tthis(2000, 0);\n\t}", "public Method(String name, String desc) {\n/* 82 */ this.name = name;\n/* 83 */ this.desc = desc;\n/* */ }", "public Self__1() {\n }", "public static void main(String[] args) {\nconstructorDemo obj=new constructorDemo();\nconstructorDemo obj1=new constructorDemo(\"My Parameter\");\nconstructorDemo obj2=new constructorDemo(123);\nconstructorDemo obj3=new constructorDemo(123,6);\nSystem.out.println(\"code after creating object\");\nobj.hello();\nobj.hello(\"hi\");\n\t}", "public Parameters() {\n\t}", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "private DarthSidious(){\n }", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "public Methods() {\n // what is this doing? -PMC\n }", "private TypicalPersons() {}", "private TypicalPersons() {}", "public Class(String v, String h, String n) {\n\n\t\tclassName = n;\n\t\tvisability = v;\n\t\thierarchy = h;\n\t\tmain = false;\n\t\tisFinished = false;\n\t\tHighestMethod = 1;\n\t\tHighestVariable = 1;\n\t}", "public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException, NoSuchMethodException, SecurityException, IllegalArgumentException, InvocationTargetException, CloneNotSupportedException {\n\t\tStudent st = new Student();\n\t\tst.setName(\"Madan\");\n\t\t\n\t\t//2 Using new instance method of class\n\t\tStudent st1 = (Student) Class.forName(\"com.home.Student\").newInstance();\n\t\tst1.setName(\"Mohan\");\n\t\t\n\t\t\n\t\t//3 using new instance of constructor\n\t\tConstructor<Student> cs = Student.class.getConstructor();\t\t\n\t\tStudent st2 = cs.newInstance();\n\t\tst2.setName(\"Nautiyal\");\n\t\t\n\t\t//4 using clone method\n\t\tStudent st3 = (Student) st.clone();\n\t\t\n\t\t\n\t\tSystem.out.println(\"Object 1 \" + st.getName());\n\t\tSystem.out.println(\"Object 2 \"+ st1.getName());\n\t\tSystem.out.println(\"Object 3 \"+st2.getName());\n\t\tSystem.out.println(\"Object 4 \"+st3.getName());\n\n\t\t\n\t}", "public Person() {\n\t\t\n\t}", "private Public() {\n super(\"public\", null);\n }", "public Methods() { // ini adalah sebuah construktor kosong tidak ada parameternya\n System.out.println(\"Ini adalah Sebuah construktor \");\n }", "public Person() {}", "public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }", "private Params()\n {\n }", "T newInstance(Object... args);", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "public VariabilityFactoryImpl() {\n\t\tsuper();\n\t}", "public Main() {\r\n\t}", "public Person(String first, String last) {\n // Set instance var firstname to what is called from constructor\n this.firstName = first; \n // Set instance var lastname to what is called from constructor\n this.lastName = last;\n }", "public ObjectFactory() {\n\t}", "protected ModelAgent ()\n {\n this (\"ModelAgent\");\n\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tdefaultconstructor d = new defaultconstructor();\r\n\tSystem.out.println(d.Age);\t\r\n\tSystem.out.println(d.Name);\r\n\r\n\t\t\r\n\t\t\r\n\r\n\t}", "protected Animal() {\t\r\n\t}", "private MApi() {}", "public static void main(String[] args) {\n String eName = \"Edison\";\n int eAge = 4;\n double eWeight = 13.4;\n\n String tesName = \"Tesla\";\n int tesAge = 7;\n double tesWeight = 6.9;\n\n // Object WITHOUT constructor\n Cat ncEdison = new Cat();\n ncEdison.name = \"Edison\";\n ncEdison.age = 4;\n ncEdison.weight = 13.4;\n ncEdison.printDescription();\n\n // Object WITH constructor\n Cat cTesla = new Cat(\"Tesla\", 7, 6.9);\n Cat cSpotify = new Cat(\"Spotify\", 8, 3.4);\n\n cTesla.printDescription();\n cSpotify.printDescription();\n\n Cat mystery = new Cat();\n mystery.printDescription();\n\n Dog fido = new Dog(\"Fido\", 15, 30);\n// Dog frodo = new Dog(); // No default constructor for Dog()\n\n// System.out.println(fido.weight); // Is private\n\n Journal diary = new Journal();\n diary.append(\"Today Tesla was evil\");\n diary.append(\"Today Edison was asleep\");\n String theWords = diary.getWords();\n theWords = \"_deleted by timmy\";\n\n // Static\n ElectricCharge blanket = new ElectricCharge(7);\n ElectricCharge pants = new ElectricCharge(2);\n ElectricCharge pyjamas = new ElectricCharge(5);\n ElectricCharge socks = new ElectricCharge(4);\n\n System.out.println(\"The total Charge is: \" + ElectricCharge.getTotalCharge());\n\n }", "public Calculator() {\r\n\t\t/*\r\n\t\t * Constructor - Method name which has the same class name is called a Consatructor\r\n\t\t */\r\n\t\tSystem.out.println(\"Calling constructor\");\r\n\t}", "public Employee()\n\t{\n\t\tthis(\"(2)Invoke Employee's overload constructor\");\n\t\tSystem.out.println(\"(3)Employee's no-arg constructor is invoked\");\n\t}", "public static void main(String[] args) {\n\t\tthisconstructor rv = new thisconstructor();\n\t\n\t\n\t}", "public Object createNew(String typename, Object... args) \n\t\tthrows \tIllegalAccessException, \n\t\t\tInstantiationException, \n\t\t\tClassNotFoundException,\n\t\t\tNoSuchMethodException,\n\t\t\tInvocationTargetException \n\t{\n\t\tswitch(args.length) \n\t\t{\n\t\tcase 1 : return Class.forName(typename).getConstructor(args[0].getClass()).newInstance(args[0]);\n\t\tcase 2 : return Class.forName(typename).getConstructor(args[0].getClass(), args[1].getClass()).\n\t\t\tnewInstance(args[0], args[1]);\n\t\t}\n\t\treturn null;\n\t}", "private SingleObject()\r\n {\r\n }", "public Basic() {}", "private Rekenhulp()\n\t{\n\t}", "public Bicycle() {\n // You can also call another constructor:\n // this(1, 50, 5, \"Bontrager\");\n System.out.println(\"Bicycle.Bicycle- no arguments\");\n gear = 1;\n cadence = 50;\n speed = 5;\n name = \"Bontrager\";\n }", "public Human() { // has to be name of class — COnstuctor\n\t\t\n\t\tname = \"\";\n\t\tage = 0;\n\t\tSystem.out.println(\"CONSTRUCTOR HERE\");\n\t\t\n\t}", "public Factory() {\n\t\tsuper();\n\t}", "public ObjectFactory() {\r\n\t}", "public BaseParameters(){\r\n\t}", "Petunia() {\r\n\t\t}", "private Help() {\n // hidden constructor\n }", "public CyanSus() {\n\n }", "private SingleObject(){\n }", "public Method() {\n }", "public Implementor(){}", "public Activator() {\r\n\t}", "DefaultConstructor(int a){}", "public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "public Main() {\n // Required empty public constructor\n }", "public MyClass1(String name) {\n\t\tsuper();\n\t\tthis.name = name;\n\t}", "abc createabc();", "private CommonMethods() {\n }", "private void addConstructors() {\n\t\tthis.rootBindingClass.getConstructor().body.line(\"super({}.class);\\n\", this.name.getTypeWithoutGenerics());\n\t\tGMethod constructor = this.rootBindingClass.getConstructor(this.name.get() + \" value\");\n\t\tconstructor.body.line(\"super({}.class);\", this.name.getTypeWithoutGenerics());\n\t\tconstructor.body.line(\"this.set(value);\");\n\t}", "public void create(){}", "public Person() {\n }", "public Person() {\n }", "public Person() {\n }", "public Person() {\n }", "private Human() {\n\t\tSystem.out.println(\"Human no args constructor called\");\n\t\thumanCounter++;\n\t}", "private ChainingMethods() {\n // private constructor\n\n }", "public static void main(String[] args) {\n\t\tConstructor cn=new Constructor(); \r\n\t\t// Note: no need to create object for constructor\r\n\t\r\n\t}", "public static void main(String[] args) {\n My obj2=new My(9);//--->called overloaded Constructor\n }", "public Person(){\r\n\t\tsuper();\r\n\t}", "public MethodBuilder() {\n\t\tvisibility = \"public\";\n\t\treturnType = \"void\";\n\t\tname = \"foo\";\n\t\trule = \"\";\n\t\ttype = \"\";\n\t\tparameters = new ArrayList<String>();\n\t\tcommands = new ArrayList<String>();\n\t}", "private GameManager() \n\t{\n\t\t\n\t}", "private Main ()\n {\n super ();\n }", "public DomainKnowledge() {\r\n\t\tthis.construct(3);\r\n\t}", "public Demo() {\n\t\t\n\t}", "public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public Excellon ()\n {}", "private SystemInfo() {\r\n // forbid object construction \r\n }" ]
[ "0.73043716", "0.6993893", "0.6936117", "0.68956894", "0.6851174", "0.68466437", "0.68141395", "0.65477264", "0.650662", "0.6483717", "0.6478671", "0.6468273", "0.6463892", "0.63513476", "0.6320203", "0.63002837", "0.62941307", "0.629399", "0.62923646", "0.62894404", "0.62767303", "0.6271132", "0.62670904", "0.6266098", "0.6265589", "0.6258806", "0.62534183", "0.6253395", "0.6253277", "0.6226403", "0.6211224", "0.62044185", "0.6203754", "0.62009436", "0.61952543", "0.61952543", "0.6181626", "0.6178542", "0.61720276", "0.6166771", "0.6152101", "0.6134631", "0.6128485", "0.61259437", "0.6117913", "0.6116118", "0.61084306", "0.6108349", "0.6101942", "0.6100848", "0.60968006", "0.6096391", "0.6091307", "0.60874814", "0.6087292", "0.6086764", "0.6083682", "0.6083654", "0.60830456", "0.60820174", "0.60574144", "0.60467505", "0.6046092", "0.6043061", "0.60415804", "0.6038149", "0.60368687", "0.6036284", "0.6027517", "0.602231", "0.60182065", "0.601706", "0.6015702", "0.60124415", "0.60117763", "0.60108083", "0.60097706", "0.60085887", "0.6004869", "0.5997869", "0.5994845", "0.59820235", "0.5959304", "0.5954928", "0.5954928", "0.5954928", "0.5954928", "0.5954724", "0.5939867", "0.59340274", "0.59273726", "0.5925967", "0.5923433", "0.5923048", "0.59171027", "0.59169304", "0.59168106", "0.59136564", "0.59115124", "0.59114665", "0.5911145" ]
0.0
-1
getters (accessors) provide public view access private instance variables 1.visibility modifier: public 2. 3. 4. name is usually get 5. usuually no arguments method body
public String getFirstName() { return firstName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Get() {}", "private Get() {}", "public void get() {\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "public int getAge() {return age;}", "public Boolean getPublicAccess() {\n return publicAccess;\n }", "public int getx(){\r\n return z;\r\n}", "public static void main(String[] args) {\n\t\tAccessModifiers am = new AccessModifiers();\r\n\t\tSystem.out.println(am.publicInt);\r\n\t\t//System.out.println(am.privatefloat);\r\n\t\tSystem.out.println(am.protectedName);\r\n\t\tSystem.out.println(am.defaultAge);\r\n\t}", "@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "@Override\n\t/**\n\t * returns the visibility modifiers for the specific class\n\t * \n\t * @return visibility modifiers \n\t */\n\tpublic String getVisability() {\n\t\treturn visability;\n\t}", "public static void main(String[] args) {\n\tSystem.out.println(\" My name is : \" + \" \" +AcceesModifier1.studentName );\n\tSystem.out.println(\" my age is : \"+ \"\"+ AcceesModifier1.age);\n\t\n\t// this is the non static variable i call by object\n\t\n\tAcceesModifier1 ace = new AcceesModifier1();\n\tSystem.out.println (\" My company name is :\" + \"\"+ace.companyName );\n\t\n\t// protected also we call by class name \n\t\n\tSystem.out.println( \" my salary is :\" + \" \" +AcceesModifier1.salary );\t\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tEncapsulation player1 = new Encapsulation(\"215356\");\n\t\tplayer1.setName(\"cedi\");\n\t\tplayer1.setAge(22);\n\t\t//player1.setIdNum(\"23\");\n\t\t\n\t//System.out.println(String.format(\"%s with id number:%s is %d year old %s\",player1.getName(),player1.getIdNum(),player1.getAge(),player1.getAdress()));\n // System.out.println(player1.age); age is private variable\n\t\t//System.out.println(player1.adress); //adress is not private\n\t}", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public void getInfo() {\n\tSystem.out.println(\"My name is \"+ name+ \" my last name is \"+ lastName);\n\t // we can access static members within non static Method!!\n\t\n}", "public int geti(){\r\n return i;\r\n}", "public static void main(String[] args) {\n // since we declared the variables in access modifier class as static ==> we can call them through class name\n // here we will call the variables BUT private variable cannot be called into inherited\n System.out.println(c04_TestData2.publicVariable);\n System.out.println(c04_TestData2.protectedVariable);\n System.out.println(c04_TestData2.defaultVariable);\n\n // here we will call the method that were created in AccessModifier class into here\n // only public, protected, and default methods only can be inherited and used here\n c04_TestData2.publicMethod();\n c04_TestData2.protectedMethod();\n c04_TestData2.defaultMethod();\n\n // because they are static method we can call them like this too\n publicMethod();\n protectedMethod();\n defaultMethod();\n }", "public int getAge(){\n return age;\n }", "@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }", "public int getAge()\r\n {\r\n return age;\r\n }", "public boolean getIsPublic()\n {\n return isPublic;\n }", "public void checkPublic() {\n }", "private String getSomePrivateInfo() {\r\n \treturn \"private information of MySubject\";\r\n }", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "void printMe() {\n\t\t/*\n\t\t * age is private variable of the Animal class\n\t\t * so if we can access the age variable, depends on where\n\t\t * we create the Animal. if we create an Animal outside of\n\t\t * the Animal class, we cannot access age, as it's private.\n\t\t * if however, we create an Animal inside the Animal class\n\t\t * this Animal DOES have access to age.\n\t\t * cannot access age here, as private\n\t\t * see the run() method in the Animal class where we create\n\t\t * Animal object with access to age\n\t\t */\n\t//\tSystem.out.println(myAnimal.age);//private, so cannot access\n\t\t//protected, we are in same package so can access height\n\t\tSystem.out.println(myAnimal.height);//protected\n\t\t//default, in same package so we can access weight\n\t\tSystem.out.println(myAnimal.weight);//default\n\t\t//public, so we can access this anywhere\n\t\tSystem.out.println(myAnimal.name);//public\n\t\tmyAnimal.eat();//default level access\n\t\t//can't access this as this is a private method\n\t\t//myAnimal.drink()\n\t}", "public int getAge();", "public int getAge();", "public static void main(String[] args) {\n Class clazz = ModifierDemo.InnerPrivateClass.class;\n\n int modifiers = clazz.getModifiers();\n System.out.println(modifiers);\n String name = clazz.getName();\n System.out.println(name);\n\n int modifiers1 = ModifierDemo.class.getModifiers();\n System.out.println(modifiers1);\n\n\n\n }", "public int getlife(){\r\n return life;\r\n}", "public String getGetter() {\n return \"get\" + getCapName();\n }", "public int getAge()\n {\n return age;\n }", "@Override\n public boolean isPrivate() {\n return true;\n }", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "public static void main(String[] args) {\n\t\tSubAccessEx sub = new SubAccessEx();\r\n\t\tsub.subPrintField();\r\n\t\t\r\n\t\t//System.out.println(sub.c);//protected member\r\n\t\tSystem.out.println(sub.d); // public\r\n\t\t\r\n\t\t\r\n\t\tAccessEx acc = new AccessEx();\r\n//\t\tSystem.out.println(acc.a); // private\r\n//\t\tSystem.out.println(acc.b); // package(»ý·«)\r\n//\t\tSystem.out.println(acc.c); // protected\r\n\t\tSystem.out.println(acc.d); // public\r\n\t}", "public String getAccess();", "public Boolean isAccessible() {\n return this.isAccessible;\n }", "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "public void myPublicMethod() {\n\t\t\n\t}", "@Override\n public void get() {}", "public String getSex(){ //\"public\" access allows other classes to retrieve the value of \"sex\", but since there\n // is no setter it cannot be changed from outside the class = Encapsulation/Inkapsling\n return this.sex;\n }", "@Override\n\tpublic boolean isPublic() {\n\t\treturn false;\n\t}", "String getAccess();", "String getAccess();", "@Test\n\tpublic static void testGetters() {\n\t\tCompoundMadeOfElementDTO idk = new CompoundMadeOfElementDTO(1, 3, 20);\n\t\tassertEquals(1, idk.getCompoundID());\n\t\tassertEquals(3, idk.getElementID());\n\t\tassertEquals(20, idk.getElementQuantity());\n\t}", "private stendhal() {\n\t}", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "public String getter() {\n\t\treturn name;\n\t}", "public boolean getIsPublic()\n\t{\n\t\treturn isPublic;\n\t}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "public int getAge() {\r\n return age;\r\n }", "public boolean isAccessible() {\n return false;\n }", "protected abstract MethodDescription accessorMethod();", "String getName(){return this.name;}", "public V get19();", "public int getAge() {\n\t \t return age; \n\t}", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden accessable \n\tAccesingModifiers.hello1();\n\tAccesingModifiers.hello2();\n\t\n\t//AccesingModifiers.hello3(); not acceptable since permission is set to private\n\t\n}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tPrivateAb ob=new PrivateAb(); \r\n\t\t ob.mydata;\r\n\t\t\r\n\t\t//System.out.println(obj.data);\t//Compile Time Error \r\n\t\t obj.msg();\t//Compile Time Error \r\n\t\t \r\n\t\t\r\n\t\t }", "private Public() {\n super(\"public\", null);\n }", "public int getAge() {\n return this.age;\n }", "@Test\n\tpublic void testGetters() {\n\t\tEngine engine = new Engine(20);\n\t\tCoordinate point = new Coordinate(5,5);\n\t\tCoordinate playerLocation = engine.getMoveableObject(0).getLocation();\n\t\tint playerX = playerLocation.getX();\n\t\tint playerY = playerLocation.getY();\n\t\tassertEquals(\"failure - didn't create coordinate x-val\", 5, point.getX(), 0.0);\n\t\tassertEquals(\"failure - didn't create coordinate y-val\", 5, point.getY(), 0.0);\n\t\tassertEquals(\"failure - didn't get player's x coordinate correctly\", 3, playerX, 0.0);\n\t\tassertEquals(\"failure - didn't get player's y coordinate correctly\", 3, playerY, 0.0);\n\t\t}", "public static void main(String[] args) {\n\t\tCheckAccess_moderfier ac=new CheckAccess_moderfier();\n\t\tac.defaultmethos();\n\t\tac.accessmedthos();\n\t\tSystem.out.println(ac.i);\n\t\t\n\t//\tSystem.out.println(ac.j);\n\t}", "boolean isPrivate();", "@Test\n public void testGetters()\n {\n assertEquals(\"\",test.getPlayerName());\n assertEquals(\"UseCard\",test.toString());\n assertEquals(13,test.getCardID());\n }", "public String get_name(){\n return _name;\n }", "public Boolean getIsPublic() {\n\t\treturn isPublic;\n\t}", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "private ReadProperty()\r\n {\r\n\r\n }", "public int getAccess() {\n\t\treturn access;\n\t}", "public String get();", "public Value restrictToGetter() {\n checkNotPolymorphicOrUnknown();\n if (getters == null)\n return theNone;\n Value r = new Value();\n r.getters = getters;\n return canonicalize(r);\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.514 -0500\", hash_original_method = \"E49204FD271E895B10D86A1AFEA21B04\", hash_generated_method = \"59B3C6A592AE63BEE2BC1CC1723B36DF\")\n \nprivate Settings() {}", "public static aVisibility getVisibility()\n {\n read_if_needed_();\n \n return _get_visibility;\n }", "public Set<ObjectLabel> getGetters() {\n if (getters == null)\n return Collections.emptySet();\n if (Options.get().isDebugOrTestEnabled())\n return Collections.unmodifiableSet(getters);\n return getters;\n }", "JApiModifier<AccessModifier> getAccessModifier();", "@JsonIgnore\n public Boolean isPrivate()\n {\n return isPrivate;\n }", "public Method getGetter() {\n return this.getter;\n }", "public void getInfo() {\n\t\tSystem.out.println(\"My name is \"+ name+ \" and my last name is \"+ lastName);\n\t\t\n\t\tgetInfo1();// we can access static method within non static \n\t\t\n\t}", "public static void main(String[] args) {\r\n\t\t//A obj = new A(); //A cannot be resolved to a type...try to access the class A method in thz class -- error \r\n\t // obj.i = 80; //here..The field A.i is not visible...it, allow as to create the object, but still it is not allow as to access thev & m, bcoz if we dont specify anything-- default(V & M) so it only accessible within the package.\r\n\t\r\n\t // obj.j = 90; //The field A.j is not visible -- error, cant access since it is protected.\r\n\t // obj.flow(); //The method flow() from the type A is not visible, cant access since it is protected.\r\n\t \r\n\t B obj1 = new B(); //extended class A, so we can access its V and M here.\r\n\t obj1.j = 70;\r\n\t obj1.flow();\r\n\t \r\n\t A obj3 = new A(); // here no need to extend class A , just create obj for A class and access it, bcoz it is \"public\".\r\n\t obj3.D = 100;\r\n\t obj3.sub();\r\n\t}", "public int getYearsOffice()\n {\n return yearsOffice;\n}", "public Object get (int i)\r\n {\r\n }", "int getExpose();", "public Age getAge() {\n return age;\n }", "public int getLives(){return lives;}", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "@Override\n public boolean getAllowPrivateConstructors()\n {\n \treturn allowPrivateConstructors;\n }", "@FameProperty(name = \"numberOfAccessingMethods\", derived = true)\n public Number getNumberOfAccessingMethods() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public interface Getter {\r\n\tObject get();\r\n}", "public int getAge() {\n return mAge;\n }", "public Empleado getEmpleado()\r\n/* 183: */ {\r\n/* 184:337 */ return this.empleado;\r\n/* 185: */ }", "public int getNumber(){return number;}", "int getAge();" ]
[ "0.6859873", "0.6859873", "0.63682884", "0.6290094", "0.62896574", "0.6146902", "0.6117921", "0.60795534", "0.60674095", "0.6013252", "0.60130763", "0.6012886", "0.59876794", "0.597987", "0.5963731", "0.59556645", "0.5922758", "0.59174365", "0.5892543", "0.58877194", "0.5886436", "0.5873402", "0.58707476", "0.5865195", "0.58603424", "0.5858714", "0.58391684", "0.58391684", "0.58365095", "0.58343947", "0.5829562", "0.5797951", "0.5795911", "0.5795388", "0.5793036", "0.5775231", "0.57672364", "0.57662714", "0.57605386", "0.57521373", "0.5750246", "0.57392496", "0.5720508", "0.5720508", "0.57013625", "0.56954736", "0.5670961", "0.5646528", "0.5643474", "0.5643409", "0.56363815", "0.5604854", "0.5598107", "0.5581341", "0.55454046", "0.5542573", "0.55343235", "0.5533801", "0.5533801", "0.5533801", "0.5533801", "0.5533801", "0.5533801", "0.5533801", "0.5533801", "0.5530032", "0.552486", "0.5523829", "0.5516007", "0.5513741", "0.54927343", "0.548896", "0.5482807", "0.5474976", "0.54716575", "0.54713535", "0.5460109", "0.54523456", "0.54485834", "0.54469174", "0.5446499", "0.5435924", "0.5426238", "0.54246384", "0.54209644", "0.541847", "0.54167795", "0.54132795", "0.5412798", "0.5412096", "0.541027", "0.54097176", "0.5408948", "0.5408815", "0.5406198", "0.5397381", "0.5396484", "0.53945935", "0.539334", "0.53926146", "0.5387829" ]
0.0
-1
setters (mutators) provide public write access to private instance variables //getters (accesors) provide public view access private instance variables 1.visibility modifier: public 2. 3. 4. name is usually get 5. usuually no arguments method body
public void setFirstName(String fn) { //I need to capture the value from the argument //which is going to scope out soon // // firstName = fn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public static void main(String[] args) {\n Student s1 = new Student();\r\n \r\n //set the age for the student \r\n// s1.age = -500; \r\n// System.out.println(\"Age: \"+s1.age);\r\n\r\n s1.setAge(-500);\r\n System.out.println(s1.getAge()); //23 \r\n\r\n \r\n }", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "private Get() {}", "private Get() {}", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "public static void main(String[] args) {\n\t\tEncapsulation player1 = new Encapsulation(\"215356\");\n\t\tplayer1.setName(\"cedi\");\n\t\tplayer1.setAge(22);\n\t\t//player1.setIdNum(\"23\");\n\t\t\n\t//System.out.println(String.format(\"%s with id number:%s is %d year old %s\",player1.getName(),player1.getIdNum(),player1.getAge(),player1.getAdress()));\n // System.out.println(player1.age); age is private variable\n\t\t//System.out.println(player1.adress); //adress is not private\n\t}", "public void setAge(int age) { this.age = age; }", "public void setPrivate()\n {\n ensureLoaded();\n m_flags.setPrivate();\n setModified(true);\n }", "public static void main(String[] args) {\n\tSystem.out.println(\" My name is : \" + \" \" +AcceesModifier1.studentName );\n\tSystem.out.println(\" my age is : \"+ \"\"+ AcceesModifier1.age);\n\t\n\t// this is the non static variable i call by object\n\t\n\tAcceesModifier1 ace = new AcceesModifier1();\n\tSystem.out.println (\" My company name is :\" + \"\"+ace.companyName );\n\t\n\t// protected also we call by class name \n\t\n\tSystem.out.println( \" my salary is :\" + \" \" +AcceesModifier1.salary );\t\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t}", "public void setName(String name){this.name=name;}", "public static void main(String[] args) {\n\t\tAccessModifiers am = new AccessModifiers();\r\n\t\tSystem.out.println(am.publicInt);\r\n\t\t//System.out.println(am.privatefloat);\r\n\t\tSystem.out.println(am.protectedName);\r\n\t\tSystem.out.println(am.defaultAge);\r\n\t}", "public void get() {\n }", "private void checkNoGettersSetters() {\n if (getters != null || setters != null)\n throw new AnalysisException(\"Unexpected getter/setter value!\");\n }", "public void setPublic()\n {\n ensureLoaded();\n m_flags.setPublic();\n setModified(true);\n }", "public void setAge(int age);", "public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }", "private void set(int x, int i) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected abstract Set method_1559();", "public void setName(String name){this.name = name;}", "public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden accessable \n\tAccesingModifiers.hello1();\n\tAccesingModifiers.hello2();\n\t\n\t//AccesingModifiers.hello3(); not acceptable since permission is set to private\n\t\n}", "public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }", "public void setX(int x) { this.x=x; }", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void setName (String newName)\n {\n this.name = newName; \n }", "public static void main(String[] args) {\n // since we declared the variables in access modifier class as static ==> we can call them through class name\n // here we will call the variables BUT private variable cannot be called into inherited\n System.out.println(c04_TestData2.publicVariable);\n System.out.println(c04_TestData2.protectedVariable);\n System.out.println(c04_TestData2.defaultVariable);\n\n // here we will call the method that were created in AccessModifier class into here\n // only public, protected, and default methods only can be inherited and used here\n c04_TestData2.publicMethod();\n c04_TestData2.protectedMethod();\n c04_TestData2.defaultMethod();\n\n // because they are static method we can call them like this too\n publicMethod();\n protectedMethod();\n defaultMethod();\n }", "private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }", "public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }", "private stendhal() {\n\t}", "private static void Demo5() {\n\t\tClass<?> class1 = null;\r\n\t\ttry {\r\n\t\t\tclass1 = Class.forName(\"CH16.Person\");\r\n\t\t\ttry {\r\n\t\t\t\tObject obj = class1.newInstance();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tField f = class1.getDeclaredField(\"name\");\r\n\t\t\t\t\tf.setAccessible(true);\r\n\t\t\t\t\tf.set(obj, \"HONGHENG\");\r\n\t\t\t\t\tSystem.out.println(f.get(obj));\r\n\t\t\t\t} catch (NoSuchFieldException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (SecurityException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t} catch (InstantiationException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }", "protected HashSet getNoAccess(){\n return tester.noAccess;\n }", "void setAge(int age);", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "@Override\n\t/**\n\t * sets the visibility modifiers for the specific class\n\t * \n\t * @param s \n\t */\n\tpublic void setVisability(String s) {\n\t\tvisability = s;\n\n\t}", "public static void main(String[] args) {\n ClassDefault claseDefault = new ClassDefault(\"hola\");\n claseDefault.setAttrPrivate(\"Modigficado atrr privado\");\n System.out.println(\"Privado \"+ claseDefault.getAttrPrivate());\n //claseDefault.attrPrivate = \"Cambio desde la prueba\";\n //Systease1 = \" + clase1.attrPublico);\n //clase1.metodoPublico();m.out.println(\"claseDefault.attrDefault = \" + claseDefault.attrDefault);\n //claseDefault.metodoDefault();\n //System.out.println(\"clase1 = \" + clase1.attrPublico);\n //clase1.metodoPublico();\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.514 -0500\", hash_original_method = \"E49204FD271E895B10D86A1AFEA21B04\", hash_generated_method = \"59B3C6A592AE63BEE2BC1CC1723B36DF\")\n \nprivate Settings() {}", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "void setAccessible(boolean accessible);", "public void setAccessibleName(String name) {\n // Not supported\n }", "@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}", "public void set(int i) {\n }", "@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}", "public void checkPublic() {\n }", "public void setPrivate(Boolean isPrivate)\n {\n this.isPrivate = isPrivate;\n }", "public void setNombre(String nombre)\r\n/* 118: */ {\r\n/* 119:214 */ this.nombre = nombre;\r\n/* 120: */ }", "@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }", "public String getSetter() {\n return \"set\" + getCapName();\n }", "@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}", "public static void main(String[] args){\n\t\tStudent s=new Student(); \r\n\t\t\r\n\t\t\r\n\t\t//setting value in the name member \r\n\t\t\r\n\t\t\r\n\t\ts.setName(\"vijay\"); \r\n\t\ts.setId(35);\r\n\t\ts.SetSalary(25000);\r\n\t\ts.SetTax(2055.543536f);\r\n\t\ts.SetBusName(\"RedBus\");\r\n\t\t//getting value of the name member \r\n\t\t\r\n\t\tSystem.out.println(\"This is Name :\"+s.getName()); \r\n\t\tSystem.out.println(\"This is id :\"+s.getEmpId());\r\n\t\tSystem.out.println(\"This is Salary :\"+s.getSalary());\r\n\t\tSystem.out.println(\"This is Tax :\"+s.getTax());\r\n\t\tSystem.out.println(\"This is BusName :\"+s.GetBusName());\r\n\t\t\r\n\t\t}", "public void setNombre(String nombre) {this.nombre = nombre;}", "public static void main(String[] args) {\n\t\tSubAccessEx sub = new SubAccessEx();\r\n\t\tsub.subPrintField();\r\n\t\t\r\n\t\t//System.out.println(sub.c);//protected member\r\n\t\tSystem.out.println(sub.d); // public\r\n\t\t\r\n\t\t\r\n\t\tAccessEx acc = new AccessEx();\r\n//\t\tSystem.out.println(acc.a); // private\r\n//\t\tSystem.out.println(acc.b); // package(»ý·«)\r\n//\t\tSystem.out.println(acc.c); // protected\r\n\t\tSystem.out.println(acc.d); // public\r\n\t}", "public void setPublicAccess(Boolean publicAccess) {\n this.publicAccess = publicAccess;\n }", "public final void setName(String name) {_name = name;}", "public void setdat()\n {\n }", "public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }", "public static void main(String[] args) {\n\t\tA a =new A();\n\t\tSystem.out.println(a.y());\n\t\t// private 는 접근 제한자로 분리되어 있어 접근이 제한 됨.\n\t\t//동일한클레스 에서만 사용이 된다.\n\t\t//System.out.println(a.z());\n\t\tSystem.out.println(a.x());\n\t}", "public void makeReadOnly();", "@Test\n public void testSetAge() {\n System.out.println(\"Animal.setAge\");\n animal1.setAge(20);\n animal2.setAge(5);\n assertEquals(20, animal1.getAge());\n assertEquals(5, animal2.getAge());\n }", "private String getSetMethodName() {\n assert name != null;\n return \"set\" + upperFirstChar(name);\n }", "public static void main(String[] args) {\n student mark=new student();//----->object or instance\n // here we create an instance or object call mark for our class student.\n mark.setAge(15); //mark.age=15;\n mark.setId(1); //mark.id=1;\n mark.setName(\"mark\"); //mark.name=\"mark\";\n // System.out.println(mark.name+\" \"+\"is\"+\" \"+mark.age+\" \"+\"years old\");\n // now after change to get this value will change to bellow.\n System.out.println(mark.getName()+\" \"+\"is\"+\" \"+mark.getAge()+\" \"+\"years old\");\n \n student tom=new student(); //-----> 2 /second object or instance\n // here we create second 2 instance or object call tom for our class student.\n tom.setAge(14); //tom.age=14;\n tom.setId(2); //tom.id=2;\n tom.setName(\"tom\"); //tom.name=\"tom\";\n // System.out.println(tom.name+\" \"+\"is\"+\" \"+tom.age+\" \"+\"years old\");\n System.out.println(tom.getName()+\" \"+\"is\"+\" \"+tom.getAge()+\" \"+\"years old\");\n\t}", "public void setX(int x);", "@Pointcut(\"forDAOPackage() && !(getter() || setter())\")\n\tpublic void exceptGettersAndSetters() {}", "public void setAge(int age)\r\n {\r\n this.age = age;\r\n }", "public void setAge(int age){\n this.age = age;\n }", "void setModifier(Modifier modifier);", "public void myPublicMethod() {\n\t\t\n\t}", "public void setName(String name)\n {\n _name = name;\n }", "public static void main(String[] args) {\n Class clazz = ModifierDemo.InnerPrivateClass.class;\n\n int modifiers = clazz.getModifiers();\n System.out.println(modifiers);\n String name = clazz.getName();\n System.out.println(name);\n\n int modifiers1 = ModifierDemo.class.getModifiers();\n System.out.println(modifiers1);\n\n\n\n }", "private void setName() {\n\t\t//MAKE SURE NOT TO GET ACCIDENTAL RECURSION HERE\n\t\t//DO NOT JUST MAKE A NEW TRIAD AND COMPARE TO CURRENT TRIAD\n\t\t//UNLESS ??? MAYBEDON\"T PUT SET NAME IN THE CONSTRUCTOR?\n\t\t//SIMILAR PROBLEM TO SETINVERSION\n\t\t\n\t\t//major, minor, diminished, augmented\n\t\t//this.name = name;\n\t}", "public void set(int i);", "@Test\n public void testSetEditable() {\n writeBanner(getMethodName());\n }", "public void testSetters() {\n String name = \"pop\";\n String version = \"2.3\";\n\n Agent agent = new Agent(\"moo\", \"1.5\");\n\n agent.setName(name);\n agent.setVersion(version);\n assertEquals(agent.getName(), name, \"Unexpected agent name.\");\n assertEquals(agent.getVersion(), version, \"Unexpected agent version.\");\n assertEquals(agent.toString(), name + \"/\" + version, \"Unexpected agent display representation.\");\n }", "void printMe() {\n\t\t/*\n\t\t * age is private variable of the Animal class\n\t\t * so if we can access the age variable, depends on where\n\t\t * we create the Animal. if we create an Animal outside of\n\t\t * the Animal class, we cannot access age, as it's private.\n\t\t * if however, we create an Animal inside the Animal class\n\t\t * this Animal DOES have access to age.\n\t\t * cannot access age here, as private\n\t\t * see the run() method in the Animal class where we create\n\t\t * Animal object with access to age\n\t\t */\n\t//\tSystem.out.println(myAnimal.age);//private, so cannot access\n\t\t//protected, we are in same package so can access height\n\t\tSystem.out.println(myAnimal.height);//protected\n\t\t//default, in same package so we can access weight\n\t\tSystem.out.println(myAnimal.weight);//default\n\t\t//public, so we can access this anywhere\n\t\tSystem.out.println(myAnimal.name);//public\n\t\tmyAnimal.eat();//default level access\n\t\t//can't access this as this is a private method\n\t\t//myAnimal.drink()\n\t}", "private void setUserData(){\n }", "public void setName(String name){\n this.name = name;\n }", "public void setNumero(int numero)\r\n/* 195: */ {\r\n/* 196:206 */ this.numero = numero;\r\n/* 197: */ }", "public void setName(String n){ name=n; }", "public void setAge(int age) { \n\t\t this.age = age; \n\t}", "@Test @DisplayName(\"Injector - setting (direct)\")\n void injectorSetters() throws Exception {\n val injector = injector(inj -> {\n inj.set(\"text\", \"some text\");\n inj.set(\"label\", \"a label\");\n inj.set(\"attrs\", Map.of(\"alpha\", \"one\"));\n });\n\n val injected = injector.inject(new OtherObject());\n assertEquals(\"some text\", injected.getText());\n assertEquals(\"a label\", injected.label);\n assertEquals(Map.of(\"alpha\", \"one\"), injected.getAttrs());\n }", "public void setPrivate(boolean b) {\n isPrivate = b;\n }", "@Override\n public void setX(int x) {\n this.x=x;\n }", "public static aVisibility setVisibility()\n {\n read_if_needed_();\n \n return _set_visibility;\n }", "public int getAge() {return age;}", "public int getx(){\r\n return z;\r\n}", "@Test\r\n public void testSetlName() {\r\n System.out.println(\"setlName\");\r\n String lName = \"\";\r\n Student instance = new Student();\r\n instance.setlName(lName);\r\n \r\n }", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "@Test\n\tpublic static void testGetters() {\n\t\tCompoundMadeOfElementDTO idk = new CompoundMadeOfElementDTO(1, 3, 20);\n\t\tassertEquals(1, idk.getCompoundID());\n\t\tassertEquals(3, idk.getElementID());\n\t\tassertEquals(20, idk.getElementQuantity());\n\t}", "public static void main(String[] args) {\r\n\t\t//A obj = new A(); //A cannot be resolved to a type...try to access the class A method in thz class -- error \r\n\t // obj.i = 80; //here..The field A.i is not visible...it, allow as to create the object, but still it is not allow as to access thev & m, bcoz if we dont specify anything-- default(V & M) so it only accessible within the package.\r\n\t\r\n\t // obj.j = 90; //The field A.j is not visible -- error, cant access since it is protected.\r\n\t // obj.flow(); //The method flow() from the type A is not visible, cant access since it is protected.\r\n\t \r\n\t B obj1 = new B(); //extended class A, so we can access its V and M here.\r\n\t obj1.j = 70;\r\n\t obj1.flow();\r\n\t \r\n\t A obj3 = new A(); // here no need to extend class A , just create obj for A class and access it, bcoz it is \"public\".\r\n\t obj3.D = 100;\r\n\t obj3.sub();\r\n\t}", "@Override\n public boolean isPrivate() {\n return true;\n }", "public static void main(String[] args) {\n\t\tZ01_Person p01 = new Z01_Person();\r\n//\t\tSystem.out.println(p01.name);\r\n//\t\t접근제어자가 private는 외부 클래스에서 호출해서 사용할 수 없다.\r\n\t\t\r\n\t\t// 상단에 선언한 패키지명가 아니기 때문에 접근이 불가능\r\n//\t\tSystem.out.println(p01.address);\r\n\t\t// 상속관계가 없기 때문에 에러 발생\r\n//\t\tSystem.out.println(p01.inherit);\r\n\t\t// annouce는 public이기에 접근 가능..\r\n\t\tSystem.out.println(p01.announce);\r\n\t}", "@Test\r\n public void testSetMemberId()\r\n {\r\n System.out.println(\"setMemberId\");\r\n int memberId = 0;\r\n String occupation = \"Doctor\";\r\n String[] hobbies = {\"Reading\", \"Cooking\"};\r\n int id = 5;\r\n LifeStyleBean instance = new LifeStyleBean(occupation, hobbies, id);\r\n instance.setMemberId(memberId);\r\n }", "@Override\n public void get() {}", "public void setName(String newName) { throw new NotImplementedException(\"Variable names are final!\"); }", "@Test\n public void testPrivateAccessForProperties3() {\n testError(\n srcs(\n \"/** @constructor */ function Foo() {}\"\n + \"/** @private */ Foo.prototype.bar_ = function() {}; (new Foo).bar_();\",\n \"Foo.prototype.baz = function() { this.bar_(); };\"),\n BAD_PRIVATE_PROPERTY_ACCESS);\n }", "public static void main(String[] args) {\n\t\tCheckAccess_moderfier ac=new CheckAccess_moderfier();\n\t\tac.defaultmethos();\n\t\tac.accessmedthos();\n\t\tSystem.out.println(ac.i);\n\t\t\n\t//\tSystem.out.println(ac.j);\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "@Test\n public void testSetNombre() {\n System.out.println(\"setNombre\");\n String nombre = \"T-3\";\n DboEdificio instance = new DboEdificio(1, \"T-3\");\n instance.setNombre(nombre);\n \n }", "@Test\n\tpublic void testSettersAddress() {\n\t\tassertTrue(beanTester.testSetters());\n\t}" ]
[ "0.65317917", "0.61464244", "0.61447173", "0.6143708", "0.61065185", "0.61065185", "0.6106013", "0.6060651", "0.5994559", "0.59939545", "0.5913083", "0.58980757", "0.5847231", "0.58397406", "0.5837217", "0.5836808", "0.5817325", "0.57754034", "0.5771487", "0.5768305", "0.57657033", "0.576221", "0.5752708", "0.5747117", "0.5742805", "0.5742647", "0.5730415", "0.57260805", "0.57105315", "0.570171", "0.5695186", "0.5688668", "0.5673878", "0.5672045", "0.56634396", "0.56490195", "0.5640024", "0.56332415", "0.5584475", "0.55827063", "0.55649674", "0.5554521", "0.5527685", "0.5527284", "0.5517247", "0.55162364", "0.55146545", "0.55145437", "0.55072916", "0.54942375", "0.5493968", "0.54932314", "0.54883486", "0.54872876", "0.54740924", "0.5469563", "0.5462735", "0.54543513", "0.54488796", "0.5444255", "0.5431892", "0.54273385", "0.5426593", "0.5425666", "0.5422172", "0.5421964", "0.54218996", "0.54197055", "0.54172826", "0.54165447", "0.54077333", "0.54039025", "0.54032785", "0.5398113", "0.53884166", "0.53806376", "0.53745854", "0.5368727", "0.5364743", "0.5355472", "0.5353569", "0.534892", "0.5344448", "0.5342453", "0.53409576", "0.53389335", "0.533558", "0.531967", "0.53135395", "0.5311318", "0.5307635", "0.53075236", "0.5303538", "0.52980304", "0.52942055", "0.5291515", "0.52909535", "0.5287592", "0.52862257", "0.5284121", "0.5282375" ]
0.0
-1
the other way to name the argument
public void setLastName(String lastName){ //this keyword refers to the instance //is the local variable/argument //this is called shadowing lastName = this.lastName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "java.lang.String getArg();", "Argument createArgument();", "@Override\n protected String getName() {return _parms.name;}", "@Override\n\tpublic void traverseArg(UniArg node) {\n\t}", "private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }", "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "public void setName(String arg0) {\n\t\t\n\t}", "public String visit (StringArgument aArg)\n {\n return aArg.getValue ();\n }", "@Override\n\tpublic void setName(String arg0) {\n\n\t}", "abstract public String named();", "@Override\n public String getInputArg(String argName) {\n Log.w(TAG, \"Test input args is not supported.\");\n return null;\n }", "public void bla(String username) {\n }", "java.lang.String getParameterName();", "public void companyName(String name) {\n\t\tSystem.out.println(\"One argument\");\n\t\tSystem.out.println(\"Name:\"+name);\n\t}", "public void setName(java.lang.String aName);", "Argument metavar(String... metavar);", "@Override\n\tpublic void addArg(FormulaElement arg){\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@NotNull\n public String getName() {\n return \"Validate Call Argument..\";//InspectionsBundle.message(\"inspection.comparing.references.use.quickfix\");\n }", "@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}", "@Override\n\tprotected final void setFromArgument(CommandContext<ServerCommandSource> context, String name) {\n\t}", "@Test\n void getArgString() {\n }", "abstract String name();", "public String saySomething(String name) {\n return name;\n }", "void getName(String name);", "@Override\n public int getNumberArguments() {\n return 1;\n }", "int getArgIndex();", "public String getArgumentString() {\n\t\treturn null;\n\t}", "MyArg(int value){\n this.value = value;\n }", "public void method_213(String var1) {}", "@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}", "void visitArgument(Argument argument);", "public void setName(final String pName){this.aName = pName;}", "public void setName(String n){ name=n; }", "public void setName(String name){this.name=name;}", "protected void sequence_Argument(ISerializationContext context, Argument semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.ARGUMENT__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.ARGUMENT__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getArgumentAccess().getNameSTRINGTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}", "public void setName(String name){this.name = name;}", "OclExpression getArgument();", "public interface NameFactory\n{\n /**\n * Returns a unique (descriptive?) parameter name for the specified\n * type.\n *\n * @param sig - signature of the declaring method\n * @param n - the parameter number whose name we want.\n * @return a made up name for the n'th parameter\n */\n public String getParameterName(Signature sig, int n);\n}", "public String getParameter(String name) throws IllegalArgumentException {\n\t if ( LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"getParameter() \" \n\t\t+ name);\n Via via=(Via)sipHeader;\n \n if (name == null) throw new\n IllegalArgumentException(\"JAIN-EXCEPTION: null argument\");\n return via.getParameter(name);\n }", "String getParam( String paraName );", "public interface Named {\r\n public void setNameParameter(String o);\r\n public String getNameParameter();\r\n}", "@Override\n public String toParamName(String name) {\n name = name.replaceAll(\"-\", \"_\");\n\n // if it's all uppper case, do nothing\n if (name.matches(\"^[A-Z_]*$\")) {\n return name;\n }\n\n // camelize(lower) the variable name\n // pet_id => petId\n name = camelize(name, true);\n\n // for reserved word or word starting with number, append _\n if (reservedWords.contains(name) || name.matches(\"^\\\\d.*\")) {\n name = escapeReservedWord(name);\n }\n\n return name;\n }", "protected abstract String name ();", "void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }", "String toParameter();", "private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void setName(String n);", "@Override\n public String visit(Name n, Object arg) {\n return null;\n }", "@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}", "public java.lang.String getArg() {\n\t\t\tjava.lang.Object ref = arg_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t} else {\n\t\t\t\tcom.google.protobuf.ByteString bs =\n\t\t\t\t\t\t(com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\targ_ = s;\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}", "public java.lang.String getArg() {\n\t\t\t\tjava.lang.Object ref = arg_;\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\tcom.google.protobuf.ByteString bs =\n\t\t\t\t\t\t\t(com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\targ_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t} else {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t}\n\t\t\t}", "public BaseNode getArgument()\r\n\t{\r\n\t\treturn _argument;\r\n\t}", "@Override\n public String visit(ReceiverParameter n, Object arg) {\n return null;\n }", "@Given(\"^I want to write a step with \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void i_want_to_write_a_step_with_name(String arg1) throws Throwable {\n\t System.out.println(arg1);\r\n\t}", "public SignalArgumentExpressionTest(String name) {\n\t\tsuper(name);\n\t}", "public void setArgumentSource(java.lang.String value);", "public abstract void setName(String name);", "public abstract void setName(String name);", "@Override\n public String visit(NameExpr n, Object arg) {\n return null;\n }", "public static String arg(CommonTree ast, IRTree irt)\n {\n Token t = ast.getToken();\n int tt = t.getType();\n if (tt == STRING) {\n String tx = t.getText();\n int a = Memory.allocateString(tx); \n String st = String.valueOf(a);\n irt.setOp(\"MEM\");\n irt.addSub(new IRTree(\"CONST\", new IRTree(st)));\n return \"string\";\n }\n else {\n expression(ast, irt);\n return \"real\";\n }\n }", "@Override\n public String kind() {\n return \"@param\";\n }", "String getName( String name );", "Argument help(String help);", "public static String buildArgumentName(String attName) {\n return new StringBuilder(\":\").append(attName).toString();\n }", "String getArguments();", "static public void main(String... va) {\n }", "abstract String getName();", "static int type_of_call(String passed){\n\t\treturn 1;\n\t}", "public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }", "@Override\n public int getArgLength() {\n return 4;\n }", "public void printHelloWorld2(String name) {\n\t\tSystem.out.println(\"Hi \" + name +\", Hello World!\");\n\t\tname=\"Modified name\"; //no effect because of pass by value\n\t}", "@Override\n\tpublic void visit(JdbcNamedParameter arg0) {\n\t\t\n\t}", "public Object getArgument() {\n return mArgument;\n }", "void setName(String name_);", "public void setParamName(String paramName)\r\n/* 18: */ {\r\n/* 19:51 */ this.paramName = paramName;\r\n/* 20: */ }", "public static void name_of_dog(String name){\n System.out.println(\"My name is: \"+ name);\n }", "@Override\n public String named() {\n return \"soul\";\n }", "void setName(String strName);", "NamedParameter createNamedParameter();", "public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }", "protected boolean requireArgument(Node node, int idx, String argName)\n {\n if (!hasArgument(node, idx)) {\n rsvc.error(\"#\" + getName() + \"() error : \" + argName + \" argument required\");\n return false;\n }\n return true;\n }", "static void giveName() {\n System.out.println(name);\n }", "protected void setParameterName( String strParameterName )\n {\n _strParameterName = strParameterName;\n }", "public void addArgument(String arg) {\n\t\tthis.arguments.add(arg);\n\t}", "protected abstract void setMyName(String name);", "UUID createArgument(ArgumentCreateRequest request);", "public final void setName(String name) {_name = name;}", "public void method(String name) {\n System.out.printf(\"Called method with parameters %s \\n\", name);\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public void setArgs(java.lang.String value) {\n this.args = value;\n }", "public static void main(String arg[]) {\n\n }", "@Override\n public void setName(String name) {\n \n }", "@Override\n public String execute(String argument) {\n try {\n if (!argument.isEmpty()) {\n throw new WrongArgumentException();\n }\n\n System.out.println(\"Программа успешно завершена!\");\n System.exit(0);\n } catch (WrongArgumentException e) {\n System.out.println(\"Используйте: '\" + getName() + \"'\");\n } catch (Exception e) {\n System.out.println(\"Что-то пошло не так. Повторите ввод.\");\n }\n return argument;\n }", "public void setName(String newName) { throw new NotImplementedException(\"Variable names are final!\"); }", "@Override\n\tpublic void setName(String name) {\n\t\t\n\t}", "public void removeName(int arg0) {\n\n\t}" ]
[ "0.76177484", "0.7264819", "0.67038184", "0.64115417", "0.6268017", "0.6215327", "0.6203062", "0.61829484", "0.6144266", "0.6137354", "0.6104387", "0.6094005", "0.6061555", "0.60468155", "0.60058475", "0.59965795", "0.59859335", "0.5975918", "0.5944221", "0.5944221", "0.5914327", "0.59085715", "0.5894019", "0.58933055", "0.5893183", "0.58773786", "0.5875701", "0.5871082", "0.5860471", "0.582437", "0.58145535", "0.57974005", "0.5796454", "0.5795909", "0.57743627", "0.5764702", "0.5745335", "0.5743723", "0.57436067", "0.57432", "0.57406485", "0.5739325", "0.5732684", "0.57277733", "0.57243717", "0.5724336", "0.5689016", "0.568629", "0.5676926", "0.5672972", "0.565836", "0.562751", "0.5618453", "0.56139696", "0.56082994", "0.56049836", "0.55938923", "0.5574817", "0.5573365", "0.5571822", "0.5570247", "0.5570247", "0.55676764", "0.55651975", "0.5563436", "0.5556389", "0.55502266", "0.5548496", "0.55438346", "0.5541967", "0.55365014", "0.5535934", "0.5524449", "0.5518238", "0.551763", "0.5512148", "0.5507225", "0.55048776", "0.55021113", "0.55020964", "0.5500233", "0.54990524", "0.5497414", "0.5494644", "0.5487028", "0.5483658", "0.5481442", "0.54768777", "0.54672086", "0.54643524", "0.54598796", "0.5459126", "0.5452229", "0.5452121", "0.5450132", "0.54454714", "0.5444742", "0.54404795", "0.543659", "0.54363984", "0.5433974" ]
0.0
-1
there is intentionally no setID ID is locked in after the instance is created
public void setGrade (double grade){ this.grade = grade; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setID() {\n\t\tthis.ID = UUID.randomUUID().toString();\n\t}", "private Locks() {\n\t\tlockId = ObjectId.get().toString();\n\t}", "private void AutoID() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Test\r\n public void testSetId() {\r\n System.out.println(\"setId\");\r\n int lId = 0;\r\n \r\n instance.setId(lId);\r\n assertEquals(lId, instance.getId());\r\n \r\n }", "public void setInternalId()\n {\n // generate a unique id that will be used for the internal id:\n UUID uuid = UUID.randomUUID();\n this.internalId = uuid.toString();\n }", "private void setId(Integer id) { this.id = id; }", "private static int nextInstanceID()\n {\n return baseID.incrementAndGet();\n }", "public Object setID(int iD)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setId : \" + \"Agent\");\r\n/* 51 */ \tthis.myID = iD;\r\n/* 52 */ \treturn this;\r\n/* */ }", "private void setId() {\n id = count++;\n }", "private IdServer() {\n\t\t//System.out.println(\"Creating new instance of ID Server!\");\n\t\tclientIDCounter = 1;\n\t\tmemberIDCounter = 1;\n\t\tticketIdCounter = 1;\n\t}", "protected int getID(){\r\n\t\treturn this.ID;\r\n\t}", "public void setID() throws IOException;", "public void setID(String idIn) {this.id = idIn;}", "int getIdInstance();", "public String getUniqueID ( ) { return _uniqueID; }", "@Override\n public int loadAutoID() {\n return 0;\n }", "@Test\n public void testSetId() {\n System.out.println(\"setId\");\n Long id = null;\n Reserva instance = new Reserva();\n instance.setId(id);\n \n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public int id() {return id;}", "private Long createId() {\n return System.currentTimeMillis() % 1000;\n }", "@Test\n public void testSetId() {\n System.out.println(\"setId\");\n Member instance = member;\n \n String id = \"new Id\";\n instance.setId(id);\n \n String expResult = id;\n String result = instance.getId();\n \n assertEquals(expResult,result);\n }", "@Override\n public final void setItsId(final Long pId) {\n //stub\n }", "@Override\n\tpublic void setUniqueId(int id) {}", "public void setID(java.lang.String ID) { throw new RuntimeException(\"Stub!\"); }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void generateID()\n {\n ID = this.hashCode();\n }", "@Override\n\tpublic int getID() {\n\t\treturn 1;\n\t}", "public void setId(int id){ this.id = id; }", "public int getId(){ return id; }", "@Override\n\tpublic int getID() {\n\t\treturn 0;\n\t}", "public ObjectID() {\n UUID u = UUID.randomUUID();\n data = storeData(u, IDVersion.SIMPLE);\n }", "public void setID(long id);", "public int getId(){\r\n return localId;\r\n }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public static void resetId() {\r\n nextid=1;\r\n }", "public int getUniqueID() { \n return -1;\n }", "private Integer getId() { return this.id; }", "protected int getUniqueID() {\n\t\treturn uniqueID;\n\t}", "public void setId(long id) {\n id_ = id;\n }", "private UniqueIdentifier(){\n\t\t\n\t}", "protected void NewIdentity()\n\t{\n\t\tthis.identity=0L;\n\t\tNodeReference nodeRef = getNodeReference();\n\t\tnodeRef.appendSubscript(0L);\n\t\tnodeRef.appendSubscript(\"id\");\n\t\tthis.identity=nodeRef.increment(1);\n\t}", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "@Override\r\n public int getId() {\n return id;\r\n }", "public long getId() { return _id; }", "@Test\n void testGetAndSetId() {\n isLockedRequest2.setId(3);\n assertEquals(3, isLockedRequest2.getId());\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "@Override\n public long getId() {\n return id;\n }", "void setId(ID id);", "public static void resetValidID() {\n nextId = 0;\n }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setID(int id){\n this.id=id;\n }", "protected void setID(int i){\r\n\t\tthis.ID = i;\r\n\t}", "public void setID(String newID)\r\n {\r\n id=newID;\r\n }", "public String getUniqueID();", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public void setID(int id){\n this.ID = id;\n }", "public int getInstanceID()\n {\n return super.getPersistenceID();\n }", "private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}", "public void setId(String id)\r\n/* 19: */ {\r\n/* 20:17 */ this.id = id;\r\n/* 21: */ }", "@Override public String getID() { return id;}", "@Override\n\tpublic void setId(Integer arg0) {\n\n\t}", "@Test\n public void testSetId() {\n System.out.println(\"setId\");\n long id = 0L;\n DTO_Ride instance = dtoRide;\n instance.setId(id);\n long result = instance.getId();\n assertEquals(id, result);\n }", "@Override\n public int getId() {\n return 0;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setID(int id);", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getID() {return id;}", "public int getID() {return id;}", "@Override\n public void freeId( long id )\n {\n }", "@Override\n public long getId() {\n return super.getId();\n }", "public void setID(Integer ID){\n this.ID = ID;\n }", "private MAID(int maID){\n\t\t\n\t\t\n\t\tthis.id = maID;\n\t}", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "long getInstanceID();", "public abstract void setId(int id);", "public int getId() {\n return instance.getId();\n }", "public void setId(ID id)\n {\n this.id = id;\n }", "@Override\n public long getID()\n {\n return this.id;\n }", "public int getID(){\n return id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public int getID() {\r\n return id;\r\n }" ]
[ "0.67976", "0.6777397", "0.67608005", "0.6757326", "0.66151273", "0.66145843", "0.66051245", "0.6589708", "0.6506359", "0.64836377", "0.64805746", "0.64779544", "0.6439864", "0.640966", "0.64020056", "0.6387507", "0.6379884", "0.6358096", "0.63557035", "0.63497746", "0.6346475", "0.6339519", "0.63368964", "0.6322734", "0.63184637", "0.63184637", "0.63184637", "0.62947637", "0.62943774", "0.6279214", "0.6278146", "0.6257775", "0.62574613", "0.62496877", "0.62495613", "0.6249178", "0.6249178", "0.6249178", "0.6249178", "0.6249178", "0.6249178", "0.62451637", "0.62437063", "0.6241068", "0.62404627", "0.62362164", "0.6234739", "0.6233776", "0.6229148", "0.6229148", "0.6229148", "0.6229148", "0.6229148", "0.6229148", "0.6229148", "0.62178564", "0.62178564", "0.62062913", "0.6194083", "0.6191117", "0.61852896", "0.61836505", "0.6183649", "0.61799234", "0.6178103", "0.61774856", "0.61409724", "0.61409724", "0.6137778", "0.6133913", "0.6132377", "0.6131143", "0.613021", "0.613021", "0.6129204", "0.6127117", "0.6126188", "0.61163265", "0.6115806", "0.61100304", "0.6104579", "0.6099118", "0.60982686", "0.6096631", "0.6094936", "0.6084842", "0.6084842", "0.60833234", "0.60825235", "0.60822135", "0.60811764", "0.60642153", "0.60642153", "0.6062248", "0.60612345", "0.6048017", "0.60437053", "0.6037044", "0.6031585", "0.60266054", "0.60255694" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.72473437", "0.7202402", "0.71960324", "0.7177793", "0.7108265", "0.7040525", "0.70388484", "0.70126176", "0.70101976", "0.6981143", "0.69461405", "0.694", "0.69346833", "0.69183874", "0.69183874", "0.6891571", "0.6884306", "0.68758994", "0.687534", "0.68627334", "0.68627334", "0.68627334", "0.68627334", "0.6853258", "0.6847784", "0.6820167", "0.68177783", "0.68134266", "0.68132955", "0.68132955", "0.6806282", "0.68011856", "0.6798178", "0.67916524", "0.67897713", "0.6788724", "0.6783952", "0.6759952", "0.6757919", "0.6748738", "0.67445415", "0.67445415", "0.6741439", "0.67401767", "0.6726359", "0.6724678", "0.6723058", "0.6723058", "0.6721303", "0.67123276", "0.670777", "0.67050874", "0.670039", "0.66992784", "0.6697299", "0.6695259", "0.6686728", "0.668404", "0.668404", "0.6683142", "0.668091", "0.66799283", "0.6677784", "0.6669004", "0.66677624", "0.66630834", "0.66577506", "0.66577506", "0.66577506", "0.6656902", "0.66553235", "0.66553235", "0.66553235", "0.66530025", "0.66522014", "0.6650771", "0.66497517", "0.6647805", "0.66470283", "0.66469866", "0.6646818", "0.6645723", "0.66454786", "0.66439635", "0.66434425", "0.6642393", "0.6639529", "0.6635146", "0.6634077", "0.6632954", "0.66327274", "0.66327274", "0.66327274", "0.66297686", "0.66288346", "0.66275346", "0.66271275", "0.6625066", "0.6621276", "0.6619167", "0.6619167" ]
0.0
-1
TODO Autogenerated method stub
@Override public Loader<Cursor> onCreateLoader(int id, Bundle args) { String[] projection = { BooksDatabaseHelper.COLUMN_ID, BooksDatabaseHelper.COLUMN_TITLE}; CursorLoader cursorLoader = new CursorLoader(this, BooksContentProvider.CONTENT_URI, projection, null, null, null); return cursorLoader; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1