query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
TODO: Replace these all with cells ugly switch statement see rust Entry for salvation though javalang devs are so obstinate | public void keyHandler(String ev, boolean isDownEvent) {
switch (ev) {
case "arrowup":
dpad_up = isDownEvent;
break;
case "arrowdown":
dpad_down = isDownEvent;
break;
case "arrowleft":
dpad_left =... | [
"public static void main(String[] args) {\n MyEnum myEnumVal = MyEnum.A;\n switch (myEnumVal) {\n case A:\n break;\n case B:\n break;\n case C:\n break;\n case D:\n break;\n default:\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Applies the force to the body of the box This method should be called after the force attribute is set. | public void applyForce() {
if (!isActive()) {
return;
}
// Only walk or spin if we allow it
setLinearVelocity(Vector2.Zero);
setAngularVelocity(0.0f);
// Apply force for movement
if (getMovement().len2() > 0f) {
// System.out.println("getm... | [
"public void applyForce(Body other_body) {\n return;\n }",
"public void apply() {\n Vector2d force = new Vector2d();\n \n Vector2d p1 = new Vector2d(this.body1.x);\n Vector2d p2 = new Vector2d(this.body2.x);\n \n \n force.sub(p2, p1);\n double l = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end module Display menu for new menu that includes doctor's name once entered | private static void displayMenu(String doctorsName, int LOG_IN, int DISPLAY_MEDS, int PRESCRIBE_MEDS, int RESET_MEDS, int EXIT) {
System.out.println("");
System.out.println(" **********************************************");
System.out.println(" ... | [
"@Override\r\n\tpublic void PrintMenu()\r\n\t{\r\n\t\tSystem.out.println(\"\\n\\n\");\r\n\t\tSystem.out.println(\"Please choose from menu\");\r\n\t\tSystem.out.println(\"[1] --> Create new staff\");\r\n\t\tSystem.out.println(\"[2] --> Create new user\");\r\n\t\tSystem.out.println(\"[3] --> Add new book\");\r\n\t\tS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__SingleReference__Group__4__Impl" $ANTLR start "rule__SingleReference__Group__5" ../org.yazgel.titan.xtext.ui/srcgen/org/yazgel/titan/xtext/ui/contentassist/antlr/internal/InternalTitan.g:1490:1: rule__SingleReference__Group__5 : rule__SingleReference__Group__5__Impl ; | public final void rule__SingleReference__Group__5() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.yazgel.titan.xtext.ui/src-gen/org/yazgel/titan/xtext/ui/contentassist/antlr/internal/InternalTitan.g:1494:1: ( rule__SingleReference__Group_... | [
"public final void rule__Rule__Group_5__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.webgme_mtl.ui/src-gen/org/xtext/example/webgme/ui/contentassist/antlr/internal/InternalMTL.g:1715:1: ( rule__Rule__Group_5__1__I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public String getSinger_introduce() {
return singerPo.getSinger_introduce();
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by $ zhoudeheng on 2015/12/9. | public interface ITransformChangedManager {
void addTransformChanged(ITransformChanged t);
void removeTransformChanged(ITransformChanged t);
void notifyChanged(SelectViewEnum.Type t,Matrix matrix);
void notifyAction(SelectViewEnum.ActionType t,ILayer layer);
} | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Eliminazione di una manutenzione. | public void deleteManutezione(Manutenzione manutenzione) {
SQLiteDatabase db = this.getWritableDatabase();
String idManutenzione = "'" + manutenzione.getIDManutenzione() + "'";
db.delete(TABELLA_MANUTENZIONI, " IDManutenzione =" + idManutenzione, null);
} | [
"public void eliminar() {\n\t}",
"public void eliminarUltimo() {\n if (cabeza!= null) {\n /*Si el nulo siguiente es nulo entonces*/\n if (cabeza.siguiente==null) {\n /*Cabeza la hara nula*/\n cabeza=null; \n /*Resta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Class[] inputClasses; Creates a new instance of Variable | public AccessorFunction() {
} | [
"@Override\n\tpublic Variable[] createVariables() throws ClassNotFoundException {\n\t\tVariable [] variables = new Variable[problem_.getNumberOfVariables()];\n\t\t//variables[0] = new Set<Solucion>();\n\n\t\tfor (int var = 0; var < problem_.getNumberOfVariables(); var++)\n\t\t\tvariables[var] = new Int((int)0, (int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiate a new PDFTextStripper object with benchmark file. | public PDFTextLocations(File bmFile) throws IOException {
coordinateTexts = Lists.newArrayList();
loadBenchmarkCoordinates(bmFile);
} | [
"public PDFTextStripper( Properties props ) throws IOException\n {\n super( props );\n this.outputEncoding = null;\n normalize = new TextNormalize(this.outputEncoding);\n }",
"TextDumper(File file) {\n this.file = file;\n }",
"public static PDFToText getInstance() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void dispose() {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is a prectise class This is a prectise class This is a prectise class | public static void main(String[] args) {
// This is a prectise class
// This is a prectise class
int[] array = {-2, 3, 5, 7, -9, 4, -6};
int[] pos = new int[array.length];
int[] neg = new int[array.length];
int p = 0;
int n = 0;
for (int i = 0; ... | [
"@Override\r\n\tpublic void preco() {\n\r\n\t}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"private Propriedades() {\r\n\t}",
"@Override\r\n\tpublic void prenota() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void classement() {\n\t\t\t\n\t\t}",
"@Override\n public void extornar()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .weizhu.user.UserAbilityTag user_ability_tag = 1; | public com.weizhu.proto.UserProtos.UserAbilityTagOrBuilder getUserAbilityTagOrBuilder(
int index) {
return userAbilityTag_.get(index);
} | [
"public interface TAG_MULTIPLE_COMPONENTS\n{\n\n /** \n * Indicates that the value encapsulated is of type \n * <code>MultipleComponentProfile</code>. In this case, the profile \n * consists of a list of protocol components, the use of which must \n * be specified by the protocol using this... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This method will list all existing articles. | @RequestMapping(value = {"/", "/main"}, method = RequestMethod.GET)
public String getAllArticles(ModelMap model) {
List<Article> articles = service.findAllArticles();
model.addAttribute("articles", articles);
return mainPage;
} | [
"public List<Article> getAllArticles(){//, title, like\n\t\tList<Article>articles = ArticleQueries.getAllArticles(em);\n\t\treturn articles;\n\t}",
"@Override\n\tpublic List<Article> findAllArticle() {\n\t\tlog.info(\"findAllArticle start...\");\n\t\tList<Article> list = articleMapper.selectAll();\n\t\treturn lis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .hadoop.yarn.PreemptionContainerProto container = 2; | public java.util.List<org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContainerProto.Builder>
getContainerBuilderList() {
return getContainerFieldBuilder().getBuilderList();
} | [
"protected void\n testPriorityPreemptionFromHighestPriorityQueueAndOldestContainer(String[]\n queues, String[] users) throws Exception {\n conf.setFloat(CapacitySchedulerConfiguration.TOTAL_PREEMPTION_PER_ROUND,\n 0.05f);\n conf.setInt(YarnConfiguration.RM_SCHEDULER_MINIMUM_ALLOCATION_MB, 512);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Closes (file) database connection. | void close()
throws StorageException; | [
"public void close() \n {\n String funcName=\"close\";\n enter(funcName);\n\n try\n {\n\n if (null != m_dbConn)\n {\n m_dbConn.close();\n }\n\n }\n catch (Exception e)\n {\n if (log.isDebugEnabled())\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes motors, servos, lights and sensors from a given hardware map | public void init(HardwareMap ahwMap, boolean isBlue) {
// save reference to HW Map
hwMap = ahwMap;
/* eg: Initialize the hardware variables. Note that the strings used here as parameters
* to 'get' must correspond to the names assigned during the robot configuration
* st... | [
"public void init(HardwareMap hardwareMap) {\n // Motors\n leftFrontDrive = hardwareMap.get(DcMotor.class, \"leftF\");\n leftBackDrive = hardwareMap.get(DcMotor.class, \"leftB\");\n rightFrontDrive = hardwareMap.get(DcMotor.class, \"rightF\");\n rightBackDrive = hardwareMap.get(Dc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
jPanel1 = new javax.swing.JPanel();
jLabel2 ... | [
"public StForm() {\n initComponents();\n }",
"public CineForm() {\n initComponents();\n }",
"public javaform() {\n initComponents();\n }",
"public EditDemographicForm() {\n initComponents();\n }",
"public FightForm() {\n initComponents();\n }",
"public For... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears a class prefix | public static void clearPrefix(String player) {
Chat.getPlayerData(player).clearPluginPrefix("SkillAPI");
BoardManager.getPlayerBoards(player).removeBoards("SkillAPI");
} | [
"public Builder clearPrefix() {\n bitField0_ = (bitField0_ & ~0x00000008);\n prefix_ = getDefaultInstance().getPrefix();\n onChanged();\n return this;\n }",
"public void removeByPrefix(java.lang.String prefix);",
"public void clearSuffix() {\n // Override in proxy if lazily l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is to fetch all user records from SQLite | private void getDataFromSQLite() {
// AsyncTask is used that SQLite operation not blocks the UI Thread.
new AsyncTask<Void, Void, Void>() {
@Override
protected Void doInBackground(Void... params) {
listCurp.clear();
listCurp.addAll(databaseHelper. ... | [
"@Override\n public List<SqliteUserPojo> getAllusers(){\n List<SqliteUserPojo> userList = new ArrayList<SqliteUserPojo>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + Table;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter of the name of the mesh | public String getName() {
return name;
} | [
"java.lang.String getMeshUid();",
"@Override\r\n\tpublic String toString(\r\n\t) {\r\n\t\treturn( \"CSGMeshInfo[\" + mIndex + \"] \" + ((mName == null) ? \"\" : mName ) );\r\n\t}",
"public int getMesh() {\n return textMeshVao;\n }",
"String getMeshLengthAsString();",
"public java.lang.String getSceneNam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Loop through the current set of Room objects and collect a set of the University objects reached via uni. | public UniversitySet getUni()
{
UniversitySet result = new UniversitySet();
for (Room obj : this)
{
result.with(obj.getUni());
}
return result;
} | [
"public Collection getUomList() {\n\t\treturn DAOFactory.getFactory().getLookupDAO().getUomList();\n\t}",
"@Override\n\tpublic List<HashMap<String, Object>> findUniversityList() {\n\t\treturn universityDao.selectUniversityList();\n\t}",
"Collection<String> getJoinedRooms(String user);",
"List<MucRoom> getMucR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get latest scheduling date. | public String getLatest()
{
String latest = _avTable.get( ATTR_LATEST ) ;
if( latest == null )
latest = NO_VALUE ;
return latest ;
} | [
"public String getScheduleDate() {\r\n return scheduleDate;\r\n }",
"public java.util.Date getScheduleDate () {\n\t\treturn scheduleDate;\n\t}",
"public Date getScheduleTime() {\r\n return scheduleTime;\r\n }",
"public Date getNextFireTime() {\t\t\n\t\tApplicationContext commonBeansContext... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of "readOnly" attribute. | public void jsxSet_readOnly(final boolean readOnly) {
((HtmlTextArea) getDomNodeOrDie()).setReadOnly(readOnly);
} | [
"public void setReadOnly(boolean readOnly)\r\n\t{\r\n\t\tthis.readOnly = readOnly;\r\n\t}",
"public void setReadOnly(Boolean readOnly) {\n this.readOnly = readOnly;\n }",
"public void setReadOnly(boolean readOnly) {\n \n this.readOnly = readOnly;\n }",
"protected void setReadOnly(boolean ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The Wasm configuration used in initialization of a new VM (proxy_on_start). `google.protobuf.Struct` is serialized as JSON before passing it to the plugin. `google.protobuf.BytesValue` and `google.protobuf.StringValue` are passed directly without the wrapper. .google.protobuf.Any configuration = 4; | public Builder clearConfiguration() {
if (configurationBuilder_ == null) {
configuration_ = null;
onChanged();
} else {
configuration_ = null;
configurationBuilder_ = null;
}
return this;
} | [
"private ChewingConfig(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public Builder setJsonPayload(com.google.protobuf.Struct value) {\n if (jsonPayloadBuilder_ == null) {\n if (value == null) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
when a request is made on the listening port, run using the start() command | public void run() {
BufferedReader in = null;
PrintStream out = null;
String NewHost = "localhost";
System.out.println("In AgentListener Thread");
try {
String buf;
out = new PrintStream(sock.getOutputStream());
in = new BufferedReader(new InputStreamReader(sock.getInputStream()... | [
"public static void start() {\n\t\tstart(DEFAULT_PORT);\n\t}",
"public void start() {\n\t\tserver.start();\n\t}",
"public void start(){ \r\n\t\tnew Thread(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tSystem.out.println(\"Running\");\r\n\t\t\t\t\trunServer();\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Refresh the list with the items in the Table | private void refreshLightPatternsFromTable() {
// Get the items that weren't marked as completed and add them in the
// adapter
AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>(){
@Override
protected Void doInBackground(Void... params) {
... | [
"private void refreshTableList() {\n clearSelections(tableList);\n tableList.getItems().setAll(server.getActiveTableNumbers());\n }",
"private void refreshTable() {\n\t\tthis.tableMain.setItems(result);\n\t\treturn;\n\t}",
"private void refreshList()\n\t{\n\n\t}",
"private void reloadTable() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO too many copies | @Override
public FloatMatrix repmat(FloatMatrix source, FloatMatrix destination, int rowMultiplicator, int columnMultiplicator) {
((JBlasFloatMatrix) destination).matrix.copy(((JBlasFloatMatrix) source).matrix.repmat(rowMultiplicator, columnMultiplicator));
return destination;
} | [
"public void copy() {\n\t\t\r\n\t}",
"public void performCopy() {\n \t}",
"@Override\n\t\tprotected void swop() {\n\n\t\t}",
"private AsnNode objectSetFromObjects(AsnNode parent){\n\t\terror(\"not implemented\");\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Univent copy() {\n\t\treturn null;\r\n\t}",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
constructor with image and audio file | public TouristItem(String name, String address, int imageResourceID, int audioResourceID) {
TouristItemName = name;
TouristItemAddress = address;
mDrawableImageResourceID = imageResourceID;
mRawAudioResourceID = audioResourceID;
} | [
"public AudioFile()\n {\n }",
"public AudioFile() {\n this.path = \"AudiovisualesFile.dat\";\n }",
"public AudioFrame() {}",
"protected AudioFileReader() {}",
"public Sound(){\n\t\tio = OptionsIO.getInstance();\n\t\tloadFromFile();\n\t}",
"private AudioEncoder() {}",
"public MediaLib() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the destination (topic and queue) used by JMS. | protected Destination initializeDestination() throws NamingException {
if (destination == null)
destination = (Destination) jndiContext.lookup(destinationJndiName);
return destination;
} | [
"public Destination() {\r\n }",
"public void initialize() throws JMSException {\n\t\tamqConnectionFactory = new ActiveMQConnectionFactory(DEFAULT_BROKER_URL);\n\t\tjmsConnection = amqConnectionFactory.createConnection();\n jmsConnection.start();\n \n jmsSession = jmsConnection.createSession(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetch Temperature Data from the Database Table. Accepts the start time after which the data needs to be retrieved. | @SuppressWarnings({ "rawtypes", "unchecked" })
public List<TemparatureDataDbModel> getTemperatureDataFromDb(long startTime) {
List<TemparatureDataDbModel> tempDbModelList = null;
try {
LOGGER.debug("Trying to Get a Session");
session = dbServerConnection.getSession();
LOGGER.debug("Got a Session and... | [
"public void getData() {\n\t\ttry {\n\t\t\tConnection dbConn = credentials.establishDBConnection();\n\t\t\t\n\t\t\tif(dbConn == null) return;\n\t\t\t\n\t\t\tDateTime utilDate = new DateTime();\n\t\t\tDate sqlDate = new Date(Instant.now().toEpochMilli());\n\t\t\tint hour = utilDate.getHourOfDay()-hours;\n\t\t\tStrin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method for creating server reply mock | protected void createServerMock(String requestType, String apiPath, int statusCode, String replyData) throws UnirestException {
HttpResponse<String> response = mock(HttpResponse.class);
HttpRequest request = mock(HttpRequest.class);
MultipartBody requestMultipartBody = mock(MultipartBody.class);
HttpReq... | [
"@Test\n public void testRequestResponse() throws IOException {\n Random rnd = new Random();\n Long ticket = rnd.nextLong();\n String command = UUID.randomUUID().toString();\n int payload1 = rnd.nextInt();\n double payload2 = rnd.nextDouble();\n SocketAddress dest = new ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the format for the NameID used as an attribute value. | public void setNameIdFormat(String format) {
nameIdFormat = format;
} | [
"public void setNameformat(java.lang.String nameformat) {\r\n this.nameformat = nameformat;\r\n }",
"public void setFormat(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the sett... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Collect all groups by their members, essentially a reverse lookup. NOTE: this can intermix groups of different types into a single subcollection which will have to be filtered out later on. NOTE: This update is done 'inplace' so synchronization is not needed. | protected void loadMemberToGroupMapping() {
Map<Integer,Set<GroupBridge>> newIdToGroups = new TreeMap<Integer,Set<GroupBridge>>();
for (GroupBridge groupB : allGroups.values()) {
Set<Integer> memberIds = groupB.getMembers();
for (Integer memberId : memberIds) {
S... | [
"public static Map<String, GrouperDuoGroup> retrieveGroups() {\r\n \r\n Map<String, Object> debugMap = new LinkedHashMap<String, Object>();\r\n\r\n debugMap.put(\"method\", \"retrieveGroups\");\r\n\r\n long startTime = System.nanoTime();\r\n \r\n try {\r\n int[] totalObjects = new int[] {-1};\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns whether any of a call's operands have ANY type. | private boolean anyAnyOperands(RexCall call) {
for (RexNode operand : call.operands) {
if (operand.getType().getSqlTypeName() == SqlTypeName.ANY)
return true;
}
return false;
} | [
"boolean any();",
"public static boolean anyBool() {\n return anyBool(Moxy.getMoxyEngine());\n }",
"public static boolean anyEmpty(Object... args) {\n if (args == null) {\n return true;\n }\n for (Object val : args) {\n if (isEmpty(val)) {\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the number of pages that have been downloaded so far. | void setPages(int pages); | [
"public void setPagescount(int value) {\r\n this.pagescount = value;\r\n }",
"public void setNumPages(int numPages) {\n this.numPages = numPages;\n\n }",
"public void setNoOfPages(final String noOfPages) {\n\t\tthis.noOfPages = noOfPages;\n\t}",
"public void setPageCount (int pageCount)\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "DiscreteDataType" $ANTLR start "ContinuousDataTypeInequality" | public final void mContinuousDataTypeInequality() throws RecognitionException {
try {
int _type = ContinuousDataTypeInequality;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ./completeOncoPrintSpecAST.g:200:31: ( '&ContinuousDataTypeInequality' )
// ./completeOncoPrint... | [
"private dataType (String in_dataType,float in_minValue,float in_maxValue, float in_notEqValue) {\n\t\t\tthis.type = in_dataType;\n\t\t\tthis.dateFormat = \"\";\n\t\t\tthis.timeFormat = \"\";\n\t\t\tthis.timestampFormat = \"\";\n\t\t\tthis.maxLength = MAX_LENGTH_INDICATOR;\n\t\t\tthis.minValue = in_minValue;\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string owner = 1; | com.google.protobuf.ByteString
getOwnerBytes(); | [
"public void setOwner(String owner) { this.owner = owner; }",
"public void setOwner(String owner)\r\n {\r\n this.owner = owner;\r\n }",
"void setOwner(int owner);",
"public void setOwnerValue(String theOwnerValue)\n {\n ownerValue = theOwnerValue;\n }",
"public String getOwner()\n {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO auto generated method | @Override
public void onCreate( Bundle savedInstanceState ){
super.onCreate(savedInstanceState);
setContentView( R.layout.HelloActivity );
} | [
"@Override\n }",
"@Override\n public void extornar() {\n \n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"protected void method_5557() {}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Walks the chain of the node | public static Route walk(Node node) {
return walk(node, new LinkedList<>());
} | [
"public void traverse() {\n\t\tif(left != null && left.operator == 'c' && right != null && right.operator == 'c') {\n\t\t\toperator = 'c';\n\t\t\toperand = left.operand + right.operand;\n\t\t\tleft = null;\n\t\t\tright = null;\n\t\t}\n\t\t\n\t\tif(left != null)\n\t\t\tleft.traverse();\n\t\tif(right != null) \n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructors Constructor for creating a matrix with n rows and m columns, with a minimum of 1 row and 1 column | public Matrix (int n, int m) {
// Set the dimensions of the matrix
this.rows = Math.max(1, n);
this.cols = Math.max(1, m);
} | [
"public Matrix()\n {\n this(1, 1, 0);\n }",
"Matrix(int n){ \n size = n; // size is the size of the n = n matrix\n //entries = 0; // no entries in the empty matrix that is created \n\tif (n>=1){ // condition \n Array = new List[n]; // an array of type list is created of size n\n f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by TOSHIBA on 19/04/2017. | public interface LoginPresenter {
void login(String username, String password);
} | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"public void mo1857d() {\n }",
"public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/Find successor in chord ring | public int findSuccessor(int key) throws RemoteException
{
//System.out.println("finding successor for:" + key);
ArrayList<Integer> result = new ArrayList<Integer>();
synchronized(responsibleKeys)
{
if(responsibleKeys.contains(key))
{
return myId;
}
}
if(successorId == predecessorId)
{
... | [
"private static int findDirectionOfNext(String[] neighborsOfCurr, Character next) {\n for (int j = 0; j < neighborsOfCurr.length; j++) {\n if (neighborsOfCurr[j] == null) {\n continue;\n }\n for (Character neighbor : neighborsOfCurr[j].toCharArray()) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
exp > Exp() nodeListOptional > ( ExpRest() ) | public void visit(ExpList n); | [
"private List<Exp> getExpList() throws Exception {\n\tToken first = t;\n\tList<Exp> expList = new ArrayList<>();\n\tif (isKind(LPAREN))\n\t consume(); // working for multipletest , not working for f(a)[b]\n\texpList.add(exp());\n\twhile (isKind(COMMA)) {\n\t consume();\n\t expList.add(exp());\n\t}\n\tretur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public InputStream getInputStream() throws SharkKBException {
return null;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes an edge from incidence list. | @Override
public void remove(DatabasePersistableEdge edge) {
assert contains(edge);
if (sequenceNumberToIdMap.containsKey(edge
.getSequenceNumberInLambdaSeq())) {
sequenceNumberToIdMap.remove(edge.getSequenceNumberInLambdaSeq());
/*
* As it is not known here if incidence will be completely deleted
... | [
"public void remove(Edge edge);",
"public void removeEdge(Edge<V,E> edge);",
"public void removeEdge(Edge edge)\r\n {\r\n this.inEdges.remove(edge);\r\n this.outEdges.remove(edge);\r\n }",
"public void removeEdge(TreeEdgeI edge);",
"public void remove( IEdge<T,U> edge );",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Configure SNMP settings on VCenter | private String configureAllSNMPOnVcenterScript(String vcenterIPPort2,
String vcenterUser2, String vcenterPassword2, boolean SetSNMPFlag) {
String configureAllSNMPSettingsScript = Config.TestResultFolder
+ "\\ConfigureAllSNMPSettingsVcenter.ps1";
String result = null;
String[] splitVcenterNameAndPort = vcen... | [
"public void setOdlNetconfHost2(String x) throws SnmpStatusException;",
"public void setOdlNetconfPort2(String x) throws SnmpStatusException;",
"public void setOdlNetconfStatus2(String x) throws SnmpStatusException;",
"protected void new_value(int n, varbind res) \n{\n AsnObject obj = res.getValue();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calls method above and check whether all checks have been validated | @Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.signbut:
registerUser(v);
}
} | [
"private void performChecks() {\n\n\t}",
"public boolean validate() {\n\t\tfor (Check check : checks.keySet()) {\n\t\t\tcheck.recheck();\n\t\t}\n\t\treturn ! containsErrors();\n\t}",
"public static void performChecks() {\n\t\t\n\t}",
"@Override\n\tpublic void validCheck() {\n\t\t\n\t}",
"boolean needValidat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
handler method for logout | @RequestMapping(value = "/app-logout")
public String logout(HttpServletRequest request, HttpServletResponse response) {
String loginUserName = null;
//first we are going to fetch the authentication obj
Authentication auth = SecurityContextHolder.getContext().getAuthentication();
loginUserName = ((User... | [
"public void logout(){}",
"@Override\r\n\tpublic void logout() {\n\r\n\t}",
"private void logoutUser() {\n\n }",
"private void handleLogout()\n {\n if(SessionController.getInstance().isLogin())\n {\n SessionController.getInstance().logOut();\n getUI().ifPresent(ui-> u... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
to append into a json file | public static String writeToJsonFile(String fileLocationPath, String testRailTestRunName,String testRailProjectId, String testRailSuiteId, String linkCasesBy, String isFinalAttempt, String resultEmailRecipient,String runId,String retryCountNo, String isSaveToTestRail)
{
try{
File file = new Fil... | [
"public static void addToJson(Run run) {\r\n Gson gson= new GsonBuilder().setPrettyPrinting().create();\r\n try {\r\n boolean bool= true;\r\n String name= \"data\";\r\n while (bool) {\r\n String temp= name;\r\n File tempFile= new File(temp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
camera intent Result received by the camera intent containing the path to the image file | @Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (resultCode == RESULT_OK) {
// If its a picture taken from the camera
if (requestCode == Constants.REQUEST_PROFILE_IMAGE_CAPTURE) {
Log.d(LOG + " onActivityResult", "Photo ta... | [
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {\n Uri selectedImage = data.getData();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column CTS_RAISED_VALIDATION_TMP.COMP_CODE | public void setCOMP_CODE(BigDecimal COMP_CODE) {
this.COMP_CODE = COMP_CODE;
} | [
"public void setCode(int tmp) {\n this.code = tmp;\n }",
"public void setRespValidationCode(String respValidationCode) {\n this.respValidationCode = respValidationCode;\n }",
"public void setCode(String tmp) {\n this.code = Integer.parseInt(tmp);\n }",
"public void xsetCurrcode(org.apache.xmlbeans... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
finding the appropriate rules for each word by 38 rules and relations by 5 categories | public void findRelnIndex() {
System.out.println("inside findReinindex");
j = 0;
total = root.size();
result += "[r]#";
while (j < total) {
try {
rootrel.add("None");
currword = root.get(j).toString();
pos_word = pos.get(j).toString();
// //System.out.println("pos_word:" + pos_word);
u_... | [
"private void initRules()\n\t{\n\t\t// S -> NP VP\n\t\tString s = \"S\";\n\t\tString[] s1 = { \"NP\", \"VP\" };\n\t\tRHS[] sRHS = { new RHS(s1) };\n\t\tRules.put(s, sRHS);\n\n\t\t// NP -> NP PP\n\t\t// NP -> Noun\n\t\t// NP -> NP Conj NP\n\t\t// NP -> Article NP\n\t\t// NP -> Adj NP\n\t\tString np = \"NP\";\n\t\tSt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Toast.makeText(context,"").show(); Everything is bien! mandar texto que se ha prendido o apagado; | @Override
public void onResponse(Boolean response) {
} | [
"public void showToast() {\n Context context = getApplicationContext();\n CharSequence text;\n final Toast toast;\n int duration = Toast.LENGTH_LONG;\n text = \"Not enough gold!\";\n\n toast = Toast.makeText(context, text, duration);\n toast.show();\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sign a transaction. This account needs to be unlocked. | public RpcMsg eth_signTransaction(Object _params) {
JSONObject _tx;
// Address to sign with
String _address = null;
if (_params instanceof JSONArray) {
_tx = ((JSONArray) _params).getJSONObject(0);
if (((JSONArray) _params).length() > 1) _address = ((JSONArray) _... | [
"@Override\n public AbstractTransaction sign(AbstractKeyring keyring) throws IOException {\n return this.sign(keyring, TransactionHasher::getHashForSignature);\n }",
"public native byte[] SignTransaction(byte[] tx, String keyPass, byte[] privateKey);",
"@Override\n public AbstractTransaction sig... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onMainAction(int packet_type) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves a Terminal checkout request by `checkout_id`. | GetTerminalCheckoutResponse getTerminalCheckout(
final String checkoutId) throws ApiException, IOException; | [
"public Request getRequestById(Long id);",
"@PostMapping(\"/carts/query/checkout/{cartId}/order/{orderId}\")\n public ResponseEntity<?> checkout(@PathVariable String cartId,@PathVariable String orderId){\n CircuitBreaker circuitBreaker = circuitBreakerFactory.create(\"circuitbreaker\");\n\n Shopp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
isPrime method to check whether the number is prime or not | public static boolean isPrime(int num) {
if(num>1) {
/** Math.sqrt is used to optimize the time complexity */
for(int i=2;i<=Math.sqrt(num);i++) {
if(num%i==0)
return false;
}
return true;
}
else
return false;
} | [
"public boolean isPrime(BigInteger number);",
"public static boolean isPrime(int number) {\n\t\treturn false;\n\t}",
"public static boolean isPrime(int number){\n int i = 2;\n if (number == 2) return true;\n else if (number < 2) return false;\n else {\n while (i < number) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ save the layouts of UT window for reuse on opening | public static void saveUTLayout(Dimension size, Point p,int divloc){
JsonObject lay = getLayouts();
lay.add("UTsize", new JsonPrimitive(size.getWidth()+" "+size.getHeight()));
lay.add("UTlocation", new JsonPrimitive(p.getX()+" "+p.getY()));
lay.add("UTh1splitlocation", new JsonPrimitive(... | [
"private void saveDialogSettings() {\r\n IDialogSettings dialogSettings = KlayDebugViewPlugin.getDefault().getDialogSettings();\r\n \r\n Point size = getShell().getSize();\r\n dialogSettings.put(SETT_BOUNDS + \".x\", size.x); //$NON-NLS-1$\r\n dialogSettings.put(SETT_BOUNDS + \".y... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column ji_fen_huo_qu.id | public void setId(Integer id) {
this.id = id;
} | [
"public void setIdSucursal(Integer idSucursal)\r\n/* 73: */ {\r\n/* 74: 79 */ this.idSucursal = idSucursal;\r\n/* 75: */ }",
"public void setIdSucursal(int idSucursal)\r\n/* 84: */ {\r\n/* 85:101 */ this.idSucursal = idSucursal;\r\n/* 86: */ }",
"public void setIdSucursal(int i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Description of the project. 0256 characters long. string description = 4 [(.yandex.cloud.length) = "<=256"]; | @java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) re... | [
"void setProjectDescription(String description);",
"@NotNull String getDescription();",
"@javax.persistence.Column(name = \"DESCRIPTION\", nullable = true, insertable = true, updatable = true , length = 3800)\n public java.lang.String getDescription() {\n return description;\n }",
"@objid (\"01f4... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public int selectTotalFollower(int mNo) {
return myPageDao.selectTotalFollower(mNo);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the effectiveDate property. | public long getEffectiveDate() {
return effectiveDate;
} | [
"public Long getEffectiveDate() {\n return effectiveDate;\n }",
"public WDate getEffectiveDate()\n\t{\n\t\treturn m_effectiveDate;\n\t}",
"public java.sql.Date getEffectiveDate()\r\n\t\t{\r\n\t\t\tjava.sql.Date sqlDob = new java.sql.Date(effectiveDate.getTime()); \r\n\t\t\treturn sqlDob;\r\n\t\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor where clients can indicate the number of cores to parallelize. | public PacManParallelEvaluator(int cores)
{
this.cores = cores;
} | [
"public CPU(int cores){\r\n this.maxCores = cores;\r\n this.r = new Random();\r\n }",
"public ParallelCalls() {}",
"public void setNumCores(Float numCores) {\n this.numCores = numCores;\n }",
"static int numberOfCores() {\r\n\t\treturn Runtime.getRuntime().availableProcessors();\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a point with its 2 cartesian's coordinates : Xp, Yp. | public gp_Pnt2d(double Xp, double Yp) {
this(OCCwrapJavaJNI.new_gp_Pnt2d__SWIG_2(Xp, Yp), true);
} | [
"public CartesianPoint(int x, int y) {\n //this creates a cartesian point with basic coordinates.\n }",
"public Point(double x, double y)\r\n\t{\r\n\t\tpointX = x;\r\n\t\tpointY = y;\r\n\t}",
"public Point2d(double x, double y) { this.x = x; this.y = y; }",
"public Point(int x, int y)\n\t{\n\t\tthis.point... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets (as xml) the "peek_time_max" attribute | org.apache.xmlbeans.XmlDouble xgetPeekTimeMax(); | [
"public String getMaxGetTime() {\n \n \t\treturn defaultConnectionRequestInfo.getProperty(DestinationDataProvider.JCO_MAX_GET_TIME);\n \t}",
"public int getTimeMax () {\n\t\t\treturn this.timeMax;\n\t\t}",
"public Integer getTimeMaxT() {\n return timeMaxT;\n }",
"public long getMaxTime() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The accuracy test of the clone method. | public void testClone() {
Object cloneObject = likeFilter.clone();
assertTrue("The Object should be instance of LikeFilter.",
cloneObject instanceof LikeFilter);
LikeFilter another = (LikeFilter) cloneObject;
//value should be same
assertEquals("The filter v... | [
"public void testClone()\n {\n System.out.println( \"Clone\" );\n\n WeightedNumberAverager instance = new WeightedNumberAverager();\n WeightedNumberAverager clone = (WeightedNumberAverager) instance.clone();\n assertNotSame( instance, clone );\n assertNotNull( clone );\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calls getSelectedIds method from ListViewAdapter Class | @Override
public void onClick(DialogInterface dialog, int which) {
SparseBooleanArray selected = noteAdapter.getSelectedIds();
// Captures all selected ids with a loop
... | [
"@OnItemClick(android.R.id.list)\n void onListClicked(long id) {\n listener.onListSelected(id);\n }",
"private void handleSelectComplete() {\n\t\tArrayList<String> ids = new ArrayList<String>();\r\n\t\tfor(int i = 0; i < mAdapter.getCount(); ++i) {\r\n\t\t\tif(mLvStudents.isItemChecked(i)) {\r\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Auto generated method signature | public com.mingdasoft.IdCheckResponse idCheck(
com.mingdasoft.IdCheck idCheck22)
throws java.rmi.RemoteException
; | [
"default String getSignature() {\n StringBuffer sb = new StringBuffer();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string realName = 3; | public com.google.protobuf.ByteString
getRealNameBytes() {
java.lang.Object ref = realName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
realName_ = b;
return b;
... | [
"private String nameOf(String name) {\n return name.split(\":\")[0];\n }",
"public static String makeName() {\r\n\t\tString name = \"Uwen\";\r\n\t\treturn name;\r\n\t}",
"static String whatsMyName(){\n return \"Ben\";\n }",
"java.lang.String getName2();",
"private static void forName(Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the d02_INP_NO02 value for this D02InputSettlementBean. | public void setD02_INP_NO02(java.lang.String d02_INP_NO02) {
this.d02_INP_NO02 = d02_INP_NO02;
} | [
"public void setF02(String f02) {\n this.f02 = f02 == null ? null : f02.trim();\n }",
"public void setCol02(String col02) {\n this.col02 = col02;\n }",
"Matrix4d _m02(double m02) {\n this.m02 = m02;\n return this;\n }",
"public void setDate02(Date date02) {\n this.d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the strategy used if an argument to this execution can't be injected. | MissingArgumentStrategy getMissingArgumentStrategy(); | [
"@org.jetbrains.annotations.NotNull java.lang.String getStrategy();",
"@Override\n public int getStrategy() {\n return strategy;\n }",
"public int getStrategy(){\n\t\t\n\t\treturn strategy;\n\t\t\n\t}",
"public interface Strategy {\n\n\t/**\n\t * Method whose implementation varies depending on th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
send data to the server | public void send_data(String data){
try{
output_data.writeUTF(data);//write string to the other connection
}
catch(Exception e){
System.out.println(e);
}
} | [
"public static void sendData() {\n }",
"public void send(String data){\r\n\t\tout.println(data);\r\n\t}",
"private void sendData(String data) {\n\t\t\n\t\tLOG.log(Level.INFO, \"SENT: \" + data);\n\t\t\n\t\t// Print the data and flush the stream.\n\t\tout.println(data);\n\t\tout.flush();\n\t}",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Es wird in der Methode gefragt , ob Der Kunde die Adresse in Acount sperichern will. | void memory(String adresse); | [
"public Address getAddress() {return this.address ;}",
"java.lang.String getBillingAddress();",
"public String getAddress()\n/* */ {\n/* 148 */ return this.address;\n/* */ }",
"public String getAddress(){\r\n return this.address.getAddress();\r\n }",
"public String getAddress(){\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove a property change listener for module change events. | public void removeModuleChangeListener(PropertyChangeListener listener) {
propertySupport.removePropertyChangeListener(listener);
} | [
"public void removePropertyChangeListener(PropertyChangeListener pcl);",
"public void removePropertyChangeListener(PropertyChangeListener li)\n {\n listeners.removePropertyChangeListener(li);\n }",
"public void removePropertyChangeListener(PropertyChangeListener pcl, Object o);",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Launch Application by passing browser name as parameter | @Test
public static void custPwd()
{
GenericFunctions gnf = new GenericFunctions();
gnf.launchApplication("firefox");
//Initialize elements of login page using page Factory class
Bank_Login_Generic lgnbnk = PageFactory.initElements(driver, Bank_Login_Generic.class);
lgnbnk.adminLogin();
//I... | [
"public void launchBrowser(String browserName) {\n\t\t\tSystem.out.println(\"brower name is : \" + browserName);\n\t\t\t\n\t\t\t\n\t\t\tif (browserName.equalsIgnoreCase(\"chrome\")) {\n\t\t\t\tSystem.out.println(\"launch chrome...\");\n\t\t\t}\n\n\t\t\telse if (browserName.equalsIgnoreCase(\"firefox\")) {\n\t\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XAssignment__Group_1_1_0_0__1__Impl" $ANTLR start "rule__XOrExpression__Group__0" ../org.xtext.tortoiseshell.ui/srcgen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:3996:1: rule__XOrExpression__Group__0 : rule__XOrExpression__Group__0__Impl rule__XOrExpression__Group_... | public final void rule__XOrExpression__Group__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:4000:1: ( rule__XOrExpression__Group... | [
"public final void rule__XOrExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g:14959:1: ( rule__XOrExpression__Group__0__Impl rule__XOrExp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new Set of APIparameters. | public ApiParams(String... params) {
this();
if (params != null && params.length > 0 && (params.length % 2 == 0)) {
// There are given params and params can be interpreted as pairs of key and value
int i = 0;
while (i < params.length) {
parameter... | [
"public WebServiceParameterSet()\n {\n super();\n this._serviceURLList = new java.util.Vector();\n }",
"public Set<XmlParameter> buildParameters()\n {\n return null;\n }",
"gov.nih.nlm.ncbi.www.Blast4ReplyBodyDocument.Blast4ReplyBody.GetParamsets addNewGetParamsets();",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handles the HTTP POST method. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
} | [
"@Override\n\tpublic void handlePost(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\n\n\n }",
"@Override\n public void post(String path) {\n \n }",
"@Override\r\n\tpub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a charge history: no president or secretary. | @Test(expected = javax.validation.ConstraintViolationException.class)
public void createChargeHistoryNegativeTestBoolean() {
this.authenticate("manager1");
ChargeHistory chargeHistory;
Date mandateEnding;
Owner owner;
chargeHistory = chargeHistoryService.create(52);
mandateEnding = new Date(2016 - 1900, ... | [
"PersonHistory createPersonHistory();",
"private void generateHistory(Order order) throws DAOException {\n LOGGER.debug(\"entering generateHistory with parameters \" + order);\n\n final String query = \"INSERT INTO RestaurantOrderHistory \" +\n \"(SELECT *, CURRENT_TIMESTAMP(), ?, \" ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
use this method to store the logged in user currently there is no use for this method | private void handleSuccessfulLogIn(User user) {
} | [
"public User getCurrentuser();",
"@Override\n public void getUser() {\n bUser = DatabaseId.getCurrentUser();\n }",
"private void storeUser() {\n if(user==null) {\n user = new User();\n Log.d(TAG, FirebaseAuth.getInstance().getCurrentUser().getUid() + \" \" + FirebaseAuth.getIns... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public boolean keyUp(int keycode) {
return false;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .hadoop.yarn.ResourceProto resource = 2; | org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource(); | [
"com.weizhu.proto.TagProtos.Resource getResource();",
"public com.weizhu.proto.TagProtos.ResourceOrBuilder getResourceOrBuilder() {\n if (resourceBuilder_ != null) {\n return resourceBuilder_.getMessageOrBuilder();\n } else {\n return resource_;\n }\n }",
"yandex.clou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.lnrpc.ConfirmationUpdate confirmation = 2[json_name = "confirmation"]; | public lightpay.lnd.grpc.ConfirmationUpdate.Builder getConfirmationBuilder() {
return getConfirmationFieldBuilder().getBuilder();
} | [
"Message editAddress(String json);",
"ActionResponse.Update update();",
"public void setRegistrationresponses(Registrationresponses param){\n \n this.localRegistrationresponses=param;\n \n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo recopilatorio para insertar | public void inserData(){
String tableSelect=elegantTableName(
filterTables.getSelectedItem().toString(),false);
ArrayList dataRaw = new ArrayList();
String[] tables={
"equipo",
"jornada",
"jugador",
"partido",
... | [
"@Override\n\tpublic void inserir(Contato contato) {\n\t\t\n\t}",
"private static void insert() {\n\t\t\n\t}",
"@Override\n\tpublic void insertar(AyudasXunta a) {\n\t\t\n\t}",
"@Override\n public void preInsert() {\n\n }",
"public abstract void insertar() throws A138AccesoDatosEx;",
"@Override\r\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Show 3 total pages. | @Override
public int getCount() {
return 3;
} | [
"@Override\r\n\t\t\tpublic int getCount() {\n\t\t\t\treturn PAGES;\r\n\t\t\t}",
"@Override\n\tpublic int noOfPages() {\n\t\treturn 5;\n\t}",
"private void updateListOfPages() {\r\n if(numberOfResults != UNKNOWN_NUMBER_OF_RESULTS) {\r\n pageListPanel.clear();\r\n pageListPanel.add(new Label(\"Page\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the title of Login Page | public String getForgotPasswordText(){
return forgotPassword.getText();
} | [
"@Step(\"getting the login page title....\")\n\tpublic String getLoginPageTitle(){\n\t\t\n\t\treturn util.waitForTitlePresent(Constants.LOGIN_PAGE_TITLE, 10);\n\t}",
"public String validateLoginPageTitle() {\n\t\t\n\t\treturn(driver.getTitle());\n\t}",
"public String validateLoginPageTitle(){\n\t\t\n\t\tretur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes a given result. | String delete(T entity); | [
"@GenIgnore(GenIgnore.PERMITTED_TYPE)\n @Fluent\n Neo4jClient delete(String query, Handler<AsyncResult<List<Record>>> resultHandler);",
"@GenIgnore(GenIgnore.PERMITTED_TYPE)\n @Fluent\n Neo4jClient delete(String query, Value parameters, Handler<AsyncResult<List<Record>>> resultHandler);",
"int delet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Auto generated method signature | public com.mingdasoft.ChargeCancelResponse chargeCancel(
com.mingdasoft.ChargeCancel chargeCancel52)
throws java.rmi.RemoteException
; | [
"default String getSignature() {\n StringBuffer sb = new StringBuffer();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Assoicate a G2Proxy with a java object for a connection | public void associate(G2Connection g2Connection,
Item g2Proxy,
Object javaObject) {
// Get the connection Registry for this connection
ConnectionRegistry registryInfo = getConnectionRegistry(g2Connection);
registryInfo.associate(g2Proxy, javaObject);
} | [
"void setProxy(Proxy proxy);",
"Proxy() {\n logger.info(\"proxy init\");\n }",
"public ProxyConnection (){\r\n\t\tif (realConnection == null){\r\n\t\t\trealConnection = new RealConnection();\r\n\t\t}\r\n\t}",
"public static void connect(Object paramObject1, Object paramObject2) throws IOExce... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests the getBalance method | @Test
public void testGetBalance() {
assertEquals(0, vm.getBalance(), 0.001);
} | [
"@Test\r\n public void testGetBalance() {\r\n System.out.println(\"getBalance\");\r\n double expResult = 1000.99;\r\n double result = new_shop.getBalance();\r\n assertEquals(expResult, result, 0.0);\r\n }",
"@Test\r\n\tpublic void getBalanceTest() {\r\n\t\tBalanceRequest reques... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the given files as root for the given Users | private void execRootScript(String aRootScript)
{
if (!"".equals(aRootScript))
{
Debug.log("Will Execute: " + aRootScript);
try
{
String result = ShellScript.execAndDelete(new StringBuffer(aRootScript), File.createTempFile(
... | [
"public boolean removeUser(User user, File file);",
"protected void cleanup() {\n \t\tList<String> removal = new ArrayList<String>();\n \t\t// Iterate through the users\n \t\tfor(String user : users.keySet()) {\n \t\t\tUser u = users.get(user);\n \t\t\tif(u.getPermissions().size() == 0 &&\n \t\t\t\t\t(u.getGroups... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
//////////////// /////////////////////TEST TABLE////////////////////// //////////////// | public ArrayList<String> selectFromTestTableDistTestId() throws SQLException
{
ArrayList<String> data = new ArrayList<>();
Statement s = dbConn.createStatement();
ResultSet rs = s.executeQuery("SELECT DISTINCT testId FROM testTable");
while (rs.next())
{
data.add(... | [
"@Test\r\n public void testTable() {\r\n String[] columnTitles = {\"SID\", \"CCN\", \"Grade\"};\r\n Table table1 = new Table(columnTitles);\r\n String[] actual = new String[3];\r\n for (int i = 0; i < 3; i++) {\r\n actual[i] = table1.getTitle(i);\r\n }\r\n ass... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
///////////////////////////////// METODOS PRIVADOS /////////////////////////////////// | private void atualizarListasDeProdutos() {
for(int i=0; i<produtosEmLeilao.size(); i++) {
Produto produto = produtosEmLeilao.get(i);
atualizaSeFoiVendido(produto);
atualizaSeVenceuENaoFoiVendido(produto);
}
} | [
"private Privileges(){\n privileges = new HashMap<>();\n initPrivileges();\n }",
"private void initPrivileges() {\n this.privileges.put(\"Guest\", new HashSet<>(Arrays.asList\n (\"viewPages+LS\", \"searchByNCK\")));\n this.privileges.put(\"Fan\", new HashSet<>(Arrays.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the user name. | public String getUserName() {
return userName;
} | [
"public String getUserName() {\n\t\treturn prvPref.getString(\"USER_NAME\", null);\n\t}",
"public String getUserName() {\n \n userName = user.getText();\n return userName;\n }",
"public String getUserName() {\n if (Backendless.UserService.CurrentUser() != null) {\n try ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns spot if it is within bounds. Null is returned otherwise | public static Spot getSpot(int x, int y ){
if(x<15 && x>-1 && y<17 && y>-1){
return spots[x][y];
}
return null;
} | [
"public int whichSpot(int x, int y) {\n int id, px=0,py=0;\n int delta = gridUnit;\n for (id = 1; id <= NUM_PEG_LOC; id++) {\n px = xyLookUpByID[id][0];\n py = xyLookUpByID[id][1];\n if ( (Math.abs(px-x)<=delta) && (Math.abs(py-y)<=delta)){ \n return id;\n }\n }\n return -1;\n }",
"public GObject... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Operation__Group_4__0__Impl" $ANTLR start "rule__Operation__Group_4__1" ../org.xtext.idm.projet.ui/srcgen/org/xtext/idm/projet/ui/contentassist/antlr/internal/InternalStateMachine.g:2707:1: rule__Operation__Group_4__1 : rule__Operation__Group_4__1__Impl ; | public final void rule__Operation__Group_4__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.idm.projet.ui/src-gen/org/xtext/idm/projet/ui/contentassist/antlr/internal/InternalStateMachine.g:2711:1: ( rule__Operation__Group_4__1__Impl )... | [
"public final void rule__Operation__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.mydsl2.ui/src-gen/org/xtext/example/mydsl2/ui/contentassist/antlr/internal/InternalMyDsl.g:357:1: ( rule__Operation... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the stock type | public StockType getStockType() {
return stockType;
} | [
"Object getTransmissionProductType();",
"public String type()\n {\n return \"high end/luxury car\";\n }",
"Stock getStock(String stockSymbol);",
"public com.basho.riak.protobuf.AntidotePB.TpccStock getStock() {\n if (stockBuilder_ == null) {\n return stock_;\n } else {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test for empty super list | @Test
public void testEmptySuperListHasNext() throws Exception {
List superlist = new ArrayList();
FacadeList list = new FacadeList(superlist, CvParam.class);
ListIterator it = list.listIterator();
assertFalse(it.hasNext());
} | [
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn internal_list.isEmpty();\n\t}",
"@Override\r\n\tpublic boolean isEmpty () {\n\t\treturn this.internal_list.isEmpty();\r\n\t}",
"public boolean isEmpty(){ \r\n return list.isEmpty();\r\n }",
"public boolean isEmpty()\r\n { return l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the "type" attribute | public void setType(com.transerainc.aha.gen.agent.MessageType.Enum type)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user... | [
"public void setType(String _type) { type = _type; }",
"public void setType (String type) {\n this.type = type;\n\t}",
"public void setType(String type)\n {\n this.type = type;\n }",
"public final void setType(String type) {\r\n\t\tthis.type = type;\r\n\t\tnotifyUpdateListeners();\r\n\t}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validate that the repose code is 200 | @Test
public void ValidateReponseCode()
{
Assert.assertEquals(Resp.getStatusCode(), 200);
} | [
"@Test\n public void checkStatusCode() {\n given().\n spec(requestSpecification).when().\n get(\"/90210\").\n then().spec(responseSpecification);\n }",
"private static void checkResponseCode(int code, HttpRequestHelper.Response response) {\n if (res... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |