query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
int32 max_nb_of_session = 2;
int getMaxNbOfSession();
[ "public int getMaxNbOfSession() {\n return maxNbOfSession_;\n }", "int getMaxNumberOfConcurrentTestSessions();", "public int getMaxNbOfSession() {\n return maxNbOfSession_;\n }", "public static int getMaxSessionCount() {\n\t\treturn (maxSessionCount);\n\t}", "@Description(\"The configure...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a list of options for the Group Filter list.
private JsonArray getGroupFilterOptions() { JsonObject both = new JsonObject(); both.addProperty(KEY_TEXT, "Direct or Indirect Membership"); both.addProperty(KEY_VALUE, GROUP_FILTER_BOTH); JsonObject direct = new JsonObject(); direct.addProperty(KEY_TEXT, "Direct Membership"); ...
[ "public static Map<String,String> options() {\n LinkedHashMap<String,String> options = new LinkedHashMap<String,String>();\n List<Group> groups = getAll();\n for(Group group : groups) {\n options.put(group.id.toString(), group.name);\n }\n return options;\n }", "pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inserta MeGusta o NoMeGusta y crea Match si es necesario
public void insertarGusta(Cliente dador, Cliente receptor, boolean gusta) { Connection con; PreparedStatement stmGusta = null; PreparedStatement stmGustado = null; PreparedStatement stmMatch = null; ResultSet rs; con = this.getConexion(); try { stmGu...
[ "public void insertManches(Match match){\n /*campi Manche on database:\n number= number of mache frmon 1 to 5,\n match_id,\n sentence_id,\n seen_by_user[]= user that have seen that manche,\n manche_wallets[] = global wallet for that manche*/\n String qry= \"INSE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When the server receives an PUT request with the URI /update/%id% and the request body of exam fields and values in JSON format, the fields that are not null are updated in the exam with the given id %id%. The HTTP response is 200 OK and the exam in JSON format.
@PutMapping(value = "/{id}", consumes = "application/json") public Object update(@RequestBody @Valid UpdateInput input, BindingResult result, @PathVariable("id") @Valid long id) { if (result.hasErrors()) { throw new BadRequestException("Unable to update exam.", result.getAllErrors()); } ...
[ "@PutMapping(\"/update/{id}\")\n public void instructorUpdate(@RequestBody Instructor instructor, @PathVariable int id){\n\n instructorService.updateInstructor(instructor, id);\n System.out.println(\"Data Updated.......\");\n\n }", "@Test\r\n\tpublic void test_updateEmployeeDetail() {\r\n\t\tg...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test tree node is successfully added
@Test public void testAdd() { String messageAddExpected = "The tree node was expected to be added, but actually was not"; String messageAddResultTrueExpected = "The addition result was expected to be true, but actually was false"; assertTrue(messageAddResultTrueExpected, node1.add(anotherNod...
[ "@Test\n public void testAdd() {\n System.out.println(\"add\");\n Node node = new Node();\n node.setElement(2);\n BinarySearchTree instance = new BinarySearchTree();\n boolean expResult = true;\n boolean result = instance.add(node);\n assertEquals(expResult, resul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of isEqual method, of class Tour.
@Test public void test0IsEqual_ThreeElements() { Tour tourA = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}}); Tour tourB = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}}); assertTrue(tourA.isEqual(tourB)); }
[ "@Test\r\n public void testCreatePopularTour_sameTours() {\r\n Tour tourA = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour tourB = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tour expected = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}, {3, 3}});\r\n Tou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a cookie to the domain's root path (e.g. "somedomain.com/", NOT "somedomain.com/some/path") with the specified name and value.
void addCookie(String domain, String name, String value);
[ "Response addCookie(String name, String value);", "private static HttpCookie createCookie(String name, String value, String domain, String path) {\n HttpCookie cookie = new HttpCookie(name, value);\n cookie.setDomain(domain);\n cookie.setPath(path);\n return cookie;\n }", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns the ith bit of this LFSR (as 0 or 1)
public int bitAt(int i) { return Integer.parseInt(String.valueOf(lfsr1.charAt(i))); }
[ "int getBitAsInt(int index);", "public int bitAt(int i) {\n // PUT YOUR CODE HERE\n }", "boolean getBit(int index);", "public int readBit() {\n if (digits == EOF)\n return EOF;\n int result = digits % 2;\n digits /= 2;\n numDigits++;\n if (numDigits == ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the PolicyRetrievalSetTime field.
public void setPolicyRetrievalSetTime(java.util.Date value);
[ "public void setPolicyRetrievalCompletionTime(java.util.Date value);", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getPolicyRetrievalSetTime();", "void setRetrievedTime(long retrievedTime);", "public void xsetRequestedTime(org.apache.xmlbeans.XmlDateTime requestedTime)\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the default operandCount for the operator. Except when the operator is null it returns 1 and if operandCount is 1, indicating unlimited operands, it returns 1, as from the UI standpoint a selectmanyChoice will be rendered.
public int getOperandCount() { if (_operator != null) { int operandCount = _operator.getOperandCount(); if (operandCount != -1) return operandCount; } return 1; }
[ "public int getMinNumberOfInnerOperators() {\r\n return 1;\r\n }", "public int getMaxNumberOfInnerOperators() {\r\n return Integer.MAX_VALUE;\r\n }", "@java.lang.Override\n public com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count getCount() {\n if (operatorCase_ ==...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ijOrder("iij"); ijOrder("iji"); ijOrder("ailingjoy"); ijOrder("ijijijiji"); //false
public static void main(String[] args) { System.out.println(ijOrder("k")); //ijOrder("jijijijij"); //true //ijOrder("j"); }
[ "private boolean areCorrectlyOrdered( int i0, int i1 )\n {\n int n = commonLength( i0, i1 );\n \tif( text[i0+n] == STOP ){\n \t // The sortest string is first, this is as it should be.\n \t return true;\n \t}\n \tif( text[i1+n] == STOP ){\n \t // The sortest string is last, this is not good.\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return bot token from BotFather
@Override public String getBotToken() { return token; }
[ "@Override\r\n\tpublic String getBotToken() {\t\t\r\n\t\treturn BotConfig.BOT_TOKEN;\r\n\t}", "@Override\n public String getBotToken()\n {\n return \"552909310:AAFnbtggLUWU9uhd0NfOLuPRbbwuDjLRuIY\";\n }", "@Override\n public String getBotToken() {\n return \"743415362:AAH5AkLTU8MGG5g5c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Occurs when the local user joins a specified channel. The channel name assignment is based on channelName specified in the joinChannel method. If the uid is not specified when joinChannel is called, the server automatically assigns a uid.
@Override public void onJoinChannelSuccess(String channel, final int uid, int elapsed) { runOnUiThread(new Runnable() { @Override public void run() { Log.e(TAG, "onJoinChannelSuccess uid: " + (uid & 0xFFFFFFFFL)); } }); ...
[ "private void UserJoinChannel(ClientData d)\n\t{\n\t\tApplicationManager.textChat.writeLog(d.ClientName + \" Join to \" + currentChannel.ChannelName);\n\t\tSendMessage(null, MessageType.channelInfo);\n\n\t}", "public void joinChannel() {\n String userId = AuthenticationSingleton.getAdaptedInstance().getUid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
elimina de lista todas as tarefas
public void eliminarTarefas() { lista.clearTarefas(); }
[ "public void eliminarTodosLosElementos(){\n\t\tlistModel.removeAllElements();\n\t}", "public void removerLista() {\n\t\t\n\t\ttry {\n\t\t\n\t\t\tif (listaSelecionada != null) {\n\t\t\t\tListaComprasController ls = DependencyManager.GetListaComprasController(this);\n\t\t\t\tif (ls.deleteListaCompras(listaSeleciona...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether there is a link between this territory and the specified territory
public boolean isLinkedTo(Territory t) { return links.contains(t); }
[ "public boolean ownANeighbour(Territory t)\n {\n for (Territory neighbour:t.getNeighbourTerritories())\n {\n if(neighbour.getCurrentPlayer().equals(this) && findTroops(t)>1)\n {\n return true;\n }\n }\n return false;\n }", "public b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new SharedMemoryMatrix attached to a shared memory segment containing a C++ SharedMemoryMatrix object.
public SharedMemoryMatrix(int key) throws SharedMemoryMatrixException { attachToShm(key); }
[ "protected abstract Object createJvmMemoryMBean(String groupName,\n String groupOid, ObjectName groupObjname, MBeanServer server);", "private native void attachToShm(int key) throws SharedMemoryMatrixException;", "public KLocalMemorySegment createMemorySegment(KProcess process, Properties envs, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Mapper for the entity AchatArticleConteneurReception and its DTO AchatArticleConteneurReceptionDTO.
@Mapper(componentModel = "spring", uses = {AchatConteneurReceptionMapper.class, ProduitMapper.class}) public interface AchatArticleConteneurReceptionMapper extends EntityMapper<AchatArticleConteneurReceptionDTO, AchatArticleConteneurReception> { @Mapping(source = "achatConteneurReception.id", target = "achatConten...
[ "@Mapper(componentModel = \"spring\", uses = {ProduitMapper.class, AchatLigneProformaMapper.class})\npublic interface AchatArticleLigneProformaMapper extends EntityMapper<AchatArticleLigneProformaDTO, AchatArticleLigneProforma> {\n\n @Mapping(source = \"produit.id\", target = \"produitId\")\n @Mapping(source ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
User clicks "New" button in Expert Priors Tab: Load the default/template expert priors text to the textbox.
private void newExpertPriorsBtnActionPerformed(java.awt.event.ActionEvent evt) { expertPriorsTextArea.setText( GUIModel.defaultNewExpertPriorString ); }
[ "private void newLabButton(){\n NewLabNameTextfield.setText(\"\");\n NewLabDialog.setVisible(true);\n NewLabNameTextfield.requestFocusInWindow();\n }", "private void initializeDisplayText() {\n // Title and field labels\n Stage stage = (Stage) titleLabel.getScene().getWindow(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.pb4server.HalfWayHomeAskReq halfWayHomeAskReq = 21;
pb4server.HalfWayHomeAskReqOrBuilder getHalfWayHomeAskReqOrBuilder();
[ "pb4server.HalfWayHomeAskReq getHalfWayHomeAskReq();", "pb4server.AskFightInfoAskReq getAskFightInfoAskReq();", "pb4server.UpdateInfoByHomeAskReq getUpdateInfoByHomeAskReq();", "pb4server.BarrackSpeedAskReq getBarrackSpeedAskReq();", "pb4server.ArenaFightAskReq getArenaFightAskReq();", "pb4server.WalkSpee...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the extension directories that will be used during the compilation.
public void setExtdirs(Path extdirs) { if (this.extdirs == null) { this.extdirs = extdirs; } else { this.extdirs.append(extdirs); } }
[ "protected void loadExtensions()\n {\n // Load local extension from repository\n\n if (this.rootFolder.exists()) {\n FilenameFilter descriptorFilter = new FilenameFilter()\n {\n public boolean accept(File dir, String name)\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use GetReturnUrlS.newBuilder() to construct.
private GetReturnUrlS(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "java.lang.String getReturnUrl();", "private GetReturnUrlC(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String getReturnUrl() {\n return returnUrl;\n }", "public java.lang.String getReturnURL() {\r\n return returnURL;\r\n }", "Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint64 logged_event_time = 2; when we received said event utc important
long getLoggedEventTime();
[ "public long getLoggedEventTime() {\n return loggedEventTime_;\n }", "@java.lang.Override\n public long getEventTimeUsec() {\n return eventTimeUsec_;\n }", "boolean hasLoggedEventTime();", "public long getLoggedEventTime() {\n return loggedEventTime_;\n }", "long getEventTime();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleBTable" $ANTLR start "entryRuleAttribute" InternalBSQL2Java.g:128:1: entryRuleAttribute : ruleAttribute EOF ;
public final void entryRuleAttribute() throws RecognitionException { try { // InternalBSQL2Java.g:129:1: ( ruleAttribute EOF ) // InternalBSQL2Java.g:130:1: ruleAttribute EOF { before(grammarAccess.getAttributeRule()); pushFollow(FOLLOW_1); ...
[ "public final void entryRuleAttribute() throws RecognitionException {\n try {\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:201:1: ( ruleAttribute EOF )\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/Internal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string variantType = 3;
public Builder setVariantType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } variantType_ = value; onChanged(); return this; }
[ "public void set_variant_type(byte t) { this.variantType=t; }", "java.lang.String getVariantType();", "@Override\n public int getVariantType() {\n return type;\n }", "java.lang.String getVariant(int index);", "@Test\n public void variantValuesTest() {\n // TODO: test variantValues\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the monthSelected attribute of the CalendarBean object
public void setMonthSelected(int monthSelected) { this.monthSelected = monthSelected; }
[ "public int getMonthSelected() {\n return monthSelected;\n }", "public void setMonth(int month)\n {\n this.month = month;\n }", "private void setMonth(int month) {\n if (month == -1) {\n setYear(shownYear - 1, false);\n shownMonth = 11;\n } else if (month == 12) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the next solution in the neighbourhood by picking a random solution.
@Override public KPMPSolution randomNextNeighbour() { random = new Random(Double.doubleToLongBits(Math.random())); List<KPMPSolutionWriter.PageEntry> edgePartition = bestSolution.getEdgePartition().stream().map(KPMPSolutionWriter.PageEntry::clone).collect(toCollection(ArrayList::new)); KPMPS...
[ "public Solution constructRandomSolution();", "public Move<? super SolutionType> getRandomMove(SolutionType solution, Random rnd);", "public void randomSolution() {\r\n\t\tint literalValue;\r\n\r\n\t\tfor(int i=0; i<this.getSolutionSize(); i++) {\r\n\t\t\tliteralValue = (int) (Math.random()*10)%2;\r\n\r\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the "receiveResponseXML" element
public void setReceiveResponseXML(com.intuit.developer.ReceiveResponseXMLDocument.ReceiveResponseXML receiveResponseXML) { generatedSetterHelperImpl(receiveResponseXML, RECEIVERESPONSEXML$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON); }
[ "public com.intuit.developer.ReceiveResponseXMLDocument.ReceiveResponseXML getReceiveResponseXML()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.intuit.developer.ReceiveResponseXMLDocument.ReceiveResponseXML target = null;\n target = (com.intuit.devel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set Message Type. Mail Message Type
public void setMailMsgType (String MailMsgType);
[ "public void setMessageType(Type messageType) {\n\t\tthis.messageType = messageType;\n\t}", "public void setMessageType(MessageType messageType) {\n this.messageType = messageType;\n }", "public void setMessageType(String messageType)\r\n\t{\r\n\t\tthis.messageType = messageType;\r\n\t}", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
area that show chatting result Constructs the client by laying out the GUI and registering a listener with the textfield so that pressing Return in the listener sends the textfield contents to the server. Note however that the textfield is initially NOT editable, and only becomes editable AFTER the client receives the ...
public ChatClient() { // Layout GUI textField.setEditable(false); //lock textField from users not to be editted messageArea.setEditable(false); //lock messageArea from users not to be editted frame.getContentPane().add(textField, "North"); //put textField on North frame.get...
[ "public ChatClientWindow () {\n\n int portNumber = 0;\n\n String host = (String)JOptionPane.showInputDialog(null, \"Enter the host to connect to : \", \"Welcome to HUB Chat!\", JOptionPane.QUESTION_MESSAGE, null, null, \"localhost\" );\n String port = (String)JOptionPane.showInputDialog(null, \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get all cartridge names of this pvr.
public String [] getCartridgeNames() throws CdbException , InterruptedException { return _pvr.getCartridgeNames() ; }
[ "public List<String> getNames(VariantContext variantContext);", "public String[] getNames() {\n \t\tfinal String[] result = new String[knownPlugins.size()];\n \t\tint i = 0;\n \t\tfor (String name : knownPlugins.keySet()) {\n \t\t\tresult[i++] = name;\n \t\t}\n \t\treturn result;\n \t}", "public String [] getSy...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If the list of feature states to restore is left unspecified and we are restoring global state, all feature states should be restored.
public void testRestoreSystemIndicesAsGlobalStateWithDefaultFeatureStateList() { createRepository(REPO_NAME, "fs"); indexDoc(SystemIndexTestPlugin.SYSTEM_INDEX_NAME, "1", "purpose", "pre-snapshot doc"); refresh(SystemIndexTestPlugin.SYSTEM_INDEX_NAME); // run a snapshot including global...
[ "public void restoreState();", "public void restoreState() {\n\t\tsuper.restoreState();\n\t}", "public void testRestoreSystemIndicesAsGlobalStateWithNoFeatureStates() {\n createRepository(REPO_NAME, \"fs\");\n String regularIndex = \"my-index\";\n indexDoc(SystemIndexTestPlugin.SYSTEM_INDEX...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
5. file owner reads their link, which is also a link, succeeds
@Test public void ownerLinkWithLinkSuccess() { l.sessionChangeWorkingDirectory(u2Token, makeHomePath(u2)); ReadFileService service = new ReadFileService(u2Token, f5Name); service.execute(); String content = service.result(); assertEquals("Content should be: " + f3Co...
[ "@Test\r\n public void ownerLinkRelSuccess() {\r\n l.sessionChangeWorkingDirectory(u2Token, makeHomePath(u2));\r\n\r\n ReadFileService service = new ReadFileService(u2Token, f7Name);\r\n service.execute();\r\n String content = service.result();\r\n\r\n assertEquals(\"Content sh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Const__TypeAssignment_1" $ANTLR start "rule__Const__NameAssignment_2" ../org.waml.w3c.webidl.ui/srcgen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:10485:1: rule__Const__NameAssignment_2 : ( RULE_ID ) ;
public final void rule__Const__NameAssignment_2() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:10489:1: ( ( RULE_ID ) ) // ../or...
[ "public final void rule__TypeDef__NameAssignment_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:9306:1: ( ( RULE_ID ) )\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the financialObjectivePrsctrlIndicator attribute.
public boolean isFinancialObjectivePrsctrlIndicator() { return financialObjectivePrsctrlIndicator; }
[ "public void setFinancialObjectivePrsctrlIndicator(boolean financialObjectivePrsctrlIndicator) {\n this.financialObjectivePrsctrlIndicator = financialObjectivePrsctrlIndicator;\n }", "public String getInterviewStatusIndicator() {\n\t\treturn interviewStatusIndicator;\n\t}", "public java.lang.String ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__EPolicyDefinitionBody__Group_4__2" $ANTLR start "rule__EPolicyDefinitionBody__Group_4__2__Impl" InternalAADMParser.g:6132:1: rule__EPolicyDefinitionBody__Group_4__2__Impl : ( ( rule__EPolicyDefinitionBody__TriggersAssignment_4_2 ) ) ;
public final void rule__EPolicyDefinitionBody__Group_4__2__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalAADMParser.g:6136:1: ( ( ( rule__EPolicyDefinitionBody__TriggersAssignment_4_2 ) ) ) // InternalAADMParser.g:6137:1: ( ( ...
[ "public final void rule__EPolicyTypeBody__Group_4__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:9256:1: ( ( ( rule__EPolicyTypeBody__TriggersAssignment_4_2 ) ) )\n // InternalAADMParser.g:9257:1: ( ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all values of property InternetRadioStationName as a ReactorResult of RDF2Go nodes
public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllInternetRadioStationName_asNode_(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) { return Base.getAll_as(model, instanceResource, INTERNETRADIOSTATIONNAME, org.ontoware.rdf2go.model.node.Node.class); }
[ "public ReactorResult<java.lang.String> getAllInternetRadioStationName_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), INTERNETRADIOSTATIONNAME, java.lang.String.class);\r\n\t}", "public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllInternetRadioStationName_asNode_() {\r\n\t\treturn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
It checks if the contingency table is correctly created.
public void validate() throws InvalidContingencyTableException{ if(tp < 0 || fp < 0 || tn < 0 || fn < 0){ throw new InvalidContingencyTableException(this); } }
[ "private static void TestTable() {\r\n\t\tContingencyTable ct = new ContingencyTable();\r\n\t\tct.setCount(ContingencyTableValue.TruePositive, 171);\r\n\t\tct.setCount(ContingencyTableValue.TrueNegative, 243);\r\n\t\tct.setCount(ContingencyTableValue.FalsePositive, 23);\r\n\t\tct.setCount(ContingencyTableValue.Fals...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all networks of the selected cluster.
@Override @GET @Path("/networks") @Produces("application/json") public Response getNetworks() { String json = String.format("Provider %d cluster %d networks.", provider.getProviderId(), cluster.getClusterId()); return Response.ok(json).build(); }
[ "@Service ClusterNetworksService networks();", "LinkedList<Network> getNetworks();", "public List<Network> getNetworks() throws IOException {\n return getNetworks(GetNetworksParams.create());\n }", "Map<Guid, List<String>> getHostNetworksByCluster(Guid clusterId);", "INetworkCollection getNetworks...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .edu.usfca.protobuf.BidRequestLight.DeviceLight device = 5;
public edu.usfca.protobuf.Bid.BidRequestLight.DeviceLight getDevice() { if (deviceBuilder_ == null) { return device_ == null ? edu.usfca.protobuf.Bid.BidRequestLight.DeviceLight.getDefaultInstance() : device_; } else { return deviceBuilder_.getMessage(); } }
[ "edu.usfca.protobuf.Bid.BidRequestLight.DeviceLightOrBuilder getDeviceOrBuilder();", "edu.usfca.protobuf.Bid.BidRequestLight.DeviceLight getDevice();", "public edu.usfca.protobuf.Bid.BidRequestLight.DeviceLightOrBuilder getDeviceOrBuilder() {\n if (deviceBuilder_ != null) {\n return deviceBuilde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleXUnaryOperation" $ANTLR start "entryRuleOpUnary" InternalDsl.g:5141:1: entryRuleOpUnary returns [String current=null] : iv_ruleOpUnary= ruleOpUnary EOF ;
public final String entryRuleOpUnary() throws RecognitionException { String current = null; AntlrDatatypeRuleToken iv_ruleOpUnary = null; try { // InternalDsl.g:5142:2: (iv_ruleOpUnary= ruleOpUnary EOF ) // InternalDsl.g:5143:2: iv_ruleOpUnary= ruleOpUnary EOF ...
[ "public final String entryRuleOpUnary() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleOpUnary = null;\n\n\n try {\n // ../org.xtext.scripting/src-gen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:1388:2: (iv_ruleOpUnary= rule...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the JobID from the given path.
public static JobID jobIdfromPath(final String path) { return JobID.fromHexString(path); }
[ "public JobID getJobId() { return JobID.forName(datum.jobid.toString()); }", "private static String parseJobID(String line) {\n\n if (line == null || !line.startsWith(\"AT JOB: \")) {\n LOGGER.warn(\"Failed to parse job. Unexpected line: \" + line);\n return null;\n }\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 t_stock_base_info.stock_code
public String getStockCode() { return stockCode; }
[ "java.lang.String getStockCode();", "public String getStockCode() {\n return stockCode;\n }", "String getStockCode();", "public String getStockCode() {\r\n\t\treturn stockCode;\r\n\t}", "public String getStockCode() {\n Object ref = stockCode_;\n if (ref instanceof String) {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the link width.
@Override public int getLinkWidth() { return linkWidth; }
[ "public void setLinkWidth(int linkWidth) {\n this.linkWidth = linkWidth;\n }", "public double getLinkBandwidth() {\n\t\treturn ((getLinkMaxProb() - getLinkMinProb()) / 2D);\n\t}", "abstract float linkSize(String link);", "public String getWidth() {\n return getStyle(\"width\");\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize the disjoint find union structure. p[x] = x, rank[x] = 0 for all x
public void init() { for (int i = 0; i < p.length; i++) { p[i] = i; rank[i] = 0; } }
[ "public UnionFindDisjointSet() {\n pointers = new ArrayList<>();\n indices = new HashMap<>();\n }", "public UnionFind() {\n nodeMap = CollectionsFactory.createMap();\n setMap = CollectionsFactory.createMap();\n }", "public UnionFind(int n) {}", "public UnionFind(int N) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the value of the timezone cookie the browser sets to notify the application of the user's timezone
public static Cookie getTimeZoneCookie ( HttpServletRequest request ) { Cookie cookies[] = request.getCookies(); Cookie timezone_cookie = null; int counter = 0; for ( counter = 0; counter < cookies.length; counter++ ) { if ( cookies[counter].getN...
[ "public String getUserTimezone() {\n return sessionData.getUserTimezone();\n }", "public static String getUserTimezone() {\r\n\t\treturn userTimezone;\r\n\t}", "String getTimezone();", "public String getTimezone() {\n return timezone;\n }", "java.lang.String getTimezone();", "public native f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Test to perform multiplication of 2 sparse matrices when number of columns in first matrix is not equal to number of rows in other
@Test(expected = AssertionError.class) public void testMultiplyWhenColomnNotEqualsRows() { int[][] first = new int[][]{{0, 10, 0, 12}, {0, 0, 0, 0}, {0, 0, 5, 0}, {15, 12, 0, 0}}; int[][] second = new int[][]{{2, 0, 8}, {5, 1, 0}}; int[][] expectedOutput = new int[][]{{0, 0, 240}, {0, 1, 300}, {0, 3, ...
[ "@Test\r\n\tpublic void testToMultiplyMatrix() {\r\n\t\t\r\n\t\tint[][] first = new int[][]{{0, 10, 12}, {1, 0, 3}}; \r\n\t\tint[][] second = new int[][]{{2, 0, 8}, {5, 1, 0}}; \r\n\t\tint[][] expectedOutput = new int[][]{{0, 0, 96}, {0, 1, 10}, {1, 0, 18}, {1, 1, 5}}; \r\n\t\t\t\t\t\t\t\t\t\t \t\r\n\t\tSparseMat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Props' attribute. If the meaning of the 'Props' attribute isn't clear, there really should be more of a description here...
Object getProps();
[ "int getProps();", "public List<Prop> getProps() {\n return props;\n }", "Object getOtherprops();", "public PafDimMemberProps getMemberProps() {\r\n\t\treturn memberProps;\r\n\t}", "public Term getPropertiesTerm() {\n return prop ;\n }", "public String getPropValue() {\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets all the sector descriptions.
static Collection<String> getAllSectorDescriptions() { return getAllDescriptions(2); }
[ "@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<List<EventSector>> getAllEventSectors() {\n\t\treturn new ResponseEntity<>(eventSectorService.findAllNotDeleted(), HttpStatus.OK);\n\t}", "public List<SectorModel> getAllSectorsAndIUS();", "public List<MetaSector> getMetaSectors(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The method creates its own HTTP response with the list of books Ex:
@GET @Produces(MediaType.APPLICATION_JSON) public Response getBookList() throws Exception { String returnString = null; JSONArray jsonArrayBookList = new JSONArray(); DAOBook daoBook = new DAOBook(); JSONObject jsonObject = new JSONObject(); try...
[ "private void fetchBooks() {\n // We use a custom class to handle the API call\n client = new BookAPIClient();\n client.getBooks(\"oscar Wilde\", new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
print all the codon in the HashMap along with counts with counts b/w start and end
public void printCodonCounts(int start, int end){ for(String s : map.keySet()){ if(map.get(s)>=start&&map.get(s)<=end){ System.out.println(s + " " + map.get(s)); } } }
[ "private void countCooccurrences() {\n cooccurrences = new HashMap<String, Map<String, Integer>>();\n\n for (KeywordCandidate cand : keywordCandidates) {\n for (String word : cand.getWords()) {\n Map<String, Integer> submap;\n if (cooccurrences.containsKey(word...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the destination associated with this event.
public String getDestination(){ return route.getDestination(); }
[ "public String getDestination()\n\t{\n\t\treturn notification.getString(Attribute.Request.DESTINATION);\n\t}", "public String getDestination() {\r\n return destination;\r\n }", "public EventChannelDestination destination() {\n return this.destination;\n }", "public String getDestination(){...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleXListLiteral" $ANTLR start "ruleXListLiteral" ../org.xtext.guicemodules.ui/srcgen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1084:1: ruleXListLiteral : ( ( rule__XListLiteral__Group__0 ) ) ;
public final void ruleXListLiteral() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1088:2: ( ( ( rule__XListLiteral__Group__0 ) ) ) ...
[ "public final void ruleXListLiteral() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:892:2: ( ( ( rule__XListLitera...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column tb_hospital.hospital_image
public String getHospitalImage() { return hospitalImage; }
[ "public Object getColumnImage( int columnIndex)\n {\n return columns.get( columnIndex).image;\n }", "@Transient\n public String getImagePath(){\n return GamesEntity.getImagePath(id);\n }", "public void setHospitalImage(String hospitalImage) {\n this.hospitalImage = hospitalImage == null...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Throw exception if method was not found.
public static void throwExceptionIfMethodWasNotFound(Class<?> type, String methodName, Method methodToMock, Object... arguments) { if (methodToMock == null) { String methodNameData = ""; if (methodName != null) { me...
[ "private static void noSuchMethodException() {\n\t\ttry{\n\t\t\tTest t = new Test();\n\t\t\tt.getClass().getMethod(\"B\");\n\t\t}\n\t\tcatch(NoSuchMethodException ex){\n\t\t\tSystem.out.println(\"10. No Such Method Exception \" +ex);\n\t\t}\t\n\t\t\n\t}", "private static void methodNotFoundException() {\n\t\ttry{...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write Grid data to the geotiff file. Grid currently must: have a 1D X and Y coordinate axes. be lat/lon or Lambert Conformal Projection be equally spaced
public void writeGrid(GridDatatype grid, Array data, boolean greyScale, double xStart, double yStart, double xInc, double yInc, int imageNumber) throws IOException { int nextStart = 0; GridCoordSystem gcs = grid.getCoordinateSystem(); // get rid of this when all projections are implemented if (!gcs.is...
[ "public void writeGrid(GridDataset dataset, GridDatatype grid, Array data, boolean greyScale) throws IOException {\r\n\t\tGridCoordSystem gcs = grid.getCoordinateSystem();\r\n\r\n\t\tif (!gcs.isRegularSpatial())\r\n\t\t\tthrow new IllegalArgumentException(\"Must have 1D x and y axes for \" + grid.getName());\r\n\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests that a binding with a primitive name works as expected.
@Test public void testPrimitiveNamedBinding() { final int _testInt1 = 5; final int _testInt2 = 9; ObjectFactory.loadModules(new AbstractModule() { protected void configure() { bind(List.class).as(_testInt1).to(ArrayList.class); bind(List.class).as(_testInt2).to(Vector.class); ...
[ "@Test\n public void bindingSigTest() {\n // TODO: test bindingSig\n }", "Binding newDummyBinding(Variable var);", "public void testOverrideBindingName() throws Throwable {\n\t\tthis.doTest(\"OVERRIDDEN\");\n\t}", "@Test\n public void testCreateBindings() {\n System.out.println(\"create...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method initializes jJPanelNewHeight
private JPanel getJPanelNewHeight() { if (jPanelNewHeight == null) { jPanelNewHeight = new JPanel(); jPanelNewHeight.setLayout(new BorderLayout()); jLabelNewHeight = new JLabel("Height: "); //jLabelNewHeight.setHorizontalAlignment(SwingConstants.RIGHT); //jLabelNewHeight.setPreferredSize(new Dime...
[ "private JPanel getJPanelOldHeight() {\r\n\t\tif (jPanelOldHeight == null) {\r\n\t\t\tjPanelOldHeight = new JPanel();\r\n\t\t\tjPanelOldHeight.setLayout(new BorderLayout());\r\n\t\t\t// jPanelOldHeight.setPreferredSize(new Dimension(250,18));\r\n\t\t\tjLabelOldHeight = new JLabel(\"Height: \");\r\n\t\t\t//jLabelOld...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds region to set in sorted position according to implementation. Requires but does NOT check that region is not already in the set.
void add(U region);
[ "void addRegion(Region region);", "private void accreteRegion(Place cell, HashSet<Place> region) {\n assert isCell(cell);\n if (region.contains(cell)) {\n return;\n }\n region.add(cell);\n for (int i = 0; i < 4; i += 1) {\n int dx = (i % 2) * (2 * (i / 2) -...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Property__Group__5__Impl" $ANTLR start "rule__Property__Group__6" InternalXModel.g:1614:1: rule__Property__Group__6 : rule__Property__Group__6__Impl rule__Property__Group__7 ;
public final void rule__Property__Group__6() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalXModel.g:1618:1: ( rule__Property__Group__6__Impl rule__Property__Group__7 ) // InternalXModel.g:1619:2: rule__Property__Group__6__Impl rule__...
[ "public final void rule__Property__Group__6__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalXModel.g:1630:1: ( ( ( rule__Property__Group_6__0 )? ) )\n // InternalXModel.g:1631:1: ( ( rule__Property__Group_6__0 )? )\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return true if o is contained as a Value in this Map.
public boolean containsValue(Object o) { return keys.contains(o); }
[ "public boolean containsValue(Object value) {\n return map.containsValue(value);\n }", "public boolean containsValue(Object value) {\n\n return dataMap.containsValue(value);\n }", "public boolean equals(Object o)\n {\n return o instanceof ScalarMap && compareTo(o) == 0;\n }", "@Override\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add an artifact to the list of dependencies
public synchronized void addDependency(Artifact artifact){ if(dependencies == null){ dependencies = new ArrayList<>(); } dependencies.add(artifact); }
[ "public void addDependency(Artifact artifact) {\n dependencies.add(artifact);\n }", "public void addArtifact(ArtifactModel artifact);", "public void addDiscoveredArtifacts(Collection<IArtifact> artifactsToAdd);", "void addDependencies(List<Dependency> dependencies);", "Collection<Artifact> resolve...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets ith "relatedTime" element
public void setRelatedTimeArray(int i, net.opengis.gml.x32.RelatedTimeType relatedTime) { synchronized (monitor()) { check_orphaned(); net.opengis.gml.x32.RelatedTimeType target = null; target = (net.opengis.gml.x32.RelatedTimeType)get_store().find_element_user(RE...
[ "public void setRelatedTimeArray(net.opengis.gml.x32.RelatedTimeType[] relatedTimeArray)\n {\n check_orphaned();\n arraySetterHelper(relatedTimeArray, RELATEDTIME$0);\n }", "public void setRelativeTime(org.apache.xmlbeans.XmlObject relativeTime)\n {\n synchronized (monitor())\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the disableWwwAuthenticate property: The disableWWWAuthenticate property.
public Boolean disableWwwAuthenticate() { return this.disableWwwAuthenticate; }
[ "public AzureActiveDirectoryLogin withDisableWwwAuthenticate(Boolean disableWwwAuthenticate) {\n this.disableWwwAuthenticate = disableWwwAuthenticate;\n return this;\n }", "public Boolean disablePasswordAuthentication() {\n return this.disablePasswordAuthentication;\n }", "public Bool...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the ConstantPoolGen instance needed for constraint checking prior to execution.
public void setConstantPoolGen(ConstantPoolGen cpg){ this.cpg = cpg; }
[ "static Pool newConstantPool() {\n return new ConstantPool();\n }", "public ConstantPool() {\n super(ActionType.CONSTANT_POOL);\n }", "private static void populateConstantPool() {\r\n for (int i = 0; i < DEFAULT_CONS.length; i++) {\r\n consPool.put(DEFAULT_CONS[i], DEFAULT_CONS_V...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Output only. The description for this version of dataset. It is provided when importing data to the dataset. string version_description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
@java.lang.Override public com.google.protobuf.ByteString getVersionDescriptionBytes() { java.lang.Object ref = versionDescription_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); versionDescr...
[ "public java.lang.String getVersionDescription() {\n java.lang.Object ref = versionDescription_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n versionDescription_ = s;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the IncidentInfoPanel with the given incident data.
public void setInfo(int id) { this.id = id; pnlInfo.setIncidentId(this.id); }
[ "void setIncidentId(java.lang.String incidentId);", "public void setIncidentId(java.lang.String incidentId)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check automatic addition of index for keyFieldName column
@Test public void testAutoKeyFieldIndex() throws Exception { IgniteEx client = grid(NODE_CLIENT); IgniteCache<Integer, Person> cache = client.cache(CACHE_PERSON); QueryCursor<List<?>> cursor = cache.query(new SqlFieldsQuery("explain select * from Person where id = 1")); List<List<?>...
[ "public boolean isKeyColumnIndexed( @VelocityCheck int companyId, String keyColumn);", "boolean getIsIndexOnKeys();", "@Test\n public void testIndexDefinitionWithRepeatedColumns() throws Exception {\n Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);\n Connection conn = DriverManager...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .SSIT.proto.EvacuateInfo evacuateInfo = 1;
SSIT.proto.Unetmgr.EvacuateInfoOrBuilder getEvacuateInfoOrBuilder( int index);
[ "SSIT.proto.Unetmgr.EvacuateInfo getEvacuateInfo(int index);", "java.util.List<? extends SSIT.proto.Unetmgr.EvacuateInfoOrBuilder> \n getEvacuateInfoOrBuilderList();", "public SSIT.proto.Unetmgr.EvacuateInfoOrBuilder getEvacuateInfoOrBuilder(\n int index) {\n return evacuateInfo_.get(index);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns AlertDialog used for editing items
public AlertDialog openEditor(final int position) { // item at position String item = itemsAdapter.getItem(position).getText(); // build the AlertDialog AlertDialog.Builder editBuilder = new AlertDialog.Builder(this); editBuilder.setTitle("Grocery Item"); editBuilder.setM...
[ "private void itemOptionsDialog(Item item){\n final ArrayList<String> options = new ArrayList<>();\n ArrayAdapter adapter = new ArrayAdapter<>(this,\n android.R.layout.simple_list_item_1, options);\n AlertDialog.Builder builder = new AlertDialog.Builder(ListDetailActivity.this);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Height for One Board vertical scroll
private int getRowHeightForOneBoardVerticalScroll(int ColumnSize,int rowSize) { int height; int screen_height = getWindowSize(CurrentGame.mContext.getWindowManager().getDefaultDisplay()).y - ConvertToPx(CurrentGame.mContext, 95 + 60); int numberOfRows = ColumnSize+2; ...
[ "public int getBoardSizeY();", "public int getHeight() {\n return board.length;\n }", "long getCurrentHeight();", "public int getHeight() {\n return board.length;\n }", "public int getCurrentHeight();", "public int getBoardHeight() {\n return boardHeight;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given a word bag vector, tfidfweight it according to the current matrix and return.
public SparseVector tfidf(SparseVector documentVector){ if(documentFrequenciesNeedRecalculating || documentFrequencies==null || wordlist.size()!=documentFrequencies.length){ //Recalculate the document frequencies documentFrequencies = initializeNewArray(wordlist.size()); for(int i=0;i<matrix.size();i++){...
[ "public Vector mapDocument(BOW bow, boolean b) {\n //logger.info(\"lsm.mapDocument \" + b);\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the prefix of the QName.
public String getPrefix() { return qName.getPrefix(); }
[ "public String getPrefix(String namespaceURI);", "String getPrefix();", "public String getPrefix() {\n return (String) getAttributeInternal(PREFIX);\n }", "public String getFeedNamespacePrefix(String namespace);", "public String getPrefix(String namespaceURI) {\n for(Map.Entry<String, Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column course_main.course_price
public void setCoursePrice(BigDecimal coursePrice) { this.coursePrice = coursePrice; }
[ "public void setPrice(double price);", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price);", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\n this.price = price...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Animation scalAnimation = new ScaleAnimation(0.5f,2.0f,Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f); scalAnimation.setDuration(3000); scalAnimation.setFillEnabled(true); scalAnimation.setFillAfter(true); scalAnimation.setFillBefore(false); scalAnimation.setRepeatCount(2); mBtnScal.startAnimation(s...
private void toScale() { Animation scalAnimation = AnimationUtils.loadAnimation(this,R.anim.scale); mBtnScal.startAnimation(scalAnimation); }
[ "private void startScaleAnim() {\n\t\tScaleAnimation animation = new ScaleAnimation(1.0f, 1.0f, 1.0f, 1.0f, Animation.RELATIVE_TO_SELF, 0.5f,\n\t\t\t\tAnimation.RELATIVE_TO_SELF, 0.5f);\n\t\tanimation.setDuration(animTime);\n\t\tanimation.setFillEnabled(true);\n\t\tanimation.setFillAfter(true);\n\t\tiv_welcome.star...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Show or hide the configuration panel.
public void toggleConfigurationPanel () { toggleVisibility (m_configurationPanel); }
[ "public void showConfig() {\n \t\tfinal PreferencesPanel preferencesPanel = new PreferencesPanel(this, \"Window Status Plugin - Config\");\n \t\tpreferencesPanel.addCategory(\"Channel\", \"Configuration for Window Status plugin when showing a channel window.\");\n \t\tpreferencesPanel.addCategory(\"Client\", \"Conf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the calculation method of the current project. There must be a current project.
public void setCalculationMethod(CalculationEnum calcMethod);
[ "public void setCalcMethod(int methodID)\n {\n calcMethod = methodID;\n }", "protected abstract String getCalculationMethod();", "public CalculationEnum getCalcMethod() {\n\t\treturn _calcMethodEnum;\n\t}", "public void setEvaluationMethodType(final EvaluationMethodType newValue) {\n che...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove our security advisor.
protected void popAdvisor() { securityService().popAdvisor(); }
[ "public void removeAgent() {agent = null;}", "protected void removeSipProvider() {\n\t\tthis.sipProviderImpl = null;\n\t}", "public void removeDirector(String name){\n\t\tdirectorCreds.remove(name);\n\t\tprocessEvent(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, \"Remove Director\"));\n\t}", "void unset...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
assign the imgView and txtDescView
@Override public void onViewCreated(View view,Bundle savedInstanceState) { imgView = (ImageView) view.findViewById(R.id.imgView); txtDescView = (TextView) view.findViewById(R.id.txtDescView); super.onViewCreated(view, savedInstanceState); }
[ "private void updateViews() {\n titleTextView.setText(currentVolume.getTitle());\n descTextView.setText(Html.fromHtml(currentVolume.getDesc(), Html.FROM_HTML_MODE_COMPACT));\n authorsTextView.setText(currentVolume.getAuthors());\n\n retrieveImage();\n }", "private void setViews() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the current height of the corresponding cool item.
public int getCurrentHeight() { return currentHeight; }
[ "public static double getItemHeight() {\r\n return coinHeight;\r\n }", "public int getHeight()\n {\n return basketHeight;\n }", "long getCurrentHeight();", "public double getHeight(Block bl,MainWindow M){\r\n\t\tPoint3D pT = (Map.gpsToPix(bl.getpoint_BlockTopRight().y(),bl.getpoint_Bloc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the file extension from path, guaranteed not to return null
public static String getSafeFileExtension(IPath path) { String fileExtension = ""; //$NON-NLS-1$ if (path != null) { String temp = path.getFileExtension(); if (temp != null) fileExtension = temp; } return fileExtension; }
[ "private static Optional<String> getExtensionFromPath(String path) {\n if (path.contains(\".\")) {\n String ext = path.substring(path.lastIndexOf('.'));\n if (ext.length() > 2) {\n return Optional.of(ext);\n }\n }\n\n return Optional.empty();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Safely handle a resource manager reload. Only runs if the mod loading state is valid
void onReloadSafe(ResourceManager resourceManager);
[ "void reload() throws ResourceLoadFailedException;", "private boolean isReloadRequired() {\n return mBinaryDictionary == null || mNeedsToRecreate;\n }", "private void manageLoaders() {\n\n // note: null is used in place of a Bundle object since all additional\n // parameters for Loader a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Displays all nonphysical objects.
private void displayNonPhysical(Objekt obj, GL2 gl, GLU glu) { // Get the non-physicals view View view = viewMap.get(obj.getId()); if (view != null) { // Get the associated shape Shape2D shape = view.getShape(); if (shape != null) { // Get the display info Displ...
[ "public static void displayAllObjects()\n {\n\t int subBlockID;\n\t JCSubBlock currentSubBlock;\n\t\t\n \tSystem.out.println(\"The number of sub-blocks is \" + _subblocks.size());\n \tSystem.out.println(\"---------------------------------------------------------------------...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ This function creates the graph adjacency list and also returns the set of roots in the ontology. It is designed specific to the NCBO's resource_index_test database.
public HashSet<Long> getOntologyGraphSpecObs(long id, long len, HashMap<Long,HashSet<Long>> adjacencyList) { try { HashSet<Long> roots = new HashSet<Long> (); String query = "select concept_id AS child , parent_concept_id AS parent FROM obs_relation WHERE concept_id >= " + id + " AND concept_id < " + (id + l...
[ "Set<Integer> getAdyacentNodes(int index);", "OntologyGraph<T> build(T root, Collection<? extends OntologyGraphEdge<T>> edges);", "private List<Vertex> prepareGraphAdjacencyList() {\n\n\t\tList<Vertex> graph = new ArrayList<Vertex>();\n\t\tVertex vertexA = new Vertex(\"A\");\n\t\tVertex vertexB = new Vertex(\"B...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get PP Fact Line
public int getJP_PP_FactLine_ID();
[ "public String getJP_PP_FactLine_UU();", "public int getJP_PP_FactLine_ID () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNNAME_JP_PP_FactLine_ID);\n\t\tif (ii == null)\n\t\t\t return 0;\n\t\treturn ii.intValue();\n\t}", "public int getJP_PP_FactLineMA_ID () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Insert into REZERWACJAPRZEJAZDU values(reservationDrive)
public void save(ReservationDrive reservationDrive){ reservationDriveRepository.save(reservationDrive); }
[ "Reservierung insert(Reservierung reservierung) throws ReservierungException;", "public void insertReservation(Reservation reservation) {\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(DBHelper.RESERVATION_ID, reservation.getIdReservation());\n\t\tvalues.put(DBHelper.RESERVATION_SESSION_ID, rese...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/if (exp.contains("cosh")&& !exp.contains("cos")) exp = exp.replace("cosh", "Math.cosh"); if (exp.contains("sinh")) exp = exp.replace("sinh", "Math.sinh"); if (exp.contains("tangh")) exp = exp.replace("tangh", "Math.tanh");
public String remplacer(String exp) { if (exp.contains("cos")) exp = exp.replace("cos", "Math.cos"); if (exp.contains("sin")) exp = exp.replace("sin", "Math.sin"); if (exp.contains("tan")) exp = exp.replace("tan", "Math.tan"); if (exp.contains("√")) exp = exp.replace("√", "Math.s...
[ "public static String changeFunctionsIntoSigns(String aFormula) {\r\n\r\n aFormula = aFormula.replace(\"sin(\", \"%(\");\r\n aFormula = aFormula.replace(\"cos(\", \"~(\");\r\n aFormula = aFormula.replace(\"tan(\", \"#(\");\r\n aFormula = aFormula.replace(\"sqrt(\", \"&(\");\r\n\r\n return aFormula;\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private Tableau tableau; Unless it is interrupted, this expands all class member predicate formulas. This relies on these formulas being added to the end. Returns true if there was something to do.
public static boolean expandClassMemberPredicates(Tableau tableau) { Collection classMemberPredicates = tableau.getClassMemberPredicates(); boolean retVal = false; while (!classMemberPredicates.isEmpty() && !Thread.currentThread().isInterrupted()) { Iterator it = ((Collect...
[ "public static boolean prove(Tableau tableau) {\n // Alphas\n boolean retVal = Prover.expandAllAlphas(tableau);\n // Deltas\n retVal = Prover.expandAllDeltas(tableau) || retVal;\n // Comprehension Schema\n retVal = Prover.expandClassMemberPredicates(tableau) || retVal;\n // Beta or Gamma\n i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates a collectible based on the score that was earned in the event. The higher the score, the more chance on a more rare collectible.
public final Collectible generateCollectible(final int eventScore) { Collectible mostValuable = null; for (int i = 0; i < eventScore; i++) { Collectible c = generateOneCollectible(); if (mostValuable == null) { mostValuable = c; } mostValu...
[ "protected Collectible generateOneCollectible() {\n String[] collectibleList = cCollectibleFactory.getCollectiblesList();\n int nr = cRNG.nextInt(collectibleList.length);\n float hue = (float) rewardFunction(cRNG.nextFloat());\n return cCollectibleFactory.generateCollectible(collectibleL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Append a new value v. Returns the modified Stuff, to simplify chaining.
public Stuff push(Object v) { items.addElement(v); return this; }
[ "public HPTNode<K, V> append(V value) {\n if (values == null) {\n values = new ArrayList<>(2);\n }\n values.add(value);\n return this;\n }", "public Value join(Value v) {\n return join(v, false);\n }", "public Stuff unshift(Object v) {\n items.insertElementAt(v, 0);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Merge sorts an ArrayList of SGCourseInfo Objects based on number fields.
static public void mergeSortSGCourseInfoArrayList(ArrayList<SGCourseInfo> courses, int startIndex, int endIndex) { if(courses != null && startIndex >= 0 && endIndex <= courses.size()) { int length = endIndex - startIndex; if(length > 2) { int midIndex = length / 2 + startIndex; mergeSortSGCourseInfoArra...
[ "public void sortByNumberOfStudents() {\n\t\tCollections.sort(courseList);\r\n\t}", "void sortNumber()\r\n\t{\r\n\t\tCollections.sort(this, this.ContactNumber);\r\n\t}", "public void mergesort() {\n //check\n if ( first.item == null || !(first.item instanceof Comparable) ) {\n //err\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the 'field554' field has been set
public boolean hasField554() { return fieldSetFlags()[554]; }
[ "public boolean hasField553() {\n return fieldSetFlags()[553];\n }", "public boolean hasField543() {\n return fieldSetFlags()[543];\n }", "public boolean hasField544() {\n return fieldSetFlags()[544];\n }", "public boolean hasField557() {\n return fieldSetFlags()[557];\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads all binary data for the given samplerecord and upload Ids and dumps it to XML files, located in tempDir
private void writeBinaryObjects(List<Integer> recordIDs, List<Integer> uploadIDs, String aTempDir, BASE64Encoder encoder) throws IOException { int counter = 0; int skip = 0; List<Integer> allIDs = new ArrayList<Integer>(); allIDs.addAll(recordIDs); allIDs.addAll(uploadIDs); ...
[ "private void writeBinaryObjects(List<Integer> objectIds, String aTempDir)\n throws IOException, StorageException {\n int counter = 0;\n int skip = 0;\n log.info(\"writing XMLs for bytestreams of digital objects. count = \" + objectIds.size());\n for (Integer id : objectIds) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the helper provided by the implementation.
private Helper getHelper() { return this.helper; }
[ "public synchronized H getHelper() {\n\t\tif (helper == null) {\n\t\t\thelper = getHelperInternal(this);\n\t\t}\n\t\treturn helper;\n\t}", "public DefaultHelper getDefaultHelper();", "public IRadixMathHelper<T> GetHelper() {\n return this.ext.GetHelper();\n }", "protected UrlPathHelper getUrlPathHelpe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Condition statement with the water mark value using the operator. Example (last_updated_ts >= 20130101 00:00:00
public String getWatermarkCondition(QueryBasedExtractor extractor, long watermarkValue, String operator);
[ "cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();", "cn.infinivision.dataforce.busybee.pb.meta.ExprOrBuilder getConditionOrBuilder();", "public static AtomValueCondition gte(Object x) { return value(x, ComparisonOperator.GTE); }", "public Condition gte(final SQLFunction<?> v) {\n \t\treturn new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
constructor prompt user to enter students name and year
public Student() { Scanner in=new Scanner(System.in); System.out.print("Enter Student first name: "); this.firstName=in.nextLine(); System.out.print("Enter Student last name: "); this.lastName=in.nextLine(); System.out.print("1.Infant\n2.child\n3.junior\n4.senior\nEnter student class level: "); thi...
[ "public Student() {\n Scanner input = new Scanner(System.in);\n\n System.out.print(\"Enter student first name: \");\n this.firstName = input.nextLine();\n\n System.out.print(\"Enter student last name: \");\n this.lastName = input.nextLine();\n\n System.out.print(\"1) Freshm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ is128BitVector Return true if this is a 128bit vector type.
public boolean is128BitVector() { if (!isSimple()) return isExtended128BitVector(); SimpleValueType svt = V.getSimpleType(); return (svt == SimpleValueType.v16i8 || svt == SimpleValueType.v8i16 || svt == SimpleValueType.v4i32 || svt == SimpleValueType.v2i64 || svt == SimpleValueType.v4f32 || svt == Simpl...
[ "public boolean hasVar128() {\n return fieldSetFlags()[129];\n }", "private boolean is512BitVector() {\n\t\tSimpleValueType svt = V.getSimpleType();\n\t\treturn isSimple() ? svt == SimpleValueType.v8i64 : isExtended512BitVector();\n\n\t}", "private boolean is256BitVector() {\n\t\tif (!isSimple())\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is to initialize objects to be used
private void initObjects() { databaseHelper = new DatabaseHelper(activity); inputValidation = new InputValidation(activity); }
[ "protected void init() {}", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "public void init() {\r\n\t\tlog.info(\"init()\");\r\n\t\tobjIncidencia = new IncidenciaSie();\r\n\t\tobjObsIncidencia = new ObservacionIncidenciaSie();\r\n\t\tobjCliente = new ClienteSie();\r\n\t\tobjTelefo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XForLoopExpression__Group__6" $ANTLR start "rule__XForLoopExpression__Group__6__Impl" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10738:1: rule__XForLoopExpression__Group__6__Impl : ( ')' ) ;
public final void rule__XForLoopExpression__Group__6__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10742:1: ( ( ')' ) ) /...
[ "public final void rule__XForLoopExpression__Group__6__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:11639:1: ( ( ')'...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new game server deployment in a given project and location.
public void createGameServerDeployment( com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) { asyncUnimplementedUnaryCall(getCreateGameServerDeploymentMethodHelper(), responseObserver); }
[ "public com.google.longrunning.Operation createGameServerDeployment(\n com.google.cloud.gaming.v1alpha.CreateGameServerDeploymentRequest request) {\n return blockingUnaryCall(\n getChannel(), getCreateGameServerDeploymentMethodHelper(), getCallOptions(), request);\n }", "public void create...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of Utilities
public Utilities() { }
[ "public Utilities()\n {\n\n }", "public static Utilities getInstance() {\n\t\tif (instance == null)\n\t\t\tinstance = new Utilities();\n\t\treturn instance;\n\t}", "private Utilities()\n {\n }", "private Utils() {}", "private AWTUtilities() {\n }", "private RunUtils() {\n }", "public U...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }