query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
called when WiFi scans are disabled | @Override
public void onWifiScansDisabled() {
} | [
"public void scanWifi() {\n // get the wifi service\n WifiManager wifiManager = (WifiManager) ctx.getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n\n if (!wifiManager.isWifiEnabled()) {\n Toast.makeText(ctx, \"WiFi is disabled ... We need to enable it\", Toast.LENGTH_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This method fetch longurl and update count for shorturl clicks for today. | public String getLongUrl(String shortUrl) {
UrlService tmpService=appCtx.getBean(UrlService.class);
String arr[]=shortUrl.split("/"); //The short-url format is <domain-name>/<unique-path>
int id=tmpService.computeId(arr[1].toCharArray(),arr[1].length()); // after split arr[0] is domain name and arr[1] i... | [
"@Override\n\tpublic void addURLVisitCount(String shortUrl){\t\t\n\t\t \t\t\t\t \t\t\n\t\t \t\tint visitCount = getVisitCountList(shortUrl).getVisitCount();\t\t\n\t\t \t\tvisitCount++;\t\t\n\t\t \t\tString SQL = \"UPDATE GlobalUrlDB SET visitCount = (?) WHERE shortUrl = (?)\";\t\t\n\t\t \t\tObject[] params = new ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deserializes a Triangle from a ByteBuffer. | public static Triangle fromByteBuffer(
java.nio.ByteBuffer b) throws java.io.IOException {
return DECODER.decode(b);
} | [
"public static TripleObject fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }",
"T deserialize(ByteBuffer byteBuffer);",
"public static RawVertex fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column tb_special.createtime | public Long getCreatetime() {
return createtime;
} | [
"@Generated(value = \"org.mybatis.generator.api.MyBatisGenerator\", date = \"2020-04-12T12:59:05.835+09:00\", comments = \"Source field: USER.createdTime\")\r\n public String getCreatedtime() {\r\n return createdtime;\r\n }",
"public Long getCreatetime() {\r\n return createtime;\r\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Increases by 1 the instance count of the specified class. This also includes the increase of the instacne count of all its super class. | private void _updateCount(int classType) {
int subClass, superClass;
instances_[classType].count++;
subClass = classType;
while ( (superClass = CLASS_INFO[subClass][INDEX_SUPER]) != CS_C_NULL) {
instances_[superClass].count++;
subClass = superClass;
}
} | [
"public void incrementNumOfClassesInPackage() {\r\n setNumOfClassesInPackage(getNumOfClassesInPackage() + 1);\r\n }",
"public void increaseCount() {\r\n\t\t\tcount++;\r\n\t\t}",
"public void increment() {\n this.count++;\n }",
"int getSuperClassesCount();",
"public void increment... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
disconnect LeaveType with who in EmployeeLeave | public LeaveType planToRemoveEmployeeLeaveListWithWho(LeaveType leaveType, String whoId, Map<String,Object> options)throws Exception{
//SmartList<ThreadLike> toRemoveThreadLikeList = threadLikeList.getToRemoveList();
//the list will not be null here, empty, maybe
//getThreadLikeDAO().removeThreadLikeList(toRemo... | [
"public final LeaveType getLeaveType() {\n return leaveType;\n }",
"public final String getLeaveReason() {\n return leaveReason;\n }",
"@RequestMapping(value = \"/reject\", method = RequestMethod.POST)\n\tpublic String rejectLeaves(@RequestBody Leaves leave) {\n\n\t\tString status = ls.rejectLeavesRepos... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add some commands for setting settings | public void addCommands() {
Console.createCommand("setWorldWidth", Type.INT, new CommandListener(){
public void executed(int arg) {
System.out.println("world width is now " + arg);
Settings.getCurrent().tWidth.val = arg;
}
});
Console.createCommand("setWorldHeight", Type.INT, new CommandListener(){
... | [
"void setCommands(Map<String, ShellCommand> commands);",
"public abstract void setCommand(String cmd);",
"public void registerCommands() {\n commands = new LinkedHashMap<String,Command>();\n \n /*\n * admin commands\n */\n //file util cmds\n register(ReloadCom... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
callback from locationController when address has been requested and new address has been received | @Override
public void onLocationControllerAddressChanged(LocationController locationController)
{
Log.i(MAPSHOWFRAGMENTLOCATIONCALLBACKS, "addressChanged");
locationController.getLatestAddress();
mProgressBar.setVisibility(View.GONE);
if (locationController.getLatestAddress() !=... | [
"@Override\n\t\tpublic void addressEdited() {\n\t\t\tokCallback();\n\t\t}",
"@Override\n public void onAddressPicked(int position, int requestCode) {\n if (ADDRESS_REQ == requestCode) {\n if (currentLocalisation == null) {\n currentLocalisation = new Localisation(nearbyAddresses.get(position));... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that prints the number of communities | public void printNumberOfCommunities() {
int numberOfCommunities = 0;
for (Long vertex : visited.keySet()) {
if (visited.get(vertex) == 0) {
DFS(vertex);
numberOfCommunities++;
}
}
System.out.println("The number of communities is eq... | [
"public void printTheMostSociableCommunity() {\n int numberOfPeopleMax = 0;\n long representMaxCommunity = 0;\n for (Long vertex : visited.keySet()) {\n if (visited.get(vertex) == 0) {\n int numberOfPeople = DFS(vertex);\n if (numberOfPeopleMax < numberO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts the inputString into DD MMM YYYY format, or 12hour time representation if applicable. | public static String convertDateAndTime(String inputString) {
String trimmedInputString = inputString.trim();
if (trimmedInputString.length() < 10) {
return convertTime(inputString);
} else {
String dateString = trimmedInputString.substring(0, 10).trim();
Str... | [
"public static String parseDate(String input) {\n String year = input.substring(0, 4);\n String month = input.substring(5, 7);\n String day = input.substring(8, 10);\n return year + \"-\" + month + \"-\" + day;\n }",
"public String convertDate(String userInputDate) {\n String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'field65' field | public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField65() {
field65 = null;
fieldSetFlags()[65] = false;
return this;
} | [
"public com.dj.model.avro.LargeObjectAvro.Builder clearVar65() {\n var65 = null;\n fieldSetFlags()[66] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField1065() {\n field1065 = null;\n fieldSetFlags()[1065] = false;\n return this;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Oppretter et nytt stigespill objekt | public Stigespill() {
this.terning = new Terning();
this.brett = new Brett();
this.vinner = null;
} | [
"public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}",
"public void starkVerletzen(){\r\n\t\taktuellerZustand = aktuellerZustand.starkVerletzen();\r\n\t}",
"public void spillRunde() {\n\t\t\n\t\tfor (Spiller s : spillere) {\n\t\t\tSystem.out.println(s.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Scan to get the next Symbol. | public java_cup.runtime.Symbol scan()
throws java.lang.Exception
{
return getScanner().next_token();
} | [
"public java_cup.runtime.Symbol scan()\n throws java.lang.Exception\n {\n \n\treturn getScanner().next_token(); \n\n }",
"public java_cup.runtime.Symbol scan()\r\n throws java.lang.Exception\r\n {\r\n return getScanner().next_token(); \r\n }",
"public java_cup.runtime.Symbol scan()\n throws... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
POST /customertargets : Create a new customerTarget. | @PostMapping("/customer-targets")
@Timed
public ResponseEntity<CustomerTargetDTO> createCustomerTarget(@RequestBody CustomerTargetDTO customerTargetDTO) throws URISyntaxException {
log.debug("REST request to save CustomerTarget : {}", customerTargetDTO);
if (customerTargetDTO.getId() != null) {
... | [
"public com.google.longrunning.Operation createTarget(\n com.google.cloud.deploy.v1.CreateTargetRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getCreateTargetMethod(), getCallOptions(), request);\n }",
"@PostMapping(\"/targets\")\n @Timed\n pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check whether a state is in explored state | public boolean inExplored(int[] state)
{
for (int i = 0; i < this.explored.size(); i++) {
int[] curr = this.explored.get(i);
if ((curr[0] == state[0]) && (curr[1] == state[1])) {
return true;
}
}
return false;
} | [
"public boolean isExplored()\n {\n return explored;\n }",
"boolean isColorSet();",
"void explore() {\n explored = true;\n }",
"public void explored()\n\t{\n\t\texplored = true;\n\t\tupdateExplored(Direction.NORTH, neighbours.get(Direction.NORTH), Map.VIEW_HEIGHT);\n\t\tupdateExp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The TLS session ID. string tls_session_id = 6; | public java.lang.String getTlsSessionId() {
java.lang.Object ref = tlsSessionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tlsSessionId_ = s;
return ... | [
"@java.lang.Override\n public java.lang.String getTlsSessionId() {\n java.lang.Object ref = tlsSessionId_;\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... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the serial no. | public void setSerialNo(String serialNo) {
this.serialNo = serialNo;
} | [
"public void setSerialNum(long serialNum) {\n this.serialNum = serialNum;\n }",
"public void setSerialNo(String serialNo) {\r\n this.serialNo = serialNo;\r\n }",
"public void setSerialNum(String serialNum)\r\n\t{\r\n\t\tthis.serialNum = serialNum;\r\n\t}",
"public void setSerialNo(java.lan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__JvmParameterizedTypeReference__Group_1__1__Impl" $ANTLR start "rule__JvmParameterizedTypeReference__Group_1__2" ../org.xtext.example.helloxcore.ui/srcgen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:14290:1: rule__JvmParameterizedTypeReference__Group_1__2 : rule__J... | public final void rule__JvmParameterizedTypeReference__Group_1__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:14294:1: ( ... | [
"public final void rule__JvmParameterizedTypeReference__Group_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloX... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Should default codec chanin be used? | Boolean isAllowDefaultCodec(); | [
"Codec getCurrentCodec();",
"public void setCodec(Codec codec);",
"public Codec getCodec();",
"public interface Codec {\n public static final String MEDIA_TYPE_AUDIO = \"audio\"; \n public static final String MEDIA_TYPE_VIDEO = \"video\"; \n public static final String ATTRIBUTE_PTIME = \"ptime\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check for dataif attribute, if it doesn't eval to true, then trash element and its children | @Override
public void evalElement(final ScriptEngine engine, final Element element, final List<Node> trash) {
Map<String, String> dataSet = element.dataset();
Bindings session = engine.getBindings(engine.getContext().ENGINE_SCOPE);
try {
String condition = dataSet.get(IF_TAG);
... | [
"private Predicate<? super Element> removeAnnouncementsAndInvalidUpVotes() {\n\t\treturn e -> StringUtils.isNumeric(e.attr(\"data-score\")) &&\n\t\t\t\t !e.attr(\"data-rank\").isEmpty();\n\t}",
"private void cleanConditionally(Element e, String tag) {\n\n if (!cleanConditionally) {\n return;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new VectorClock with the maximum values of each index. This method is used to implement the merge operation. | private VectorClock max(VectorClock vc) {
VectorClock tmp = new VectorClock(this.Clock.length);
assert (this.Clock.length == vc.Clock.length);
for (int i = 0; i < Clock.length; i++) {
if (this.Clock[i] > vc.Clock[i]) {
tmp.Clock[i] = this.Clock[i];
} els... | [
"public void merge(VectorClock vc) {\n this.Clock = this.max(vc).Clock;\n }",
"public Vector max() {\n\t\treturn Vector.max(point, point.plus(size));\n\t}",
"Max createMax();",
"public T max() {\n T v = vals[0];\n for(int i=1; i < vals.length; i++)\n if(vals[i].compareTo(v) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fills an array of alert profile log descriptions that will be added to the combo box | private void populateAlertProfileLogList()
{
AlertProfileLog[] alertProfileLog = dbConnector.getAlertProfileLog();
alertProfileLogString = new String[alertProfileLog.length];
for(int i = 0; i < alertProfileLog.length; i++)
{
//if(alertProfileLog[i].getDescription() != null)
alertProfileLogString[... | [
"private void fillRoleComboBox(){\n \tfor(UserProfile aProfile:UserProfile.getAllowedUserChoise()){\n this.roleField.addItem(aProfile);\n this.roleField.setItemCaption(aProfile, bundle.getMessage(aProfile.name()));\n \t}\n }",
"private void PopulateComboReplyGrade () {\n Arra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the jplanFeeVos value for this JPlanMainVo. | public void setJplanFeeVos(com.sinosoft.sff.interf.JplanFeeVo[] jplanFeeVos) {
this.jplanFeeVos = jplanFeeVos;
} | [
"public com.sinosoft.sff.interf.JplanFeeVo[] getJplanFeeVos() {\n return jplanFeeVos;\n }",
"public void setFee(BigDecimal fee) {\r\n this.fee = fee;\r\n }",
"public void setFee(BigDecimal fee) {\n this.fee = fee;\n }",
"void setFeePlanData(nc.itf.crd.webservice.izyhtwebservice.F... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test get converted domain from dTO for error. | @Test
public void testGetConvertedDomainFromDTOForError( ) throws Exception {
logger.debug( "Starting testGetConvertedDomainFromDTOForError" );
Privilege privilege = new Privilege( );
IllegalArgumentValueException illegalArgumentValueException = null;
NullPointerException nullPoint... | [
"@Test\n public void testGetConvertedDomainFromDTOForError( ) throws Exception {\n\n logger.debug( \"Starting testGetConvertedDomainFromDTOForError\" );\n Address address = new Address( );\n IllegalArgumentValueException illegalArgumentValueException = null;\n NullPointerException nu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add line number and method name with tag | @Override
protected String createStackElementTag(StackTraceElement element) {
//The brace will generate clickable link in Logcat window
//Stability depends on developers comfort level
return "(" + element.getFileName() + ':' + element.getLineNumber() + "):"+el... | [
"public String _settag(Object _tag) throws Exception{\n_mbase.setTag(_tag);\n //BA.debugLineNum = 237;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"proto.Logline.LogLine.Tag getTag(int index);",
"long getTraceTag();",
"protected void addTags(Host host) {\n Options options = Options.v();\n if (options.k... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Action__Group_4__0__Impl" $ANTLR start "rule__Action__Group_4__1" ../esir.lsi.imtql.ui/srcgen/robot/ui/contentassist/antlr/internal/InternalDsl.g:1336:1: rule__Action__Group_4__1 : rule__Action__Group_4__1__Impl rule__Action__Group_4__2 ; | public final void rule__Action__Group_4__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../esir.lsi.imtql.ui/src-gen/robot/ui/contentassist/antlr/internal/InternalDsl.g:1340:1: ( rule__Action__Group_4__1__Impl rule__Action__Group_4__2 )
... | [
"public final void rule__Action__Group_4_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../esir.lsi.imtql.ui/src-gen/robot/ui/contentassist/antlr/internal/InternalDsl.g:1467:1: ( rule__Action__Group_4_2__1__Impl )\n // ../... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
template used to construct the subject of an Zimbra version check notification message | @ZAttr(id=1065)
public void setVersionCheckNotificationSubject(String zimbraVersionCheckNotificationSubject) throws com.zimbra.common.service.ServiceException {
HashMap<String,Object> attrs = new HashMap<String,Object>();
attrs.put(Provisioning.A_zimbraVersionCheckNotificationSubject, zimbraVersionC... | [
"public VersionMessage getVersionMessage();",
"@ZAttr(id=1065)\n public void unsetVersionCheckNotificationSubject() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraVersionCheckNotificationSubject, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Logic for undoing this PaletteToBullpenMove. Removes the piece from the bullpen | public boolean undo() {
Bullpen bpen = level.getBullpen();
bpen.removePiece(selectedPiece);
return true;
} | [
"public void playerUndo(){\n\t\t\n\t\t//Create Previous List of alive pieces\n\t\tsetPrevAliveList(alivePieces);\n\t\t\n\t\t//Clearing the list\n\t\talivePieces.clear();\n\t\t\n\t\t//Adding previous state alive pieces to the current list\n\t\tfor(ChessPiece piece : prevAlivePieces){\n\t\t\talivePieces.add(piece);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returnes a simplified version of the current expression. In case of an unexpected error, the original expression will be returned. | @Override
public Expression simplify() {
Expression result = this.getExpression();
try {
//checking stepes
//If there are no variables in the expression, eavluate it
List<String> vars = result.getVariables();
if (vars.isEmpty()) {
... | [
"default Expression simplifyToExpression() {\n simplify();\n return toExpression();\n }",
"@Override\n public Expression simplify() {\n return this;\n }",
"public Expression simplify() {\r\n return this;\r\n }",
"public Expression simplify() {\n return this;\n }",
"@O... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a MarketDataDTO containing the best buy side price and volume, and the best sell side price an volume | public synchronized MarketDataDTO getMarketData() {
Price bestBuyPrice = getBuySide().topOfBookPrice();
Price bestSellPrice = getSellSide().topOfBookPrice();
if (bestBuyPrice == null) bestBuyPrice = PriceFactory.makeLimitPrice(0);
if (bestSellPrice == null) bestSellPrice = PriceFactory.makeLimitPrice(0);
int ... | [
"private PriceModelDTO getDefaultPrice(BigDecimal rate) {\r\n PriceModelDTO model = new PriceModelDTO();\r\n model.setRate(rate);\r\n model.setType(PriceModelStrategy.METERED);\r\n \r\n return model;\r\n }",
"@Override\n public Trade getBestSell(String symbol) {\n Tra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the invisible child model from a model. Created : Nov 25, 2004 12:36:59 PM Author : Christopher Harper account : HARPECHR | public InvisibleModel getInvisibleRootModel(final Model model)
{
final Model[] children = model.getChildren();
if(children.length == 1 && (children[0] instanceof InvisibleModel))
{
return (InvisibleModel) children[0];
}
return null;
} | [
"protected List getModelChildren() {\n Object model = getModel();\n if(model!=null && model instanceof View){\n return new ArrayList(((View)model).getVisibleChildren());\n }\n return Collections.EMPTY_LIST;\n }",
"public InvisibleModel getInvisibleRootModel()\n\t{\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method used to unlink a Transaction from a Category in the database. | public void unlinkTransactionFromCategory(int userID, long transactionID, long categoryID) {
try {
PreparedStatement statement = connection.prepareStatement(UNLINK_TRANSACTION_FROM_CATEGORY);
statement.setInt(1, userID);
statement.setLong(2, transactionID);
statem... | [
"public void unlinkCategoryFromAllTransactions(int userID, long categoryID) {\n try {\n PreparedStatement statement = connection.prepareStatement(UNLINK_CATEGORY_FROM_ALL_TRANSACTIONS);\n statement.setInt(1, userID);\n statement.setLong(2, categoryID);\n statement.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end of story methods reset sets all of the visited boolean values to false. | public void reset(){
barn.setVisited(Boolean.FALSE);
turkeyTalk.setVisited(Boolean.FALSE);
pigginOut.setVisited(Boolean.FALSE);
seeTheLight.setVisited(Boolean.FALSE);
theGobbling.setVisited(Boolean.FALSE);
youDied1.setVisited(Boolean.FALSE);
threeLittlePigs... | [
"public void clearVisited()\r\n {\r\n visited = false;\r\n }",
"public void resetVisited() {\n\t\tthis.visited = new HashSet<Point>();\n\t}",
"public void clear() {\n\t\tvisited = false;\n\t}",
"public void reset() {\n\t\twalkSteps.clear();\n\t}",
"private void setAllUnvisited(){\n\t\tfor(int i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XUnaryOperation__Group_0__1__Impl" $ANTLR start "rule__XUnaryOperation__Group_0__2" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:19230:1: rule__XUnaryOperation__Group_0__2 : rule__XUnaryOperation__Group_0__2__Impl ; | public final void rule__XUnaryOperation__Group_0__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:19234:1: ( rule__XUnaryOperation__G... | [
"public final void rule__XUnaryOperation__Group_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:5942:1: ( rul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
by doing so, the player can choose to either use mouse or up key to do the jump | public void mouseClicked(MouseEvent e) {
//if the player has already pressed the jump and thus changing the status
//so only when a player has not double jump before, and is now jumping, and also has
//the power up present could this player double jump
if(this.player.getDoubleJump() && this.player.getPowerUp() ... | [
"public void act() \n {\n if(Greenfoot.mouseClicked(this))\n {\n String x= Greenfoot.ask(\"Jump Key\");\n if(validKey(x)){\n if(!(keyInUse(x))){\n Player.keyJump = x;\n }else{\n JOptionPane.showMessageDialog(nu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Name: isPrime() Description: Getter function for this.isPrime Arguments: N/A Returns boolean true if this.number is prime false otherwise | public boolean isPrime() {
return this.isPrime;
} | [
"public boolean isPrime()\n\t{\n\t\treturn isPrime(value);\n\t}",
"boolean isPrimeNumber(long number);",
"public boolean isPrime()\r\n\t{\r\n\t\tif (currentNumber == 2 || currentNumber == 0)\r\n\t {\r\n\t \tprocessLastDigit();\r\n\t\t\treturn true;\r\n\t }\r\n\t\telse if (currentNumber % 2 == 0)\r\n\t ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove the given setting value from the persistence layer. | public void deleteSettingValue(final SettingValue settingValue) {
try {
settingsDao.deleteSettingValue(settingValue);
} catch (final EpPersistenceException ex) {
throw new EpServiceException(
"Unable to remove the settingValue: " + settingValue, ex);
}
} | [
"void remove(String setting) throws KeyStoreException {\n keystore.get().deleteEntry(setting);\n settingTypes.remove(setting);\n }",
"UserSettings remove(String key);",
"public void removeSetting(Player player){\n\t\tremoveSetting.add(player);\n\t}",
"public void removeSysConfigValue(final St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column old_users.extended2 | public String getExtended2() {
return extended2;
} | [
"public String getExtend2() {\r\n return extend2;\r\n }",
"public String getExtend2() {\n return extend2;\n }",
"public String getExtfield2() {\r\n\t\treturn extfield2;\r\n\t}",
"public String getExt2() {\n return ext2;\n }",
"public String getExtAttribute2() {\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the highlight colour for this node | public void setHighlightColor(Color c) {
this.highlightColor = c;
} | [
"public void setHighlight(Color highlight)\r\n {\r\n this.highlightFg = highlight;\r\n this.highlightBg = highlight;\r\n }",
"public void highlightNode() {\n\t\tbHighlighted = !bHighlighted;\n\t\tif (bHighlighted) {\n\t\t\tppDisplayBox.setBorderColor(NODE_HIGHLIGHT_COLOR);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Testing that the column name is correctly recieved | @Test
void getColumnName() {
String colName = bookTest.getColumnName(0);
assertEquals(colName, bookTest.getColumnName(0));
} | [
"@Test\n public void columnCorrectNameTest() {\n int tableId = database.addTable();\n IntStream.range(0, 50).forEach(i -> database.addColumn(tableId));\n Set<String> names = Arrays.stream(controller.getAllColumnsHeader(tableId)).collect(Collectors.toSet());\n assertEquals(50, names.si... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will lookup another class element by name. If it cannot be found an empty optional will be returned. | default Optional<ClassElement> getClassElement(String name) {
return Optional.empty();
} | [
"default Optional<ClassElement> getClassElement(String name, ElementAnnotationMetadataFactory annotationMetadataFactory) {\n return Optional.empty();\n }",
"default Optional<ClassElement> getClassElement(Class<?> type) {\n if (type != null) {\n return getClassElement(type.getName());\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a ScrollView by the given id. | protected ScrollView getScrollView(int id) {
return (ScrollView) findViewById(id);
} | [
"public View findViewById(int id) {\r\n\t\treturn getView().findViewById(id);\r\n\t}",
"public <T extends View> T findView(int id) {\n return lastView != null ? lastView.findViewById(id) : null;\n }",
"public View findViewById(int id){\n\t\tif (mBaseView != null) {\n\t\t\treturn this.mBaseView.findVie... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__PlusPattern__Group_1__0" $ANTLR start "rule__PlusPattern__Group_1__0__Impl" ../org.gemoc.gel.xtext.ui/srcgen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:4461:1: rule__PlusPattern__Group_1__0__Impl : ( () ) ; | public final void rule__PlusPattern__Group_1__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:4465:1: ( ( () ) )
// ../org.gemoc.gel.xte... | [
"public final void rule__PlusPattern__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:4421:1: ( rule__PlusPattern__Group__1__Impl )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Serves as the driver class for the Duke program. Contains the data, the parser, and reads in inputs from the user. | public DukeUserInterface(String filePath) throws DukeException{
System.out.println("Hello from\n" + LOGO);
System.out.println(LINE + "\n" + OPENING_GREETING + "\n" + LINE);
this.stringReader = new InputStreamReader(System.in);
this.commandReader = new BufferedReader(this.stringReader);
... | [
"public static void main (String [] args) {\n try{\n new Duke().run();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public Duke() throws DukeException {\n storage = new AccessHardDisk(\"./data/duke.txt\");\n tasks = storage.readTasksFromFi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get connection to Git repository located in workDir. | public final GitConnection getConnection(String workDir, GitUser user, LineConsumerFactory outputPublisherFactory) throws GitException {
return getConnection(new File(workDir), user, outputPublisherFactory);
} | [
"public abstract GitConnection getConnection(File workDir) throws GitException;",
"public GitConnection getConnection(String workDir) throws GitException {\n return getConnection(new File(workDir));\n }",
"public final GitConnection getConnection(String workDir) throws GitException {\n return g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a list of imported descriptors | @NotNull
public static List<PerlExportDescriptor> getImportedSubsDescriptors(@NotNull PsiElement rootElement)
{
PerlImportsCollector collector = new PerlSubImportsCollector();
PerlUtil.processImportedEntities(rootElement, collector);
return collector.getResult();
} | [
"public List getImports();",
"@Override\n public List<String> genImportList() {\n List<String> importsL = new ArrayList<String>();\n importsL.add(\"java.util.List\");\n importsL.add(\"org.opencv.core.Mat\");\n importsL.add(\"org.opencv.core.MatOfPoint\");\n importsL.add(\"org... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field bizProjectDTO is set (has been assigned a value) and false otherwise | public boolean isSetBizProjectDTO() {
return this.bizProjectDTO != null;
} | [
"public boolean isSetBizProject() {\n return this.bizProject != null;\n }",
"public boolean isSetProject() {\n return this.project != null;\n }",
"public boolean isSetProjectNumber() {\n return this.projectNumber != null;\n }",
"public boolean isSetProjectNum() {\n return this.projectNu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of performRaceActivity method, of class SwimmerOne. | @Test
public void testPerformRaceActivity() {
System.out.println("performRaceActivity");
SwimmerOne instance = new SwimmerOne();
String expResult = "Swimming......";
String result = instance.performRaceActivity();
assertEquals(expResult, result);
} | [
"public void executeRace(WorkerThread wt) {\n if (verbose)\n System.out.println(wt.getName() + \": executeRace() called\");\n }",
"@Override\n public synchronized void goWatchTheRace(){\n ((Spectators)Thread.currentThread()).setSpectatorsState(SpectatorsState.WATCHING_A_RACE);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ensure that the current stream is valid, that is underlying closeable reference is not null and is valid | private void ensureValid() {
if (!CloseableReference.isValid(mBufRef)) {
throw new InvalidStreamException();
}
} | [
"private void ensureOpen() throws IOException {\n if (this.source == null) {\n throw new IOException(\"The stream has been closed.\");\n }\n }",
"private void verifyOpen() throws IOException {\n if (byteBuffer == null) {\n throw new IOException(FSExceptionMessages.S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new Document with the specified root element. | public Document(Element element)
{
rootElement = element;
} | [
"public static Document createDocument( StringNode root )\r\n\t\tthrows ParserConfigurationException\r\n\t{\r\n \tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n Document doc = docBuilder.newDocument... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
List the Nth food items | private ArrayList<String> fetchNthFoodItems(WebDriver driver, ArrayList<Integer> list)
throws NullPointerException, NoSuchElementException, TimeoutException, ElementNotVisibleException,
StaleElementReferenceException {
if (driver == null || list == null || list.size() == 0) {
throw new Null... | [
"@Test\n public void displayNthItemTest()\n throws NullPointerException, NoSuchElementException, TimeoutException, ElementNotVisibleException,\n StaleElementReferenceException {\n ArrayList<Integer> nthItems = new ArrayList();\n nthItems.add(3);\n nthItems.add(5);\n ArrayList<String> f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new CoinType given the double value | private CoinType(double value) {
this.value = (new BigDecimal(value)).setScale(2, RoundingMode.HALF_UP);;
} | [
"public Coin(double value)\n\t{\n\t\tthis.value = value;\n\t\tthis.currency = DEFAULT_CURRENCY;\n\t}",
"public Coin(double value, String name) {\n this.value = value;\n this.name = name;\n }",
"public Coin(double value, String currency) {\n\t\n\t\tsuper(value, currency);\n\t}",
"public Coin(double valu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the CDMA ERI text, | String getCdmaEriText(String callingPackage); | [
"String getCdmaEriTextForSubscriber(int subId, String callingPackage);",
"public String getTextC() {\n return textC;\n }",
"public byte[] getText() {\n\t\treturn Arrays.copyOfRange(decompressed, 0, getDataIndex());\n\t}",
"@VTID(63)\r\n java.lang.String getText();",
"public String getInstructiona... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get an injector from configuration binders. | public static InjectorImpl getInjector(final Iterable<? extends DSBinder> binders, Stage stage) {
long start = System.currentTimeMillis();
PluginsLoader loader = new PluginsLoader();
loader.loadFirstPlugins();
List<ConfigurationHandler> handlers = (List<ConfigurationHandler>)
... | [
"public static InjectorImpl getInjector(final DSBinder... binders) {\n return getInjector(Arrays.asList(binders), null);\n }",
"public static InjectorImpl getInjector(Stage stage, final DSBinder... binders) {\n return getInjector(Arrays.asList(binders), stage);\n }",
"private InjectionExtens... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XThrowExpression__Group__1" $ANTLR start "rule__XThrowExpression__Group__1__Impl" ../org.xtext.example.helloxcore.ui/srcgen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:12757:1: rule__XThrowExpression__Group__1__Impl : ( 'throw' ) ; | public final void rule__XThrowExpression__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:12761:1: ( ( 'throw'... | [
"public final void rule__XThrowExpression__Group__1__Impl() 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:14367:1: ( ( 'thro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the defaultcontext.xml location of web modules deployed on this virtual server. | public String getDefaultContextXmlLocation() {
return defaultContextXmlLocation;
} | [
"public String getDefaultWebXmlLocation() {\n return defaultWebXmlLocation;\n }",
"public String getWebContextRoot() throws ConfigurationException;",
"String getDefaultContextPath();",
"public String getApplicationContext()\n {\n return configfile.getApplicationPath(getASPManager().getCurrent... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the description of the ToDoTask. | public ToDoTask editDescription(String newDescription) {
return editTask(newDescription, taskPriority);
} | [
"@Override\n protected Task updateTaskDescription(String newDescription) {\n Todo newTodo = new Todo(newDescription);\n if (this.getStatus()) {\n newTodo.markAsDone();\n }\n return newTodo;\n\n }",
"public ToDo(String description) {\n super(description);\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get Commands Manager Instance | public static CommandsManager GetInstance()
{
return s_instance;
} | [
"public @NonNull CommandManager<C> getCommandManager() {\n return this.commandManager;\n }",
"public CXCommandManager getCommandManager() {\n return cmdman;\n }",
"public Object getCommandInstance() {\n return instance;\n }",
"public CommandManager getCommand() {\n\treturn comman... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
will get events that match the exact date time | static LinkedList<Event> getEvent(LocalDateTime date)
{
LinkedList<Event> events = new LinkedList<>();
for(Event e : EVENTS)
{
if(e.getMyDateTime().equals(date))
{
events.add(e);
}
}
return events;
} | [
"public List<Event> findTomorrowEvents(Date date) {\n List<Event> events = new ArrayList<>();\n try {\n String dateString = new SimpleDateFormat(\"yyyy-mm-dd\", Locale.ENGLISH).format(date);\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-mm-dd HH:mm\", Locale.ENGLISH);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
PUBLIC: Check if the value is contained in the result. | public boolean containsValue(Object value) {
return getResults().contains(value);
} | [
"boolean containsValue(Object value);",
"public boolean containsQ(Q value) { return values.contains(value); }",
"public boolean contains(int value){\r\n\t\t\t\t\r\n\t\t\t\tboolean yes;\r\n\t\t\t\tif (set.contains(value)) {\r\n\t\t\t\t\tyes = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse {\r\n\t\t\t\t\tyes = f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve aggregated values with matching aggregation info. | Page<Map<String, Object>> getAggregatedValues(AggregationInfo aggregationInfo, Pageable pageable); | [
"public ArrayList<Tuple> getResults() {\r\n\t\t//your code here\r\n\t\tIterator<Field> groupIter = aggregation.keySet().iterator();\r\n\t\twhile(groupIter.hasNext()) { //for each group\r\n\t\t\tBoolean started = false;\r\n\t\t\tField group = groupIter.next();\r\n\t\t\tArrayList<Field> values = aggregation.get(group... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new key navigator behavior node that operates on the specified transform group. | public KeyNavigatorBehavior(TransformGroup targetTG) {
keyNavigator = new KeyNavigator(targetTG);
} | [
"public KeyNavigatorBehavior(Component c, TransformGroup targetTG) {\n\tthis(targetTG);\n\tif (c != null) {\n\t c.addKeyListener(this);\n\t}\n\tlistener = true;\n }",
"public AWTInteractionBehavior(TransformGroup tg) {\n\ttransformGroup = tg;\n }",
"public final void rule__Transformation__Group__3__Imp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
strategy for close group | private void closeGroup(){
if(winningHoleGroup ==0){
max = 19;
min = 0;
}
if(winningHoleGroup ==1){
max = 29;
min = 0;
}
if(winningHoleGroup ==2){
max = 39;
min = 10;
}
if(winningHoleGroup ==3... | [
"public abstract void groupEnd();",
"public void closeCommutativeTasksGroup(CommutativeGroupTask group);",
"public final void ruleClose() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAst.g:341:2: ( ( ( rule__Close__Group__0 ) ) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Resume the paused migrations with with the passed names. | public void resumeMigrations(List<String> migrationNames) throws VPlexApiException {
s_logger.info("Request to resume migrations on VPlex at {}", _baseURI);
_migrationMgr.resumeMigrations(migrationNames);
} | [
"public void pauseMigrations(List<String> migrationNames) throws VPlexApiException {\n s_logger.info(\"Request to pause migrations on VPlex at {}\", _baseURI);\n _migrationMgr.pauseMigrations(migrationNames);\n }",
"protected void resumePausedTasks() {\n synchronized (this.lifecycleMonitor) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method getSalinityMin Return the 'salinityMin' class variable as a String | public String getSalinityMin(String s) {
return ((salinityMin != FLOATNULL) ? new Float(salinityMin).toString() : "");
} | [
"String getTeamGradeMin();",
"public double getMinS() {\n return u[0];\n }",
"public String getPhosphateMin(String s) {\n return ((phosphateMin != FLOATNULL) ? new Float(phosphateMin).toString() : \"\");\n }",
"public String getChlorophyllMin(String s) {\n return ((chlorophyllMin !=... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
constructor of class CopierThread used to initialise input and output file name | public CopierThread(String input, String output) {
this.input = input;
this.output = output;
} | [
"public WorkerThread(FileProcessor fPass, StdoutDisplayInterface rPass, StoreData sPass, IsPrime pPass)\n {\n log.writeMessage(\"WorkerThread constructor called.\", Logger.DebugLevel.CONSTRUCTOR );\n fileProc = fPass;\n resOut = rPass;\n resStore = sPass;\n prime = pPass;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the MaterialData for a Vector. | public void setVectorData(Vector vector, MaterialDataValue data) {
vectors.put(vector, data);
} | [
"public void setVectorData(Vector vector, Material data) {\n\t\tsetVectorData(vector, new MaterialDataValue(data));\n\t}",
"public void setDataVector(Vector dataVector) {\n// this.dataVector = nonNullVector(dataVector);\n justifyRows(0, getRowCount());\n fireTableStructureChanged();\n }",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a list of new tips | public ArrayList<Tip> getNewTips(final int limit) {
Log.d("help", "Requested " + limit + " new tips");
Future<ArrayList<Tip>> task = service.submit(new Callable<ArrayList<Tip>>(){
public ArrayList<Tip> call() {
return conn.getNewTips(limit);
}
});
try {
return task.get();
} catch... | [
"private TipsList() {\n tips = new ArrayList<Tip>();\n tips.add(new Tip(\"Need of sleep\", \"Adult needs generally from 7 to 9 hours of sleep every day. For some people it is appropriate to sleep between 6 to 10 hours. It is not recommended to sleep less than 6 or more than 10 hours per day. For peopl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Run the String[] getAsArchivePaths(File[]) method test. | @Test
public void testGetAsArchivePaths_2()
throws Exception {
DMUtilsImpl fixture = new DMUtilsImpl();
File[] archives = new File[] {};
String[] result = fixture.getAsArchivePaths(archives);
// add additional test code here
assertNotNull(result);
} | [
"@Test\n\tpublic void testGetAsArchivePaths_1()\n\t\tthrows Exception {\n\t\tDMUtilsImpl fixture = new DMUtilsImpl();\n\t\tFile[] archives = new File[] {new File(\"\")};\n\n\t\tString[] result = fixture.getAsArchivePaths(archives);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"@Test\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Can a schema name be used in a procedure call statement? Schemas are not currently supported by this driver. | public boolean supportsSchemasInProcedureCalls()
throws SQLException
{
return false;
} | [
"public boolean supportsSchemasInProcedureCalls()\n throws SQLException\n {\n // The SimpleText driver does not support schemas\n\n return false;\n }",
"public boolean supportsSchemasInProcedureCalls() throws SQLException {\n return true;\n }",
"public boolean supportsCatalo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method allows the user to see the current pet database. | private static void viewCurrentDatabase()
{
// Get all the items and put them into a list.
List<PetList> allItems = plh.showAllItems();
// Use a for loop to print all the items out to the user.
for(PetList singleItem : allItems)
{
System.out.println(singleItem.returnPetDetails());
}
} | [
"static public void viewPet(int petId) {\n User user = LocalUserManager.getCurrentUser();\n Pet pet = LocalPetManager.findPet(petId);\n assert pet != null;\n Presenter.showInstruction(\"You see a \"+pet.getPetColour()+\", \"+\n pet.getPetSex()+\" pet named \"+pet.getPetNam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GET /companytypes/:id : get the "id" companyType. | @GetMapping("/company-types/{id}")
@Timed
public ResponseEntity<CompanyType> getCompanyType(@PathVariable Long id) {
log.debug("REST request to get CompanyType : {}", id);
Optional<CompanyType> companyType = companyTypeService.findOne(id);
return ResponseUtil.wrapOrNotFound(companyType);... | [
"@GetMapping(\"/company-types/{id}\")\n @Timed\n public ResponseEntity<CompanyType> getCompanyType(@PathVariable Long id) {\n log.debug(\"REST request to get CompanyType : {}\", id);\n CompanyType companyType = companyTypeRepository.findOne(id);\n return Optional.ofNullable(companyType)\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
REST service that return one book by id (JSON) | @RequestMapping(value="/books/{id}", method = RequestMethod.GET)
public @ResponseBody Book findBookRest(@PathVariable("id") Long bookId) {
return repository.findOne(bookId);
} | [
"Book getBook(int id);",
"Book getBookById(Integer id);",
"Book get(int id) throws DaoException;",
"@GET\n @RolesAllowed(\"users\")\n @Path(\"/searchAuthorByBookId/{bookId}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response searchAuthorByBookId(@PathParam(\"bookId\") String bookId) {\n Author... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Falha no hardware de ler envelopes sem notas de dinheiro | @Test(expected = HardwareLerEnvelopesException.class)
public void falhasDeHardwareLerEnvelopes() {
hardwareMock.lerEnvelope(0);
} | [
"protected void checkTransmissionRequirements()\n {\n if (isOutOfBandAlert())\n { // Out-of-band (OOB) transmission requirements\n if (this.alert_text == null && this.details_OOB_source_ID == 0)\n { // [SCTE 18] 6-3\n if (log.isInfoEnabled())\n {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Customizer for Spring's task scheduler. | @Bean
TaskSchedulerCustomizer taskSchedulerCustomizer(final AgentProperties agentProperties) {
return taskScheduler -> {
taskScheduler.setWaitForTasksToCompleteOnShutdown(true);
taskScheduler.setAwaitTerminationSeconds(
(int) agentProperties.getShutdown().getSystemSch... | [
"@Override\n public void configureTasks(ScheduledTaskRegistrar scheduledTaskRegistrar) {\n final ThreadPoolTaskScheduler threadPoolTaskScheduler = new ThreadPoolTaskScheduler();\n threadPoolTaskScheduler.setPoolSize(scheduledTaskPoolSize);\n threadPoolTaskScheduler.setThreadNamePrefix(schedu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build call for getBaselines | public com.squareup.okhttp.Call getBaselinesCall(Integer project, Integer startAt, Integer maxResults, List<String> include, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = nu... | [
"public String toString() {\r\n\t\treturn \"BaseLine\";\r\n\t}",
"public String toString(){return \"BaseLine\";}",
"private String determineBaseline() {\r\n\t\tif (baseline == null) {\r\n\t\t\tString strm = determineStream();\r\n\t\t\tlog(\"Determining baseline from stream [\" + stream + \"]\",\r\n\t\t\t\t\tPro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a Boolean value that indicates whether the current thread is the main thread. | boolean isMainThread(); | [
"public static boolean isMainThread() {\n if (!initialized)\n return true; // always return true if the app is not initialized\n // properly\n if (thread_ref != null)\n return thread_ref.get() == Thread.currentThread();\n return false;\n }",
"public static bool... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finding whois information by IP address flagged by currentData state | public List<WhoIsNode<Long>> findWhoisByIp(Long ipAddress, boolean isCurrentData) throws WhoIsException{
List<WhoIsNode<Long>> whoisNodeList = Collections.emptyList();
Connection connection = null;
connection = connectDataBase();
if(logger.isDebugEnabled())
logger.debug("Fetching IPWHOIS Master table data: f... | [
"private boolean fillWhoisData(Vector<Map<String, String>> trace) {\n if (trace.size() == 0) {\n return true;\n }\n if ((whoisQuery == null) || !whoisQuery.startsWith(\"http\")) {\n return false;\n }\n // build whois query\n StringBuilder query = new S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the value associated with the column: branch_area | public java.lang.String getBranchArea () {
return branchArea;
} | [
"String getFloor_area();",
"public String getArea() {\n return area;\n }",
"public int getAreaNo() {\n return areaNo_;\n }",
"public void setBranchArea (java.lang.String branchArea) {\n\t\tthis.branchArea = branchArea;\n\t}",
"String getArea();",
"Double getAreaValue();",
"public TableauFo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check if spenton is after date | public boolean isAfter(SpentOn spentOn)
{
return ( (calendar.get(Calendar.YEAR) > spentOn.calendar.get(Calendar.YEAR))
)
|| ( (calendar.get(Calendar.YEAR) == spentOn.calendar.get(Calendar.YEAR))
&& (calendar.get(Calendar.MONTH) > spentOn.calendar.get(Calend... | [
"public boolean isAfter(Date date)\n {\n return isAfter(new SpentOn(date));\n }",
"boolean isAfter( DateTime other );",
"public boolean pastDueDate(Date d){\r\n if(dueDate.after(d)){\r\n return false;\r\n }\r\n return true;\r\n }",
"protected boolean isOverdue() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ clearInfo itemStateChanged() user clicked on condtion in the condition list, must change CondParamEditForm data, remainder and selected data, save condForm data. | public void itemStateChanged(ItemEvent ie)
{/* itemStateChanged */
/* [1] Get some data */
Object obj= ie.getSource();
java.awt.List itemC= (java.awt.List) obj;
String choiceStr= itemC.getSelectedItem();
int selectedIndex= itemC.getSelectedIndex();
/* [2] Save old samples data from ... | [
"public void removeConditionLocally()\n { /* removeConditionLocally */\n /* [1] Let user pick condition to remove via special GUI */\n ChoiceList cl= new ChoiceList(this, \"Choose a Condition to remove\",\n condListNames, nbrCondLists, \n \"Co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inserts an argument at the beginning of the selection arg list. | private String[] insertSelectionArg(String[] selectionArgs, String arg) {
if (selectionArgs == null) {
return new String[]{arg};
} else {
int newLength = selectionArgs.length + 1;
String[] newSelectionArgs = new String[newLength];
newSelectionArgs[0] = arg... | [
"void addArgument(String arg);",
"public void addArgument(Object argument){\n\t\targuments.add(argument);\n\t}",
"public native String insertItemBefore(String newItem, Number index);",
"public void addArgument(String str)\n {\n argumentList.add(new Argument(str));\n }",
"void insertBefore(Objec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
testing read advertise by id this will return the advertise of particular advertise id | @Test
public void testAdvertiseReadSuccess() throws AdvertiseNotFoundException {
logger.info("[START] testAdvertiseReadSuccess()");
assertNotNull("Advertise Found", oasController.readAdvertiseById(1));
logger.info("[END] testAdvertiseReadSuccess()");
} | [
"Advertisement getAdvertisementById(int id);",
"void getAdvert(String aid, final AdvertResult result);",
"Advertiser findOne(Long id);",
"@RequestMapping(value = \"/getSelectedAdvertise/{id}\", method = RequestMethod.GET)\n\tpublic ResponseEntity<Advertisement> getSelectedAdvertise(@PathVariable(\"id\") int i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for the parentElement attribute | @JsProperty
Element getParentElement(); | [
"public Element getParentElement() {\n\t\treturn parent;\n\t}",
"public String getParent() {\r\n return (String) getAttributeInternal(PARENT);\r\n }",
"public Dom parent() {\n return parent;\n }",
"@DISPID(-2147418104)\n @PropGet\n ms.html.IHTMLElement parentElement();",
"public fina... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns ARG of the MultipleInvalidDiscountDialog. | public String getMultipleInvalidDiscountDialogArg(UtilityManagerIfc utility)
{
// Get the locale for the user interface.
Locale uiLocale = LocaleMap.getLocale(LocaleConstantsIfc.USER_INTERFACE);
return utility.retrieveCommonText("EmployeeDiscount", "EmployeeDiscount", uiLocale);
} | [
"public String getInvalidDiscountDialogResourceID()\n {\n return PricingCargo.EMPLOYEE_DISCOUNT_NOT_ALLOWED;\n }",
"java.lang.String getDiscountReason();",
"@Override\n public String getMessage() {\n return ErrorMessage.INVALID_NEGATIVE_PRICE_ERROR;\n }",
"public Builder setDeptExcCd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This tests the getCondition() method of the Dog class creates an initialized dog object expects that initialized value is the same as the tested one | @Test
public void dogGetCondition() {
Dog dog = new Dog("0000000000000001", "lucky", "altered", "male", "boston terrier", "red and white", "white plains");
assertEquals("altered", dog.getCondition());
} | [
"@Test\n\tpublic void dogSetCondition() {\n\t\tDog dog = new Dog(\"0000000000000001\", \"lucky\", \"altered\", \"male\", \"boston terrier\", \"red and white\", \"white plains\");\n\t\tdog.setCondition(\"intact\");\n\t\tassertEquals(\"intact\", dog.getCondition());\n\t}",
"@Test\n public void testIndepententIni... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if this reaction is erroneous and cannot be used | public abstract boolean isErroneous(); | [
"private boolean isValidReaction(IReaction reaction) {\n return reaction.getReactantCount() != 1;\n }",
"public boolean hasRawMuonRejection() {\n return fieldSetFlags()[11];\n }",
"public boolean isSetFailureReason()\n {\n synchronized (monitor())\n {\n check_orphan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'taskId' field. | public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearTaskId() {
taskId = null;
fieldSetFlags()[23] = false;
return this;
} | [
"public void clearCurrentTask() {\n this.currentTask = null;\n this.percentDone = 0;\n }",
"public void clearTaskListRecNums() { taskListRecNums.clear(); }",
"public void setTaskId(long taskId) {\n\t\t_timesheetTask.setTaskId(taskId);\n\t}",
"void deleteTask(String taskId);",
"public abstra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the myPositionId value for this Account. | public void setMyPositionId(java.lang.String myPositionId) {
this.myPositionId = myPositionId;
} | [
"public void setPositionId(Integer positionId) {\n this.positionId = positionId;\n }",
"public void setAccountPositionId(Integer accountPositionId) {\r\n\t\tthis.accountPositionId = accountPositionId;\r\n\t}",
"public void setPositionId(String value) {\n setAttributeInternal(POSITIONID, value);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Chiamato quando l'activity viene creata per la prima volta, effettua il bind al servizio di controllo vocale. Le sottoclassi che effettuano l'override di questo metodo, devono invocarlo come prima istruzione all'interno della versione overridden. | @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.i(LOG_TAG, "onCreate()");
if (this.isVoiceControlServiceRunning()) {
Log.v(LOG_TAG, "onCreate(): collegamento al servizio di controllo vocale");
bound = getApplic... | [
"public VistaCrearPedidoAbonado() {\n initComponents();\n errorLabel.setVisible(false);\n controlador = new CtrlVistaCrearPedidoAbonado(this);\n }",
"protected void activity(){\n \n }",
"protected void onBeforeDataBinding(@Nullable final Bundle savedInstanceState) {\n //... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
makeVariableExpression returns a new VariableExpression Class object | public Expression makeVariableExpression(Variable var)
{
return new VariableExpression(var);
} | [
"VariableExp createVariableExp();",
"<C, PM> VariableExp<C, PM> createVariableExp();",
"Variable createVariable();",
"Expression createExpression();",
"DynamicVariable createDynamicVariable();",
"NodeVariable createNodeVariable();",
"VariableReference createVariableReference();",
"CreateVariablesActio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sector means a 2x2 OAM region. we store OAM per tile (a waste) so we need to convert to that mode | public void setSectorOAM(int sector, int oam) {
int index = convertSectorToTileIndex(sector);
_oam[index] = oam;
_oam[index+1] = oam;
_oam[index+_tilesWide] = oam;
_oam[index+_tilesWide+1] = oam;
updateTiles();
} | [
"public int getOAM(int sector) {\n\t\treturn _oam[convertSectorToTileIndex(sector)];\n\t}",
"int getSector();",
"public void setSector(String sector)\n {\n this.sector = sector;\n }",
"public Sector getSector()\n {\n return this.sector;\n }",
"public void setSector(java.lang.CharSe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Alarm for sending heartbeat message at HEARTBEAT_INTERVAL even if the device sleep | private void startHeartbeat() {
Log.d(TAG, "Schedule for heartbeat after " + HEARTBEAT_INTERVAL);
Intent i = new Intent();
i.setClass(this, RumpyService.class);
i.setAction(SERVICE_HEARTBEAT);
PendingIntent pi = PendingIntent.getService(this, 0, i, 0);
AlarmManager alarmMgr = (AlarmManager) ge... | [
"private synchronized void heartbeat() {\r\n\t\t\r\n\t\t// TODO more accurate heartbeat\r\n\t\t\r\n\t\tLog.d(TAG, \"Attempt to send heartbeat\");\r\n\t\t\r\n\t\tboolean isConnected = connectivityCheck();\r\n\t\t\r\n\t\tif (!isConnected) {\r\n\t\t\tLog.d(TAG, \"Heartbeat failed, no connection\");\r\n\t\t} else {\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a new SetupListener to be alerted when the user selects Host or Connect. | public void addListener(SetupListener sl) {
if (sl != null) {
m_listeners.add(sl);
}
} | [
"void addSetupEvent(SetupEvent setupEvent);",
"protected void installListeners() {\n }",
"protected void installListeners() {\n\t}",
"public void setupStartupListeners () {\r\n\t\tArrayList<JButton> btns = gui.getStartMenuButtons();\r\n\t\tfor ( int i = 0 ; i < btns.size() ; i++ ) {\r\n\t\t\tbtns.get(i).ad... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
paintComponent paints the box and ball | public void paintComponent(Graphics g)
{ box_writer.paint(g);
ball1_writer.paint(g);
ball2_writer.paint(g);
} | [
"public void paintBalls(Graphics g);",
"private void drawBall() {\r\n\t\tball = new GOval(WIDTH / 2 - BALL_RADIUS, HEIGHT / 2 - BALL_RADIUS, 2 * BALL_RADIUS, 2 * BALL_RADIUS);\r\n\t\tball.setFilled(true);\r\n\t\tball.setColor(Color.black);\r\n\t\tadd(ball);\r\n\t\tball.setVisible(false);\t// We want ball to be in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get and set of EndPointUnnumberedDataPathTLV | public EndPointUnnumberedDataPathTLV getEndPointUnnumberedDataPathTLV() {
return endPointUnnumberedDataPathID;
} | [
"public void setNilKeyValuePairOfEndpointTypestringztYlk6OT()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.datacontract.schemas._2004._07.system_collections_generic.KeyValuePairOfEndpointTypestringztYlk6OT target = null;\r\n target = (org.d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ArrayAnnotationValue__Group__2__Impl" $ANTLR start "rule__ArrayAnnotationValue__Group_1__0" ../org.ow2.mindEd.idt.editor.textual.ui/srcgen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:6439:1: rule__ArrayAnnotationValue__Group_1__0 : rule__ArrayAnnotationValue_... | public final void rule__ArrayAnnotationValue__Group_1__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:6443:... | [
"public final void rule__ArrayAnnotationValue__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The stage of the StaticSiteCustomDomainOverviewArmResource definition allowing to specify kind. | interface WithKind {
/**
* Specifies the kind property: Kind of resource..
*
* @param kind Kind of resource.
* @return the next definition stage.
*/
WithCreate withKind(String kind);
} | [
"public interface StaticSiteCustomDomainOverviewArmResource {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name va... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
compare two IP with the number | private static int compareIP(String ip1, String ip2) {
long[] ip11 = parseIp(ip1);
long[] ip22 = parseIp(ip2);
long ip1Result = 0, ip2Result = 0;
for (int i = 0; i < 4; i++) {
ip1Result += (ip11[i] << (24 - i * 8));
}
for (int i = 0; i < 4; i++) {
ip2Result += (ip22[i] << (24 - i * 8));
}
... | [
"private static int compartTo(IPAddress4Sort IP1, IPAddress4Sort IP2) {\n\t\tint ipCompareResult = compareIP(IP1.IP, IP2.IP);\r\n\t\tif (ipCompareResult == 0) {\r\n\t\t\treturn compareNetmask(IP1.NetMask, IP2.NetMask);\r\n\t\t} else {\r\n\t\t\treturn ipCompareResult;\r\n\t\t}\r\n\t}",
"int getInIp();",
"@Test\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Register two custom function call macros to the container. | public static void registerCallbacksForContainer(Container container) {
container.registerFunctionCallMacroCallback("increment", new CustomMacroCallback());
container.registerFunctionCallMacroCallback("mod", new CustomMacroCallback());
// Register a custom function call tag to the co... | [
"@Test\n public void itDefersDifferentMacrosWithSameName() {\n String foo1Code = \"{% macro foo(var) %}This is the {{ var }}{% endmacro %}\";\n String barCode = \"{% macro bar(var) %}^{{ foo(var) }}^{% endmacro %}\";\n String foo2Code = \"{% macro foo(var) %}~{{ bar(var) }}~{% endmacro %}\";\n MacroFun... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |