query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
required bool tombstone = 5; | public boolean getTombstone() {
return tombstone_;
} | [
"boolean isStone();",
"boolean hasStoneLimit();",
"public Boolean tenesQuaffle(){ return true;}",
"public void setIsAbleToHunt(boolean flag);",
"public boolean isForth()\n/* */ {\n/* 150 */ return this.forth;\n/* */ }",
"boolean dry();",
"boolean avoidsWater();",
"@Test\n public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for the stage | public HashMap<String, File> getStage() {
return stage;
} | [
"public static Stage getStage() { return stage; }",
"public int getStage() {\n return this.stage;\n }",
"public static Stage getStage() {\r\n return stage;\r\n }",
"public String getStage() {return stage;}",
"public int getStage() {\n\t\t\treturn this.stage;\n\t\t}",
"public Stage getStage()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gives a oneline explaination of the iterator, repeats the call on any child iterators, and increases the indent depth along the way. | public void explain(int depth) {
throw new UnsupportedOperationException("Not implemented");
} | [
"@Override\n\tprotected void prettyPrintChildren(PrintStream s, String prefix) {\n\t\t\n\t}",
"private static void behavioralIterator(){\n \n format(\"Iterator\");\n \n // init stack\n Stack<Integer> stack = new Stack<>(4);\n \n for(int i = 0; stack.size() > i; ++i) \n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR start "timeoutMember" org\\aries\\tmp2.g:598:1: timeoutMember : ( optionDecl | statementDecl ); | public final tmp2Parser.timeoutMember_return timeoutMember() throws RecognitionException {
tmp2Parser.timeoutMember_return retval = new tmp2Parser.timeoutMember_return();
retval.start = input.LT(1);
int timeoutMember_StartIndex = input.index();
Object root_0 = null;
tmp2Parser... | [
"public SetTimeoutStatement(Duration timeout)\n {\n f_durationTimeout = timeout;\n }",
"SelfType timeout(int ms);",
"public interface TimeoutProvider {\n Long getTimeoutFor(String name) throws InvalidTimeoutAliasException;\n}",
"public void timeout() ;",
"@CanIgnoreReturn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo que calcula a area do circulo. | public double calculaArea()
{
return (Math.PI * Math.pow(this.raio, 2));
} | [
"@Override \n\tpublic double areaCirculo(){\n\t\tdouble area=(3.1416*(this.radio*this.radio));\n\t\t\n\t\treturn area;\n\t}",
"public double area(){\n\t\treturn this.lado*this.lado;\n\t}",
"@Override\n\tpublic double computeArea() {\n\t\tAreaCalculator areaHelper = new AreaCalculator();\t\t\n\t\treturn areaHelp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compute the order of x of a power of an irreducible polynomial match Theorem 3.8 in "Finite Fields" by Lidl and Niederreiter In our case we have only polynomials of characteristic 2 | public static BigInteger orderOfX(boolean[] irreduciblePolynomial, int power) {
assert(power>=1);
BigInteger candidate = Z2.orderOfX(irreduciblePolynomial);
boolean[] px = Z2.pow(irreduciblePolynomial, power);
//power : 1 2 3 4 5 6 7 8 9
// 0 1 2 2 ... | [
"int getPOWACTL2();",
"public static double polynomial(double x, int c3, int c2, int c1, int c0) {\n\n // Replace the return value below with the correct expression\n double result = (c3 * Math.pow(x, 3)) + (c2 * Math.pow(x, 2)) + (c1 * x) + c0;\n return result;\n }",
"public static fina... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void volume(boolean b) {
if(b) {
volume +=1;
}else {
volume -=1;
}
} | [
"@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"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String input1 = in.nextLine();
int size = input1.length()-1;
char[] text = input1.toCharArray();
for(int i = 0; i < input1.length(); i++) {
if (input1.length()/2 <= i){
break;
... | [
"@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 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() {
BGtype = new javax.swing.ButtonGroup();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
usernameTF = n... | [
"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"
]
]
}
} |
a SessionFactory bean is injected by Spring. | void setSessionFactory(final SessionFactory factory); | [
"@Autowired\r\n\tpublic void setSessionFactory(SessionFactory sessionFactory) {\r\n\t\tsession = sessionFactory.openSession();\r\n\t}",
"@Autowired\r\n public void setSessionFactory(final SessionFactory sessionFactory) {\r\n this.sessionFactory = sessionFactory;\r\n }",
"@Autowired\r\n\tpublic DbUs... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Show groups by ids. | Iterable<Group> getGroupsByIds(Iterable<Long> ids) throws Exception; | [
"public List<DataGridGroup> findByIdList(String[] ids);",
"@RequestMapping(value = \"/groups/{id}\", method = RequestMethod.GET)\n\tpublic ResponseEntity<?> showgroup(@PathVariable Long id) {\n\t\tList<Phonegroup> group = repository.getListOfGroups(id);\n\t\treturn new ResponseEntity<List<Phonegroup>>(group, Http... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getting as a parameter company and updating it in the database if exist | @Override
public void updateCompany(Company company) throws ClassNotFoundException, InterruptedException, SQLException, NullConnectionException, ParseException
{
Connection tempConn = pool.getConnection();
if(isCompanyIdExist(company,tempConn))
{
PreparedStatement tempPreparedStatement =tempConn.pre... | [
"public int updateBusCompany(BusCompany company){\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_BUS_CO_NAME, company.getBus_company_name());\n\n\n //updating a row\n return db.update(TABLE_BUSCOMPANY, values, KEY_B... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new LocalFile instance from a parent pathname string and a child pathname string. | public LocalFile(String path, String name) {
super(path, name);
sortSetup(name);
} | [
"public static File newFile(String parent, String child) {\r\n\t\ttry {\r\n\t\t\treturn new File(parent, child).getCanonicalFile();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new SkyRuntimeException(\"创建文件失败\", e);\r\n\t\t}\r\n\t}",
"public static File newFile(File parent, String child) {\r\n\t\ttry {\r\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
function name: validBoardCell Input: BoardCell& boardCell | public boolean validBoardCell(BoardCell boardCell){
int xCor = boardCell.getXCor();
int yCor = boardCell.getYCor();
return validBoardCell(xCor, yCor);
} | [
"public boolean checkValid(Cell[][] thisBoard){\n\t\tfor(int i = 0; i < 9; i++){\n\t\t\tfor(int j = 0; j < 9; j++){\n\t\t\t\tif(checkValidCell(thisBoard, thisBoard[i][j]) == false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public String validateBoard(Integer gameID,I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GroupHolder groupHolder = clickMap.get(b); | public void toggleManageGroup(GroupHolder groupHolder, final SpotHolder spotHolder) {
GroupRequest groupRequest = new GroupRequest();
groupRequest.setAuthToken(getAuthToken());
groupRequest.setGroupHolder(groupHolder);
ApiServiceAsync myService = getApiServiceAsync();
myService.e... | [
"public Object getGroup(int groupPosition) { \n // TODO Auto-generated method stub \n return groups.get(groupPosition); \n }",
"public abstract Map<String, Span> getCapturedGroupMap(Hit hit);",
"@Override\n public void onClick(View v) {\n goGroup(m.getGroup_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.folder_picker, menu);
return true;
} | [
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
private String body; private String subject; | public void setName(String name){
this.customerName = name;
} | [
"public String getSubject() { return subject;}",
"public String getSubject(){ \r\n return subject;\r\n }",
"public String getSubject()\n {\n return this.subject;\n }",
"public void setBody(String body){\n this.body=body;\n }",
"Subject getSubject() {\n/* 133 */ ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtain a database connection from a pool. | public static Connection getConnection() {
try {
return instance.dataSource.getConnection();
} catch(SQLException e) {
throw new AppException("Cannot get connection", e);
}
} | [
"public ConnectionPool getConnectionPool();",
"public Connection getConnection ()\n\t\tthrows SQLException\n\t{\n\t\treturn connectionPool.getConnection();\n\t}",
"public com.telemune.dbutilities.ConnectionPool getconnectionPool()\n\t{\n\t\tif(conPool==null)\n\t\t{\n\t\t\tconPool= new ConnectionPool();\n\t\t\tl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: c | public void mo1106c(Activity activity) {
this.f14646a.m18052a(activity, Type.PAUSE);
this.f14647b.m5356b();
} | [
"@Override\n\tpublic void c() {\n\t\t\n\t}",
"@Override\r\n\tvoid c() {\n\t\t\r\n\t}",
"protected void c() {\n\n\t}",
"void mo3976c(C5247d c5247d);",
"void mo62419c();",
"void m28293a(C5003c c5003c, C5006e c5006e);",
"void mo24495a(C12578a c12578a);",
"void mo22731b(C33642d c33642d);",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
function to get input | void getdata(int n){
int no=n;
for(int i=0;i<no;i++)
{
Scanner input = new Scanner(System.in);
System.out.println("Enter the Ram");
ram[i]=input.nextInt();
System.out.println("Enter the model");
model_number[i]=input.nextInt();
System.out.println("Enter the Price");
price[i]=input.nextInt();
}
} | [
"void getUserInput();",
"public static String inputGet() {\n return new Scanner(System.in).nextLine();\n }",
"String getInput(String message);",
"private String acceptInput() {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\treturn reader.read... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks to see if the specified permission is implied by the collection of Permission objects held in this PermissionCollection. | public abstract boolean implies(TPermission permission); | [
"@Override\n public boolean hasPermission(EnumPermission permission) {\n return permissions.contains(permission);\n }",
"public final boolean hasPermission(PermissionType toPermission, AccessType toAccess)\n {\n Permission loPermission = new Permission(toPermission.getValue(), toAccess);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert the given object to string with each line indented by 4 spaces (except the first line). | private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | [
"private String toIndentedString(Object o)\n/* */ {\n/* 607 */ if (o == null) {\n/* 608 */ return \"null\";\n/* */ }\n/* 610 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }",
"private String toIndentedString(Object o)\n/* */ {\n/* 164 */ if (o == null) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Core Method which delegates task such as Validation of the request and sends each party to a method which assigns seat.. | @Override
public ResponseEntity<BaseResponse> checkAndAllocateSeat(
RequestModel requestModel, String transactionId) {
logger.info("Transaction=" + transactionId
+ " Trying to allocate seat...");
/**
* Below block check the authenticity of the request
*/
if (!requestValidator.checkAndReportError(reque... | [
"@Override \n public void run() {\n\t\tString path = \"\";\n\t\t\n\t\tMap<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"mobileCode\", mobileCode);\n\t\tmap.put(\"pwd\", pwd);\n\t\tmap.put(\"assignDays\", assignDays);\n\t\tmap.put(\"assignAmount\", new BigDecimal(assignAmount).setScale(0, R... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add data to the chart, label the axis and add a title | public void combineGraphAndTable(String title, double[]xValues, double[]yValues) {
currentChart.addSeries("Function Series" ,xValues, yValues);
currentChart.setXAxisTitle("x");
currentChart.setYAxisTitle("f(x)");
currentChart.setTitle(title);
// Create a table to show detai... | [
"public void addLabelAxisLabel(RMShape anAxisLabel) { _axisLabels.add(anAxisLabel); }",
"private static void setupData( double[] xValues, double[] yValues,\n\t\t\tString xLabel, String yLabel, String title )\n\t{\n\t\tvalues = new double[2][];\n\t\tvalues[0] = xValues;\n\t\tvalues[1] = yValues;\n\n\t\tview = nul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To prevent someone from accidentally instantiating the contract class, give it an empty constructor. | private ShoppingDBCart() {} | [
"public Contract() {\n\n\t}",
"protected Contract() {}",
"private StockContract() {\r\n }",
"private MessageContract() {\n // nothing here.\n }",
"private BookInventoryContract() {\n }",
"public ContractEOImpl() {\n }",
"private TransactionContract(){}",
"private TripContract() {}",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Log.d("Here", "I am here"); | @Override
public void onReceive(Context context, Intent intent) {
} | [
"protected void logd(String s) {\n Log.d(mName, s);\n }",
"public void logd(String str) {\n if (DEBUG) {\n Log.d(\"OppoAutoConCaptivePortalControl/\", str);\n }\n }",
"private void log_d( String msg )\n\t{\n\t}",
"public void logd(String s) {\n Rlog.d(this.LOG_TAG,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for an OverridableRoom. | public OverridableRoom(int roleID, String roleName, String userName, String buildingName, String roomName,
String name, int roomID, int capacity, boolean clicker, boolean powerOutlets,
boolean tv, boolean whiteboard, int reservationID, int timeslotID) {
this... | [
"public GenericRoom(){\n\t\tsuper(\"room\");\n\t\tsetRoomNumber(\"\");\n\t\tsetBuilding(\"\");\n\t\tsetFloor(-1);\n\t}",
"public ScreeningRoom() {\n\t\t\n\t}",
"public RoomConst() {\r\n\t\tsuper();\r\n\t}",
"public Room()\r\n\t{\r\n\t\t\r\n\t}",
"public BeginningRoom(){\n\t\tsuper(0,0);\n\t}",
"public Fin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Null constructor. For initialization, psudoconstructors must be used. | public Entity() {} | [
"public ConstructorEmpty() {}",
"DefaultConstructor() {\n\t\tSystem.out.println(\"DefaultConstructor\");\n\t}",
"public abstract T constructor();",
"private None() {}",
"public ni() {}",
"public Cachorro() {\r\n }",
"private MyObject() {\r\n }",
"private MiniMiser() {\r\n // nothing\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use the PluggableParameters directly... | @Deprecated
protected boolean getBooleanParam(String key, boolean defaultValue) {
return trainingParameters.getBooleanParameter(key, defaultValue);
} | [
"public abstract void initializeParameters();",
"@Override\n public void configure(ParameterMap params) {\n }",
"protected AbstractParameter(){\n parameterMap = Instances.newLinkedHashMap();\n }",
"private ParameterUtils() {}",
"@Override\r\n\tpublic void initParameter() {\n\t\tsuper... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor which sets the default scanner. | public Parser(java_cup.runtime.Scanner s) {super(s);} | [
"public Scanner() {\n }",
"void setScanner(Scanner in) {\n scanner = in;\n }",
"public StyleScanner()\n {\n this(\"\");\n }",
"public ECGReader(java_cup.runtime.Scanner s) {super(s);}",
"public LuaBaseScanner() {\n super();\n }",
"public Parser(Scanner scanner) {\n \t\tthis.s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Short description";
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}",
"public String getServletInfo()\r\n {\r\n\treturn \"Short description\";\r\n }",
"@Override\n public String getServletInfo() {\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required int32 start_time = 2; | public int getStartTime() {
return startTime_;
} | [
"int getStartTimeMs();",
"public int getStartTime() {return this.startTime;}",
"public long getStartTime ();",
"long getTimeStarted();",
"ENumber getStart();",
"@Override\n\t\t\t\t\tpublic long getStartTime() {\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}",
"private long timeStart(){\n\treturn System.currentTim... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates "date from" choosing dialog. | private void createDateFromPickerDialog() {
CalendarDatePickerDialog.OnDateSetListener dateFromListener =
new CalendarDatePickerDialog.OnDateSetListener() {
@Override
public void onDateSet(CalendarDatePickerDialog dialog, int year,
... | [
"@Override\n public void onClick(View v) {\n new DatePickerDialog(InsertDebts.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }",
"@Override\n ... | {
"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() {
jDialogDetalle_documento = new javax.swing.JDialog();
jLabel12 = new javax.swing.JLabel();
jCPanel1 = new com.bolivia.panel.JCPanel();... | [
"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"
]
]
}
} |
TODO Returns the first record for a particular keyword. This record will link to other records If the keyword is not in the bst, it should return null. | public Record get_records(String keyword)
{
Node current = root;
while (current != null)//loop until node is null
{
if (keyword.compareTo(current.keyword) < 0)//if keyword compared to root's keyword <0
{
current = current.l;//current no... | [
"public Record get_records(String keyword){\n if(!contains(keyword)){\r\n \t return null;\r\n } else {\r\n return get_recordsHelper(root, keyword);\r\n }\r\n }",
"protected Key getKey(String keyword)\n\t{\n\t\tfor (int i = 0; i < _conditionList.size(); i++)\n\t\t{\n\t\t\tKey ky = (K... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method contains Method to invert an existing route. | public CTATrainRoute invertRoute(CTATrainRoute oppositeRoute) {
CTATrainRoute inverted = new CTATrainRoute();
inverted.add(oppositeRoute.head);
System.out.println("New inverted head added");
CTAStation current = oppositeRoute.head.getNext();
System.out.println(current.getName());... | [
"public I inverse();",
"void invert();",
"void oppositeDirection();",
"public void mirrorInverse() {\n\t\t// TODO implement me\n\t}",
"public void inverseOperation();",
"Route transform(Route route);",
"public void invert(boolean inverted);",
"private void viderRouteRIP() {\n\t\tfor (Route route : tab... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create the library for the given userId | public void createLibrary(String userId, boolean transfer, Intent accountData) {
if (transfer) {
LibraryHelper.copyLibrary(BusinessRules.DEFAULT_ACCOUNT_NAME, userId, BBBApplication.getApplication().getContentResolver());
// Prepare the reader settings
ReaderSettingHelper.tr... | [
"public com.sdr.metadata.model.ApiKey create(long userId);",
"private void createNewAccount(int userId) {\n\t\taccountNo = Constants.getAssignAccount();\n\t\tdb.add(accountNo, userId, 0, 4);\n\t}",
"private void createUser(String userID, int port, String address) throws IOException {\n User user = new Us... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If specified, header match will be performed based on whether the header is in the request. bool present_match = 7; | boolean getPresentMatch(); | [
"boolean containsHeader(String name);",
"public boolean containsHeader(String name)\n/* */ {\n/* 242 */ for (int i = 0; i < this.headers.size(); i++) {\n/* 243 */ Header header = (Header)this.headers.get(i);\n/* 244 */ if (header.getName().equalsIgnoreCase(name)) {\n/* 245 */ return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes the bed from the database. Also notifies the appropriate model listeners. | @Override
public com.surwing.model.Bed deleteBed(com.surwing.model.Bed bed)
throws com.liferay.portal.kernel.exception.SystemException {
return _bedLocalService.deleteBed(bed);
} | [
"public void delete() {\n\t\tif (id.isPresent()) {\n\t\t\tPatientUtils.deleteByID(getId());\n\t\t}\n\t\t//else not in db\n\t}",
"public void delete(){\n EntityManager em = EMF.createEntityManager();\n em.getTransaction().begin();\n em.remove(this);\n em.getTransaction().commit();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .PharmacyManager pharmacy_managers = 1; | public Builder addPharmacyManagers(top.itcat.pb_gen.common.UserModel.PharmacyManager value) {
if (pharmacyManagersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePharmacyManagersIsMutab... | [
"private Propriedades() {\r\n\t}",
"private Management() {\r\n\t}",
"private ListManager() {\n\t}",
"@Override\n\tpublic void pants() {\n\t\t\n\t}",
"AutonomicManager createAutonomicManager();",
"private LJGroups() {\n // initializeLibrary();\n initGAGroupLibrary();\n // initializePrim... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: v | static Map<String, String> m74v(Map<String, String> map) {
Map<String, String> hashMap = new HashMap();
for (Entry entry : map.entrySet()) {
if (((String) entry.getKey()).startsWith("&") && entry.getValue() != null) {
CharSequence substring = ((String) entry.getKey()).substri... | [
"void mo5832a(V v);",
"protected abstract int mo4149c(V v);",
"protected abstract V mo332a(int i, V v);",
"protected void SetVector(NodeVector v) {\n/* 87 */ setObject(v);\n/* */ }",
"protected final void mo7539a(V v) {\n this.a = v;\n }",
"public float getV()\n {\n return v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ entering order number | public boolean enterOrderNumber(String orderNumber) {
try {
driverUtils.verifyElementPresence(driverUtils, world.driver,elementLib.getString("input_OrderNumber") , 20);
world.driver.findElement(By.xpath(elementLib.getString("input_OrderNumber"))).sendKeys(orderNumber);
}catch (Exception e1) {
thr... | [
"public void setOrderNumber(int orderNumber);",
"public void setOrderNo (Integer orderNo) {\r\n this.orderNo = orderNo;\r\n }",
"public void setOrderNo (java.lang.Integer orderNo) {\r\n\t\tthis.orderNo = orderNo;\r\n\t}",
"public void VerifyOrderNumber() {\n\t\tobjGenericMethods.waitDriverWhenReady(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Runs on main thread. | @Override
protected void onPreExecute() {
loading = ProgressDialog.show(mActivity, "",mActivity.getString(R.string.loading), true);
} | [
"@Override\n public synchronized void run() {\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t_main();\n\t\t\t}",
"public void run() {\n \t\n }",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tthis.main(null);\n\t\t} catch (IOExcept... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.my_topic);
userID=getIntent().getExtras().getInt(USERID);
object_key = TopicsActivity.class.getSimpleName() + "_" + PreferencesUtils.getUserName() +"_"+PreferencesUtils.getCommunity().getI... | [
"@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"
]
]
}
} |
Sets the max allowed page size to be retrieved. | public void setMaxPageSize(int maxPageSize) {
this.maxPageSize = maxPageSize;
} | [
"public void setMaximumSize(int size)\n {\n maxSize = size;\n }",
"public void setMaxSize(int maxSize) {\r\n this.maxSize = maxSize;\r\n }",
"public void setMaxRequestSize(String maxRequestSize)\n/* */ {\n/* 89 */ this.maxRequestSize = parseSize(maxRequestSize);\n/* */ }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the "MeasureCategoryText" element | public void setMeasureCategoryText(gov.niem.niem.niem_core._2_0.TextType measureCategoryText)
{
synchronized (monitor())
{
check_orphaned();
gov.niem.niem.niem_core._2_0.TextType target = null;
target = (gov.niem.niem.niem_core._2_0.TextType)get_store().find_eleme... | [
"private void setVodCategoryDescription(String mCategoryDescription){\n TextView vodCategoryDescription = (TextView) findViewById(R.id.vodCategoryDescription);\n vodCategoryDescription.setText(\"Kategoria: \" + mCategoryDescription);\n vodCategoryDescription.setTypeface(null, Typeface.BOLD);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleComplexType" $ANTLR start "entryRuleDataStructure" InternalDataDsl.g:178:1: entryRuleDataStructure : ruleDataStructure EOF ; | public final void entryRuleDataStructure() throws RecognitionException {
try {
// InternalDataDsl.g:179:1: ( ruleDataStructure EOF )
// InternalDataDsl.g:180:1: ruleDataStructure EOF
{
before(grammarAccess.getDataStructureRule());
pushFollow(FOLLOW_1... | [
"public final void entryRuleComplexType() throws RecognitionException {\n try {\n // InternalOperationDsl.g:1336:1: ( ruleComplexType EOF )\n // InternalOperationDsl.g:1337:1: ruleComplexType EOF\n {\n before(grammarAccess.getComplexTypeRule()); \n push... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo encargado de retornar una sola direccion por su identificador | public Direccion findDireccionById(int id) throws NoResultException, NonUniqueResultException {
return EM.createNamedQuery(Direccion.FIND_BY_ID,Direccion.class)
.setParameter("p4", id)
.getSingleResult();
} | [
"String getDireccion();",
"public String obtenerDireccion(){\n \tFile temp = new File(\"Banco\");\n \treturn temp.getAbsolutePath()+File.separator; //obtener ruta completa\n }",
"int getDirid();",
"public String midirectorio(String docente) {\n File directorio = new File(direccion + docente);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public properties of the enum members | public double getValue() { return value; } | [
"private EnumType() {\n initFields();\n }",
"EnumPropertyType getEnumProperty();",
"private EnumTypedef() {\n initFields();\n }",
"static interface Properties {\n /** . */\n String MULTIVALUED = \"MULTIVALUED\";\n /** . */\n String GENERIC_TYPE = \"GENERIC_TYPE\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
adds the given number of points to the player's score | public void addPointsToScore(int points) {
score += points;
} | [
"public void addPoints(int points){\n\t\tthis.score += points;\n\t}",
"public void addPoints(int points)\r\n\t{\r\n\t\tscore += points;\r\n\t}",
"public void addScore(long points) { score += points; }",
"protected void addScore(int points) {\n score += points;\n showScore();\n }",
"public v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
links patients register and starts the activity | @Override
public void onClick(View v) {
Intent Intent = new Intent(MainActivity.this, PatientRegister.class);
startActivity(Intent);
} | [
"public void openPatientSignUpActivity(){\n Intent intent = new Intent(this, PatientSignUpActivity.class);\n startActivity(intent);\n }",
"public void startRegistration() {\n Map record = new HashMap();\n record.put(\"listenport\", String.valueOf(5678));\n record.put(\"name\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Configure the chained proxy rabbit is using (if any). | private void setupProxyConnection () {
String sec = getClass ().getName ();
String pname = config.getProperty (sec, "proxyhost", "");
String pport = config.getProperty (sec, "proxyport", "");
if (!pname.equals ("") && !pport.equals ("")) {
try {
proxy = dnsHandler.getInetAddress (pname);
} catch (Unknow... | [
"public void configure()\n {\n if ((getHost() != null) && (getHost().trim().length() > 0))\n {\n Properties sysprops = System.getProperties();\n String portString = Integer.toString(getPort());\n\n sysprops.put(\"http.proxyHost\", getHost());\n sysprops.p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public List<Persona> consultarPorNombre(String nombre) {
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"
]
]
}
} |
test the method samePosn | boolean testSamePosn(Tester t) {
Posn ps1 = new Posn(2, 3);
Posn ps2 = new Posn(3, 3);
return t.checkExpect(ps1.samePosn(ps2), false)
&& t.checkExpect(ps1.samePosn(ps1), true)
&& t.checkExpect(ps2.samePosn(ps2), true);
} | [
"boolean isEqual(Position p) {\n\t return p.x == x && p.y == y;\n\t }",
"private boolean equalPosition(Position p1, Position p2) {\n return p1.getX() == p2.getX()\n && p1.getY() == p2.getY();\n }",
"@Test\n public void equalsTrueMySelf() {\n Position position1 = new Positi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
PREPARA DIALOGO ANTES DE ABRIR | private void Manager_Sobre ()
{
sob.setLocationRelativeTo(null);
sob.setResizable(false);
sob.setTitle("Sobre");
sob.setVisible(true);
} | [
"private void bottonePremuto() {\n /* variabili e costanti locali di lavoro */\n Ricerca ricerca;\n RicercaBase rb;\n\n try { // prova ad eseguire il codice\n\n /**\n * non ri-avvia ma rende solo il dialogo visibile\n * per n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | private MotionEvent getMotionEvent(int x, int y, int action) {
long downTime = SystemClock.uptimeMillis();
long eventTime = SystemClock.uptimeMillis();
int metaState = 0;
return MotionEvent.obtain(
downTime,
eventTime,
... | [
"@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"
]
]
}
} |
Creates an unmodifiable catalog piece of furniture of the default catalog. | public CatalogPieceOfFurniture(String id, String name, String description,
Content icon, Content planIcon, Content model,
float width, float depth, float height, float elevation,
boolean movable, float [][] modelRotati... | [
"private DefaultCatalog() {\n super(\"\");\n }",
"public static CourseCatalog createEmpty(){\n return new CourseCatalog();\n }",
"@Override\n\tpublic synchronized String getDefaultCatalog() {\n\t\treturn super.getDefaultCatalog();\n\t}",
"CatalogMetadata createCatalogMetadata();",
"Catalogs ca... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by Iwan on 02.06.2016. | public interface ResultService {
FullResult getResult(Set<Result> results);
} | [
"@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"
]
]
}
} |
By default, the path will not end with a trailing slash. | public UrlBuilder includeTrailingSlash()
{
trailingPathSlash = true;
return this;
} | [
"public static String stripTrailingSlash(String aPath)\n{\n String path = aPath; int plen = path.length();\n if(plen>1 && path.endsWith(\"/\")) path = path.substring(0, plen-1);\n return path;\n}",
"private String stripFinalSlash(String path) {\n \t\tString returnValue = path;\n \t\tif(returnValue.endsWi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of createWorkbookFor method, of class ExcelCreator. | @Test
public void testCreateWorkbookFor() {
File folder = new File("D:\\Code\\irees\\ZebToolJavaFx\\src\\test\\ressources\\zebs\\Holger");
FromFolderExtractor instance = new FromFolderExtractor();
List<Employee> employees = new ArrayList<Employee>();
List<Project> projects = new Arra... | [
"public boolean isWorkbook();",
"private Workbook createWorkbook(String extension) throws IOException {\n switch (extension.toLowerCase()) {\n case \"xls\":\n workbook = new HSSFWorkbook(iFile);\n break;\n case \"xlsx\":\n workbook = new XS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form MenuItem | public MenuCatalogueItem(double price, String productName, String productType, ActionListener listener) {
initComponents();
mPrice = price;
mProductName = productName;
mProductType = productType;
priceButton.setText(String.valueOf(price) + "€");
priceButton.addA... | [
"private javax.swing.JMenuItem createMenuItem (javax.swing.JMenu menu, String name) {\n\t\tjavax.swing.JMenuItem l_mi = new javax.swing.JMenuItem (name);\n\t\tl_mi.setActionCommand (name);\n\t\tmenu.add (l_mi);\n\t\tl_mi.addActionListener (actionsHandler);\n\t\treturn l_mi;\n\t}",
"public void createMenuItem(Menu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter de las etiquetas | public HashMap<String, Integer> getEtiquetas() {
return etiquetas;
} | [
"@Override\n public Float getTiempo() {\n return super.getTiempo(); //To change body of generated methods, choose Tools | Templates.\n }",
"public double getTiempoTransito(){\r\n return tiempoTransito;\r\n }",
"public int getTamaño(){\n return tamaño;\n }",
"public long getAti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: packageprivate / renamed from: a | public final KeyProtoT mo14247a(zzeiu zzeiu) {
KeyFormatProtoT zzq = this.f9256a.zzq(zzeiu);
this.f9256a.zzc(zzq);
return (zzels) this.f9256a.zzd(zzq);
} | [
"protected void a() {}",
"private void a() {\n }",
"protected abstract void mo3493a();",
"public void mo28221a() {\n }",
"protected void method_5557() {}",
"@Override\r\n\tpublic void a2() {\n\t\t\r\n\t}",
"public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clear the bit set, so the bit set value is all false. | void clear(); | [
"public void clear() {\n final long stamp = lock.writeLock();\n try {\n Arrays.fill(this.bitset, 0);\n } finally {\n lock.unlockWrite(stamp);\n }\n }",
"public void clearBit(int bit, Register r){\n\t\t}",
"public void clearFlagged() { userBits &= ~NODEFLAGBIT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allow ImageLoader to stop load when ListView onScroll and onFling | protected void applyScrollListener(AbsListView view) {
if(view != null){
view.setOnScrollListener(new PauseOnScrollListener(mImageLoader, pauseOnScroll, pauseOnFling));
}
} | [
"@Override\n public void onLoadingStarted(String arg0, View arg1) {\n plv.indicator.setVisibility(View.INVISIBLE);\n plv.iconImg.setVisibility(View.VISIBLE);\n\n }",
"@Override\n \t\tpublic void onScroll(AbsListView view, int firstVisibleItem, in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / / | public float getCooledAttackStrength() {
/* 64 */ return this.cooledAttackStrength;
/* */ } | [
"private void calculatePaths() {\n\n\n }",
"public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void mouseEntered(MouseEvent e) {
} | [
"@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"
]
]
}
} |
To be done : load it from file Not yet implemented, just a stub | public static BankAgency getBankAgency () {
BankAgency ag = new BankAgency("Tinkoff Bank", "Kazan");
try {
ag.addAccount(new Account("010101", "Durand"));
ag.addAccount(new Account("010102", "Durand"));
ag.addAccount(new Account("050501", "Leon"));
ag.addAccount(new Account("050502", "Leon"));... | [
"default void load() {\n\t\t\n\t}",
"public void load() {\n\t\t\t}",
"public void load()\n\t{\n\t\t\n\t}",
"@Override\r\n\t\tprotected void load() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tprotected void load() {\n\t}",
"public void load(File source);",
"protected abstract void loadDataFromFile();",
"publi... | {
"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();
//noinspection SimplifiableIfStatement
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"
]
]
}
} |
Setter of filtered task status on node data. | public void setTasksStatusOnNodeFiltered(List<TaskStatusOnNode> tasksStatusOnNodeFiltered) {
this.tasksStatusOnNodeFiltered = tasksStatusOnNodeFiltered;
} | [
"public void setStatus(TaskStatus status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setTaskStatus(String taskStatus) {\r\n\t\tthis.taskStatus = taskStatus;\r\n\t}",
"public void setStatus(TaskStatus aStatus);",
"public void changeStatus(Task task) {\n this.tx(em -> {\n Task existi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete a PreferredTerm relationship, which is a link between glossary terms, it is a Link to an alternative term that the organization prefers is used. | @DeleteMapping(path = "/users/{userId}/relationships/preferred-terms/{guid}")
public SubjectAreaOMASAPIResponse<PreferredTerm> deletePreferredTermRelationship(@PathVariable String serverName,
@PathVariable String userId,
... | [
"protected void commandDelete()\n {\n if (actionObject instanceof Term)\n {\n Term t = (Term) actionObject;\n Vector<?> relationships = ontologyCore.getRelationships();\n for (Iterator<?> i = relationships.iterator(); i.hasNext();)\n {\n Re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a humanreadable description for this output. | public String getDescription(); | [
"public String getDescription() {\n //remember to test for trap using its flag\n makeDescription();\n return this.myDescription.toString();\n }",
"public String getDescription() {\n return (description);\n }",
"@Override\r\n\tpublic String getDescription() {\n\t\treturn this.de... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
String query = " | public static void main (String args[]) throws Exception{
getWordList(getContentByUrl(input()));
} | [
"String formQuery();",
"String queryParse(String query);",
"String getUserQuery();",
"protected abstract String getQuery();",
"public String getQuery()\n {\n return query;\n }",
"public abstract void rawQuery(String query);",
"protected abstract String createQuery();",
"public String getQuery() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Kills this connection and the thread running it. Doesn't care about the consequences. | public void kill() {
mQuitRuthless = true;
disconnect();
} | [
"public void kill() {\n logger.log(1, logKey, \"called the kill method\\n\");\n alive = false;\n logger.log(1, logKey, \"set the alive flag to false\\n\");\n try {\n Socket closeSocket = new Socket(serverAddress, serverPort);\n closeSocket.close();\n } catch ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build AST node with its line in the source file and the given sons | public ASTNode(int line, ASTNode... sons) {
this(sons);
this.line = line;
} | [
"public static FBSourceFile createSourceFile(FBHistoryNode historyNode, FBRepository repo) throws SVNException, IOException {\n\t\tString fileContents = repo.getFileNodeContents(historyNode);\n\t\t\n\t\t\n\t\t//Now we set up the parser\n\t\tASTParser parser = ASTParser.newParser(AST.JLS4);\n\t\tparser.setSource(fil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Process one incoming block of file data. | public void processMsgFile(Message msg) {
lastActivity = System.currentTimeMillis();
try {
int blockNum = Integer.parseInt(jc.getMsgString(msg, jc.BLOCKNUM));
String msgSender = jc.getMsgString(msg, jc.SENDERNAME);
String msgSenderId = jc.getMsgString(msg, jc.SEND... | [
"public void process(SourceStream file, D data) throws IOException, InvalidFileLineEntry {\n BufferedReader reader = file.getBufferedReader();\n process(reader, data);\n reader.close();\n }",
"@Override\n\tpublic File processData(File rawdata) {\n\t\treturn null;\n\t}",
"void nextBlock()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Make RESTful webservice call using AsyncHttpClient object | public void invokeWS(RequestParams params) {
AsyncHttpClient client = new AsyncHttpClient();
client.get("http://162.219.247.87/status/doupdatestatus", params, new AsyncHttpResponseHandler() {
// When the response returned by REST has Http response code '200'
@Override
... | [
"public interface AsyncClient extends Client\n{\n\n HttpAsyncRequestProducer createAsyncProducer(HttpUriRequest request);\n\n <T> Future<T> execute(HttpAsyncRequestProducer producer, HttpAsyncResponseConsumer<T> consumer);\n\n <T> Future<T> execute(HttpAsyncRequestProducer producer, HttpAsyncResponseConsumer<... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 7 /Coverage entropy=2.094729047527649 | @Test(timeout = 4000)
public void test007() throws Throwable {
HashMap<Double, Integer> hashMap0 = new HashMap<Double, Integer>();
JSONObject jSONObject0 = new JSONObject((Map) hashMap0);
JSONObject jSONObject1 = jSONObject0.put("[qI", (-216));
int int0 = jSONObject1.optInt("[qI");
ass... | [
"@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new ImageLoader. | public FileLoader(PApplet applet) {
super(applet);
} | [
"public ImageLoader() {\n\t\tthis.image = null;\n\t\tthis.bufferedImage = null;\n\t}",
"public ImageLoader init(Context context) {\n\t\tif (impl == null) {\n\t\t\timpl = new ImageLoaderImpl(4 * 1024 * 1024, defaultPath(context));\n\t\t}\n\t\treturn this;\n\t}",
"public BufferedImageLoader getImageLoader() {retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public String execute() throws Exception {
list=new ArrayList();
setList(commentservice.getUsersComment(userid));
Loger.addLog(userid,this,"得到了用户评论列表");
if (callback == null||callback.equals("")) {
return SUCCESS;
} else {
JSONObject jsonObj = JSONObject.fromObject(list);
System.out.prin... | [
"@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"
]
]
}
} |
we are adding the cardinality element to the restriction | private void addValueToCardinalityRestriction(BNode rId, Literal cardinalityValue, IRI type) {
OWLRestriction restr = (allOpenRestrictions.containsKey(rId)? allOpenRestrictions.get(rId): new OWLRestriction(rId));
restr.setCardinalityValue(cardinalityValue);
restr.setCardinalitySpecificType(type);
if(!al... | [
"public UnionRestriction(int size) {\r\n\t\tsuper();\r\n\t\trestrictionsGroups = new ArrayList<LinkedHashSet<Restriction>>(size);\r\n\t}",
"CardinalityDefinition getElementDefinitionCardinality(Element parentElement);",
"@Override\n public Expression visitAbsoluteExp(GdslParser.AbsoluteExpContext ctx) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Associate the volume with the specified QoS policy. Possible values: true: Associate the volume with the QoS policy specified in the QoSPolicyID parameter. false: Do not assosciate the volume with the QoS policy specified in the QoSPolicyID parameter. When false, any existing policy association is removed regardless of... | public Optional<Boolean> getAssociateWithQoSPolicy() { return this.associateWithQoSPolicy; } | [
"public com.squareup.okhttp.Call oSPOspIdPrivacyPolicyPutAsync(String ospId, OSPReasonPolicyInput ospPolicy, final ApiCallback<Void> callback) throws ApiException {\n\n ProgressResponseBody.ProgressListener progressListener = null;\n ProgressRequestBody.ProgressRequestListener progressRequestListener ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form TaskList | public CurrentTasksUI(ArrayList job, ArrayList user) {
dbtk = new DataBaseToolkit();
initComponents();
this.job = job;
setTaskList();
this.user = user;
this.role = this.user.get(5).toString();
setButtons(role);
} | [
"@RequestMapping(value = \"/createTaskForm\")\r\n\tpublic ModelAndView createTaskForm(ModelAndView model) {\r\n\t\t// map create task from in the view page\r\n\t\tTask task = new Task();\r\n\t\tmodel.addObject(task);\r\n\t\tmodel.setViewName(\"createTask\");\r\n\t\treturn model;\r\n\t}",
"private void createAndAd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Personal_MainActivity t = (Personal_MainActivity) targetParameter; | public void addFirstStatement() {
mBuilder.addStatement("$T t = ($T) " + ProcessorConfig.PARAMETER_NAME,
mClassName, mClassName);
} | [
"@Override\n\tpublic Class getTargetActivity() {\n\t\treturn MainActivity.class;\n\t}",
"public static void UnimKoxux(Activity A, View v){\n}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_new_user);\n\n Inte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the "rcvd_time_min" attribute | double getRcvdTimeMin(); | [
"public double getMinTime() {\n\t\treturn this.minTime;\n\t}",
"protected long getMinTimeStamp () {\n\t\treturn this.minTimeStamp;\n\t}",
"protected Double getMinIntervalTimeStamp()\n {\n return minIntervalTimeStamp;\n }",
"public double getValMin() {\n return valMin;\n }",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests the tasteBeers method. | @Test
public void testTastBeers() {
JosephusBeerFlight beerFlight = new JosephusBeerFlight(flight);
LinkedList<Beer> tasting = beerFlight.tasteBeers(1, 3, true);
assertTrue(tasting.size() == flight.length);
assertEquals(tasting.get(0), flight[2]);
assertEquals(tasting.get(1), flight[5]);
asser... | [
"@Test\n void getHaste_Has_te() {\n Creature creature = new Creature(\"Name\", \"No color\", \"0\", \"Trample. Has Rampage\" +\n \"te. Double strike.\", 0, 1, \"Human\");\n assertFalse(creature.getHaste());\n }",
"public boolean hasTaste() {\n return tasteBuilder_ != null |... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generate the corresponding account management private key or transaction private key according to the seed private key and password | public static BigInteger genPrivKey(byte[] priSeed, byte[] pw) {
byte[] privSeedSha256 = Sha256Hash.hash(priSeed);
//get sha256 of priSeed and sha256 of pw,
byte[] pwSha256 = Sha256Hash.hash(pw);
//privSeedSha256 + pwPwSha256
byte[] pwPriBytes = new byte[privSeedSha256.length + ... | [
"public SecretKey genKey();",
"Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException;",
"@PostConstruct\n private void generateKey() {\n String keyString = \"simplekey\";\n secretKey = new SecretKeySpec(keyString.getBytes(), 0, keyString.getBytes().length, \"DES\");\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the txnmy code. | public String getTxnmyCode() {
return txnmyCode;
} | [
"public String getTxnCode() {\n\n return txnCode;\n }",
"public String getCode(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, \"code\".intern());\n\t}",
"public java.lang.String getTransactionCode () {\r\n\t\t\treturn transactionCode;\r\n\t}",
"public java.lang.String getTransa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Dado el conjunto de oids de clientes de los consolidados que vamos a procesar se recuperan los oids de clientes que corresponden a consultoras con estatus 'Nueva'. | public ArrayList obtenerListaConsultorasEstatusNueva(ArrayList oidsCliente) throws MareException {
UtilidadesLog.info("MONBalanceoAreaChequeoBean.obtenerListaConsultorasEstatusNueva(oidsClientes): Entrada");
ArrayList consultorasEstatusNueva = new ArrayList();
DTOSalida dtoS = new DAOBa... | [
"@Override\n\tpublic void consultarCliente() {\n\t\tString id = JOptionPane.showInputDialog(\"Ingresar el id de la empresa\");\n\t\tString tipoid = JOptionPane.showInputDialog(\"Ingrese la tipo de id de la empresa que desea consultar\"); \n\t\tindExiste = false;\n\t\t \n for (Empresas wEmpresas : arraEmpresa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
concats values Formulainternally. Takes care of the spillover character _ | private static Value concat(final ValueList values) {
if (values.size() == 0) {
return Value.of("");
}
if (values.size() == 1) {
return values.get(0);
}
int overflowCount = 0;
final StringBuilder sb = new StringBuilder();
boolean firstNon... | [
"private static Result f_comp() throws BadFormulaException {\n Result a;\n a = f_comp1();\n while( get1() == '&' ) {\n a = new Result( OPER_CONCAT, a, f_comp1() );\n }\n unget1();\n return a;\n }",
"@Override\n public String optimizeFormula(String formula... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public AccountBean seq() {
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"
]
]
}
} |
$ANTLR end "entryRuleunknownBody" $ANTLR start "ruleunknownBody" ../info.kwarc.mmt.lf.ui/srcgen/info/kwarc/mmt/ui/contentassist/antlr/internal/InternalLF.g:967:1: ruleunknownBody : ( ( rule__UnknownBody__Group__0 ) ) ; | public final void ruleunknownBody() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../info.kwarc.mmt.lf.ui/src-gen/info/kwarc/mmt/ui/contentassist/antlr/internal/InternalLF.g:971:2: ( ( ( rule__UnknownBody__Group__0 ) ) )
// ../info.kwarc.... | [
"public final EObject entryRuleRuleBody() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleRuleBody = null;\r\n\r\n\r\n try {\r\n // InternalLpp.g:1379:49: (iv_ruleRuleBody= ruleRuleBody EOF )\r\n // InternalLpp.g:1380:2: iv_ruleRuleBody= ru... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get data from firebase | private void getDataFromFirebase(int type){
mDataBase = FirebaseDatabase.getInstance().getReference("Practices").child(Common.language.getId());
Query query = mDataBase.orderByChild("lessonId").equalTo(lesson.getId());
query.addValueEventListener(new ValueEventListener() {
@Override
... | [
"protected void getData() {\n\n //Getting all the usernames\n Firebase userReference = new Firebase(\"https://ipark-e243b.firebaseio.com/Users\");\n\n userReference.addValueEventListener(new com.firebase.client.ValueEventListener() {\n @Override\n public void onDataChange(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by IntelliJ IDEA. User: Bratell Date: Nov 30, 2002 Time: 11:50:20 AM To change this template use Options | File Templates. | public interface SimAnnealProgressListener
{
void onProgress(int progress, int max);
void onNewBest(PlacementWithCost solution, String solutionDescription, int cost);
void onFinished(PlacementWithCost solution, String bestSolutionDescription, int bestCost);
} | [
"public void mo5201a() {\n }",
"@Override\n public void extornar() {\n \n }",
"private static void EX5() {\n\t\t\r\n\t}",
"private void IntelliJSucks() {\n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"public void mo28221a() {\n }",
"public stat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table group | public void setDistinct(boolean distinct) {
this.distinct = distinct;
} | [
"@Override\r\n\tprotected String tableName() {\n\t\treturn TABLE_NAME;\r\n\t}",
"public String getJdbcTable();",
"@Override\n public String asTableDbName() {\n return \"park_sea\";\n }",
"@Transient\n\t@Override\n\tpublic String getTableName() {\n\t\treturn \"查询定义器\";\n\t}",
"protected String g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Attempts to land one aircraft waiting in the landing queue and park it at a suitable gate. If there are no aircraft in the landing queue waiting to land, then the method should return false and no further action should be taken. If there is at least one aircraft in the landing queue, then a suitable gate should be foun... | public boolean tryLandAircraft() {
// no aircraft in the landing queue
if (this.landingQueue.getAircraftInOrder().isEmpty()) {
return false;
} else {
try {
// find a suitable gate and assign it to suitableGate
Gate suitableGate = this.find... | [
"public T containsLanding()\n\t{\n\t\tfor(int i = 0; i<this.size();i++) //flight queue\n\t\t\tif(this.t.get(i) instanceof Landings)\n\t\t\t\treturn this.t.remove(i); //return landing object\n\t\treturn null;//departure object\n\t}",
"private Boolean somebodyIsWaiting() {\n return !building.getFloor(current... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
User Apache HTTP Library | public static String getContent(String url) {
HttpGet get = null;
try {
get = new HttpGet(url);
HttpResponse response = getHttpClient(SOCKET_TIMEOUT_MILLIS).execute(get);
StatusLine statusLine = response.getStatusLine();
HttpEntity httpEntity = response.ge... | [
"public static void newHttpClient() {\n // TODO define basic aspects of a new HTTP client\n }",
"public AccesHttp() {\n super();\n }",
"protected abstract HttpClient createHttpClient();",
"public Protocol() {\r\n reqProperties = new Properties();\r\n headerFields = new Proper... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compute the volume of a cylinder with specified half extents. | public static float cylinderVolume(Vector3f halfExtents) {
Validate.nonNegative(halfExtents, "half extents");
float volume = FastMath.TWO_PI
* halfExtents.x * halfExtents.y * halfExtents.z;
assert volume >= 0f : volume;
return volume;
} | [
"public double getVolume() {\r\n\t\t\r\n\t\treturn (PI * radius * 2 * (coneHeight/3)) + ((4 * Math.pow(PI, 3) * radius)/3)/2;\r\n\t\t\r\n\t}",
"double calcVolume(){\n double lengthofthesides = side * 4;\n return lengthofthesides;\n }",
"@Override\n \tpublic double getComponentVolume() {\n \t\td... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is to get the employee name if the employee is not exists then returns empty | public String getuserName(int userId)
{
if(userprofileMap.containsKey(userId))
{
UserLoginHistoryBO user=userprofileMap.get(userId);
return user.getLoging_ID();// instead of fullName Called Loging_Id
}
else
return "";
} | [
"@Override\n\tpublic String getEmployee(Employee employee) {\n\t\treturn employee.getName();\n\t}",
"public String getEmployeeName()\n\t{\n\t\treturn getEmployeeName( getSession().getSessionContext() );\n\t}",
"public static String getName(){\n\t\tString name=\"\";\n\t\tname = emp.getName();\n\t\treturn name;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
both x and y have to be inside the rectangle limits | public boolean contains(Vector2 p) {
return p.x >= x && p.x <= x + width && p.y >= y && p.y <= y + height;
} | [
"void checkPoint(final int x0, final int y0) {\n if (x0 < minX) {\n minX = x0;\n } else if (x0 > maxX) {\n maxX = x0;\n }\n \n if (y0 < minY) {\n minY = y0;\n } else if (y0 > maxY) {\n maxY = y0;\n }\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |