query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Creates a SpielerNewZustandsDaten object | public SpielerNewZustandsDaten(int id, String status, int siegpunkte, ArrayList<ResourceType> resourcen, int ritterGespielt, ArrayList<DevelopmentCardType> entwicklungsKarten) { // Entwicklungskarten and Rittermacht are still missing please add when they are implemented for the players
this.id = id;
Name = null... | [
"Schulleiter createSchulleiter();",
"Klassenstufe createKlassenstufe();",
"Data createData();",
"Vaisseau_seDeplacerVersLaGauche createVaisseau_seDeplacerVersLaGauche();",
"SpaceInvaderTest_VaisseauImmobile_DeplacerVaisseauVersLaGauche createSpaceInvaderTest_VaisseauImmobile_DeplacerVaisseauVersLaGauche();"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Service for work with expense | public interface ExpenseService {
//- SECTION :: MAIN -//
/**
* Find Expense for page
*
* @return List < Expense > List of Expenses
*/
public List < Expense > findAll();
/**
* Create
*
* @param expense Data for create new Expense
* @return Created Expense
*/... | [
"public interface ExpenseService {\n\n\t/**\n\t * Inserts a new expense into the database\n\t * @param expense to be inserted\n\t */\n\tvoid addExpense(Expense expense);\n\t\n\t/**\n\t * Updates the expense at the indicated position in the database\n\t * @param position is the index of the expense\n\t * @param newC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
first calculate p(topic|term,document) for all terms in original, and all topics, using p(term|topic) and p(topic|doc) log.info("before train. labels: " + labels.toString()); long preTime=System.currentTimeMillis(); | public void trainDocTopicModel(Vector original, Vector labels, Matrix docTopicModel, boolean inf) {
List<Integer> terms = new ArrayList<Integer>();
Iterator<Vector.Element> docElementIter = original.iterateNonZero();
//long getIterTime=System.currentTimeMillis();
double docTermCount = 0.0;
while (do... | [
"@Override\n // public double makePrediction(ParsedText text) {\n // double pr;\n // // stores the count of each ngram\n // HashMap<String, Integer> ngramCountHam = new HashMap<String, Integer>();\n // HashMap<String, Integer> ngramCountSpam = new HashMap<String, Integer>();\n // ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create ticket and add it to an event if the event has available tickets and payment worked. | public boolean createTicket(String ownerName, Event event, String ownerEmail)
{
if (canCreateNewTicket(ownerName, event))
{
Ticket newTicket = new Ticket(event.getName(), ownerName);
newTicket.setOwnerEmail(ownerEmail);
newTicket.setPrice(event.getTicketPrice());
... | [
"@Test\r\n public void addEventTicketInstance() {\r\n System.out.println(\"addEventTicketInstance begin\");\r\n\r\n // Read an event ticket instance from a JSON file.\r\n HwWalletObject instance =\r\n JSONObject.parseObject(CommonUtil.readJSONFile(\"EventTicketInstance.json\"), Hw... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sends a request to extend the end time of an existing booking | public void extendBooking() {
Scanner scanner = new Scanner(System.in);
System.out.println("Please enter booking ID: ");
int bookingID = Integer.parseInt(scanner.nextLine());
System.out.println("Please enter facility name: ");
String facilityName =scanner.nextLine();
Syst... | [
"@Test\n\tpublic void testChangeReservationEndExtendEnd() throws Exception {\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\tDate start = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate end = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +1);\n\t\tDate newEnd = cal.getTime();\n\n\t\tReservation res1 = data... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generate an empty rights string | private String getEmptyRights() {
StringBuffer emptyRights = new StringBuffer("(-");
for (int i = 1; i < availableRightsCB.length; i++) {
emptyRights.append(",-");
}
emptyRights.append(")");
return emptyRights.toString();
} | [
"String getRights();",
"public static String noPermission() {\n return colorFormat(\"&cJe hebt geen permissie om dit te doen.\");\n }",
"private String generateRandomString() {\n Random random = new Random();\n StringBuilder buffer = new StringBuilder(RANDOM_STRING_SIZE);\n for (i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use this function to escape single quote string For example: Hi' Hello > Hi'' Hello | public static String escapeSingleQuote(String value) {
String escapedValue = null;
if (value != null) {
escapedValue = value.replaceAll("'", "\\''");
}
return escapedValue;
} | [
"private static String escapeSingleQuotes(String string) {\n if (string == null) {\n return string;\n }\n return string.replace(\"'\", \"\\'\");\n }",
"private static String singleQuote(String str)\n {\n StringBuffer buffer = new StringBuffer();\n buffer.append('\\'');\n\n f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
In this method we start a wav file with sound when a player answers a question to understand if he/she replies correct or wrong | private void playSound(boolean isCorrect){
String audioFilename = "WrongAnswer.wav";
if(isCorrect) {
audioFilename = "CorrectAnswer.wav";
}
Clip clip;
try {
AudioInputStream audioIn = AudioSystem.getAudioInputStream(GUI.class.getResource(audioFilename));
... | [
"private void feedbackSound(boolean correct) {\n \tURL feedbackSoundFileUrl;\n if (correct) {\n feedbackSoundFileUrl = \n getClass().getResource(\"/res/sounds/Ping.aiff\");\n } else {\n feedbackSoundFileUrl = \n getClass().getResource(\"/r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Palette'. This implementation returns null; returning a nonnull result will terminate the switch. | public T casePalette(Palette object) {
return null;
} | [
"public DrawPanel getPalettePanel() {\n String name= (String) _paletteList.getSelectedItem();\n return _paletteHashtable.get(name); \n }",
"protected abstract String defaultPaletteFamily();",
"@Override\n\tprotected PaletteRoot getPaletteRoot() \n\t{\n\t\tif(palette == null) palette = new OSCARGra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Begins playing the call recording tone to the remote end of the call. The call recording tone is played via the telephony audio output device; this means that it will only be audible to the remote end of the call, not the local side. | private void startCallRecordingTone() {
if (mLoopingTonePlayer != null) {
Log.w(this, "Tone is already playing");
return;
}
mLoopingTonePlayer = new LoopingTonePlayer();
if (!mLoopingTonePlayer.start()) {
mLoopingTonePlayer = null;
}
} | [
"private void maybeStartCallAudioTone() {\n if (mIsRecording && hasActiveCall()) {\n startCallRecordingTone();\n }\n }",
"private void stopCallRecordingTone() {\n if (mLoopingTonePlayer != null) {\n Log.i(this, \"stopCallRecordingTone: stopping call recording tone.\")... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Robot__Group__7__Impl" $ANTLR start "rule__Robot__Group__8" ../esir.lsi.imtql.ui/srcgen/robot/ui/contentassist/antlr/internal/InternalDsl.g:529:1: rule__Robot__Group__8 : rule__Robot__Group__8__Impl ; | public final void rule__Robot__Group__8() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../esir.lsi.imtql.ui/src-gen/robot/ui/contentassist/antlr/internal/InternalDsl.g:533:1: ( rule__Robot__Group__8__Impl )
// ../esir.lsi.imtql.ui/src-ge... | [
"public final void rule__Robot__Group__7() 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:502:1: ( rule__Robot__Group__7__Impl rule__Robot__Group__8 )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set the value of the allDayEvent property. | public void setAllDayEvent(boolean newValue)
{
this.allDayEvent = newValue;
} | [
"public void setAllDay(boolean allDay)\r\n\t{\r\n\t\tthis.allDay = allDay;\r\n\t}",
"public void setAllday(Boolean allday) {\n this.allday = allday;\n }",
"@Override\n\tpublic void setFullDay(boolean fullDay) {\n\t\t_events.setFullDay(fullDay);\n\t}",
"public boolean getAllDayEvent()\r\n\t{\r\n\t\tr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update the failure probability for testing | public void setFailureProb(float failprob)
{
this.failprob = failprob;
} | [
"public void setProbOfFailure(int prob) {\n \tif( prob <= 100 || prob >= 0){\n \t\tthis.probOfFailure = prob;\n \t}\n }",
"public final void setProbabilityOfSuccess(double prob) {\n if ((prob < 0.0) || (prob > 1.0)) {\n throw new IllegalArgumentException(\"Probability must be [0,1]\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a list of all cells, c, such that: c is unmarked, The opposite cell from c relative to CENTER exists and is unmarked, and c is vertically or horizontally adjacent to a cell in REGION. CENTER and all cells in REGION must be valid cell positions. Each cell appears at most once in the resulting list. | List<Place> unmarkedSymAdjacent(Place center, List<Place> region) {
ArrayList<Place> result = new ArrayList<>();
for (Place r : region) {
assert isCell(r);
for (int i = 0; i < 4; i += 1) {
int dx = (i % 2) * (2 * (i / 2) - 1),
dy = ((i + 1)... | [
"protected List<DiscreteCoordinates> getCellsFromRange(DiscreteCoordinates initPos, int range, boolean onlyEdge) {\n List<DiscreteCoordinates> cellsInView = new ArrayList<>();\n for (int x = -range; x <= range; x = onlyEdge ? x + (range * 2) : ++x) {\n for (int y = -range; y <= range; ++y) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sorts the blocks in the correct order (least to greatest) | public void sortBlocks(){
CurrentSets = getCurrentSets();
if(CurrentSets == 1){
return;
}else{
for(i = 0; i < CurrentSets - 1; i++){
for(j = i + 1; j < CurrentSets; j++){
if((Integer.parseInt(blocks[i].getHexTag(), 16)) > (Integer.parseInt(blocks[j].getHexTag(), 16))){
temp = blocks[j];
... | [
"private static ArrayList<String[]> blocksTransNoSort(ArrayList<String[]> blocks,ArrayList<String[]> transactions) \r\n\t{ \r\n\t\tArrayList<String[]> transsorted = new ArrayList<String[]>();\r\n\t\tint rows=transactions.size();\r\n\t\tint[] txindex = new int[rows];\r\n\t\tfor(int i=0; i<rows; i++)\r\n\t\t{\r\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter fot property 'uncertainty'. | public Double getUncertainty(); | [
"public influent.idl.FL_Uncertainty getUncertainty() {\n return uncertainty;\n }",
"public influent.idl.FL_Uncertainty getUncertainty() {\n return uncertainty;\n }",
"public ConditionVerificationStatus getCertainty() {\n\t\treturn certainty;\n\t}",
"public CE getUncertaintyCode() { return CEnull.N... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Buchung__VonAssignment_7_1_1" $ANTLR start "rule__Buchung__VonKtoAssignment_7_1_2_1" ../de.nie.fin.ui/srcgen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17154:1: rule__Buchung__VonKtoAssignment_7_1_2_1 : ( ( RULE_ID ) ) ; | public final void rule__Buchung__VonKtoAssignment_7_1_2_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17158:1: ( ( ( RULE_ID ) ) )
// ../de.nie.fi... | [
"public final void rule__Buchung__Group_7_1_2__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:5303:1: ( ( ( rule__Buchung__VonKtoAssignmen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Busca los archivos de pago que fueron generados de la fecha especificada. | public void buscarArchivosDePago() {
try {
listaDeArchivosDePago = gestionPagoService.listarArchivosDePagoPorFecha(fechaBusqueda, isFlagAutoISR());
} catch (SIATException e) {
LOGGER.error("Error al buscar los archivos: " + e);
}
} | [
"List<File> listarArchivosDePagoPorFecha(Date fecha, Boolean isAutoISR) throws SIATException;",
"public void getListaArchivos() {\n\n File rutaAudio = new File(Environment.getExternalStorageDirectory() + \"/RecordedAudio/\");\n File[] archivosAudio = rutaAudio.listFiles();\n\n for (int i = 0;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the highest index position of a safe index commit whose max sequence number is not greater than the global checkpoint. Index commits with different translog UUID will be filtered out as they don't belong to this engine. | private int indexOfKeptCommits(List<? extends IndexCommit> commits) throws IOException {
final long currentGlobalCheckpoint = globalCheckpointSupplier.getAsLong();
final String expectedTranslogUUID = commits.get(commits.size() - 1).getUserData().get(Translog.TRANSLOG_UUID_KEY);
// Commits are s... | [
"public int getLastSubIndex() {\n\t\t\tint maxRVI = 0, subIndex = 0;\n\t\t\tfor (Map.Entry<Integer, Integer> entry : subIndices.entrySet()) {\n\t\t\t\tif (entry.getKey() < currentRVIndex) {\n\t\t\t\t\tif (entry.getKey() > maxRVI) {\n\t\t\t\t\t\tmaxRVI = entry.getKey();\n\t\t\t\t\t\tsubIndex = entry.getValue();\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The stage of the fileshare definition allowing to specify FileService. | interface WithFileService {
/**
* Specifies resourceGroupName, accountName.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive
* @param accountName The name of the storage account within the specified reso... | [
"interface DefinitionStages {\n /**\n * The first stage of a FileShare definition.\n */\n interface Blank extends WithFileService {\n }\n\n /**\n * The stage of the fileshare definition allowing to specify FileService.\n */\n interface WithFileServi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of wsihashs where wsiId = &63;. | public int countByWsi(long wsiId); | [
"public java.util.List<wsihash> findByWsi(long wsiId);",
"int getTxHashesCount();",
"public wsihashService getwsihashService() {\n\t\treturn wsihashService;\n\t}",
"public wsihash fetchByPrimaryKey(long wsihashId);",
"int getClientHashLength();",
"public at.graz.meduni.bibbox.digitalpathology.service.wsih... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests that we can get a DailyBlog instance. | public void testGetBlogForDay() {
DailyBlog dailyBlog = rootBlog.getBlogForDay(2003, 7, 14);
assertNotNull(dailyBlog);
assertEquals(2003, dailyBlog.getMonthlyBlog().getYearlyBlog().getYear());
assertEquals(7, dailyBlog.getMonthlyBlog().getMonth());
assertEquals(14, dailyBlog.getDay());
} | [
"public void testGetBlogForDate() {\n Calendar cal = rootBlog.getCalendar();\n cal.set(Calendar.YEAR, 2003);\n cal.set(Calendar.MONTH, 6);\n cal.set(Calendar.DAY_OF_MONTH, 14);\n DailyBlog dailyBlog = rootBlog.getBlogForDay(cal.getTime());\n assertNotNull(dailyBlog);\n assertEquals(2003, dailyB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return all blog posts for a given blog. | public List<BlogPost> getBlogPosts(Blog blog) {
return getBlogPosts("where blogpost.blogid=?", blog.getId());
} | [
"public List<BlogPost> getBlogPostsOnBlog(Blog blog) {\n blogPost.setBlog(blog);\n List<BlogPost> blogPosts = new ArrayList<BlogPost>();\n List<BlogPost> tempList = blogPostFacade.findAll();\n for (BlogPost temp : tempList) {\n if (temp.getBlog().getId().equals(blogPost.getBlo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column cabinet_info.value_one | public void setValueOne(Integer valueOne) {
this.valueOne = valueOne;
} | [
"public void setAlarmValueOne(Integer alarmValueOne) {\n this.alarmValueOne = alarmValueOne;\n }",
"public void setValue(Object value) {\n\t\tif(((String) value).equals(\"1\"))\n\t\t\tthis.value = true;\n\t}",
"public void setCITY1(java.lang.String value)\n {\n if ((__CITY1 == null) != (valu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the NotificationTokenStore used by this servlet. This function provides a common setup method for use by the test framework or the servlet's init() function. | void setNotificationTokenStore(NotificationTokenStore notificationTokenStore) {
this.notificationTokenStore = notificationTokenStore;
} | [
"@Before\r\n\tpublic void init() {\r\n\t\tMockitoAnnotations.initMocks(this);\r\n\t\tmockMvc = MockMvcBuilders.standaloneSetup(tokenController).build();\r\n\r\n\t\t// mockMvc = MockMvcBuilders.webAppContextSetup(context).build();\r\n\t}",
"@VisibleForTesting\n public void initializeTokenTableForTesting() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for the CompositeEquipment object | public CompositeEquipment(String name) {
super(name);
this.equipments = new ArrayList();
} | [
"Composite() {\n\n\t}",
"public CompositeData()\r\n {\r\n }",
"EquipmentSubType(int index, String description) {\r\n _index = index;\r\n _description = description;\r\n }",
"public Inventory() {}",
"public CompositeFood()\n {\n this(new ArrayList<>(8));\n }",
"public Equipme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Method Name : PaymentSuccess Purpose : Validates the Text after the payment is done Parameter : String Test to be verified Date Created: 09/06/2015 Created By : Bala Modified By : Modified Date: | public void PaymentSuccess(String text){
String Text = getValue(text);
class Local {};
Reporter.log("TestStepComponent"+Local.class.getEnclosingMethod().getName());
Reporter.log("TestStepInput:-"+Text);
Reporter.log("TestStepOutput:-"+"NA");
Reporter.log("TestStepExpectedResult:- The Payment success m... | [
"void paymentSuccess();",
"public boolean fnVerifyPaymentPlan() throws Throwable\n\t{\n\t\tboolean blnStatus=true;\n\t\ttry\n\t\t{\n\t\t\t//Reporter.reportStep(\"Verifying Payment Plan\");\n\t\t\tString strMessage1=getText(subPayentMsg1,\"Payment Plan Message 1\");\n\t\t\tSystem.out.println(strMessage1);\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Wrapper for putCredential used for creating new Credentials | @PreAuthorize("@fideliusRoleService.isAuthorized(#credential.application, #credential.account)")
public Credential createCredential(Credential credential) {
// Check if the credential to be created already has a history
List<HistoryEntry> existingCredentials = getCredentialHistory(tableName,
... | [
"@PreAuthorize(\"@fideliusRoleService.isAuthorized(#credential.application, #credential.account)\")\n public Credential putCredential(Credential credential) {\n setFideliusEnvironment(credential.getAccount(), credential.getRegion());\n String user = fideliusRoleService.getUserProfile().getUserId();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the machineDetails property: The details provided by the customer during the creation of rack manifests that allows for custom data to be associated with this machine. | public String machineDetails() {
return this.machineDetails;
} | [
"public DatailedMachine getDetailedMachineInformation() throws UnknownHostException {\n\t\tInetAddress address = InetAddress.getLocalHost();\n\t\tDatailedMachine detailedMachine = new DatailedMachine();\n\n\t\tdetailedMachine.setIp(address.getHostAddress());\n\t\tdetailedMachine.setName(address.getHostName());\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Insight resource name, e.g. projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID] string insight = 1; | java.lang.String getInsight(); | [
"public Builder setInsight(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n insight_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }",
"public java.lang.String getInsight() {\n java.lang... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all kweets from user. | public List<Kweet> getUserKweets(String username) {
return kweetDAO.getUserKweets(username);
} | [
"public List<Kweet> getMentionKweets(String username) {\n return kweetDAO.getMentionKweets(username);\n }",
"List<Tweet> getTweets(String userId);",
"public List<Tweet> fetchTweets(String user, int page, int pageSize);",
"public List<Kweet> getTimelineKweets(String username) {\n return kweetD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds Position3D that a Line3D intersects a Plane on (returns null if Line3D is parallel to Plane) | public Position3D getIntersect(Line3D other) {
if (this.isParallel(other)) {
return null;
}
double t = (this.d - this.norm.dot(other.getPos())) / this.norm.dot(other.getDir());
return other.getLinePoint(t);
} | [
"private static Position getLineIntersection(\n double p0X,\n double p0Y,\n double p1X,\n double p1Y,\n double p2X,\n double p2Y,\n double p3X,\n double p3Y) {\n // TODO\n // http://stackoverflow.com/questions/563198/how-do-you-detect-where-two-line-segments-intersect\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the state of the cell on click | protected void changeCellState(EventHandler<? super MouseEvent> value){
myPolygon.setOnMouseClicked(value);
} | [
"void setAsActiveCell();",
"protected void cellMouseClicked(int row, int col) {\n }",
"public void setCellState(int newState) {\n this.myState = newState;\n }",
"public void selectFree() { freecellClicked = 1; }",
"public void selectHome() { homecellClicked = 1; }",
"@Override\n public v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Contract'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseContract(Contract object) {
return null;
} | [
"public T caseContractLegal(ContractLegal object) {\n\t\treturn null;\n\t}",
"public T caseContractRule(ContractRule object) {\n\t\treturn null;\n\t}",
"public T caseContractActor(ContractActor object) {\n\t\treturn null;\n\t}",
"public T caseContractActor1(ContractActor1 object) {\n\t\treturn null;\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column decorso.id_tipo_evento | public Integer getIdTipoEvento() {
return idTipoEvento;
} | [
"public void setIdTipoEvento(Integer idTipoEvento) {\n this.idTipoEvento = idTipoEvento;\n }",
"public String getIdEvento() {\r\n return idEvento;\r\n }",
"public Long getIdTipoVehiculo() {\r\n\t\treturn IdTipoVehiculo;\r\n\t}",
"public Long getIdDoencaEvento() {\r\n return idDoenca... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parses sms body to extract pre finance document data | private String[] parseSMSBody(String smsBody) {
if (smsBody.contains(SMS_KEY_OPERATION_SUM)) {
String[] resultData1 = smsBody.split(" po ");
String part01 = resultData1[0].split(SMS_KEY_OPERATION_SUM)[1].trim().replace(" ", "");
String value = part01.replaceAll("[A-Za-z]", ""... | [
"public List<PreFinanceDocument> getParsedSMSList() {\n List<PreFinanceDocument> preFinanceDocumentList = new ArrayList<>();\n Cursor cursor = getCursor();\n if (cursor.moveToFirst()) {\n do {\n String smsBody = cursor.getString(cursor.getColumnIndexOrThrow(KEY_BODY));... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks cards that are selected for tossing or keeping by the user and sorts them into the appropriate list | private void updateCardsBeingSelectedInStartingHandSelectorUI(Input.TouchEvent touchEvent, ArrayList<CharacterCard> cardsToBeSelectedForTossing, ArrayList<CharacterCard> cardsToBeDeselectedForTossing) {
//Check cards to keep selection
for (CharacterCard card : player.getStartingHandSelector().getCardsTo... | [
"public void sortCardsDec() {\n\t\tint size = this.hand.size();\n\t\tboolean swapped = true;\n\t\tdo {\n\t\t\tswapped = false;\n\t\t\tfor (int index = 0; index < size-1; index++){\n\t\t\t\tCrewCard c1 = this.hand.get(index);\n\t\t\t\tCrewCard c2 = this.hand.get(index+1);\n\t\t\t\tif (c1.getValue() >= c2.getValue())... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
listado de todos los comentarios no respondidos | public ArrayList<ComentarioComp> listaComentarioNoRespondido() {
ArrayList<ComentarioComp> lista = new ArrayList<>();
try {
Connection conn = DriverManager.getConnection(CONN, USER, PASS);
Statement st = conn.createStatement();
ResultSet rs = st.executeQuery("select ... | [
"public List<Obsequio> getListaObsequiosSinEnviar() throws SQLException {\n Cursor obsentregados = null;\n List<Obsequio> mObsequios = new ArrayList<Obsequio>();\n obsentregados = mDb.query(true, ConstantsDB.OB_TABLE, null,\n ConstantsDB.STATUS + \"= '\" + Constants.STATUS_NOT_SU... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves all of the vertices satisfying a SQL where clause. The clause can also include things like order and limit decorators. | public static List<Vertex> getVertices(String clause) {
if (clause == null)
clause = "";
String sql = SELECT_SQL + clause;
System.out.println(sql);
Connection conn = DbManager.getConnection();
List<Vertex> vertices = new ArrayList<Vertex>();
try {
ResultSet cursor = conn.create... | [
"public List<Vertex> findAllVertices() throws SQLException {\n\t\treturn rDb.findAllVertices();\n\t}",
"String getWhereClause();",
"protected abstract NativeSQLStatement createNativeFilterStatement(Geometry geom);",
"public List<T> retrieveByCondition(List<String> whereClause) throws Exception;",
"public Qb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public void primeShipping();// either this way or | void primeShipping(); | [
"public static void floorPlans(){\n\n }",
"public void shank () {\n \n }",
"_Prime create_Prime();",
"public void beSporty() {\n\t}",
"void parkingMethod(){\n nearingTheCrater();\n parkingTheArm();\n }",
"public static void hitungPajak(){\n }",
"public abs... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets (as xml) the "osarchitecture" attribute | public org.apache.xmlbeans.XmlString xgetOsarchitecture()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_att... | [
"public java.lang.String getOsarchitecture()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 resultant_var_index = 3; | int getResultantVarIndex(); | [
"int getVarIndex(int index);",
"boolean hasResultantVarIndex();",
"private Integer varOffset( String defun, String varname ) {\n\treturn symbolTable.get( defun ).get( varname );\n }",
"int getOutputIndex(int index);",
"private int IndexedValue ()\r\n {\r\n int result,offset;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Primary__Alternatives" $ANTLR start "rule__AbstractRef__Alternatives" InternalGaml.g:4988:1: rule__AbstractRef__Alternatives : ( ( ruleFunction ) | ( ( rule__AbstractRef__Alternatives_1 ) ) ); | public final void rule__AbstractRef__Alternatives() throws RecognitionException {
int rule__AbstractRef__Alternatives_StartIndex = input.index();
int stackSize = keepStackSize();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 261) ) { return ; }
... | [
"public final void ruleAbstractRef() throws RecognitionException {\n int ruleAbstractRef_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 156) ) { return ; }\n // InternalGaml... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column od_order.express_no | public void setExpressNo(String expressNo) {
this.expressNo = expressNo == null ? null : expressNo.trim();
} | [
"public void setExpressNo(String expressNo) {\r\n this.expressNo = expressNo;\r\n }",
"public String getExpressNo() {\r\n return expressNo;\r\n }",
"public void setOrderNo(int orderNo) {\r\n this.orderNo = orderNo;\r\n }",
"public String getExpressNo() {\n return expressNo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Post a message object. The MessageDispatcher will check if a thread is available to handle the message immediately. If no thread is available, and the thread capacity isn't reached yet, it will create a MessageThread object to handle the message. If the capacity has been reached, then the message will be dropped into a... | public synchronized void postMessage (Object aMessage)
{
if (threads.size () == 0)
{
//
// No free threads
//
if (threadCapacity == -1 ||
threadCount < threadCapacity)
{
notifyThreadListeners (++threadCount);
//System.err.println ("Launching thread " + threadCount);
messageThreadFact... | [
"private void postMessageToThread (Object aMessage)\n\t{\n\t\t//System.err.println (\"Posting message to thread\");\n\t\tif (aMessage instanceof DispatchMessage)\n\t\t{\n\t\t\tSystem.err.println (\"Handling message # \" + ((DispatchMessage) aMessage).sequenceNumber);\n\t\t\tif (((DispatchMessage) aMessage).deferred... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to return authorization key | private static String getAuthorizationKey() {
// Get valid authentication key from Environment
String validAuthKey = AUTHORIZATION_KEY;
if (String.valueOf(System.getenv("PROCESS_AUTH_KEY")) != "null"){
validAuthKey = String.valueOf(System.getenv("PROCESS_AUTH_KEY"));
}
return validAuthKey;
} | [
"String getAuthenticationKey();",
"Object getAuthInfoKey();",
"public abstract SoterCoreResult generateAuthKey(String authKeyName);",
"public String getBasicAuthKey() {\n String token = this.userInfo.getUserName() + \":\" + userInfo.getPassword();\n byte[] tokenBytes = token.getBytes(StandardCha... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fills Fluid into the specified internal tank. | public int fill(int tankIndex, FluidStack resource, boolean doFill)
{
VirtualSmartTank tank = getOrCreateTankForFluid(resource);
int filled = tank.fill(resource, doFill);
return filled;
} | [
"public void drainTo()\n {\n TileEntity ent = worldObj.getBlockTileEntity(xCoord, yCoord-1, xCoord);\n if(ent != null && ent instanceof ITankContainer)\n {\n int vol = LiquidContainerRegistry.BUCKET_VOLUME;\n if(this.milkStored < vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns data from Modbus device that is 16 bits in size and stored in holding registers. | public short[] getShortHoldData(ModbusDevice device, int startRegister, int numberOfRegisters) {
short[] data = new short[numberOfRegisters];
if (numberOfRegisters > 0) {
try {
device.getModbusConnection().readMultipleRegisters(device.getUnitID(), startRegister, data);
... | [
"int readUint16();",
"public int[] getBigEndianHoldData(ModbusDevice device, int startRegister, int numberOfRegisters) {\n int[] data = new int[numberOfRegisters];\n device.getModbusConnection().configureBigEndianInts();\n if (numberOfRegisters > 0) {\n try {\n devic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Access the grades spreadsheet for the reference, either for an assignment or all assignments in a context. | public byte[] getGradesSpreadsheet(String ref) throws IdUnusedException, PermissionException
{
ByteArrayOutputStream out = new ByteArrayOutputStream();
if (gradeSheetExporter.getGradesSpreadsheet(out, ref)) {
return out.toByteArray();
}
return null;
} | [
"public void Grade() throws IOException {\n\t\tif(asheets.size() > 0) {\n\t\t\tSystem.out.println(\"Whose answer sheet below do you want to grade on?\");\n\t\t\tfor(int i = 0; i< asheets.size(); i++) {\n\t\t\t\tSystem.out.println((i+1)+ \") \" + asheets.get(i).getUserName());\n\t\t\t}\n\t\t\tint userIndex = Output.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
a)Cargar los arrays de columnas y resultadosCosecha | public void cargarResultados() {
//Completar
this.columnas = new String[] {"Cosecha","Tipo Cultivo","Fecha","Kilos","Altura","Humedad"};
resultadosCosecha = new int[][] {
{1, 1, 20170101, 20, 200, 78},
{2, 1, 20170801, 19, 194, 85},
{3, 2, 20170901, 25, 262, 85},
{4, 2, 20171201, 12, 140, 64},
... | [
"public void mostrarResultados() {\n\t\t//Completar\n\t\tSystem.out.println(columnas[0] + \"\\t\\t\" + columnas[1] + \"\\t\" + columnas[2] + \"\\t\\t\\t\" + columnas[3] + \"\\t\\t\" \n\t\t+ columnas[4] + \"\\t\\t\" + columnas[5]);\n\t\t\n\t\tfor (int i = 0; i < resultadosCosecha.length; i++) {\n\t\t\tfor (int j = 0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Spring Data repository for the EventCheckIn entity. | @SuppressWarnings("unused")
@Repository
public interface EventCheckInRepository extends JpaRepository<EventCheckIn, Long> {
/**
* 通过用户名和手机号查找待签到用户
* @param userName
* @param phoneNumber
* @return
*/
Optional<EventCheckIn> findByUserNameAndPhoneNumber(String userName,String phoneNumber);... | [
"public interface EventRepository extends CrudRepository<EventModel, String> {\n\t\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface EventLoggingRepository extends JpaRepository<EventLogging, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface EventTriggerRepository exten... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
All local results need to be calculated for sorting/ordering to be performed. | private void setAllLocalResults() {
TreeMap<FlworKey, List<FlworTuple>> keyValuePairs = mapExpressionsToOrderedPairs();
// get only the values(ordered tuples) and save them in a list for next() calls
keyValuePairs.forEach((key, valueList) -> valueList.forEach((value) -> _localTupleResults.add(va... | [
"private void postLocal() {\n reduce3(_nleft); // Reduce global results from neighbors.\n reduce3(_nrite);\n if( _fs != null ) // Block on all other pending tasks, also\n _fs.blockForPending();\n // Finally, must return all results in 'this' because that is the API -\n // wh... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Estimates the maximum tick label height. | protected double estimateMaximumTickLabelHeight(Graphics2D g2) {
RectangleInsets tickLabelInsets = getTickLabelInsets();
double result = tickLabelInsets.getTop() + tickLabelInsets.getBottom();
Font tickLabelFont = getTickLabelFont();
FontRenderContext frc = g2.getFontRenderContext();
result += tickLabelFont.g... | [
"private float getYAxisLabelHeight() {\n return ViewUtils.getTextHeight(mYAxisTextPaint, PERCENTAGE_PERFECT);\n }",
"public int getTickHeight()\n {\n int value = UIManager.getInt( TICK_HEIGHT );\n if ( value <= 0 )\n {\n return LafDefaults.DEFAULT_TICK_HEIGHT;\n }\n return value;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
COALESCE is a sql function that will return the first nonnull parameter value. All objects other than functions or fields are passed verbatim to the PreparedStatement with setObject(). | public static <T> SQLFunction<T> COALESCE(final Object... fields) {
return new Custom<T>("coalesce", fields);
} | [
"Expression coalesce(Expression... exp);",
"public static <T> Function<T> COALESCE(final Object... fields) {\n \t\treturn new Custom<T>(\"coalesce\", fields);\n \t}",
"public static Object coalesce(Object...args) {\n Object val = null;\n if (!CollectionUtils.isEmpty(args)) {\n for(Objec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to build a SAML Authorization Decision Statement assertion for a given user, resource and actions. | Assertion buildAuthzDecisionStatement(SAMLAuthorizations samlAuthorizations); | [
"SAMLAuthorizations parseAuthzDecisionStatement(Assertion assertion);",
"public DecisionType makeAuthzDecision(String resource, String issuer, Map<String, List<String>> identityAttributes, String action);",
"public interface SAMLAuthorizationStatementHandler {\n\t\t\n\t/**\n\t * Method to build a SAML Authoriz... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for the COM property "TooltipText" | @DISPID(1610874917) //= 0x60040025. The runtime will prefer the VTID if present
@VTID(68)
void setTooltipText(
java.lang.String pbstrTooltip); | [
"public void setTooltipText() { tooltip.setText(name); }",
"public void setToolTipText (String string) {\r\n\tcheckWidget();\r\n\ttoolTipText = string;\r\n}",
"public void setTooltip(String text) {\n \t\tsetDataAttribute(\"original-title\", (text));\n \t}",
"java.lang.String getTooltip();",
"@DISPID(1610874... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create test file with key value pair | public void createTestFileWithKey() {
List<String> lines = Arrays.asList(TEST_PROP_KEY + "=" + TEST_PROP_VALUE);
Path file = Paths.get(TEST_FILE_NAME);
try {
Files.write(file, lines, Charset.forName("UTF-8"));
} catch (IOException e) {
e.printStackTrace();
}
} | [
"public void createTestFileWithoutProperKeyFormat() {\n\t\tList<String> lines = Arrays.asList(\"INVALID_KEY_FORMAT=\" + TEST_PROP_VALUE);\n\t\tPath file = Paths.get(TEST_FILE_NAME);\n\t\ttry {\n\t\t\tFiles.write(file, lines);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void cr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Simple test on a feature for an expected value (of type int) for twooverlappingcircles of different sizes | public static void testSimpleInt(Feature<FeatureInputPairObjects> feature, int expected)
throws FeatureCalculationException, InitializeException {
FeatureTestCalculator.assertIntResult(
"simple",
feature,
FeatureInputOverlappingCircleFixture.twoOverlap... | [
"@SuppressWarnings(\"static-access\")\r\n\t@Test\r\n\tpublic void insideCorrectCircleArea(){\n\t\tassertTrue(pb.insideCorrectCircleArea(25, 50, 50));\r\n\t\tassertTrue(pb.insideCorrectCircleArea(25,70, 90));\r\n\t\tassertTrue(pb.insideCorrectCircleArea(25, 100, 100));\r\n\t\tassertFalse(pb.insideCorrectCircleArea(2... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that sets the values of the Vector given as argument as the values of the myList | private void initListValues(JList myList, Vector<String> vValues) {
logger.trace("vValues.size:"+vValues.size());
DefaultListModel model = new DefaultListModel();
if (vValues != null) {
Collections.sort(vValues);
for (int i = 0; i < vValues.size(); i++) {
... | [
"public void setValueList(List<Value> newList) {\n this.valueList = newList;\n }",
"public abstract void setValue(double[] vector, int start);",
"public void setValueList (List<ValueItem> valueList) {\n this.valueList = valueList;\n }",
"public void setValues(List value) {\n values ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Menu__Group__10__Impl" $ANTLR start "rule__Menu__Group__11" InternalMyDsl.g:3515:1: rule__Menu__Group__11 : rule__Menu__Group__11__Impl rule__Menu__Group__12 ; | public final void rule__Menu__Group__11() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:3519:1: ( rule__Menu__Group__11__Impl rule__Menu__Group__12 )
// InternalMyDsl.g:3520:2: rule__Menu__Group__11__Impl rule__Menu__Group__1... | [
"public final void rule__Menu__Group__11__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:3531:1: ( ( RULE_LIST_END ) )\n // InternalMyDsl.g:3532:1: ( RULE_LIST_END )\n {\n // InternalMyD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a count of the current number of repetitions of Indication (RXA19). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. | public int getRxa19_IndicationReps() {
return this.getReps(19);
} | [
"String getRepetitionCount();",
"int readRepetitionCount();",
"public java.lang.Integer getNumRepeticionRecibo() {\n\t\treturn numRepeticionRecibo;\n\t}",
"public int getRepetitions() {\n // Get value of key repetitions or one by default\n int repetitions = experiment.optInt(\"repetitions\", 1);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/! It returns the stimulation channel info byte that is sent before the stimulation data to know which channels are reported. \return The stimulation channel info byte. | public int stimChInfo(){
return _stimData.channelInfo();
} | [
"public int stimImpedanceChInfo(){\n return _stimImpedance.channelInfo();\n }",
"public ChannelData stimulationData(){\n return _stimData;\n }",
"public void stimChInfo(char value){\n //_stimChInfo = value;\n _stimData.setChannelInfo(value);\n for (int i = 0; i < 8; i++)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates the model for the given set and it's fields. This method does NOT recurse through any child sets. | protected Set generateSetModel(ModelContext context, FormSet setConfig, List<String> fields)
{
// create the set from the configuration
Set set = new Set(setConfig);
// create and all the fields to the set
for (String fieldName : fields)
{
FormField field... | [
"public static CodeBlock generateToModelForSet(Field field, GenerationPackageModel generationInfo) throws DefinitionException, InnerClassGenerationException {\n if (field.getGenericType().getTypeName().equals(CLASS_SET) || field.getGenericType().getTypeName().matches(PATTERN_FOR_GENERIC_INNER_TYPES))\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set number of images. | public void setNoOfImages(int noOfImages) {
this.noOfImages = noOfImages;
} | [
"public void setPicCount(Integer picCount) {\n this.picCount = picCount;\n }",
"public SpriteSheetSplitter setImageCount(int imageCount) {\n this.imageCount = imageCount;\n return this;\n }",
"private void setSpritesCount(int count) {\n this.count = count;\n }",
"public vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column FreeHost_Product_VPS.HourMB6 | public Integer getHourmb6() {
return hourmb6;
} | [
"public Integer getHourmbin6() {\r\n return hourmbin6;\r\n }",
"public Integer getHourmb7() {\r\n return hourmb7;\r\n }",
"public Integer getHourmbin7() {\r\n return hourmbin7;\r\n }",
"public void setHourmb6(Integer hourmb6) {\r\n this.hourmb6 = hourmb6;\r\n }",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return all fingerprints of active devices of a contact. | public HashMap<OmemoDevice, OmemoFingerprint> getActiveFingerprints(BareJid contact) {
HashMap<OmemoDevice, OmemoFingerprint> fingerprints = new HashMap<>();
CachedDeviceList deviceList = getOmemoService().getOmemoStoreBackend().loadCachedDeviceList(this, contact);
for (int id : deviceList.getAc... | [
"public Fingerprint[] fingerprints();",
"Map<Long, Object[]> getAllFingerprintsForUser(String user) throws SQLException;",
"@GetMapping(\"/activated\")\n\tpublic List<Device> getAllActivatedDevices() {\n\t\tLOG.info(\"start DeviceController getAllDevices\");\n\t\tlong nanoTime = System.nanoTime();\n\t\tList<Dev... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that retrieves polynomial for x coordinate of oriented segment | public XPolynomial getInstantiatedXCoordinateOfOrientedSegment() {
Map<String, Point> pointsMap = new HashMap<String, Point>();
pointsMap.put(ALabel, this.firstEndPoint);
pointsMap.put(BLabel, this.secondEndPoint);
return OGPTP.instantiateCondition(Segment.xCoordOfOrientedSeg, pointsMap); // do not ... | [
"public XPolynomial getInstantiatedYCoordinateOfOrientedSegment() {\r\n\t\tMap<String, Point> pointsMap = new HashMap<String, Point>();\r\n\t\t\r\n\t\tpointsMap.put(ALabel, this.firstEndPoint);\r\n\t\tpointsMap.put(BLabel, this.secondEndPoint);\r\n\t\t\r\n\t\treturn OGPTP.instantiateCondition(Segment.yCoordOfOrient... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get list search condition info | public GetListSearchConditionInfoResponse getListSearchConditionInfo(Long listId); | [
"io.dstore.values.StringValue getConditionList();",
"public SearchCondition[] getConditions();",
"public List<T> findUsingCondition(Condition condition);",
"public List<QueryCondition> getQueryConditionList() {\n \treturn queryConditionList;\n }",
"public List<ConditionList> listOfConditions() {\r\n\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ parseData is passed in a raw string from saved file, parses, and calls the setData method | public void parseData (String rawData) {
JSONObject mainObject = null;
JSONArray subObject = null;
try {
mainObject = new JSONObject(rawData);
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
if (mainObject != null) {
subObject = mainObject.getJSO... | [
"public void setDataToParse(String newData){\n\t\tthis.dataToPArse=newData;\n\t}",
"void fromString(final String rawData) {\n final String lines[] = rawData.split(\"\\\\r?\\\\n\");\n for (final String line : lines) {\n final String trimmed = line.trim();\n if (trimmed.length() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of collisions in the hash table. | public int numCollisions() {
int collisions = 0;
for (int i = 0; i < tableSize; i++) {
if (table[i].length() > 1) {
collisions += table[i].length() - 1;
}
}
return collisions;
} | [
"public int numCollisions(){\n\t\treturn collisions;\n\t}",
"public double collisionLength(){\n //count to keep track of how many words there are the chain\n int count = 0;\n for (int i = 0;i< tableSize;i++){\n if (hashTable[i] != null){\n LLNodeHash ptr = hashTable[i];\n //increments ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
setIIOMetadata Used to set/update the raw javax.imageio.metadata.IIOMetadata associated with this image. | public void setIIOMetadata(IIOMetadata metadata)
{
this.IIOImage().setMetadata(metadata);
} | [
"protected void setMetadata(AbstractMetadata metadata) {\n\t\tthis.metadata = metadata;\n\t}",
"public void setMetadata(gov.niem.niem.structures._2_0.MetadataType metadata)\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.niem.niem.structures._2_0.MetadataType ta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to send the revoked token on realtime | void sendMessageOnRealtime(String revokedToken, Properties properties); | [
"public void testImplementation_revokedToken() throws Exception;",
"@Override\n public void onRequestToken() {\n Toast.makeText(getApplicationContext(), \"Your token has expired\", Toast.LENGTH_LONG).show();\n Log.i(\"Video_Call_Tele\", \"The token as expired..\");\n // mRt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Process a user classification game for the given songId. | @POST
@Path("{id}/classifygame")
@Transactional
@AwardPoints(CLASSIFICATION_POINTS_AWARD)
public ClassificationRequest approachSong(@PathParam("id") final int id,
final ClassificationRequest classification)
throws InvalidClassificationException {
final Song song = this.so... | [
"private void playGame() {\n\t\t/* You fill this in */\n\t\tsetUpPlayerInfo();\n\t\tsetUpCategories();\n\t\t// For each round...\n\t\tfor (int i = 1; i <= N_SCORING_CATEGORIES; i++) {\n\t\t\t// For each turn/player...\n\t\t\tfor (int j = 0; j < nPlayers; j++) {\t\n\t\t\t\trollDice(j);\n\t\t\t\trollAgain();\n\t\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write a program that reads a range of integers (start and end point), provided by a user and then from that range prints the sum of the even and odd integers. | public static void main(String[] args) {
int num1=0;
int num2=0;
Scanner scan=new Scanner(System.in);
System.out.println("Please enter your starting number for the range");
num1=scan.nextInt();
System.out.println("Please enter your ending number for the range");
num2=scan.nextInt();
int oddSu... | [
"public static void main(String[] args) {\n\t\tScanner num = new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter numbers that you want to start with\");\n\t\tint num1 = num.nextInt();\n\t\tSystem.out.println(\"Please enter the end point\");\n\t\tint num2 = num.nextInt();\n\n\t\tint sumOdd = 0;\n\t\tint s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the nombre of this candidato. | @Override
public void setNombre(java.lang.String nombre) {
_candidato.setNombre(nombre);
} | [
"@Override\n public void setNombre(java.lang.String nombre) {\n _partido.setNombre(nombre);\n }",
"public void setNombre(java.lang.String nombre) {\r\n this.nombre = nombre;\r\n }",
"public void setNombre(String nombre) {\r\n //Pasamos el nombre por el metodo ponerMayusculasNombreA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attributes of a file or directory. | Map<String, Object> getAttributes(String path) throws IOException; | [
"public final int getAttributes() {\n\t\treturn m_info.getFileAttributes();\n\t}",
"public Attributes getFileAttributes()\r\n {\r\n return aFileAttributes;\r\n }",
"private String getFileAttribs(String filePath) {\n String result = \"\";\n Path file = Paths.get(filePath);\n\n t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the message that is to the right above the map. | protected String getRightMessage() {
return player1.getName() + ": " + player1.getScore();
} | [
"public String getMapMessage() {\n return \"\";\n }",
"private Point getLower() {\n int lowerX;\n int lowerY;\n lowerY = (int) (-gameCanvas.getHeight() + mapOffsetY * 2);\n lowerX = (int) (-gameCanvas.getWidth() + mapOffsetX * 2);\n return new Point(lowerX, lowerY);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the current goal point | private IPoint2D updateGoalPoint(IPoint2D loc, ArenaMap map, double lookAhead) {
IPoint2D tmp = map.lastPointInRange(loc, lookAhead, true);
Robot.managedPrinter.println(getClass(), "next goal point: " + tmp);
if (tmp != null) {
tmp.toDashboard("Goal point");
NetworkTable.getTable("motion").putNumber("pointI... | [
"public void setGoal(Point point) {\n mGoal = point;\n }",
"public void setQuestPoint(int newVal);",
"public void setCurrPoints(int points){\n playerPoints = playerPoints + points;\n }",
"public void addGoal() {\n goals++;\n points++;\n }",
"public void updateLocation();",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GENFIRST:event_buttonFindActionPerformed TODO add your handling code here: | private void buttonFindActionPerformed(java.awt.event.ActionEvent evt) {
doFind();
} | [
"private void btnFindActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFindActionPerformed\n String name = txtFieldItemNameSearch.getText(); //Gets the input ingredient name\n updateSearchTable(name); //method that updates the table with ingridients that match\n }",
"private v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Wrap the notifying repository with NamedQueryRepositoryWrapper | public void test_WrapNotifyingCase() throws Exception {
init(null);
repo = factory.createRepository(notifier) ;
repo.initialize() ;
assertTrue(repo instanceof NamedQueryRepositoryWrapper) ;
functionalTest();
} | [
"public void test_WrapNestedNotifyingCase() throws Exception {\n\t\tinit(null); \n\t\trepo = factory.createRepository(new RepositoryWrapper(notifier)) ;\n\t\trepo.initialize() ;\n\t\t\n\t\tassertTrue(repo instanceof NamedQueryRepositoryWrapper) ;\n\t\tfunctionalTest();\n\t}",
"public void test_WrapNonNotifyingCas... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'var221' field. | public com.dj.model.avro.LargeObjectAvro.Builder setVar221(java.lang.Float value) {
validate(fields()[222], value);
this.var221 = value;
fieldSetFlags()[222] = true;
return this;
} | [
"public void setVar221(java.lang.Float value) {\n this.var221 = value;\n }",
"public void setField221(java.lang.CharSequence value) {\n this.field221 = value;\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder setVar234(java.lang.CharSequence value) {\n validate(fields()[235], value);\n t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface of a server response visitor. Used in visitor pattern. | public interface ServerResponseVisitor {
/**
* Visits a game update response.
* @param gameUpdateResponse the response containing the serialized version of the game.
*/
void visit(GameUpdateResponse gameUpdateResponse);
/**
* Visits a error response.
* @param errorResponse the response containing t... | [
"public interface Response<T>\n{\n\t/**\n\t * Returns <code>Request</code> object, which initiated this\n\t * response.\n\t *\n\t * @return initial <code>Request</code>\n\t */\n\tpublic Request<T> getRequest();\n\n\t/**\n\t * Returns <code>true</code> if this is last response in series of\n\t * responses.\n\t *\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the color callback. | public void setColor(ColorCallback<DatasetContext> colorCallback) {
// sets the callback
this.colorCallback = colorCallback;
// checks if callback is consistent
if (colorCallback != null) {
// adds the callback proxy function to java script object
setValueAndAddToParent(CommonProperty.COLOR, colorCallback... | [
"public void setColor(NativeCallback colorCallback) {\n\t\t// resets callback\n\t\tsetColor((ColorCallback<DatasetContext>) null);\n\t\t// stores value\n\t\tsetValueAndAddToParent(CommonProperty.COLOR, colorCallback);\n\t}",
"public void setColor(Color c) { color.set(c); }",
"public void setColor(Color c) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Assign a new song to the panel. Resets all song state information. | public synchronized void setSong(Song newSong)
{
// Assign the new song.
this.song = new PaintableSong(newSong);
// Recalculate window size.
int numSections = song.getScore().getSections().size();
if (song != null && numSections != 0)
{
// Get the minimum size.
... | [
"void setActiveSong(Song activeSong);",
"@FXML\n private void moveSongToPlaylist(ActionEvent event) {\n bllfacade.addSongToPlaylist(selectedPlaylistId, selectedSongId);\n bllfacade.reloadPlaylists();\n init();\n }",
"public void setSong(Song pSong) {\n\t\tthis.song = pSong;\n\n\t\tson... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the inner com.azure.resourcemanager.datalakestore.fluent.models.TrustedIdProviderInner object. | TrustedIdProviderInner innerModel(); | [
"public static void getsTheSpecifiedDataLakeStoreTrustedIdentityProvider(\n com.azure.resourcemanager.datalakestore.DataLakeStoreManager manager) {\n manager\n .trustedIdProviders()\n .getWithResponse(\n \"contosorg\", \"contosoadla\", \"test_trusted_id_provider_na... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an ImageWriter for the passed file format. | public static ImageWriter createImageWriter(String imageExtension)
{
ImageWriter writer = null;
if (imageExtension != null)
{
for (ImageWriter imageWriter : imageWriters)
{
if (imageWriter.isValidFileFormat(imageExtension))
{
writer = imageWriter;
break;
}
}
if (writer == null... | [
"public static ImageWriter createImageWriter(File file)\n\t{\n\t\tif (file == null)\n\t\t\tthrow new NullPointerException(\"file is null\");\n\n\t\tString extension = extractExtension(file.getName());\n\n\t\treturn createImageWriter(extension);\n\t}",
"public ImageWriter createWriterInstance(Object extension)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A row corresponding to a GemsGuideStars object (top level node, displays the Strehl info and checkbox) | Row(final GemsGuideStars gemsGuideStars, final List<Row> children, final Option<Long> when) {
_gemsGuideStars = gemsGuideStars;
_guideProbeTargets = null;
_isTopLevel = true;
_children = children;
_parent = null;
_checkBoxSelected = false;
... | [
"List<GemsGuideStars> getCheckedAsterisms() {\n final List<GemsGuideStars> result = new ArrayList<>();\n if (getRoot() != null) {\n final List<Row> rowList = getRows();\n for (Row row : rowList) {\n if (row.isCheckBoxSelected()) {\n result.add(ro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/isSorted method takes in a double array and iterates to check if it is sorted in ascending order and returns true if it is | public boolean isSorted(double[] array){
for (int i = 0; i < array.length - 1; i++){
if (array[i] > array[i + 1])
return false;
}
return true;
} | [
"public boolean isSorted(){\r\n\tfor (int i = 0; i < _data.length; i++){\r\n\t if (_data[i].compareTo(_data[i+1]) > 0) return false;\r\n\t}\r\n\treturn true;\r\n }",
"private static boolean inOrder(double[] array) {\n\t\tboolean retVal = true;\n\t\tfor (int i = 0; i < array.length - 1 && retVal; i++) {\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a MetaItemField from a list by using an equals test. Returns the result in a new list. | static List<MetaItemField> removeFieldFromMetaItemList(MetaItemField metaItemField, final List<MetaItemField> fieldList) {
List<MetaItemField> newFieldList = fieldList;
newFieldList.remove(metaItemField);
return newFieldList;
} | [
"@Test\n void removeAllUniqueFromListByObject() throws Exception\n {\n COSArrayList<PDAnnotation> cosArrayList = new COSArrayList<>(annotationsList, annotationsArray);\n\n int positionToRemove = 2;\n PDAnnotation toBeRemoved = annotationsList.get(positionToRemove);\n\n List<PDAnnot... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Traverses all terms in t2 in bottumup order and tries to construct a matching for those. | private void matchTerminalsBottomUp(IStrategoTerm root1, IStrategoTerm t2) {
for (int i = 0; i < t2.getSubtermCount(); i++) {
matchTerminalsBottomUp(root1, t2.getSubterm(i));
}
tryMatchTerminalNode(root1, t2);
} | [
"abstract ArrayList<IStrategoTerm> getCandidateMatchTerms(IStrategoTerm root1, IStrategoTerm t2);",
"private IStrategoTerm findBestMatch(IStrategoTerm root1, IStrategoTerm t2) {\n\t\tArrayList<IStrategoTerm> candidates = getCandidateMatchTerms(root1, t2);\n\t\tcandidates = removeDuplicates(candidates);\n\t\tIStra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks to see if the holder contains a valid (nonnull) headers object. | public boolean hasHeaders() {
return (mHeaders != null);
} | [
"private boolean validateHeaders(HttpHeaders headers) {\n return !CollectionUtils.isEmpty(headers.get(HttpHeaders.AUTHORIZATION)) ||\n !CollectionUtils.isEmpty(headers.get(HttpHeaders.AUTHORIZATION));\n }",
"public boolean isSetHeaders() {\n return this.headers != null;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
region Helper Methods Converts the EmployeeDto to Entity aka domain model | private Employee toEntity(EmployeeDto employeeDto, JobType jobType){
Employee employee = new Employee();
employee.setId(employeeDto.id);
employee.setName(employeeDto.name);
employee.setEmail(employeeDto.email);
employee.setJobtype(jobType);
employee.setBossId(employeeDto.bossId);
employee.setGrossPaym... | [
"E convertToEntity(D dto);",
"D mapEntityToDto(E entity);",
"D convertToDTO(E entity);",
"D mapToDTO(E entity);",
"E mapDtoToEntity(D dto);",
"public D toDto( E entity );",
"E mapToEntity(D dto);",
"public abstract T convertToEntity(D dto);",
"D mapEntityIdToDto(E entity);",
"public static Employe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The workingView is basically just the convertView reused if possible or inflated new if not possible | private View getWorkingView(final View convertView) {
View workingView = null;
if(null == convertView) {
final Context context = getContext();
final LayoutInflater inflater = (LayoutInflater)context.getSystemService
(Context.LAYOUT_INFLATER_SERVICE);
... | [
"private View getWorkingView(final View convertView) {\n \t\t\tView workingView = null;\n \t\n \t\t\tif(null == convertView) {\n \t\t\t\tfinal Context context = getContext();\n \t\t\t\tfinal LayoutInflater inflater = (LayoutInflater)context.getSystemService\n \t\t\t\t\t\t(Context.LAYOUT_INFLATER_SERVICE);\n \t\t\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Postcondition: will return the number of lunch supervisions required | public static int getLunchCounter() {
return lunchCounter;
} | [
"public static int minimumNumberOfLiable() {\n return 0;\n }",
"int getStardustCostCount();",
"public long getNLunchStarts(\r\n ) {\r\n return this._nLunchStarts;\r\n }",
"public int getShipPartsNeededCount() {\n return (maxDays * 2) / 3;\n }",
"java.math.BigInteger getNumberOfInstallme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize FullStory middle ware with application context, segmentTag. With no allowlisted events, no Segment track events will be passed to FullStory session replay. For more information go to: | public FullStorySegmentMiddleware(Context context, String segmentTag) {
this(context, segmentTag, new ArrayList<>());
Log.i(TAG, "no events allowlisted, unless enabled: allowlistAllTrackEvents, Segment track events will not be forward to FullStory!");
} | [
"public FullStorySegmentMiddleware(Context context, String segmentTag, List<String> allowlistEvents) {\n this.allowlistedEvents = allowlistEvents;\n\n // Analytics reset does not use middleware, so we need to listen to when the userID becomes null in shared preference and call anonymize to logout the ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets up the passing message Will show a short message and contains a button which the HeartsView objects listens to | public void setUpPassingMessage(HeartsView view){
passingMessage.setText(PASSING_MESSAGE);
// increase size of font
passingMessage.setFont(passingMessage.getFont().deriveFont((float) 25.0));
passingMessage.setForeground(Color.PINK);
messageArea.add(passingMessage);
// set up pass button
passButton.s... | [
"public void showPassingMessage(){\n\t\t\n\t\tpassingMessage.setVisible(true);\n\t\tpassButton.setVisible(true);\n\t}",
"public void message() {\r\n messageDialog(\r\n parent,\r\n title,\r\n icon,\r\n instruction,\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
size of the map | public int sizeOfMap(){return size;} | [
"public Integer sizeOfMap() {\n\t\tMap<String, String> simpleMap = createSimpleMap(\"Key\", \"Value\");\n numberOfEntries = 10;\n\t\treturn simpleMap.size();\n\t}",
"public int getMapSize(){\n return size;\n }",
"@Override\n protected int estimateSize() {\n return map.size();\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the visualization parameters. | @Override
public void createVisualizationParameters(
ParamCollection visualizationParameters) {
visualizationParameters.setName("Vector Field");
visualizationParameters.add(sliceParam = new ParamInteger("Slice", 1,
slices, slice + 1));
sliceParam.setInputView(new ParamIntegerSliderInputView(slicePar... | [
"Parameters createParameters();",
"private void setParameters(ConstMetaData metaData) {\n if (dialog == null) {\n return;\n }\n // Use GPU\n dialog.setUseGpuEnabled(Network.isLocalHostGpuProcessingEnabled(manager, axisID,\n manager.getPropertyUserDir()));\n dialog.setUseGpuSelected(meta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'field848' field | public java.lang.CharSequence getField848() {
return field848;
} | [
"public java.lang.CharSequence getField848() {\n return field848;\n }",
"java.lang.String getField1548();",
"java.lang.String getField1538();",
"java.lang.String getField1558();",
"java.lang.String getField1348();",
"java.lang.String getField1748();",
"java.lang.String getField1638();",
"java.lang... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the loaded locale that was used for the resources file This can be used to create matching other internationalisation implementation details such as currency and number formatters. | public Locale getFoundLocale() {
return stringResources.getLocale();
} | [
"public Locale getLocaleToUse();",
"ResourceBundle getResourceBundle(Locale locale);",
"public String getUserLocale();",
"public java.lang.String getLocale()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |