query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Sets the sso groups. | public void setSSOGroups(Vector groups)
{
_vSSOGroups = groups;
} | [
"public void setGroups(Set<SymbolGroup> groups) {\n this.groups = groups;\n }",
"public void setAllGroups(String groups)\n {\n m_allGroups = groups;\n }",
"public void setLookupGroups( String[] groups ) throws RemoteException {\n\t\tStringBuffer l = new StringBuffer();\n\t\tl.append(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
BA.debugLineNum = 302;BA.debugLine="Public Sub setTextSize(TextSize As Double)"; BA.debugLineNum = 304;BA.debugLine="ToastTextLabel.TextSize = TextSize"; | public String _settextsize(double _textsize) throws Exception{
_toasttextlabel.setTextSize(_textsize);
//BA.debugLineNum = 306;BA.debugLine="End Sub";
return "";
} | [
"public String _setactionbuttontextsize(double _textsize) throws Exception{\n_toastactionbutton.setTextSize(_textsize);\n //BA.debugLineNum = 376;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public double _gettextsize() throws Exception{\nif (true) return _toasttextlabel.getTextSize();\n //BA.debugLineNum = 31... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks to see if this location is valid to create a portal and will return True if it does. Args: world, x, y, z | public boolean tryToCreatePortal(World var1, int var2, int var3, int var4)
{
byte var5 = 0;
byte var6 = 0;
if (var1.getBlockId(var2 - 1, var3, var4) == Block.glowStone.blockID || var1.getBlockId(var2 + 1, var3, var4) == Block.glowStone.blockID)
{
var5 = 1;
}
... | [
"private boolean isAtPortal(EnderDragon dragon) {\n // check position\n double x = Math.floor(Math.abs(dragon.getLocation().getX()));\n double z = Math.floor(Math.abs(dragon.getLocation().getY()));\n\n // check phase\n boolean isPortalPhase = PORTAL_PHASES.contains(dragon.getPhase... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of ruleset Highlife: B36/S23. | @Test
public void testRulesetHighlife() {
System.out.println("Highlife: B36/S23");
byte[][] highlife = {
{0,0,0,0},
{0,0,1,0},
{0,1,1,0},
{0,0,0,0},
};
byte[][] expResult = {
{0,0,0,0},
{0,1,1... | [
"@Test\n public void testDecodeRuleset(){\n System.out.println(\"DecodeRulesetTest:B36/S125\");\n \n String birth = \"36\";\n String stillAlive = \"125\";\n \n boolean[] born = {false, false, false, true, false, false, true, false, false};\n boolean[] survives = {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for the Plain Javascript Marshaller | public void setPlainJsMarshaller(DwrpPlainJsMarshaller marshaller)
{
this.plainJsMarshaller = marshaller;
} | [
"public Result asJavascript() {\n this.contentType = \"application/javascript\";\n return this;\n }",
"abstract Json marshall();",
"public void setHtmlJsMarshaller(DwrpHtmlJsMarshaller marshaller)\n {\n this.htmlJsMarshaller = marshaller;\n }",
"public void setMarshaller(Marsh... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the displayed courses | private void updateCourses() {
ArrayList<Course> results = adCon.viewCourses();
if (results == null)
return;
clearTable();
for (Course c : results) {
addTableData(c);
}
} | [
"private void updateCourse() {\n\n if(clientSession.isTeacherRole())\n return;\n\n LinkedTreeMap courseMap = (LinkedTreeMap) packet.getArgument(\"course\");\n\n Course course = Course.parse(courseMap);\n\n if(clientDatabase.updateCourse(course)) {\n\n coursesList(tr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the certificate ID of the certicicate. | public int getCertificateId(){
return certificate_id; } | [
"java.lang.String getCertificateId();",
"public String getCertificateId() {\n return certificateId;\n }",
"public String getSigningCertificateId() {\n\t\tSignatureWrapper signature = getFirstSignatureNullSafe();\n\t\treturn signature.getSigningCertificateId();\n\t}",
"com.google.protobuf.ByteString ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method for adding scores to the leaderboard by checking if the supplied score is greater than any of those already on the leaderboard. | public void addScore(int score, String name){
for(int i = 0; i < topScores.size(); i++) {
if(score >= topScores.get(i)){
topScores.add(i, score);
topScores.remove(topScores.size()-1);
if(name.isEmpty()){
topName.add(i, "Anonymous");... | [
"public static void addScore(int score) {\r\n for (int i = 0; i < 5; i++) {\r\n if (highscores[i] < score) {\r\n for (int j = 4; j > i; j--)\r\n highscores[j] = highscores[j - 1];\r\n highscores[i] = score;\r\n break;\r\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getNAD1983MTM11 method, of class NationalGridsCanada. | @Test
public void testNAD1983MTM11() {
testToWGS84AndBack(PROJ.getNAD1983MTM11());
} | [
"@Test\n public void testNAD1983MTM12() {\n testToWGS84AndBack(PROJ.getNAD1983MTM12());\n }",
"@Test\n public void testNAD1983MTM16() {\n testToWGS84AndBack(PROJ.getNAD1983MTM16());\n }",
"@Test\n public void testNAD1927DEF1976MTM12() {\n testToWGS84AndBack(PROJ.getNAD1927DEF1976MTM12());\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__PrimitiveObject__PrimitivePropertiesAssignment_1_2_1" $ANTLR start "rule__ExtendedObject__ObjectNameAssignment_0" InternalJSchema.g:2678:1: rule__ExtendedObject__ObjectNameAssignment_0 : ( RULE_ID ) ; | public final void rule__ExtendedObject__ObjectNameAssignment_0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalJSchema.g:2682:1: ( ( RULE_ID ) )
// InternalJSchema.g:2683:2: ( RULE_ID )
{
// InternalJSchema.g:... | [
"public final void rule__ExtendedObject__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalJSchema.g:1395:1: ( ( ( rule__ExtendedObject__ObjectNameAssignment_0 ) ) )\n // InternalJSchema.g:1396:1: ( ( rule__Ex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Start configuration and creation of the saga lib event stream. | public static StreamBuilder configure() {
return new EventStreamBuilder();
} | [
"public static void start() {\n enableIncomingMessages(true);\n }",
"@Override\n\tpublic void start() {\n\t\tAWSLambdaClientBuilder clientBuilder = null;\n\t\t\n\t\tif (this.credentials != null) {\n\t\t\t// {@see http://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html}\n\t\t\tclientBuilder... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the simAppHeader property. | public byte[] getSimAppHeader() {
return simAppHeader;
} | [
"public void setSimAppHeader(byte[] value) {\n this.simAppHeader = ((byte[]) value);\n }",
"public String getHeader() {\n return header;\n }",
"public global.Global.GlobalHeader getGlobalHeader() {\n return globalHeader_;\n }",
"public String getWmoHeader() {\n return wmoHea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the rebuild flag to false to only update changes in the jar rather than rerunning ejbc; optional, default true. This flag controls whether weblogic.ejbc is always invoked to build the jar file. In certain circumstances, such as when only a bean class has been changed, the jar can be generated by merely replacing th... | public void setRebuild(boolean rebuild) {
this.alwaysRebuild = rebuild;
} | [
"public void setRebuild(boolean value)\n\t{\n\t\trebuild = value;\n\t}",
"protected boolean isRebuildRequired(File genericJarFile, File weblogicJarFile) {\n boolean rebuild = false;\n \n JarFile genericJar = null;\n JarFile wlJar = null;\n File newWLJarFile = null;\n JarOut... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of snap method, of class com.sun.electric.database.geometry.EPoint. | @Test
public void testSnap() {
System.out.println("snap");
assertSame(p0, EPoint.snap(p0));
} | [
"public void snap() {\n List<TwoDPoint> verticesCopy = new ArrayList<>(vertices); // Return this in case vertices should not be modified\n for (int i = 0; i < 3; i++) {\n double xcoord = vertices.get(i).coordinates()[0]; // Get just decimal part of a double\n double ycoord = ve... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is the method used to chase a target. | public void chase()
{
if (tv.getDouble(0) == 1){
//added this method to movement so that we can use it autonomously more easily
move.autonomousUpdate(
distancePID.update(ta.getDouble(distancePID.getSetpoint())),
leftRightPID.update(tx.getDouble(leftRightPID.getSetpoint())),
rotationPID.update(ts... | [
"@Override\n\tpublic void setChaseTarget(){\n\t\tthis.setTarget(_pacman.getX()+Constants.SQUARE_SIDE,_pacman.getY()-(4*Constants.SQUARE_SIDE));\n\t}",
"public void attackTarget() {\n\t\t\n\t}",
"public void toSelectingAttackTarget() {\n }",
"public void chase() {\n\t\t\t\n\t\t\t// if chase mode did not run... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Coordinates relative to the document | @Override
public Point getLocationOnScreen() {
Insets offset = (Insets) $(outerNode).offset();
return new Point(offset.left, offset.top);
} | [
"public void calculateXYPosition();",
"float getPos() {\n\t\t return (spos - swidth/2 - ypos)/(sheight - swidth);\n\t\t }",
"private void position() {\n Point parentLocation = YAWLEditor.getInstance().getLocationOnScreen();\n Dimension parentSize = YAWLEditor.getInstance().getSize();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a liberty from the liberties list of this intersection. | public void removeLiberty(Intersec liberty) {
this.liberties.remove(liberty);
} | [
"void unsetIntersectionRelation();",
"public void unEquipArmor(){\n \tinventory.add(equippedArmor);\n \tequippedArmor = null;\n \tsetChanged();\n notifyObservers(inventory);\t\n }",
"void unsetIntersectionLocation();",
"public void unsetIntersectingRoadwayRef()\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Captures a city or village for tribe t | public boolean capture(GameState gameState, Tribe capturingTribe, int x, int y){
Random rnd = gameState.getRandomGenerator();
Types.TERRAIN ter = terrains[x][y];
if(ter == Types.TERRAIN.VILLAGE)
{
//Not a city. Needs to be created, assigned and its border calculated.
... | [
"public void extractDayTrip(DayTrip dayTrip, RouteContext context) {\n\t\t// extract to regions\n\t\tdayTrip.getToRegions().clear();\n\t\tdayTrip.getSights().clear();\n\t\tdayTrip.getCitiesByDesc().clear();\n\t\tdayTrip.setFromCity(null);\n\t\tdayTrip.getToSights().clear();\n\t\tdayTrip.getToAuditSights().clear();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Filters nexus bundle coordinates, if present (not null). | @Before
public void filterNexusBundleCoordinates()
{
if ( nexusBundleCoordinates != null )
{
filteredNexusBundleCoordinates = filter().filter( nexusBundleCoordinates );
logger.info(
"TEST {} is running against Nexus bundle {}",
testName.ge... | [
"public NexusITSupport( @Nullable final String nexusBundleCoordinates )\n {\n this.nexusBundleCoordinates = nexusBundleCoordinates;\n }",
"@Test\n public void searchBySingleCoordinate(TestInfo testInfo)\n {\n final String groupId = getGroupId(GROUP_ID, testInfo);\n\n logger.debug(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To get cached module by real module | @Override
public ModuleKey getModule(final ModuleKey module) {
return modulesCache.computeIfAbsent(key(module), (String mk) -> {
final ModuleKeyDto wrapper;
storeQueue.offer(wrapper = new ModuleKeyDto(module));
return wrapper;
});
} | [
"@Override\n public ModuleKey getModule(String moduleId) {\n return modulesCache.get(moduleId);\n }",
"public RubyModule fastGetModule(String internedName) {\n return (RubyModule) objectClass.fastGetConstantAt(internedName);\n }",
"private void putInCache(Module module){\n\t\tString key... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method create HyperlinkListener. All links send to system webclient | private HyperlinkListener createHyperLinkListener() {
return new HyperlinkListener() {
public void hyperlinkUpdate(HyperlinkEvent e) {
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
/* String ref = e.getURL().getRef();
if (ref != null && ref.length() > 0) {
... | [
"public HyperlinkListener createHyperLinkListener() {\n return new HyperlinkListener() {\n public void hyperlinkUpdate(HyperlinkEvent e) {\n if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {\n if (e instanceof HTMLFrameHyperlinkEvent) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
XML Opens an XML file | public static Document openXML(String filePath) throws IOException
{
if(getFileExt(filePath) == FileExt.XML)
{
try {
File fXmlFile = new File(filePath);
DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
DocumentBuilde... | [
"public void open(){\n\t\ttry {\n\t\t\tdocFactory = DocumentBuilderFactory.newInstance();\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t\tdoc = docBuilder.parse(ManipXML.class.getResourceAsStream(path));\n\t\t\t\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Displays the bank account's console for an logged user. | public void showUserBankAccountConsole(User user) throws IOException, WrongUserNamePasswordException,
BalanceException, DetailsAccountException {
boolean isBadOption = false;
do {
try {
ConsoleMenu.getInstance().showAccountConsole();
int option =... | [
"public static void displayMenuUser() {\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\"*******************************\");\n\t\tSystem.out.println(\"*** PRS Console Application ***\");\n\t\tSystem.out.println(\"*******************************\");\n\t\tSystem.out.println(\"1.) View my Account\");\n\t\tS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function will save the locationModel to the local database | private void saveLocationToDatabase(LocationModel locationModel) {
database.locationDao().addLocation(locationModel);
} | [
"public void saveLocation(Location location);",
"void fetchAndSaveLocationData();",
"public void saveLocationsOnDB () {\n if ( prevPath != null ) {\n saveTravelLocations( prevPath.getMiniTravels() );\n }\n if ( follPath != null ) {\n saveTravelLocations( follPath.getMi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function sets the tree root | public void setTreeRoot(Node root) { treeRoot = root; } | [
"public void setRoot(TreeNode<T> root) {\r\n this.root = root;\r\n }",
"public void rootSet(Node root);",
"private void setRoot()\n\t\t\tthrows InterruptedException, MoveDefinitionException {\n\t\trootNode = rootNode.findOrCreateNodeByState(stateQueue.take());\n\t\trootNode.setRoot();\n\t}",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reduce a List of future HazardCurveSets into a future HazardResult. | static final ListenableFuture<HazardResult> toHazardResult(
final AsyncList<HazardCurveSet> curveSets,
final CalcConfig config,
final Site site,
final HazardModel model,
final Executor ex) {
return transform(
allAsList(curveSets),
new CurveSetConsolidator(site, model, config),
ex);
} | [
"static final ListenableFuture<HazardCurveSet> toHazardCurveSet(\n\t\t\tfinal AsyncList<ClusterCurves> curvesList,\n\t\t\tfinal ClusterSourceSet clusterSourceSet,\n\t\t\tfinal Map<Imt, ArrayXY_Sequence> modelCurves,\n\t\t\tfinal Executor ex) {\n\n\t\tFunction<List<ClusterCurves>, HazardCurveSet> function = new Clus... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Create a map for each difficulty. Count the number of obstacles and powerups in each lane. Pass the test if the value is the same for each lane. | @Test
public void TEST_UR_MAP_OBJECT_COUNT() {
Map[] maps = new Map[3];
maps[0] = new Map("Map1/Map1.tmx", 1000, "easy");
maps[1] = new Map("Map1/Map1.tmx", 1000, "medium");
maps[2] = new Map("Map1/Map1.tmx", 1000, "hard");
for (int i = 0; i <= 2; i++) {
Map map =... | [
"@Test\n public void TEST_FR_SELECT_DIFFICULTY_MAP() {\n Map easyMap = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n easyMap.createLanes();\n Map mediumMap = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n mediumMap.createLanes();\n Map hardMap = new Map(\"Map1/Map1.tmx\", 1000... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Enables / disables USB mass storage. The caller should check actual status of enabling/disabling USB mass storage via StorageEventListener. | public void setUsbMassStorageEnabled(boolean enable) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt((enable ? 1 : 0));
... | [
"public void setUsbMassStorageEnabled(boolean enable) throws RemoteException;",
"public boolean isUsbMassStorageEnabled() throws RemoteException;",
"public boolean isUsbMassStorageEnabled() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Edit the Cached ProvidedServiceInstance when updateService is called. It is thread safe. | private void editCachedServiceInstance(ProvidedServiceInstance instance) {
try {
write.lock();
ServiceInstanceId id = new ServiceInstanceId(instance.getServiceName(),
instance.getProviderId());
CachedProviderServiceInstance cachedInstance = getCacheService... | [
"public void updateEditService(){\r\n \tMap<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();\r\n\t\tint serviceId = Integer.parseInt(params.get(\"serviceId\"));\r\n\t\tthis.getLog().info(\"serviceId:\" + serviceId);\r\n\t\t\r\n\t\tif(serviceId == 0){\r\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inserta un registro en la entidad Concurso Bonificacion Periodo | public void insertConcursoBonificacionPeriodo(ConcursoBonificacionPeriodo concursoBonificacionPeriodo, Usuario usuario); | [
"public void insertConcursoPeriodoDespacho(ConcursoPeriodoDespacho concursoPeriodoDespacho, Usuario usuario);",
"public void insertConcursoRecomendadaPeriodo(ConcursoRecomendadaPeriodo concursoRecomendadaPeriodo, Usuario usuario);",
"public void insertaEntrega(Connection conexion, int idProveedor, int idDevoluc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleBaseType" $ANTLR start "entryRuleprimTypes" InternalSafetyParser.g:6185:1: entryRuleprimTypes returns [String current=null] : iv_ruleprimTypes= ruleprimTypes EOF ; | public final String entryRuleprimTypes() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleprimTypes = null;
try {
// InternalSafetyParser.g:6185:49: (iv_ruleprimTypes= ruleprimTypes EOF )
// InternalSafetyParser.g:6186:2: iv_ruleprimTy... | [
"public final String entryRuleprimTypes() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleprimTypes = null;\n\n\n try {\n // InternalAgreeParser.g:4605:1: (iv_ruleprimTypes= ruleprimTypes EOF )\n // InternalAgreeParser.g:4606:2: iv_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allocates a TimeGap object and initializes it to represent a time gap of the specified number of milliseconds. | public TimeGap(long gap) {
setGap(gap);
} | [
"public TimeGap(int days, int hours, int minutes, int seconds, int milliSeconds) {\r\n this.nbDays = days;\r\n this.nbHours = hours;\r\n this.nbMinutes = minutes;\r\n this.nbSecondes = seconds;\r\n this.gap = (days * DAY_IN_MILLIS + hours * HOUR_IN_MILLIS + minutes * MINUTE_IN_MILLIS + seconds * 1000... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the fruit value. | public int getFruitValue() {
return fruitValue;
} | [
"public int getFruitNum() {\n return fruitNum;\n }",
"public Integer getFruitId() {\n return fruitId;\n }",
"public String getApple(){\n String apple = \"apple\";\n return apple;\n }",
"abstract public int getFoodValue();",
"public int getValue() \n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Writes copyright notice on end of the given file. | @Override
public void writeToFile(File file, String notice) throws IOException {
try (Writer writer = new BufferedWriter(new FileWriter(file, true))) {
writer.write(notice);
}
} | [
"protected void writeCopyright(Writer writer) throws IOException {\n writer.write(\"Copyright, \" + year + \", salesforce.com\");\n }",
"void copyCopyrightFile() throws FileNotFoundException, IOException {\r\n File copyright = new File( buildDir, \"copyright\" );\r\n\r\n if( !copyright.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The waitForNeighbors() method is called from within the execution of a node when that node needs to wait for its neighbors to catch up to it in execution time. The node will be blocked until the other nodes in other threads catch up in global time. | public void waitForNeighbors(long time) {
// get the current simulator thread
SimulatorThread thread = (SimulatorThread)Thread.currentThread();
SynchEvent event = (SynchEvent)threadMap.get(thread);
// if the current thread is not in the synchronizer, do nothing
if ( event == nul... | [
"public void waitForAvailability(Node node) throws InterruptedException;",
"public void waitForReadyToExecuteNode() throws InterruptedException {\r\n lock.lock();\r\n try {\r\n while(readyToExecuteNodes.isEmpty() && !allNodesCompletedNoLock()) {\r\n // The result of this await is (indirectly) ch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the URI as an Attribute node. Used to meld the CipherReference with the XMLSignature ResourceResolvers | Attr getURIAsAttr(); | [
"public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }",
"public String getARLAttribute(){\n\t\treturn (String) data.get(ARLATTRIBUTE);\n\t}",
"public String getAttributeNamespaceURI() {\n return attributeNamespaceURI;\n }",
"Attribute getAttribu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'url' field | public avro.Item.Builder clearUrl() {
url = null;
fieldSetFlags()[1] = false;
return this;
} | [
"public void resetUrl()\r\n {\r\n this.url = null;\r\n }",
"void unsetUrl();",
"public void unsetUrlValue()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(URLVALUE$2);\r\n }\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
True if has "ConditionOperator" element | public boolean isSetConditionOperator()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CONDITIONOPERATOR$0) != 0;
}
} | [
"public ExpressionNode getCondition();",
"cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();",
"public boolean isSetOperator() {\n return this.operator != null;\n }",
"String getCondition();",
"Expression getCond();",
"ConditionCheck getIf();",
"public String getCondition() {\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Create Data Model' reference. If the meaning of the 'Create Data Model' reference isn't clear, there really should be more of a description here... | DataModel getCreateDataModel(); | [
"DataDefinition createDataDefinition();",
"private DataModel createNewInputDataModel(final Project referenceProject) throws Exception {\n\n\t\tfinal DataModel referenceInputDataModel = referenceProject.getInputDataModel();\n\n\t\tfinal String newInputDataModelUuid = \"DataModel-9b1f1249-617e-4369-acd0-81f2c89d2b2... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleEString" $ANTLR start "entryRuleAction" InternalShome.g:1112:1: entryRuleAction returns [EObject current=null] : iv_ruleAction= ruleAction EOF ; | public final EObject entryRuleAction() throws RecognitionException {
EObject current = null;
EObject iv_ruleAction = null;
try {
// InternalShome.g:1112:47: (iv_ruleAction= ruleAction EOF )
// InternalShome.g:1113:2: iv_ruleAction= ruleAction EOF
{... | [
"public final EObject entryRuleAction() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAction = null;\n\n\n try {\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:1310:2: (iv_ruleAction= ruleAction EOF )\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method repaints check boxes in Employee tab | private JPanel repaintChBx(){
cbpanel.removeAll();
for(int i=0; i<skillAry.size();i++){
JCheckBox box = new JCheckBox(skillAry.get(i).getName());
box.setName(skillAry.get(i).getName());
chbxList.add(box);
cbpanel.add(box);
}
return cbpanel;
} | [
"public void repaint(){\n\t\n\t\tmyMainPanel = new JPanel();\n\t\tBoxLayout boxLayout = new BoxLayout(myMainPanel,BoxLayout.PAGE_AXIS );\n\t\tmyMainPanel.setLayout(boxLayout);\n\t\tmyMainPanel.setBorder(BorderFactory.createEmptyBorder(GAP, GAP, GAP, GAP));\n\t\tmonthPanel = new CalendarMonthPanel(this);\n\t\tmyMain... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve a Reading Period list by Reading id | public static ArrayList<ReadmillReadingPeriod> getAllForReading(long readingId) throws ReadmillException {
return getAllForReading(String.format(Endpoints.PERIODS, readingId));
} | [
"public static ArrayList<ReadmillReadingPeriod> getAllForReading(String resourceURI) throws ReadmillException {\n ArrayList<ReadmillReadingPeriod> periods = new ArrayList<ReadmillReadingPeriod>();\n JSONArray jsonResult = getAssertedJSONArray(Request.to(toResourceURI(resourceURI)));\n\n for(int i = 0; i < ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Notify the driver that the passenger is connected to the bus line. Triggers the sending of a message containing all buss stops. Message need to be parsed. Please refer to parseMessageToArray() method. | private void notifyDriverAboutNewPassenger(){
mMqttClient.publish(NEW_PASSENGER, NEW_PASSENGER_BUS_ROUTE_TRIGGER, QOS, null);
Log.d("Passenger to Driver", "Request bus route" );
mMqttClient.publish(NEW_PASSENGER, NEW_PASSENGER_BUS_NAME_TRIGGER, QOS, null);
Log.d("Passenger to Driver", "R... | [
"void heartbeatSender() {\n\t\tHeartbeatMsg beat = new HeartbeatMsg();\n\t\tbeat.type = HeartbeatMsg.Type.normal;\n\t\tbeat.port = listenerPort;\n\t\tbeat.jobs = new ArrayList<String>();\n\n\t\tbeat.jobCount = jobInfoList.size();\n\t\tfor (Iterator<JobInfo> it = jobInfoList.iterator(); it.hasNext();) {\n\t\t\tJobIn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compares the content of the Organization and all objects in the Organization checking equality or equivalence for every field. | public static boolean areEquivalent(Organization o1, Organization o2) {
try {
assertEquivalent(o1, o2);
return true;
} catch (AssertionError e) {
return false;
}
} | [
"@Test\n public void organisationEqualsWorks() {\n Organisation organisation = new Organisation();\n organisation.setName(\"Name\");\n organisation.setVertecId(1L);\n organisation.setFullAddress(\"Building, Street_no Street, City, ZIP, Country\");\n organisation.setActive(true)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a player's match history. If any errors occur, send a message to the given channel detailing the error. | @Nullable
private MatchHistory getMatchHistory(String name, PLATFORM platform, MessageChannel channel) {
final String json = getMatchHistoryJSON(name, platform);
// No response, try the tracker
if(json == null || new JSONObject(json).has(STATUS_KEY)) {
final JSONArray trackerJso... | [
"public void getTeamHistory() {\n\t\tint messageID = incrementMessageID();\n\t\tout.add(new Message(Message.Status.VIEW_TEAM_HISTORY, threadID, messageID, chat.getID()));\n\t\tclass ViewTeamHistoryRequest extends Request {\n\t\t\t@Override\n\t\t\tvoid respond(Message message) {\n\t\t\t\tif (message.getStatus() == M... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Connect this and flow Ensure this's target == flow' soruce | public void connect(Flow flow) {
assert this.target == flow.source;
this.links.addAll(flow.links);
this.target = flow.target;
} | [
"void setTarget(IConnectable target);",
"IConnectable getTarget();",
"private void checkFlowFromTo(\n NodeAdaptor source, NodeAdaptor target) {\n if (source.isChoreographyActivity() && target.isChoreographyActivity()) {\n Collection<NodeAdaptor> nodesWithoutParticipation =\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Valida si los digitos numerico del isbn suman mas de 30 (true) o si no suman mas de 30 (false) | public boolean digitosNumericosIsbnSumanMasDe30Dias(String isbn) {
int sumatoria = 0;
for (int i = 0; i < isbn.length(); i++) {
if (Character.isDigit(isbn.charAt(i))) {
sumatoria += Integer.parseInt(String.valueOf(isbn.charAt(i)));
}
}
return sumatoria > 30 ? true : false;
} | [
"private boolean checkISBN(String isbn) {\n isbn = isbn.replaceAll(\"-\", \"\");\n final int length1 = 10;\n final int length2 = 13;\n final int xNumber = 10;\n final int modNumber = 10;\n final int multStart = 3;\n if (isbn.length() == length1) {\n int su... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get an iterator over the names of all the external variables. This includes both variables that have been explicitly declared using a call to declareVariable(), and variables that are implicitly declared by reference in the case where the allowUndeclaredVariables option is set. It does not include range variables bound... | public Iterator<QName> iterateExternalVariables() {
final Iterator varIterator = env.iterateExternalVariables();
return new Iterator<QName>() {
public boolean hasNext() {
return varIterator.hasNext();
}
public QName next() {
return new... | [
"protected Set<AeScriptVarDef> findVariableReferences() {\r\n AeXPathVariableNodeVisitor visitor = new AeXPathVariableNodeVisitor();\r\n getXPathAST().visitAll(visitor);\r\n return visitor.getVariableReferences();\r\n }",
"public LocalVariableElement[] getLocalVariables();",
"public Set<... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a detached, initialised UserDefinedFunctionsRecord | public UserDefinedFunctionsRecord(String udfName, String udfReturnType, String udfType, String udfLibrary, Long udfUsageCount) {
super(UserDefinedFunctions.USER_DEFINED_FUNCTIONS);
set(0, udfName);
set(1, udfReturnType);
set(2, udfType);
set(3, udfLibrary);
set(4, udfUsa... | [
"public UserDefinedFunctionsRecord() {\n super(UserDefinedFunctions.USER_DEFINED_FUNCTIONS);\n }",
"@Override\n public FlinkFnApi.UserDefinedFunctions createUserDefinedFunctionsProto() {\n return ProtoUtils.createUserDefinedFunctionsProto(\n getRuntimeContext(),\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
start to listen data with dataListener of worker | public boolean listenData() {
return worker.listenData();
} | [
"@Override\n public void run() {\n if (hasDataReceiver())\n getDataReceiver().onDataReceive(data);\n }",
"void beginListenForData() {\n Thread workerThread = new Thread(new Runnable()\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the entry and exit point for every element of the tree, that is a component. | private void determineEntryAndExitPoints() {
for(AbstractBPMNElement element : processDecompositionTree.getElements()){
if(element instanceof Component){
Component component = (Component) element;
component.setEntryPoint(determineEntryPoint(component));
component.setExitPoint(determineExitPoint(co... | [
"public void setEntryPoint(EntryPoint e) {\r\n\t\tentryPoint = e;\r\n\t}",
"private static void setHarnessMainAsEntryPoint() {\n List<SootMethod> entryPoints = new LinkedList<SootMethod>();\n entryPoints.add(Harness.v().getMain());\n Scene.v().setEntryPoints(entryPoints);\n // Scene.v(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method inputLoginDetails this method inputs the data required for login, like username, password. | public String inputLoginDetails() {
try {
Extent.logInfo("inputLoginDetails", "Fetching input data from excel...");
String Data[] = dataProvider.inputLoginDetails();
String userName = Data[0];
String passWord = Data[1];
txtUsername.sendKeys(userName);
txtPassword.sendKeys(passWord);
Exten... | [
"public static void printLoginInfo() {\r\n\r\n String firstname = getFirstName();\r\n String lastname = getLastName();\r\n String studentnumber = getStudentNumber();\r\n String gradYear = getGraduatingYear();\r\n\r\n String username = username(firstname, lastname, gradYear);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called before the connection is disconnected. Implementations should add any additional operations before the connection is disconnected. | protected void beforeDisconnect() {
// Empty implementation.
} | [
"protected void connectionRemoved () {\n // noop\n }",
"protected void afterDisconnect() {\n // Empty implementation.\n }",
"protected void onDisconnect() {}",
"protected void connectionClosed() {}",
"protected void connectionAdded () {\n // noop\n }",
"public void setDisconnected(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an instance of SelfcareFullTransactionsTypeTransactionsFilterType | public com.vodafone.global.er.decoupling.binding.request.SelfcareFullTransactionsType.TransactionsFilterType createSelfcareFullTransactionsTypeTransactionsFilterType()
throws javax.xml.bind.JAXBException
{
return new com.vodafone.global.er.decoupling.binding.request.impl.SelfcareFullTransactionsType... | [
"public com.vodafone.global.er.decoupling.binding.request.SelfcareTransactionsRequestType.TransactionsFilterType createSelfcareTransactionsRequestTypeTransactionsFilterType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.SelfcareTransa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Variable Declaration Without Init CS'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseVariableDeclarationWithoutInitCS(VariableDeclarationWithoutInitCS object) {
return null;
} | [
"public T caseDeclareVariable(DeclareVariable object)\n {\n return null;\n }",
"public T caseVariableDeclarationCS(VariableDeclarationCS object) {\r\n return null;\r\n }",
"public T caseVariableDeclarationWithInitCS(VariableDeclarationWithInitCS object) {\r\n return null;\r\n }",
"public T caseVa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ProveedorNube__Group__3" $ANTLR start "rule__ProveedorNube__Group__3__Impl" InternalCeffective.g:969:1: rule__ProveedorNube__Group__3__Impl : ( ( rule__ProveedorNube__Group_3__0 )? ) ; | public final void rule__ProveedorNube__Group__3__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalCeffective.g:973:1: ( ( ( rule__ProveedorNube__Group_3__0 )? ) )
// InternalCeffective.g:974:1: ( ( rule__ProveedorNube__Group_3__0... | [
"public final void rule__ProveedorNube__Group_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:1285:1: ( rule__ProveedorNube__Group_3__1__Impl )\n // InternalCeffective.g:1286:2: rule__ProveedorNube__Group... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Searches for the uniprot name of the given human EntityReference. | protected String getUniprotNameForHuman(Match m, String label)
{
ProteinReference er = (ProteinReference) m.get(label, getPattern());
return getUniprotNameForHuman(er);
} | [
"protected String getUniprotNameForHuman(ProteinReference pr)\n\t{\n\t\tfor (String name : pr.getName())\n\t\t{\n\t\t\tif (name.endsWith(\"_HUMAN\")) return name;\n\t\t}\n\t\treturn null;\n\t}",
"public void lookupEntity(String entityReference)\n {\n input.clear();\n input.sendKeys(entityReferenc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Saves the currently selected Zoom | static void saveZoomValue(int zoom) {
File path = new File("save" + File.separatorChar + "zoom.mpy");
try {
if (!path.exists()) {
new File("save").mkdir();
}
FileOutputStream file = new FileOutputStream(path);
ObjectOutputStream zoomProperties = new ObjectOutputStream(file);
Integer zoomValue = n... | [
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n\n // TODO: save to preferences instead?\n outState.putFloat(zoomKey, mMap.getCameraPosition().zoom);\n //if (mCollection != null)\n\n outState.putSerializable(mActiveCollectionKey, mCollection);\n\n super.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the phase. This method performs a SyntaxCheck. | @AutoGUIAnnotation(
DescriptionForUser = "<html>Sets the reference phase.</html>",
ParameterNames = {"Phase [degrees] { [-360.0, 719.999] }"},
DefaultValues = {"1"},
ToolTips = {""})
@iC_Annotation( MethodChecksSyntax = true )
public void setPhase(double Phase)
throws... | [
"public void setPhase(Integer phase) {\n this.phase = phase;\n }",
"public void setPhase(Phase phaseOfSelection) {\n this.phase = phaseOfSelection;\n }",
"public void setPhase(String value) {\n setAttributeInternal(PHASE, value);\n }",
"protected static void setPhase(ReplicationTask task, St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Contract__PropositionsAssignment_8_1_0" $ANTLR start "rule__Contract__ObligationsAssignment_10_0" InternalSymboleoide.g:9803:1: rule__Contract__ObligationsAssignment_10_0 : ( ruleObl ) ; | public final void rule__Contract__ObligationsAssignment_10_0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalSymboleoide.g:9807:1: ( ( ruleObl ) )
// InternalSymboleoide.g:9808:2: ( ruleObl )
{
// InternalSymb... | [
"public final void rule__Contract__ObligationsAssignment_11_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSymboleoide.g:9822:1: ( ( ruleObl ) )\n // InternalSymboleoide.g:9823:2: ( ruleObl )\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column SWIFT_PRINT_HDR.PROG_TYPE | public String getPROG_TYPE() {
return PROG_TYPE;
} | [
"public void setPROG_TYPE(String PROG_TYPE) {\r\n this.PROG_TYPE = PROG_TYPE == null ? null : PROG_TYPE.trim();\r\n }",
"public String getProgramType() {\n\t\treturn programType;\n\t}",
"java.lang.String getAppType();",
"@DISPID(20) //= 0x14. The runtime will prefer the VTID if present\n @VTID(43)\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
loads Link In layout, so user can view info | public void Link (View view) {
setContentView(R.layout.link_in);
} | [
"public abstract void displayView(String id, String uri);",
"private void renderContent() {\n Bundle bundle = getIntent().getExtras();\n if (bundle != null) {\n // Sets title to title from extras\n TextView title = findViewById(R.id.title);\n title.setText(bundle.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the identifier of the page to show last in the wizard. | public Object getLastPageIdentifier()
{
return firstWizardPage.getIdentifier();
} | [
"public Object getFirstPageIdentifier()\n {\n return firstWizardPage.getIdentifier();\n }",
"public String getNextPageID() {\n\t\treturn nextPageID;\n\t}",
"public int getLastPage() {\n\t\treturn lastPage;\n\t}",
"public int getLastPage()\n {\n return lastPage;\n }",
"java.lang.String ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Run the InstagramException(String,Exception) constructor test. | @Test
public void testInstagramException_2() throws Exception {
String message = "";
Exception e = new Exception();
InstagramException result = new InstagramException(message, e);
// add additional test code here
assertNotNull(result);
assertEquals(-1, result.getAPILimitStatus());
assertEquals(-1, resu... | [
"@Test\n\tpublic void testInstagramException_1() throws Exception {\n\t\tString message = \"\";\n\n\t\tInstagramException result = new InstagramException(message);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(-1, result.getAPILimitStatus());\n\t\tassertEquals(-1, result.getR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column qt_activity.publicUserId | public Integer getPublicuserid() {
return publicuserid;
} | [
"public Long getInternalUserId() {\n return internalUserId;\n }",
"public Integer getAtUserId() {\n return atUserId;\n }",
"public long getUserId() {\n return _app.getUserId();\n }",
"public long getUserId() {\r\n return userId;\r\n }",
"public long getUserId() {\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of toSTAR method, of class Wattos.Star.TagTable. | public void testToSTAR() throws Exception {
//General.verbosity = General.verbosityDebug;
General.verbosity = General.verbosityOutput;
General.showDebug("toSTAR");
DBMS dbms = new DBMS();
TagTable instance = new TagTable("testTagTable",dbms);
instance.insertColum... | [
"public void testToStringStarTableString() throws IOException {\n String s = helper.toString(table,\"votable\");\n StarTable table1 = helper.getBuilder().makeStarTableFromString(s);\n assertNotNull(table1);\n assertEquals(table1.getColumnCount(),table.getColumnCount());\n assertEq... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the default toolbar is used. If toolbar is not present return false. The default is set to true and the child classes may override this method if the toolbar is being customized. | protected boolean usesDefaultToolbar() {
return true;
} | [
"protected boolean isToolbarEnabled() {\n return true;\n }",
"protected boolean useToolbar() {\n return true;\n }",
"protected boolean isToolbarNeeded() {\n return true;\n }",
"@Override\n public boolean isToolbarVisible() {\n return toolbarVisible;\n }",
"public b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks to see if the note of given length is allowed to be added at the specified beat number. | private void checkCanAdd(Note note, int beatNumber, int length, int volume) {
if (!this.noteMap.containsKey(note)) {
this.initializeStates(note.getInstrument());
}
if (beatNumber + length > this.noteMap.get(note).size()) {
this.expand((beatNumber + length) - this.duration);
}
... | [
"private void checkCanRemove(Note note, int beatNumber) {\r\n if (beatNumber >= this.noteMap.get(note).size()) {\r\n throw new IllegalArgumentException(\"beatNumber is out of range\");\r\n }\r\n if (this.noteMap.get(note).get(beatNumber).getState() != MusicStates.START) {\r\n throw new IllegalArg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
4. Delete Stock 4.1 Delete stock object | public void deleteStock(Stock stock){
this.open();
long id = stock.getId();
database.delete(SQLiteHelper.TABLE_STOCK, SQLiteHelper.COL_ID + " =?", new String[]{String.valueOf(id)});
this.close();
} | [
"public void deleteStockExchange(Integer id) {\r\n\t\tstockExchangeRepository.deleteById(id);\r\n\t}",
"public void deleteStock(String name){\n Log.d(TAG, \"deleteStock: \"+name);\n int cnt = database.delete(TABLE_NAME, STOCK_NAME + \" = ?\", new String[]{name});\n Log.d(TAG, \"deleteStock: \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column t_ydzf_complaint.COMPLAINT_ENTERPRISE_ID | public Integer getComplaintEnterpriseId() {
return complaintEnterpriseId;
} | [
"public String getPayroll_company_id() {\r\n return (String) get(\"payroll_company_id\");\r\n }",
"public long getCompanyId() {\n return _region.getCompanyId();\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _ext_information.getCompanyId();\n\t}",
"@Override\n\tpublic long ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Plays the morse code | private static void playMorseSound() {
Scanner input = new Scanner(System.in);
System.out.println("Enter morse code");
System.out.print(">> ");
String morse = input.nextLine();
String[] codes = morse.split("");
for (int i = 0; i < codes.length; i++) {
// Syste... | [
"private void printEnglishToMorse() {\n input = takesEnglishInput();\n String[] translatedLetters = con.convertEngToMorse(input);\n for (int i = 0; i < translatedLetters.length; i++) {\n System.out.print(translatedLetters[i] + \" \");\n }\n System.out.println(\"\");\n\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prompts the user for an input number and then runs both iterative and recursive algorithms to print all combinations of numbers that create its sum. | public void run() {
System.out.println("\nFind all sum combinations using 1 through 9\n");
int value = 0;
String answer = "";
do {
value = Prompt.getInt("Input a number", 1, (LARGEST_NUMBER * 2));
// iterative version
System.out.println("\nPrinting iterative solution:");
printCombinatio... | [
"public void printCombinationsRecurse(int value) {\r\n\t\tint stackPtr = 0;\r\n\t\tint[] stack = new int[LARGEST_NUMBER];\r\n\t\t// push each starting number from 1 to LARGEST_NUMBER\r\n\t\tfor (int a = 1; a <= LARGEST_NUMBER; a++) {\r\n\t\t\tstack[stackPtr] = a;\r\n\t\t\tprintRecursive(value, stack, stackPtr);\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the open position by symbol. | public Position getOpenPositionBySymbol(String symbol) throws AlpacaAPIException {
Type listType = new TypeToken<Position>() {
}.getType();
AlpacaRequestBuilder urlBuilder =
new AlpacaRequestBuilder(apiVersion, baseAccountUrl, AlpacaConstants.POSITIONS_ENDPOINT);
if (sy... | [
"public CurrencySymbolPosition getSymbolPosition()\r\n {\r\n return (m_symbolPosition);\r\n }",
"public Trade locateOpenTrade(String symbol, String action) {\n List<Trade> tradePairs = this.marketTrades.get(symbol);\n Trade openTrade;\n\n if (action.equals(\"buy\")) {\n //... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Zoom in the cluster. Need to create LatLngBounds and including all the cluster items inside of bounds, then animate to center of the bounds. Create the builder to collect all essential cluster items for the bounds. | @Override
public boolean onClusterClick(Cluster<ImageResultItem> cluster) {
LatLngBounds.Builder builder = LatLngBounds.builder();
for (ClusterItem item : cluster.getItems()) {
builder.include(item.getPosition());
}
// Get the LatLngBounds
final LatLngBounds bound... | [
"@Override\n public boolean onClusterClick(Cluster<Company> cluster) {\n LatLngBounds.Builder builder = LatLngBounds.builder();\n for (ClusterItem item : cluster.getItems()) {\n builder.include(item.getPosition());\n }\n // Ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the maximum number of file delivery attempts before checking if another queue has work to be performed. | int getFairFileLimit(); | [
"int getMaximumSendAttempts();",
"int getMaxWorkRetries();",
"public int getMaxNumberOfRetries() {\n return maxNumberOfRetries;\n }",
"public int getMaxFileTransfers() {\n return RcsSettings.getInstance().getMaxFileTransferSessions();\n }",
"public static int getMaxTries() {\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Function to generate User ID and Password of Service Provider | @Override
public ServiceProvider generateIdPassword(ServiceProvider serviceprovider) throws RegisterException, IBSException {
String temp = serviceprovider.getNameOfCompany();
int length = temp.length();
String userId;
boolean b = false;
int count = 5; // make it unique
do {
userId = temp.substr... | [
"private static DeviceCredentials generateCredentials() {\r\n String deviceName = generateRandomString(LiveIdConstants.ValidDeviceNameCharacters, LiveIdConstants.DeviceNameLength);\r\n\r\n String devicePassword = generateRandomString(LiveIdConstants.ValidDevicePasswordCharacters,\r\n Li... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all the rating entries where userId = &63;. | public java.util.List<vn.com.fis.portal.model.RatingEntry> findByUserId(
long userId) throws com.liferay.portal.kernel.exception.SystemException {
return _ratingEntryLocalService.findByUserId(userId);
} | [
"@GetMapping(\"/users/{userId}\")\r\n public UserRating getUserRating(@PathVariable(\"userId\") String userId) {\r\n List<Rating> ratings = Arrays.asList(\r\n new Rating(\"120\", 4),\r\n new Rating(\"35\", 3)\r\n );\r\n return new UserRating(ratings);\r\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Composes an AffineTransform object with the Transform in this Graphics2D according to the rule lastspecifiedfirstapplied. If the current Transform is Cx, the result of composition with Tx is a new Transform Cx'. Cx' becomes the current Transform for this Graphics2D. Transforming a point p by the updated Transform Cx' i... | public abstract void transform(AffineTransform Tx); | [
"public void transform(AffineTransform Tx) {\n //org.jnode.vm.Unsafe.debug(\"SurfaceGraphics2D.transform() invoked\\n\");\n transform.concatenate(Tx);\n }",
"public void transform(AffineTransform Tx) {\n _transform.concatenate(Tx);\n }",
"public void transform(AffineTransform Tx)\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check the existence of given index in current elasticsearch's node. | public boolean doesIndexExist(String indexToBeChecked) throws NoneNodeConnectedException
{
if (!this.transportClient.connectedNodes().isEmpty()) {
logger.debug("checking if index: [" + indexToBeChecked + "] exist.");
if (indexExist.containsKey(indexToBeChecked) && indexExist.get(... | [
"boolean indexExists(String name) throws ElasticException;",
"private boolean doesIndexExist(final String index) {\n final IndexMetaData indexMetaData = client.admin().cluster()\n .state(Requests.clusterStateRequest()).actionGet().getState().getMetaData().index(index);\n return indexMetaData != null;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the SelectTargetCadastreObjectTool to add or remove underlying parcels to the Unit Title Development. | private void addToolsAndCommands() {
this.selectTargetCadastreObjectTool
= new CadastreChangeSelectCadastreObjectTool(this.getPojoDataAccess());
this.selectTargetCadastreObjectTool.setTargetParcelsLayer(targetParcelsLayer);
this.selectTargetCadastreObjectTool.setCadastreObjectTyp... | [
"protected void addToolMentorPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_WorkProductDefinition_toolMentor_f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Transforma el punto con un vector. | public Punto transformar(Vector v)
{
return new Punto(x + v.x, y + v.y);
} | [
"V vectorTo(P point);",
"public double[] vectorTo(double[] pt){\n double[] vecToLight = new double[3];\n vecToLight[0] = pos[0] - pt[0];\n vecToLight[1] = pos[1] - pt[1];\n vecToLight[2] = pos[2] - pt[2];\n return vecToLight;\n }",
"public PVector toPVector (Property p) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the predicate function that determines whether the given collection is to be included. | public Predicate<CollectionId> collectionFilter() {
return collectionFilter;
} | [
"protected static <T> boolean trueForAll(Iterable<T> collection, \n \t\tIPredicate<T> predicate) throws ServiceLocalException {\n for (T entry : collection)\n {\n if (!predicate.predicate(entry))\n {\n return false;\n }\n }\n\n return tr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
write this method so that it searches through all of the elements of the ArrayList ary and prints only those that start with the parameter src. You can use the String method startsWith | public static void printAllThatStartWith(ArrayList<String> ary, String src){
String result = "";
int i = 0;
while(i < ary.size()){
if (ary.get(i).startsWith(src)){
result = result + (ary.get(i) + ", ");
}
i++;
}
System.out.print... | [
"public static void main(String[] args) {\n\n List<String> cities = Arrays.asList(\"ROME\", \"LONDON\", \"NAIROBI\", \"CALIFORNIA\", \"ZURICH\", \"NEW DELHI\", \"AMSTERDAM\", \"ABU DHABI\", \"PARIS\");\n String letter = \"L\";\n\n cities.stream()\n .filter(x -> x.startsWith(lette... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a pull request | public PullRequest pullRequest(String owner, String repo, CreatePullRequestOption option) {
return apiClient.deserialize(apiClient.postBody(String.format("/repos/%s/%s/pulls", owner, repo), option), PullRequest.class);
} | [
"public PrNumber createPullRequest(String owner, String name, PRbody body) {\n try {\n PrNumber number = new PrNumber();\n GHRepository repo = this.githubProvider.get().getRepository(\n owner.toLowerCase() + \"/\" + name.toLowerCase());\n GHPullRequest pr =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indicates if this user list is eligible for Google Search Network. optional bool eligible_for_search = 33; | @java.lang.Override
public boolean getEligibleForSearch() {
return eligibleForSearch_;
} | [
"@java.lang.Override\n public boolean getEligibleForSearch() {\n return eligibleForSearch_;\n }",
"boolean hasSearchPartnersOptInRecommendation();",
"public Builder setEligibleForSearch(boolean value) {\n\n eligibleForSearch_ = value;\n bitField0_ |= 0x00010000;\n onChanged();\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Run the byte hw1_1000LOC6method1(hw1_1000LOC10,char,double) method test. | @Test
public void testHw1_1000LOC6method1_2()
throws Exception {
hw1_1000LOC6 fixture = new hw1_1000LOC6();
fixture.f0 = 1.0f;
fixture.f1 = new long[] {};
hw1_1000LOC10 var0 = new hw1_1000LOC10();
char var1 = '';
double var2 = 1.0;
byte result = fixture.hw1_1000LOC6method1(var0, var1, var2);
// ad... | [
"@Test\n\tpublic void testHw1_1000LOC6method1_1()\n\t\tthrows Exception {\n\t\thw1_1000LOC6 fixture = new hw1_1000LOC6();\n\t\tfixture.f0 = 1.0f;\n\t\tfixture.f1 = new long[] {};\n\t\thw1_1000LOC10 var0 = new hw1_1000LOC10();\n\t\tchar var1 = '\u0001';\n\t\tdouble var2 = 1.0;\n\n\t\tbyte result = fixture.hw1_1000LO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the dsNome value for this TItemRegistroSPC. | public java.lang.String getDsNome() {
return dsNome;
} | [
"public String getNome() {\n\t\treturn produto.getNome();\n\t}",
"public void setDsNome(java.lang.String dsNome) {\n this.dsNome = dsNome;\n }",
"public String getNomeItem() {\r\n\t\treturn this.emprestimoid.getNomeItem();\r\n\t}",
"public java.lang.String getDsCidade() {\n return dsCidade;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads a .msh file into outputMesh. | public static final void readMesh(Mesh outputMesh, BufferedReader fr) {
float[] vertices;
int[] triangles;
float[] normals;
float[] texcoords;
try {
// Read the size of the file
int nPoints = Integer.parseInt(fr.readLine());
int nPolys = Integer.parseInt(fr.readLine());
// Create arrays for mes... | [
"private Mesh[] readMeshes(LittleEndianRandomAccessFile in)\n throws IOException {\n Mesh[] meshes = new Mesh[header.getNumMeshes()];\n long offsetSoFar = this.header.getMeshOffset();\n\n for (int i = 0; i < meshes.length; i++) {\n in.seek(offsetSoFar);\n meshes[i] ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the task list in LinkedList format. | public LinkedList<Task> getList() {
return list;
} | [
"List<ReadOnlyTask> getTaskList();",
"public ArrayList<Task> getList();",
"List<TaskDescription> listTasks();",
"List<Task> getTasks();",
"public TaskList getTaskList() {\n return this.taskList;\n }",
"public String getTaskList() {\n return taskList;\n }",
"public TaskList getTaskLis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to give text areas to enter in points for each area of the actor. | private void initializePointsTextArea(){
//Bounds variables
int pointsTextFieldX = (int)(screenSize.getWidth() * .92); //X coordinate
int pointsTextFieldY = (int)(screenSize.getHeight() * .37); //Y coordinate
int textFieldWidth = 30; //Textfield width
int textFeildHeight = 15; //Textf... | [
"public void setUpTextAreas() {\n\t\tareaText.setFocusable(false);\n\t\tperimeterText.setFocusable(false);\n\t}",
"private void generateTextArea()\n {\n //Clear the textArea\n textArea.selectAll();\n textArea.replaceSelection(\"\");\n\n MyCircle circle = panel.getCircle();\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if this settings is chat enabled. | public boolean isChatEnabled() {
return _settings.isChatEnabled();
} | [
"public boolean getChatEnabled() {\n\t\treturn _settings.getChatEnabled();\n\t}",
"public boolean isChatEnabled() {\n return chatEnabled;\n }",
"public boolean isChatEnabled();",
"public boolean chatEnabled();",
"boolean isChatSupported();",
"public void setChatEn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Saves shapes to an Adobe Illustrator file, called by saveAI(). | public void saveAI(String aiFilename, ArrayList<BezShape> comps, ArrayList<Integer> paletteColors) {
println("saving Adobe Illustrator file " + aiFilename + "...");
PrintWriter output = createWriter(aiFilename);
DocumentComponent doc = new DocumentComponent(this, "IgnoDoc");
Palette pal = doc.getPalette();
pa... | [
"public void saveFile() throws IOException{\t\t\n\t\tJFileChooser fileChooser = new JFileChooser();\n if ( fileChooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) { \t\n File selectedFile = fileChooser.getSelectedFile();\n System.out.println(selectedFile.getName()); \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes PostingBuyItNow from repository | @RequestMapping(value = "/deletePostingBuyItNow/{id}", method=RequestMethod.POST)
public boolean deletePostingBuyItNow(@PathVariable String id) {
return postingBuyItNowService.deletePosting(Integer.parseInt(id));
} | [
"public void deletePost(Post post);",
"void deletePostById(int id);",
"public void removePurchaseOrderIntoRepositoryTest() {\n\t}",
"public HttpStatus deleteById(Long postId);",
"@After\n public void delete() {\n try {\n buddyPropertyRepository.deleteAll();\n requestRepo.deleteAll();\n pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the Builder instance for the 'cpuInfo' field and creates one if it doesn't exist yet. | public com.iot.data.schema.CpuInfoData.Builder getCpuInfoBuilder() {
if (cpuInfoBuilder == null) {
if (hasCpuInfo()) {
setCpuInfoBuilder(com.iot.data.schema.CpuInfoData.newBuilder(cpuInfo));
} else {
setCpuInfoBuilder(com.iot.data.schema.CpuInfoData.newBuilder());
}
... | [
"public com.iot.data.schema.DevInfoContextData.Builder setCpuInfoBuilder(com.iot.data.schema.CpuInfoData.Builder value) {\n clearCpuInfo();\n cpuInfoBuilder = value;\n return this;\n }",
"public com.iot.data.schema.DevInfoContextData.Builder setCpuInfo(com.iot.data.schema.CpuInfoData value) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface for DAO the table "departments" | public interface DepartmentsDao extends Dao<Department, Long> {
/**
* Find all departments for view
*
* @return list of departments
*/
List<DepartmentView> findAllView();
} | [
"public interface DepartmentDAO {\n\n /**\n * This method is used to retrieve a list of all departments.\n *\n * @return List of generic type {@link Department}\n */\n public List<Department> getAllDepartments();\n\n /**\n * This method is used when adding a department.\n *\n * ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use TurnReply.newBuilder() to construct. | private TurnReply(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
} | [
"private Reply(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"ReplyMessage createReplyMessage();",
"private QuoteReply(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private BaseReply(com.google.protobuf.GeneratedMessage... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the recipient at the given index. | public String removeRecipient(int i) {
return recipients.remove(i);
} | [
"public void deleteMessage(int index)\n {\n m_inbox.remove(index);\n \n }",
"public void deleteMessage(int index){\n if (isInBounds(index)){\n for(int place = index; place < count; place ++)\n {\n messages[place] = messages[place + 1];\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form FullDetails | public FullDetails() {
initComponents();
} | [
"@RequestMapping(params = {\"create\", \"form\"}, produces = \"text/html\")\n public String createForm_new(Model uiModel) {\n \tpopulateEditForm(uiModel, new Flight());\n return \"flights/create_new\";\n }",
"public PatientDetailsDialog() {\n super();\n this.mode = Mode.NEW;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for FabFinanceCost, using the alias name FabFinanceCost. | public Number getFabFinanceCost() {
return (Number)getAttributeInternal(FABFINANCECOST);
} | [
"public void setFabFinanceCost(Number value) {\n setAttributeInternal(FABFINANCECOST, value);\n }",
"public BigDecimal getFactualcost() {\n return factualcost;\n }",
"public BigDecimal getFunitactualcost() {\n return funitactualcost;\n }",
"public String getFcostobjectid() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of checkLoginDetails method, of class DatabaseAccess. | @Test
public void testCheckLoginDetails() {
System.out.println("Test: saveLoginDetails Success");
String[] details = {"username", "password"};
boolean result = false;
try {
result = DatabaseAccess.checkLoginDetails(details);
} catch (SQLException | NullPo... | [
"@Test\n public void testSaveLoginDetailsSuccess() {\n System.out.println(\"Test: saveLoginDetails Success\");\n \n String[] details = {\"username\", \"password\"};\n boolean result = false;\n try {\n result = DatabaseAccess.saveLoginDetails(details);\n } catc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |