query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Fuction on click backIcon go From placeTranslation to myTranslation Fragment | private void backclicklistener() {
back_iv.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Navigation.findNavController(view).navigate(R.id.action_place_translationFragment_to_myTranslationsFragment);
}
});
... | [
"public void goBackSignupChooseUniversity() {\n saveToUserSetup();\n FragmentManager manager = getActivity().getSupportFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.setCustomAnimations(R.anim.enter_from_left, R.anim.exit_to_right);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
List ip permissions for the specified registry. | public void listIpPermission(yandex.cloud.api.containerregistry.v1.RegistryServiceOuterClass.ListIpPermissionRequest request,
io.grpc.stub.StreamObserver<yandex.cloud.api.containerregistry.v1.RegistryServiceOuterClass.ListIpPermissionsResponse> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplement... | [
"public yandex.cloud.api.containerregistry.v1.RegistryServiceOuterClass.ListIpPermissionsResponse listIpPermission(yandex.cloud.api.containerregistry.v1.RegistryServiceOuterClass.ListIpPermissionRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getListIpPermission... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column t_order.orderState | public Integer getOrderState() {
return orderState;
} | [
"public Integer getOrderState() {\n return orderState;\n }",
"public OrderState getState() {\n if ( state == null || idState != state.getId() ) {\n OrderStateDAO osd = new OrderStateDAO();\n state = osd.getState( idState );\n }\n return state;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Search for Entity Resource | @RequestMapping(value = "/entities", method = RequestMethod.POST)
public ResponseEntity<List<Entity>> search(@RequestBody Map<String, List<String>> reqMap) {
logger.info("Searching Entity Resource ...");
PropertyDescriptor[] params = BeanUtils.getPropertyDescriptors(Entity.class);
List<String> variables = ... | [
"TransferObject<?> findEntity(\n TransferObject<Object> entity,\n SearchEngineEnum searchType );",
"public SinaIPEntity search()\n\t\tthrows Exception\n\t{\n\t\tString text = getText(null);\n\t\t\n\t\treturn createEntity(text);\n\t}",
"@Test\n public void search_entity_person_by_name() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
UNN_TriNucleotideScore() calculate the trinucleotide score of "UUN_trinucleotide" by taking the average of all combinations of trinucleotides possible to create from this UUN type trinucleotide | private double UUN_TriNucleotideScore(String UUN_trinucleotide) {
// replace the middle nucleotide, so we get UNN, and then
// call UNN for each of the four replacement combinations
// and take the average of these four scores
// number trinucleotide combinations which can be made from replacing
// the
// ... | [
"private double UNN_TriNucleotideScore(String UNN_trinucleotide) {\n\t\tString temp_trinucleotide = \"\"; // current trinucleotide made by\n\t\t\t\t\t\t\t\t\t\t// replacement of U nucleotides\n\t\tchar replacement_nucl; // the nucleotide replacement for the U symcol\n\n\t\t// sum of adding all the trinucleotide sco... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allows to create a Competition in the database if it wasn't inserted before | @PostMapping("/competitions")
Competition createCompetition(@RequestBody Competition newComp) {
if (competitionRepository.findCompByName(newComp.getName()).isPresent()) {
throw new ResponseStatusException(HttpStatus.BAD_REQUEST);
}
return competitionRepository.save(newComp);
... | [
"@Test\n public void createCompetition() {\n new Competition(\"Concurso Ejemplar\", \"\", null, null).save();\n\n Competition concurso = Competition.all().first();\n\n assertNotNull(concurso);\n\n // Create a team\n Team equipo1 = concurso.createTeam(\"Equipo Ejemplar\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To start audio meeting | void initiateAudioMeeting(User user); | [
"private void startSpeech() {\n\n final SpeakItem speak = speakQueue.peek();\n\n // This addresses the possibility of the queue being cleared\n // between the time of this function call and this line of code.\n if (speak == null) {\n return;\n }\n\n notifyAlexaSp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
canEnter allows car to enter if intersection does not have a car in it and current stoplight is green | public Boolean canEnter(Car car) {
//0 left, 1 right, 2 up, 3 down
int nextDir = car.road.direction;
if(currentCar != null) {
return false;
}
if(stoplight.lights[nextDir] == 0 || stoplight.lights[nextDir] == 2) return false;
return true;
} | [
"public boolean tryToGetIntoIntersection(Car car) {\n Logger.getInstance().logInfo(car.getName(), \"Trying to get into intersection: \" + getName());\n Lane nextLane = car.getNextLane();\n // in french driving system you don't get inside an intersection if the next lane is not free\n if ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the primary key of this league day. | @Override
public long getPrimaryKey() {
return _leagueDay.getPrimaryKey();
} | [
"@Override\n public long getPrimaryKey() {\n return _employeeInterviewSchedule.getPrimaryKey();\n }",
"public long getPrimaryKey() {\n\t\treturn _timesheetTask.getPrimaryKey();\n\t}",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _esfTournament.getPrimaryKey();\n\t}",
"@Override\n\tpubl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the primitive item type corresponding to this item type. For item(), this is Type.ITEM. For node(), it is Type.NODE. For specific node kinds, it is the value representing the node kind, for example Type.ELEMENT. For anyAtomicValue it is Type.ATOMIC_VALUE. For numeric it is Type.NUMBER. For other atomic types it is ... | public ItemType getPrimitiveItemType() {
return this;
} | [
"public ItemTypeEnum getValue_ItemType() \n {\n return itemType;\n }",
"ItemType getType();",
"public Type getType() {\r\n return itemType;\r\n }",
"public String getItemType() {\n\t\treturn itemType;\n\t}",
"public String getItemType() {\n return itemType;\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the Variant as a Timestamp value. | public final void setTimestamp(long val, int nanos) {
if (setType != TIMESTAMP && setType != 0)
typeProblem(setType, TIMESTAMP, false);
type = Variant.TIMESTAMP;
if (timestampVal == null)
timestampVal = new Timestamp(System.currentTimeMillis());
long secs = val / TimeConst.MILLIS_PER_SECOND;
nano... | [
"public void set(Timestamp value)\n\t{\n\t\tSimpleDateFormat fmt = (SimpleDateFormat) Application.getInstance().get(\"timeformatobj\") ;\n\t\t\n\t\t//Convert the value\n\t\tString temp = fmt.format(value) ;\n\t\t\n\t\t//Set the value\n\t\tset(temp) ;\n\t}",
"public void setTimestamp(long value) {\n this.timest... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value of a field using reflection. This method will traverse the super class hierarchy until the first field of type fieldType is found. The value will then be assigned to this field. | public static void setInternalState(Object object, Class<?> fieldType, Object value) {
setField(object, value, findFieldInHierarchy(object, new AssignableFromFieldTypeMatcherStrategy(fieldType)));
} | [
"public static void setInternalState(Object object, Class<?> fieldType, Object value) {\n setField(object, value, findFieldInHierarchy(object, new AssignableFromFieldTypeMatcherStrategy(fieldType)));\n }",
"public void setFieldType(java.lang.String fieldType)\n {\n synchronized (monito... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
length of shortest ancestral path of vertex subsets A and B | public int length(Iterable<Integer> subsetA, Iterable<Integer> subsetB) {
BreadthFirstDirectedPaths searchA = new BreadthFirstDirectedPaths(g, subsetA);
BreadthFirstDirectedPaths searchB = new BreadthFirstDirectedPaths(g, subsetB);
int shortest = -1;
for (int s = 0; s < g.V(); ++s)... | [
"public int length(Iterable<Integer> A, Iterable<Integer> B) {\n\t\t// Kodinn her ad nedan er sa sami og er i length fallinu ad ofan nema breytt er um hvad\n\t\t// BFDP follin taka inn\n\t\tvilla(A, B);\n\t\t\n\t\tBreadthFirstDirectedPaths kor = new BreadthFirstDirectedPaths(G, A);\n\t\tBreadthFirstDirectedPaths ta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets crypted data internal. | public CryptedData getCryptedDataInternal() {
return cryptedDataInternal;
} | [
"public byte[] getEncryptedData()\n {\n return infoObj.getEncryptedData();\n }",
"public java.lang.String getEncryptedData() {\r\n return encryptedData;\r\n }",
"@NonNull\n public byte[] getEncryptedData() {\n return value.clone();\n }",
"public DataEncryption dataEncryptio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a copy of the current audio metadata. | public AudioMetadata copyOf()
{
AudioMetadata copy = new AudioMetadata( mSource, mSourceRecordable );
copy.mPriority = mPriority;
copy.mSelected = mSelected;
copy.mRecordable = mRecordable;
copy.mMetadata.addAll( mMetadata );
copy.mUpdated = mUpdated;
copy.mIdentifier = new String( mIdentifier );
... | [
"public MediaMetaData getMetaData() {\n return this.MetaData;\n }",
"public Metadata getMetadata() { return metadata; }",
"public @Nullable MediaMetadata2 getMetadata() {\n return mMetadata;\n }",
"public final MetadataInformation getMetadata() {\r\n\t\treturn metadata;\r\n\t}",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
discos es un metodo que nos ayudara a ver cuantos discos de 700 mb se necesitatran para almacenar "X" Gigabyts de informacion | private static int discos(double GB) {
int res=0;
res=(int) Math.ceil((GB*1024)/700);//una operacion sencilla pero para ver cuantos discos usamos solo
//que usamos de la clase mat y ceil que su funcion es redondear a numeros enteros para tener los discos
return res;
} | [
"public String obtenerCosechaConMasKilos() {\n\t\t//Completar\n\t\tString i=\"\";\n\t\tint cosechaConMasKilos = 0;\n\t\tfor (int j = 0; j < cosechas.size(); j++) {\n\t\t\tif (cosechas.get(j).getKilos() > cosechaConMasKilos) {\n\t\t\t\tcosechaConMasKilos = cosechas.get(j).getKilos();\n\t\t\t\ti = \"La cosecha con ma... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the ADDR value for this InsuranceINS. | public webservice.hospindex.InsuranceINSADDR[] getADDR() {
return ADDR;
} | [
"public int get_addr() {\n return (int)getUIntElement(offsetBits_addr(), 16);\n }",
"public String getInsipaddr() {\r\n return insipaddr;\r\n }",
"public java.lang.CharSequence getADDRESSIND() {\n return ADDRESS_IND;\n }",
"public java.lang.CharSequence getADDRESSIND() {\n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
POST: Create a new consequencia. | @RequestMapping(method = RequestMethod.POST)
public ResponseEntity<ConsequenciaDTO> createConsequencia(@Valid @RequestBody ConsequenciaDTO consequenciaDTO) throws URISyntaxException {
log.debug("REST request to save Consequencia : {}", consequenciaDTO);
if (consequenciaDTO.getId() != null) {
... | [
"@PostMapping(\"/cuentas\")\n @Timed\n public ResponseEntity<Cuenta> createCuenta(@RequestBody Cuenta cuenta) throws URISyntaxException {\n log.debug(\"REST request to save Cuenta : {}\", cuenta);\n if (cuenta.getId() != null) {\n throw new BadRequestAlertException(\"A new cuenta cann... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column TB_YW_SCSJ_FILE.SCDX | public void setScdx(Integer scdx) {
this.scdx = scdx;
} | [
"public void setSskxxd(String sskxxd) {\n this.sskxxd = sskxxd == null ? null : sskxxd.trim();\n }",
"public void setScat_cd(final java.lang.String scat_cd) {\n\t\tthis.scat_cd = scat_cd;\n\t}",
"public void setCDS(java.lang.Integer CDS) {\n this.CDS = CDS;\n }",
"public void setDSCRSF(jav... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
lists all questionAnswerStore objects for a survey instance | @SuppressWarnings("unchecked")
public List<QuestionAnswerStore> listQuestionAnswerStore(Long instanceId,
Integer count) {
PersistenceManager pm = PersistenceFilter.getManager();
Query q = pm.newQuery(QuestionAnswerStore.class);
q.setFilter("surveyInstanceId == surveyInstanceIdParam");
q.declareParamet... | [
"public List<SurveyBean> getAllSurvey(){\r\n\t\t\r\n\t\tConfiguration configuration=new Configuration();\r\n\t\tconfiguration.configure();\r\n\t\tServiceRegistry sr= new ServiceRegistryBuilder().applySettings(configuration.getProperties()).buildServiceRegistry();\r\n\t\tSessionFactory sf=configuration.buildSessionF... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the signature bitmap in PNG format encoded in a Base64 string. | public String getBase64EncodedPNG()
{
String base64Png = null;
ByteArrayOutputStream output = new ByteArrayOutputStream();
try
{
if (getBlackWhiteBitmap().compress(Bitmap.CompressFormat.PNG, 100, output))
{
byte[] imgData = output.toByteArray();
base64Png = Base64.encodeToString(imgData, Base64.D... | [
"byte[] getSignatureImage();",
"public String getBase64Bitmap()\n {\n return encodeB64Bitmap();\n }",
"public java.lang.String getSignatureimage () {\n\t\treturn signatureimage;\n\t}",
"private static String toBase64(Bitmap bitmap) {\n ByteArrayOutputStream byteArrayOutputStream = new ByteArra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
function that Customs the Graph | private void setCustomGraph(){
// Set Touch, Drag and Scale to enable
chart.setTouchEnabled(false);
chart.setDragEnabled(false);
chart.setScaleEnabled(false);
// Controlling right side of y axis
YAxis yAxisRight = chart.getAxisRight();
yAxisRight.setEnabled(fals... | [
"public void buildGraph(){\n\t}",
"private void setGraphDataAndStyle() {\n graphView.addSeries(new LineGraphSeries(getSeriesData()));\n graphView.setTitle(\"配速\");\n graphView.getGridLabelRenderer().setLabelFormatter(new DateAxisLabelFormatter(getActivity()));\n graphView.getGridLabelRe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Testing generateIntegerSequences(int n, int[] length, int[] min, int[] max, boolean[] replacement) | @Test
public void testPositiveGenerateIntegerSequences_7() {
int i = 1;
for (RandomOrgClient roc : rocs) {
try {
collector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT), notNullValue());
} catch (Exception e) {
collector.addError(new Error(errorMessage(i, e, true)));
... | [
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_8() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Runs before all other methods of this class and checks the useLiveConnection flag to setup JSON data for the rest of the tests | @BeforeClass
public void beforeClass() {
if (useLiveConnection) {
try {
JSONdata = ConnectionUtil.establishConnectionAndGetDataString(null, null);
}
catch (Exception e) {
assertTrue(false, "An Exception Happened in the connection: "+e.getMessage());
}
}
else {
JSONdata = ConnectionUtil... | [
"@Before\n public void setUp() throws Exception {\n //setting up test for our specific card\n JSONLoader.instance();\n excommunicationTiles = JSONLoader.loadExcommunicationTiles();\n }",
"@BeforeTest\r\n\tpublic void beforeTest() {\r\n\t\tapi = new ApiAutomation();\r\n\t\tapi.initialize... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Input file is a short story, with multiple lines of text Each mapper handles one line and outputs a list of tuples that indicate characters in each word. ... Each reducer will then handle the entire group of tuples with like character counts and figure out how many words of each character count there is The final outpu... | @Test
public void testCharCountPool() throws FileNotFoundException, IOException {
List<Tuple> input = getTuplesFromFileSimple("mapreduceExamples/shortstory.txt");
MapReduceController mr = new MapReduceController();
mr.addJob(input, new Instructions() {
... | [
"public void wordFreq() {\n\n\t\tmap = new HashMap<String, Integer>();\n\n\t\tfor (String line : fileLines) {\n\t\t\tScanner scan = new Scanner(line);\n\t\t\tscan.useDelimiter(\"[^a-zA-Z']\");\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString word = scan.next();\n\t\t\t\tword = word.toLowerCase();\n\n\t\t\t\tword = w... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ \brief Equalto operator between two Replacements. | @Converted(kind = Converted.Kind.AUTO_NO_BODY,
source = "${LLVM_SRC}/llvm/tools/clang/lib/Tooling/Core/Replacement.cpp", line = 98,
FQN="clang::tooling::operator==", NM="_ZN5clang7toolingeqERKNS0_11ReplacementES3_",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.tooling/llvmToClangType ${LLVM_SRC}/llvm/to... | [
"@Override\n public void visit(EqualsTo node) {\n node.getLeftExpression().accept(this);\n node.getRightExpression().accept(this);\n }",
"boolean equate(T o1, T o2);",
"protected void replaceVisitedExpressionWith(Expression other) {\n replacementExpr = other;\n }",
"public static... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of setYear method, of class Date. | @Test
public void testSetYear() {
System.out.println("setYear");
int Year = 0;
Date instance = new Date();
instance.setYear(Year);
// TODO review the generated test code and remove the default call to fail.
} | [
"@Test\n\tpublic void testSetYear()\n\t{\n\t\tArticleEntry ae = new ArticleEntry();\n\t\tString year = \"1983\";\n\t\tae.setYear(year);\n\t\tassertEquals(ae.getYear(),year);\n\t}",
"@Test\n public void testGetYear() {\n System.out.println(\"getYear\");\n Date instance = new Date();\n int e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Description : This function launches yopmail.com website Date: 09Dec2016 Author : Bhavana | public void launchYopmail() throws Exception {
wdriver.get(WebData.urlOfYopmail);
} | [
"private void execMail(final URI url) {\n if (desktop != null && desktop.isSupported(Desktop.Action.MAIL)) {\n try {\n desktop.mail(url);\n } catch (IOException ex) {\n LOG.info(USER_ERROR, \"Unable to open URL: {}\", ex.getMessage(), ex);\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the preview painter for the specified tabbed pane. | public static TabPreviewPainter getTabPreviewPainter(JTabbedPane tabbedPane) {
if (tabbedPane == null)
return null;
// check property on tabbed pane
Object tabProp = tabbedPane
.getClientProperty(LafWidget.TABBED_PANE_PREVIEW_PAINTER);
if (tabProp instanceof TabPreviewPainter)
return (TabPreviewPaint... | [
"public final PreviewPane getPreviewPane() {\n return previewPane;\n }",
"public void updatePreview() {\r\n\t\tm_preview.setBackgroundPainter(getPainter());\r\n\t}",
"public static PreviewPainter getComponentPreviewPainter(Component comp) {\n\t\tif (comp == null)\n\t\t\treturn null;\n\n\t\t// check pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
uint32 chunks = 3; | int getChunks(); | [
"int getNumOfChunks();",
"int getChunksAmount();",
"long getChunkNum();",
"long getTotalChunksInBin();",
"long getTotalChunksInUse();",
"synchronized void incNumChunks(){\n\t\t\tnumChunks++;\n\t\t}",
"int getChunkSizesCount();",
"public int getMaxSpawnedInChunk()\r\n {\r\n return 4;\r\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Move a file or directory from one storage to another NOTE: target credentials must have an entry with key Type and value UserPass, Proxy. Username must be stored under key UserID; password under key UserPass. | public JSONObject move(final String uri, final Map<String, String> srcCreds, final String targetUri, final Map<String, String> targetCreds) throws Exception {
JSONObject targetDetails = new JSONObject();
targetDetails.put(JSON_TARGET, targetUri);
targetDetails.put(JSON_CREDENTIALS, new JSONObject(targetCreds));
... | [
"StorageAsset moveAsset(StorageAsset origin, String destination, CopyOption... copyOptions) throws IOException;",
"boolean move(FtpFile destination);",
"public void move(CmsPath destination);",
"static boolean localMove(File source, File target) {\n\t\tif (target.exists())\n\t\t\tif (!target.delete()) {\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prints the movies currently rented by the customer to the screen or prints that the customer is not renting any movies. | public void printRentedMovies(){
int counter = 0;
for (int index = 0; index < customerDVD.size(); index++){
System.out.println(customerDVD.get(index).getMovieName());
counter++;
}
if (counter == 0){
System.out.println(this.getFirstName() + " is ... | [
"public void listRentedBooks() {\n if(books.size() == 0) {\n System.out.print(\"\\u001B[31m\" + \"Customer does not have any book rented\" + \"\\u001B[0m\");\n return;\n }\n\n books.forEach(book -> System.out.print(\n \"\\u001B[32m\" +\n name ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the sMemPhone value for this EntityResMain. | public String getSMemPhone() {
return sMemPhone;
} | [
"public String getSMemMobile() {\n return sMemMobile;\n }",
"public void setSMemPhone(String sMemPhone) {\n this.sMemPhone = sMemPhone;\n }",
"public java.lang.String getMobilePhone()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates Menu for About | private JMenu createAboutMenu() {
JMenu aboutMenu = new JMenu("About");
aboutMenu.addMenuListener(new AboutActionListener());
return aboutMenu;
} | [
"private void createAboutMenu() {\n\t\tJMenu about = new JMenu(MN_ABOUT);\n\t\tabout.add( createMenuItem(MI_HELP, \"\"));\n\t\tadd(about);\n\t}",
"private JMenuItem createAboutMenuItem() {\n JMenuItem item =\n I18n.get(HelpMenu.class).createMenuItem(\"aboutMenuItem\", new Object[] {Jin.getAppName()});\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the outdegree of a node. | public int getOutDegree(int node) {
return outDegree[node];
} | [
"public int getOutDegree() {\n\t\treturn outDegree;\n\t}",
"public int getOutDegree() {\r\n\t\treturn outEdge.size();\r\n\t}",
"public int getInDegree(int node) {\n return inDegree[node];\n }",
"public int getOutDegree() {\n return outEdges.size();\n }",
"public double getNodeOutDegree(Vertex vertex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the global instance of the master Controller. | public static Controller getInstance() { return INSTANCE; } | [
"public static MainController getInstance(){\n if(instance == null)\n instance = new MainController();\n return instance;\n }",
"public static ClientMainController getClientMainController() {\n\t\treturn controller;\n\t}",
"public static UIMaster\n getInstance() \n {\n return sM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a detached, initialised PgStatSysTablesRecord | public PgStatSysTablesRecord(Long relid, String schemaname, String relname, Long seqScan, Long seqTupRead, Long idxScan, Long idxTupFetch, Long nTupIns, Long nTupUpd, Long nTupDel, Long nTupHotUpd, Long nLiveTup, Long nDeadTup, Long nModSinceAnalyze, Timestamp lastVacuum, Timestamp lastAutovacuum, Timestamp lastAnalyze... | [
"public PgStatSysTablesRecord() {\n super(PgStatSysTables.PG_STAT_SYS_TABLES);\n }",
"private void createStressTestStatusTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Col... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
histogram mahalanobis distance V1 for profile, V2 for recent histogram | public static final double mahalanobis(double[] V1, double[] V2, double[] stdDev){
double distance =0;
//Vector Vec1 = normalize(reGroup(V1));
double sum =0;
for(int i=0;i<24;i++)
sum += V2[i];//((Double)V2.elementAt(i)).doubleValue();
double[] Vec2;
if(sum==0){
Vec2 = new double[24];//new Vector... | [
"double[][] histogram();",
"double[][] theoreticalHistogram();",
"public double FunctionsMahalanobis_Distance_With_Variance(int hi) {\n\n double MD = 0.0; // mahalanobis distance\n double[] MDi = new double[geometryCheck_.length]; // mahalanobis distance\n\n for (int i = 0; i < geometryCheck_.length; i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Notifies the document about any change in style. | void onStyleModify() {
if (mergedStyleSheet != null) {
mergedStyleSheet = null;
sheets.setNeedsUpdate(true);
} else if (sheets != null) {
sheets.setNeedsUpdate(true);
}
} | [
"@objid (\"315c3151-cec4-4024-b38e-0ee99d31ae23\")\n @Override\n public void styleChanged(IStyle changedStyle) {\n styleChanged();\n }",
"public void styleChanged(GStyle style) {\n\t\tupdateStyle();\n\t\tupdateDamage();\n\t}",
"@objid (\"2126129c-3a2c-4c1e-b7a8-6503d9f96a9e\")\n @Override\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleMODULE_OR_GENERATE_ITEM" $ANTLR start "ruleMODULE_OR_GENERATE_ITEM" ../com.ironglass.hdlforge.ui/srcgen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:210:1: ruleMODULE_OR_GENERATE_ITEM : ( ruleMODULE_COMMON_ITEM ) ; | public final void ruleMODULE_OR_GENERATE_ITEM() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../com.ironglass.hdlforge.ui/src-gen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:214:2: ( ( ruleMODULE_COMMON_ITEM )... | [
"public final void entryRuleMODULE_OR_GENERATE_ITEM() throws RecognitionException {\r\n try {\r\n // ../com.ironglass.hdlforge.ui/src-gen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:202:1: ( ruleMODULE_OR_GENERATE_ITEM EOF )\r\n // ../com.ironglass.hdl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
f0 ::= SizeofTypeName() | SizeofUnaryExpression() | @Override
public Type visit(UnarySizeofExpression n) {
return UnsignedLongIntType.type();
} | [
"SymbolicExpression sizeofFunction();",
"NumericExpression sizeof(CIVLSource source, SymbolicType type);",
"private int funcSize( String defun ) {\n\t// Justification:\n\t// All types require 4 bytes. (the \"4*\")\n\t// We need space for the saved ra and maybe pushing our current fp (the \"+8\")\n\treturn 4*sym... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test initial conditions, and after reset() | @Test
public void exerciseReset() throws Exception {
assertFalse(mWifiScoreReport.shouldCheckIpLayer());
mWifiScoreReport.reset();
assertFalse(mWifiScoreReport.shouldCheckIpLayer());
} | [
"public void reset() {\r\n shouldReset = true;\r\n }",
"public boolean shouldReset();",
"@Test\n public void testReset() {\n action.reset();\n assertTrue(action.messages.isEmpty());\n assertTrue(action.records.isEmpty());\n assertTrue(action.fragments.isEmpty());\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
validate single route for distance and transportation type | private boolean isValidRoute(RouteModel routeModel) {
return !distanceToLong(routeModel) && userOwnsTransportation(routeModel);
} | [
"private void validate() throws FlightCreationException {\n validateNotNull(\"number\", number);\n validateNotNull(\"company name\", companyName);\n validateNotNull(\"aircraft\", aircraft);\n validateNotNull(\"pilot\", pilot);\n validateNotNull(\"origin\", origin);\n valida... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new filter between 0.00 and 999,999.99. | public NumericRangeFilter() {
this(0.00, 999999.99);
} | [
"private Filter betweenFilter(String start, Object minValue, Object maxValue) {\n return FF.between(FF.property(start), FF.literal(minValue), FF.literal(maxValue));\n }",
"DbQuery setStartAtFilter(int value) {\n return setStartAtFilter((double) value);\n }",
"public RandomFilter(float perc, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Mark the configuration instance has been completely loaded. | public abstract void loaded() throws ConfigurationException; | [
"protected void setLoaded()\n\t{\n\t\tthis.loaded = true;\n\t}",
"public void setLoaded()\n\t{\n\t\tthis.loaded = true;\n\t}",
"public void setLoaded()\n {\n Loaded = true;\n }",
"public void setLoaded();",
"public boolean ensureConfigurationReady();",
"protected void onLoaded() {\n this.isLoa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if short circuit read buffer size is set and if not, set it to hbase value. | public static void checkShortCircuitReadBufferSize(final Configuration conf) {
final int defaultSize = HConstants.DEFAULT_BLOCKSIZE * 2;
final int notSet = -1;
// DFSConfigKeys.DFS_CLIENT_READ_SHORTCIRCUIT_BUFFER_SIZE_KEY is only defined in h2
final String dfsKey = "dfs.client.read.shortcircuit.buffer.s... | [
"private static boolean isBufferTooLarge(int size) {\n\treturn size > MAX_CACHED_BUFFER_SIZE;\n }",
"private int readChunkSize(int desired) {\n return Math.min(availableFirst(), desired);\n }",
"void setBufferSize(int size);",
"protected boolean isReceiveBufferSizeChanged() {\n return t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get Documents According to TransID or DataFlow | public ClsNodeDocument[] GetDocuments (String tIDorDataFlow, boolean isTransID); | [
"public ClsNodeDocument[] GetDocuments (String transID, String dataFlow);",
"public ClsNodeDocument[] GetDocuments (String transID, String dataFlow, ClsNodeDocument[] searchDocs);",
"public ClsNodeDocument[] GetDocuments (String transID, String dataFlow,String[] operationArr, ClsNodeDocument[] searchDocs);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an ordered range of all the products that the user has permission to view where groupId = &63; and status = any &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. S... | public java.util.List<Product> filterFindByG_S(
long groupId, int[] statuses, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator<Product>
orderByComparator); | [
"public java.util.List<Product> findByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Product>\n\t\t\torderByComparator);",
"public java.util.List<Product> filterFindByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kern... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the current value of personId | public long getPersonId() {
return personId;
} | [
"public Integer getIdPerson() {\r\n return idPerson;\r\n }",
"public java.lang.String getPersonId() {\n\t\treturn _person.getPersonId();\n\t}",
"public Number getPersonId() {\n return (Number)getAttributeInternal(PERSONID);\n }",
"public Integer getPersonid() {\n return personid;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Perform the test for the given matrix column (A121) and row (B61). | public void testA121_B61() {
test_id = getTestId("A121", "B61", "221");
NonRootModelElement src = selectA("A121");
NonRootModelElement dest = selectB("B61");
A_B_Action(src, dest);
assertTrue("Paste menu item was available even though destination was invalid", checkResult_past... | [
"@Test\r\n public void testColumns() {\r\n int expResult=2;\r\n int result=matrixA.columns();\r\n assertEquals(expResult, result);\r\n }",
"public void testA119_B61() {\n test_id = getTestId(\"A119\", \"B61\", \"35\");\n\n NonRootModelElement src = selectA(\"A119\");\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Caches the wsihashs in the entity cache if it is enabled. | public void cacheResult(java.util.List<wsihash> wsihashs); | [
"public void cacheResult(wsihash wsihash);",
"public void updateAllCacheToProxy() {\n\t\tIterator<DataBlock> iter = cache.keySet().iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tint importance = 0;\n\t\t\tDataBlock dataBlock = iter.next();\n\t\t\t\n\t\t\tswitch (getBloomFilterType()) {\n\t\t\tcase IBF:\n\t\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If the token doesn't match the first token of any named entities, return straight away | private NamedEntity findEntityMatch(int index, List<Token> tokens) {
if(firstTokenToNamedEntityListMap.get(tokens.get(index)) == null) {
return null;
}
NamedEntity longestMatch = null;
for(NamedEntity e : firstTokenToNamedEntityListMap.get(tokens.get(index))) {
if(isMatch(index, tokens, e) && (longestM... | [
"uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode getFirstToken();",
"private void findNamedEntities(List<String> tokenizedSentence1, List<String> tokenizedSentence2)\n\t{\n\n\t\tString[] tokenized_sentence1 = tokenizedSentence1.toArray(new String[tokenizedSentence1.size()]);\n\t\tString[] tokenized_s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Condition 1 of rule constructDeeperUnderstanding03_PATH_1_GOAL_2_COMPONENT_txtOp_5. The original expression was: action.getGoal().getPath().getId().equals(1) | private boolean constructDeeperUnderstanding03_PATH_1_GOAL_2_COMPONENT_txtOp_5_cond_1() {
return (module_entity_Action_1.getGoal().getPath().getId().equals(1));
} | [
"private boolean constructDeeperUnderstanding02_PATH_1_GOAL_2_COMPONENT_txtOp_3_cond_1() {\r\n return (module_entity_Action_1.getGoal().getPath().getId().equals(1));\r\n }",
"private boolean constructDeeperUnderstanding03_PATH_2_GOAL_6_COMPONENT_txtOp_18_cond_1() {\r\n return (module_entity_Actio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if the receiving bank account will exceed 9 digits after transfer. | public void enoughForTransfer(double amount) throws BankException {
if (this.currentAmount + amount > MAX_AMOUNT) {
logger.warning("The amount in the receiving bank account cannot exceed 9 digits");
throw new BankException("The amount in the receiving bank account cannot exceed 9 digits"... | [
"private void validateSendAmount() {\n try {\n if (new BigDecimal(sanitizeNoCommas(sendNanoAmount))\n .compareTo(new BigDecimal(sanitizeNoCommas(NumberUtil.getRawAsLongerUsableString(accountBalance.toString())))) > 0) {\n RxBus.get().post(new SendInvalidAmount());... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an XML.ObjectLoader to save and load filter data. | public static XML.ObjectLoader getLoader() {
return new Loader();
} | [
"public static XML.ObjectLoader getLoader() {\n return new Loader();\n }",
"Load createLoad();",
"public static LocalLoader createFilteredLocalLoader(final ClassFilter classFilter, final PathFilter resourcePathFilter, final LocalLoader originalLoader) {\n return new FilteredLocalLoader(classFil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The firePropertyChange method was generated to support the propertyChange field. | public void firePropertyChange(java.beans.PropertyChangeEvent evt) {
getPropertyChange().firePropertyChange(evt);
} | [
"public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue) {\r\n\tgetPropertyChange().firePropertyChange(propertyName, oldValue, newValue);\r\n}",
"void firePropertyChange(final String name, final Object oldValue, final Object newValue);",
"@SuppressWarn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Contexts: type_definition_part returns type_definition_part Constraint: types+=type_definition+ | protected void sequence_type_definition_part(ISerializationContext context, type_definition_part semanticObject) {
genericSequencer.createSequence(context, semanticObject);
} | [
"TypeDefinitionsType getTypeDefinitions();",
"protected void sequence_type_definition_part(ISerializationContext context, type_definition_part semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}",
"Rule DefinitionType() {\n // No direct effect on value stack\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a merged ServiceState consisting of the base SS with voice settings from the voice SS. The voice SS is only used if it is IN_SERVICE (otherwise the base SS is returned). | @UnsupportedAppUsage
public static ServiceState mergeServiceStates(ServiceState baseSs, ServiceState voiceSs) {
if (voiceSs.mVoiceRegState != STATE_IN_SERVICE) {
return baseSs;
}
ServiceState newSs = new ServiceState(baseSs);
// voice overrides
newSs.mVoiceRegSt... | [
"private ServiceFunctionState buildServiceFunctionState() {\n ServiceFunctionStateBuilder serviceFunctionStateBuilder = new ServiceFunctionStateBuilder();\n serviceFunctionStateBuilder.setName(SFSTATE_NAME);\n\n return serviceFunctionStateBuilder.build();\n }",
"public SpeechStatePayload g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use XYPairs.newBuilder() to construct. | private XYPairs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private XYPair(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"object_detection.protos.Calibration.XYPairs getXYPairs();",
"object_detection.protos.Calibration.XYPairsOrBuilder getXYPairsOrBuilder();",
"private Pairs() {}",
"public Builder putClassIdXyPairs... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to get predecessor of a node. n is set to node.getLeft and if n is not null, while n.getRight is not null keep going right. | private RBNode<E> predecessor(RBNode<E> node) {
RBNode<E> n = node.getLeft();
if (n != null) {
while (n.getRight() != null) {
n = n.getRight();
}
}
return n;
} | [
"public IAVLNode predecessor(IAVLNode node) {\r\n\t\tIAVLNode leftSon = node.getLeft();\r\n\t\tif(leftSon.isRealNode()) {\r\n\t\t\tIAVLNode prev = leftSon;\r\n\t\t\tIAVLNode cur = leftSon.getRight();\r\n\t\t\twhile(cur.isRealNode()) {\r\n\t\t\t\tprev = cur;\r\n\t\t\t\tcur = cur.getRight();\r\n\t\t\t}\r\n\t\t\tretur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Send the current world snapshot to a client. | private void sendWorldState(int tick, ClientProxy clientProxy) {
FlatBufferBuilder builder = new FlatBufferBuilder(1);
int offsetServerWorldState = world.serializeObjectStates(builder, tick, clientProxy);
ServerMessage.startServerMessage(builder);
ServerMessage.addMsgType(builder, Serv... | [
"public void snapshot() \n {\n System.out.println(\"Taking a snapshot ... snapshot.png\");\n\n glReadBuffer(GL_FRONT);\n\n int width = Display.getDisplayMode().getWidth();\n int height= Display.getDisplayMode().getHeight();\n int bpp = 4; // Assuming a 32-bit display with a byt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper method to construct an AddUpdateCommand for a SolrInputDocument in the context of the specified SolrQueryRequest. NOTE: For test simplicity, the Solr input document must include the _version_ field. | public static AddUpdateCommand buildAddUpdateCommand(
final SolrQueryRequest req, final SolrInputDocument sdoc) {
AddUpdateCommand cmd = new AddUpdateCommand(req);
cmd.solrDoc = sdoc;
assertTrue("", cmd.solrDoc.containsKey(VERSION_FIELD));
cmd.setVersion(Long.parseLong(cmd.solrDoc.getFieldValue(VE... | [
"private void initializeAddUpdateCommand() \r\n {\r\n try\r\n {\r\n if (addUpdateCommand == null)\r\n { \r\n Class<?> addUpdateCommandClass = Class.forName(\"org.apache.solr.update.AddUpdateCommand\"); \r\n addUpdateCo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the Xml element name of the DeleteRuleOperation object. | @Override public String getXmlElementName() {
return XmlElementNames.DeleteRuleOperation;
} | [
"String getOperationName();",
"public String getOperationName();",
"public final String getDeleteMethodName() {\n return METHOD_PREFIX_DELETE + getMethodSuffix();\n }",
"String operationName() {\n return name().toLowerCase(Locale.ROOT);\n }",
"N getOperationName( Object operation ) throws Clas... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Format the given key sequence into a string. The manner of the conversion is dependent on the formatter. It is required that unequal key seqeunces return unequal strings. | String format(KeySequence keySequence); | [
"String format(Key key);",
"public static String keySequenceToString( KeyStroke[] seq ) {\n StringBuffer sb = new StringBuffer();\n for( int i=0; i<seq.length; i++ ) {\n if( i>0 ) sb.append( ' ' ); // NOI18N\n sb.append( keyStrokeToString( seq[i] ) );\n }\n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AstNetwork__Group__6" $ANTLR start "rule__AstNetwork__Group__6__Impl" ../org.caltoopia.frontend.ui/srcgen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4535:1: rule__AstNetwork__Group__6__Impl : ( ( rule__AstNetwork__Group_6__0 )? ) ; | public final void rule__AstNetwork__Group__6__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4539:1: ( ( ( rule__AstNetwork__Group_6__0 )?... | [
"public final void rule__AstNetwork__Group_6__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4985:1: ( rule__AstNetwork__Group_6__... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleSchedulerDSL" $ANTLR start "entryRuleDefCore" InternalDsl.g:2029:1: entryRuleDefCore : ruleDefCore EOF ; | public final void entryRuleDefCore() throws RecognitionException {
try {
// InternalDsl.g:2030:1: ( ruleDefCore EOF )
// InternalDsl.g:2031:1: ruleDefCore EOF
{
if ( state.backtracking==0 ) {
before(grammarAccess.getDefCoreRule());
}
... | [
"public final void entryRuleSchedulerDef() throws RecognitionException {\n try {\n // InternalDsl.g:2330:1: ( ruleSchedulerDef EOF )\n // InternalDsl.g:2331:1: ruleSchedulerDef EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSchedul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a AdminWS bean to handle the list queries | public AdminBackOfficeBeanWS() throws NamingException, ConfigurationException {
InitialContext ctx = new InitialContext();
this.adminBean = (IAdmin) ctx.lookup(EJBLookupConstants.EJB_I_ADMIN);
} | [
"public AdminBean() {\n loadBooks();\n loadUsers();\n }",
"public interface SearchAdminBean\n{\n\n\t/**\n\t * Get the Title of the index\n\t * \n\t * @return\n\t */\n\tString getTitle();\n\n\t/**\n\t * get an HTML fragment representing the status of the index\n\t * \n\t * @param statusFormatStrin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ General function for DELETE. Returns 0 if successful, 1 if error. Accepts tableName and Map/"dictionary" of primary key pairs. | public int sqlDelete(Connection con, String tableName, HashMap<String, String> valMap) {
if (valMap.isEmpty()) {
return -1;
}
String delete = "delete from " + tableName + " where";
String conds = "";
for (HashMap.Entry<String, String> entry : valMap.entrySet()){
conds = conds.concat(" " + entry.g... | [
"void deleteItem(\n String tableName,\n MapStoreKey key\n );",
"@Override\n protected void processDelete(ByteBuffer tableName, ByteBuffer regionName, Delete delete)\n throws IOException, IOError {\n if (Bytes.isNonEmpty(regionName)) {\n metrics.incDirectCalls();\n rs.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
selects a collection of Task objects prefilled with their Contact objects. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in TaskPeer. | protected static List doSelectJoinContact(Criteria criteria)
throws TorqueException
{
setDbName(criteria);
TaskPeer.addSelectColumns(criteria);
int offset = numColumns + 1;
ContactPeer.addSelectColumns(criteria);
criteria.addJoin(TaskPeer.CONTACT_ID... | [
"protected static List doSelectJoinCustomer(Criteria criteria)\n throws TorqueException\n {\n setDbName(criteria);\n\n TaskPeer.addSelectColumns(criteria);\n int offset = numColumns + 1;\n CustomerPeer.addSelectColumns(criteria);\n\n\n criteria.addJoin(Ta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the localised string for the given property name. | public String getString(String property) {
return stringResources.getString(property);
} | [
"public String getLocalized(String key) {\n String local = key == null ? null : language.getProperty(key);\n return local == null ? key : local;\n }",
"public String getLocalizedString( String name ) {\n\t\tString outString = \"\";\r\n\t\tint id = getResources().getIdentifier( name, \"string\", g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Identify which DisplayedState contains the given point. Return null if no object at that point. | public DisplayedState pointToDisplayedObject(Point p){
// Determine which level the mouse-down is in.
// If beyond all existing levels, return null.
int levelNum = yPositionToLevelNum(p.y);
if (levelNum < 0)
return null;
List level = (List)iLevelList.get(levelNum);
// Create a dummy "probe" Disp... | [
"public Optional<T> findClickedObject(Point p) {\r\n\t\tIterator<T> io = iterator();\r\n\r\n\t\twhile (io.hasNext()) {\r\n\t\t\tT wo = io.next();\r\n\t\t\tif (wo.isEnabled() && wo.getSprite().isPresent()) {\r\n\t\t\t\tRectangle spriteRect = wo.getSprite().get().getRectangle();\r\n\t\t\t\tRectangle spriteWorld = wo.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column lt_google_adwords_report_ad.impressions | public void setImpressions(Integer impressions) {
this.impressions = impressions;
} | [
"public Integer getImpressions() {\r\n return impressions;\r\n }",
"public void setImpressionSealUsed (java.lang.String impressionSealUsed) {\n\t\tthis.impressionSealUsed = impressionSealUsed;\n\t}",
"public void setActiveViewImpressions(Integer activeViewImpressions) {\r\n this.activeViewImpre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Business logic interface encapsulating business methods for pedido management. | public interface PedidoLogic {
/**
* This method returns a Collection of {@link Pedido}, containing all pedidos data.
* @return Collection The collection with all {@link Pedido} data for pedidos.
* @throws BusinessLogicException If there is any error while processing.
*/
public... | [
"public interface PedidoOperations \r\n{\r\n boolean guardarPedido (int id_pedido, String fecha, String cantidad_producto, String precio_unitario);\r\n boolean actualizarPedido (int id_pedido, String fecha, String cantidad_producto, String precio_unitario);\r\n boolean eliminarPedido (int id_pedido);\r\n String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests tank while moving left | @Test
public void testTLeft2() {
tank.AbilityToMoveLeft();
tank.goLeft();
assertEquals(-1, tank.getX());
} | [
"@Test\n public void testTankMoveLeftRight() {\n tank.moveRight();\n tank.notMoveLeft();\n tank.tick();\n assertEquals(tank.x(), 321);\n tank.tick();\n tank.tick();\n tank.tick();\n assertEquals(tank.x(), 324);\n\n tank.moveLeft();\n tank.notMoveRight();\n tank.tick();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Send a notification for the watched item, if not already sent. | private int notify(Wishlist wishlist, WishlistItem watched, InventoryItem invItem) {
if (watched.isNotified) {
return 0;
}
System.out.println(invItem.name + " is in stock. Notify " + wishlist.distributorID);
if (notifier.notifyInStock(wishlist.notificationEmail, invItem.name)) {
watched.setNotified();
... | [
"public void markAsWatched() {\n\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\tDate currentDate = new Date();\n\tthis.watchedStatus = true;\n\tthis.watchCount++;\n\n\tnew SwingWorker<Void, Void>()\n\t{\n\n\t @Override protected Void doInBackground() throws Exception {\n\t\tTVDBDataMa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end ruleBody $ANTLR start entryRuleBodyClass ../edu.kit.scc.cfeditor.cfengine/srcgen/edu/kit/scc/cfeditor/cfengine/parser/antlr/internal/InternalCfengineEditor.g:1168:1: entryRuleBodyClass returns [EObject current=null] : iv_ruleBodyClass= ruleBodyClass EOF ; | public final EObject entryRuleBodyClass() throws RecognitionException {
EObject current = null;
EObject iv_ruleBodyClass = null;
try {
// ../edu.kit.scc.cfeditor.cfengine/src-gen/edu/kit/scc/cfeditor/cfengine/parser/antlr/internal/InternalCfengineEditor.g:1169:2: (iv_ruleBodyClass... | [
"public final EObject entryRuleBody() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleBody = null;\n\n\n try {\n // ../edu.kit.scc.cfeditor.cfengine/src-gen/edu/kit/scc/cfeditor/cfengine/parser/antlr/internal/InternalCfengineEditor.g:978:2: (iv_ruleBody= ru... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a reference to the given AIObject. | public void removeAIObject(String id) {
aiObjects.remove(id);
} | [
"public void removeObject(GameEntity object){\n myLevel.getObjects().remove(myLevel.getObjects().indexOf(object));\n }",
"public void removeRadarObject(RadarObject object) {\n\t\tobjects.remove(object);\n\t}",
"public void deleteObject() {\r\n \r\n for (int i=this.getnumber()-1;i>=0;i--)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form VisualizzaRichiesteAggiuntaAppelloForm | public VisualizzaRichiesteAggiuntaAppelloForm() {
initComponents();
appelli = new Appelli();
appelli.caricaRichieste();
richiesteTable.setModel(appelli);
} | [
"public RazredForma() {\n initComponents();\n obrada = new ObradaRazred();\n setTitle(Aplikacija.NASLOV_APP + \" | IZBORNIK RAZREDA\");\n obradaUcenik=new ObradaUcenik();\n obradaSkolskaGodina=new ObradaSkolskaGodina();\n ucitajGodine();\n ucitajRazrede();\n u... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the room of a guest given a name | public Room getRoom(String name) {
if (room1.getGuest() != null && room1.getGuest().getName().equals(name)) { // If room 1 has a guest and that guest has the name of the guest being requested
return room1;
} else if(room2.getGuest() != null && room2.getGuest().getName().equals(name)) { //... | [
"public Room getRoom(String guestName) {\n\n\t\tif (room1.getGuest() != null && room1.getGuest().getName().equals(guestName)) {\n\t\t\treturn room1;\n\t\t} else if (room2.getGuest() != null && room2.getGuest().getName().equals(guestName)) {\n\t\t\treturn room2;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"pri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If there are multiple seeds, combines into one seed | private void combineSeeds() {
// Find all seeds
ArrayList<Root> allSeeds = new ArrayList<Root>();
for (Root r: allRoots) {
if (r.isSeed) {
allSeeds.add(r);
}
}
// combine all seed voxels into one seed "root"
ArrayList<Coord> seed = new ArrayList<Coord>();
for (Root s: allSeeds){
allRoot... | [
"public static void seeder(int num_seeds){\n\n List<String> presquash = new ArrayList<>();\n for(int i=1; i<num_seeds+1; i++){\n presquash.add(String.valueOf(i));\n }\n\n List<String> postsquash = new ArrayList<>();\n while(postsquash.size() != 1){\n postsqua... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes an already existent binding to the new key | public void setKeyBinding2(String name, int key)
{
for(int i = 0; i < keyBindings.size(); i++)
{
if(keyBindings.get(i).name.equalsIgnoreCase(name))
{
keyBindings.get(i).id2 = key;
break;
}
}
} | [
"public void setKeyBinding1(String name, int key)\n\t{\n\t\tfor(int i = 0; i < keyBindings.size(); i++)\n\t\t{\n\t\t\tif(keyBindings.get(i).name.equalsIgnoreCase(name))\n\t\t\t{\n\t\t\t\tkeyBindings.get(i).id = key;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"private void addKeyBinding(String name, int pressedKey) \r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check the file state and change the state to make it be archived Statechange Approved (file, metadata): 4 > 0 (file): 6 > 3 Partially uploaded (metadata not uploaded): 5 > 1 Fully Uploaded: 2 (new state added) | private void changeState(String itemCloudId, String apKey, Set<String> approvedSet,
String upKey, Set<String> uploadedSet, Set<String> archivedSet) {
Log.i(TAG, "changeState(state, approved, uploaded, archived): " +
itemCloudId + "(" + preferences.getString(itemCloudId, "NULL") + ", " +
approvedSet.contai... | [
"public void setState(File state) {\r\n\t\tthis.state = state;\r\n\t}",
"private void startArchiving(DataStore gd, Index fi, FileModel item, String requestDate, String uri, int state,\n\t\t\tString apKey, Set<String> approvedSet, String upKey, Set<String> uploadedSet, \n\t\t\tString arKey, Set<String> archivedSet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reset the clock to use the actual system clock. | public static synchronized void useSystemTime() {
clockMs = null;
TimeUtil.resetCurrentMillisSupplier();
} | [
"public synchronized static void resetTime() {\n\t\ttime = 0;\n\t}",
"public final synchronized void resetTime() {\n this.last = System.nanoTime();\n }",
"private void resetTime(){\n\t\tif(printToConsoleDebug)SpaceXGUI.getInstance().appendToConsole(TAG,\" - reset thread timer\");\n\t\tlastCircleTi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Clears all the game data from players | private void clearGameData() {
deck.clearDeck();
for(PlayerStruct player:players) {
player.hand.clearHand();
player.tricks.clear();
player.trickCard = null;
player.canWin = false;
player.wantRematch = false;
}
} | [
"public void removeAllPlayers()\r\n\t{\r\n\t\tplayers.clear();\r\n\t}",
"private void gameCleared() {\n setPlayersButtonsEnabled(false);\n comparePlayers();\n }",
"public void resetPlayers() { // reset all player stats\n\n\t\tfor (AID a : playerStats.keySet()) {\n\t\t\tplayerStats.get(a).reset();\n\t\t}\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
path Compression version of find | public int pathCompression_find(int x){
//if the parent of x is not the parent of parent of x, set it to be parents of x
if(this.uf[x] != this.uf[this.uf[x]]) this.uf[x] = pathCompression_find(this.uf[x]);
return this.uf[x];
} | [
"String[] find(Path root, String pattern);",
"private static void filesFindMethod() throws IOException {\n\t\tPath path = Paths.get(\".\");\r\n\t\tStream<Path> find =\r\n\t\t\tFiles.find(path, 2, (paths, files) -> String.valueOf(paths)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.endsWith(\".txt\"));\r\n\t\tfind.forEach(Syste... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__InitialNode__Group_3__0" $ANTLR start "rule__InitialNode__Group_3__0__Impl" InternalActivityDiagram.g:3153:1: rule__InitialNode__Group_3__0__Impl : ( 'out' ) ; | public final void rule__InitialNode__Group_3__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalActivityDiagram.g:3157:1: ( ( 'out' ) )
// InternalActivityDiagram.g:3158:1: ( 'out' )
{
// InternalActi... | [
"public final void rule__DecisionNode__Group_4__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalActivityDiagram.g:5547:1: ( ( 'out' ) )\n // InternalActivityDiagram.g:5548:1: ( 'out' )\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The values in this metric. repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; | com.google.api.servicecontrol.v1.MetricValue getMetricValues(int index); | [
"java.util.List<com.google.api.servicecontrol.v1.MetricValue> getMetricValuesList();",
"java.util.List<? extends com.google.api.servicecontrol.v1.MetricValueOrBuilder>\n getMetricValuesOrBuilderList();",
"com.google.api.servicecontrol.v1.MetricValueOrBuilder getMetricValuesOrBuilder(int index);",
"com.al... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
<a href=" This test is done with a fullyhosted vocabulary. 32a: retrieval of all versions associated with an ontology URI | @Test
public void test32a() throws Exception {
System.out.println("** test32a");
if ( !vocabularyUri.startsWith(MmiOrr.ontService) ) {
System.out.println("SKIPPING test32a as vocabularyUri (" +vocabularyUri+ ") is assumed to be " +
"fully hosted but the Ont service being tested is elsewhere: " +MmiOrr.o... | [
"IRI getHref();",
"String marketplaceTermsLink();",
"String licenseTextLink();",
"public String getOntologyURI();",
"java.lang.String getLink();",
"Link getVnfLink();",
"public abstract String linkText();",
"@Schema(description = \"Reference of the product offering\")\n \n public String getHref() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all values of property OriginalArtist as an Iterator over RDF2Go nodes | public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllOriginalArtist_asNode(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {
return Base.getAll_asNode(model, instanceResource, ORIGINALARTIST);
} | [
"public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllOriginalArtist_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), ORIGINALARTIST);\r\n\t}",
"public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllLeadArtist_asNode() {\r\n\t\treturn Base.getAll_asNode(this.m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the key lists to use | public static void setKeysList(ArrayList<byte[]> arKeys)
{
SymKeyMgr.arKeys = arKeys;
} | [
"public void setKeyNames(List<String> keyNames) {\r\n this.names = keyNames;\r\n }",
"void setPropertyKeySettings(List<PropertyKeySetting> settingList);",
"private void setSurfaceKeys(List<Key> keys) {\n surfaceKeys = keys;\n }",
"public void setKeySet(Set<String> keys) {\r\n\t\tth... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A SelectionKeyHandler is used to handle the life cycle of a SelectionKey. Operations like cancelling, registering or closing are handled by SelectionKeyHandler. | public interface SelectionKeyHandler extends Handler{
/**
* <code>SelectionKey</code> process notification
* @param key <code>SelectionKey</code> to process
*/
public void process(SelectionKey key);
/**
* <code>SelectionKey</code> post process notification
* @par... | [
"SelectionKeyHandler getSelectionKeyHandler();",
"public AbstractSelectionHandler getSelectionHandler(ISelection selection) {\n AbstractSelectionHandler selectionHandler = null;\n if (selection instanceof ITreeSelection) {\n selectionHandler = new JavaElementSelectionHandler(selection);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs an instance of LeapControlException with the specified cause. | public LeapControlRuntimeException(Throwable cause) {
super(cause);
} | [
"public LeapControlRuntimeException() {\n }",
"public LensException(Throwable cause) {\n this(null, DEFAULT_LENS_EXCEPTION_ERROR_CODE, cause);\n }",
"public EIMCreateException(Throwable cause) {\n\t\tsuper();\n\t\tinitCause( cause );\n\t}",
"public VaultException(Throwable cause) {\n super(cause);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method searches for Medical leave by start date. | List<MedicalLeave> findByStartDate(Date startDate); | [
"void getLeaveData(long startDate,long endDate) {\n\n Calendar cal = Calendar.getInstance();\n cal.add(Calendar.MONTH, -1);\n int userID = Integer.parseInt(Helper.getStringValuefromPrefs(getActivity().getApplicationContext(), SharedPreferencesKey.PREF_USERID));\n List<LMSLeaveDataModal> ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the time the last step finished in long format. | public final long getTimeLastStepFinished() {
return timeLastStepFinished;
} | [
"@Override\n public double getLastTime() {\n return timeSteps.getLast().time;\n }",
"long getFinishTime();",
"long getFinishTimeMillis();",
"public long getLastTimeMillis() {\n return getUnit().toMillis(lastTime);\n }",
"public long getFinishTimeMillis() {\n return finishTimeMill... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reseed the jNeo PRNG with the supplied seed. This combines the seed into the existing PRNG state. | public void reseed(byte[] _seed) {
if (_seed == null)
throw new NullPointerException("seed is null");
rng.reseed(_seed);
} | [
"void reSeed(long seed);",
"public void reSeedGenerator(long newSeed) { generator.reSeed(12345); }",
"public Source setSeed(long seed) { prng.setSeed( seed ); return this; }",
"public void seed(long seed) {\n }",
"void setSeed(final long seed);",
"public void ChangeSeed(int seed)\n {\n _seed ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds alias for the provided urn and name. | private Alias getAlias(final String urn, final String alias)
throws IOException {
Alias result = null;
for (final Alias als
: this.base.user(URN.create(urn)).aliases().iterate()) {
if (als.name().equals(alias)) {
result = als;
break;
... | [
"ItemType resolveTypeAlias(StructuredQName typeName);",
"void alias(String name, String alias) throws Exception;",
"public boolean aliasExist(String aliasName);",
"List<String> resolveAlias(String alias);",
"private void retrieveAliases(String name, List<String> result) {\r\n\t\tfor (Entry<String, String> e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cache the song result | public void cacheSongsResult(String queryChars){
cacheSongsList.put(queryChars, searchSongsResult);
} | [
"public void cacheResult(org.liferay.jukebox.model.Album album);",
"public void updateSearchResultFromCache(String currQueryChars){\n searchSongsResult = cacheSongsList.get(currQueryChars);\n }",
"private void fillFromCache() {\n if (internal == null) {\n internal = (Song) Database.getFromCach... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
function to check whether a number is positive or not | public boolean isPositive(int number) {
return number > 0;
} | [
"public boolean isPositive() {\n return (number.intValue() > 0);\n }",
"private boolean isPositiveInteger(double x){\r\n return isInteger(x) && x>0; \r\n }",
"private boolean isNegativeInteger(double x){\r\n return isInteger(x) && x<0; \r\n }",
"public boolean isPositive()\n {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__RadarChart__Group__18" $ANTLR start "rule__RadarChart__Group__18__Impl" InternalMyDsl.g:8090:1: rule__RadarChart__Group__18__Impl : ( ( rule__RadarChart__Group_18__0 ) ) ; | public final void rule__RadarChart__Group__18__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:8094:1: ( ( ( rule__RadarChart__Group_18__0 )* ) )
// InternalMyDsl.g:8095:1: ( ( rule__RadarChart__Group_18__0 )* )
... | [
"public final void rule__RadarChart__Group_18__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8514:1: ( rule__RadarChart__Group_18__1__Impl )\n // InternalMyDsl.g:8515:2: rule__RadarChart__Group_18__1__Impl\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo encargado de definir los segmentos que componen un digito y a partir de los segmentos adicionar la representacion del digito a la matriz | private void adicionarDigito(int numero) {
switch (numero) {
case 1:
adicionarSegmento(3);
adicionarSegmento(4);
break;
case 2:
adicionarSegmento(5);
adicionarSegmento(3);
adicionarSegmento(6);
adicionarSegmento(2);
adicionarSegmento(7);
break;
case 3:
adicionarSegmento(5);
adi... | [
"@SuppressWarnings(\"unused\")\r\n private void JCATsegmentSubcutaneousFat2D() {\r\n \r\n // a buffer to store a slice from the source Image\r\n short[] srcBuffer;\r\n try {\r\n srcBuffer = new short [sliceSize];\r\n } catch (OutOfMemoryError error) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |