query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Creates a new duplicate filter iterator based on an existing iterator. This iterator should be used with union expressions and other complex iterator combinations (like 'get me the parents of all child node in the dom' sort of thing). The iterator is also used to cache nodesets returned by id() and key() iterators. | public DupFilterIterator(NodeIterator source) {
_source = source;
if (source instanceof KeyIndex) setStartNode(DOM.ROOTNODE);
} | [
"public Iterator iterator() {\r\n return new IdentityHashSetIterator();\r\n }",
"public DTMAxisIterator cloneIterator() {\n\ttry {\n\t final SortingIterator clone = (SortingIterator) super.clone();\n\t clone._source = _source.cloneIterator(); \n\t clone._factory = _factory;\t\t// shared betwee... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
PUT method to update the cv information by body in a json format, returning ok as a response | @PutMapping(path = "/updateCV")
public ResponseEntity<CVInfo> updateCV(@RequestBody CVInfo cvinfo) {
cvbuilderRepo.save(cvinfo);
return ResponseEntity.ok(cvinfo);
} | [
"@RequestMapping(method = RequestMethod.PUT)\r\n public ResponseObject update(@Validated @RequestBody Candidate candidate) {\r\n return candidateService.update(candidate);\r\n }",
"private Response applyPUTRequest(String url, String mediaType, String body) {\n LOG.info(\"PUT {}\", url);\n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Invoke the runtime's garbage collection procedure repeatedly until the amount of free memory stabilizes to within 10%. | protected void gc() {
if (false) {
long last;
long free = 1;
Runtime runtime = Runtime.getRuntime();
do {
runtime.gc();
last = free;
free = runtime.freeMemory();
} while (((double) Math.abs(free - last)) ... | [
"private void heavyGc() {\n\t\ttry {\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(200);\n\t\t\tSystem.runFinalization();\n\t\t\tThread.sleep(200);\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(200);\n\t\t\tSystem.runFinalization();\n\t\t\tThread.sleep(1000);\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(200);\n\t\t\tSystem.runFinal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a List of Lab Procedure Codes that meet the given WHERE clause | @SuppressWarnings ( "unchecked" )
private static List<LabProcedureCode> getWhere ( final List<Criterion> where ) {
return (List<LabProcedureCode>) getWhere( LabProcedureCode.class, where );
} | [
"@SuppressWarnings ( \"unchecked\" )\n public static List<LabProcedureCode> getAll () {\n return (List<LabProcedureCode>) DomainObject.getAll( LabProcedureCode.class );\n }",
"public LearningResultHasActivity[] findWhereProgramCodeEquals(String programCode) throws LearningResultHasActivityDaoExceptio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the preferred size Dimensions needed for this TextField. If a nonzero number of columns has been set, the width is set to the columns multiplied by the column width. | public Dimension getPreferredSize() {
synchronized (getTreeLock()) {
Dimension size = super.getPreferredSize();
if (columns != 0) {
size.width = columns * getColumnWidth();
}
return size;
}
} | [
"private double getSuggestedPrefWidth()\n {\n Insets ins = getPadding();\n double prefW = ins.getWidth();\n\n // Add width for line numbers\n if (_showLineNumbers) {\n Font font = _textArea.getFont();\n int lineCount = _textArea.getLineCount();\n doubl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Expand the type according to implementation generics / substitution handling. Should be called on any type that is considered in signatures computation. | default SNode expandType(SNode type) {
return type;
} | [
"public Type substType(Type t);",
"@Override\n public List<Type> expandVariadicTemplateType(Map<String, Integer> expandSizeMap) {\n Type type = fields.get(fields.size() - 1).type;\n if (type.needExpandTemplateType()) {\n List<Type> types = fields.subList(0, fields.size() - 1).stream().... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return versions of Elasticsearch which are index compatible with the current version, and also work on the local machine. | public List<Version> getIndexCompatible() {
return filterSupportedVersions(getAllIndexCompatible());
} | [
"public List<Version> getAllIndexCompatible() {\n return versions.stream()\n .filter(v -> v.lucene.getMajor() >= (currentVersion.lucene.getMajor() - 1))\n .map(v -> v.elasticsearch)\n .toList();\n }",
"com.google.devtools.testing.v1.AndroidVersion getVersions(int index);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the FAKE charset | @Test
public void fakeCharset() throws BonitaException, InterruptedException {
thrown.expect(BonitaException.class);
thrown.expectMessage("java.nio.charset.UnsupportedCharsetException: FAKE-CHARSET");
checkResultIsPresent(executeConnector(buildCharsetParametersSet(CHARSET_ERROR)));
} | [
"@Test\n public void utf8Charset() throws BonitaException, InterruptedException {\n stubFor(post(urlEqualTo(\"/\"))\n .withHeader(WM_CONTENT_TYPE, equalTo(PLAIN_TEXT + \"; \" + WM_CHARSET + \"=\" + UTF8))\n .willReturn(aResponse().withStatus(HttpStatus.SC_OK)));\n\n ch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Enter a number: 9 Number Square 1 1 2 4 3 9 4 16 5 25 6 36 7 49 8 64 9 81 | public static void main(String[] args) {
int input;
Scanner keyBd = new Scanner(System.in);
System.out.println("Please enter the number:");
input = keyBd.nextInt();
for(int i = 1; i <= input; i++){
int square = (i*i);
System.out.println(i + " \t" + squar... | [
"@SuppressWarnings(\"resource\")\n\t\tpublic void problem3 ()\n\t\t{\n\t\tScanner console = new Scanner(System.in);\n\t\tint num;\n\t\t\n\t\tSystem.out.println(\"Enter positive number: \");\n\t\tnum = console.nextInt();\n\t\tint answer = 1;\n\t\tfor (int j = 0; j<=10; j++)\n\t\t{\n\t\tanswer = num * j;\n\t\tSystem.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
disconnect PotentialCustomer with city_partner in PotentialCustomerContact | public PotentialCustomer planToRemovePotentialCustomerContactListWithCityPartner(
PotentialCustomer potentialCustomer, String cityPartnerId, Map<String, Object> options)
throws Exception {
// SmartList<ThreadLike> toRemoveThreadLikeList = threadLikeList.getToRemoveList();
// the list will not be nul... | [
"public void RemovePartner(){\n\t\tpartner = null;\n\t}",
"public void deAuthenticateCustomer() {\n this.currentCustomerAuthenticated = false;\n this.currentCustomer = null;\n }",
"public void disociarMedidorDeCliente (Cliente c){\r\n\t\t//TODO Implementar metodo\r\n\t}",
"public void blacklistCustomer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Geolocate an IP address to a street address Identify an IP address&39;s street address. Useful for security and UX applications. | @Test
public void iPAddressGeolocateStreetAddressTest() throws Exception {
String value = null;
GeolocateStreetAddressResponse response = api.iPAddressGeolocateStreetAddress(value);
// TODO: test validations
} | [
"java.lang.String getStreetAddress();",
"java.lang.String getStreetAddress2();",
"@Override\n public void processStreetAddress(String streetAddress, String cityAddress, String stateAddress, String zipAddress) {\n if (mReceiver == null) {\n mReceiver = new CoordinatesResultReceiver(new Handl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for the calculated attribute Codecommune. | public String getCodecommune() {
return (String) getAttributeInternal(CODECOMMUNE);
} | [
"public BigDecimal getCode() {\n return (BigDecimal) getAttributeInternal(CODE);\n }",
"public java.lang.String getAttributeCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the CommissionRate field. | public void setCommissionRate(java.math.BigDecimal value) {
__getInternalInterface().setFieldValue(COMMISSIONRATE_PROP.get(), value);
} | [
"public void setCommissionRate(java.math.BigDecimal value) {\n __getInternalInterface().setFieldValue(COMMISSIONRATE_PROP.get(), value);\n }",
"public void setComissionRate(double comissionRate){\n\t\t\n\t\tthis.comissionRate = comissionRate;\n\t}",
"public void setCreditRate(double creditRate) {\n\t\tthis.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetch records that have in_battle_gem_cost IN (values) | public List<BattleItemConfigPojo> fetchByInBattleGemCost(Integer... values) {
return fetch(BattleItemConfig.BATTLE_ITEM_CONFIG.IN_BATTLE_GEM_COST, values);
} | [
"private static boolean checkIfNeedMore(int[] costToPayToCheck){\n boolean result = false;\n List<PowerUpLM> copyOfPowerUpLMList = copyOf(tmpAmmoInPowerUp);\n\n if(costToPayToCheck[GeneralInfo.RED_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a value of property CopyrightInformationURL from an instance of org.ontoware.rdfreactor.schema.rdfs.Resource First, all existing values are removed, then this value is added. Cardinality constraints are not checked, but this method exists only for properties with no minCardinality or minCardinality == 1. | public static void setCopyrightInformationURL(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdfreactor.schema.rdfs.Resource value) {
Base.set(model, instanceResource, COPYRIGHTINFORMATIONURL, value);
} | [
"public void setCopyrightInformationURL(org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(this.model, this.getResource(), COPYRIGHTINFORMATIONURL, value);\r\n\t}",
"public void setCopyrightInformationURL( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Will return false since xdoclet tags are not inline tags. | public boolean isInlineTag ()
{
return false;
} | [
"public boolean isInlineTag() {\n return false;\n }",
"public boolean inDocnoTag() {\r\n\t\t\treturn (!stk.isEmpty() && tagSet.isIdTag((String) stk.peek()));\r\n\t\t}",
"public boolean isInline() {\n return (htmlTag.blockType == HtmlTag.BlockType.INLINE);\n }",
"public boolean isHTML () {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A Clusterable interface to be implemented by SIMMO objects, which can be clustered | public interface Clusterable {
} | [
"public interface Clustered {\r\n\t/**\r\n\t * This method add this node model into a cluster with given cluster ID. If\r\n\t * such cluster doesn't exist in ClusterManager, it creates a new cluster.\r\n\t * @param clusterID id\r\n\t */\r\n\tvoid addCluster(int clusterID);\r\n\t\r\n\t/**\r\n\t * This method adds a ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the identifier of the search/searchResault | public String getSearchIdentifier() {
return searchIdentifier;
} | [
"public String getIdentifier(){\n return searchId == null ? null : Long.toString(searchId);\n }",
"int getSearchId();",
"public int getSearchId() {\n return searchId_;\n }",
"public String getSearchid()\r\n {\r\n return searchid;\r\n }",
"public String getSearchId() {\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Start the PDDL actions currently loaded in the executor from the beginning. The actions will be executed in another thread after this method returns. The returned future can be used to monitor, cancel or extend the underlying task. The boolean contained in the future will be true only if all actions appear to succeed. | public XFuture<Boolean> startActionsList(String comment, Iterable<Action> actions,
ExecutorOption.WithValue<?, ?>... options) {
if (null == executorJInternalFrame1) {
throw new IllegalStateException("PDDL Exectutor View must be open to use this function.");
}
List<Action>... | [
"protected ListenableFuture<?> getBeforeStartFuture() {\n return Futures.immediateFuture(null);\n }",
"CompletableFuture<Boolean> startMigration();",
"private synchronized void handleActionStartAllUpload() {\n Log.d(TAG, \"handle action start all action\");\n // For sync, we stop upload... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
parseConfigFile method This method opens the configuration file for parsing, and passes each data line to the ParseConfigField() method. | public void parseConfigFile() throws IOException, FileNotFoundException {
//System.out.println("Parsing config file...");
parser = new ParseConfig(configFileName);
jdbc_db_jarfile = parser.getJDBCJarFile();
jdbc_db_driver = parser.getJDBCDriver();
jdbc_db_type = parser.getDBType(... | [
"public void parse(File _file, ConfigData _config) throws Exception {\n \n count = 0;\n configData = _config;\n \n //Get Parser\n try {\n SAXParserFactory factory = SAXParserFactory.newInstance();\n sax = factory.newSAXParser();\n } catch (Excep... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Interpret file accepts Scanner filescanner and PrintStream output, no returns for each line pair in the file of the file scanner, method stores the first line as the name and the second as the answers string. Calls getpercentages method with the answers string to get the percent of b reponses Calls getType with the b... | public static void interpretFile(Scanner fileScanner, PrintStream output) {
while(fileScanner.hasNextLine()) {
String name = fileScanner.nextLine();
String answers = fileScanner.nextLine().toUpperCase();
int[] BPercent = getPercentages(answers);
String type = getT... | [
"public static File analyzeFileContents(Scanner console) throws FileNotFoundException {\n\t\t// Get an input file & an output file name\n\t\tScanner fileReader = new Scanner(checkFileValidity(console));\n\t\tSystem.out.print(\"Output file name: \");\n\t\tFile outputFile = new File(console.nextLine());\n\t\tPrintStr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Since we are enforcing source/target edges, starting and arriving at the same node normally does not yield zero weight. Either the weight is finite (using a real path back to the source node) or the weight is infinite (when no such path exists). The exception of course would involve zero weight edges. 0 1 \ | 2 | @Test
public void sourceEqualsTarget() {
graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 10);
graph.edge(0, 2).setDistance(1).set(speedEnc, 10, 10);
graph.edge(1, 2).setDistance(1).set(speedEnc, 10, 10);
assertPath(calcPath(0, 0, 0, 1), 0.3, 3, 300, nodes(0, 1, 2, 0));
asse... | [
"@Test\n public void testSetZeroWeightSourceDidNotExistDouble() {\n Graph<Double> testGraph = Graph.empty();\n testGraph.add(1.);\n int previousWeight = testGraph.set(2., 1., 0);\n assertEquals(\"expected setting edge where source did not exist to return 0\", 0, previousWeight);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Attempt to connect or disconnect the CRCL client from the CRCL server by opening or closed the appropriate socket. NOTE: for setConnected(true) to succeed the robot port and host name must have previously been set or read from the property file. NOTE: disconnectRobot() is the same as setConnected(false) except it also ... | public void setConnected(boolean connected) {
logEvent("setConnected", connected);
setConnectedTrace = Thread.currentThread().getStackTrace();
if (!connected || robotName == null || !isConnected()) {
enableCheckedAlready = false;
}
if (null == robotName && connected) ... | [
"public void connect() {\n\t\tthis.client = RSocketFactory\n\t\t\t\t.connect()\n\t\t\t\t.keepAliveAckTimeout(Duration.ofMinutes(30))\n\t\t\t\t.transport(TcpClientTransport.create(socketAddress.getHostName(), socketAddress.getPort()))\n\t\t\t\t.start()\n\t\t\t\t.block();\n\t}",
"private void connectToServer(){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set a ToolCard as used so that its cost goes from 1 to 2 | public void setUsed() {
this.used = true;
this.cost = 2;
} | [
"void setCost(double cost);",
"public void addToUse(int card) {\r\n\t\tthis.toUse.add(card);\r\n\t}",
"public void useToolCard(SinglePlayerMatch match, ToolCardInput input) throws RemoteException {\n cardEffect(match, match.getPlayer(), input);\n }",
"public void setRepairCost(int cost);",
"double... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the default mTLS service endpoint. | public static String getDefaultMtlsEndpoint() {
return "storage.mtls.googleapis.com:443";
} | [
"public static String getDefaultMtlsEndpoint() {\n return \"netapp.mtls.googleapis.com:443\";\n }",
"public static String getDefaultMtlsEndpoint() {\n return \"vmwareengine.mtls.googleapis.com:443\";\n }",
"public static String getDefaultMtlsEndpoint() {\n return \"dataform.mtls.googleapis.com:443\";... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
will let user know if they guess to low,too high, or just right. | public void Hi_and_Low()
{
if (DiceTotal >= Hi_Low_Mid && Guess.equalsIgnoreCase("hi"))
{
System.out.println("your right");
System.out.print("Dice Total: " + DiceTotal);
points++;
}
else if (DiceTotal <= Hi_Low_Mid && Guess.equalsIgnoreCase("low"))
{
System.out.println("your right ");
System.... | [
"private void guess()\n {\n String guess = Greenfoot.ask(\"What do you guess?\");\n guesses.addGuess();\n if (Integer.parseInt(guess) > random)\n {\n text.setText(\"Lower.\");\n }\n else if (Integer.parseInt(guess) < random)\n {\n text.setTex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Saves multiple events, updates actor state after each event is successfully saved. | public void persistAllEvents(Iterable<E> events) {
persistAllEvents(events, e -> {});
} | [
"public void persistAllEvents(Iterable<E> events, Procedure<E> callback) {\n persistAll(events, callback);\n }",
"public void save()\n\t{\n\n\t\tif (eventMap.isEmpty()){return;}\n\n\t\t//looked up from here: http://www.tutorialspoint.com/java/java_serialization.htm\n\t\ttry\n\t\t{\n\t\t\tFileOutputStrea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column boss_organization.organization_description | public void setOrganizationDescription(String organizationDescription) {
this.organizationDescription = organizationDescription == null ? null : organizationDescription.trim();
} | [
"public String getOrganizationDescription() {\n return organizationDescription;\n }",
"public void setOrganization(String in) { this.organization = in;}",
"public void setOrganization(Organization organization){\r\n\t\tthis.organization = organization;\r\n\t}",
"public void setOrganization(Organizat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor suitable for making a copy of a Neco3D vector. | public Neco3D(Neco3D vec) {
this.xyz = vec.getInternalVector();
} | [
"public Vector(double x, double y, double z) {\n this(new Point3D(x,y,z));\n }",
"public Vector(Coordinate x, Coordinate y, Coordinate z) {\n this(new Point3D(x, y, z));\n }",
"public Vector(Point3D p) {\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
leerJSONDesdeUrl Lee un JSON desde una direcion de Internet Devuelve en un String el JSON leido | public static String leerJSONDesdeUrl(String urlALeer) {
URL url = null;
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
BufferedReader br_delaurl = null;
String todo = "";
try {
u... | [
"private String getJSONfromURL(String url) throws IOException {\n // Initialize\n String resultString;\n URL obj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\n\n con.setRequestMethod(\"GET\");\n // Fetching th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add the text file containing the key & secret in the same path as the source code | public void setAuthKeysFromTextFile(String textFile) {
try (Scanner scan = new Scanner(getClass().getResourceAsStream(textFile))) {
String apikeyLine = scan.nextLine(), secretLine = scan.nextLine();
apikey = apikeyLine.substring(apikeyLine.indexOf("\"") + 1, apikeyLine.lastIndexOf("\""));
secret = secretL... | [
"private static void keyToFile(String password){\r\n\t \r\n\t \r\n try {\r\n File keyFile = new File(\"db/keyfile.txt\");\r\n FileWriter keyStream = new FileWriter(keyFile);\r\n keyStream.write(password.toString());\r\n keyStream.close();\r\n } catch (IOException e) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
As a User I can submit a form to apply for reimbursement | @Override
public void submitForm(Context ctx) {
User loggedUser = ctx.sessionAttribute("loggedUser");
if (loggedUser == null) {
ctx.status(401);
return;
}
String username = ctx.pathParam("username");
if (!loggedUser.getUsername().equals(username)) {
ctx.status(403);
return;
}
Form form = ctx.... | [
"@Override\n\tpublic void approveForm(Context ctx) {\n\t\t//Authentication\n\t\tUser approver = ctx.sessionAttribute(\"loggedUser\");\n\t\tif (approver == null) {\n\t\t\tctx.status(401);\n\t\t\treturn;\n\t\t}\n\t\tString username = ctx.pathParam(\"username\");\n\t\tif (!approver.getUsername().equals(username)) {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the magnitude of the faintest star that could be seen during observation time with the unaided eye. Might return Float.NaN if no value was set at all. | public float getFaintestStar() {
return faintestStar;
} | [
"public double getFurthestPointDistanceMeters() {\n // This default implementation returns -1;\n return -1;\n }",
"public double magnitude() {\n return celestialMagnitude;\n }",
"@java.lang.Override\n public float getAscoreWorst() {\n return ascoreWorst_;\n }",
"@java.lan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Complete a specific run. This method allows to complete a specific run. | public Response completeRun(String code, Integer id) throws QaseException {
ApiResponse<Response> localVarResp = completeRunWithHttpInfo(code, id);
return localVarResp.getData();
} | [
"synchronized void completeRun() {\n\tif (sbrRunning.sr!=null) {\n\t sbrReady = sbrRunning;\n\t Logging.info(\"SBRG(session=\"+sd.getSqlSessionId()+\"): Thread \" + sbrRunning.getId() + \" finished successfully; plid=\"+ sbrRunning.plid+\", |sr|=\" + sbrReady.sr.entries.size() + \"; \" + sbrReady.msecLine());... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
test loadmap invalid commands | @Test
public void test_processMapEditorCommand_loadmap_invalid() throws Exception {
String l_msg;
d_map_editor_controller.processMapEditorCommand("loadmap");
l_msg = d_msg.getLastMessageAndClear().d_message;
assertTrue(l_msg.contains("no options specified"));
// non-existant map file
d_map_editor_controll... | [
"@Test\n\tpublic void test_processMapEditorCommand_loadmap_valid() throws Exception {\n\t\tString l_msg;\n\t\tPhase next_phase = d_map_editor_controller\n\t\t\t\t.processMapEditorCommand(\"loadmap \" + d_MAP_DIR + \"canada/canada.map\");\n\t\tl_msg = d_msg.getLastMessageAndClear().d_message;\n\t\tassertTrue(l_msg.c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check whether this worm can land at the given position. | public boolean canLandAt(Position position) {
if (!getWorld().isAdjacentToImpassableTerrain(position, getRadius()))
return false;
if (position.getDistanceFrom(getPosition()) < getRadius())
return false;
return true;
} | [
"public boolean land() {\n return true;\n }",
"boolean land();",
"public boolean isWall(Position p) { return inRange(p) && get(p)=='1'; }",
"public boolean canPlaceAt(World world, BlockPos pos);",
"public boolean isValidPosition(Vector position) {\r\n\t\tif (this.getWorld() == null){\r\n\t\t\tretu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value of ViewUrl | public void setViewUrl(String v)
{
if (!ObjectUtils.equals(this.viewUrl, v))
{
this.viewUrl = v;
setModified(true);
}
} | [
"public void setUrl(String value) {\n url = value;\n }",
"public Builder setVmUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n vmUrl_ = value;\n onChanged();\n return this;\n }",
"public a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This adds a property descriptor for the Content Class feature. | protected void addContentClassPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_IndexUnit_contentClass_feature"),
getString("_UI_PropertyDescript... | [
"protected void addDefinitionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_GlossaryTerm_definition_feature\"),\n\t\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verify Put valid Brand with Authorized Token | @Test
// @Ignore
public void whenValidInput_thenEditAndReturnBrand() throws IOException, Exception {
// Data preparation
String accessToken = obtainAccessToken("sayedbaladoh", "sayedbaladoh");
Brand brand = createTestBrand("Nissan_Test");
brand.setName("Nissan_test_update");
brand.setWebsite("www.nissan_te... | [
"@Test\n\t// @Ignore\n\tpublic void whenInValidBrandId_thenBrandNotDeleted() throws IOException, Exception {\n\t\t// Data preparation\n\t\tString accessToken = obtainAccessToken(\"sayedbaladoh\", \"sayedbaladoh\");\n\t\t// Method call and Verification\n\t\tmvc.perform(put(API_URL + \"/\" + INVALID_ID)\n\t\t\t\t.hea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the first job in the ordered set where userId = &63; and schedulerId = &63;. | public static Job fetchBySchedulerId_U_First(long userId, long schedulerId,
OrderByComparator<Job> orderByComparator) {
return getPersistence()
.fetchBySchedulerId_U_First(userId, schedulerId,
orderByComparator);
} | [
"public static Job fetchBySchedulerId_G_U_First(long groupId, long userId,\n\t\tlong schedulerId, OrderByComparator<Job> orderByComparator) {\n\t\treturn getPersistence()\n\t\t\t\t .fetchBySchedulerId_G_U_First(groupId, userId, schedulerId,\n\t\t\torderByComparator);\n\t}",
"public static Job fetchByUserId_Firs... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a new dummy vertex with alias | public void addVertex(String alias) {
Vertex vertex = new Vertex(VERTEX_ID, alias, this);
vertices.put(VERTEX_ID, vertex);
incrementVERTEX_ID();
for (NetworkListener l : listeners) {
l.vertexAdded(vertex);
}
} | [
"public void addVertex(Vertex vertex);",
"@Override\r\n public void add(V vertexName) {\r\n if(!contains(vertexName))\r\n map.put(vertexName, new Vertex(vertexName));\r\n }",
"public Vertex addVertex(Service service, String alias) {\r\n Vertex vertex = new Vertex(VERTEX_ID, servic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Publish content to the cdn for an IssueMeta | public void publish(IssueMeta meta) {
HttpPost post = getPost();
Map<String, String> params = getParams(
new Pair(PARAM_UPLOAD_PHASE, UploadPhase.PUBLISH),
new Pair(PARAM_ISSUEID, meta.getReferenceId()),
new Pair(PARAM_UPLOAD_TYPE,UploadType.PROTECTED));
List<NameValuePair> nvps = new Array... | [
"String publish(UploadCaptchaReq uploadCaptchaReq);",
"public void updatePublish(Content body);",
"@Path(\"/{groupId}/artifacts/{artifactId}/meta\")\n @POST\n @Produces(\"application/json\")\n @Consumes(\"application/json\")\n VersionMetaData getArtifactVersionMetaDataByContent(@PathParam(\"groupId\") Strin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert a UUID to and from a MS GUID. This method is only useful for MS SQL Server. It rearranges the most significant bytes from bigendian to littleendian, and viceversa. The Microsoft GUID format stores the most significant bytes as littleendian, while the least significant bytes are stored as bigendian (network orde... | public static UUID toAndFromMsGuid(UUID uuid) {
long msb = toAndFromMsGuidMostSignificantBits(uuid.getMostSignificantBits());
long lsb = uuid.getLeastSignificantBits();
return new UUID(msb, lsb);
} | [
"private static byte[] fromUuid(UUID id) {\n\t\tbyte[] uuidBytes = new byte[16];\n\t\t\n\t\tByteBuffer.wrap(uuidBytes)\n\t\t\t\t\t.order(ByteOrder.BIG_ENDIAN)\n\t\t\t\t\t.putLong(id.getMostSignificantBits())\n\t\t\t\t\t.putLong(id.getLeastSignificantBits());\n\t\t\n\t\treturn uuidBytes;\n\t}",
"public static org.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indicates whether the connector profile defines a connection to an Amazon Redshift Serverless data warehouse. | public Boolean isRedshiftServerless() {
return this.isRedshiftServerless;
} | [
"public Boolean getIsRedshiftServerless() {\n return this.isRedshiftServerless;\n }",
"public boolean isConnectToPlotServer();",
"boolean supportsConnects();",
"public boolean isConnectedToRepository() {\n // NOTE: can dynamically switch between rep and non-rep\n return StringUtils.isNotBlank(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get's whether the receiver has deleted the message. | public boolean getReceiverDeleteStatus() {
return this.ReceiverDeleteStatus;
} | [
"public boolean isMessageDeleted() {\r\n return isMessageDeleted( getMessage() );\r\n }",
"public boolean getDeleted() {\n return deleted;\n }",
"public boolean isDeleted() {\n // we can only say if the resource is deleted if we were able to read the record\n // (in which case resourceResu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ writeCodes(): Takes arguments out and map. A for loop goes to each entry in map and uses out to write that entry's character ASCII code, frequency, and code. A single line is dedicated to each character in the codes file. | private static void writeCodes(PrintWriter out, TreeMap<Character, HuffmanMapValue> map) {
for (Map.Entry<Character, HuffmanMapValue> entry : map.entrySet()) {
out.println((int)entry.getKey() + "\t" + entry.getValue().getOccurrences() + "\t" + entry.getValue().getCode());
}
o... | [
"private static void compress(RandomAccessFile in, BitOutputStream out, TreeMap<Character, HuffmanMapValue> map) throws java.io.IOException {\r\n\r\n int nextChar = 0;\r\n in.seek(0L);\r\n\r\n while (nextChar != -1) {\r\n\r\n nextChar = in.read();\r\n out.writeString(map.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
incrementa o valor com int | public void incrementaEm(int valor){
this.intValor += new Integer(valor);
} | [
"public void increment() {\r\n\t\tthis.value++;\r\n\t}",
"public int increment()\n {\n value = value + 1;\n if (value == limite) \n {\n value = 0;\n }\n return value; \n\n }",
"public int increase() {\r\n return ++value;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the base reference that will serve to compute relative resource references. | public void setBaseRef(Reference baseRef)
{
if(getResourceRef() == null)
{
logger.warning("You must specify a resource reference before setting a base reference");
}
else if((baseRef != null) && !baseRef.isParent(getResourceRef()))
{
logger.warning("You must specify a ... | [
"public void setBaseRef(Reference baseRef) {\r\n this.baseRef = baseRef;\r\n }",
"public void setBaseRef(String baseUri) {\r\n setBaseRef(new Reference(baseUri));\r\n }",
"public void setBaseRef(String baseUri)\r\n \t{\r\n \t\tsetBaseRef(new Reference(baseUri));\r\n \t}",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is the copy constructor for weapon | public Weapon(Weapon weapon)
{
super(weapon.getName());
weaponDamage = weapon.getWeaponDamage();
} | [
"public Weapon copy() {\r\n\t\treturn new Weapon(this.getName(), this.getDescription(), this.getType(), this.getSize(), this.getPrice(), this.getMultChanged());\r\n\t}",
"public Weapon clone() {\n\t\treturn new Weapon(this);\n\t}",
"public WeaponComponent() {\n weaponName = \"none\";\n owned = fal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Moving the current shape to the bottom | public void moveBottom() {
if (lost)
return;
while (canMoveDown()) {
shapeBoard.moveDown();
}
checkMove();
} | [
"public void liftToBottom(){\n setLiftPosition(LIFT_LOWER_LIMIT);\n }",
"public final void moveToEnd() {\n\t\tgoToLastGraphPosition();\n\t\tmoveBackwardPercentage(FIFTY_PERCENT);\n\t}",
"private void moveToBottom() {\n\t\twhile (notFacingSouth()) {\n\t\t\tturnLeft();\n\t\t}\n\t\twhile (frontIsClear())... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the current amount of sand dollars based on an action that is taken in the game. This is used for the actions when a turret kills one of the enemies in the game. | public void updateSandDollars(int playerMoney){
sandDollars += playerMoney; // adds the appropriate amount of sand dollars
sandDollarsLabel.setText("" + sandDollars); // updates the label
} | [
"public void updateHoldings() {\r\n if (getAction() == 0) {\r\n profit -= getPrice();\r\n setBuyInPrice(getPrice());\r\n setIsHolding(true);\r\n\r\n } else if (action == 1) {\r\n profit += getPrice();\r\n equity += (getPrice() -getBuyInPrice());\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true iff the new activity does not conflict with the current activity on the AU. | static boolean isAllowedOnAu(int newActivity, int curActivity) {
switch (curActivity) {
case NEW_CONTENT_CRAWL:
case TREEWALK:
// no new activity allowed
return false;
case TOP_LEVEL_POLL:
// allow other polls to be called
// poll manager will disallow inappropriate... | [
"boolean checkForRelatedCusActivity(int newActivity, CachedUrlSet cus) {\n Iterator cusIt = cusMap.entrySet().iterator();\n List expiredKeys = new ArrayList(1);\n boolean otherActivity = false;\n while (cusIt.hasNext()) {\n // check each other cus to see if it's related to this one\n Map.Entry... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an instance of EmptyRuleAction class. | public EmptyRuleActionImpl() {} | [
"public PaymentRuleAction() {\n }",
"public static EventHandler<ActionEvent> createEmptyAction()\n\t{\n\t\treturn new EventHandler<ActionEvent>()\n\t\t{\n\t\t\tpublic void handle(ActionEvent event)\n\t\t\t{\t\t\t\t\n\t\t\t\tevent.consume();\n\t\t\t}\n\t\t};\n\t}",
"public Action() {\n super();\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For example: Logging date & time that an event occured. setting and incrementing player Data for a Stat: | public void setData(Player player, Stat stat, Data value); | [
"public abstract void sendTraceTime(Player p);",
"public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}",
"public void addPlayerStat(long t){\n PlayerStats s = new PlayerStats(t);\n if(stats == null) {\n stats = new ArrayList<PlayerStats>();\n }\n stats.add(s);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the states for a given task type. | public Collection<String> getStates(String type) {
ArrayList<String> v = new ArrayList<String>();
TaskType tt = getType(type);
if (tt != null) {
for (TaskState ts : tt.states) {
v.add(ts.name);
}
}
return v;
} | [
"private TaskState getState(String type, String state) {\r\n\t\tTaskType tt = getType(type);\r\n\t\tif (tt != null) {\r\n\t\t\tfor (TaskState ts : tt.states) {\r\n\t\t\t\tif (ts.name.equals(state))\r\n\t\t\t\t\treturn ts;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public Collection<String> nextStates(Strin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Closes the create pane | public void createPaneClose(ActionEvent actionEvent) {
createTeamPane.setDisable(true);
createTeamPane.setVisible(false);
darkPane.setDisable(true);
darkPane.setVisible(false);
logoChangeImageCreate.setImage(new Image("/Resources/Images/emptyTeamLogo.png"));
createTeamLog... | [
"public void closeAddPatientUI() {\r\n Stage stage = (Stage) saveButton.getScene().getWindow();\r\n stage.close();\r\n }",
"private final void closePanel() {\r\n\r\n\t\tthis.pnlMain.getRootPane().getParent().setVisible(false);\r\n\t\t\r\n\t}",
"@FXML\n void exitAddWindow() {\n drawMen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'field99' field. | public void setField99(java.lang.CharSequence value) {
this.field99 = value;
} | [
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField99(java.lang.CharSequence value) {\n validate(fields()[99], value);\n this.field99 = value;\n fieldSetFlags()[99] = true;\n return this; \n }",
"public void setField990(java.lang.CharSequence value) {\n this.field990 = va... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates and saves empty session with authEntry for input relyingParty | Observable<Session> initSession(RelyingParty relyingParty, Map<String, Object> userInfo, Set<String> scopes, AcrValues acrValues, String redirectUrl); | [
"Observable<Session> createSession(RelyingParty relyingParty, Map<String, Object> userInfo, Set<String> scopes, AcrValues acrValues, String redirectUrl);",
"private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n//... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the current brick value at the given position. Remember that the value is " " (space) if the brick has been removed. | String getBrickAt(int x, int y); | [
"public Position getBrickPosition()\r\n {\r\n return this.topLeftCornerPosition;\r\n }",
"private static char getCell(Position position) {\n if (0 <= position.getRow() && position.getRow() < FIELD_ROW_COUNT) {\n if (0 <= position.getColumn() && position.getColumn() < FIELD_COLUMN_CO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string translationId = 5; | public java.lang.String getTranslationId() {
java.lang.Object ref = translationId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
... | [
"String getLangId();",
"public java.lang.String getTranslationId() {\n java.lang.Object ref = translationId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the dealHistory by id. | public void delete(Long id) {
log.debug("Request to delete DealHistory : {}", id);
dealHistoryRepository.deleteById(id);
} | [
"void deleteTrackerHistory(final Integer id);",
"public boolean delHistoryById(String id) throws Exception;",
"public void delete(Long id) {\n log.debug(\"Request to delete CrewPositionHistory : {}\", id);\n crewPositionHistoryRepository.delete(id);\n }",
"public void delete(Long id) {\n log.deb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an aliased oagi.exception table reference | public Exception(String alias) {
this(DSL.name(alias), EXCEPTION);
} | [
"void copyExceptionTable() throws IOException {\n int tableLength = c.copyU2(); // exception table len\n if (tableLength > 0) {\n traceln();\n traceln(\"Exception table:\");\n traceln(\" from:old/new to:old/new target:old/new type\");\n for (int tcnt = ta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an aliased homo_sapiens_core_89_37.marker_feature table reference | public MarkerFeature(String alias) {
this(alias, MARKER_FEATURE);
} | [
"private static TableRef createAliasedTableRef( final TableMeta table,\n final String alias ) {\n return new TableRef() {\n public String getColumnName( String rawName ) {\n return alias + \".\" + rawName;\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.protocol.Fence.Shape.Polygon polygon = 2; | protocol.Message.Fence.Shape.Polygon getPolygon(); | [
"protocol.Message.Fence.Shape.PolygonOrBuilder getPolygonOrBuilder();",
"protocol.Message.Fence.Shape getFence();",
"protocol.Message.Fence.ShapeOrBuilder getFenceOrBuilder();",
"protocol.Message.Fence.Shape getShape();",
"protocol.Message.Fence.ShapeOrBuilder getShapeOrBuilder();",
"Polygon createPolygon... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compute convex cell barycenter. | private Vector3D convexCellBarycenter(final Vertex start) {
int n = 0;
Vector3D sumB = Vector3D.ZERO;
// loop around the cell
for (Edge e = start.getOutgoing(); n == 0 || e.getStart() != start; e = e.getEnd().getOutgoing()) {
sumB = new Vector3D(1, sumB, e.getLength(), e.ge... | [
"private double centerY() {\n return (piece.boundingBox().getHeight() % 2) / 2.0;\n }",
"public GJPoint2D center();",
"public Point centre() {\n\t\treturn a.add(b).add(c).multiply(1 / 3f);\n\t}",
"public CCVector2f center(){\n\t\treturn CCVecMath.add(_myMinCorner, _myMaxCorner).scale(0.5f);\n\t}",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Minimum step width the planner will consider for candidate steps. Step width refers to the magnitude of the yposition of a footstep expressed in its parent's sole frame, where the parent is the last footstep taken on the other foot. If this value is too low, for example below the foot's width, the planner could place c... | public void setMinimumStepWidth(double minimum_step_width)
{
minimum_step_width_ = minimum_step_width;
} | [
"public double getMinimumStepWidth()\n {\n return minimum_step_width_;\n }",
"public double getMinimumStepLength()\n {\n return minimum_step_length_;\n }",
"float getMinStep();",
"public double getIdealFootstepWidth()\n {\n return ideal_footstep_width_;\n }",
"public double getMax... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a winery with the given id and name. | public Winery(int id, String name) {
this.id = id;
this.name = name;
} | [
"public Tower(String name) {\n this.name = name;\n }",
"private void GenerateWitch() \r\n\t{\r\n\t\tid++;\r\n\t\tSystem.out.println(\"Workshop : Witch \" + id + \" has spawned\");\r\n\t\tworkshop.AddWitch(new Witch(covens, id, serverAddress, serverPort));\r\n\t}",
"public Hobie_Wildcat createHobie_Wil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Building the Backup tree using the Original tree | private void cloneOriginalTree(TreeInterface tree) {
Logger.writeOutput(debugLevels.CLONING_TREE, "Cloning the Original Tree");
Stack<Node> s = new Stack<Node>();
Node root = tree.getRootNode();
while(true){
while(root != null){
s.push(root);
root = root.getLeftChild();
}
if(s.isEm... | [
"public Node createBackup(Node orig){\r\n\t\tif(orig==null){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tNode curr = orig.clone();\r\n\t\t\tcurr.setCount(orig.getCount());\r\n\t\t\torig.registerObserver(curr);\r\n\t\t\tcurr.setLeft(createBackup(orig.getLeft()));\r\n\t\t\tcurr.setRight(createBackup(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compute the contribution of the current cell to the log outside score of its children, in all unary production for which it's the root. | void updateUnaryChildrenLogOutsideScore() {
// Iterate through all derivation steps: all ways of producing this cell
for (final IWeightedCKYStep<MR> derivationStep : steps) {
// Only process unary steps
if (derivationStep.numChildren() == 1) {
// The unary case of outside score is a bit tricky. It becomes... | [
"void updateBinaryChildrenLogOutsideScore() {\n\t\tif (logOutsideScore != Double.NEGATIVE_INFINITY) {\n\t\t\t// Iterate through all derivation steps: all ways of producing this\n\t\t\t// cell\n\t\t\tfor (final IWeightedCKYStep<MR> derivationStep : steps) {\n\t\t\t\t// Only process binary derivations steps\n\t\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleEPropertyAssignments" $ANTLR start "entryRuleEPropertyAssignment" InternalAADMParser.g:1365:1: entryRuleEPropertyAssignment : ruleEPropertyAssignment EOF ; | public final void entryRuleEPropertyAssignment() throws RecognitionException {
try {
// InternalAADMParser.g:1366:1: ( ruleEPropertyAssignment EOF )
// InternalAADMParser.g:1367:1: ruleEPropertyAssignment EOF
{
if ( state.backtracking==0 ) {
before(... | [
"public final void entryRuleEPropertyAssignments() throws RecognitionException {\n try {\n // InternalAADMParser.g:1341:1: ( ruleEPropertyAssignments EOF )\n // InternalAADMParser.g:1342:1: ruleEPropertyAssignments EOF\n {\n if ( state.backtracking==0 ) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the field 'supportsPreauthOverage'. | public Gateway setSupportsPreauthOverage(java.lang.Boolean supportsPreauthOverage) {
return genClient.setOther(supportsPreauthOverage, CacheKey.supportsPreauthOverage);
} | [
"public boolean hasSupportsPreauthOverage() {\n return genClient.cacheHasKey(CacheKey.supportsPreauthOverage);\n }",
"public boolean isNotNullSupportsPreauthOverage() {\n return genClient.cacheValueIsNotNull(CacheKey.supportsPreauthOverage);\n }",
"public void clearSupportsPreauthOverage() {\n genCli... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR start "term2_with_start_id" cs4240_team1/Tiger.g:275:1: term2_with_start_id[Token startId] : term1_with_start_id[$startId] ( mult_operator ^ term1 ) ; | public final TigerParser.term2_with_start_id_return term2_with_start_id(Token startId) throws RecognitionException {
TigerParser.term2_with_start_id_return retval = new TigerParser.term2_with_start_id_return();
retval.start = input.LT(1);
CommonTree root_0 = null;
ParserRuleReturnScope term1_with_start_id156 ... | [
"public final TigerParser.term3_with_start_id_return term3_with_start_id(Token startId) throws RecognitionException {\n\t\tTigerParser.term3_with_start_id_return retval = new TigerParser.term3_with_start_id_return();\n\t\tretval.start = input.LT(1);\n\n\t\tCommonTree root_0 = null;\n\n\t\tParserRuleReturnScope term... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the team_ ID of this team. | public long getTeam_Id() {
return _team.getTeam_Id();
} | [
"public Integer getTeamId() {\r\n\t\treturn teamId;\r\n\t}",
"int getTeamId();",
"public long getPrimaryKey() {\n\t\treturn _team.getPrimaryKey();\n\t}",
"public int getTeam(){\n\t\treturn team;\n\t}",
"public java.lang.String getContactTeamId() {\r\n return contactTeamId;\r\n }",
"public String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the number of cores available in this device, across all processors. Requires: Ability to peruse the filesystem at "/sys/devices/system/cpu" | public static int getNumCores() {
try {
//Get directory containing CPU info
File dir = new File("/sys/devices/system/cpu/");
//Filter to only list the devices we care about
File[] files = dir.listFiles(new FileFilter() {
@Override
... | [
"public static int getNumCores() {\n try {\n //Get directory containing CPU info\n File dir = new File(\"/sys/devices/system/cpu/\");\n //Filter to only list the devices we care about\n File[] files = dir.listFiles(new FileFilter() {\n\n @Override\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the Sorttype Titles | public ArrayList<String> sortTypeTiles(){
ArrayList<String> titles = new ArrayList<>();
titles.add(MainActivity.getContext().getString(R.string.rec_time));
titles.add(MainActivity.getContext().getString(R.string.rec_protocol));
titles.add(MainActivity.getContext().getString(R.string.IP));
titles.a... | [
"public void testTitleSort() {\n sorter.inssortTitle();\n list = sorter.getLibrary();\n assertEquals(list.get(0).getTitle(), \"one\");\n assertEquals(list.get(1).getTitle(), \"three\");\n assertEquals(list.get(2).getTitle(), \"two\");\n }",
"public int getTitleType() {\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__PublicOperationMode__IsDefaultInitAssignment_1" $ANTLR start "rule__PublicOperationMode__ModeAssignment_3" InternalComponentDefinition.g:8762:1: rule__PublicOperationMode__ModeAssignment_3 : ( ( ruleFQN ) ) ; | public final void rule__PublicOperationMode__ModeAssignment_3() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalComponentDefinition.g:8766:1: ( ( ( ruleFQN ) ) )
// InternalComponentDefinition.g:8767:2: ( ( ruleFQN ) )
{
... | [
"public final void rule__PublicOperationMode__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalComponentDefinition.g:5851:1: ( ( ( rule__PublicOperationMode__ModeAssignment_3 ) ) )\n // InternalComponentDefin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write all properties of a resource in the model | private void exportResource(Resource r, Model m)
{
for (StmtIterator iterator = r.listProperties(); iterator.hasNext();)
{
Statement st = iterator.next();
try
{
exportResource(st.getResource(), m);
if (st.getResource().getURI() == n... | [
"public void writePropertyObjects(CmsResource res, List<CmsProperty> properties) throws CmsException {\n\n getResourceType(res).writePropertyObjects(this, m_securityManager, res, properties);\n }",
"private void writeProperties() {\n propsMutex.writeAccess(new Runnable() {\n public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to return the estimated size (in bytes) of an image file at the indicated resolution | public int getImageFileSize(int resolution)
{
if (resolution == 1000)
return 35000;
else
return 120000;
} | [
"Metadata.Image.Size getSize();",
"ImageSize getPictureSize();",
"public float getPixelSize() {\n\n\t\tfloat pixelSize = 0;\n\t\tfloat zoom = getFloat(ADACDictionary.ZOOM);\n\n\t\t// Get calibration factor (CALB)\n\t\tString calString = extrasMap.get(ExtrasKvp.CALIB_KEY);\n\n\t\t// Some wholebody images have he... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Writes a 32bit integer in littleendian format. | static void write32( int dword, OutputStream out )
throws IOException
{
out.write( dword );
out.write( dword >> 8 );
out.write( dword >> 16 );
out.write( dword >> 24 );
} | [
"public void writeRawLittleEndian32 (final int value) throws IOException {\n writeRawByte ((value) & 0xFF);\n writeRawByte ((value >> 8) & 0xFF);\n writeRawByte ((value >> 16) & 0xFF);\n writeRawByte ((value >> 24) & 0xFF);\n }",
"void writeInt32(int value);",
"void writeInt32(Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is method is called when a user wants to cancel a mobility. | public void cancelMobility(HttpServletRequest req, HttpServletResponse resp,
MobilityCancellationUcc mobilityCancellationUcc) {
int mobilityId = Integer.valueOf(req.getParameter("idMobilityChoice"));
try {
/* Checks if it's not already canceled */
if (mobilityCancellationUcc.findAllDtosById(mo... | [
"@Override\n public void onCancel() {\n shooterGamePresenter.cancelBonus();\n }",
"public void cancelInvitionUser() {\n\n }",
"void cancelSyncedVibration();",
"public void stopMobEvent() {\n // Server Side:\n if(this.serverMobEvent != null) {\n this.serverMobEvent.onFinish(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the list of native libraries set for the current project | @Input
public List<FileSet> getNativeLibraries() {
return nativeLibraries.stream().map( e -> {
FileSet set = new FileSet();
set.setDir( getProject().file( e ) );
return set;
} ).collect( Collectors.toList() );
} | [
"java.util.List<String> getSystemSharedLibraryList();",
"String[] getLibraries();",
"public Collection<String> \n getWinLocalJavaLibraries()\n {\n LinkedList<String> paths = (LinkedList<String>) pProfile.get(\"WinLocalJavaLibraries\"); \n if(paths != null) \n return paths; \n return new LinkedLi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all the patientRemoveAudits. | @Override
@Transactional(readOnly = true)
public Page<PatientRemoveAuditDTO> findAll(Pageable pageable) {
log.debug("Request to get all PatientRemoveAudits");
return patientRemoveAuditRepository.findAll(pageable)
.map(patientRemoveAuditMapper::toDto);
} | [
"@Override\n\tpublic void removeAll() {\n\t\tfor (WFMS_Requisition_Audit wfms_Requisition_Audit : findAll()) {\n\t\t\tremove(wfms_Requisition_Audit);\n\t\t}\n\t}",
"@ApiOperation(value = \"Deletes all audit replays.\")\n @RolesAllowed({\"Administrator\", \"JBossAdministrator\"})\n @RequestMapping(path = \"/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleAssertStatement" $ANTLR start "ruleAssertStatement" InternalDsl.g:4013:1: ruleAssertStatement : ( ( rule__AssertStatement__Group__0 ) ) ; | public final void ruleAssertStatement() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:4017:2: ( ( ( rule__AssertStatement__Group__0 ) ) )
// InternalDsl.g:4018:2: ( ( rule__AssertStatement__Group__0 ) )
{
... | [
"public final void rule__AssertStatement__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:29151:1: ( ( 'assert' ) )\n // InternalDsl.g:29152:1: ( 'assert' )\n {\n // InternalDsl.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
display the winning player or indicate a tie (or unfinished game). | public void displayWinner()
{
if(isWin(X))
{
System.out.println("\n X wins...!!");
isEmpty=false;
}
else if(isWin(O))
{
System.out.println("\n O wins...!!");
isEmpty=false;
}
else
{
if(!isEmpt... | [
"public void DisplayWinner() {\r\n \tif (Winner != null) System.out.println(\"Bingo we have winner as \"+ Winner.getPlayerName());\r\n }",
"public void displayWinner(Player winner) {\r\n System.out.println(\"Congratulations! \" + winner.getName() + \" has won!\");\r\n }",
"private void displayWi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the license state. | public void setLicenseState(String licenseState)
{
this.licenseState = licenseState;
} | [
"@Override\n\tpublic void setLicense(java.lang.String license) {\n\t\t_scienceApp.setLicense(license);\n\t}",
"public void setLicenseNumber( int license ) {\n\n licenseNumber = license;\n }",
"public void setLicense(String value) {\n setAttributeInternal(LICENSE, value);\n }",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for TdExpCartillaMilitar class. | public TdExpCartillaMilitar() {
} | [
"public TasDeCartes() { }",
"public TdExpLab() {\n }",
"public TcCapMotivoDesasignaInstr() {\n }",
"public Carta() {\r\n\t\tSystem.out.println(\"creo un objeto de tipo carta\");\r\n\t\t\r\n\t}",
"public TdRuspHijo() { }",
"public Carta(int valor, int naipe) {\n this.valor = valor;\n th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.com.huan.netty.protobuf.CreateTaskPack createTaskPack = 3; | TaskProtobufWrapper.CreateTaskPackOrBuilder getCreateTaskPackOrBuilder(); | [
"TaskProtobufWrapper.CreateTaskPack getCreateTaskPack();",
"private CreateTaskPack(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"TaskProtobufWrapper.LoginPack getLoginPack();",
"TaskProtobufWrapper.DeleteTaskPack getDeleteTaskPack();",
"private TaskProtocol(co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the auth token for an existing account on the AccountManager | private void getExistingAccountAuthToken(Account account, String authTokenType) {
final AccountManagerFuture<Bundle> future = mAccountManager.getAuthToken(account, authTokenType, null, this, null, null);
new Thread(new Runnable() {
@Override
public void run() {
t... | [
"private void getTokenForAccountCreateIfNeeded(String accountType, String authTokenType) {\n final AccountManagerFuture<Bundle> future = mAccountManager.getAuthTokenByFeatures(accountType, authTokenType, null, this, null, null,\n new AccountManagerCallback<Bundle>() {\n @Ove... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the isActionLegal() method. | @Test
public void isActionLegal()
{
// Setup.
final CheckersGameInjector injector = new CheckersGameInjector();
final List<Agent> agents = createAgents(injector);
final Agent agentWhite = agents.get(1);
final CheckersEnvironment environment = createEnvironment(injector, a... | [
"protected abstract void computeLegalActions();",
"@Test\n public void isActionLegal()\n {\n // Setup.\n final ChessEnvironment board = fenFormatter.parse(GameType.RAUMSCHACH.getStartPosition());\n final ChessAdjudicator adjudicator = new DefaultChessAdjudicator();\n final Agent ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converting from Inches to... | public int convertInchesToInches(int a) {
return a;
} | [
"public float toInches() {\n\t\treturn (float) (this.feet * 12) + (this.inches) + ((float) this.eighths / 8f);\n\t}",
"public static double convertInchesToCentimeters(double in)\n {\n return in * 2.54;\n }",
"public static double inchesToCentimeters(int inch) {\n\treturn 2.54 * inch;\n }",
"st... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Original signature : void OpenMM_AmoebaMultipoleForce_getMultipoleParameters(const OpenMM_AmoebaMultipoleForce, int, double, OpenMM_DoubleArray, OpenMM_DoubleArray, int, int, int, int, double, double, double) | public static native void OpenMM_AmoebaMultipoleForce_getMultipoleParameters(PointerByReference target, int index, DoubleByReference charge, PointerByReference molecularDipole, PointerByReference molecularQuadrupole, IntByReference axisType, IntByReference multipoleAtomZ, IntByReference multipoleAtomX, IntByReference m... | [
"public static native void OpenMM_AmoebaMultipoleForce_getMultipoleParameters(PointerByReference target, int index, DoubleBuffer charge, PointerByReference molecularDipole, PointerByReference molecularQuadrupole, IntBuffer axisType, IntBuffer multipoleAtomZ, IntBuffer multipoleAtomX, IntBuffer multipoleAtomY, Doubl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Method Name : createlistlk Purpose : create list with name,description and select remainder notificaiton Parameter : Date Created: Created By : Modified By : siva Modified Date: | public void createlist(String name,String description){
String lstname = getValue(name);
String lstdescription = getValue(description);
class Local {};
Reporter.log("TestStepComponent"+Local.class.getEnclosingMethod().getName());
Reporter.log("TestStepInput:-"+"NA");
Reporter.log("TestStepOutput:-... | [
"@Before(value = \"@createList\", order = 1)\n public void createList() {\n String endpoint = EnvironmentTrello.getInstance().getBaseUrl() + \"/lists/\";\n JSONObject json = new JSONObject();\n json.put(\"name\", \"testList\");\n json.put(\"idBoard\", context.getDataCollection(\"board... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Performs the union operation on the 2 given StringLists | public static StringList union(StringList a, StringList b) {
if (b == null)
return a;
String[] bStrings = b.strings();
for (int i=0; i < bStrings.length; i++) {
a.put(bStrings[i], b.get(bStrings[i]));
}
return a;
} | [
"public List<String> mergeTwoListOfString(List<String> l1, List<String> l2) {\n\n if (l1 == null && l2 == null)\n return null;\n\n if (l1 == null && l2 != null)\n return l2;\n\n if (l1 != null && l2 == null)\n return l1;\n\n List<String> union = new ArrayList<>();\n\n for (String s: l1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the rabbit service. | public void setRabbitService(RabbitMQService rabbitService) {
this.rabbitService = rabbitService;
} | [
"public RabbitMQService getRabbitService() {\n\t\treturn this.rabbitService;\n\t}",
"void setService(java.lang.String service);",
"public void setService(Service service)\n {\n this.service = service;\n }",
"private void setService(Service service) {\n this.service = service;\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an iterator over the list of edges. | public final Iterator<MEdge1D> getEdgesIterator()
{
return edgelist.iterator();
} | [
"public Iterator<E> edgesIterator();",
"public Iterator<Edge> getEdgeIter() {\n\t\treturn edges.iterator();\n\t}",
"public Iterator<Edge> getEdgeIterator() {\n\t\treturn edges.iterator();\n\t}",
"public Iterator<LayoutEdge> edgeIterator() {\n\treturn edgeList.iterator();\n }",
"default Iterator<E> edgeIt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method, called after our test, just cleanup everything by closing the vert.x instance | @After
public void tearDown(TestContext context) {
vertx.close(context.asyncAssertSuccess());
} | [
"@AfterMethod\n\tpublic void teardown(){\n\t\t\n\t\tApplication.close();\n\t\t\n\t}",
"@Override\n public void afterAll(ExtensionContext context) throws Exception {\n logger.info(\"Shutting down zookeeper test server\");\n\n // If we don't have an instance\n if (zookeeperTestResource == nu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unsets the "State" element | void unsetState(); | [
"public void unsetState()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(STATE$16, 0);\n }\n }",
"public void unsetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an ZstdStep to compress a file to given output path. | public ZstdStep(ProjectFilesystem filesystem, Path sourceFile, Path outputPath) {
this.filesystem = filesystem;
this.sourceFile = sourceFile;
this.outputPath = outputPath;
} | [
"public void createZip(String input) throws IOException {\n Deque<Path> sourcePaths = Arrays.stream(input.split(\" \"))\n .map(Paths::get)\n .collect(Collectors.toCollection(ArrayDeque::new));\n\n Path tempDir = Files.createTempDirectory(\"tempDir\");\n while (!sourcePaths.isEmpty()) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the maxCreationTime value. | public DateTime maxCreationTime() {
return this.maxCreationTime;
} | [
"public Integer getMaxTime() {\n return maxTime;\n }",
"@java.lang.Override\n public long getMaxTimeMs() {\n return maxTimeMs_;\n }",
"public long getMaxTimestamp() {\n return maxTimestamp_;\n }",
"public long getMaxTimestamp() {\n return maxTimestamp_;\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a working Manager into the Restaurant. | void addManager(Manager manager) {
managers.add(manager);
allStaffs.add(manager);
} | [
"public void addNewManager(Manager manager)\n\t{\n\t\ttry\n\t\t{\n\t\t employeelist.add(manager);\n\n\t\t}catch(UnsupportedOperationException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}catch(ClassCastException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}catch(NullPointerException e){\n\t\t\tSy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |