query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Gets the client trust password. | public String getClientTrustPassword() {
return Scrambler.descramble(clientTrustPassword);
} | [
"public String getTrustStorePassword() { return this.getOrCreateGlobalProperty(PROP_NAME_JKSTRUST_PASS, \"\"); }",
"public String getClientPassword() {\n return clientPassword;\n }",
"public String getTruststorePassword();",
"public String getTrustStorePassword() {\n return trustStorePassword;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prints the state name and returns an instance of the token, with the corrent type and image. | public Token printStateName(String tokenString) {
Token token;
switch(currentState) {
case DEAD:
System.out.println("DEAD");
token = null;
break;
case START:
System.out.println("START");
token = nul... | [
"public String getStateToken() {\n\t\treturn stateToken;\n\t}",
"public String getState() {\r\n StringBuilder sb = new StringBuilder();\r\n\r\n sb.append(\"Image Provider State:\").append(System.lineSeparator());\r\n sb.append(\"---------------------\").append(System.lineSeparator());\r\n sb.append(\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a diagnostic string representation of this ByteStore. | public String toString()
{
return "RfsByteStore[" + super.toString() + "]";
} | [
"public String dump() {\n return this.storage.toString();\n }",
"public String getStringRepresentation() {\n return this.huffmanTree.print();\n }",
"public String toString() {\r\n return \"byte array: \" + Arrays.toString(this.bytes) + \"\\n\"\r\n + \"current offset: \" + ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Container's getter for EmployeeVO. | public EmployeeVOImpl getEmployeeVO() {
return (EmployeeVOImpl) findViewObject("EmployeeVO");
} | [
"public ViewObjectImpl getEmployeesVO1() {\r\n return (ViewObjectImpl) findViewObject(\"EmployeesVO1\");\r\n }",
"public ViewObjectImpl getEmployeesVO1() {\n return (ViewObjectImpl)findViewObject(\"EmployeesVO1\");\n }",
"public ViewObjectImpl getEmployees_EVO1() {\n return (ViewObjec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the from field for this message. | public void setFrom(String from) {
this.from = from;
} | [
"public void setFrom(String from) {\r\n\t\tthis.from= from;\r\n\t}",
"public void setFrom(Mailbox from) {\n setMailboxList(FieldName.FROM, from);\n }",
"public void setFrom(Mailbox... from) {\n setMailboxList(FieldName.FROM, from);\n }",
"public final void setFrom(Contact from)\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__JvmParameterizedTypeReference__Group__1" $ANTLR start "rule__JvmParameterizedTypeReference__Group__1__Impl" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14918:1: rule__JvmParameterizedTypeReference__Group__1__Impl : ( ( rule__JvmParameteri... | public final void rule__JvmParameterizedTypeReference__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14922:1: ( ( ( rule__Jv... | [
"public final void rule__JvmParameterizedTypeReference__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14911:1: ( rule__... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inserts values for all keys within the specified range in random order. | private void randomInsert(final int min, final int max, final MapStorage<String> storage) {
final StorageWriter<String> writer = storage.getWriter();
final ArrayList<Integer> numbers = new ArrayList<Integer>(max - min);
for (int i = min; i < max; i++) {
numbers.add(i);
}
Collecti... | [
"@Test\n public void testRandomInsert() {\n final int min = LINEAR_INSERT_MIN;\n final int max = LINEAR_INSERT_MAX;\n\n final MapStorage<String> storage = new MapStorage<>(Math.abs(min) + max);\n this.randomInsert(min, max, storage);\n }",
"public abstract void insertRange(int start, doubl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getAttribute(String manifest, String tag,String attribute) | public static String getAttribute(Element elem, String tag, String attribute) {
if (tag.equalsIgnoreCase("ServiceManifest")) {
//System.out.println(elem.getLocalName());
String spId = elem.getAttributeNS(OPTIMIS_NS, attribute);
//System.out.println("Service Provider Id: " + spId);
if(spId.hashCode()==0) ... | [
"public static String getAttribute(String manifest, String tag,String attribute) \n {\n \n \tElement manifestElem = null;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tmanifestElem = getElement(manifest);\n\t\t\t\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t\n return \"-\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This constructor receives another solution and copies it to this one. | public Solution(Solution ot) {
Iterator<Path> it = ot.paths.iterator();
paths = new ArrayList<Path>();
while(it.hasNext()) {
Path p = new Path(it.next());
paths.add(p);
}
time = ot.time;
} | [
"Solution clone();",
"public Solution copy() {\r\n Solution copy = new Solution(f, fitness_of_parents);\r\n copy.setO(o);\r\n // Copy the chromosomes\r\n this.forEach((t) -> {\r\n copy.add(t.copy());\r\n });\r\n copy.setFitness(fitness);\r\n return copy;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Iterate Exp CS'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseIterateExpCS(IterateExpCS object) {
return null;
} | [
"public T caseIteratorExpCS(IteratorExpCS object) {\r\n return null;\r\n }",
"public T caseIteratorExpVariableCS(IteratorExpVariableCS object) {\r\n return null;\r\n }",
"public T caseLoopExpCS(LoopExpCS object) {\r\n return null;\r\n }",
"public T caseIteratorExp(IteratorExp object) {\n\t\treturn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .com.cst14.im.protobuf.EmailStauts userEmailStatus = 2; | public com.cst14.im.protobuf.ProtoClass.EmailStauts getUserEmailStatus() {
com.cst14.im.protobuf.ProtoClass.EmailStauts result = com.cst14.im.protobuf.ProtoClass.EmailStauts.forNumber(userEmailStatus_);
return result == null ? com.cst14.im.protobuf.ProtoClass.EmailStauts.UNBOUND : result;
} | [
"com.cst14.im.protobuf.ProtoClass.EmailStauts getUserEmailStatus();",
"com.cst14.im.protobuf.ProtoClass.EmailStauts getUserPhoneStatus();",
"public com.cst14.im.protobuf.ProtoClass.EmailStauts getUserEmailStatus() {\n com.cst14.im.protobuf.ProtoClass.EmailStauts result = com.cst14.im.protobuf.ProtoClass.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Orders wsdl:part names keeping in mind the "parts" attribute of WSDL soap:body | public List orderPartNames(List messageParts, List extElems)
{
List orderedPartNames = new ArrayList();
List bodyParts = null;
SOAPBody soapBody = getSOAPBody(extElems);
if (soapBody != null)
bodyParts = soapBody.getParts();
Iterator i = messageParts.iterator();
while (i.hasNext())
... | [
"public abstract SOAPPart getSOAPPart();",
"private Map getPartListFromMessage(Document doc)\n {\n Map parts = new HashMap();\n if (doc != null)\n {\n Element root = doc.getDocumentElement();\n NodeList bodies =\n root.getElementsByTagNameNS(WSIConstants.NS_URI_SOAP, \"Body\");\n /... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a MemberExpression that represents accessing a field given the name of the field. | public static MemberExpression field(Expression expression, String fieldName) { throw Extensions.todo(); } | [
"public static MemberExpression field(Expression expression, Field field) { throw Extensions.todo(); }",
"public static MemberExpression field(Expression expression, Class type, String fieldName) { throw Extensions.todo(); }",
"public static MemberExpression propertyOrField(Expression expression, String propert... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the primary key of this primary school student. | public java.lang.String getPrimaryKey() {
return _primarySchoolStudent.getPrimaryKey();
} | [
"public java.lang.String getPrimaryStudent_id() {\n\t\treturn _primarySchoolStudent.getPrimaryStudent_id();\n\t}",
"PrimaryKey getPrimarykey();",
"YAnnotPrimaryKey getPrimarykey();",
"public java.lang.String getPrimaryKey() {\n\t\treturn _person.getPrimaryKey();\n\t}",
"public String getPrimaryKey() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the filepath to the class's hero's portrait | public abstract String getHeroPortraitPath(); | [
"public abstract BufferedImage getHeroPortrait();",
"java.lang.String getPortrait();",
"public String getPortrait() {\n return portrait;\n }",
"public static String getPlayerPortrait(String playerClass) {\r\n\t\treturn playerPortraitMap.get(playerClass);\r\n\t}",
"public String getePortrait() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleDefPropertyCS" $ANTLR start "ruleDefPropertyCS" InternalMyDsl.g:4038:1: ruleDefPropertyCS returns [EObject current=null] : ( ( (lv_isStatic_0_0= 'static' ) )? otherlv_1= 'def' ( ruleUnrestrictedName )? otherlv_3= ':' ( (lv_name_4_0= ruleUnrestrictedName ) ) otherlv_5= ':' ( (lv_ownedType_6_0= ruleT... | public final EObject ruleDefPropertyCS() throws RecognitionException {
EObject current = null;
Token lv_isStatic_0_0=null;
Token otherlv_1=null;
Token otherlv_3=null;
Token otherlv_5=null;
Token otherlv_7=null;
AntlrDatatypeRuleToken lv_name_4_0 = null;
... | [
"public final EObject entryRuleDefPropertyCS() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleDefPropertyCS = null;\n\n\n try {\n // InternalMyDsl.g:4031:54: (iv_ruleDefPropertyCS= ruleDefPropertyCS EOF )\n // InternalMyDsl.g:4032:2: iv_ruleDefP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The ID of the target merchant. | public java.math.BigInteger getTargetMerchantId() {
return targetMerchantId;
} | [
"public Long getMerchantId() {\n return merchantId;\n }",
"public Long getMerchantId()\n {\n return merchantId;\n }",
"public String getMerchantId() {\r\n return merchantId;\r\n }",
"public String getMerchantId() {\n return merchantId;\n }",
"public Integer getMerchant... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the precision of the column for numeric type fields only. | public void setPrecision(Integer precision) throws DBException {
_precision = precision;
} | [
"void setPrecision(double precision);",
"void setPrecision(java.lang.String precision);",
"public void setPrecision(int value) {\n this.precision = value;\n }",
"public void setNumericValue(java.math.BigDecimal value);",
"void setMaxPrecision... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return auto answer menu item at index. | public static AutoAnswerMenuItem getAutoAnswerItem(SIPCommMenu menu,
int index)
{
int currentIx = 0;
for(int i = 0; i < menu.getItemCount(); i++)
{
if(menu.getItem(i) instanceof AutoAnswerMenuItem)
{
... | [
"public String getAnswer(int index){\n return answerList.get(index);\n }",
"public String getChoice(int index , int num)\n { return questionList.get(index).getChoice(num - 1);}",
"public String getQuestion(int index){\n return questionList.get(index);\n }",
"public String getMenuOption(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the user's last throw | public char getYourLastThrow() {
return yourLastThrow;
} | [
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getLastExposureUser();",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getLastMatterUser();",
"public int getThrow() {\n\t \treturn(playerThrow);\n\t }",
"public int getLastUserId();",
"public Date getUserLasttime() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Service interface for resolving Browsers that originate web requests with the application. | public interface BrowserResolver {
/**
* Resolve the Browser that originated the web request.
*/
Browser resolveBrowser(HttpServletRequest request);
} | [
"Browser resolveBrowser(HttpServletRequest request);",
"public interface WebBrowserServiceApi\r\n{\r\n\tpublic void openUrl(String url);\r\n}",
"public interface BrowserListener {\n /**\n * Invoked when a page has loaded.\n *\n * @param browser the browser that has loaded the page.\n */\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This sets a new minimal y for the world represented in the drawing panel. This is needed for viewport changes in order to maintain the current view. | public void setNewMinY(int y); | [
"@Override\n public void setY(int y) {\n lastPosY = this.getY();\n this.y = y;\n calculateMovementVector();\n }",
"public void setY(int y)\n\t{\n\t\t//add more code\n yPos = y;\n\t}",
"public void setYCoord(int y) { yCoord = y; }",
"void setY(int newY) {\n this.yPos = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the class name of the BulkLoader implementation to be used. | public Builder bulkLoader(final String className) {
configuration.setProperty(BULK_LOADER_CLASS_CFG_KEY, className);
return this;
} | [
"public void setClassName(String className) { this.className=className; }",
"public void setClassname(String classname) {\r\n this.classname = classname;\r\n }",
"public void setName(String name){\n className = name;\n }",
"public Builder bulkLoader(final Class<? extends BulkLoader> clazz)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get how much player has acquired morphs | private int getMorphCount()
{
return this.morphs.size();
} | [
"int getHerwinCount();",
"int getMonsterCount();",
"int getPlayerStatusCount();",
"int getWeaveCount();",
"int getExtraRewardCount();",
"int getNumberOfObjectives();",
"int getReleasePlayersCount();",
"public Integer countMedicines();",
"float getWetness();",
"int getTimesHit();",
"int getWinCou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the bedNum property. | public void setBedNum(int value) {
this.bedNum = value;
} | [
"public int getBedNum() {\n return bedNum;\n }",
"public void setBed_Count(int bed_Count) {\r\n\t\tthis.bed_Count = bed_Count;\r\n\t}",
"public void setBedNo(String bedNo) {\n this.bedNo = bedNo == null ? null : bedNo.trim();\n }",
"public String getBedNo() {\n return bedNo;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value related to the column: discard_retain | public void setDiscard_Retain (java.lang.String discard_Retain) {
this.discard_Retain = discard_Retain;
} | [
"void setRetain(boolean retain);",
"public void setRetained(boolean retained) {\n this.retained = retained;\n }",
"public void setRetained(boolean value) {\n this.retained = value;\n }",
"void setDiscardThreshold(int value);",
"public java.lang.String getDiscard_Retain () {\n\t\treturn discard... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use ChargeRequest.newBuilder() to construct. | private ChargeRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private ChargeResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ChargeInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static Request createAllocateRequest() {\n Request allocateRequ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XClass__Group_7__2" $ANTLR start "rule__XClass__Group_7__2__Impl" InternalXModel.g:1140:1: rule__XClass__Group_7__2__Impl : ( ( rule__XClass__PropertyAssignment_7_2 ) ) ; | public final void rule__XClass__Group_7__2__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalXModel.g:1144:1: ( ( ( rule__XClass__PropertyAssignment_7_2 ) ) )
// InternalXModel.g:1145:1: ( ( rule__XClass__PropertyAssignment_7_2 )... | [
"public final void rule__XClass__Group_7_3__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalXModel.g:1251:1: ( ( ( rule__XClass__PropertyAssignment_7_3_1 ) ) )\n // InternalXModel.g:1252:1: ( ( rule__XClass__Proper... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This method opens new project file from file system To choose the file we are using getFileFromJFileChooser method defined at the end of this class reader iterates through the file and reads line by line which are separated by semicolon Depending on the first string, new shape is created and added to list of shapes i... | @Override
public void mouseClicked(MouseEvent e) {
try {
BufferedReader reader;
File fileToOpen = getFileFromJFileChooser("Select project to open",
new FileNameExtensionFilter("Drawing project files", "drawing", "drawing"),
".drawing", 0);
if (... | [
"public void openFile() throws IOException, ClassNotFoundException{\n\t\tJFileChooser fileChooser = new JFileChooser();\n int returnValue = fileChooser.showOpenDialog(null);\n if (returnValue == JFileChooser.APPROVE_OPTION) {\n File selectedFile = fileChooser.getSelectedFile();\n Fil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the totalEstimatedConcurrentUsers value for this LiveStreamEvent. | public java.lang.Long getTotalEstimatedConcurrentUsers() {
return totalEstimatedConcurrentUsers;
} | [
"public void setTotalEstimatedConcurrentUsers(java.lang.Long totalEstimatedConcurrentUsers) {\n this.totalEstimatedConcurrentUsers = totalEstimatedConcurrentUsers;\n }",
"public int getTotalVirtualUsers() {\n return JobUtil.calculateTotalVirtualUsers(jobRegions);\n }",
"public Integer getTot... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getSerializer method, of class ServerHelloDoneHandler. | @Test
public void testGetSerializer() {
assertTrue(handler.getSerializer(new ServerHelloDoneMessage()) instanceof ServerHelloDoneSerializer);
} | [
"@Test\n public void testGetSerializer() {\n assertTrue(handler.getSerializer(new PskEcDheServerKeyExchangeMessage()) instanceof PskEcDheServerKeyExchangeSerializer);\n }",
"public GetSerializerCallback getSerializerProvider()\r\n {\r\n return mySerializerProvider;\r\n }",
"@Test\n\tpu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ is512BitVector Return true if this is a 512bit vector type. | private boolean is512BitVector() {
SimpleValueType svt = V.getSimpleType();
return isSimple() ? svt == SimpleValueType.v8i64 : isExtended512BitVector();
} | [
"public boolean hasField512() {\n return fieldSetFlags()[512];\n }",
"public boolean is128BitVector() {\n\t\tif (!isSimple())\n\t\t\treturn isExtended128BitVector();\n\n\t\tSimpleValueType svt = V.getSimpleType();\n\n\t\treturn (svt == SimpleValueType.v16i8 || svt == SimpleValueType.v8i16 || svt == Simple... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that indicates that all open resources must be closed and cleaned and that the entire indexing operation has been completed. | public void close() throws IndexerException {
//TODO
} | [
"private void closeAll() {\n try { \n try {\n if ((this.adapter != null) && (this.searcher != null)) {\n this.adapter.closeSearcher(this.searcher);\n }\n } catch (Exception ef) {\n LOGGER.log(Level.WARNING,\"IndexSearcher failed to close.\",ef);\n }\n try {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct new EJBContainerImpl instance and deploy found modules. | void deploy(Map<?, ?> properties, Set<File> modules) throws EJBException {
File app = null;
try {
app = getOrCreateApplication(modules);
if (_logger.isLoggable(Level.FINE)) {
_logger.fine("[EJBContainerImpl] Deploying app: " + app);
}
... | [
"private void start() throws EJBRegistrationException {\r\n try {\r\n Properties properties = new Properties();\r\n properties.put(Context.INITIAL_CONTEXT_FACTORY, \"org.apache.openejb.client.RemoteInitialContextFactory\");\r\n properties.put(Context.PROVIDER_URL, \"ejbd://lo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column T_SB_ZWYC_ZSZHHGQ.SSXL | public String getSsxl() {
return ssxl;
} | [
"String getCodeColumn();",
"public String getJP_BankDataCustomerCode1();",
"public String getJP_BankDataCustomerCode2();",
"public String getRatesPropertyParent() throws SQLException {\r\n String chiff = null;\r\n String query = \"SELECT ParentRatesProperty from Rate_Parent_company ;\";\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create discount at database | Discount addDiscount(Discount discount); | [
"void create(Discount discount) throws ServiceException;",
"@Override\n\tpublic int createDiscount(DiscountTable discountTable) {\n\t\tint affectedRow;\n\t\tMap<String, Object> param = DiscountMap(discountTable);\n\t\t\n\t\tSqlParameterSource paramSource = new MapSqlParameterSource(param);\n\t\tlogger.info(\"Crea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the supplier of gauge value. | Supplier<Number> getSupplier(); | [
"public String getSupplier() {\r\n\t\treturn supplier;\r\n\t}",
"public Supplier getSupplier() {\r\n\t\treturn this.supplier;\r\n\t}",
"public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }",
"Gauge getGauge(String name);",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the destinationAirport value for this IftSaiRecordType. | public void setDestinationAirport(java.lang.String destinationAirport) {
this.destinationAirport = destinationAirport;
} | [
"public void setDestinationAirport(java.lang.String destinationAirport) {\n this.destinationAirport = destinationAirport;\n }",
"public String getDestinationAirport() {\r\n return destinationAirport;\r\n }",
"public void setOriginAirport(java.lang.String originAirport) {\r\n this.orig... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
fuel consumption in miles per gallon Display the range. | double range(){
return (double) fuelcap*mpg;
} | [
"public double getRange(){\n\n double range = fuelRemaining * fuelEconomy;\n return range;\n }",
"public double getRange()\r\n\t{\r\n\t\treturn fuelCap*mpg;\r\n\t}",
"public double calcRange() {\n return fuelCap * kpl;\n }",
"int range(){\n return fuelcap*mpg;\n }",
"@SuppressWa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Drop the Student from the ClassRoll | @Override
ClassRoll drop(Student s) {
if (s.equals(this.s0)) {
return ClassRoll.drop(this.cr, s);
}
else {
return ClassRoll.enroll(ClassRoll.drop(this.cr, s), this.s0);
}
} | [
"public void dropStudent(int index) {\n student_in_couse.drop(index);\n }",
"public void dropStudent(String student){\n studentUserNameList.remove(student);\n }",
"public void removeStudent() {\r\n students.remove(students.size()-1);\r\n }",
"public void removeStudent(Student InS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
bidirectional manytoone association to CalidadDetallePccRemuestreoCajon | @OneToMany(mappedBy="camaraCajon")
public List<CalidadDetallePccRemuestreoCajon> getCalidadDetallePccRemuestreoCajons() {
return this.calidadDetallePccRemuestreoCajons;
} | [
"@ManyToOne\r\n\t@JoinColumn(name=\"idcocinaaperturacierredetalle\")\r\n\tpublic CocinaAperturaCierreDetalle getCocinaAperturaCierreDetalle() {\r\n\t\treturn this.cocinaAperturaCierreDetalle;\r\n\t}",
"@OneToMany(mappedBy=\"camaraCajon\")\r\n\tpublic List<CalidadDetallePcc> getCalidadDetallePccs() {\r\n\t\treturn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Envia el identificador del PlanTrabajoAcademia seleccionado para editar sus datos al AdministradorEdicionPlanTrabajoAcademia | private void abrirPlanParaEditar() {
final AdaptadorTablaPlanTrabajoAcademia planSeleccionado = obtenerPlanSeleccionado();
posicionSeleccionada = planesTabla.indexOf(planSeleccionado);
if (planSeleccionado != null) {
Stage escenaActual = (Stage) tableViewListaPlanes.getScene().getWin... | [
"private void editar(){\n EmpleadoLogica cl = new EmpleadoLogica();\n cl.setIdempleado(this.jFTFCodigo.getText());\n cl.setNombre(this.jTFNombre.getText());\n cl.setApellido(this.jTFApellido.getText());\n cl.setTelefono(this.jFTFTelefono.getText());\n cl.setDireccion(this.j... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Horizontally converts x, y to respective halfcourt location. | public static Location adjustForHorizontalHalfCourt(double x, double y) {
return reflect(x, y);
} | [
"private Point convertToLogical(int x, int y)\n {\n // convert to next lowest multiple of agentGUISize using int division\n int agentGUISize = Parameters.getAgentGUISize();\n int newX = (x - viewportX) / agentGUISize;\n int newY = (y - viewportY) / agentGUISize;\n\n return new ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delegate for checkRights(rightName, entity); | protected void checkRights(String rightName) {
checkRights(rightName, null);
} | [
"protected void checkRights(String rightName, IEntity entity) {\n\t\tISecurityManager manager = DAOSystem.getSecurityManager();\n\t\tIUser user = manager.getCurrentUser();\n\n\t\tif (log.isDebugEnabled()) {\n\t\t\t// disabled.\n\t\t\t/*\n\t\t\t * StringBuffer logbuffer = new StringBuffer();\n\t\t\t * logbuffer.appe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the java file info object. | @Override
public void setJavaFileInfo(JavaFileInfoTranslator javaInfo) {
javaFileInfo = javaInfo;
} | [
"protected final void setFileInformation( FileInfo fInfo) {\n\t\tm_info = fInfo;\n\t}",
"public void setJavaFileInfo(JavaFileInfo javaFileInfo) {\n this.javaFileInfo = javaFileInfo;\n }",
"public void setFile(File f) { file = f; }",
"void setFile(ICpFile file);",
"private void setFileDetails(File ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if and only if autoExpand is turned on. | public abstract boolean isAutoExpand(); | [
"public boolean isExpanded() {\r\n return expanded;\r\n }",
"public final boolean isExpanded() {\n return expanded;\n }",
"public boolean isExpanded() {\n return expanded;\n }",
"boolean isExpandable();",
"public boolean getExpand() { return expand; }",
"@Override\n publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Play card. Plays the given card if card is targetless. returns true if card can be played, false otherwise. | public boolean playCard(Card card){
boolean b = effectHandler.playCard( card , null);
return b;
} | [
"public boolean canPlayCard(AbstractCard card) {\n return true;\n }",
"public boolean playCard(Card card, Enemy enemy){\n if( isGameOver() )return false;\n if( card.isHasTarget() && !enemyController.hasEnemy(enemy) )return false;\n\n System.out.println(\"IN PLAYCARD METHOD\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column bjwg_withdrawals.withwradals_id | public void setWithwradalsId(Long withwradalsId) {
this.withwradalsId = withwradalsId;
} | [
"public Long getWithwradalsId() {\r\n return withwradalsId;\r\n }",
"public void setWithdrawAmount(double withdrawAmount) {\n this.withdrawAmount = withdrawAmount;\n }",
"public void updateWithdrawal(long id, Withdrawal withdrawal) {\n withdrawalRepository.save(withdrawal);\n }",
"With... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This represents the work actually carried out by a Task. It's a singlemethod interface so it can be defined with lambda functions, or other objects can implement it. When the action is run, it will receive an object implementing an interface through which it can report progress and errors. Alteratively, TaskAction coul... | public interface TaskAction {
/**
* This method will define an asynchronous action to take.
* The parameter is a simpler interface of Task that only allows progress reporting, to encapsulate actions and
* prevent them from seeing or modifying the task hierarchy that triggers and manages them.
*... | [
"<T> TaskOutcome<T> perform(Action action, Task<T> task, String user, Collection<Action> permissions);",
"public abstract void task();",
"public interface Task {\n\t\n\tpublic void compute();\n\n}",
"public interface Task<R> extends Serializable {\n\t/**\n\t * Uses the specified TaskPerformer to perform this ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns RuleTemplate objects belonging to the given Template Group, denoted by UUIDs | public Map<String, RuleTemplate> getRuleTemplates(String templateGroupUUID) throws TemplateManagerException {
HashMap<String, RuleTemplate> ruleTemplates = new HashMap<String, RuleTemplate>();
for (String availableTemplateGroupUUID : availableTemplateGroups.keySet()) { //todo: uuid
// If mat... | [
"public RuleTemplate getRuleTemplate(String templateGroupUUID, String ruleTemplateUUID) {\n TemplateGroup foundTemplateGroup;\n for (String availableTemplateGroupUUID : availableTemplateGroups.keySet()) {\n if (availableTemplateGroupUUID.equals(templateGroupUUID)) {\n foundTe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set increment the amount of matches played | public void setMatches() {
this.matches++;
} | [
"public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}",
"public void increaseCounter() {\n\t\tthis.guessCounter++;\n\t\t\n\t}",
"public void incGameCount() {\n\t\tthis.gameCount +=1; \n\t}",
"public void increaseTurnCount()\n\t{\n\t\tturnNumber++;\n\t\tthis.currentPlayerID++;\n\t\tthis.currentPla... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the EscalationInclDays field. | public void setEscalationInclDays(typekey.IncludeDaysType value); | [
"public void setEscalationDays(java.lang.Integer value);",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.IncludeDaysType getEscalationInclDays();",
"public void setIncDays(Integer incDays) {\r\n this.incDays = incDays;\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
System.out.println(new CommandHelloWorld("Bob").execute()); / And here is our sample client that calls the RemoteServiceTestSimulator. The call to the service is isolated and wrapped in the run() method of a HystrixCommand. Its this wrapping that provides the resilience we touched upon above: HystrixCommand.Setter conf... | public static void main(String[] args) throws InterruptedException {
HystrixCommand.Setter config = HystrixCommand
.Setter
.withGroupKey(HystrixCommandGroupKey.Factory.asKey("RemoteServiceGroupTest4"));
HystrixCommandProperties.Setter commandProperties = HystrixCommandProperties.Setter();
... | [
"public static void main(String[] args) throws ExecutionException, InterruptedException {\n// context.shutdown();\n\n// String result = new MyHystrixCommand(\"zhangsan\").execute();\n// System.out.println(result);\n// Future<String> future = new MyHystrixCommand(\"zhangsan\").queue();\n/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getCountries method, of class CountryFacade. | @Test
public void testGetCountries() throws NotFoundException {
System.out.println("getCountries");
List<CountryDTO> countries = facade.getCountries();
assertEquals(58, countries.size());
} | [
"@Test\n public void testGetCountries()\n {\n ArrayList<Country> result = mapModel.getCountries();\n assertTrue(result.isEmpty());\n }",
"@Test\n public void testGetCountries1()\n {\n \tmapModel.addCountry(country1);\n \tArrayList<Country> expResult = new ArrayList<Country>();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Returns all historical DailyStocksPrices in db for the given symbol | public StockDaily[] getAllDailyStockPrices(String symbol){
ResultSet rs = getResultSet("CALL spGetStockDaily(?)",symbol);
try{
//need to either switch to a list or get rows
ArrayList<StockDaily> stocks = new ArrayList<StockDaily>();
while(rs.next()){
StockDaily stock = new StockDaily();
stock.setO... | [
"public List<Stock> getStockPriceHistory(String stockSymbol) {\r\n List<Stock> stocks = new ArrayList<Stock>();\r\n try {\r\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\r\n Connection con = DriverManager.getConnection(\"jdbc:mysql://mysql4.cs.stonybrook.edu:3306/bweinger\", \"b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves a single crayon of the specified color and dimensions for the crayon panel in color chooser. | public static BufferedImage getSingleCrayon(Color mainColor, int width,
int height) {
BufferedImage image = getBlankImage(width, height);
int baseTop = (int) (0.2 * height);
Graphics2D graphics = (Graphics2D) image.getGraphics().create();
graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
... | [
"private JMenuItem buildColorChooser() {\n final JMenuItem chooseColor = new JMenuItem(\"Color...\");\n \n chooseColor.addActionListener(new ActionListener() {\n \n /**\n * Method for choosing the color.\n * @param theEvent a mouse-click.\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Print the clauses of the given SATSolver. | public void showClauses(SATSolver solver) {
System.out.println("Clauses:");
for (int[] clause : solver.clauses)
System.out.println(Arrays.toString(clause));
} | [
"public void printSolution()\r\n {\r\n\tint i;\r\n\tif (!solved) {\r\n\t System.out.println(\"Problem not solved yet\");\r\n\t return;\r\n\t}\r\n\t\r\n\tSystem.out.println(\"Ifail = \"+ifail);\r\n\tSystem.out.println(\"Opt Val = \"+f);\r\n\tSystem.out.println(\"Solution:\");\r\n\tfor(i=0;i<n;i++)\r\n\t ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ordering | Create a new Query ascending order segment for a Property. | public static <T> OrderBy orderBy( final Property<T> property )
{
return orderBy( property, OrderBy.Order.ASCENDING );
} | [
"public SearchBuilder<T> ascending(final String property) {\n\t\treturn orderBy(property, true);\n\t}",
"public QueryBuilder<T> orderAsc(Property... properties) {\n for (Property property : properties) {\n orders.add(new Order(property));\n }\n return this;\n }",
"public Pagin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stores value 0 to the given destination. | public static String storeStmtZero(String type, int destination) {
return "store " + type + " 0, " + type + "* %" + destination;
} | [
"private void setDestination(int destination) throws InvalidInputException {\r\n\t\tif (destination < 0){\r\n\t\t\tthrow new InvalidInputException(\"Destination must be an actual floor number\");\r\n\t\t}\r\n\t\tdestinationFloor = destination;\r\n\t}",
"public void setDestination(int destination) {\r\n\t\tthis.de... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a wordEntry from the database by wordEntryId | public void removeWordEntry(final Long wordEntryId); | [
"public void removeByFileEntryId(long fileEntryId);",
"public BlogEntry deleteBlogEntry(Long id);",
"public void removeWord(int id);",
"public void deleteGlossaryEntry(Field entryToDelete);",
"public BookmarksEntry remove(long entryId) throws NoSuchEntryException;",
"void deleteEntry(String locale, String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ convert an AccountInfo instance into a GenericEntry instance | public GenericEntry toGenericEntry() {
GenericEntry entry = new GenericEntry();
entry.addProperty("requestId", requestId);
if (completedDate != null) {
entry.addProperty("completedDate", DATE_FORMAT.format(completedDate));
}
if (requestDate != null) {
entry.addProperty("beginDate", DATE_... | [
"AccountDTO toDTO(Account account);",
"public BlogEntry convert(@NonNull final Entry entry) {\n final BlogEntry blogEntry = new BlogEntry();\n blogEntry.setAuthor(entry.getUser().getUsername());\n blogEntry.setId(entry.getId());\n blogEntry.setPrivateEntry(!entry.getSecurity().getName().equalsIgnoreCa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
void DirectionalChannelInfo_set_htlc_maximum_msat(struct LDKDirectionalChannelInfo NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); | public static native void DirectionalChannelInfo_set_htlc_maximum_msat(long this_ptr, long val); | [
"public static native void RouteHintHop_set_htlc_maximum_msat(long this_ptr, long val);",
"public static native long DirectionalChannelInfo_get_htlc_maximum_msat(long this_ptr);",
"public static native void OpenChannel_set_max_htlc_value_in_flight_msat(long this_ptr, long val);",
"public static native void Ac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Special access file handling This makes the special access file (devx_d2d) for this drive | private boolean makeSpecialAccessFile(int fileNbr,int channelDefinitionBlock)
{
int nbrOpen=cpu.readMemoryByte(cpu.addr_regs[1]+0x22);
if (nbrOpen!=0) // I can only open the special file if nothing else is open
{
this.cpu.data_regs[0]=Types.ERR... | [
"public void openUsbDevice() {\n tryGetUsbPermission();\n }",
"public native int openByPath( String devicepath );",
"public synchronized void OpsAccessRsp(byte op_code, boolean access, String filename) {\n try {\n if(D) Log.d(TAG, \"OpsAccessRsp , access : \" + access);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method sets the value of the database column tbl_user_group.user_group_id | public void setUserGroupId(Long userGroupId) {
this.userGroupId = userGroupId;
} | [
"public void setIdUserGroupuser( org.morozko.java.mod.db.dao.DAOID idUserGroupuser ) {\n this.idUserGroupuser = idUserGroupuser;\n }",
"public void setIdUserGroup( org.morozko.java.mod.db.dao.DAOID idUserGroup ) {\n this.idUserGroup = idUserGroup;\n }",
"void setGroup(String group, UserModel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form JfrmRemoverNotaFiscal | public JfrmRemoverNotaFiscal() {
initComponents();
tabela();
} | [
"public JfrmRemoverProduto() {\n initComponents();\n tabela();\n }",
"public frm_registro_admision_ingreso_registro() {\n }",
"public JfrmAlterarFornecedor() {\n initComponents();\n jtxtBuscado.setDocument(new ApenasNumeros());\n carregaTabela();\n }",
"public FormE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
MultipleChoice( int chapter, int questionNumber, String questionText, int userAnswer, int wasUserAnswerCorrect, ArrayList answerChoices, int correctAnswer) | public MultipleChoice(int chapter, int questionNumber, String questionText, int userAnswer, int wasUserAnswerCorrect, ArrayList<String> answerChoices, int correctAnswer) {
super(chapter, questionNumber, questionText, userAnswer, wasUserAnswerCorrect);
this.answerChoices = answerChoices;
this.correctAnswer = corre... | [
"public abstract String multipleChoiceQuestion(Integer numChoices, String[] options);",
"public MultipleQuestion(String question, ArrayList<String> choices){\n\t\tthis.question = question;\n\t\tthis.choices = choices;\n\t}",
"MultipleChoice createMultipleChoice();",
"public MultChoice()\n {\n super(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts provided measurement into default unit. | @Override
protected double convertToDefaultUnit(AngularSpeed value) {
return AngularSpeedConverter.convert(value.getValue().doubleValue(),
value.getUnit(), getDefaultUnit());
} | [
"public static Unit getDefaultUnit() {\r\n return (Unit)getDefaultUnit(AngularMeasurement.class);\r\n }",
"public static void setDefaultUnit(Unit unit) {\r\n setDefaultUnit(AngularMeasurement.class, unit);\r\n }",
"@Test\n public void testSetDefaultUnit() {\n System.out.println(\"s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the value of studyDateTime | public Date getStudyDateTime()
{
return studyDateTime;
} | [
"public Timestamp getValueDateTime() {\r\n return valueDateTime;\r\n }",
"public void setStudyDateTime(Date studyDateTime)\n {\n this.studyDateTime = studyDateTime;\n }",
"org.hl7.fhir.DateTime getRecordedDate();",
"@Override\r\n public String getStudyTimeHHMMSS() throws DIException {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Term__Group__6" $ANTLR start "rule__Term__Group__6__Impl" ../com.blasedef.onpa.ONPA.ui/srcgen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:2359:1: rule__Term__Group__6__Impl : ( ')' ) ; | public final void rule__Term__Group__6__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:2363:1: ( ( ')' ) )
// ../com.blasedef.onpa... | [
"public final void rule__Term__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:2181:1: ( ( '(' ) )\n // ../com.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
bool target_posting_id_null = 1006; | public boolean getTargetPostingIdNull() {
return targetPostingIdNull_;
} | [
"boolean getTargetPostingIdNull();",
"boolean getPostingIdNull();",
"public boolean getTargetPostingIdNull() {\n return targetPostingIdNull_;\n }",
"public boolean getPostingIdNull() {\n return postingIdNull_;\n }",
"public boolean getPostingIdNull() {\n return postingIdNull_;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'Binary Search'. | BinarySearch createBinarySearch(); | [
"public BinarySearch()\n {\n }",
"Search createSearch();",
"public MagicSearch createMagicSearch();",
"RSearch getSearch();",
"public BreadthFirstSearch() {\n\t}",
"public static GwebSearch create(){ \n\t\treturn impl.create();\n\t}",
"Search getSearch();",
"@Test\n public void testBinarySear... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleDataPersistenceLayer" $ANTLR start "ruleDataPersistenceLayer" InternalMyDsl.g:2237:1: ruleDataPersistenceLayer returns [EObject current=null] : (otherlv_0= 'DataPersistenceLayer' ( (lv_elements_1_0= ruleDataPersistenceContent ) ) ) ; | public final EObject ruleDataPersistenceLayer() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
EObject lv_elements_1_0 = null;
enterRule();
try {
// InternalMyDsl.g:2243:2: ( (otherlv_0= 'DataPersistenceLayer' ( (lv_elements_1_0= rul... | [
"public final EObject entryRuleDataPersistenceLayer() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleDataPersistenceLayer = null;\n\n\n try {\n // InternalMyDsl.g:2230:61: (iv_ruleDataPersistenceLayer= ruleDataPersistenceLayer EOF )\n // Interna... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Resets the deltas when the mouse is released | @Override
public void mouseReleased(MouseEvent e) {
lastPos = new Vector(-1, -1, -1);
} | [
"protected void released() {\n // the mouse is no longer being dragged\n currentMouseX = -1;\n currentMouseY = -1;\n pressedMouseLocationX = -1;\n pressedMouseLocationY = -1;\n setDragging(false);\n }",
"public static void updateReleased() {\n\t\tmouseReleased = false;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of constructor, of class Board. Left border | @Test
public void testBoardBorderLeft() {
Position exit = new Position(3, 0);
Board instance = new Board(6, 6, exit);
} | [
"@Test\r\n public void testBoardBorderRight() {\r\n Position exit = new Position(3, 5);\r\n Board instance = new Board(6, 6, exit);\r\n }",
"@Test\n\tpublic void testConstructor() {\n\t\ttestBoard = new Board();\n\t\tassertEquals(8, testBoard.getHeight());\n\t\tassertEquals(8, testBoard.getWid... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Defines the interface for figures used by the editParts ActivityEntityEditPart and ProcessEntityEditPart | public interface IEntityFigure extends IFigure {
/**
* Refreshes the EntityFigures <i>visuals</i>. This method is called by the
* org.imixs.eclipse.workflowmodeler.ui.editparts in response to notifications from the model.
*/
public void refreshVisuals(AbstractWorkflowEntity workflowEntity);
} | [
"public interface DrawingView extends ImageObserver, DrawingChangeListener { // Subject role\n\n /**\n * Sets the view's editor.\n */\n public void setEditor(DrawingEditor editor);\n\n /**\n * Gets the current tool.\n */\n public Tool tool();\n\n /**\n * Gets the drawing.\n */... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests h1[] for proper calculation of pay Adds 20 hours by using addBonus() and tests e1[] for proper pay calculation Uses Pay[] as reference for comparing Uses pay() and addBonus() from Hourly class | @Test
public void testPay() {
for(int i = 0;i < h1.length;i++) {
assertEquals(Pay[i], h1[i].pay(), 1e-6);
h1[i].addHours(20);
assertEquals(Pay[i] * 1.25, h1[i].pay(), 1e-6);
}
} | [
"@Test\n public void testHours() {\n for(int i = 0;i < h1.length;i++) {\n h1[i].addHours(40);\n assertEquals(120, h1[i].getHours());\n }\n }",
"@Test\n public void testRate() {\n for(int i = 0;i < h1.length;i++) {\n h1[i].setPayRate(5.5);\n assertEquals(5.5, h1[i].getRate(), 1e-6);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clone do Objeto Empresariais | public Empresariais clone() {
return new Empresariais(this);
} | [
"public abstract Pessoa clone();",
"Object clone();",
"@Test\r\n public void testClone() throws Exception {\r\n ListaEmpleados l = new ListaEmpleados();\r\n \r\n Empleado e2 = new Empleado();\r\n e2.setId(1);\r\n e2.setNombre(\"Chawi\");\r\n e2.setTelefono(123213);\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checking if "Share on Facebook" button exists on web page and is interactable | public static void checkAndClickShareOnFacebookButton() {
checkNoSuchElementExceptionByXPath("//*[@id=\"fackBook2\"]/img", "\"Share on Facebook\" button");
checkElementNotInteractableExceptionByXPath("//*[@id=\"fackBook2\"]/img", "\"Share on Facebook\" button");
} | [
"boolean hasShareUrl();",
"@Test\r\n\tpublic void verifySocialMediaButtons(){\r\n\t\tdriver.get(url+radioUrl+audioUrl);\r\n\t\tjse.executeScript(\r\n\t\t\t\t\"if(document.readyState==='complete'){\"\r\n\t\t\t\t+ \"document.getElementsByTagName('iframe')[0].onload = function(){\"\r\n\t\t\t\t//+ \"document.querySel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Revokes all UserSessions of the given user. | void revokeUserSessions(User user); | [
"void revokeCurrentUserSession(User user) throws NotFoundException;",
"void revokeAll(User user) throws DataBackendException, UnknownEntityException;",
"private void logOffEquationUser(EquationUser user)\n\t{\n\t\tString sessionId = null;\n\t\ttry\n\t\t{\n\t\t\tif (user == null)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the e s trial shot data with the primary key from the database. Also notifies the appropriate model listeners. | public ESTrialShotData remove(Serializable primaryKey)
throws NoSuchModelException, SystemException {
return remove(((Long)primaryKey).longValue());
} | [
"public ESTrialShotData remove(long shotDataId)\n\t\tthrows NoSuchESTrialShotDataException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tESTrialShotData esTrialShotData = (ESTrialShotData)session.get(ESTrialShotDataImpl.class,\n\t\t\t\t\tnew Long(shotDataId));... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metoden legger opp et GridPane som inneholder knapper og tekstfelt | private GridPane setInfoVindu(){
GridPane grid = new GridPane();
grid.setPadding(new Insets(13, 13, 13,13));
grid.setHgap(15);
grid.setVgap(5);
nyeTall = new TextField();
settInnTall = new Button("Sett inn");
leggInnTilfeldigeTall = new Button("Legg inn 1... | [
"public void pridajPane() {\n\t\tmojPane.setAlignment(Pos.CENTER);\n\n\t\tmojPane.getChildren().addAll(informacia, vyberPredmetov, tabulkaZiak);\n\t}",
"private void setupGridPane() {\n GridPane.setConstraints(nameLoggerViewButton, 0, 0);\n gridPane.getChildren().add(nameLoggerViewButton);\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the next available UDP Port number. | public int findAvaliableUDPPort() {
int port = 0;
int portFind = initialPort;
boolean done = false;
while (done == false) {
// Start from port 0 and see if the port is available.
try {
DatagramSocket tryPort = new DatagramSocket(portFind);
done = true;
tryPort.close();
break... | [
"protected synchronized int resolveNextAvailablePort() {\n\t\tint port = DEFAULT_PORT;\n\t\t\n\t\tif (portsInUse == null) {\n\t\t\tportsInUse = new ArrayList<Integer> ();\n\t\t} else if (portsInUse.isEmpty() ||\n\t\t\t\t!portsInUse.contains(DEFAULT_PORT)) {\n\t\t\t// Do nothing\n\t\t} else {\n\t\t\tint portInUse;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Executes runnable on OpenGL thread. This methods blocks until runnable finished executing. Note that this will also block main render thread. | protected void executeOnOpenGL (final Runnable runnable) {
final CountDownLatch latch = new CountDownLatch(1);
AtomicReference<Exception> exceptionAt = new AtomicReference<>();
Gdx.app.postRunnable(() -> {
try {
runnable.run();
} catch (Exception e) {
Log.exception(e);
exceptionAt.set(e);
}... | [
"public void glRunAsync(Runnable action) {\n\n if (isOnGLThread()) {\n action.run();\n } else {\n base.render.getView().queueEvent(action);\n }\n }",
"public void glRun(Runnable action) {\n\n if (isOnGLThread()) {\n action.run();\n } else {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the type of goods consumed by this BuildingType. | public GoodsType getConsumedGoodsType() {
return consumes;
} | [
"public String getGoodsType() {\n return goodsType;\n }",
"public GoodsType getProducedGoodsType() {\n return produces;\n }",
"public String getGoodsTypeName() {\n return goodsTypeName;\n }",
"public List<AbstractGoods> getConsumedGoods() {\n List<AbstractGoods> result = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the insuredName value for this InsuredEhm. | public java.lang.String getInsuredName() {
return insuredName;
} | [
"public void setInsuredName(java.lang.String insuredName) {\n this.insuredName = insuredName;\n }",
"public String getInsured()\r\n\t{\r\n\t\treturn insured;\r\n\t}",
"public java.lang.String getIndividualName() {\n java.lang.Object ref = individualName_;\n if (!(ref instanceof java.lang... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
reads the file only once, any susequent call will be ignored, even if the filename is different returns the number of read player ID, 1 if nothing is read as array is already initalized | protected synchronized static int readPlayerIDFromFile_( String fname, boolean debug ) {
if ( null != s_playerID ) return -1; // we already have a set of player ID
long startT = System.currentTimeMillis();
if ( debug ) System.err.print("\n#INFO [MsgModPlugin_Game314] - " + startT + " Start reading playerID fro... | [
"public static int numberofplayers (String filename) throws IOException\n {\n int countplayer = 0;\n LineNumberReader L1= new LineNumberReader(new FileReader(filename));// reading the lines by using line reader\n while ((L1.readLine())!=null) {};\t// reading the line while its not null\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
changes to random event screen. | private void doEvent() {
ApplicationController.changeScene("GUI/RandomEvent.fxml");
} | [
"public static void randomEvent(GameState game){\n String description=\"\";\n GameStats stats= game.stats;\n\n description=sick(pickCharacter(game));\n\n\n game.eventText=description;\n }",
"public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests the order of the graph and should return the correct number of vertices. | @Test
void test_001_Order() {
// Should add to the graph
graph.addVertex("1");
graph.addVertex("2");
graph.addVertex("3");
graph.addVertex("4");
// Should not add to the graph, These Vertices are already in the graph
graph.addVertex("3");
graph.addVertex("2");
graph.addVertex(null... | [
"@Test\n\tpublic void verticesTest() {\n\t\tgraph.addVertex(A);\n\t\tgraph.addVertex(B);\n\t\tgraph.addVertex(C);\n\t\tgraph.addVertex(D);\n\t\tassertEquals(4, graph.vertices().size());\n\t\tassertTrue(graph.vertices().contains(A));\n\t\tassertTrue(graph.vertices().contains(D));\n\t}",
"@Test\n public void test0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Shows the main page | public void showMainPage() {
mainFrame.showPage(mainPage.getClass().getCanonicalName());
} | [
"public void showMainPage() {\n\t\ttry {\n\t\t\t// Load MainPage.\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(MainApp.class.getResource(\"/view/MainPage.fxml\"));\n\t\t\tAnchorPane mainPage = (AnchorPane) loader.load();\n\t\t\t\n\t\t\tMainPageController controller = loader.getController()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XThrowExpression__ExpressionAssignment_2" $ANTLR start "rule__XReturnExpression__ExpressionAssignment_2" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17602:1: rule__XReturnExpression__ExpressionAssignment_2 : ( ruleXExpression ) ; | public final void rule__XReturnExpression__ExpressionAssignment_2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17606:1: ( ( ruleXExpressio... | [
"public final void rule__XReturnExpression__ExpressionAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:18639:1: ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a list of architectures from the given input list of strings. | public void setArchitecture( List<String> architecture ) {
this.architecture = architecture;
} | [
"private static void createArchitecture(String[] args) {\n\t\tArchitecture arch = new Architecture(args[1], PriceMultiplier.decideMultiplier(args[2], \"architecture\"), Double.parseDouble(args[3]), Double.parseDouble(args[4]), Double.parseDouble(args[5]));\n\t\tfor (int i = 5; i < args.length; i++) {\n\t\t\tArchite... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a array of build configurations that were built before this build configuration, as part of the current toplevel build invocation. | public IBuildConfiguration[] getAllReferencedBuildConfigs(); | [
"public IBuildConfiguration[] getRequestedConfigs();",
"public String [] getPreviouslySelectedConfigs(){\r\n\t\tIDialogSettings settings = getDialogSettings();\r\n\t\tif (settings != null) {\r\n\t\t\tString configSettings[] = settings.getArray(RECENTLY_SELECTED_BUILD_CONFIGS_STORE);\r\n\t\t\tif (configSettings !=... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write the repo object into the repo folder inside .gitlet directory for uses in next command. | private static void writerepo() {
File repofile = new File(".gitlet/repo/repofile");
Utils.writeObject(repofile, _repo);
} | [
"public void createRepo() throws IOException {\n\n //Creating workTree/.jit\n File file = new File(gitDir);\n file.mkdir();\n\n //Creating default dirs\n FileCreation.createDirectory(gitDir, \"objects\");\n FileCreation.createDirectory(gitDir, \"branches\");\n FileCr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add additional resourceKey query parameter | public <TValue> ByProjectKeyByResourceTypeGet addResourceKey(final TValue resourceKey) {
return copy().addQueryParam("resourceKey", resourceKey);
} | [
"public ByProjectKeyByResourceTypeGet addResourceKey(final Function<StringBuilder, StringBuilder> op) {\n return copy().addQueryParam(\"resourceKey\", op.apply(new StringBuilder()));\n }",
"public ByProjectKeyByResourceTypeGet addResourceKey(final Supplier<String> supplier) {\n return copy().addQ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value of the idIndex property. | public void setIdIndex ( Integer idIndex ) {
getStateHelper().put(PropertyKeys.idIndex, idIndex);
handleAttribute("idIndex", idIndex);
} | [
"void setIndex(int index);",
"private void setIndex(int index){\n\t\tthis.index = index;\n\t}",
"public void setIndex(int index) { this.index = index; }",
"public void setIndex(Index index) {\r\n _index = index;\r\n }",
"public void setIdx(int value) {\n this.idx = value;\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handles the cquit command from the server telling this client that the client specified in the argument has logged off. | public void handleCommand() {
if (Client.isLoggedIn() == false)
return;
ClientUser user = Client.getUserByName(argument);
if (user == Client.getThisUser()) {
System.err.println("Trying to remove this user? This should never happen!");
}
if (user != null) {
Client.removeUser(user);
Client.getMai... | [
"private void handleClientLogoutCmd(PacketFromClient.ClientMsg cm)\n {\n PacketFromServer.AckResponse ack = (new PacketFromServer()).new AckResponse();\n this.sendRequest(ack);\n \n this.m_status = SessionStatus.Disconnected;\n }",
"private void logout(){\r\n\t\ttry {\r\n\t\t\tse... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the first task in the ordered set where completed = &63;. | @Override
public Task fetchByCompleted_First(boolean completed,
OrderByComparator<Task> orderByComparator) {
List<Task> list = findByCompleted(completed, 0, 1, orderByComparator);
if (!list.isEmpty()) {
return list.get(0);
}
return null;
} | [
"@Override\n\tpublic Task fetchByCompletedByUser_First(boolean completed, long userId,\n\t\tOrderByComparator<Task> orderByComparator) {\n\t\tList<Task> list = findByCompletedByUser(completed, userId, 0, 1,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn nu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generate map of accelerations according to player position relative to stellar bodies | public void genAccMap(){
int i;
int j;
int k;
int G=15;
for(i=-100;i<100;i++){
double r;
double Ax;
double Ay;
if(starOnly) {
r = Math.sqrt(Math.pow(gravData[0][1] / MyGdxGame.PPM - i, 2) + Math.pow(gravData[0][2] /... | [
"private void initializeMap()\n {\n ArrayList<Point2D.Float> lineZombiePoints = new ArrayList<>();\n ArrayList<Point2D.Float> randomZombiePoints = new ArrayList<>();\n ArrayList<Point2D.Float> trapPoints = new ArrayList<>();\n ArrayList<Point2D.Float> bookPoints = new ArrayList<>();\n ArrayList<Poin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Describes common behaviors for all game asset managers. | public interface AssetManager<T> {
/**
* Reloads all assets under the auspices of the manager.
*/
void reload();
/**
* @return The number of assets managed.
*/
int size();
/**
* Determines if an asset with the given name is under management.
* @param name Name for the asset to find.
* @... | [
"public interface IGameAsset {\n\t\n\t/**\n\t * abstract method for load all game's resources in startup time.\n\t */\n\tpublic void load();\n\n\t/**\n\t * Dispose the resources in game asset when exiting game\n\t */\n\tpublic void dispose();\n\t\n\t/**\n\t * load a bitmap font by font file (*.fnt) and font image f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Float and Double use the computer's internal representation of decimal numbers (IEEE 754) This representation makes tradeoffs between accuracy and efficiency. Concretely this means that for most usecases the use of floats or doubles suffices, but for applications that require high accuracy (like when dealing with money... | public static void bigDecimal() {
System.out.println("BigDecimalExample.bigDecimal()");
BigDecimal n1 = new BigDecimal(123.456);
BigDecimal n2 = new BigDecimal(789.012);
BigDecimal n3 = new BigDecimal(-2.0);
System.out.println("n1: " + n1);
System.out.println("n2: " + n2);
System.out.println("n3: " + n3... | [
"public static void main(String[] args) {\n\n// BigDecimal a = new BigDecimal(\"9\");\n// BigDecimal b = new BigDecimal(\"10\");\n// BigDecimal c = a.divide(b).setScale(0, RoundingMode.HALF_DOWN);\n// System.out.println(c);\n\n BigDecimal a = new BigDecimal(\"9\");\n BigDec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |