query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information. | public interface OnStepListListener {
void onStepListClick(Step item);
} | [
"public interface MainActivityFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}",
"public interface ActivitytoFragment {\n void communicate(boolean comm);\n\n}",
"public interface TalkToIndividualFragment {\n /**\n * report how many has added in remote data... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ask user to login before showing current bookings | public void actionPerformed(ActionEvent arg0){mainFrame.showTimeSelectionScreen();} | [
"public void logIn(ActionEvent actionEvent) throws IOException{\n String user=username.getText();\n String pass;\n if(visiblePass.isVisible()){\n pass=visiblePass.getText();\n } else{\n pass=password.getText();\n }\n User check=ClientAPI.login(user, pa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Init the user interface for creating/editting the definition. | public JPanel initUi() {
Log.i(this, "initUi()");
updateLayerList();
// Set actionlisteners to buttons, lists etc.
definitionJPanel.jListLayers.addListSelectionListener(this);
definitionJPanel.jButtonNewLayer.addActionListener(this);
definitionJPanel.jButtonRemoveLayer.addActionListener(this);
definitio... | [
"private void initUI() {\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.form = new XdevGridLayout();\n\t\tthis.lblNummer = new XdevLabel();\n\t\tthis.txtNummer = new XdevTextField();\n\t\tthis.lblKennzeichen = new XdevLabel();\n\t\tthis.txtKennzeichen = new XdevTextField();\n\t\tthis.lblNutzlast = new XdevL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for the COM property "Rotation" | @VTID(46)
float getRotation(); | [
"@VTID(46)\n float getRotation();",
"public int getRotation() {\r\n return rotation;\r\n }",
"public int getRotation() {\n \t\treturn rotation;\n \t}",
"public Rotation getRotation() {\n\t\treturn rotation;\n\t}",
"@Override\n\tpublic float getRotation() \n\t{\n\t\treturn _rotation;\n\t}",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method calculates the x and y components of the instantaneous acceleration vector of any object of mass m under influence of another object | public static double [] accelSunAnyObj( double mPullObj,double [] objPos1, double [] objPos2) {
double rMagnitude;
double [] rVector = new double [2];
double [] unit = new double [2];
double [] accelVector = new double [2];
double accelMagnitude;
rVector = getR(objPos1,objPos2); //vector components of pos
rMag... | [
"void updateAcceleration() {\n \n // Reset this entity's acceleration vector:\n acceleration.updateComponents(0, 0);\n \n // Get this entity's position:\n double x1 = position.getX();\n double y1 = position.getY();\n \n // Keep track of the new accelera... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Este metodo regresara la lista de marcas | public ArrayList<Catalogo> getCatalogo(); | [
"private void carregarPacienteMedicoList() {\n\t\tthis.setPacienteList(new ArrayList<Paciente>());\n\t\tthis.getPacienteList().addAll(this.getConsultaDAO().getPacientePorMedicoDataConsultaList(this.getMedicoSessao()));\n\t}",
"public void buscarPorNombres(){\r\n\t\tSystem.out.println(\"imprimir\"+ nombreABuscar);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validate that a field is not empty. | public boolean validate(String key) {
return map.containsKey(key) && !map.get(key).equals("");
} | [
"private boolean checkIfEmpty(JTextField field){\r\n\t\tif(field.getText().equals(null) || field.getText().trim().length() <=0)\r\n\t\t\treturn true;\r\n\t\telse \r\n\t\t\treturn false;\r\n\t}",
"private boolean anyFieldsBlank() {\n\n return \"\".equals(adventureName.getText().toString());\n\n }",
"@D... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the node at a given index. | public RouteNode getNode(int index) throws IndexOutOfBoundsException {
try {
return nodes.get(index);
} catch (IndexOutOfBoundsException e) {
throw new IndexOutOfBoundsException();
}
} | [
"public Node getNode ( int index ) ;",
"public N getNodeAt(int index);",
"public Node getNode(int index) {\n return node_.get(index);\n }",
"public Node getNodeByIndex(int index) {\n\t\tfor (Node node : nodes) {\n\t\t\tif (node.getIndex() == index) {\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\tthrow ne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets the z coordinate | public void setZ(double myZ) {
_z = new Coordinate(myZ);
} | [
"private void setZ(int z) {\r\n\t\tthis.z = z;\r\n\t}",
"public void setZ(float z) {\n this.position.z = z;\n }",
"@SuppressWarnings(\"unused\")\n public synchronized void setZ(float z) {\n this.z = z;\n }",
"public void setZ(T z) {\n\t\tgetValues().set(2, z);\n\t}",
"@Override\n pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Binds a custom output configuration provider. | public Class<? extends IOutputConfigurationProvider> bindIOutputConfigurationProvider() {
return CheckOutputConfigurationProvider.class;
} | [
"@FunctionalInterface\n@ImplementedBy(PyGeneratorConfigurationProvider.class)\npublic interface IPyGeneratorConfigurationProvider {\n\n\t/** Replies the configuration for the given context. If the configuration does not exist, it may be automatically\n\t * installed within the context.\n\t *\n\t * @param context th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the defaults. In particular, this initializes default objects, sets default names, locales, and spawn points if the quest file does not use them. | private void setDefaults(String id){
questname = id;
// DEFAULTS start
displayname = questname;
displaydesc = I18NMessage.Quest_NODESC.getDescription();
displayaccept = I18NMessage.Quest_ACCEPT.getDescription();
displaycancel = I18NMessage.Quest_ABORT.getDescription();
displayfinish = I18NMe... | [
"public void setDefaults() {\n try {\n KeyBindHelper.loadDefaults();\n } catch (IOException e) {\n AbstractGame.LOGGER.log(LogSeverity.CRITICAL, \"File\",\n \"Loading the default settings failed.\");\n }\n }",
"public void setDefaults()\r\n\t{\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a new Value to the database | public String addValue(Value value) throws SQLException
{
ArrayList<Object> values = new ArrayList<Object>();
values.add(value.getRecordNum());
values.add(value.getValue());
values.add(value.getFieldID());
values.add(value.getBatchID());
values.add(value.getImageURL());
String columnNames = "RecordNum... | [
"void add(ODBObject value) throws ConstraintViolationException;",
"public Try<DataColumn<T>> addItem(T value) {\n return Try.success(createColumn(this.data.append(value)));\n }",
"public final void add(final Long key, final Serializable value) {\n System.out.println(\"New object received: \" + ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs the DialogBoxImage object. | private DialogBoxImage(String text, Image user, Image picture) {
super(FXML);
dialog.setText(text);
dialog.setMinHeight(Label.USE_PREF_SIZE);
roundImageView(user);
setPictureView(picture);
} | [
"public DialogBox(Label l, ImageView iv) {\n text = l;\n displayPicture = iv;\n\n text.setWrapText(true);\n text.setStyle(\"-fx-text-fill: BLACK;\");\n text.setFont(Font.font(\"Comic Sans MS\", FontWeight.NORMAL, FontPosture.REGULAR, 13));\n\n displayPicture.setFitWidth(150... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column message.user_id | public Long getUserId() {
return userId;
} | [
"public Long getIdUser() {\r\n return idUser;\r\n }",
"public Integer getUserId() {\n\t\treturn this.userId;\n\t}",
"@Column(name = \"UserName\")\n public String getUserId() {\n return getUserName();\n }",
"UserMessage selectByPrimaryKey(Integer idUsermessage);",
"public int getIdUser... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the parentID value for this SummaryMailingReport. | public java.lang.String getParentID() {
return parentID;
} | [
"public String getParentId() {\n return mBodyMap.containsKey(BoxFolder.FIELD_PARENT) ? (String) mBodyMap.get(BoxFolder.FIELD_ID) : null;\n }",
"public String getParentid() {\r\n return parentid;\r\n }",
"public Number getParentId() {\r\n return (Number)getAttributeInternal(PAR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Type your code here | public static void main(String args[])
{
Scanner in=new Scanner(System.in);
int n=in.nextInt();
int a[][]=new int[n][n];
int b[][]=new int[n][n];
int c[][]=new int[n][n];
if(n==4)
{ System.out.println("1 1 1 1");
System.out.println("1 1 1 1");
System.ou... | [
"public static void main(String[] args){\r\n \r\n/* We use package,class and turn on methods,If we would like to execute codes in Java we should get used to create class,\r\npackage,methods.We are typing codes in methods,and methods should be in class and classes should be in package \r\nrespectively */\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the header for a CSV file | public static String csvHeader() {
if(enableE22) {
return "PROTEIN_NAME,CHAIN_ID,CHAIN_INDEX,RESIDUE_TYPE,SECONDARY_STRUCTURE,E6,E20,E22,V_KABAT,LOBANOV_GALZISKAYA,N,HN,C_ALPHA,C_BETA,C_PRIME,O,AVG_CHARGE";
} else {
return "PROTEIN_NAME,CHAIN_ID,CHAIN_INDEX,RESIDUE_TYPE,SECONDARY_STRUCTURE,E6,E20,V_KABAT,LOBA... | [
"@Override\n\tpublic Header getHeader() throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tFileReader fileReader = new FileReader(fileName);\n\t\tBufferedReader bufferedReader = new BufferedReader(fileReader);\n\t\tString headerRow = bufferedReader.readLine();\n\t\tbufferedReader.close();\n\t\tfileRe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Abator for iBATIS. This method corresponds to the database table VISION.CD_POLDET | public void clear() {
oredCriteria.clear();
} | [
"public void getDatosPoliza\n\t\t (\n\t\t String strIDEjercicio, String strIDLibro, String strIDCCosto, String strFolio\n\t\t ) throws SQLException, Exception\n\t {//Este m?todo, obtiene los datos de la p?liza\n\n\t\t PreparedStatement pstmt = null;\n\t\t ResultSet rset = null;\n\t\t String COMANDO = null;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get name of enum. | public String getName() {
return _names.get(this);
} | [
"java.lang.String getEnumString();",
"String asEnumConstant();",
"public java.lang.String getEnumString() {\n java.lang.Object ref = enumString_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
=========================================================== Getter & Setter =========================================================== | public Config getBitmapConfig() {
return this.mBitmapConfig;
} | [
"@Override\n }",
"@Override\n\tpublic void setValue() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\r\n\t\tprotected void getData() {\n\r\n\t\t}",
"@Override\n protected void init()\n {\n\n }",
"@Override\n \tpublic String get() {\n \t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all connections from db and store them into connectionsmap | public static void initialize(Context context){
} | [
"public Map<String, String> getConnections();",
"List<TcMenuPersistedConnection> getAllConnections();",
"@Override\n public List<DBConnection> listAll() {\n List<DBConnection> dbConnections = new ArrayList<>();\n dbConnectionRepository.findAll().forEach(dbConnections::add);\n return dbCo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Notnull value; ensure this value is available before it is saved to the database. | public void setPassword(String password) {
this.password = password;
} | [
"public String getNullValue () {\n \t return nullValue;\n }",
"@Override\n\tpublic String notNull() {\n\t\treturn null;\n\t}",
"@Override\n public String getValue() {\n return null;\n }",
"@Override\n\tpublic String mustSelectValue() {\n\t\treturn null;\n\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets client login password. | public String getPassword() {
return password;
} | [
"@Override\n\tpublic String getPassword() {\n\t\treturn client.getPassword();\n\t}",
"@Override\n\tpublic String getLoginPassword() {\n\t\tsynchronized (lockUser) {\n\t\t\treturn password;\n\t\t}\n\t}",
"public synchronized String getPassword()\n {\n return props.getProperty(\"password\");\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Listen to the server | private void listen(){
try{
int cmd = inputStream.readInt();
System.out.println(cmd);
//Message received
if(cmd == Demineur.MSG){
appGui.addMsg(inputStream.readUTF());
}
//Start game command received
else if(cm... | [
"public void listen() throws IOException {\n\t\tthis.server = new ServerSocket(port);\n\t\tthis.start();\n\t}",
"public void listen() {\n\t\n\t\t// Initialize the server socket.\n\t\ttry {\n\t\t\tss = new ServerSocket( 3000 );\n\t\t}\n\t\tcatch (Exception e) { }\n\t\t\n\t\tObjectOutputStream oos;\n\t\tObjectInput... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reports an error that occured while scanning. In a wellformed scanner (no or only correct usage of yypushback(int) and a matchall fallback rule) this method will only be called with things that "Can't Possibly Happen". If this method is called, something is seriously wrong (e.g. a JFlex bug producing a faulty scanner e... | private void zzScanError(int errorCode) {
String message;
try {
message = ZZ_ERROR_MSG[errorCode];
}
catch (ArrayIndexOutOfBoundsException e) {
message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];
}
throw new Error(message);
} | [
"private void generateParseErrors() {\n\t\tint index = 0;\n\t\tparser = new FileCheckingParser(tokenizer);\n\t\tint numUnclosedBrackets = 0;\n\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tparser.parseFrom(index, false);\n\n\t\t\t} catch (FileCheckingSyntaxException e) {\n\t\t\t\tindex = e.getListPosition();\n\t\t\t\tn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the date that the payment is made. Each payment period has a single payment date. This date has been adjusted to be a valid business day. | public abstract LocalDate getPaymentDate(); | [
"public java.util.Calendar getPaymentStatusDate()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYMENTSTATUSDATE$0, 0);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void backButton() {
} | [
"@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"
]
]
}
} |
$ANTLR end synpred44_InternalPascal $ANTLR start synpred48_InternalPascal | public final void synpred48_InternalPascal_fragment() throws RecognitionException {
AntlrDatatypeRuleToken lv_sign_2_0 = null;
// InternalPascal.g:2357:4: ( (lv_sign_2_0= rulesign ) )
// InternalPascal.g:2357:4: (lv_sign_2_0= rulesign )
{
// InternalPascal.g:2357:4: (... | [
"@Test\n\tpublic void primary3() throws SyntaxException, LexicalException {\n\t\tString input = \"(!R | !DEF_X & 5)\";\n\t\tshow(input);\n\t\tScanner scanner = new Scanner(input).scan();\n\t\tshow(scanner);\n\t\tParser parser = new Parser(scanner);\n\t\t\n\t\tExpression e = parser.primary();\n\t\t\n\t\tshow(e);\n//... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set visibility of the Main Activity UI components | private void setVisibilities(boolean progressSpinnerVisible, boolean storiesRecyclerViewVisible, boolean emptyTextViewVisible) {
// Use the conditional operator:
progressSpinner.setVisibility(progressSpinnerVisible ? View.VISIBLE : View.GONE);
storiesRecyclerView.setVisibility(storiesRecyclerVie... | [
"void setWaitScreen(boolean set) {\n findViewById(R.id.screen_main).setVisibility(set ? View.GONE : View.VISIBLE);\n }",
"public void setAllNotVisible() {\r\n\t\trelativeLayout1.setVisibility(View.INVISIBLE);\r\n\t\tlinearLayout2.setVisibility(View.INVISIBLE);\r\n\t\tloadingLayout.setVisibility(View.VIS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void show() {
if (! bAdd) {
display.setCurrent(this);
}
} | [
"@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"
]
]
}
} |
repeated .Block block = 1; | Block getBlock(int index); | [
"int getBlockIncrement();",
"private void nextBlock() {\n int y, kk, p = N - M;\n for (kk = 0 ; kk < p; ++kk) {\n y = (mt[kk]&UPPER_MASK) | (mt[kk+1]&LOWER_MASK);\n mt[kk] = mt[kk + M] ^ (y >>> 1) ^ ((y & 0x1) == 0 ? mag0 : mag1);\n }\n for ( ; kk < N-1; ++kk) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$FF: renamed from: c () java.lang.Object | public Object method_1262() {
return this.method_1259();
} | [
"@Override\n\tpublic void c() {\n\t\t\n\t}",
"public final void c() {\n }",
"abstract void mo1269a(C0448c c0448c, Object obj);",
"C42581b mo34612a(C42582c c42582c);",
"public abstract B mo14168c(Object obj);",
"@Override\r\n\tvoid c() {\n\t\t\r\n\t}",
"public interface C46858d {\n /* renamed from:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__EnumStatement__Group_5__0__Impl" $ANTLR start "rule__EnumStatement__Group_5__1" InternalAgreeParser.g:12077:1: rule__EnumStatement__Group_5__1 : rule__EnumStatement__Group_5__1__Impl ; | public final void rule__EnumStatement__Group_5__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalAgreeParser.g:12081:1: ( rule__EnumStatement__Group_5__1__Impl )
// InternalAgreeParser.g:12082:2: rule__EnumStatement__Group_5__1__... | [
"public final void rule__EnumExpression__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g:12354:1: ( rule__EnumExpression__Group_1__0__Impl rule__... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
step1:for zipcode that has invalid population or Pos_Test, return 9999,other wise return positive test per capita step2:standardize the number of positive test per capita.(xx_bar)/sd | public Map<String,Double> getPos_test_per_capita() {
ArrayList<String> zipcodeALL=data.getData("population", "zip_code");
Map<String,Double> pos_test_per_capita=new TreeMap<>();
int zipPopulation=0;
int zipPossitive=-1;
double posPerCapita=99;
double sd;
double average;
//put zipcode as K... | [
"@Test\n public void testRemiseAZero() {\n System.out.println(\"remiseAZero\");\n SalleCinema instance = new SalleCinema(\"testTitre\", 250, 6.5);\n instance.vendrePlaces(10, true);\n instance.remiseAZero();\n int expResult = 250;\n int result = instance.nbPlaces-instan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return a possible parameter for the point P (return the parameter for the projection of P on the path) | public double getPossibleParameter(Coords coords) {
PathParameter tempParam = getTempPathParameter();
// make sure we use point changed for a line to get parameters on
// the entire line when this is a segment or ray
doPointChanged(coords, tempParam);
return tempParam.t;
} | [
"org.palladiosimulator.pcm.repository.Parameter getPcmParameter();",
"@Override\n public Point project(PointGeo point) {\n double longitude = toDegrees(point.longitude());\n double latitude = toDegrees(point.latitude());\n double x = -1;\n double y = -1;\n\n longitude = (long... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of field 'version'. The field 'version' has the following description: Indicates the version number of this process definition among its homonyms. By specifying a version, automatic deployment can tell whether this process is already deployed. | public int getVersion(
) {
return this._version;
} | [
"public int getVersionValue() {\n return version_;\n }",
"public Number getVersion() {\n return (Number)getAttributeInternal(VERSION);\n }",
"public Integer getVersion() {\n\n\t\treturn version;\n\t}",
"public String getVersion() {\n\t\t\n\t\treturn myVersion;\n\t\t\n\t}",
"public Long get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleTrelloGET" $ANTLR start "ruleTrelloGET" InternalSparrow.g:312:1: ruleTrelloGET : ( ( rule__TrelloGET__Group__0 ) ) ; | public final void ruleTrelloGET() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalSparrow.g:316:2: ( ( ( rule__TrelloGET__Group__0 ) ) )
// InternalSparrow.g:317:2: ( ( rule__TrelloGET__Group__0 ) )
{
// Interna... | [
"public final void rule__TPlan__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:28895:1: ( rule__TPlan__Group__2__Impl r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to create email body for Reset Password | private String createDefaultEmailBody(URL url, UserCredentials user)
throws IOException {
StringBuffer msgBodyBfr = new StringBuffer();
String fullMsgBody = "";
String encryptedUserName = StringEncoder.encryptWithStaticKey(user
.getUserName());
String resetPasswordLink = "http://" + organisatio... | [
"void sendPasswordResetMail(String destinationEmail, PasswordResetRequest passwordResetRequest);",
"void sendPasswordResetEmail(User user, String newPassword) throws Exception;",
"void sendPasswordResetEmail(User user, String newPassword);",
"private String emailBody() {\n String body = \"\\n\\n--PLEAS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Override recyclerview getitemid method; disable problematic behavior with tag container retrieval | @Override
public long getItemId(int position) {
return position;
} | [
"public long getChildItemId(android.view.View r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.color.widget.ColorRecyclerView.getChildItemId(android.view.View):long, dex: \n */\n throw new UnsupportedOperationException(\"Method not ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
convert list of tradeapi itemid to list of tradedomain itemid | private List<TradeDomain.ItemId> convertApiItem(List<TradeApi.ItemId> list) {
List<TradeDomain.ItemId> domainList = new LinkedList<>();
for(TradeApi.ItemId itemId: list) {
String id = itemId.getItemId();
TradeDomain.ItemId.Builder bd = TradeDomain.ItemId.newBuilder().setItemId(... | [
"List<LineItem> getLineItemsOnBaseOfId(Long[] lineItems);",
"public abstract List<IXid> getXids();",
"java.util.List<java.lang.Long> getItemIdList();",
"private List<ServicioEntity> serviciosListDTO2Entity(List<ServicioDetailDTO> dtos) {\n List<ServicioEntity> list = new ArrayList<>();\n for (Se... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public abstract ElementVector getElements(); | public abstract ElementVector getSources(); | [
"List<T> getElements();",
"public Collection<ValueType> getElements();",
"public List<E> getElements() {\r\n return elements;\r\n }",
"public List<Element> getElements() {\n\n\t\t// NOTE Implemented\n\n\t\treturn elements;\n\n\t}",
"public ArrayList<Element> getElements() {\n return element... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
region Ad Load Listener | @Override
public void adReceived(final AppLovinAd ad) {
ApplovinAdapter.log(DEBUG, mAdType + " did load ad: " + ad.getAdIdNumber());
runOnUiThread(new AdLoadRunnable(this) {
@Override
public void run() {
if (mIsRewarded) {
mRewardedListene... | [
"@Override\n public void onAdLoaded() {\n System.out.println(\"------------onAdLoaded-----------------\");\n }",
"@Override\n public void loadAd_callback() {\n Gdx.app.log(\"Game Ads\", \"AndroidInterstitialAd.loadAd_callback() called\");\n setLoaded(true);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets tab layout panel. | public TabLayoutPanel getTabLayoutPanel() {
return this.tabLayoutPanel;
} | [
"public JPanel getPanel() {\n panel = new JPanel(new SpringLayout());\n tabbedPane = new JTabbedPane(); \n //Sets the minimum size of the Panel\n //Dimension minimumSize = new Dimension(780, 260);\n Dimension minimumSize = new Dimension(width - 60, heigth - 60);\n panel.set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_guide_layotu);
SharedPreferences preferences_is_first = getSharedPreferences("preferences_is_first", Activity.MODE_PRIVATE);
preferences_is_first.edit().putBoolean("is_first_new_... | [
"@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"
]
]
}
} |
onRestoreInstanceState method This method will restore the user selected state of the activity. This is done by restoring the saved variables along with a super call to the onRestoreInstanceState method. | public void onRestoreInstanceState(Bundle restoredInstanceState) {
clickCount = restoredInstanceState.getInt("click");
posOne = restoredInstanceState.getInt("posOne");
posTwo = restoredInstanceState.getInt("posTwo");
matches = restoredInstanceState.getInt("matches");
array_image ... | [
"@Override\n public void onRestoreInstanceState(@NonNull Bundle savedInstanceState)\n {\n super.onRestoreInstanceState(savedInstanceState);\n\n // Restore activity state from saved instance\n spinner.setSelection(savedInstanceState.getInt(\"spinner_pos\"));\n }",
"@Override\n\tpublic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This class was generated by the JAXWS RI. JAXWS RI 2.2.61b01 Generated source version: 2.2 | @WebService(name = "ISoftwareWebService", targetNamespace = "http://tempuri.org/")
@XmlSeeAlso({
com.microsoft.schemas._2003._10.serialization.ObjectFactory.class,
org.datacontract.schemas._2004._07.software.ObjectFactory.class,
org.tempuri.ObjectFactory.class
})
public interface ISoftwareWebService {
... | [
"@WebService(targetNamespace = \"http://laegler.com/openbanking/soap/service\", name = \"authserver_PortType\")\n@XmlSeeAlso({com.laegler.openbanking.soap.model.ObjectFactory.class})\npublic interface AuthserverPortType {\n}",
"@WebService(serviceName = \"DocumentReceiver\", targetNamespace = \"https://SOAP.SOR2.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new FacesMessage to inform the user in the GUI. | private void informUser(String message){
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, message, ""));
} | [
"public void onClickShowFacesMessageBtn(ActionEvent actionEvent) {\n FacesMessage msg=new FacesMessage(\"Hello World!\");\r\n msg.setSeverity(FacesMessage.SEVERITY_INFO);\r\n \r\n FacesContext.getCurrentInstance().addMessage(null, msg);\r\n }",
"public void showMessage() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a nonnull result will terminate the switch, but this is the last case anyway. | @Override
public T defaultCase(EObject object)
{
return null;
} | [
"public T caseResultElement(ResultElement object) {\n\t\treturn null;\n\t}",
"public <ExpressionType> T caseExpressionEvaluation(final ExpressionEvaluation<ExpressionType> object)\r\n\t{\r\n\t\treturn null;\r\n\t}",
"public T caseObject(net.certware.evidence.evidence.Object object) {\n\t\treturn null;\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method called when new game button is pressed setting new game | public void onNewGame(Object o){
Log.e("menu","to new game");
setting.close();
ContentValues newValues=new ContentValues();
newValues.put("startTime", System.currentTimeMillis());
db.update("woong", newValues, null, null);
newValues.put("lastTime", 0);
db.update("woong", ne... | [
"private void newGame()\n\t{\n\t\tfirstGame = false;\n\t\tsetChanged(); \n\t\tnotifyObservers(\"New Game\");\n\t\tmenuFrame.setVisible(false);\n\t\tmenuModel.enableSaveButton();\n\t}",
"private void newGame() {\n mCurrentScore = STARTING_SCORE;\n mCurrentLives = LIVES;\n changeStateTo(NEW_STA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if dependency is allowed to be annotated | private boolean isAllowed(Dependency dependency, boolean restrictDependencyType, List<POSTag_DE> governorPosFilter, List<POSTag_DE> dependentFilter){
if(isAllowed(dependency.getDependencyType())) {
Token governor = dependency.getGovernor();
Token dependent = dependency.getDependent();
if (!governor.getCovere... | [
"boolean hasAnnotationSpec();",
"@Test\n public void validate_marker_annotation()\n {\n InternalUtils.validateMarkerAnnotation(Inject.class);\n\n\n try\n {\n InternalUtils.validateMarkerAnnotations(new Class[] {Inject.class, NotRetainedRuntime.class});\n unreachabl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Mandatory methods for file upload controllers. | public interface IFileUploadController {
/**
* Checks a regular {@link HttpServletRequest} for fileuploads.
*
* @param request the {@link HttpServletRequest}
* @return the {@link ModalAndView} to render
*/
ModelAndView handle(HttpServletRequest request) throws Exception;
/**
* Checks a {@link... | [
"@Override\r\n\tpublic void upload(MultipartFile file) {\n\t}",
"void uploadFile();",
"OptUploadFileRespDto uploadFile(OptUploadFileReqDto optUploadFileReqDto);",
"public abstract String upload(File filepath) throws ConnectException,UnexpectedException;",
"void onUploadFileFailed();",
"public void upload(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public boolean addStatus(ExpenseEntryStatus status) throws PersistenceException {
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"
]
]
}
} |
accessor for association to contacts | public void removeFromContacts(Contact contacts) {
if (!this.contacts.contains(contacts)) {
return;
}
this.contacts.remove(contacts);
} | [
"public String getContact() \n {\n return _contact;\n }",
"AccountDetailsContact getContact ();",
"public Long getContactsId() {\n return contactsId;\n }",
"public List<Contact> getPersonalContacts() {\n return personalContacts;\n }",
"public Serializable getContact();",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Basic information for the module, which is always shown. | @SideOnly(Side.CLIENT)
public void addBasicInformation(ItemStack itemstack, EntityPlayer player, List<String> list, boolean par4) {
if (Minecraft.getMinecraft().currentScreen instanceof GuiModule) {
Slot slot = ((GuiModule) Minecraft.getMinecraft().currentScreen).getSlotUnderMouse();
... | [
"public String getModuleInfo(){\n\t\treturn \"<html> <head> </head> <body> Takes in an object and saves it. Pushes it out when a triggering input object comes in,then resets and waits for the next object and trigger. The first object it gets is sent through w/o waiting for the trigger object </bo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method called when an the menu item is clicked which displays a dialog where the user can edit the value. | public void actionPerformed(final ActionEvent aLocalEvent) {
// Show an option pane which allows
// the value
// to be modified.
final String message = "Please enter a new value: ";
final String title = "Change a Value";
final String currentValue = mNode.getTextContent();
final String newValue = (S... | [
"public void editItem() {}",
"@Override\n\t\t\tpublic void onClick(ClickEvent arg0) {\n\t\t\t\tint itemSelectedIndex = lbPollCode.getSelectedIndex();\n\t\t\t\t// Get the\n\t\t\t\titemSelectedValue = lbPollCode.getValue(itemSelectedIndex);\n\t\t\t\t//Window.alert(itemSelectedValue);\n\t\t\t\t\n\t\t\t}",
"private... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create new phone user and set balance 0.00 value. | void insertPhoneUser(PhoneUser phoneUser) throws UserAlreadyExistsException; | [
"EconomyUser addToBalance(long amount);",
"private void createUser(String detail_income, String value_income, String username) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFireba... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A localizable string containing the name of the suite of products to which the tool component belongs. | @JsonProperty("productSuite")
public void setProductSuite(String productSuite) {
this.productSuite = productSuite;
} | [
"public String getProductName() {\r\n return getFieldStringValue(8, 0, Fit.SUBFIELD_INDEX_MAIN_FIELD);\r\n }",
"public String getPropertyProductName();",
"public static String getOtaProductName() {\n\t\tString productName = SystemProperties.get(\"ro.product.model\");\n\t\tif (productName.contains(\" \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes anOperation, symbolized by operationSymbol, over x and y and displays the result. | public static void computeAndDisplay(ArithmeticOperation anOperation, String operationSymbol,
int x, int y) {
Calculator.setOperation(anOperation);
Calculator.computeOperation(x, y);
System.out.println(x + " " + operationSymbol +
" " + y + " = " + Calculator.getResult());
} | [
"public void operate() {\n\t\t\toperands.push(currOperands * plusMinus);\n\t\t\tcurrOperands = 0;\n\t\t\t\n\t\t\toperands = operation.evaluate(operands);\n\t\t\t\n\t\t\tface.writeToScreen(Double.toString(operands.peek()));\n\t\t}",
"private void doOperation(Object first, Object second, String operator, Stack<Obje... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
XXX more performance friendly impl. would return a lazzy iterator | public Iterator<Item> itemsIterator() {
return itemsList().iterator();
} | [
"public Iterator CreateIterator3();",
"public Iterator createIterator();",
"public Iterator<E> iterator()\n/* */ {\n/* 350 */ return this.objects.iterator();\n/* */ }",
"Iterator iterator() {\n return new Iterator();\n }",
"public Iterator<Item> iterator() { return new ListIterat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the minimum amount of players the battle requires before it can be started. This cannot be set below one. | public void setMinPlayers(int minPlayers) {
if (getMinPlayers() < 1) return;
this.minPlayers = minPlayers;
} | [
"void setRequiredPlayerRange(int requiredPlayerRange);",
"public void setNumMinUsers(int numMinUsers);",
"public int getMinimumPlayers(){\n\t\treturn this.minPlayers;\n\t}",
"public void setMinimum(int newMinimum) {\n }",
"void setMinimum(int min);",
"public void setMinimum(int min)\n {\n m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method checks if some player has won. It takes a coordinate from the controller and checks rowwise, columnwise and both diagonalwise to see if there are four boxes with same color. | public boolean checkIfWin(int row, int col); | [
"public static boolean hasThePlayerWon(int currentRow, int currentColumn,Color playerColour,Color[][] gridColour)\n {\n int count=1;\n //check the counter below the currently placed counter\n int nextCounterSouth=currentRow+1;\n while(nextCounterSouth< gridColour.length)\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this method should calculate the overall module mark for CS118 based on the individual marks for the first coursework, the second coursework, and the exam (all out of 100) knowing that the weights of the components are 15, 25, and 60 respectively. DONE | public float overallModuleMark(float cswk1, float cswk2, float exam) {
return (cswk1*15+cswk2*25+exam*60)/100f;
} | [
"public void gainBonusCredits(){\r\n int smstr = getSemester();\r\n int sub;\r\n switch (smstr) {\r\n case 1:\r\n sub = 0;\r\n break;\r\n case 2:\r\n sub = 10;\r\n brea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | [
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Caches the specified shape. | public final void setEmbeddedCachedShape(final int idx, final PdfGlyph shape) {
// using local variable instead of sync'ing
PdfGlyph[] cache = cachedEmbeddedShapes;
if (cache == null) {
cachedEmbeddedShapes = cache = new PdfGlyph[maxCharCount];
}
if(idx<cache.length)... | [
"IShape setState(int time, IShape shape);",
"public void getShape(Shapes shape)\n\t{\n\t\tthis.shape = shape;\n\t\tdrawShape = true;\n\t}",
"public IShape copy();",
"public void testClearCacheDetectable() throws IOException {\n BufferedImage img = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new ImgDataConverter object that operates on the specified source of image data. | public ImgDataConverter(BlkImgDataSrc imgSrc, int fp) {
super(imgSrc);
src = imgSrc;
this.fp=fp;
} | [
"public ImageSource(Object data, int w, int h, ColorModel model) {\n if (!(data instanceof int[]) && !(data instanceof byte[])) {\n throw new IllegalArgumentException(\"Must be byte or integer array\");\n }\n this.data = data;\n width = w;\n height = h;\n if (mod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
we don't support this operation here. | @Override
public void visitSubmitBlip(SubmitBlip op) {
} | [
"@Override\n\t\tprotected void swop() {\n\n\t\t}",
"@Override\n public void extornar() {\n \n }",
"protected void unsupportedOp()\n\t{\n\t\tthrow new UnsupportedOperationException(\"this is not allowed\");\n\t}",
"protected void method_5557() {}",
"@Override\n protected void primitiveOperati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column APP_SYS_FACE_LOGS.DEVICE_TOKEN | public String getDeviceToken() {
return deviceToken;
} | [
"public String getDeviceToken(String token) \n\t{\n\t\tconnection = getConnection();\n\t\tString deviceToken = null;\n\t\tString getQuery=\"SELECT device_token FROM tokens WHERE access_token=?\" ;\n\t\ttry \n\t\t{\n\t\t\tpreparedStatement = connection.prepareStatement(getQuery);\n\t\t\tpreparedStatement.setString(1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add all relevant general warning properties to the given property set for the given Location. | public static void addPropertiesForDataMining(WarningPropertySet<WarningProperty> propertySet, ClassContext classContext,
Method method, Location location) {
addReceiverObjectType(propertySet, classContext, method, location);
addRecentlyCalledMethods(propertySet, classContext, method, locati... | [
"void reportWarnings() {\n if (hasUnrecognized) {\n final StringBuilder keywords = new StringBuilder();\n for (final Map.Entry<String,Object> entry : header.entrySet()) {\n if (entry.getValue() == null) {\n if (keywords.length() != 0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns password id. Returns password id of current person. | String getPasswordID() throws RemoteException; | [
"public Integer getStoredPasswordId(StoredPassword storedPassword);",
"public StoredPassword getStoredPassword(Integer id);",
"public java.lang.Long getPwdid()\n {\n return pwdid;\n }",
"public Password getById(Long id) {\n\t\treturn this.pwRepo.findById(id).orElse(null);\n\t}",
"public Integer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns type of tile for jSon file output | public String getType() {
return null;
} | [
"public Type getTileType() {\n return tileType;\n }",
"private Image renderTile(int type) {\n\t\tif (type == 1)\n\t\t\treturn tile01;\n\t\telse if (type == 2)\n\t\t\treturn tile02;\n\t\telse if (type == 3) \n\t\t\treturn tile03;\n\t\telse if (type == 4)\n\t\t\treturn tile04;\n\t\treturn null;\n\t}",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use c2s_login_user.newBuilder() to construct. | private c2s_login_user(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"public LoginUser(LoginInfo u) {\n\t\tthis.u = u;\n\t}",
"public Builder setLogin(net.cowpi.protobuf.CiphertextProto.Login value) {\n if (loginBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n inner_ = value;\n onChanged();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.charlotte.AvailabilityAttestation availabilityAttestation = 1; | public com.isaacsheff.charlotte.proto.AvailabilityAttestation getAvailabilityAttestation() {
if (availabilityAttestationBuilder_ == null) {
if (blocktypeOneofCase_ == 1) {
return (com.isaacsheff.charlotte.proto.AvailabilityAttestation) blocktypeOneof_;
}
return com.isaacsheff.cha... | [
"public int getCurrent_occupancy(){return this.current_occupancy;}",
"public void alcaldeCiudad(){\n this.alcalde = \"santiago\";\n }",
"public Availability getAvailability() {\r\n\t\treturn availability;\r\n\t}",
"public void status(){\n if(availableStatus==true){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Change power of rain (Gaussian distributed) | private void changePower()
{
this.rain += RandomHelper.createNormal(0, 1).nextDouble();
if (this.rain > maxRain)
this.rain = maxRain;
else if (this.rain < minRain)
this.rain = minRain;
} | [
"public double nextGaussian();",
"public void increaseHeat() {\n this.heat+=1/(double)100;\n }",
"public abstract double getGravitationalConstant();",
"@Override\n\tpublic double generate() {\n\t\tdouble normal = standardNormal.generate();\n\n\t\t// return the value based off the percent point funct... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
change to new icon that can't be split energy maybe | public static DeviceIcon getTransformerIcon(Point p) {
DeviceIcon transformerIcon = new DeviceIcon();
Line inLine = createLine(p, p.translate(0, 1.1 * Globals.UNIT));
Line inEdgeL = createLine(p.translate(-1 * Globals.UNIT, 0.9 * Globals.UNIT),
p.translate(-1 * Globals.UNIT,... | [
"void addNewIcon();",
"@Override\n\tpublic void update(Icon en) {\n\t\t\n\t}",
"private void invalidateIcon() {\n // You must to set icon resId\n if (mIconRes == 0) throw new IllegalArgumentException(\n \"Icon not found. Please select the icon and set to PulseView\"\n );\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve the top Badger within this Sett (the one that was settled first). | public Badger getTopBadger() {
return topBadger;
} | [
"public Badger getTopBadger() {\r\n return topBadger;\r\n }",
"@Override\n public int getTopOne() {\n return bsTree2.getMax();\n }",
"long getTop();",
"public long getTop() {\n return top_;\n }",
"public int top() {\n return this.getLast(OperationType.PEEK);\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Auto create App User Account. | public AppUser createAppUser(Connection<?> connection) {
ConnectionKey key = connection.getKey();
// (facebook,12345), (google,123) ...
System.out.println("key= (" + key.getProviderId() + "," + key.getProviderUserId() + ")");
UserProfile userProfile = fbService.getProfile("me", connecti... | [
"@Override\r\n public void create_account() {\r\n DataSource.getInstance().addNewUser(this);\r\n DataSource.getInstance().addNewPlayer(this);\r\n\r\n }",
"@Override\n\tpublic WalletUser createAccount(WalletUser acc) {\n\t\treturn cusDao.save(acc);\n\t\t\n\t}",
"public void createUser() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onStopTrackingTouch(SeekBar seekBar) {
} | [
"@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"
]
]
}
} |
Returns true if field deliveryId is set (has been assigned a value) and false otherwise | public boolean isSetDeliveryId() {
return EncodingUtils.testBit(__isset_bitfield, __DELIVERYID_ISSET_ID);
} | [
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Delivery)) {\n return false;\n }\n Delivery other = (Delivery) object;\n if ((this.deliveryId == null && other.deliveryId != null) || (this.deliveryId != null && !this.deliveryId.equals(other.deli... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the specified command button to this band. | public void addCommandButton(AbstractCommandButton commandButton,
RibbonElementPriority priority) {
commandButton.setHorizontalAlignment(SwingConstants.LEFT);
this.controlPanel.addCommandButton(commandButton, priority);
} | [
"private void addToToolbox(JButton button, String command) {\n\t\tbutton.addActionListener(toolboxListener);\n\t\tbutton.setActionCommand(command);\n\t\tadd(button);\n\t}",
"public void addButton(AbstractImagePrototype icon, String title, boolean isToggle, final Command command) {\n panel.add(buildButton(ico... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Restituisce l'indirizzo dell'utente registrato | public String getIndirizzo() {
return indirizzo;
} | [
"public void registrar() {\n direccion = vistaDireccion.ingresarDireccion();\n direccionDAO.create(direccion);\n }",
"public void registrar() {\n usuario = vistaUsuario.registrarUsuario();\n UDao.create(usuario);\n }",
"public void registrarCocinero(){\r\n \r\n }",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add CheckFlag feature values to parameterized sql INSERT statement | public void batchFlagFeatureStatement(final PreparedStatement sql, final CheckFlag flag,
final int flagIdentifier, final JsonObject feature)
{
final JsonObject properties = feature.get(PROPERTIES).getAsJsonObject();
try
{
sql.setInt(1, flagIdentifier);
s... | [
"private PreparedStatement createAddPreparedStatement(Connection conn, ICDCode addObj) throws SQLException {\n\t PreparedStatement pstring = conn.prepareStatement(\"INSERT INTO icdCode(code, name, is_chronic) \"\n + \"VALUES(?, ?, ?)\");\n pstring.setString(1, addObj.getCode());\n ps... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The interface Case map. | @NpmPackage(
name = "@polymer/polymer",
version = Polymer.VERSION
)
@Import(
symbols = {"camelToDashCase", "dashToCamelCase"},
module = "@polymer/polymer/lib/utils/case-map.js"
)
public interface CaseMap extends Any {
/**
* Converts "dash-case" identifier (e.g. <code>foo-bar-baz</code>) to "ca... | [
"@Override\r\npublic void afficherMap(Case[][] decor) {\n\t\r\n}",
"public CaseInsensitiveMap () {\r\n hashMap = new HashMap<String, V>();\r\n }",
"public void toutesLesCasesCiblable(){\r\n//\t\tfor (int i = 0; i < getMap().length; i += 1){\r\n//\t\t\tfor (int j = 0; j < getMap()[0].length; j += 1){\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines if a user is logged in. | @Path("/logged-in")
@GET
@Produces(MediaType.APPLICATION_JSON)
public Response loggedIn(
@Context HttpServletRequest request) {
request.getSession(true);
boolean loggedIn = request.getUserPrincipal() != null;
return Response
.status(loggedIn ? Response.Status.OK : Response.Status.UNAUTHORIZED)
.e... | [
"protected static boolean isUserLoggedIn() {\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n if (null != authentication) {\n return (authentication.isAuthenticated()\n && !(authentication instanceof AnonymousAuthenticationToken)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
} | [
"@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"
]
]
}
} |
Tests the building of a Car and then loading it back into another workspace on multiple threads. | public void testRoundTripCarBuildingAndMultithreadedLoading() throws IOException, CALExecutorException {
// This test does not work when the lecc machine is in Java source mode, so just skip it.
if (LECCMachineTestUtilities.isJavaSourceConfig()) {
return;
}
// ... | [
"public void testApp() {\n\n // Delete all car records in the database and ensure the tables have no tuples\n assertTrue(deleteAll().size() == 0);\n\n // Create some new Car objects and Maintenance Tasks\n ElectricCar eCar = new ElectricCar(\"Tesla\", \"Model S\", 2015, 2000, CarType.SEDAN);\n Diesel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string unionid = 1; unionid | public String getUnionid() {
Object ref = unionid_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
unionid_ = s;
return s;
} else {
return (String) ref;
}
... | [
"@Override\r\n\tpublic void visit(DMLSelectUnionStatement node) {\n\t\t\r\n\t}",
"public void unionInit() {\n }",
"@Override\n public Void visitUnion(Union union, ElmContext context) {\n int operandCount = 0;\n for (Expression expression : union.getOperand()) {\n if (operandCount ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int64 size = 2; | public Builder clearSize() {
bitField0_ = (bitField0_ & ~0x00000002);
size_ = 0L;
onChanged();
return this;
} | [
"OptionalLong size() throws IOException;",
"long getInitialSize();",
"public int getSize() { return 5; }",
"public long getSize() {\n\n return size;\n}",
"long longSize();",
"public int getSize(){ return bSize; }",
"public int size() {return size_t;}",
"int getSize() {\r\n return 8;\r\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column t_trade_detail.pic_thumb_path | public String getPicThumbPath() {
return picThumbPath;
} | [
"@Override\n public String getThumbnailPath() {\n int dotIndex = this.imagePath.lastIndexOf('.');\n return this.imagePath.substring(0, dotIndex).concat(THUMBNAIL_INDICATOR + THUMBNAIL_EXTENSION);\n }",
"java.lang.String getThumbnail();",
"public Long getThumbId() {\r\n return thumbId... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Cleans up the state of this thread and letting the server know that this client cannot transfer files. | private void cleanUp() {
FileFinder finder = FileFinder.getInstance();
finder.removeAddress(connection.getHostName());
connection.close();
} | [
"@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\tSocket sock =null;\n\t\t\tsendFile();\n\t\t}",
"public void run() {\n try {\n Log.d(TAG, \"Starting\");\n mFTPSClient.connect(ConfigurationManager.getInstance().getHost(), ConfigurationManager.getInstance().getPort());\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Format per tweet is id;date;hashtags;tweet; | public void map(Object key, Text value, Context context) throws IOException, InterruptedException {
String dump = value.toString();
int startIndex;
//Improve this
//Citing http://www.rgagnon.com/javadetails/java-0536.html
CharsetEncoder asciiEncoder = Charset.forName("US-ASC... | [
"public List<String> getTweetHistory();",
"@Override\n public String toString() {\n return comment + \":\\n\" + tweets;\n }",
"public void addTweet(Tweet t) {\n authorMessageTable.put(t.getAuthor(), t);\n\n String date = t.getDateAndTime().split(\" \")[0];\n ArrayList<Tweet> tw... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The method triggered when a ZWSwitchMultilevelEvent occurs. | public void ZWSwitchMultilevelEventOccurred(ZWEvent event); | [
"@Override\n public void onSwitchMultilevelChanged(DeviceItemApp deviceItem) {\n HashMap<String, String> params = new HashMap<>();\n params.put(\"level\", deviceItem.getMetrics().getLevel());\n DeviceCommand deviceCommand = new DeviceCommand(deviceItem.getDeviceId(), \"exact\", params);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called before the managed parent is being fixed. One of four scenarios caused this update: 1. A child has mutated 2. Another property of the this parent has been changed 3. A child has been deleted or moved to another parent 4. A new child has been added to this parent | @SuppressWarnings("unchecked")
public void beforeReplacing(P toReplace) {
if (!managedParent.isMutable())
return;
List<C> latestChildren = new LinkedList<>();
for (C child : children) {
C childNextVersion = (C) child.getNext();
if (childNextVersion == nu... | [
"public void modify() {\n\t\tmodified = true;\n\t\tif (parent != null && parent.get() != null)\n\t\t\tparent.get().modify();\n\t}",
"@Test\n @TestForIssue(jiraKey = \"HHH-13129\")\n public void testDetachedOriginal() {\n Assert.assertTrue(Hibernate.isPropertyInitialized(originalParent, \"children\"))... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Starts publishing events to listeners | public void start() {
if (!running) {
runner.start();
}
} | [
"public void start() {\n eventBusRegistration = messageSource.subscribe(this::send);\n }",
"public void start() {\n\t\teventConsumer.start();\n\t}",
"public void start() {\n if (this.started) {\n return;\n }\n this.eventBus.register(this);\n this.started = true;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Informs the filter UI components that the actual VcsLogDataPack has been updated (e.g. due to a log refresh). Components may want to update their fields and/or rebuild. | void updateDataPack(@NotNull VcsLogDataPack newDataPack); | [
"public void fireDataChanged() {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n // update the header\n updateHeader();\n\n // tell the wallets list to display\n if (walletsView != null) {\n wallet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new grid map 'gridaligned' with 'this', given the new bounds Eventually we should have crop reference this function | public GridMap resizeMeters(double x0_m, double y0_m, double width_m, double height_m, boolean roundUpDimensions)
{
// Compute the number of pixels to offset by
int xmin = (int)Math.floor((x0_m -x0) /metersPerPixel);
int ymin = (int)Math.floor((y0_m -y0) /metersPerPixel);
// We may ... | [
"public static void initializeBoundaries(Map m){\n //Initialize top boundary\n for(int i = 0; i < dimY; i++){\n m.grid[0][i] = 'o';\n }\n\n //Initialize left boundary\n for(int i = 0; i < dimX; i++){\n m.grid[i][0] = 'o';\n }\n\n //Initialize ri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
double resFloat = 0.00; | public void tableModelTableChanged1(javax.swing.event.TableModelEvent evt) {
double resFloat1 = 0.00;
for (int i = 0; i < jTable1.getRowCount(); i++) {
if (jTable1.getModel().getValueAt(i, 0) != null) {
if (jTable1.getSelectedColumn() ==... | [
"public strictfp float method_458() {\n return 0.0F;\n }",
"@Override\n\tpublic float asFloat() {\n\t\treturn 0;\n\t}",
"float\tfloatValue();",
"public float floatValue() {\n/* 210 */ return (float)sum();\n/* */ }",
"public float readFloat() {\r\n\t\treturn 0;\r\n\t}",
"double correctFloa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
through input order's ID, get the customer's information | public Customer getCustomerInfoByOrderID(int ordID) throws OrderMgrException, CustomerMgrException; | [
"public static void customerList (String customerID) {\n\n for (RepeatingOrder orders: repeatOrders) {\n if (orders.getCustomerID().equals(customerID)) \n System.out.println(orders.toString());\n }\n\n for (OneTimeOrder orders : oneTimeOrders) {\n if (orders.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves, but does not remove, the first element of the queue | AnyType peek(); | [
"public QueueableItem getFirst()\n {\n synchronized (queue)\n {\n if (queue.size() > 0)\n {\n return queue.get(0);\n }\n return null;\n }\n }",
"public D peek(){\n return queue.get(0);\n }",
"Object dequeue(){\r\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sends a ping request to the agent at the end of this channel | public void ping() {
StringBuilder key = new StringBuilder();
ChannelBuffer ping = encodePing(key);
write(ping);
timeoutMap.put(getId(), getId());
} | [
"public void sendPing() {\n GnutellaPingPacket ping = new GnutellaPingPacket();\n enqueueLossy(ping);\n }",
"public void pingServer()\n {\n \t_logger.info(\"sending ping...\");\n \t\n \t/*Initialize the client before pinging*/\n \tinitClient();\n \t\n \t/*ping, display if successful*/\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the current table data. Each row is represented as a String[] with a single nonnull value in the 0relative column position. The first row is at offset 0, the nth row at offset n etc. | public Vector getData() {
return rows;
} | [
"private Object[][] getTableData()\r\n {\r\n\t\r\n\treturn a.getTableData();\r\n\r\n\t\r\n }",
"public Object[][] get_table_data()\n\t{\n\t\t\n\t\treturn data_jtable;\n\t}",
"@Override\r\n\tpublic float[][] getAllTableData() {\n\t\treturn null;\r\n\t}",
"public List<String> getTableData() {\r\n\t\tif (d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |