query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_HR_STP.STPID | public String getStpid() {
return stpid;
} | [
"public void setStpid(String stpid) {\r\n this.stpid = stpid;\r\n }",
"public String getStid() {\n return stid;\n }",
"public java.lang.Long getSTADID() {\n return STAD_ID;\n }",
"public java.lang.Long getSTADID() {\n return STAD_ID;\n }",
"public String getPT_IND()\r\n {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the node at the end of the list and returns the value held there. | protected T removeEnd() {
if (!this.isEmpty()) {
SNode<T> iterator = this.getHead();
while (iterator.getPrev().getPrev() != tail) {
iterator = iterator.getPrev();
}
SNode<T> endNode = iterator.getPrev();
iterator.setPrev(tail);
size--;
return endNode.getValue();
}
// The list i... | [
"public Object removeLast()\n {\n Object nodeValue = null;\n DSAListNode currNd, prevNd;\n if(isEmpty())\n {\n throw new IllegalArgumentException(\"Nothing to remove.List is empty\");\n }\n else\n {\n nodeValue = tail.getValue();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a ModuleImplAdvertisement suitable for the Network Peer Group. The ModuleImplAdvertisement returned differs from the one returned by StdPeerGroup in that it has a different specID, name and description, as well as the highlevel message transports . This definition is always the same and has a well known ModuleS... | @Override
public ModuleImplAdvertisement getAllPurposePeerGroupImplAdvertisement() {
JxtaLoader loader = getLoader();
// For now, use the well know NPG naming, it is not identical to the
// allPurpose PG because we use the class ShadowPeerGroup which
// initializes the peer config... | [
"public static ModuleImplAdvertisement getDefaultModuleImplAdvertisement() {\n ModuleImplAdvertisement implAdv = \n CompatibilityUtils.createModuleImplAdvertisement(\n PeerGroup.refPlatformSpecID, Platform.class.getName(),\n \"Standard World PeerGroup Reference Im... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR start "stream_clause" /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:618:1: stream_clause : ^( STREAM rel ( EXECCOMMAND | IDENTIFIER ) ( as_clause )? ) ; | public final AstValidator.stream_clause_return stream_clause() throws RecognitionException {
AstValidator.stream_clause_return retval = new AstValidator.stream_clause_return();
retval.start = input.LT(1);
CommonTree root_0 = null;
CommonTree _first_0 = null;
CommonTree _last =... | [
"public final QueryParser.stream_clause_return stream_clause() throws RecognitionException {\n QueryParser.stream_clause_return retval = new QueryParser.stream_clause_return();\n retval.start = input.LT(1);\n\n\n Object root_0 = null;\n\n Token STREAM502=null;\n Token THROUGH504=n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test simple invalid input with line break. | @Test
public void testInputValidatorSimpleWithLineBreak() {
String userInput =
"\"bvv:gmd_ex\" WHERE \nbvv:objid='DEBYBDLMjK0001Ia'";
boolean result = controller.validateEcqlUserInput(userInput, false);
assertThat(result, is(false));
} | [
"@Test\r\n\tpublic void newline2() throws LexicalException {\r\n\t\tString input = \"\"\"\r\n \\n \"Example\r\n String\" \r\n \"\"\";\t\r\n\t\tSystem.out.println(\"\\n\\n\\n***** newline2 *****\");\r\n\t\tSystem.out.println(\"Input chars\");\r\n\t\tshowChars(stringChars(input... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__BoolOperation__Group_8__0" $ANTLR start "rule__BoolOperation__Group_8__0__Impl" InternalBSQL2Java.g:1823:1: rule__BoolOperation__Group_8__0__Impl : ( ( rule__BoolOperation__ParamsAssignment_8_0 ) ) ; | public final void rule__BoolOperation__Group_8__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalBSQL2Java.g:1827:1: ( ( ( rule__BoolOperation__ParamsAssignment_8_0 ) ) )
// InternalBSQL2Java.g:1828:1: ( ( rule__BoolOperation_... | [
"public final void rule__BoolOperation__Group_8_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1907:1: ( ( ( rule__BoolOperation__ParamsAssignment_8_1_1 ) ) )\n // InternalBSQL2Java.g:1908:1: ( ( ru... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetch all the registered IP addresses assigned to a client | @RequestMapping(value = "/ipAddress/matchClient/{clientCNP}/", method = RequestMethod.GET, produces = {MediaType.APPLICATION_JSON_VALUE})
public ResponseEntity<List<SerializedIPAddress>> listAllIPsForClient(@PathVariable("clientCNP") String clientCNP){
/* First check if the CNP in question matches any registered c... | [
"Collection<InetSocketAddress> getClientAddresses();",
"public Map<String,String> getAllIPs() {\n\t\tMap<String, String> ipAddresses = new HashMap<>();\n\t\tString sql = \"SELECT * FROM ip_addresses\";\n\t\tConnection conn = openConnection();\n\t\t\n\t\ttry {\n\t\t\tPreparedStatement pstmt = conn.prepareStatement... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sends start point and end point Coordinates, and duration instructions to Swipe instance to perform a horizontal swipe along the device's screen. The horizontal swipe is perform within the middle of the screen. | public void swipeHorizontal (double startPercentage, double finalPercentage, int duration) {
swipe.swipeHorizontal(startPercentage, finalPercentage, duration);
} | [
"@Override\n public boolean swipe(int startX, int startY, int endX, int endY, int steps) {\n return UiDevice.getInstance().swipe(startX,startY, endX, endY, steps);\n }",
"public void swipeThroughElementHorizontal (double startPercentage, double endPercentage, int duration, MobileElement element) {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The entity trafficContraband_ is defined as null before being initialized. | protected abstract void _trafficContraband_(Wrap<TrafficContraband> c); | [
"public void setNullIdEntity()\n\t{\n\t\tthis.myIdEntity=0L;\n\t\tthis.flagsNul|=0x40;\n\t\tthis.flagsMod|=0x40;\n\t}",
"public M csrtCanInvoiceNull(){if(this.get(\"csrtCanInvoiceNot\")==null)this.put(\"csrtCanInvoiceNot\", \"\");this.put(\"csrtCanInvoice\", null);return this;}",
"@Test(expected = IllegalArgume... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A private helper method that is called when the Scanner constructor is used. Creates a Huffman tree. Takes in a HuffmanNodenode, a string and a character. | private void ScannerHuffmanCodeCreator(HuffmanNode node, String s, char c) {
if (s.length() == 1) {
if (s.charAt(0) == '0') {
node.left = new HuffmanNode(c);
} else {
node.right = new HuffmanNode(c);
}
} else {
if (s.charAt(... | [
"private HuffmanNode HuffmanTree(Scanner input, HuffmanNode node, int letter, String code) {\r\n if (code.length() == 0) {\r\n node.letter = letter;\r\n if (input.hasNextLine()) {\r\n int newLetter = Integer.parseInt(input.nextLine());\r\n String newCode = input.nextLine()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Connects a given clause (initializes its watchers). | protected abstract void connectClause(final CLClause c); | [
"public void addClause(Clause c)\r\n {\r\n clauses.add(c);\r\n }",
"protected void addWatch(int lit, int blit, boolean binary, final CLClause clause) {\n watches(lit).push(new CLWatch(blit, binary, clause));\n }",
"public ClausePanel addClause (QRuleComparison q) {\n ClausePanel c = new Clau... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for property pci. | public void setPci(int pci) {
this.pci = pci;
} | [
"public void setPci(String pci) {\n\t\tthis.pci = pci;\n\t}",
"public String getPci() {\n\t\treturn pci;\n\t}",
"public int getPci() {\n\t\treturn pci;\n\t}",
"public ChassisPci() {\n super();\n }",
"public void setPC(int address);",
"public void setPnicDevice(java.lang.String pnicDevice) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Called by MultipleSubversionRepositoryManagerImplloadManagersFromJiraProperties | public void testInstantiateMultipleSubversionRepositoryManagerWithNoIndexingRepositoryFromJiraProperties()
{
mockJiraPropertySetFactory
.expects(once())
.method("buildCachingDefaultPropertySet")
.with(eq(MultipleSubversionRepositoryManagerImpl.APP_PROPERTY_PRE... | [
"public void testInstantiateMultipleSubversionRepositoryManagerWithIndexingRepositoriesFromProperties()\n {\n System.setProperty(MultipleSubversionRepositoryManager.SVN_ROOT_KEY + \".1\", \"file://foo/bar\");\n System.setProperty(MultipleSubversionRepositoryManager.SVN_REPOSITORY_NAME + \".1\", \"F... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column t_program_audit_record.audit_note | public String getAuditNote() {
return auditNote;
} | [
"@Override\n public java.lang.String getNote() {\n return _auditReport.getNote();\n }",
"public void setAuditNote(String auditNote) {\n this.auditNote = auditNote == null ? null : auditNote.trim();\n }",
"public String getNote() {\n return (String)getAttributeInternal(NOTE);\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Recibe el objeto Lote creado desde la Logica y se encarga de persistir | public void altaLote(Lote lote) {
//Utilizamos el TRY por si hay algun problema
try {
//Insertamos dentro de la BD
jpaLote.create(lote);
} catch (Exception ex) {
java.util.logging.Logger.getLogger(LoteControladoraPersistencia.class.getName()).log(java.util.log... | [
"public void actualizarLote(Lote lote) {\n //Utilizamos el TRY por si hay algun problema\n try {\n //Insertamos dentro de la BD el UPDATE\n jpaLote.edit(lote);\n } catch (Exception ex) {\n java.util.logging.Logger.getLogger(LoteControladoraPersistencia.class.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use JobMetadata.newBuilder() to construct. | private JobMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder() {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder();\n }",
"private Job(com.google.protobuf.GeneratedMessage.ExtendableBuilder<cb.Careerbuilder.Job, ?> builder) {\n super(builder);\n this.unknownFields = builder.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for the dark color of the text in iMat. | public static Color getTextColorDark() {
return TEXTCOLOR_DARK;
} | [
"public String getTextHaloColor() {\n return textHaloColor;\n }",
"public String getmDarkness() {\n return mDarkness;\n }",
"public Color darker()\n {\n return color.darker();\n }",
"public static Color getTextColorLight() {\n return TEXTCOLOR_LIGHT;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prune off the path. Properties will be removed and gone forever. | public void prune(String path) throws ThingsException {
if (path==null) throw new ThingsException("branchPath cannot be null", ThingsException.DATA_ERROR_PROPERTY_PATH_NULL, ThingsNamespace.ATTR_PROPERTY_NAME);
if (path.length() <1 ) throw new ThingsException("branchPath cannot be empty", ThingsException.DATA_ER... | [
"public void popProperty() {\n\t\tif ( propertyPath.size() > 0 ) {\n\t\t\tpropertyPath.remove( propertyPath.size() - 1 );\n\t\t}\n\t}",
"PropertiesTask removeAllProperties();",
"public void removeAllProperties() {\n properties = null;\n }",
"private void removeAllPropertyFiles()\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to set recCycleStatus | public void setRecCycleStatus(RecCycleStatus recCycleStatus) {
this.recCycleStatus = recCycleStatus;
} | [
"public RecCycleStatus getRecCycleStatus() {\n return recCycleStatus;\n }",
"public void setCycle(int cycle) {\n mCycle = cycle;\n }",
"public void setRecStatus(String recStatus) {\r\n this.recStatus = recStatus == null ? null : recStatus.trim();\r\n }",
"public void setCycle(int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the list of remote Windows hosts. | public void setHosts(List<String> hosts) {
setProperty(HOSTS, hosts);
} | [
"public void setHosts(List<String> hosts) {\n this.hosts = hosts;\n }",
"public void setHosts(final List<String> hosts) {\n\t\tthis.hosts = hosts;\n\t}",
"public void setRemoteHostNames(java.lang.String[] remoteHostNames) {\r\n this.remoteHostNames = remoteHostNames;\r\n }",
"@Option(name... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column CTSTELLER.ALLOW_CHANGE_PENALTY | public void setALLOW_CHANGE_PENALTY(String ALLOW_CHANGE_PENALTY) {
this.ALLOW_CHANGE_PENALTY = ALLOW_CHANGE_PENALTY == null ? null : ALLOW_CHANGE_PENALTY.trim();
} | [
"public String getALLOW_CHANGE_PENALTY() {\r\n return ALLOW_CHANGE_PENALTY;\r\n }",
"public void setPriceLimitOld (BigDecimal PriceLimitOld);",
"public void setPRICE_OLD(BigDecimal PRICE_OLD) {\r\n this.PRICE_OLD = PRICE_OLD;\r\n }",
"@JSProperty(\"changeDecimals\")\n void setChangeDecima... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return true if input string contains :q, false otherwise | private boolean isSaveAndQuit(String input) {
return input.toLowerCase().contains(":q");
} | [
"public static void qThere (String s) { \n boolean foundQ = false; \n \n for (int i=0; i<s.length(); ++i) { //iterate through every char\n if (s.charAt(i) == 'q')\n foundQ = true;\n if (s.charAt (i) == 'Q')\n foundQ = true;\n }\n \n if (foundQ){\n System.out.println (\"It... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set Is Use Product Tax Category. | public void setIsUseProductTaxCategory (boolean IsUseProductTaxCategory)
{
throw new IllegalArgumentException ("IsUseProductTaxCategory is virtual column"); } | [
"public boolean isUseProductTaxCategory () \n\t{\n\t\tObject oo = get_Value(COLUMNNAME_IsUseProductTaxCategory);\n\t\tif (oo != null) \n\t\t{\n\t\t\t if (oo instanceof Boolean) \n\t\t\t\t return ((Boolean)oo).booleanValue(); \n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}",
"public void setTaxable... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use UpdateUserInfoRes.newBuilder() to construct. | private UpdateUserInfoRes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private UpdateUserInfoNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Users updateUserInfo(Users user);",
"Integer updateInfo(UserInfo userInfo);",
"String updateUserInfo(String usernameToUpdate, UserInfo userInfo);",
"public User updateCurrentUse... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Repeatedly prompts for a set of commands from the user. It will process these commands and display the results. It also checks for a termination condition. | private void interactive() {
BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));
while (true) {
System.out.print("Enter Command: ");
try {
processCommandSet(tokenizeInput(keyboard.readLine()));
if (quit == true) {
System.out.println("Terminated at users requ... | [
"public void cmdLoop() throws Exception {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\t\n\t\t\tSystem.out.println(\"> \");\n\t\t\tSystem.out.flush();\n\t\t\tString cmdLine = reader.readLine();\n\t\t\tif (cmdLine == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the distinguished name encapsulated in the URL. | public String getDN() {
return url.getDN();
} | [
"public String dnsName() {\n // because getHost returns \"null\" for wildcard endpoints\n return url.getAuthority().replaceAll(\":.*\", \"\");\n }",
"java.lang.String getUserDN();",
"String getPrincipalURL();",
"private String extractHostFromDBUrl(String url) throws Exception {\n\t\tint start... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the object of type "RejectMessage" from the database | @Override
@Transactional
public void deleteRejectMessage(Integer id) throws DaoException {
RejectMessage rejectMessage = em.find(RejectMessage.class, id);
em.remove(rejectMessage);
} | [
"MessageResource deleteMensaje(Integer mensID) throws NoPermissionException;",
"public static void deleteMessage(MessageModel message) throws MessageException, MongoException, SQLException {\n\t\t// Verify the message\n\t\tboolean valid = true;\n\t\tStringBuilder errorMessage = new StringBuilder();\n\t\t\n\t\tif(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialises the exit command | public ExitCommand(){
super(CommandType.COMMAND_EXIT);
} | [
"Exit createExit();",
"public void exit();",
"public _opExit() {identifier = \"exit\";}",
"public Command getExitCommand() {\r\n if (exitCommand == null) {//GEN-END:|17-getter|0|17-preInit\r\n // write pre-init user code here\r\n exitCommand = new Command(\"Tho\\u00E1t\", Command.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the 'Deployment Unit Facet' literal with the specified integer value. | public static DeploymentUnitFacet get(int value) {
switch (value) {
case UNDEFINED: return UNDEFINED_LITERAL;
case PRESENTATION: return PRESENTATION_LITERAL;
case EXECUTION: return EXECUTION_LITERAL;
case DATA: return DATA_LITERAL;
}
return null;
} | [
"public static DeploymentUnitFacet get(String literal) {\r\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n\t\t\tDeploymentUnitFacet result = VALUES_ARRAY[i];\r\n\t\t\tif (result.toString().equals(literal)) {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static Deploym... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the stroke used to draw the lines. | public Stroke getStroke() {
return stroke;
} | [
"public Stroke getStroke()\r\n\t{\r\n\t\treturn _g2.getStroke();\r\n\t}",
"public String getStrokeColor() {\r\n return strokeColor;\r\n }",
"public final Color getStrokeColor() {\n return strokeColor;\n }",
"public int getStrokeColor() {\n return (int) this.getValue(STROKE_COLOR_PRO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to initialise FreeTTS | private void init() {
if (!isInitiated) {
//Voices use by freeTTS, we define where they are, currently in the java en_us.jar
//add the package
addToSystemesPropetites(this.configurator.getLocation());
// The VoiceManager manages all the voices for FreeTTS.
... | [
"private void initSpeech() {\n if (this.mSpeechSynthesizer == null) {\n mSpeechSynthesizer = SpeechSynthesizer.getInstance();\n mSpeechSynthesizer.setContext(this);\n mSpeechSynthesizer.setSpeechSynthesizerListener(new SpeechSynthesizerListener() {\n @Override\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value of interestList | public void setInterestList(String[] interestList) {
this.interestList = interestList;
} | [
"public void setInterestList(int index, String interestList) {\n this.interestList[index] = interestList;\n }",
"public void setIdInterest(int value) {\n this.idInterest = value;\n }",
"public void setValueList(List<Value> newList) {\n this.valueList = newList;\n }",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "specifications" $ANTLR start "refine" /Users/ayeshasadiq/Documents/workspace/permissionspecs/pt/uma/Plural/grammar/Plural.g:160:1: refine : REFINE LSBRACKET LCBRACKET ( states ) ( PUNCTUATION states ) RCBRACKET RSBRACKET ; | public final void refine() throws RecognitionException {
try {
// /Users/ayeshasadiq/Documents/workspace/permission-specs/pt/uma/Plural/grammar/Plural.g:160:7: ( REFINE LSBRACKET LCBRACKET ( states ) ( PUNCTUATION states )* RCBRACKET RSBRACKET )
// /Users/ayeshasadiq/Documents/workspace/... | [
"public final void specifications() throws RecognitionException {\n try {\n // /Users/ayeshasadiq/Documents/workspace/permission-specs/pt/uma/Plural/grammar/Plural.g:157:15: ( perm | cases | classstates | refine )\n int alt11=4;\n switch ( input.LA(1) ) {\n case AT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO template method 1. paint children 2. paint itself 3. If selected paint boundbox | @Override
public final void paint( Graphics2D g ) {
g.setColor( color );
doPaint( g );
if( selected ){
paintBoundBox( g );
paintControlPoints( g );
}
} | [
"private void paintSelectedBorder() {\r\n Graphics g = getContentPane().getGraphics();\r\n Graphics2D g2d = (Graphics2D) g;\r\n if (isPieceSelected()) {\r\n g.setColor(Color.YELLOW);\r\n g2d.setStroke(new BasicStroke(5)); //Sets border thickness.\r\n g2d.drawRec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set Qty to deliver. | public void setQtyToDeliver (BigDecimal QtyToDeliver)
{
set_Value (COLUMNNAME_QtyToDeliver, QtyToDeliver);
} | [
"public void setQtyDelivered(BigDecimal QtyDelivered);",
"public void setPendingQty(int arg)\n\t{\n\t\tsetValue(PENDINGQTY, new Integer(arg));\n\t}",
"private void sendSetPriority() {\n channel.flush().writeAndFlush(\"{\\\"operation\\\":\\\"set_priority\\\", \\\"priority\\\":\"+ priority +\"}\\n\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if it is possible to send messages in this one to one chat right now, else return false. | @Override
public boolean isAllowedToSendMessage() throws RemoteException {
try {
if (!mRcsSettings.getMyCapabilities().isImSessionSupported()) {
if (sLogger.isActivated()) {
sLogger.debug("Cannot send message on one-to-one chat with contact '"
... | [
"public boolean canSendChat() throws IllegalArgumentException{\n\t\treturn true;\n\t}",
"public boolean isChatEnabled();",
"public boolean chatEnabled();",
"public boolean isChatEnabled() {\n\t\treturn _settings.isChatEnabled();\n\t}",
"boolean isChatSupported();",
"boolean hasIsPerMsg();",
"public bool... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get ZIP of bot | public void getZip(String botName) throws ClientProtocolException,
IOException, URISyntaxException {
URI uri = zipUri(botName);
Log("Get ZIP botName=" + botName + " uri=" + uri);
Request.Get(uri).addHeader("Referer", referrer).execute().saveContent(new File(botName + ".zip"));
} | [
"public long getHomezip();",
"private URI zipUri(String botName) throws URISyntaxException {\n List<NameValuePair> params = baseParams();\n params.add(new BasicNameValuePair(\"return\", \"zip\"));\n return new URI(composeUri(\"bot\", botName, null, null)\n + composeParams(param... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build call for v2TrackerTrackerIdItemParentItemIdPost | public com.squareup.okhttp.Call v2TrackerTrackerIdItemParentItemIdPostCall(Integer trackerId, Integer parentItemId, CreateTrackerItem createTrackerItem, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
... | [
"public TrackingItem getParent();",
"public String getItemParentId() {\n\t\treturn this.itemParentId;\n\t}",
"public void setParentIds(String parentIds) {\n this.parentIds = parentIds;\n }",
"public void setParentid(Integer parentid) {\r\n this.parentid = parentid;\r\n }",
"public void x... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the current plane being edited for | public ViewingFrustum.Plane getCurrentPlane() {
return currentPlane;
} | [
"Plane getPlane();",
"public int getPlaneNumber() {\n return planeNumber;\n }",
"public Plane getPlane() {\n\t\treturn new Plane(center,bases[0].cross(bases[1]).normalizeThis());\n\t}",
"public int getPlaneState();",
"public void setCurrentPlane(ViewingFrustum.Plane newPlane) {\n\n currentP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Priority Level Code' containment reference. BBIE Shipment. Priority Level. Code The priority or level of service required for a Shipment expressed as a code 0..1 Shipment Priority Level Code Code. Type Service Level, Service Priority | public PriorityLevelCodeType getPriorityLevelCode() {
return (priorityLevelCode == null) ? new PriorityLevelCodeType()
: priorityLevelCode;
} | [
"ShippingServiceLevel findByCode(final String code) throws EpServiceException;",
"public String getPriority()\n\t{\n\t\treturn plevel;\n\t}",
"public Integer getCodeLevel() {\n return codeLevel;\n }",
"@Override\n\tpublic java.lang.Integer getLevel() {\n\t\treturn _codeDto.getLevel();\n\t}",
"com.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
look up or create an spsrv client | private SPSrvClnt getSPClient(ClusterTestContext cluster)
throws RemoteException {
String server = cluster.spIP;
if (server == null) {
throw new RemoteException("cluster.spIP is null");
}
SPSrvClnt spc = (SPSrvClnt) sps... | [
"Client createNewClient(Client client);",
"public Client create(long clientId);",
"private void createClient(){\n client = new PhoneEntity(namesGen.getName(), namesGen.getLastName(), namesGen.getPatronymic());\n client.setId(id++);\n addAdress();\n addCard();\n addDebitCredit(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets i'th border point | public void setBorder(int i, Point2D.Double b) { scenario.border[i] = b; } | [
"public void setBorder(int border) {\r\n this.border = border;\r\n }",
"public void setBorder(int border) {\n this.border = border;\n this.border_set = true;\n }",
"public void setBorder(Border border);",
"public void DrawInfectedBorder(int i, int j) {\n\tStdDraw.setPenColor(StdDraw.MAGENTA);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GETTER The field types determine the names of fields for this document type. They also determine the types of values a document submitted for this document type can have. | @JsonGetter("fieldTypes")
public List<DocumentFieldType> getFieldTypes ( ) {
return this.fieldTypes;
} | [
"List<FieldType> getFields(DocType document);",
"public String getFIELD_TYPE() {\r\n return FIELD_TYPE;\r\n }",
"com.google.cloud.datacatalog.FieldTypeOrBuilder getTypeOrBuilder();",
"FieldType getType();",
"com.google.cloud.datacatalog.FieldType getType();",
"String getFieldDocs(Class<?> type, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add to the graph an undirected edge from vertex v1 to vertex v2. | public void addUndirectedEdge(int v1, int v2) {
addUndirectedEdge(v1, v2, null);
} | [
"public void addUndirectedEdge(int v1, int v2) {\n addUndirectedEdge(v1, v2, null);\n }",
"public void addEdge(int v1, int v2) {\r\n addEdge(v1, v2, null);\r\n }",
"public void addEdge(int v1, int v2) {\n addEdge(v1, v2, null);\n }",
"public void addUndirectedEdge(int v1, int v2,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getWords adli method kullanacagimiz sozlugu dosyadan okuyup stringe atip String[] tipinde deger donduruyor. | private String[] getWords() throws FileNotFoundException, IOException {
//dosyadan okuma yapiliyor.
String[] sozluk = new String[99999];
FileInputStream fStream = new FileInputStream("words.txt");
DataInputStream dStream = new DataInputStream(fStream);
BufferedReader breader = n... | [
"java.util.List<yandex.cloud.api.ai.stt.v2.SttServiceOuterClass.WordInfo> \n getWordsList();",
"yandex.cloud.api.ai.stt.v2.SttServiceOuterClass.WordInfo getWords(int index);",
"public List<Word> getWords();",
"public Text[] getWords () {\n if (!hasContent ())\n downloadSafely ();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field mortgageType is set (has been assigned a value) and false otherwise | public boolean isSetMortgageType() {
return EncodingUtils.testBit(__isset_bitfield, __MORTGAGETYPE_ISSET_ID);
} | [
"public boolean isSetMortgageTypeText() {\n return this.mortgageTypeText != null;\n }",
"public boolean isSetMortgageValue() {\n return EncodingUtils.testBit(__isset_bitfield, __MORTGAGEVALUE_ISSET_ID);\n }",
"public boolean isSetMortgageGuaranteeType() {\n return EncodingUtils.testBit(__isset_bitfie... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Pointcut expression for requestProject | @Pointcut("execution(public * com.unity3d.project.controller.ProjectController.getProject(..))")
public void requestProjectPointcut() {
} | [
"@Pointcut(\"execution(public * com.unity3d.project.controller.ProjectController.createProject(..))\")\n\tpublic void createProjectPointcut() {\n\t}",
"@Before(\"createProjectPointcut()\")\n\tpublic void loggingBeforeCreateProject(JoinPoint jp) {\n\t\tObject[] projectArgs = jp.getArgs();\n\t\tProject p = (Project... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reinitialize this CurrentRobotState object. This will reset the current state of the robot back to the default state. | protected void reInitialize() {
currentPos.reInitialize();
motorState.reInitialize();
armState = KSGripperStates.ARM_UP;
gripperState = KSGripperStates.GRIP_OPEN;
objPresent = false;
objHeld = false;
resistivity = 0;
} | [
"public CurrentRobotState() {\r\n currentPos = new RobotCoordinates();\r\n motorState = new Motor();\r\n reInitialize();\r\n }",
"public void reset() {\n\t\tm_stateVal = DriveState.kInitialize;\n\t}",
"protected void reset() {\n\t\tveryNearAgent = null;\n\t\tcollisionRadius = radius;\n\t\tcounter = 0;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Iterator__Group_1__1" $ANTLR start "rule__Iterator__Group_1__1__Impl" InternalOCLlite.g:5752:1: rule__Iterator__Group_1__1__Impl : ( ( rule__Iterator__TypeAssignment_1_1 ) ) ; | public final void rule__Iterator__Group_1__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalOCLlite.g:5756:1: ( ( ( rule__Iterator__TypeAssignment_1_1 ) ) )
// InternalOCLlite.g:5757:1: ( ( rule__Iterator__TypeAssignment_1_1 )... | [
"public final void rule__Iterator__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOCLlite.g:5745:1: ( rule__Iterator__Group_1__1__Impl )\n // InternalOCLlite.g:5746:2: rule__Iterator__Group_1__1__Impl\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a List of Computer containing 'name' from offset to offset+limit. | List<Computer> getNamedFromTo(String name, int offset, int limit); | [
"List<Computer> getNamedFromToSortedBy(String name, int offset, int limit, Fields field, boolean ascending);",
"List<Computer> getFromTo(int offset, int limit);",
"List<Computer> getFromToSortedBy(int offset, int limit, Fields field, boolean ascending);",
"public java.util.List<Client> findByName(String name)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the RoleAssignments field. | public void setRoleAssignments(entity.PolicyUserRoleAssignment[] value) {
__getInternalInterface().setFieldValue(ROLEASSIGNMENTS_PROP.get(), value);
} | [
"public void setRoleAssignments(entity.PolicyUserRoleAssignment[] value) {\n __getInternalInterface().setFieldValue(ROLEASSIGNMENTS_PROP.get(), value);\n }",
"public RoleAssignment withRoleAssignments(ResourceSetDescription roleAssignments) {\n this.roleAssignments = roleAssignments;\n return th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
map<string, string> task_to_domain = 6; | public String getTaskToDomainOrThrow(
String key) {
if (key == null) { throw new NullPointerException(); }
java.util.Map<String, String> map =
internalGetTaskToDomain().getMap();
if (!map.containsKey(key)) {
throw new IllegalArgumentException();
... | [
"java.util.Map<String, String>\n getTaskToDomainMap();",
"String getTaskToDomainOrThrow(\n String key);",
"public String getTaskToDomainOrThrow(\n String key) {\n if (key == null) { throw new NullPointerException(); }\n java.util.Map<String, String> map =\n intern... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets whether this User allows message deletion | public void setAllowMessageDel(Boolean delete) {
this.allowMessageDel = delete;
} | [
"public void setCanDelete(boolean canDelete) {\r\n this.canDelete = canDelete;\r\n }",
"public void setDelete(boolean value) {\r\n this.delete = value;\r\n }",
"@DefaultMessage(\"This action will remove all the permissions for this user and make it inactive. The user itself will not be remov... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a ScaleAnimation object that scales the shape from the start time to the end time, from the given start width and height to the given end width and height . Any of the scale parameters cannot be negative. The duration of scaling cannot be 0. | public ScaleAnimation(int startTime, int endTime, String shapeID, double fromSx, double fromSy,
double toSx, double toSy)
throws IllegalArgumentException {
//throws exception if startTime >= endTime
super(startTime, endTime, shapeID, AnimType.SCALE);
if (fromSx < 0 || fromS... | [
"void scale(Shape s, float width, float height, int start, int end);",
"B scale(double scaleX, double scaleY);",
"@Override\n public IShape runAnimation(int curTime) throws IllegalArgumentException {\n if (curTime < startTime || curTime > endTime) {\n throw new IllegalArgumentException(\"Invalid time\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the clients health scale | public double getHealthScale() {
return healthScale;
} | [
"public void doGetScale () {\n sendCmd(GET_ACCEL_INFO_REQ);\n }",
"public int getMaxHealth();",
"public HostMetrics getMetrics(Connection c) throws BadServerResponse,\n\t\t\tXenAPIException, XmlRpcException {\n\t\tString method_call = \"host.get_metrics\";\n\t\tString session = c.getSessionReference()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Save configuration to the given table | private void saveConfiguration(String table) {
if (HAVE_DB) {
try {
// replace configuration or insert if new
String s = new String("DELETE FROM "+table+" WHERE configName='"+config.getName()+"'");
Connection con = DriverManager.getConnection(dbConnection, dbUser, dbPass);
Stat... | [
"public synchronized void saveTable() \n\t{\n\t\ttry {\n\t\t\tFileOutputStream fos = new FileOutputStream(tableFile);\n\t\t\t\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\toos.writeObject(htRecords);\n\t\t\toos.close();\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end setUpDrawingGraphics() This is called when the user presses the mouse anywhere in the applet. There are three possible responses, depending on where the user clicked: Change the current color, Post the drawing, or start drawing a curve. (Or do nothing if user clicks on the border.) | public void mousePressed(MouseEvent evt) {
int x = evt.getX(); // x-coordinate where the user clicked.
int y = evt.getY(); // y-coordinate where the user clicked.
int width = getWidth(); // Width of the panel.
int height = getHeight(); // Height of the panel.
if (dragg... | [
"protected void userDrawing(MouseEvent e){\n\t}",
"@Override\r\n\t\tpublic void mouseClicked(MouseEvent e) \r\n\t\t{\n\t\t\tclick = true;\r\n\t\t\tdraw = false;\r\n\t\t\tdrag = false;\r\n\t\t\t//get X,Y values where mouse is for clicking\r\n\t\t\tmouseX = e.getX();\r\n\t\t\tmouseY = e.getY();\r\n\t\t\t\r\n\t\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Renders a where clause without table aliases. | public WhereClauseProvider render(RenderingStrategy renderingStrategy) {
return WhereRenderer.withWhereModel(this)
.withRenderingStrategy(renderingStrategy)
.withSequence(new AtomicInteger(1))
.withTableAliasCalculator(TableAliasCalculator.empty())
... | [
"String getWhereClause();",
"private WhereStatement() {\n initFields();\n }",
"public String getWhereString()\n {\n String outString = \n \"WHERE table_name = '\" + table_name + \"'\" \n ;\n return outString;\n }",
"private String createWhereClause... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column nj_statistics_summary.first_amount_range_sum | public void setFirstAmountRangeSum(BigDecimal firstAmountRangeSum) {
this.firstAmountRangeSum = firstAmountRangeSum;
} | [
"public BigDecimal getFirstAmountRangeSum() {\n return firstAmountRangeSum;\n }",
"public void setFirstAmountRangeCount(String firstAmountRangeCount) {\n this.firstAmountRangeCount = firstAmountRangeCount == null ? null : firstAmountRangeCount.trim();\n }",
"public void setSecondAmountRangeS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new client to invoke service methods on NECID using the specified parameters. All service calls made using this new client object are blocking, and will not return until the service call completes. | NECIDClient(AwsSyncClientParams clientParams) {
this.clientHandler = new SdkClientHandler(new ClientHandlerParams().withClientParams(clientParams));
} | [
"@Override\n protected Client build(AwsSyncClientParams params) {\n return new ClientClient(params);\n }",
"DbxClientV2 createClient(DbxAuthInfo auth, StandardHttpRequestor.Config config, String clientUserAgentId);",
"public Client create(long clientId);",
"public Invocation newInvocation() {\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
connection name or null for default | public String getConnectionName() {
return this.connectionName;
} | [
"String getConnectionName();",
"public String getConnectionName() {\n return this.connectionName;\n }",
"String getConnectionAlias();",
"java.lang.String getConnectionId();",
"String getConnectorName();",
"java.lang.String getDatabaseName();",
"String getDatabaseName();",
"String getConnecti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
We set the term the learner has selected or entered into the result object | private void setResult(String term){
addResponseToResult(term);
} | [
"void setChoiceTerm2(String value);",
"void setChoiceTerm1(String value);",
"void setChoiceTerm3(String value);",
"void setChoiceTerm4(String value);",
"void setTerm(final Integer term);",
"public void setTerm(CourseComponentTerm term) {\n\t\tthis.term = term;\n\t}",
"void setChoiceTerm2Avl(Boolean valu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the Gson instance used by the builder to construct JsonArray/Objects from literals. Useful when you want to modify the configuration options of the Gson instance. JsonLiteral.setGson(new GsonBuilder().serializeNulls().create()); | public void setGson(Gson gson) {
JsonLiteral.defaultGson = gson;
JsonLiteral.defaultBuilder = new JsonLiteralBuilder(NameTranslator.DEFAULT_TRANSLATOR, gson);
} | [
"void setGson(Gson gson);",
"public static void setGson(@NonNull final Gson gson) {\n\t\tRest.gson = gson;\n\t}",
"private static void constructGson() {\n\t\tGsonBuilder builder = new GsonBuilder();\n\t\tbuilder.registerTypeAdapter(Bitmap.class, new BitmapJsonConverter());\n\t\tgson = builder.create();\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the File Location where a world is contained | public File getWorldFolder(String worldName); | [
"public File getWorldFolder() {\r\n return storageProvider.getFolder();\r\n }",
"public String getLocationPath();",
"java.lang.String getExternalLocation();",
"String getLocationOnDisk();",
"public java.lang.String getLocationfile() {\n return locationfile;\n }",
"public L getDocumentL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the roles for a list of movies | void getRolesForMovies(List<Movie> movies) {
for (Movie movie : movies) {
getRolesForMovie(movie);
}
} | [
"void getRolesForMovie(Movie movie) {\n\t\tMap<String, Object> params = new HashMap<String, Object>();\n\t\tparams.put(\"title\", movie.getTitle());\n\t\tparams.put(\"year\", movie.getProduction_year());\n\t\tmovie.setRoles(new HashSet<Role>(\n\t\t\t\t_namedParameterJdbcTemplatedbcTemplate.query(\n\t\t\t\t\t\tSQL_S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the inferred operation for the body of the given behavior unit. | JvmOperation getInferredBodyOperation(SarlBehaviorUnit behaviorUnit); | [
"JvmOperation getInferredGuardOperation(SarlBehaviorUnit behaviorUnit);",
"public abstract AirthmaticOperation getAirthmaticOperation(Character operator);",
"public Operation getOperation();",
"String getOp();",
"public Logic getBehaviorTarget ()\n {\n return _behavior.getCurrentTarget();\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public int modifyPduProduceBillForDeleteInBill(TicketStorageInBill vo); | public int modifyChkStorageForDeleteInBill(TicketStorageInBill vo); | [
"void removeFromBill(Order o);",
"public void declinePurchaseOrder(DeclinePoVo declinePoVo) throws ApplicationException {\n\t\tlogger.info(\" To Updated Po with Id::\"+declinePoVo.getPoId());\n\t\tConnection con =null;\n\t\tPreparedStatement preparedStatement =null;\n\t\ttry{\n\t\t\tcon = getAccountsPayable() ;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleExpression_2" $ANTLR start "ruleExpression_2" ../de.jevopi.mitra2/srcgen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3861:1: ruleExpression_2 returns [EObject current=null] : (this_Expression_3_0= ruleExpression_3 ( () ( (lv_op_2_0= ruleEqualityOperator ) ) ( (lv_rhs_3_0= ruleExpre... | public final EObject ruleExpression_2() throws RecognitionException {
EObject current = null;
int ruleExpression_2_StartIndex = input.index();
EObject this_Expression_3_0 = null;
Enumerator lv_op_2_0 = null;
EObject lv_rhs_3_0 = null;
enterRule();
... | [
"public final EObject entryRuleExpression_2() throws RecognitionException {\n EObject current = null;\n int entryRuleExpression_2_StartIndex = input.index();\n EObject iv_ruleExpression_2 = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 87) ) { retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method, which is usually run every 20ms, takes in the filtered joystick values and sets the speeds that the drivetrain motors need to achieve. Called every time the scheduler runs while the command is scheduled. | @Override
public void execute() {
double rightTriggerValue = RobotContainer.joystickDriver.getRawAxis(Ports.OIDriverSlowmode);
m_subsystem.setSlowmode((rightTriggerValue >= TuningParams.SLOWMODE_TRIGGER_THRESHOLD) ? true : false);
double speedLeft = RobotContainer.joystickDriver.getFiltered... | [
"private void updateMotors() {\n\t\t//Pass filtered values to ChopperStatus.\n\t\tmStatus.setMotorFields(mMotorSpeed);\n\t\tString logline = Long.toString(System.currentTimeMillis()) + \" \" + mMotorSpeed[0] + \" \" + mMotorSpeed[1] + \" \" + mMotorSpeed[2] + \" \" + mMotorSpeed[3] + \"\\n\";\n\t\ttry {\n\t\t\tif (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the default System input stream. Normally this stream is set to System.in. This inputStream is used when no task input redirection is being performed. | public void setDefaultInputStream(InputStream defaultInputStream) {
this.defaultInputStream = defaultInputStream;
} | [
"protected final void setScriptStandardInput(Reader stdin) {\r\n\t\tthis.scriptExecutor.setStandardInput(stdin);\r\n\t}",
"public static Source stdin() {\n return stream(System.in);\n }",
"public void setStdin(CWLFieldValue stdin) {\n this.stdin = stdin;\n }",
"public OutputStream setStdIn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Save or update a GridLocation object | public void saveOrUpdateGridLocation(GridLocation gloc)
throws DataAccessLayerException {
Session sess = null;
Transaction tx = null;
try {
sess = getHibernateTemplate().getSessionFactory().openSession();
tx = sess.beginTransaction();
sess.saveOrU... | [
"public void saveLocation(Location location);",
"public LocationEntity saveLocation(LocationDetail locationDetail) throws LocationException;",
"public LocationEntity updateLocation(LocationDetail locationDetail) throws LocationException;",
"void fetchAndSaveLocationData();",
"private void saveCurrentLocatio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new calendar manager. | public CalendarManager() {
directory = "Calendar" ;
File dir = new File(directory);
if (dir.exists()!= true ) //if it does not exist then create
dir.mkdir();
} | [
"public Calendar() {\n }",
"public ObjectFactoryModuleCalendar() {\n }",
"public Manager() {\n entityManager = new EntityManager();\n systemManager = new SystemManager();\n initSystems();\n }",
"Manager createManager();",
"static private void CreateCalendarViewModel()\n\t{\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prueba 2 Pago reserva en efectivo | public void testPagoReservaEfectivo( )
{
setupEscenario2( );
try
{
//Busca la silla A1 y la agrega a la reserva
Silla silla = cine.darSilla( 'A', 1 );
reserva.agregarSilla( silla );
cine.pagarReservaEfectivo( reserva );
assertEqual... | [
"void Planificar(Reserva unaReserva);",
"void Cadastro( char tipo, float preco, int cod, int qtdestoque, String nome, String editora, int mes, int ano){\n\n /* Adiciona a nova Revista no vetor de produtos */\n produtos.add( new Revista( tipo, preco, cod, qtdestoque, nome, editora, mes, ano));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Adds spaces to a given string | public String addSpaces(String string) {
string = string.replaceAll("_", " ");
return string;
} | [
"private static String replaceSpaces(final String input) {\n return input.replace(' ', '_');\n }",
"public static String replaceWhiteSpaces( final String input ) {\n StringBuffer buffer = new StringBuffer();\n for( int i = 0; i < input.length(); i++ ) {\n if( input.charAt( i ) == ' ' ) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the date when the object was changed. | public void setDateChanged(Date dateChanged); | [
"public final void updateChangeDateTime() {\n \tm_changeDate = System.currentTimeMillis();\n }",
"public void setDateUpdated(Date dateUpdated);",
"public void setDate(Date newDate) {\n this.date = newDate;\n }",
"public void setUpdateDate(java.util.Date newVal) {\n if ((newVal != null &... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Should be able to instantiate a new instance of "Channel" with the definition in the network configuration' | @Test
public void testNewChannel() throws Exception {
JsonObject jsonConfig = getJsonConfig1(1, 0, 1);
NetworkConfig config = NetworkConfig.fromJsonObject(jsonConfig);
HFClient client = HFClient.createNewInstance();
TestHFClient.setupClient(client);
Channel channel = clien... | [
"Channel createChannel();",
"private Channel createChannel(){\n try {\n return connection.createChannel();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return null;\n }",
"SocketChannel createChannel();",
"public Channel createChannel(ChannelI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Intercept response, save httpSession in sessions cache and make sure setcookie header is set | @Override
public void filter(ContainerRequestContext requestContext,
ContainerResponseContext responseContext) throws IOException {
HttpSession session = requestManager.getHttpSession();
session.keepAlive();
sessionManager.save(session);
NewCookie sessionCookie = new NewCoo... | [
"@Override\n public void endRequest(HttpServletResponse httpServletResponse) {\n if (wasModified.get()) {\n Cookie newCookie = new Cookie(COOKIE_NAME, sessionId.get());\n newCookie.setPath(\"/\");\n httpServletResponse.addCookie(newCookie);\n }\n\n // -- Clea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'accountPassword' field. | public void setAccountPassword(String value) {
this.accountPassword = value;
} | [
"public Builder setAccountPassword(String value) {\n validate(fields()[4], value);\n this.accountPassword = value;\n fieldSetFlags()[4] = true;\n return this; \n }",
"void changePassword(Long accountId, String password);",
"public String getAccountPassword() {\n return accountPasswor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts string from GB2312 encoding ISO88591 (Latin1) encoding. | public static String iso2Gb(String gbString) {
if (gbString == null)
return null;
String outString = "";
try {
byte[] temp = null;
temp = gbString.getBytes("ISO8859-1");
outString = new String(temp, "GB2312");
} catch (java.io.UnsupportedEncodingException e) {
// ignore it as no way to convert be... | [
"public ICodec<String> iso_8859_1();",
"protected byte[] stringToByte_8859_1(String str) throws SaslException {\n char[] buffer = str.toCharArray();\n try {\n if (useUTF8) {\n for (int i = 0; i < buffer.length; i++) {\n if (buffer[i] > 'ÿ') {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Always checks if empty 1 Only Numbers 2 Valid Name 3 Valid email 4 Valid phone number 5 Valid 4 digits 6 Valid pH 7 Valid rep Id 8 Valid serial number (6 digits) Sets listener for fields on form | public void setListener(JFXTextField field, int type) {
if (type == 1) {
NumberValidator numValidator = new NumberValidator();
santa_List.add(numValidator);
field.getValidators().add(numValidator);
numValidator.setMessage("Enter a number");
RequiredFie... | [
"private void agregarFieldsValidaciones()\r\n\t{\r\n\t\t\r\n this.serieDocRef.addValidator(\r\n new StringLengthValidator(\r\n \" 4 caracteres máximo\", 0, 4, false));\r\n \r\n this.referencia.addValidator(\r\n new StringLengthValidator(\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fast CRC24 implementation using a lookup table to handle multiple bits at a time. Compare: Sarwate, Dilip V. "Computation of cyclic redundancy checks via table lookup." | public FastCRC24()
{
} | [
"private static long crc32IEEEWithInitial(long initial, byte[] pBuffer, int byteCount) {\n // Log.d(STAG, String.format(Locale.getDefault(), \"XXX crc32IEEEWithInitial: pBuffer: %s, byteCount: %d\", //NON-NLS\n // byteArrayToHexString(pBuffer), byteCount)); //NON-NLS\n // 4-bit to 32-bit CRC ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a comma separated list of the given polynomials | public static String getPolysAsCommaSeparatedString(PPolynomial[] polys) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < polys.length; ++i) {
if (!polys[i].isZero()) { // avoid sending 0 to Giac's eliminate
sb.append("," + polys[i].toString());
}
}
if (sb.length()>0)
return sb.substri... | [
"public String toString()\n\t{\n\t\tString result = \"\";\n\n\t\tfor (int index = 0; index < myPolynomial.size(); index++)\n\t\t{\n\t\t\tresult += myPolynomial.get(index).toString();\n\t\t\tindex++;\n\t\t}\n\n\t\treturn result;\n\t}",
"public List<GenPolynomial> nextPolynomialList() throws IOException {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Passes the CompleteEvent EVENT to the current command. | public void complete(CompleteEvent event) {
if (currentCommand != null) {
currentCommand.complete(event);
}
} | [
"public void onComplete(Command lastCommand, Bundle lastBundle);",
"public void CompleteTask() {\n\t\tCompletionDate = new Date();\n\t}",
"public void completion( WebDAVCompletionEvent e )\r\n {\r\n interpreter = (ACLResponseInterpreter)e.getSource();\r\n synchronized( this )\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of danh muc giay tos where ma = &63;. | public int countByMa(java.lang.String ma)
throws com.liferay.portal.kernel.exception.SystemException; | [
"public int countByByMa(java.lang.String ma)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public int promenaKanala() {\r\n\t\tif(kanal<16){\r\n\t\t\tkanal=kanal+1;\r\n\t\t}\r\n\t\treturn kanal;\r\n\t}",
"public String MaToKa(double ma) {\n // ka = ma/1000000\n double ka = ma... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets subtitles Y coordinate | public int getSubtitlesY() {
return subtitlesY;
} | [
"public void setSubtitlesY(int subtitlesY) {\n this.subtitlesY = subtitlesY;\n }",
"double getLabelY();",
"int getPositionY () {\r\n return this.nY_px;\r\n }",
"double getYTranslation();",
"public double getY() {\n\t\tRectangle2D bounds = _parentFigure.getBounds();\n\t\tdouble y = bounds... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Notifies the server that a player sent a ResourceContainer to a Vault | public SendContainer(ResourceContainer container, String destination, String senderNickname) {
super(new MessageBuilder().setCommand(Command.SEND_CONTAINER).setNickname(senderNickname));
this.container = container;
this.destination = destination;
} | [
"@Override\n public void postInventory(InventorySyncReq inventorySyncReq, ResponseListener<ResponseObjectExtra> listener) {\n }",
"public abstract void onContainerResourceUpdated(\n ContainerId containerId, Resource resource);",
"public void displayContainer(Container c) {\r\n\t\t\ttry {\r\n\r\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If we have written anything and cross a shard boundary, switch to a new writer. We use the uncompressed file pointer here because there may be writes that are not yet reflected in the ondisk size, and we want to split as soon as there is content, regardless how small. | @Override
protected boolean shouldSwitchWriterInCurrentLocation(DecoratedKey key)
{
final long uncompressedBytesWritten = sstableWriter.currentWriter().getFilePointer();
if (boundaries.advanceTo(key.getToken()) && uncompressedBytesWritten > 0)
{
logger.debug("Switching writer... | [
"protected void writeChunk() {\n // For partially filled chunks, we still need to clear the offsets for remaining rows, as we reuse this buffer.\n for (int i = _chunkHeaderOffset; i < _chunkHeaderSize; i += Integer.BYTES) {\n _chunkBuffer.putInt(i, 0);\n }\n\n super.writeChunk();\n\n // Reset th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__QualifiedName__Group_1__1" $ANTLR start "rule__QualifiedName__Group_1__1__Impl" ../fr.tpt.aadl.ramses.transformation.trc.xtext.ui/srcgen/fr/tpt/aadl/ramses/transformation/trc/xtext/ui/contentassist/antlr/internal/InternalTRC.g:1423:1: rule__QualifiedName__Group_1__1__Impl : ( RULE_ID ) ; | public final void rule__QualifiedName__Group_1__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../fr.tpt.aadl.ramses.transformation.trc.xtext.ui/src-gen/fr/tpt/aadl/ramses/transformation/trc/xtext/ui/contentassist/antlr/internal/InternalTRC.... | [
"public final void rule__QualifiedName__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:6209:1: ( ( RULE_ID ) )\n // ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the input property can be colorrelative. | public boolean isColorRelativeProperty(final int propertyIndex) {
switch (propertyIndex) {
case PROPERTY_FILL:
return true;
case PROPERTY_STROKE:
return true;
default:
return false;
}
} | [
"public boolean isColorRelative(final int propertyIndex) {\n return isMarkerSet(propertyIndex << 21);\n }",
"Boolean getIsRelative();",
"boolean supportsColor();",
"boolean isColorSet();",
"public boolean isSetColor() {\n return this.color != null;\n }",
"public boolean isSetColor() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets array of all "identifier" elements | public org.hl7.fhir.Identifier[] getIdentifierArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(IDENTIFIER$0, targetList);
org.hl7.fhir.Identifier[] result =... | [
"org.hl7.fhir.Identifier[] getIdentifierArray();",
"identifierList getIdentifierList();",
"private String[] getIdentifiers(NodeList<SimpleIdentifier> names) {\n int count = names.size();\n String[] identifiers = new String[count];\n for (int i = 0; i < count; i++) {\n identifiers[i] = names.get(i)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the flag that will either suppress the inclusion of the default JavaScript scripts (for language selection etc.) or the default; include the scripts. | public static void setSuppressBoilerPlateJavaScriptFlag(boolean b)
{
suppressDefaultJavaScript = b;
} | [
"public void setJavaScript(boolean value) {\n this.javaScript = value;\n }",
"public static int includeJavaScript()\r\n\t{\treturn INCLUDE_JAVASCRIPT;\t}",
"default String getJSIncludes() {\n return \"\";\n }",
"public static void setIncludeJavaScript(int js_location)\r\n\t{\tINCLUDE_JAVAS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the encoding style for this SOAPElement object. | public abstract String getEncodingStyle(); | [
"public String getEncodingStyle() {\n return mEncodingStyle;\n }",
"public org.xmlsoap.schemas.wsdl.soap.EncodingStyle xgetEncodingStyle()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.wsdl.soap.EncodingStyle target = null;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of books where uuid = &63;. | @Override
public int countByUuid(String uuid) {
uuid = Objects.toString(uuid, "");
FinderPath finderPath = _finderPathCountByUuid;
Object[] finderArgs = new Object[] {uuid};
Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);
if (count == null) {
StringBundler query = new StringBun... | [
"public int countByUuid(String uuid);",
"@Override\n\tpublic int countByUuid(String uuid) {\n\t\tuuid = Objects.toString(uuid, \"\");\n\n\t\tFinderPath finderPath = _finderPathCountByUuid;\n\n\t\tObject[] finderArgs = new Object[] {uuid};\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, thi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tag service that is serves tag operations | public interface TagService {
/**
* @return List of all tags in database
*/
Iterable<Tag> listAllTags();
/**
*
* @param id tag id
* @return tag of given id
*/
Tag getTagById(int id);
/**
* Saves tag
* @param tag tag will be saved
* @return returns the o... | [
"public interface TagService {\n /**\n * Method that performs validation for given dto object and saving of tag\n *\n * @param tag dto to be validated and performed logics with\n * @throws ValidationException in case of validation error occur\n */\n void saveTag(TagDto tag) throws Validati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by eduardo on 01/10/17. Contract for Weather.Service and Weather.Callback | public interface Weather {
interface Service {
void requestWeather(Callback callback, Location location);
}
interface Callback {
void onMissingInternetConnection();
void onRequestWeatherFail(String error);
void onRequestWeatherSuccess(String temperature, String status, Str... | [
"public interface IOpenWeatherAPI {\n String ENDPOINT = \"http://api.openweathermap.org/\";\n\n String KEY_OPEN_WEATHER_API = \"0d664d5c76a364c4e18b207ac25a0ef4\";\n\n //******** 5 DÍAS/8 HORAS *******\n //@GET(\"/data/2.5/forecast\")\n //Call<RootPredicciones> getPredicciones(@Query(\"lat\") String ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Maps the original data type of a field with a Java type. | private static String mapType(final FieldType.Type type) {
switch (type) {
case DATE:
return "Date";
case INTEGER:
return "Integer";
case REAL:
return "Double";
case STRING:
return "String";
default:
return null;... | [
"Object convertJavaValueToDBValue(Object value, Class<?> javaType);",
"Object convertDBValueToJavaValue(Object value, Class<?> javaType);",
"public void overrideFieldType(AnnotatedField<? super X> field, Type type) {\n\t\toverrideFieldType(field.getJavaMember(), type);\n\t}",
"public As3Type mapType(Class<?> ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Queries a datum in the form of a String against the Bloom filter. | public boolean query(char[] val) { fingerprint(val); return queryfp(); } | [
"public boolean query(String val) { fingerprint(val); return queryfp(); }",
"public static BloomFilter<String> fromJson(JsonElement source) {\n return fromJson(source, String.class);\n }",
"List<Bed> search(String query);",
"@Test\n public void testBloomfilter() {\n Random rnd = new Random... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all File Patterns | public Collection<FilePattern> getFilePatterns() {
return filePatternMap.values();
} | [
"public ArrayList<String> GetDBPatterns() throws IOException {\n File folders = new File(this.dataBasePath);\n String folderPath = folders.getCanonicalPath() + File.separator;\n File root = new File(folderPath);\n File[] sourceFiles = root.listFiles();\n ArrayList<String> patterns = new ArrayList<>()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
int64 total_chunks_in_use = 4; | long getTotalChunksInUse(); | [
"int getChunksAmount();",
"long getTotalChunksInBin();",
"int getNumOfChunks();",
"long getPatchedChunksSize();",
"int getChunkSize();",
"int getChunks();",
"int getChunkSizesCount();",
"long getChunkSize();",
"long getChunkNum();",
"synchronized void incNumChunks(){\n\t\t\tnumChunks++;\n\t\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the array shape. This does not have to match the VariableSimpleIF. | public int[] getShape() {
return shape;
} | [
"@Override\n public int[] getResultShape() {\n ArrayField arrayField = (ArrayField) m_x;\n return arrayField.getInput().getShape();\n }",
"public int getShapeCount() {\n return shape_.size();\n }",
"public int getArrayDimensions() {\n return getTeaToolsUtils().getArrayDimensio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |