query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
repeated .PrisonSystem.PersoninfoMessage personInfo = 3; | com.ljzn.grpc.personinfo.PersoninfoMessage getPersonInfo(int index); | [
"com.cst14.im.protobuf.ProtoClass.PersonalMsg getPersonMsg(int index);",
"com.zzsong.netty.protobuff.two.ProtoData.Person getPerson();",
"com.zzsong.netty.protobuff.two.ProtoData.PersonOrBuilder getPersonOrBuilder();",
"com.cst14.im.protobuf.ProtoClass.PersonalMsgOrBuilder getPersonMsgOrBuilder(\n int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Here we define what to do when we receive data from the watch (for now we receive just heart rate) | private void setupCommunicationWithWatch()
{
// Register for updates on data sent from the watch
local_broadcast_manager = LocalBroadcastManager.getInstance(this);
broadcast_receiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent i... | [
"private void listenHeartRate() {\n //get the characteristic value (heart rate reading) from the service\n BluetoothGattCharacteristic bchar = bluetoothGatt.getService(CustomBluetoothProfile.HeartRate.service)\n .getCharacteristic(CustomBluetoothProfile.HeartRate.measurementCharacterist... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Start method will start consuming from specified kafka topic. | public void start(String topicName) {
try {
IMessageProcessor<Integer, String> messageProcessor = new SimpleMessageProcessor();
logger.info("Starting consuming from: " + topicName);
for (int i = 0; i < kafkaConsumerConfig.getConsumerThreadCount(); i++) {
KafkaConsumerJob<Integer, String> consumerJob = ne... | [
"public JMKafkaConsumer start() {\n JMLog.info(log, \"start\", groupId, Arrays.asList(topics),\n pollIntervalMs);\n JMThread.runAsync(this::consume, kafkaConsumerThreadPool);\n return this;\n }",
"public void init() {\n initiateConfig();\n initiateKafkaStuffs()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set another timer to trigger test complete this is so if the first timer is called more than once we will catch it | private void setEndTimer() {
vertx.setTimer(10, id -> testComplete());
} | [
"public void resetTimerComplete() {\n\t\tsetStartingTime(0);\n\t}",
"private void startTesting(){\n showTimer();\n countDownTimer = new CountDownTimer(MAX_TIME_MILLISECOND, 1000) {\n public void onTick(long millisUntilFinished) {\n tvTimer.setText(getTimeCounter(millisUntil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sorts the todo list by priority (ascending). | public ArrayList<Todo> sortByPriority(ArrayList<Todo> listTodo) {
listTodo.sort(new PriorityComparator());
return listTodo;
} | [
"public void sortPriority(){\n Collections.sort(mItems, new Comparator<ToDoItem>() {\n @Override\n public int compare(ToDoItem t1, ToDoItem t2) {\n return t1.getPriority().compareTo(t2.getPriority());\n //return 0;\n }\n });\n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .alluxio.grpc.WorkerNetAddress workerNetAddress = 1; | alluxio.grpc.WorkerNetAddress getWorkerNetAddress(); | [
"alluxio.grpc.WorkerNetAddressOrBuilder getWorkerNetAddressOrBuilder();",
"alluxio.grpc.WorkerRange getWorkerRange();",
"alluxio.grpc.RegisterJobWorkerPOptions getOptions();",
"public String getJobLauncherRpcAddress(Configuration conf);",
"WORKER getWorker();",
"Address getWorkAddress();",
"org.roylance... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets the games played with new games if the given parameter is greater than zero. | public void setGamesPlayed(int gamesPlayed) {
if (gamesPlayed >= 0) {
this.gamesPlayed = gamesPlayed;
}
} | [
"void setAvailableGames(Set<Integer> gameIds);",
"public void setGamesPlayed(int a) {\r\n\t\tgamesPlayed = a;\r\n\t}",
"public void updateGamesPlayed() {\n gamesPlayed++;\n }",
"public void setGamesCompleted(int num)\r\n {\r\n //Check if the new average time is less than 0 before setting t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Increases current value of bar by specified double amount, going no higher than its maximum value, and updates image of the bar. | public void increaseCurrentValue(double amount){
if (currentValue != maxValue){
currentValue += amount; //Changes the current value of the bar
if (currentValue > maxValue){ //Does not allow the bar's value to exceed the maximum value
currentValue = maxValue;
... | [
"public void decreaseCurrentValue(double amount){\n if (currentValue != 0.0){\n currentValue -= amount; //Changes the current value of the bar\n if (currentValue < 0.0){ //Does not allow the bar's value to drop below 0.0\n currentValue = 0.0;\n }\n }\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checksums for the complete object. If the checksums computed by the service don't match the specifified checksums the call will fail. May only be provided in the first or last request (either with first_message, or finish_write set). .google.storage.v1.ObjectChecksums object_checksums = 6; | public com.google.storage.v1.ObjectChecksums getObjectChecksums() {
if (objectChecksumsBuilder_ == null) {
return objectChecksums_ == null ? com.google.storage.v1.ObjectChecksums.getDefaultInstance() : objectChecksums_;
} else {
return objectChecksumsBuilder_.getMessage();
}
} | [
"public com.google.storage.v1.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {\n if (objectChecksumsBuilder_ != null) {\n return objectChecksumsBuilder_.getMessageOrBuilder();\n } else {\n return objectChecksums_ == null ?\n com.google.storage.v1.ObjectChecksums.getDefault... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A config file override's subsystem configs resource. | public interface ConfigFileOverrideSubsystemsResource extends Resource<Map<String, SubsystemConfig>> {
void addSubsystemConfig(SubsystemConfig subsystemConfig);
boolean removeSubsystemConfig(SubsystemConfig subsystemConfig);
List<SubsystemConfig> getSubsystemConfigs();
Set<String> getSubsystemsNotAd... | [
"abstract public ResourceManager getDefaultConfig();",
"@Override\n\tpublic String getConfigFile() {\n\t\treturn \"config/system.properties\";\n\t}",
"private static void readConfig() {\n confDir = System.getProperty(PRIVATE_CONF_JS7_PARAM_CONFDIR);\n Properties props = new Properties();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'Navigation'. | Navigation createNavigation(); | [
"NavigationFlow createNavigationFlow();",
"private VerticalLayout getNavigation() {\n VerticalLayout nav = new VerticalLayout();\n\n NavigationView navigationView = new NavigationView();\n new NavigationPresenter(navigationView);\n nav.addComponent(navigationView);\n\n return na... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all the bookmarks entries where companyId = &63;. | public java.util.List<BookmarksEntry> findByCompanyId(long companyId); | [
"public static List<BookmarksEntry> findByCompanyId(long companyId) {\n\t\treturn getPersistence().findByCompanyId(companyId);\n\t}",
"public java.util.List<BookmarksEntry> findByUuid_C(String uuid,\n\t\tlong companyId);",
"@Override\n\tpublic List<Bookmark> findByUuid_C(String uuid, long companyId) {\n\t\tretu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method for updating table details mapped with ExperimentTreeNode | public void refreshDetails(ExperimentTreeNode expTreeNode) {
Vector<Vector<Object>> newTableData = new Vector<Vector<Object>>();
if (expTreeNode.getChildNodes().size() == 0) {
Vector<Object> firstRow = new Vector<Object>();
firstRow.add(expTreeNode);
firstRow.a... | [
"public void updateTableTreeView(){\n List<ClusterContainer> clusterContainerList = this.model.getClusterContainerList();\n\n final TreeItem<ClusterSequenceEntity> fakeRoot = new TreeItem<>(new ClusterSequenceEntity(\"\", \"\", 0, 0));\n\n int counter = 1;\n\n /*\n * Iterate thro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method hits the api to update order status | private void hitUpdateOrderStatusApi() {
progressBar.setVisibility(View.VISIBLE);
ApiInterface apiInterface = RestApi.createServiceAccessToken(this, ApiInterface.class);//empty field is for the access token
final HashMap<String, String> params = new HashMap<>();
params.put(Constants.Netw... | [
"boolean updateOrderStatus(long orderId, Order.Status status) throws DaoProjectException;",
"public void setStatus(OrderStatus status){\r\n this.status = status;\r\n }",
"public void setOrderStatus(OrderStatus orderStatus) {\n this.orderStatus = orderStatus;\n }",
"public void setOrder_sta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Merge outlier information from another histogram. Called when merging two histograms with identical buckets (same range and number of buckets) | void handleOutliersForCombineSameBuckets(FixedBucketsHistogram otherHistogram); | [
"void handleOutliersCombineDifferentBucketsAllUpper(FixedBucketsHistogram otherHistogram);",
"void handleOutliersCombineDifferentBucketsAllLower(FixedBucketsHistogram otherHistogram);",
"void simpleInterpolateMergeHandleOutliers(\n FixedBucketsHistogram otherHistogram,\n double rangeStart,\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
undo the last point | private void undoLastPoint() {
if (null == this.activeMatch.undoLastPoint()) {
// the undo action failed, nothing to undo
// but the user might be wanting the editing controls
// back, send the message as if we undone to loop
// through and reset everything as if ... | [
"void undoLastMove();",
"public void undo() {\n if (!_pathList.isEmpty()) {\n Path lastPath = _pathList.get(_pathList.size() - 1);\n _undonePath.add(lastPath);\n Paint lastPaint = _paintList.get(_paintList.size() - 1);\n _undonePaint.add(lastPaint);\n// ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtain a map of all upgrade packs. | public Map<String, UpgradePack> getUpgradePacks() {
return upgradePacks;
} | [
"public Map<String, PackageDesc> getPackagesInstalled() {\n\teval(ANS + \"=pkg('list');\");\n\t// TBC: why ans=necessary??? without like pkg list .. bug? \n\tOctaveCell cell = get(OctaveCell.class, ANS);\n\tint len = cell.dataSize();\n\tMap<String, PackageDesc> res = new HashMap<String, PackageDesc>();\n\tPackageDe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets fault constructor parameter order. Relevant only for fault parameters. | public void setFaultConstructorParamOrder(String order) {
super.setProperty(FAULT_CONSTRUCTOR_PARAM_ORDER,order);
} | [
"public String getFaultConstructorParamOrder() {\n return super.getProperty(FAULT_CONSTRUCTOR_PARAM_ORDER);\n }",
"public FaultMessage() {\n }",
"public Fault(String message) {\r\n super(message);\r\n }",
"public void setParamOrder ( Object paramOrder ) {\r\n\t\tgetStateHelper().put(Propert... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Apache iBATIS ibator. This method returns the value of the database column MONITOR_KPI_3G_MAIL.HOUR_8 | public Integer getHour8() {
return hour8;
} | [
"public Integer getHour3() {\r\n return hour3;\r\n }",
"public Integer getHourmbin3() {\r\n return hourmbin3;\r\n }",
"public Integer getHourmb3() {\r\n return hourmb3;\r\n }",
"public Integer getHouriops3() {\r\n return houriops3;\r\n }",
"public Integer getHourmbin8... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the saved state of the recording request. | public int getSavedState(); | [
"public RecordState getRecordState() {\n return mRecordState;\n }",
"@Override\n\tpublic int getRequestState() {\n\t\treturn _historyInterfaceRequestField.getRequestState();\n\t}",
"public RequestState getState() {\r\n\t\treturn state;\r\n\t}",
"public RecordingRequest previousEntry();",
"public b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Consulta os Dados Complementares do Imovel | public Imovel consultarImovelDadosComplementares(Integer idImovel) throws ControladorException {
Imovel imovel = null;
Collection colecaoImovel = null;
try {
colecaoImovel = this.repositorioImovel.consultarImovelDadosComplementares(idImovel);
} catch (ErroRepositorioException ex) {
ex.printSta... | [
"private static void consulta02() {\n\r\n\t\tvalores = odb.getValues(\r\n\t\t\t\tnew ValuesCriteriaQuery(Empleado.class, Where.equal(\"departamento.dparNombre\", \"contabilidad\"))\r\n\t\t\t\t\t\t.field(\"empleNombre\").field(\"emplePuesto\").field(\"empleSalario2\")\r\n\t\t\t\t\t\t.field(\"departamento.deparNombre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns list of snakes | public ArrayList<Integer> getSnakes() {
if (GameSelector.m_TRACE) {
System.out.println("GameSnL:: getSnakes() no parameters"
+ " needed, returns: " + m_snakesList);
}
return m_snakesList;
} | [
"public static Snake[] getSnakes(){\n\t\t Snake[] s = new Snake[5]; // I have stored the values of the start and end of the snakes in a array.\r\n\t \t s[0]= new Snake(67,48); // I have made 5 arrays which equals to 5 snakes objects\r\n\t\t s[1]= ne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get one leave by id. | @Override
@Transactional(readOnly = true)
public Optional<Leave> findOne(Long id) {
log.debug("Request to get Leave : {}", id);
return leaveRepository.findById(id);
} | [
"MedicalLeave fetch(Integer id);",
"public LeaveEntry selectLeaveEntry(String id) throws DaoException, DataObjectNotFoundException {\r\n String sql = \"SELECT e.id, t.fixedCalendar AS fixedCalendar,e.leaveType, e.leaveTypeId, t.name AS leaveTypeName, startDate, endDate, days, halfDay, status, reason, userI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the entity at the specified index. Entities are ordered from high confidence to low confidence. | @NonNull
public @EntityType String getEntity(int index) {
return mEntityConfidence.getEntities().get(index);
} | [
"public Entity getEntity(int index)\n\t{\n\t\treturn this.entities.get(index);\n\t}",
"public Entity getEntity(int index){\n return entityList.get(index);\n }",
"public E get(int index) {\n return entities[index];\n }",
"@NonNull public @EntityType String getEntity(int index) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unsets the "SaldoAnt" element | public void unsetSaldoAnt()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(SALDOANT$30, 0);
}
} | [
"public void unsetTotSaldoAnt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(TOTSALDOANT$14, 0);\r\n }\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Shares a folder to another user | private void shareFolder(FolderData folderToShare, TestUser to, FolderManager folderManager) throws ApiException {
List<FolderPermission> permissions = new ArrayList<FolderPermission>(folderToShare.getPermissions().size() + 1);
//Take over existing permissions
permissions.addAll(folderToShare.g... | [
"public void shareFolder(String accessToken, String email) throws IOException, GeneralSecurityException {\n Permission userPermission = new Permission().setType(\"user\").setRole(\"reader\").setEmailAddress(email);\n\n List<File> folders = search(accessToken, FOLDER_NAME);\n String folerID = nu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets all "outgoing" flash data. | Map<String, String> getOutgoingFlashCookieData(); | [
"Map<String, List<String>> getFlashMessages();",
"public Cursor getOutgoingPackets() {\n final SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n return db.query(\n Packets.VIEW_NAME_OUTGOING,\n Packets.PROJECTION_DEFAULT,\n null, null, null, null,\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs an instance of SubsystemFactoryController. | public SubsystemFactoryController(SubsystemFactoryNode subsystemFactoryNode) {
super(subsystemFactoryNode);
} | [
"public static SubsystemFactory getSubsystemFactory()\r\n {\r\n if (m_factory == null)\r\n {\r\n m_factory = new SubsystemFactory();\r\n }\r\n\r\n return m_factory;\r\n }",
"public static SubsystemNodeContainer createSubsystemNodeContainer() {\n Map<String, Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get all complex type decls: for later constraint checking | final XSComplexTypeDecl[] getUncheckedComplexTypeDecls() {
if (fCTCount < fComplexTypeDecls.length)
fComplexTypeDecls = resize(fComplexTypeDecls, fCTCount);
return fComplexTypeDecls;
} | [
"public List<TopLevelComplexType> getComplexTypes() {\n List<TopLevelComplexType> result = new ArrayList<TopLevelComplexType>();\n if (simpleTypeOrComplexTypeOrGroup != null) {\n for (OpenAttrs element : simpleTypeOrComplexTypeOrGroup) {\n if (element instanceof TopLevelComp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
remove node at pos index, return its cargo | public T remove(int index) {
if (index < 0 || index >= size())
throw new IndexOutOfBoundsException();
if (index == 0)
return removeFirst();
else if (index == size()-1)
return removeLast();
else {
DLLNode<T> tmp1 = _head; //create alias to... | [
"public Object removeFromPosition(int pos) {\n if (head == null) return null;\n int c = 0;\n Node n = head;\n while (n.getNext() != null) {\n if (c == pos) break;\n else {\n n = n.getNext();\n c++;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Drop the dragged image to the given image | @Action(object = ObjectType.IMAGE, desc ="Drop the dragged image on [<Object>]")
public void imgDropAt() {
try {
target = findTarget(imageObjectGroup, Flag.SET_OFFSET, Flag.MATCH_ONLY);
if (target != null) {
if (SCREEN.dropAt(target) == 1) {
Repor... | [
"@Action(object = ObjectType.IMAGE, desc =\"Drag image [<Object>] and drop at image [<Data>] \", input =InputType.YES)\n public void imgDragandDrop() {\n\n try {\n String page = Data.split(\",\", -1)[0];\n String object = Data.split(\",\", -1)[1];\n target = findTarget(i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
static mthods Determine the key for the m_mapColumns given column XML. | protected static Object getColumnKey(XmlElement xmlColumn)
{
XmlValue xmlTemp = xmlColumn.getAttribute("id");
if (xmlTemp == null)
{
return xmlColumn;
}
return xmlTemp.getString();
} | [
"String getKeyColumn();",
"public String getKeycolumn();",
"protected String getColumnKey(String columnName) {\n\t\treturn columnName;\n\t}",
"org.apache.xmlbeans.XmlString xgetKey2();",
"private static List<ColumnInfo> findColumnKeys(Map<String, AffCell> cells, List<String> columns){\n List<ColumnIn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor received a Movie object then converts the String name of a Movie object to an array of char. Then, initializes a second array, movieGuess, to the same size of the movieName array, and fills it with '_' chars. | public Game(Movie movie) {
movieName = movie.getName().toCharArray();
//Sets the size of the movieGuess array to that of the movieName array.
movieGuess = new char[movieName.length];
//Accommodates space characters in a movies name. That is, if a movie name has spaces this will automatically fill in... | [
"public static void initBoards(String keyword, char[] guessBoard, char[] alphabetBoard) {\n Arrays.fill(guessBoard, '_');\n for(int i = 0; i < 26; i++) alphabetBoard[i] = (char) (65 + i);\n }",
"public void guess(char input) {\r\n\t\t\r\n\t\tBoolean correctGuess = false; //Checks for\r\n\t\t\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The CID reference has 'cid:' prefix, so get rid of it. | private String stripScheme(String cid) {
if(cid.startsWith("cid:")) // work defensively, in case the input is wrong
cid = cid.substring(4);
return cid;
} | [
"public void setIccid(String iccid) {\r\n this.iccid = iccid == null ? null : iccid.trim();\r\n }",
"public void removeCcRecipient(int conf) {\n \tremoveMiscInfoEntry(TextStat.miscCcRecpt, conf);\n }",
"public void setCid(Integer cid) {\r\n this.cid = cid;\r\n }",
"public Long getCid()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use getParkingByAdRequest.newBuilder() to construct. | private getParkingByAdRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
} | [
"private getParkingByAdResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private GetParkingByPoint(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The Interface ITxnService. Descriptions: | public interface ITxnService {
/**
* Find page.
*
* @param filters the filters
* @param pageInfo the page info
* @return the ext data
* @throws BaseException the base exception
*/
ExtData<TxnTransLogVo> findPage(List<Filter> filters, Page pageInfo) throws BaseException;
/**
* Find amt page.
*
*... | [
"public interface TransactionService {\n\n /**\n * @return TransactionManager\n */\n TransactionManager getTransactionManager();\n\n /**\n * @return UserTransaction\n */\n UserTransaction getUserTransaction();\n\n /**\n * @return default timeout in seconds\n */\n int getDefaultTimeout();\n\n /**\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use FirebaseContextDetails.newBuilder() to construct. | private FirebaseContextDetails(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"public KeyInfoCredentialContext buildCredentialContext(KeyInfoResolutionContext kiContext) {\r\n // Simple for now, might do other stuff later.\r\n // Just want to provide a single place to build credential contexts for\r\n // the resolver and providers.\r\n return new KeyInfoCreden... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of yards the offense must advance the ball to get a first down. | public int getYardsToFirstDown() {
return yardsToFirstDown;
} | [
"public int numberOfBalls() {\n this.numberOfBalls = 4;\n return 4;\n }",
"public Number getTotalYards() {\n return (Number)getAttributeInternal(TOTALYARDS);\n }",
"public int numberOfBalls() {\r\n return 1;\r\n }",
"public int howManyDolls()\n\t{\n\t\tif (this.innerDoll =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test if the storage of the current instance is accessible in the give source code location | public boolean accessible(SourceCodeLocation location); | [
"private boolean existStoragePath() {\n\t\treturn settings.getStoragePath() != null;\n\t}",
"private boolean isAstFileLoadable()\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tResourceSet resourceSet = new ResourceSetImpl();\r\n\t\t\tPath astpath = new Path(this.astloc);\r\n\t\t\tURI uri = URI.createPlatformResourceURI(astpat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
endpoint to get a random meal | @GET("random.php")
Call<MealData> getRandomMeal(); | [
"@GET\n @Path(\"/randomquestion\")\n public String getRandomQuestion() {\n return \"test\";\n //return map.keySet().toArray()[ThreadLocalRandom.current().nextInt(1, map.size())].toString();\n }",
"@GetMapping(\"/meals/{id}\")\n @Timed\n public ResponseEntity<Meal> getMeal(@PathVariabl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of guesses so far. | public int numGuesses() {
return numGuess;
} | [
"public int totalNumGuesses() {\n\n return numberOfGuesses;\n\t}",
"public int getNumGuesses() {\n\t\treturn this.guessList.length;\n\t}",
"public int guessesLeft(){\n return this.remainingGuesses;\n }",
"public int getRemainingGuesses() {\n\t\treturn MAX_GUESSES - guessCounter;\n\t}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional float speaker_rate = 2 [default = 0]; | @java.lang.Override
public boolean hasSpeakerRate() {
return ((bitField0_ & 0x00000002) != 0);
} | [
"@java.lang.Override\n public float getSpeakerRate() {\n return speakerRate_;\n }",
"@java.lang.Override\n public float getSpeakerRate() {\n return speakerRate_;\n }",
"public Builder setSpeakerRate(float value) {\n bitField0_ |= 0x00000002;\n speakerRate_ = value;\n onChanged();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
True if has "scoreAnalysis" element | public boolean isSetScoreAnalysis()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(SCOREANALYSIS$24) != 0;
}
} | [
"boolean isSetScoreAnalysis();",
"public boolean hasSummary() {\n\tif (this.results == null) return false;\n\treturn ((ScenarioResults)this.results).hasSummary();\n}",
"public boolean isAScoreCalculated() {\n return aScore;\n }",
"public boolean isSetAvgScore() {\n return __isset_bit_vector.get(_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
84 END initiateArray //15 Create loop statement to initiate all elements of the array pArray and append it to the initiation block of subprogram pSubp. The initiation statement to be created for pSubp is for (i = pFrom; i <= pTo; i++) pArray[i] = pInitExp; If pSubp is null, setdata statement is generated. | public Stmt
initiateArray(
Exp pArray, Exp pInitExp,
Exp pFrom, Exp pTo, Subp pSubp ); | [
"public byte[] _subarray(int _beginindex) throws Exception{\nif (true) return _subarray2(_beginindex,_mlength);\n //BA.debugLineNum = 84;BA.debugLine=\"End Sub\";\nreturn null;\n}",
"@Override\n public ArrayDeclScript createScript(Map<Integer,String> lineArrayMatcherMap) throws Exception{\n\n if(lineA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
========================== ===== Public Methods ===== ========================== Runs the test using the Question objects stored in the pickedQuest array list | public void runTest() {
// Make a test object to run the test with the selected list of questions
TestAndAnalyze testObject = new TestAndAnalyze(pickedQuest);
} | [
"private void randomQuizQuest() {\n\n String currentChapter ;\n String nextChapter;\n ArrayList<Question> groupQuests = new ArrayList<>();\n ArrayList<Integer> ranums ;\n\n for (int i = 0; i < questionsBank.size(); i++) {\n currentChapter = questionsBank.get(i).getChapt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Combine two given map locations into a new map, and return a File of that new map. Uses the combineMapsIntoImage method above. | public File combineMapsIntoFile(String map1Loc, String map2Loc, String mapDir1, String mapDir2,
String outputDir) throws IOException{
//Create the file and check if it doesn't exist
File imageMap1 = new File(mapDir1 + map1Loc);
File imageMap2 = new File(mapDir2 + map2Loc);
if(!imageMap1.exists() || !imag... | [
"public BuildResultBean combineMapsCapture(String map1Loc, String map2Loc, String mapDir1, String mapDir2, \n\t\t\tint zoom, LatLng topLeftLatLng, String outputDir) throws IOException{\n\t\tBuildResultBean result;\n\t\t\n\t\t//Create the file and check if it doesn't exist\n\t\tFile imageMap1 = new File(mapDir1 + ma... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Visit LDC Instruction. Bytecode is removed from the instrumented method by this empty visitor method | @Override
public void visitLdcInsn(final Object cst) {
} | [
"@Override\n\tpublic Object visitIntLitExpression(IntLitExpression intLitExpression, Object arg) throws Exception {\n\t\tmv.visitLdcInsn(intLitExpression.getValue());\n\t\treturn null;\n\t}",
"private void efficientLDC(MethodVisitor mv, Object O) {\r\n if(O instanceof Integer) {\r\n if(pushByte(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the modified date of this events. | @Override
public Date getModifiedDate() {
return _events.getModifiedDate();
} | [
"public java.lang.String getModifiedDate() {\r\n return modifiedDate;\r\n }",
"public Timestamp getModifiedDate() {\r\n return (Timestamp) getAttributeInternal(MODIFIEDDATE);\r\n }",
"public Date getModifiedDate() {\n return (Date) getAttributeInternal(MODIFIEDDATE);\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The variables of the class that I will need to have access to. Generate some getters. A getter for nodeMove (to return the direction of the best node to go) | public int getNodeMove() {
return nodeMove;
} | [
"Move getMove();",
"public void getMove(){\n\t\t\n\t}",
"@Override\n public Move move() {\n\n MoveManager tmpMove;\n MoveManager bestMove = null;\n double alpha = Double.NEGATIVE_INFINITY;\n double beta = Double.POSITIVE_INFINITY;\n\n int depth; // for minimax search\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Alphabetically inserts the new node into its parent | private void insertInto(DefaultMutableTreeNode newnode, DefaultMutableTreeNode parent) {
Object newobj = newnode.getUserObject();
DefaultMutableTreeNode child;
boolean inserted = false;
int count = 0;
int compare;
while ((count < parent.getChildCount()) && (!inserted)) {... | [
"static void addSortedNode(DefaultMutableTreeNode parent, DefaultMutableTreeNode newChild)\n\t{\n\t\tString newChildName = (String) newChild.getUserObject();\n\n\t\tint childIndex = 0;\n\t\twhile(childIndex < parent.getChildCount())\n\t\t{\n\t\t\tDefaultMutableTreeNode child = (DefaultMutableTreeNode) parent.getChi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This constructs a dictionary object which holds three ArrayLists, a dictionaryList, an ArrayList of Indices, and a list of Indices to be converted back to strings. I used ArrayLists because of the ease of adding, replacing, and removing Strings and having the other Strings shift to compensate for their new position | public Dictionary(){
Indices = new ArrayList<Integer>();
dictionaryList = new ArrayList<String>();
IndicesToString = new ArrayList<String>();
} | [
"private void buildHashMap(){\r\n \r\n ArrayList<String> sArray;\r\n Prefix prefix;\r\n Suffix suffix;\r\n String keyString = \"\";\r\n \r\n for(int i = 0; (i+this.ORDER) < input.size(); i++){\r\n keyString = \"\";\r\n for(int j = i; j < (this.O... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Dynamically remove the ngram entry in the dictionary. | @UsedForTesting
public void removeNgramDynamically(final PrevWordsInfo prevWordsInfo, final String word) {
reloadDictionaryIfRequired();
asyncExecuteTaskWithWriteLock(new Runnable() {
@Override
public void run() {
if (mBinaryDictionary == null) {
... | [
"public void removeUnigramEntryDynamically(final String word) {\n reloadDictionaryIfRequired();\n asyncExecuteTaskWithWriteLock(new Runnable() {\n @Override\n public void run() {\n if (mBinaryDictionary == null) {\n return;\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Drives the robot in tank drivetwo sticks represent the left and right sides of the robot; pushing forward on the left stick moves the left side forward, pushing backwards on the right stick moves the right side of the robot backwards. | public void tankDrive(double left, double right); | [
"public void tankDrive() {\n\t\tif (fastBool) {\n\t\t\tmotorRB.set(joystickRYAxis);\n\t\t\tmotorRF.set(joystickRYAxis);\n\t\t\tmotorLB.set(-joystickLYAxis);\n\t\t\tmotorLF.set(-joystickLYAxis);\n\n\t\t} else {\n\t\t\tmotorRB.set(joystickRYAxis/2);\n\t\t\tmotorRF.set(joystickRYAxis/2);\n\t\t\tmotorLB.set(-joystickLY... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
List of all schools by school district | @RequestMapping(value = "/schools/district/{schoolDistrictId}", method = RequestMethod.GET)
public List<School> listBySchoolDistrictId(@PathVariable int schoolDistrictId) {
SchoolDistrict schoolDistrict = schoolDistrictRepository.getOne(schoolDistrictId);
List<School> schoolList = schoolRepository.f... | [
"@GetMapping(\"/schooldistricts\")\n public List<SchoolDistrict> listDistricts() {\n List<SchoolDistrict> schoolDistrictList = schoolDistrictRepository.findAll();\n return schoolDistrictList;\n }",
"public static String [] getAllSchools() throws ServletException{\n ArrayList<String> sch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the "band1H" element | public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getBand1H()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.... | [
"public void unsetBand1H()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BAND1H$4, 0);\n }\n }",
"public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle addNewBand1H()\n {\n synchronized (monitor())\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of SetY method, of class Graph. | @Test
public void testSetY() {
System.out.println("SetY");
LinkedList y = null;
Graph instance = new Graph();
instance.SetY(y);
// TODO review the generated test code and remove the default call to fail.
fail("The test case is a prototype.");
} | [
"@Test\r\n public void testSetYData() {\r\n System.out.println(\"SetYData\");\r\n Graph instance = new Graph();\r\n instance.SetYData();\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"@T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
helper method to xor the bytes from arr1 with the respective bytes in arr2 as long as the byte in arr1 is not zero | public static void xorArr1BytewiseWhereNotZero(byte[] arr1, byte[] arr2) {
for (int i = 0; i<arr1.length; i++) {
if (arr1[i]!=0) {
arr1[i] = (byte) (arr1[i] ^ arr2[i]);
}
}
} | [
"public static byte[] xorArraysBytewise(byte[] arr1, byte[] arr2) {\n byte[] xorArray = new byte[arr1.length];\n for (int i = 0; i<arr1.length; i++) {\n xorArray[i] = (byte) (arr1[i] ^ arr2[i]);\n }\n return xorArray;\n }",
"private byte[] xor(byte[] srcOne, byte[] srcTwo) {\n byte[] out ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Function ifHasArrangement is getting userTodelete from the Admin and then returns true if the soldier has arrangement , else , the function returns false. | public boolean ifHasArrangement (String userToDelete)
{
cursor2 = arrangement_db.rawQuery("SELECT * FROM "+MyArrangementSQLiteHelper.TABLE_NAME+" WHERE "+MyArrangementSQLiteHelper.COLUMN_USERNAME+"=?",new String[] {userToDelete});
if (cursor2!=null)
{
cursor2.moveToFirst();
... | [
"boolean hasPermorderid();",
"private boolean isPlaceOnTowerFloorLegal(FamilyMember familyMember, int servant, TowerFloorAS towerFloorAS,\n ArrayList<FamilyMember> familyMembersOnTheTower,\n boolean isActionWithNoFamilyMember)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new ACIDE A Configurable IDE inserted item listener. | public AcideInsertedItemListener (AcideInsertedItem item){
this.item = item;
} | [
"public AcideInsertedItemListener(AcideMenuItemConfiguration item) {\r\n\t\tthis.item = new AcideInsertedItem(item);\r\n\t}",
"void addItemListener(ItemListener listener);",
"public void setListeners() {\r\n\t\t\r\n\t\t// Sets the upper case menu item action listener\r\n\t\t_upperCaseMenuItem\r\n\t\t\t.addActio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build call for deleteAccuracyTest | public com.squareup.okhttp.Call deleteAccuracyTestCall(UUID id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String ... | [
"public com.squareup.okhttp.Call deleteAccuracyTestAsync(UUID id, final ApiCallback<Void> callback) throws ApiException {\n\n ProgressResponseBody.ProgressListener progressListener = null;\n ProgressRequestBody.ProgressRequestListener progressRequestListener = null;\n\n if (callback != null) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write a header with column names for a csv file showing progress | public static void writeCSVHeader(PrintStream out) {
out.println("timestamp,totalops,op,ops,concurrency,queue_size," +
"max_us,p95_us,p99_us");
} | [
"private void writeColumnHeaders()\n {\n // Write the column headers for the CSV file. Any IO exceptions are ignored.\n try\n {\n timingsWriter.write(\"Class, \");\n timingsWriter.write(\"Method, \");\n timingsWriter.write(\"Thread, \");\n timingsW... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the environment params. | public String[] getEnvironmentParams()
{
return environmentParams;
} | [
"@Override\n\tpublic String getEnvironmentVars() {\n\t\treturn model.getEnvironmentVars();\n\t}",
"@Override\n public Map<String, String> getEnvironmentVars() {\n return environmentVars;\n }",
"@PublicAtsApi\n public Map<String, String> getEnvVariables() {\n\n return this.processExecutor.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns int value of the shoot key. | public int getKeyShoot() {
return shootKey;
} | [
"public int getKeyShoot() {\r\n return Input.Keys.valueOf(keyShootName);\r\n }",
"public int getKeyEquip() {\r\n return Input.Keys.valueOf(keyShootName);\r\n }",
"public int getKeyShoot2() {\r\n return Input.Keys.valueOf(getKeyShoot2Name());\r\n }",
"public int getKeyBuyItem() {\r\n return getK... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The path to the save file. Initialises the scores ArrayList and tries to load one if one already exists. | public ScoreBoardCon() {
scores = new ArrayList<Score>();
// Sets the path to the users current working directory/save/highscores.save
fs = System.getProperty("file.separator");
path = Paths.get(System.getProperty("user.dir") + fs + "save" + fs + "highscores.save");
File file = new File(path.toString()... | [
"public void saveScores() {\r\n highScores.writeToFile();\r\n }",
"private void saveHighScore() {\n\n\t\tFileOutputStream os;\n\t\n\t\ttry {\n\t\t boolean exists = (new File(this.getFilesDir() + filename).exists());\n\t\t // Create the file and directories if they do not exist\n\t\t if (!exists) {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
gets the indicator container which contains this indicator. If the container does not exist, a new default one is generated. | public IIndicatorContainer getIndicatorContainer()
{
if (_indicatorcontainer == null)
{
_indicatorcontainer = new DefaultIndicatorContainer();
}
return _indicatorcontainer;
} | [
"Container getContainer();",
"public static AmberContainer getLocalContainer()\n {\n synchronized (_localContainer) {\n AmberContainer container = _localContainer.getLevel();\n \n if (container == null) {\n container = new AmberContainer();\n \n _localContainer.set(container);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
// internalsString // // Return the string of the internals of this class, for inclusion in a toString | protected String internalsString ()
{
return ""; // By default
} | [
"@Override\r\n protected String internalsString ()\r\n {\r\n StringBuilder sb = new StringBuilder(super.internalsString());\r\n\r\n if (actual != null) {\r\n sb.append(\" actual:\")\r\n .append(actual);\r\n }\r\n\r\n return sb.toString();\r\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
============================================== Konstruktoren ============================================== Creates a new ExternalFileMgrImpl | public ExternalFileMgrImpl()
{
} | [
"public FileManager() {\n\t\t\n\t}",
"public FileManager() {\r\n\t\t\r\n\t}",
"ImplementationManager createManager();",
"Manager createManager();",
"public TFileFactory() {\n this(PhysicalFileSystem.instance);\n }",
"public LocalFileService() {\n }",
"public FileObjectFactory() {\n }",
"priv... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove specified part of message. Example1: oid="dsfsdf" removeFromString(xml, "oid", "\"", "\"") Example2: removeFromString(xml, "") | protected static StringBuffer removeFromString(StringBuffer xml, String start, String intermediate, String end) {
int protect = 100;
int idx1a = 0;
int idx1b, idx2;
while ((idx1a = xml.indexOf(start, idx1a)) > -1 && protect-- > 0) {
if (intermediate == null || intermediate.... | [
"void removeData(String data) throws IOException;",
"void remove(String str);",
"String removeMP(String mp);",
"public static final String handleRemoveXmlPrefix(String xml, String prefix) {\n\t\txml = StringEscapeUtils.unescapeXml(xml);\n\t\tprefix = StringEscapeUtils.unescapeXml(prefix);\n\n\t\tif (xml.conta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the name of this component technology. | public void setName(String name) {
if (name == null) {
throw new IllegalArgumentException(
"Null specified for technology name");
}
this.name = name;
} | [
"public void setName( String name ) {\r\n\r\n ChangeNameTool tool = new ChangeNameTool( scene, name );\r\n controller.addTool( tool );\r\n }",
"public void setName(String name) {\n NAME = name;\n }",
"public void setName(String name) {\r\n _name = name;\r\n }",
"public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
insert an association between suggest and a category | public void insertSuggestAssociation( int nIdSuggest, int nIdCategory, Plugin plugin )
{
DAOUtil daoUtil = new DAOUtil( SQL_QUERY_INSERT_ASSOCIATED_CATEGORY, plugin );
daoUtil.setInt( 1, nIdSuggest );
daoUtil.setInt( 2, nIdCategory );
daoUtil.executeUpdate( );
daoUtil.free( ... | [
"@Insert\n long insert(SpeciesCategory speciesCategory);",
"@Insert(onConflict = OnConflictStrategy.IGNORE)\n void insert(CatFact catFact);",
"Category addCategory(String scheme, String term, String label);",
"private void setSuggestedCategory() {\n if (selectedCategoryKey != null) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks for room adjacent up. | private static boolean hasRoomAdjacentUp(int roomId) {
return _maze.hasRoom(roomId - _totalSideRooms);
} | [
"boolean isUp(Cell other){ return x == other.x && y == other.y + 1; }",
"private boolean canMoveUp()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = 1; row < grid.length; row++ ) {\n // looks at tile directly above ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests parsing a single identifier. | @Test
public void testSingleIdentifier() throws ExpressionFormatException {
CppParser parser = new CppParser();
assertThat(parser.lex("A"), is(new CppToken[] {new IdentifierToken(0, "A")}));
assertThat(parser.lex("Longer_Variable_12_Name"),
is(new CppToken[] {new Ide... | [
"@Test\n\tpublic void testIdentifier() throws ParseException {\n\t\tIdentifier identifier = langParser(\"foo\").identifier();\n\t\tassertEquals(identifier.getName(), \"foo\");\n\t}",
"boolean validateIdentifier(String identifier);",
"@Test\n public void testGetIdentifierType() {\n String identifierStr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs AmazonFPSClient with AWS Access Key ID and AWS Secret Key | public AmazonFPSClient(String awsAccessKeyId, String awsSecretAccessKey) {
this(awsAccessKeyId, awsSecretAccessKey, new AmazonFPSConfig());
} | [
"public AmazonFPSClient(String awsAccessKeyId, String awsSecretAccessKey, AmazonFPSConfig config) {\n this.awsAccessKeyId = awsAccessKeyId;\n this.awsSecretAccessKey = awsSecretAccessKey;\n this.config = config;\n this.httpClient = configureHttpClient();\n }",
"public void createAma... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set numeric field HTIM using a BigDecimal value. | public void setHTIM(BigDecimal newvalue) {
fieldHTIM.setBigDecimal(newvalue);
} | [
"public void setNumericValue(java.math.BigDecimal value);",
"public void setConvertedSplitQty (BigDecimal ConvertedSplitQty)\n{\nset_Value (\"ConvertedSplitQty\", ConvertedSplitQty);\n}",
"public BigDecimal getBigDecimalHTIM() {\n return fieldHTIM.getBigDecimal();\n }",
"public void setConvertedShri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a system information entry into the TC. | private long addSysInfo(SysInfo system) throws Exception {
PreparedStatement ps = this.m_dbdriver.getPreparedStatement(
"stmt.add.sysinfo");
long id = -1;
try {
id = m_dbdriver.sequence1("tc_sysinfo_id_seq");
}
catch (SQLException e) {
... | [
"public void addSystem(ISystem system)\n {\n if (system.start(this))\n {\n systems.add(system);\n }\n }",
"public void addSystemObject(SystemObject systemObject);",
"public void setInformationSystem(long informationSystem) {\n this.informationSystem = informationSystem;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Appends and returns a new empty value (as xml) as the last "ArticleId" element | public gov.nih.nlm.ncbi.www.ArticleIdDocument.ArticleId addNewArticleId()
{
synchronized (monitor())
{
check_orphaned();
gov.nih.nlm.ncbi.www.ArticleIdDocument.ArticleId target = null;
target = (gov.nih.nlm.ncbi.www.ArticleIdDocument.... | [
"void xsetArticleId(org.apache.xmlbeans.XmlInt articleId);",
"org.apache.xmlbeans.XmlInt xgetArticleId();",
"private String getNewId(String xmiid) throws JaxenException, Exception {\n String id = null;\n \n try {\n String exp =\n \"//*[local-name()='TaggedValue' and @modelElement='\" + xmi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the editor panel. | public void setEditorPanel(EditorPanel editorPanel) {
this.editorPanel = editorPanel;
} | [
"public EditorPanel getEditorPanel() {\r\n\t\treturn editorPanel;\r\n\t}",
"public BaseEditorPanel getEditorPanel ()\n {\n return _epanel;\n }",
"public Component getEditor() {\r\n\t\treturn panel;\r\n\t}",
"private void configureAndPlaceEditorPanel(BaseDualControlDataEditor<PK, DATA>... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the retry increase factor to use. 1 means no increase. 2 means the waiting time doubles every time. Only value > 0 are allowed. | @Nonnull
public final HttpRetrySettings setRetryIncreaseFactor (@Nonnull final BigDecimal aRetryIncreaseFactor)
{
ValueEnforcer.isGT0 (aRetryIncreaseFactor, "RetryIncreaseFactor");
m_aRetryIncreaseFactor = aRetryIncreaseFactor;
return this;
} | [
"void setNumRetries(int numRetries);",
"void setNumberOfRetries(Integer numberOfRetries);",
"public void setRetryTime(int value) {\r\n retryTime = value;\r\n }",
"protected short maxRetries() { return 15; }",
"void setMaxRetries(int retries);",
"int getRetryLimit ();",
"@Test\n public void te... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts a cursor representing a jug to Jug | public static Jug convertCursorToJug(Cursor jug) {
while(jug.moveToNext()){
String id = jug.getString(Arrays.asList(DatabaseConstants.colJug).indexOf(DatabaseConstants.id));
String size = jug.getString(Arrays.asList(DatabaseConstants.colJug).indexOf(DatabaseConstants.size));
... | [
"public abstract ObjectType inflate(Cursor c, int shift);",
"private List<Tag> cursorToTagList(Cursor cursor) {\r\n\t\tList<Tag> tags = new ArrayList<Tag>();\r\n\r\n\t\tif(cursor.moveToFirst()) {\r\n\t\t\twhile(!cursor.isAfterLast()) {\r\n\t\t\t\ttags.add(cursorToTag(cursor));\r\n\t\t\t\tcursor.moveToNext();\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set preloader strategy to "radius from car" | public void preloaderSetStrategyRadiusFromCar(int tiles); | [
"public void lowerRamp(){\n if(getCurrentSpeed() == 0) {\n transportableHolderParent.openLoadingPoint();\n isRampUp = false;\n }\n }",
"void changeRadius (int boostFactor)\r\n {\r\n\tradius += boostFactor;\r\n }",
"public void openBallLoader() {\n mLoader.set(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ (callExpression | arrayAccessExpression | qualifiedReferenceExpression | '!' | typeArguments) | static boolean callOrArrayAccessOrQualifiedRefExpression(PsiBuilder b, int l) {
if (!recursion_guard_(b, l, "callOrArrayAccessOrQualifiedRefExpression")) return false;
while (true) {
int c = current_position_(b);
if (!callOrArrayAccessOrQualifiedRefExpression_0(b, l + 1)) break;
if (!empty_ele... | [
"private static boolean callOrArrayAccessOrQualifiedRefExpression_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"callOrArrayAccessOrQualifiedRefExpression_0\")) return false;\n boolean r;\n r = callExpression(b, l + 1);\n if (!r) r = arrayAccessExpression(b, l + 1);\n if (!r) r = qualifiedR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get value at specified CompoundKey position. | public V get( CompoundKey key )
{
V result = null;
if ( key != null )
{
Comparable[] keyValues = key.getKeyValues();
Map<K2,V> map = localMap.get( keyValues[ 0 ] );
if ( map != null )
{
result = map.get( keyValues[ 1 ] );
}
}
return result;
} | [
"public String getValue(String key);",
"public V getValue(K key);",
"public V getElement(K key);",
"public Tuple get(Key k) throws RelationException;",
"abstract Key getKey(int position, Value item);",
"public Integer getValueAt(Integer position)\r\n {\r\n Integer value = -1;\r\n if(fixed... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the number of spikes to generate per chunk. | Builder spikesPerChunk(VariableAmount count); | [
"void setSpikesPerChunk(VariableAmount count);",
"default void setSpikesPerChunk(int count) {\n setSpikesPerChunk(VariableAmount.fixed(count));\n }",
"default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }",
"VariableAmount getSpikesPe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for HEADER_ID using the alias name HeaderId. | public Number getHeaderId() {
return (Number) getAttributeInternal(HEADERID);
} | [
"public Number getHeaderId() {\n return (Number)getAttributeInternal(HEADERID);\n }",
"public Number getIrHeaderId() {\n return (Number) getAttributeInternal(IRHEADERID);\n }",
"public Number getRfrtHeaderIdPk() {\r\n return (Number) getAttributeInternal(RFRTHEADERIDPK);\r\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Processes the response of a retrieve request. Results are returned as a list of hashmaps. | private ArrayList<HashMap<String, String>> processRetrieve() {
//Transform and Return Rows to a List of HashMaps
try {
if (rs == null) {
System.out.println("rs is null");
} else {
return rsToMaps();
}
} catch (SQLException ex) {... | [
"public void receiveResultretrieveRequestersForRequest(\n org.eclipse.mylyn.targetprocess.modules.services.RequestServiceStub.RetrieveRequestersForRequestResponse result\n ) {\n }",
"public void receiveResultretrievePage(\n org.eclipse.mylyn.t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a copy of this shop. | public Shop copy() {
return new Shop(title, items, general, currency, highAlch);
} | [
"private Shop shallowCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }",
"public Shop() {\r\n\t\tthis.inventory = new Inventory();\r\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a builder to make the queue | public static GcpPubSubQueue.Builder newBuilder() {
return new GcpPubSubQueue.Builder();
} | [
"@SubL(source = \"cycl/queues.lisp\", position = 1272) \n public static final SubLObject create_queue() {\n return clear_queue(make_queue(UNPROVIDED));\n }",
"public QueueSettings build() {\n return new QueueSettings(noTaskTimeout, betweenTaskTimeout, fatalCrashTimeout, threadCount,\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Counts the number of flagged squares adjacent to this square. Used only for the feature of doubleclicking to reveal everything around an already revealed square, provided that the square is already touching its correct number of flags. | public int countAdjacentFlags()
{
int adjacentFlags = 0;
for (GameSquare square : getAdjacentSquares())
{
if(square.flagged)
{
adjacentFlags++;
}
}
return adjacentFlags;
} | [
"public int countNeighbours() {\n\t\tint count = 0;\n\t\tif (this.hasNeighbour(0))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(1))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(2))\n\t\t\tcount++;\n\t\treturn count;\n\t}",
"public int getNumberOfVisitedSquares()\n {\n // Start with zero squares\n int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
updates an DiaEntry. currently not needed, because we first delete an Dia Entry and then save a new one, when clicking the save button | public DiaEntry updateDiaEntry(final DiaEntry diaEntry) {
SQLiteDatabase db = this.getReadableDatabase();
ContentValues contentValues = new ContentValues();
contentValues.put(NAME_COL, diaEntry.getName());
contentValues.put(DATE_COL, diaEntry.getDate() == null ? null : diaEntry.getDate... | [
"void updateEntry(BlogEntry entry) throws DAOException;",
"public BlogEntry updateBlogEntry(Long id, BlogEntry data);",
"protected abstract void updateEntry(PersistentEntity persistentEntity, K id, T entry);",
"void editEntry(String locale, String content, String id);",
"int updateByPrimaryKey(Miss_dislocat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Store the UUID of the last sent event by this thread, useful for handling user feedback. | public void setLastEventId(UUID id) {
lastEventId = id;
} | [
"public UUID getLastEventId() {\n return lastEventId;\n }",
"@Override\n\tpublic java.lang.String getUuid() {\n\t\treturn _events.getUuid();\n\t}",
"public Event getLastReceivedEvent();",
"@Override\n\tpublic java.lang.String getUserUuid() {\n\t\treturn _events.getUserUuid();\n\t}",
"@Override\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Esta prueba hara un test de la funcion RegistroPedido | @Test
public void funcionRegistroPedido () throws Exception {
String direccion = "Calle 159a #13a-16";
int[] idProductos = {1,2,3,4};
int[] cantidades = {50,20,10,30};
Funciones.registroPedido(session, direccion, new Date(), idProductos, cantidades);
... | [
"public static void adicionarRegisto(){\n \n }",
"@Test\n public void testRegistrar() throws Exception { \n long sufijo = System.currentTimeMillis();\n Usuario usuario = new Usuario(\"Alexander\" + String.valueOf(sufijo), \"alex1.\", TipoUsuario.Administrador); ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value of numOfMolsGenerated | public void setNumOfMolsGenerated(Integer numOfMolsGenerated) {
this.numOfMolsGenerated = numOfMolsGenerated;
} | [
"public Integer getNumOfMolsGenerated() {\n return numOfMolsGenerated;\n }",
"public void addMummys(int count) { this.MummyCount += count; }",
"public void setGeneration() {\r\n\t\tgeneration++;\r\n\t}",
"public void setNumberOfNewRecruitment(int numberOfNewRecruitment);",
"public void setMaxGener... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column game_puzzle_attend_record.attend_point | public void setAttendPoint(Integer attendPoint) {
this.attendPoint = attendPoint;
} | [
"public Integer getAttendPoint() {\n return attendPoint;\n }",
"public void setSkillPoint(int skillPoint) {\n this.skillPoint = skillPoint;\n }",
"public void setAttendance( boolean didAttend )\n {\n didPlayerAttend.setSelected( didAttend );\n }",
"public void setQuestPoint(in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get state of a channel | public boolean getChannelState(String channel) {
if (transmitters.containsKey(channel)) {
return transmitters.get(channel) > 0;
}
return false;
} | [
"public ChannelState getState() {\r\n\t\treturn mState;\r\n\t}",
"boolean getLEDState(int channel);",
"int getChannel();",
"public ConnectionState getState();",
"public boolean getLatchState (int channel, byte[] state)\n {\n byte latch = (byte) (0x01 << channel);\n return ((state [1] & latch) ==... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Shows Result Screen and hides Input Screen. | public void showSearchResultScreen(){
this.Inp.setVisible(false);
this.results.setVisible(true);
} | [
"public void displayResultScreen() {\n displayScreenAdminView = new Result();\n\n\n }",
"private void hideResults() {\n results.setVisibility(View.INVISIBLE);\n restartButton.setVisibility(View.INVISIBLE);\n }",
"private void showDisplay() {\n this.display.displayScreen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When activity is resumed, reload the entire list of conversations. | @Override
protected void onResume() {
super.onResume();
setUpConversations();
// Load any new conversation created since paused plus the rest of them.
for (int i = 0; i < ContactsFromJsonList.size(); i++) {
UserWithID tempUser = ContactsFromJsonList.get(i);
St... | [
"private void loadConversationList()\n\t{\n\t\tParseQuery<ParseObject> q = ParseQuery.getQuery(discussionTableName);\n\t\tif (messagesList.size() != 0)\n\t\t{\n//\t\t\t// load all messages...\n//\t\t\tArrayList<String> al = new ArrayList<String>();\n//\t\t\tal.add(discussionTopic);\n//\t\t\tal.add(MainActivity.user... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds flag to player flags | public void addFlag(PlayerFlag flag) {
flagList.add(flag);
} | [
"public void setFlag (Player.Flag flag)\n {\n flags |= flag.getMask();\n }",
"@Override\r\n\tprotected void createFlags() \r\n\t{\n\t\t//Creates the flag to light the lantern\r\n\t\t//=================================================================================\r\n\t\tthis.gameState.addFlag(\"lan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required string SbMqrqid = 21 [(.validation.regex) = ""]; | public boolean hasSbMqrqid() {
return ((bitField0_ & 0x00200000) == 0x00200000);
} | [
"public Builder setSbMqrqid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00200000;\n sbMqrqid_ = value;\n onChanged();\n return this;\n }",
"java.lang.String getSbMqrqid();",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests drawGameObject doesn't throw any exceptions when the GameView's ISpriteFactory returns null for the given IGameObject. | @Test
public void testDrawGameObjectNullSpriteFromFactory() throws IOException
{
when(mockedFactory.createSprite(any(IGameObject.class))).thenReturn(
null);
IGameObject gameObject = mock(IGameObject.class);
when(gameObject.column()).thenReturn(5);
when(gameObject.row()).thenReturn(3);
when(mocke... | [
"@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testDrawGameObjectNullArgument()\r\n\t{\r\n\t\ttestView.drawGameObject(null);\r\n\t}",
"@Test\r\n\tpublic void testPaintDrawsNoObjectsWhenNoGameObjectsHaveBeenDrawn()\r\n\t\t\tthrows IOException\r\n\t{\r\n\t\t// Create mock Graphics with a fixed c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
pdm1 = values for prediction timCurrent = time to use dVertCurrent = vert to use d1 = current value | public ProjectionDatum getProjectionData(ProjectionPoint ppt1) throws Exception{
double d1;
LocalDate timCurrent;
double dVertCurrent;
ProjectionDatum pdm1;
pdm1 = new ProjectionDatum(getPredictors().size());
for(String s:getPredictors()){
dVertCurrent = getRaster(s).hasVert() ? ppt1.dVert : Geo... | [
"public void updatePredictions (long currTime, TimeSeries inputSeries)\n {\n\n// TODO: decide if this is necessary, it's in PPALg >>\n this.state.clearPredictionsFrom (currTime + stepSize);\n//this.state.clearPredictions();\n\n TimeSeries timeSeries = (TimeSeries) inputSeries.clone();\n\n // if timeSeries... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |