query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Find the _Fields constant that matches name, or null if its not found. | public static _Fields findByName(String name) {
return byName.get(name);
} | [
"public static _Fields findByName(String name)\r\n {\r\n return byName.get(name);\r\n }",
"public Field getField(String name) {\n for(Field field : fieldList) {\n if(field.getName().equals(name)) {\n return field;\n }\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this dynamically extends to take the bytes you read | public byte[] readBytes(InputStream inputStream) throws IOException {
ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream();
// this is storage overwritten on each iteration with bytes
int bufferSize = 1024;
byte[] buffer = new byte[bufferSize];
// we need to know how ... | [
"public abstract byte[] tryReadBytes();",
"protected void doReadBytes(byte[] bytes, int start, int length) throws IOException {\n\n }",
"public abstract int read(byte[] d) throws IOException;",
"public abstract int getTotalBytesRead();",
"public byte[] read(){return new byte[1];}",
"public abstract int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the EligibleChildResourcesClient object to access its operations. | public EligibleChildResourcesClient getEligibleChildResources() {
return this.eligibleChildResources;
} | [
"Collection<CoupledResource> getCoupledResource();",
"@NonNull\n public ComprehendClient getComprehendClient() {\n return comprehendService.getClient();\n }",
"public java.util.List<org.apache.mesos.v1.Protos.Resource> getOfferedResourcesList() {\n if (offeredResourcesBuilder_ == null) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column itrip_order_link_user.orderId | public Long getOrderid() {
return orderid;
} | [
"public int getOrderId() {\r\n return orderId;\r\n }",
"public Integer getOrderId() {\r\n\t\treturn orderId;\r\n\t}",
"public String getOrderId()\n\t{\n\t\treturn orderId;\n\t}",
"public long getOrderId()\n {\n return __m_OrderId;\n }",
"@ApiModelProperty(value = \"Order identifier ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 item_ability_id = 2; | public Builder setItemAbilityId(int value) {
bitField0_ |= 0x00000002;
itemAbilityId_ = value;
onChanged();
return this;
} | [
"public interface Item {\n /**\n * The entry id\n * The id is unique for the bank, and generated by an increment\n *\n * Part of the primary key\n */\n public int entryId();\n\n /**\n * The item template id\n *\n * @see fr.quatrevieux.araknemu.data.world.entity.item.ItemTemp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the downsideVolatilityByTimeFrame value for this InvestmentDetailsGetResponse. | public void setDownsideVolatilityByTimeFrame(org.sly.www.main.server.webservice.bindings.TimeFrameStatistic[] downsideVolatilityByTimeFrame) {
this.downsideVolatilityByTimeFrame = downsideVolatilityByTimeFrame;
} | [
"@Output(IMPLIED_VOLATILITY)\n Result<Double> calculateImpliedVolatility(Environment env, SwaptionSecurity security);",
"public void volatilityAtPoint() {\n double forward = 1.40;\n double timeToExpiry = 0.50;\n double[] strikes = SMILE_TERM.getVolatilityTerm()[2].getStrike(forward);\n double volComp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required int32 align = 4; | public Builder clearAlign() {
bitField0_ = (bitField0_ & ~0x00000008);
align_ = 0;
onChanged();
return this;
} | [
"private int align32(Address addr) {\n int i_addr = addr.toInt();\n int offs = 0;\n\n while ((i_addr & 31) != 0) {\n i_addr++;\n offs++;\n }\n\n return offs;\n }",
"public void align() {\n\n\t}",
"private static long align(long size) {\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Displays the text in the clock in HH:mm:ss.mili | public void setDisplay(String displayText){
clockDisplay.setText(displayText);
} | [
"public void showTime() \n {\n showText(\"Time: \" + time, 845, 15);\n }",
"public void displayTime(){\n System.out.println(hours + \":\" + minutes + \":\" + seconds + \"\\n\");\n }",
"public void displayTime()\r\n {\r\n displayField.setText( \"The time is: \" + time );\r\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verify Visit is exist in Visit listing | public void verifyVisitIsDisplayedInVisitList(String SubjectName, String visitToBeVerified) {
searchSubject(SubjectName);
searchVisit(visitToBeVerified);
_normalWait(1500);
boolean flag = false;
if (gridTableFirstColumnList.size() > 0) {
if (firstColumnFilterOption.getText().trim().equalsIgnoreCase(visitTo... | [
"@Override\n\tpublic boolean isVisitDetailExists(String visitId) {\n\t\treturn clientVisitDAO.isVisitDetailExists(visitId);\n\t}",
"public boolean checkExisting(DepartureListItem travel) {\n Integer result = this.getIndexOfTravel(travel);\n\n return result != null;\n }",
"@Override\n public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the color with which the outline of black pieces is drawn. | @Override
public Color getBlackOutline(){
return blackOutline;
} | [
"public native int getOutlineColor();",
"public Color getColor() {\n return Color.BLACK;\n }",
"pen_t get_black_pen(void)\n\t{\n\t\treturn Machine->uifont->colortable[0];\n\t}",
"public static Color getMiddleColor(){\n\t\treturn playerColors[1];\n\t}",
"public Color getColor() {\n\n return pie... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if unsupported namespaces are detected. | @Test(expected = XmlException.class)
public void testUnsupportedNamespace() throws Exception {
NodeDescriptionParser parser = new NodeDescriptionParser();
parser.parseDescription(XSD_v28_unsupportedNamespace.class);
} | [
"protected boolean isNamespaces() {\n return getFeature(NAMESPACES);\n }",
"public boolean supportsNamespaces() {\n\t\treturn supportsNamespaces;\n\t}",
"boolean hasNamespace() {\n\t\treturn operatorsHandler instanceof XmlnsOperatorsHandler;\n\t}",
"boolean isNsExcluded(String ns);",
"public boole... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct an IssuanceSetupData object by pass its data fields | public IssuanceSetupData(short id, short size, IdemixFlags flags, BigInteger context, int timestamp) {
this.id = id;
this.size = size;
this.flags = flags;
this.context = context;
this.timestamp = timestamp;
} | [
"private RequestData initialize() {\n \tRequestData reqData = new RequestData();\n \treturn reqData;\n }",
"@BeforeMethod\n\t@Parameters({ \"isNewEmailRequired\", \"title\", \"fisrtName\", \"lastName\", \"email\", \"password\", \"date\",\n\t\t\t\"signUpForNewLetter\", \"receiveSpecialOffers\", \"addre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the rank for this card. | public Rank getRank() {
return rank;
} | [
"public int getRank(){\r\n /**\r\n * Gets the integer value of the Rank of a card.\r\n */\r\n return rank.getValue();\r\n }",
"public int getRankValue() {\r\n return cardRankValue;\r\n }",
"public int getRank() {\n return (rank);\n }",
"public Poker... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string node = 1; | public java.lang.String getNode() {
java.lang.Object ref = node_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
... | [
"Node(String name){\n nodeName = name;\n }",
"public void setNode2(String node2);",
"public String getNodeName() {\n/* 114 */ return \"text\";\n/* */ }",
"public String getNode();",
"void addNode (String name);",
"@Test\n public void testRenameNode_reference_String() {\n Syst... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Hide subwindow and remove all shapes from icon | public void destroyWindow(){
icon.clearAll();
hideWindow();
} | [
"public void hideScribblePad() {\r\n \t\tif (oScribblePad != null) {\r\n \t\t\toScribblePad.setVisible(false);\r\n \t\t\toViewFrame.setTitle(sTitle);\r\n \t\t\tremove(getIndexOf(oScribblePad));\r\n \t\t}\r\n \t}",
"private void hideSurroundings(){\n\t\tCell[] neighbors = board.getNeighbors(array[x][y]);\n\t\tfor ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
cambiar datos del recyclerview al cambiar texto del searchView y asi discriminar sitios por nombre del sitio y area | @Override
public boolean onQueryTextChange(String sitioB) {
//no mostrar recyclerView mientras se ejecuta el cambio
listaSitio.setVisibility(View.GONE);
//iniciar consulta
Gson gson = new GsonBuilder().setLenient().create();
Retrofit retrofit = new Retrofit.Builder()
... | [
"private View searchProvider(View view) {\n doctors = new ArrayList<>();\n doctors.add(new Doctor(\"Andranik\", \"Ortoped\", \"099112233\", \"andrani@gmail.com\"));\n doctors.add(new Doctor(\"Karen\", \"Ginekolog\", \"099569874\", \"Karen@gmail.com\"));\n doctors.add(new Doctor(\"Hayk\",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the base paths for zero or more targets. | protected static Collection<Path> collectBasePaths(final Iterable<BuildTarget> targets) {
return FluentIterable.from(targets).transform(
new Function<BuildTarget, Path>() {
@Override
public Path apply(BuildTarget input) {
return input.getBasePath();
}
})
... | [
"protected String getBasePath(String path, String[] basePaths) {\n LOGGER.debug(\"Init :: getBasePath()\");\n String basePath = StringUtils.EMPTY;\n if (StringUtils.isNotEmpty(path)) {\n for (String mapping : basePaths) {\n LOGGER.debug(PROCESSING, mapping);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method reads data from a local file and sends it back to caller | public void readFileData(IncomingRequest req, OutgoingReply reply, ServerThread server) throws Exception {
File theFile = this.getFile( req );
long offset = req._getUInt32("offset");
RandomAccessFile ras = null;
byte[] bytes = null;
int maxBufSize = 500000;
int bufSize =... | [
"private void readAndSendData(String dataFile, ActorRef actor) {\n FileReaderInterface<Data> reader = new DataReader();\n\n Data[] elements = reader.readAll(dataFile);\n\n actor.tell(elements.length, ActorRef.noSender());\n\n for (Data data : elements) {\n actor.tell(data, Act... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new test case. | public NumericsTest() {
} | [
"public static void CreateNewTestStep() {\n\t\t//System.out.println(\"New Test Case selected...\"); // DEBUGGING\n // Show File Chooser\n String filePath = Utilities.ShowHtmlFileChooser(IDE.ideStage);\n // With result (String) create the Node in XML to match the file system\n if (filePat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ MNEMONIC | TABLES | ATTRIBUTES | METHODS | FIELDS | JAVATYPEHEAD | INSTRUCTIONHEAD | TABLENAME | static boolean JbcTokens(PsiBuilder b, int l) {
if (!recursion_guard_(b, l, "JbcTokens")) return false;
boolean r;
r = consumeToken(b, MNEMONIC);
if (!r) r = consumeToken(b, TABLES);
if (!r) r = consumeToken(b, ATTRIBUTES);
if (!r) r = consumeToken(b, METHODS);
if (!r) r = consumeToken(b, FI... | [
"public abstract String getBaseTable();",
"abstract public String getTableCreationString();",
"public String getBaseTable() {\n/* 62 */ return this.baseTable;\n/* */ }",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"dip_datarec_specialtab\";\n\t}",
"public interface TableContext {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
merge sort in reverse alphabetical order(ZA) | public static ArrayList<Object> sort_merge2(ArrayList<Object> arr, int l, int r) {
if (l < r) {
int m = (l + r) / 2;
sort_merge2(arr, l, m);
sort_merge2(arr, m + 1, r);
merge2(arr, l, m, r);
}
return arr;
} | [
"public void mergeSort();",
"public void sortAlphabetically() {\n\t\tCollections.sort(sortHelper);\n\n\t\tDictionaryEntry curr = null;\n\n\t\tfor (String word : sortHelper) {\n\t\t\tcurr = entries.get(wordIndex(word));\n\t\t\ttemp.add(curr);\n\t\t}\n\t\tentries = temp;\n\t\ttemp = null;\n\t}",
"public static vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the _Fields constant that matches name, or null if its not found. | public static _Fields findByName(String name) {
return byName.get(name);
} | [
"public static _Fields findByName(String name)\r\n {\r\n return byName.get(name);\r\n }",
"public Field getField(String name) {\n for(Field field : fieldList) {\n if(field.getName().equals(name)) {\n return field;\n }\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Insert a new launch. | @PostMapping
public ResponseEntity<Response<LaunchDto>> adicionar(@Valid @RequestBody LaunchDto launchDto,
BindingResult result) throws ParseException{
log.info("Adding a launch: {}", launchDto.toString());
Response<LaunchDto> response = new Response<LaunchDto>();
// Validate if employee already exis... | [
"void insert(WorkflowInstance instance) throws WorkflowException;",
"void insertTask(Task task);",
"int insert(PaasCustomAutomationScene record);",
"private static void insert() {\n\t\t\n\t}",
"public void launch() {\n }",
"int insert(PaasSceneTemplateActionExecutor record);",
"public void timestepIn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new message ret object. | public MessageRetObject() {
super();
this.status = PropertyProvider.NOK;
} | [
"public SellResultMessage() {\n }",
"public Message createMessage(char type) {\n\treturn new RREQmsg(type);\n }",
"public ResponseMessage(String handlerId, String requestId, MessageType type, Object result) {\n super(handlerId, requestId, type);\n this.result = result;\n // performed ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The trading data for the day. | public List<DailyInput> getTrades() {
return dailyTrades;
} | [
"@Override\n public double[] getTallyingData() {\n return tallyingData;\n }",
"public List<QuarterlySlot> getData() {\n return data;\n }",
"public List<DailyData> getDailyData() {\n // Query params map\n Map<String, String> options = new HashMap<>();\n options.put(\"l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Is the current user on given type (internal|external, admin|superuser|all) | public JsonArray getRolesByProperties(String intExt, String userType) {
JsonArray roles = new JsonArray();
if (getRoleMatrix() != null) {
Set<Map.Entry<String, JsonElement>> entries = getRoleMatrix().entrySet();
entries.forEach((entry) -> {
String rolename = ... | [
"private Boolean isAdmin(){\n return userController.getUser().getUserType().getId() == UserTypeDAO.USER_TYPE_ADMIN;\n }",
"private static boolean isUserRelevant(final boolean isUserType, final TokenType tk) {\n return tk.fieldType == FieldType.USER && isUserType;\n }",
"TypeOfUser getTypeOfU... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/request.setCharacterEncoding("utf8"); String action=request.getParameter("action"); DBUser dbuser=new DBUser(this.getServletContext()); List sStudent=dbuser.getStudent(); | public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException,IOException{
request.setCharacterEncoding("utf-8");
String action=request.getParameter("action");
DBUser dbuser=new DBUser(this.getServletContext());
List sStudent=dbuser.getStudent();
HttpSession se... | [
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n try {\r\n StudentDAO stuDAO = new S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts array of values into array of their string representations using the specified converter and predefined custom parameters. | @SafeVarargs
public final <V> String[] encodeValues(Converter<V> converter, V... values) {
return build().encodeValues(converter, values);
} | [
"public Object[] convertToParams(Object value) throws LocalizedException;",
"@ExcelArgumentConverter\n public static <T extends Number> List<T> numberArrayToList(T[] array) {\n List<T> result = new ArrayList<T>(array.length);\n\n for (int i=0; i<array.length; ++i) {\n T value = array[i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getting name for the image String name = editText.getText().toString().trim(); getting the actual path of the image | public void uploadMultipart() {
String path = getPath(filePath);
switch (slideposition){
case "1":
//Uploading code
try {
String uploadId = UUID.randomUUID().toString();
User user = SharedPrefManager.getInstance(Setting... | [
"@RequiresApi(api = Build.VERSION_CODES.KITKAT)\n @Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (resultCode == Activity.RESULT_OK) {\n if(requestCode == 0) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: private / renamed from: d | public C3111h1 m14889d() {
return this.f11131b.mo12108l();
} | [
"private void d() {\n }",
"public void mo1857d() {\n }",
"protected void method_5557() {}",
"@Override\n\tpublic void doof() {\n\t\t\n\t}",
"protected void mo4791d() {\n }",
"@Override\n }",
"protected void d()\r\n/* 49: */ {\r\n/* 50:57 */ super.d();\r\n/* 51: */ }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public boolean RedirectYn(HttpServletRequest req) {
return false;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string machine_name = 11; | com.google.protobuf.ByteString
getMachineNameBytes(); | [
"@Override\n\tpublic Machine MachineName(String name) {\n\t\treturn null;\n\t}",
"public String getMachineName()\n {\n return null;\n }",
"@Override\n\tpublic String MachineName() {\n\t\treturn name;\n\t}",
"public abstract String virtualMachine();",
"public void setMachineNo(String mac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write Attribute Time Device Management (PUT) | @Path("TimeParameter/put/")
@PUT
@Produces("text/html")
@Consumes({ MediaType.APPLICATION_FORM_URLENCODED,
MediaType.APPLICATION_JSON})
public Response NotificationTime(String NotificationTime) throws JSONException, UnknownHostException {
Connection conn =null;
Statement stmt = null;
try {
... | [
"void setAccessTime(long t);",
"private void sendOKSETTIME() throws IOException {\n // create packet\n final byte[] toSend = new byte[9];\n // add header\n System.arraycopy(header, 0, toSend, 0, header.length);\n // set message\n toSend[4] = MSG_SET_TIME;\n // copy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets name of plugin who raised the exception. | public String getPluginName() {
return pluginName;
} | [
"public String exceptionName();",
"public static String getNamePlugin(){\n\n return DonjonsMain.instance.getName();\n\n }",
"public String getPluginName() {\n return \"\";\n }",
"public String getName(){\n\t\treturn this.errName;\n\t}",
"@Override\r\n\tpublic String getModuleName... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
1: totally inside 2: totally outside 3: intersects | public int check_collision_with_sphere(final@reads point sphere_position,final float sphere_radius){
// if sphere totally outside planes in list => return 2 (cull)
// if sphere totally inside planes in list => return 1 (render_noclip)
// if sphere intersects => return 3 (render_clip(clipinfo))
final AtomicInteg... | [
"public boolean intersects(float left, float top, float right, float bottom) {\n/* 285 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"boolean intersects(ICollisionArea other);",
"public boolean intersect(float left, float top, float right, float bottom) {\n/* 239 */ throw new RuntimeExcepti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor with explicit values Arguments are the x and y of the top left corner, the width and height, and the color. | public Rectangle(double x, double y, double x2, double y2, Color col) {
this.x1 = x;
this.y1 = y;
this.x2 = x2;
this.y2 = y2;
this.col = col;
} | [
"public Zako(int x, int y, int width, int height, Color color) {\r\n super(x, y, width, height, color);\r\n }",
"protected Shape(double centerX, double centerY, double width, double height, Color color) {\r\n\t\tthis.centerX = centerX;\r\n\t\tthis.centerY = centerY;\r\n\t\tthis.width = width;\r\n\t\tthi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the Y of the bounding box of the original SVG image. | public static double getOrigY() {
return 0.0;
} | [
"public int getImageY() {\n return imageY;\n }",
"public Rectangle getBoundingRectangle()\n {\n return new Rectangle(x, y, image.getWidth(), image.getHeight());\n }",
"public float getY()\n {\n return this.getShape().getY();\n }",
"public double getY() {\n\t\treturn figura.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This mathod loads the json file. | private void loadFromFile() {
try {
FileInputStream fis = openFileInput(FILENAME);
BufferedReader in = new BufferedReader(new InputStreamReader(fis));
Gson gson = new Gson();
Type listType = new TypeToken<ArrayList<Event>>() {
}.getType();
... | [
"protected void readJson() {\n ObjectMapper mapper = new ObjectMapper();\n try {\n // JSON file to Java object\n stocks = mapper.readValue(new File(\"Data/Stock.json\"), Stocks.class);\n System.out.println(stocks.toString());\n } catch (IOException e) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Class<TeEmployeesLog> getEntityClass() {
return TeEmployeesLog.class;
} | [
"@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"
]
]
}
} |
CM707595 Set value to Access level | public void setAccessAuthority(String arg)
{
setValue(ACCESSAUTHORITY, arg);
} | [
"private __MIDL___MIDL_itf_uc_0001_0191_0004(int value) { this.value = value; }",
"void setLevelCode(CE levelCode);",
"private __MIDL___MIDL_itf_uc_0001_0255_0009(int value) { this.value = value; }",
"private __MIDL___MIDL_itf_uc_0001_0046_0006(int value) { this.value = value; }",
"public void setAccessLeve... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Default Constructor, for creating a new Publishing Group. | public PublishingGroup(final String name, final List<Group> groups) {
setName(name);
setGroups(groups);
} | [
"public EntityGroup() {}",
"public SongGroup()\n {\n System.out.println(\"Creating a SongGroup\\n\");\n }",
"public EventGroup() {}",
"public TransformGroup() {\n\t\tsuper();\n\t}",
"public Groups() {\n\t\tsuper(\"groups\", org.kallithea.ldap.sync.jooq.Public.PUBLIC);\n\t}",
"public GroupCrea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fix the degrees representation, replacing the HTML entity &deg; with the unicode character. | public static String fixDegrees(String s) {
return StringUtils.replace(s, "°", "\u00B0");
} | [
"public abstract String format(double degrees);",
"@Override\n public String toString() {\n return String.format(Locale.ROOT, \"(λ=%.4f°, β=%.4f°)\", lonDeg(), latDeg());\n }",
"private String fixIEIssue(String input) {\n return StringEscapeUtils.unescapeHtml(input);\n }",
"public stati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper method to move the camera across the map. | public void moveCamera(CameraUpdate cameraUpdate, GoogleMap.CancelableCallback cancelableCallback) {
if (googleMap != null) {
googleMap.animateCamera(cameraUpdate, cancelableCallback);
}
} | [
"public void moveMap() {\n\n LatLng latLng = new LatLng(latitude, longitude);\n\n //Adding marker\n mMap.addMarker(new MarkerOptions()\n .position(latLng)\n .title(\"Current Location\").draggable(true));\n\n //Moving the camera\n mMap.moveCamera(Camer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the raw body. | public String getRawBody() {
return rawBody;
} | [
"public byte[] getBody() {\r\n return body;\r\n }",
"@NotNull public byte[] getRawResponse() {\n return this.body;\n }",
"public static String getBody() {\n\t\treturn body;\n\t}",
"public com.google.protobuf.ByteString getBody() {\n return body_;\n }",
"public byte[] body... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get list elements of the combination set. | public ArrayList<String> getListElements(); | [
"public Set<Combination> getCombinations();",
"public ImmutableList<?> toCollection() {\n return set.toList();\n }",
"public List<String> permutations(String set){\n\t\tList<String> result = new ArrayList<String>();\n\t\tif (set == null){\n\t\t\treturn result;\n\t\t}\n\t\tchar[] array = set.toCharArray();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for hibernate use. | public Charm() {
setValue(0);
} | [
"public HibernateOperation() {\r\n\t}",
"public EnqueteModelJDBCImpl() {\r\n }",
"protected AidaEntity() {/* intentionally empty block */}",
"public UserStocks() {\n // this empty constructor is required by hibernate framework\n\n }",
"public SessionImpl() {\n \t// No-arguments constructor\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
End of writeUser method Deletes a user from database. | public void deleteUser(User user) throws Exception
{
if (usernameExists(user.getUsername()))
{
//Prepare the query
PreparedStatement query = database.getPreparedStatement("DELETE FROM users WHERE " + Users.USERNAME + "=?");
query.setString(1, user.getUsername());
//Execute the update
query... | [
"@Override\r\n\tpublic void delUser() {\n\t\tUser user=this.getHibernateTemplate().get(User.class, 6);\r\n\t\tthis.getHibernateTemplate().delete(user);\r\n\t}",
"@Override\n\tpublic int deleteUser(User user) throws Exception {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic void deleteUser(User user) throws Except... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an Artifact given the alien type, material, and kind of object | public Artifact(Breed inAlien, String material, String object) {
int i;
for(i = 0; i < General.ARTIFACT_MATERIALS.length && !General.ARTIFACT_MATERIALS[i].equalsIgnoreCase(material); i++) {}
material = General.ARTIFACT_MATERIALS[i - 1];
for(i = 0; i < General.ARTIFACT_TYPES.length && !General.ARTIFACT_MATERIALS... | [
"public Material makeMaterial(org.jdom.Element materialNode, LCDD lcdd) throws JDOMException\n {\n //System.out.println(\"makeMaterial - \" + materialNode.getName() + \" : \" + materialNode.getAttributeValue(\"name\"));\n MaterialManager mgr = MaterialManager.instance();\n\n _lcdd = lcdd;\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Is the item mover running | public boolean isRunning() {
return running;
} | [
"@Override\n\tpublic boolean isrun() {\n\t\treturn System.currentTimeMillis() - live < lose;\n\t}",
"public boolean isRunning() {\n\t\treturn !(gameOver || paused);\n\t}",
"public boolean isRunning() {\n if (Math.abs(flywheelMotor.get()) > 0.05) {\n return true;\n }\n return false;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The received COMMAND_DONE passed back from the proxy layer is sent straight back to the ICS client. Subclasses for specific ISS COMMANDS should override processDone() to do any processing of the DONE prior to forwarding to the ICS. | public void handleDone(COMMAND_DONE proxyDone) {
// ### Called from CCT ###
// 1. Carry out any processing of the Done from the Proxy.
processResponse(proxyDone);
// 2. Translate from RCS_TCS to ISS_INST DONE.
COMMAND_DONE response = translateResponse(proxyDone);
// 3. Maybe Send on to ICS client.
// i... | [
"private void sendDone(COMMAND_DONE done) throws Exception {\n\t\tif (done == null) {\n\t\t\tdone = new COMMAND_DONE(command.getId());\n\t\t\tdone.setErrorNum(1);\n\t\t\tdone.setErrorString(getName() + \":sendDone:done was NULL\");\n\t\t\tdone.setSuccessful(false);\n\t\t}\n\t\tout.writeObject(done);\n\t\tout.flush(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Joins a node list into a string with the given delimiter | public String join(String delim, Function<Jode, String> xformer) {
StringBuilder bldr = new StringBuilder();
for (Jode j : this) {
bldr.append(xformer.apply(j)).append(delim);
}
return bldr.substring(0, bldr.length() - delim.length());
} | [
"@Override\n\tpublic String toString(String delimiter) {\n\t\tString ret = root.getData().toString();\n\t\tLinkNode<T> iter = root.getNext();\n\t\twhile(iter != null)\n\t\t{\n\t\t\t\n\t\t\tString add = iter.getData().toString() + delimiter ;\n\t\t\tStringBuilder sb = new StringBuilder(add);\n\t\t\tsb.reverse();\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Function to get Center of Gravity of Binary Image | private static Pixel centerOfGravity(int [][] binaryMatrix, int row, int column){
int sumX = 0;
int sumY = 0;
int pixelCount = 0;
for(int i = 0 ; i < row; i++ ){
for(int j = 0 ; j < column ; j++ ){
if( binaryMatrix[i][j] == 1 ){
sumX = sumX + i ;
sumY = sumY + j ;
++pixelCount;
... | [
"public int centerX() { return x + width/2; }",
"private double getCenterX() {\n\t\treturn (getWidth() - image.getWidth(this) * zoom) / 2;\n\t}",
"private double getCenterY() {\n\t\treturn (getHeight() - image.getHeight(this) * zoom) / 2;\n\t}",
"public Pair<Integer, Integer> getCenterOfGravity() {\n i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Default constructor. Sets the dialog field to null | public ErrorDialogFragment() {
super();
mDialog = null;
} | [
"public StandardDialog()\n {\n init();\n }",
"public Dialog(){\n }",
"protected DialogFckEdit() {\r\n }",
"public DeleteDialog() {\n }",
"public GuiDialog() {\n super(\"dialog\");\n component = new GuiDialogImpl();\n this.guiInit();\n }",
"public TaskDeleteDialog() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the extendInfo value for this CarModelInfoInquiryResponseDTO. | public void setExtendInfo(com.ccic.gwservice.car.fgcarmodelinfoinquiry.ExtendInfoDTO[] extendInfo) {
this.extendInfo = extendInfo;
} | [
"public void setExtInfo(java.lang.String extInfo) {\n this.extInfo = extInfo;\n }",
"public void setResponseInfo(com.mycricket.webservices.InquireOrderDetails.types.ResponseInfo responseInfo) {\n this.responseInfo = responseInfo;\n }",
"public void setInfo(OpenApiInfo info) {\n this.i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets array of all "Payment" element | void setPaymentArray(x0401.oecdStandardAuditFileTaxPT1.SourceDocumentsDocument.SourceDocuments.Payments.Payment[] paymentArray); | [
"public void setPayments(com.liquid.portal.service.ContestPaymentData[] payments) {\r\n this.payments = payments;\r\n }",
"public void setMoneyArr(double[] moneyArr)\r\n/* 233: */ {\r\n/* 234:239 */ this.moneyArr = moneyArr;\r\n/* 235: */ }",
"public void setPayments(List<GeneralLedgerRe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string avatar = 2; | com.google.protobuf.ByteString
getAvatarBytes(); | [
"public java.lang.String getAvatar() {\n java.lang.Object ref = avatar_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isVa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a LightSource, adds it to the LightSource List, sets it as the current object and saves an edit | public void createLightSource(){
LightSource createdLight = new LightSource(
"New Light source",
new Transform(new Vector4(0,3,0)).lookAt(new Vector4(0,0,0), new Vector4(0,1,0)),
90, 100, Color.WHITE, 0.9f);
m_undoManager.addEdit(new AbstractUndoableE... | [
"com.exacttarget.wsdl.partnerapi.APIObject addNewSource();",
"public void addNewLightSource(Light light) {\n\t\tthis.lights.add(light);\n\t}",
"org.landxml.schema.landXML11.SourceDataDocument.SourceData addNewSourceData();",
"public Scene add(LightSource source) {\r\n\t\tlights.add(source);\r\n\t\treturn this... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The mdpi size of the photo background is 52 x 58. The user's photo should begin at origin (9, 12). The user's photo should be 34 x 34. | private void constructPinDrawable(CheckinGroup cg, Context context, RemoteResourceManager rrm,
Bitmap bmpPinSingle, Bitmap bmpPinMultiple) {
float screenDensity = context.getResources().getDisplayMetrics().density;
int cx = dddi(52, screenDensity);
int cy = ddd... | [
"public static PointF getImageProportions(String fileName) {\n PointF size = new PointF(0, 0);\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(fileName, options);\n if (options.outWidth == -1 || options.outHeight... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional uint32 ClientId = 1; | public int getClientId() {
return clientId_;
} | [
"public long getClientID ();",
"public int getClientid() {\n return clientid;\n }",
"private ClientIdServer() {\n idCounter = 1;\n }",
"public long getClientId() {\n if (clientId == 0) {\n clientId = Math.abs(new Random().nextInt()); //random??\n }\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
write your code here | public static void main(String[] args) {
cigarParty(61, false);
} | [
"void stuffForYouToDo() {\n\t\t// Write your code here...\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\r\n\t\t\t\tvoid eval() {\r\n\r\n\t\t\t\t\t// YOUR CODE IN THIS SPACE\r\n\t\t\t\t}",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n\tpublic void dosomethiing3() {\n\n\t}",
"@Override\n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sql Type from java.sql.Types | Integer getSqlType(); | [
"static SQLType toSQLType(SqlType t) {\n SQLType s = ADBATYPE_TO_JDBCTYPE.get(t);\n if (s == null) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); \n }\n return s;\n }",
"public String getColumnSQLType(int index) {\n String type;\n switch (getColum... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.RouteMsg RouteMsg = 3; | public Builder setRouteMsg(ChatMessage.RouteMsg value) {
if (routeMsgBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataBody_ = value;
onChanged();
} else {
routeMsgBuilder_.setMessage(value);
}
d... | [
"public void route(Message msg);",
"public int getMsgType(){\r\n return localMsgType;\r\n }",
"void mo31256a(Message message);",
"private void _F_设置(MSG_ZHW msg) {\n\n\t}",
"private void reply(RouteRequest rr) { //l'hop count è sicuramente 1 in questo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the security user from security context | private static SecurityUser getSecurityUser() {
final Authentication authData = SecurityContextHolder.getContext()
.getAuthentication();
if (authData == null) {
return null;
}
final SecurityUser principal = (SecurityUser) authData.getPrincipal();
return principal;
} | [
"public static Users getUserFromContext() {\n return RequestContext.get(TokenAuthenticator.USER).getUser();\n }",
"User GetCurrentUser();",
"public UserDetailsBean getUserDetails() {\n return securityService.getCurrentUser();\n }",
"public User getCurrentuser();",
"public static User getUser... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This hook is called whenever an item in your options menu is selected. The default implementation simply returns false to have the normal processing happen (calling the item's Runnable or sending a message to its Handler as appropriate). You can use this method for any items for which you would like to do processing wi... | @Override
public boolean onOptionsItemSelected(MenuItem item) {
// 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.
int id = item.getItemId();
//n... | [
"@Override\n public boolean onMenuItemClick(MenuItem item) {\n return true;\n }",
"@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\t\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}",
"@Override\n publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void obrisiKlijenta(Client c) {
} | [
"@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"
]
]
}
} |
Converts a Color to an 7 byte hex string starting with ''. | public static String c2hex(int c) {
char[] buf7 = new char[7];
buf7[0] = '#';
for (int pos=6; pos>=1; pos--) {
buf7[pos] = hexDigits[c&0xf];
c >>>= 4;
}
return new String(buf7);
} | [
"public static String toHexString(Color color) {\n return \"#\"+(\"\"+Integer.toHexString(color.getRGB())).substring(2); \n }",
"private String toHexString(Color color) {\n\n StringBuilder hexColor = new StringBuilder(\"#\");\n\n int[] components = new int[]{color.getRed(),\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Service interface for symmetric encryption of text strings. | public interface TextEncryptor {
/**
* Encrypt the raw text string.
*/
String encrypt(String text);
/**
* Decrypt the encrypted text string.
*/
String decrypt(String encryptedText);
} | [
"public interface Encryption {\n String crypt(String text, String key);\n}",
"public interface CryptoService {\n\n public String encrypt(String plainText);\n\n public String decrypt(String cipherText);\n}",
"interface SymmetricCrypterInterface {\n byte[] encrypt(String message)\n throws ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Notifies listeners that the selected date for this CDateTime has changed, either by the text box or the drop down CDateTime. | private void fireSelectionChanged(int field, boolean defaultSelection) {
Event event = new Event();
event.data = getSelection();
event.detail = field;
notifyListeners(defaultSelection ? SWT.DefaultSelection : SWT.Selection, event);
} | [
"@Override\n public void propertyChange(PropertyChangeEvent evt) {\n \n Object newValue = evt.getNewValue();\n if (newValue instanceof Date) {\n log.debug(\"Selected appointment date = \" + (Date) newValue);\n selectedAppo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stops and removes the inbound message processor for each FTP BC binding operation per the given end point. | public void removeInboundMessageProcessor(Endpoint endpoint) {
synchronized (mActivatedInboundMsgProcs) {
if (endpoint.getEndpointType() == Endpoint.EndpointType.INBOUND) {
Map operations = endpoint.getOperations();
Set entrySet = operations.entrySet();
... | [
"public void stop() {\n invoiceProcessor.stop();\n invoiceProcessor = null;\n\n queueProcessor.stop();\n queueProcessor = null;\n }",
"@Override\n public void stop() throws IOException {\n\t while (!endpointListeners.isEmpty()) {\n\t removeEndpoint(endpointListeners.key... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Put the message into a notification and post it. This is just one simple example of what you might choose to do with a GCM message. | private void sendNotification(String notice, String group) {
if (contador==1){
mensagem=" nova mensagem";
} else {
mensagem=" novas mensagens";
}
//if(group == "Matemática"){
//contadormateria="Matemática";
// contadormatematica++;
/... | [
"private void handleNotification(String message) {\n\n\n Intent intent = new Intent(MyFirebaseMessagingService.this, MainActivity.class);\n // use System.currentTimeMillis() to have a unique ID for the pending intent\n PendingIntent pIntent = PendingIntent.getActivity(MyFirebaseMessagingService.t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if the node is terminal, return its goal value | private int[][] evaluateNode(IGameNode node) {
if(node.isTerminal())
return new int[][]{node.getState().getGoalValues(), {0, GOAL}};
return evaluator.evaluateNodeMP(node, game.getRoleCount());
} | [
"public Node getGoalNode();",
"public abstract float getHeuristicValue (Node node, Node goal);",
"boolean isGoal(Node n);",
"public int getGoal() {\n\t\treturn scanner.nextInt();\n\t}",
"public Node setGoal(Node goal){\n\t\t\treturn goal;\t\n\t\t}",
"private boolean isGoal(Node curr) {\n\t\treturn curr.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
to keep a record of sentences handed down by judge | public Prisoner(String name) //the constructor
{
this.name = name ;
} | [
"public static void main(String[] args) throws IOException, ParseException, FileNotFoundException, ClassNotFoundException {\n StringUtils.generateStopLists(filePath_en, filePath_gr);\n\n // Initiliaze Word2Vec google pre-trained model\n //File gModel = new File(\"C:/Users/Sgo/Desktop/Developer/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Auto injecting through the Spring framework (?) | public DevBootstap(AuthorRepository authorRepository,
BookRepository bookRepository,
PublisherRepository publisherRepository) {
this.authorRepository = authorRepository;
this.bookRepository = bookRepository;
this.publisherRepository = publisherReposi... | [
"public interface SpringContextAware {\n void init4SpringContext(ApplicationContext webApplicationContext);\n}",
"@Override\n\tpublic void inject() {\n\t}",
"private MySpring() {}",
"void inject(Startup a);",
"@Test\n public void injection8(){\n ClassPathXmlApplicationContext cpx = new ClassPat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
. a method to draw all the objects | public void drawAllOn(DrawSurface d) {
for (int i = 0; i < this.sprites.size(); i++) {
sprites.get(i).drawOn(d);
}
} | [
"public void drawAll() {\n for(Shape shape : shapes)\n shape.draw();\n }",
"public void drawObject(){\n\t}",
"public void DrawMe()\n {\n for(DrawShape s : shapeList)\n {\n s.drawThisShape();\n }\n }",
"public void draw() {\n for (Car i: cars) {\n display.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function will display the details of booking based on booking Id | @Override
public Booking viewBooking(Booking booking) {
Optional<Booking> bok = bokRep.findById(booking.getBookingId());
if (!bok.isPresent()) {
return null;
}
return bok.get();
} | [
"Booking get(String id);",
"public void setBooking_id(int booking_id) \r\n {\r\n this.booking_id = booking_id;\r\n }",
"public int getBooking_id() \r\n {\r\n return booking_id;\r\n }",
"public void returnBook(Long reservationId);",
"public BookingModel findBookingById(int bookingID... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
part time worker get 10 euros per hour | @Override
public long salary() {
return workinghours * 10;
} | [
"public int getTimeSlotPerHour()\n{\nreturn timeSlotPerHour;\n}",
"int getGENHOURS1();",
"int getPricePerHour();",
"private void getTimeHour(){\n\t\tLocalDate date=LocalDate.now();\n\t\tthis.orderDate=date.toString();\n\t\tLocalTime myObj=LocalTime.now();\n\t\tString[] aux;\n\t\tString s=myObj.toString().repl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: b | protected cv m10067b() {
return new cv(this);
} | [
"public abstract T zzs(B b2);",
"public void b(ByteOrder bo) {\n/* 72 */ if (this.i != bo) {\n/* 73 */ this.i = bo;\n/* 74 */ this.h = a(bo);\n/* */ } \n/* */ }",
"public void doSth(B b){\n\n }",
"public abstract void mo14156a(B b, int i, int i2);",
"@Override\n\tpublic v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by Philipp on 23.06.2016. | public interface Column<DataType> {
Column map(Function<Column<DataType>,Column> mapFunction);
String getName();
} | [
"@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 public int utilite() {\n ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
countUniqueIPsInRange that has two integer parameters named low and high. This method returns the number of unique IP addresses in records that have a status code in the range from low to high, inclusive | public void countUniqueIPsInRange(int low, int high) {
ArrayList<String> uniqueIP = new ArrayList<>();
int count = 0;
for (logEntry le : records) {
String ipAddress = le.getIpAddress();
int statusCode = le.getStatusCode();
if (statusCode >= low && statusCode <... | [
"public static int countRangeSum(int[] nums, int lower, int upper) {\n \t int n = nums.length;\n \t long[] sums = new long[n + 1];\n \t for (int i = 0; i < n; ++i)\n \t sums[i + 1] = sums[i] + nums[i];\n \t return countWhileMergeSort(sums, 0, n + 1, lower, upper);\n }",
"public i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form pupils | public Pupils() {
initComponents();
} | [
"public void newForm() {\r\n\t\tthis.jPanelFormDataPet.newForm();\r\n\t\tthis.jPanelComments.jtaComments.setText(\"\");\r\n\t}",
"public String doNewForm(){\n\t\tsetUser(new User());\n\t\t//Por defecto, no se ha pulsado cambiar foto\n\t\tsetCambiarFoto(false);\n\t\t//cargo la lista de roles\n\t\tthis.lstRoles=use... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns false as this feature is currently not supported. | public boolean supportsCatalogsInDataManipulation() throws SQLException {
return false;
} | [
"@Override\n public boolean hasFeature(String feature) {\n return false;\n }",
"public boolean isSupported() {\n\t\treturn false;\n\t}",
"public boolean isCanUseFeature() {\n\t\treturn canUseFeature;\n\t}",
"public Boolean isSupported() {\n return this.supported;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface for classes that have an engine, so it needs a fueltank | public interface HasFueltank
{
/**
* Drive Method
* @param distance The distance to drive
*/
public abstract void drive(float distance);
/**
* Method to read the fuellevel
* @return The fuellevel
*/
public abstract float getFuelLevel();
/**
... | [
"public interface Engine {\n void engineType();\n}",
"public abstract void initEngine();",
"public interface Engine {\n\n /**\n * Initializes this engine.\n */\n public void initialize();\n\n /**\n * Update the internal state of the world, using the game logic,\n * time difference, u... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Shift the decimal place so that no precision is lost when converting to a long | public long convertDecimalValueToLong(Context ctx, Currency currency, double value)
{
double shiftedValue = value;
for (int i = 0; i < currency.getPrecision(); i++)
{
shiftedValue *= 10;
}
// Convert to long
return (long)(shiftedValue);
} | [
"private static long longLo64(BigInteger lVal) {\r\n return lVal.longValue();\r\n }",
"public double convert(long value) \n {\n return this.convert((double)value);\n }",
"public static long longToLong(long input) {\n return (long) input;\n }",
"long getValue047();",
"private... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Auto generated setter method | public void setMemberIds(java.lang.String[] param){
validateMemberIds(param);
if (param != null){
//update the setting tracker
... | [
"abstract protected void set(Object value);",
"@Override\n protected void doSetValue(Object value) {\n super.doSetValue(value);\n }",
"@Override\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tpublic Object setValue(Object value) {\n \t\t\twrite();\n \t\t\treturn me.setValue( value );\n \t\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create Event Subscription Used to subscribe to notifications relating to a specified event type. | public ApiResponse<ApiResponseOfEventSubscriptionResponse> createEventSubscriptionWithHttpInfo(EventSubscriptionRequest eventSubscriptionRequest) throws ApiException {
Object localVarPostBody = eventSubscriptionRequest;
// verify the required parameter 'eventSubscriptionRequest' is set
if (eventSubscri... | [
"<T extends EventHandler> EventRegistration on(ChannelEvent.Type<T> eventType, T listener);",
"<T extends UserEvent> void subscribeEvent(Class<T> eventClass, UserEventSubscriber<T> subscriber);",
"@Override\n public void subscribe(String event) {}",
"public void addEventListenerType(String eventName,\n\t\tCl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Empty iff the test was successful | public GradingTest(final String name, final List<GradingProblem> problems) {
this.name = name;
this.problems = Collections.unmodifiableList(new ArrayList<>(problems));
} | [
"@Test\n public void testIsEmpty() {\n System.out.println(\"isEmpty\");\n boolean expResult = true;\n boolean result = tester.isEmpty();\n assertEquals(expResult, result);\n }",
"@Test\n\tpublic void clearingASearch() {\n\t\tboolean testPerformed = true;\n\t\tboolean testPassed =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get Player from Tile. | Player getPlayer(); | [
"public Tile getPlayerTile() {\n return this.playerTile;\n }",
"public Player getPlayer(String username){\n return playerLobby.getPlayer(username);\n }",
"public static Player getPlayer(){\r\n return currentGame.getPlayer();\r\n }",
"public Cell findPlayer() {\n return get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests if the testRemoveElement() method works correctly. | @Test(expected = NoSuchElementException.class)
public void testRemoveElementException2() {
set.add("$A$");
set.add("$B$");
set.add("$C$");
set.add("$D$");
set.remove(null);
} | [
"@Test(timeout=1000)\n\tpublic void testRemoveElementTwice() {\n\t\tfail(\"Not yet implemented\");\n\t}",
"@Test\n\tpublic void testRemove() {\n\t\tintegers.addElement(5);\n\t\tintegers.removeElement();\n\t\tintegers.addElement(4);\n\t\tintegers.addElement(5);\n\t\tintegers.addElement(2);\n\t\tintegers.removeElem... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GETTERS AND SETTERS FOR THE FIELDS OF THE STUDENT CLASS | public long getStudentID() {
return studentID;
} | [
"public Student getStudent(){\n return student;\n }",
"public Student getStudent() {\n return this.studentData;\n }",
"public Student getStudent1()\n {\n return student1;\n }",
"public void setFirstName(String newFirstName) {this.firstName = newFirstName;}",
"public String getStudent() {\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
is used to achieve full abstraction is to achieve multiple inheritance in java only abstract methods are present methods are present in interface by default public and abstract variables present in interface by default static and final | void add(); | [
"public interface AbstractC10325aj {\n}",
"abstract interface Fly { // Every interface is abstract by default\n final static public int COUNT = 0; // In a interface all fields are public,static and final by default. can be declared in any order\n // cannot declare them private/protected\n void flySlow();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ 461: / 462: | public PluginEntity findPluginMenu(Connection conn, String pluginId, String wechatId)
/* 463: */ throws SQLException
/* 464: */ {
/* 465:408 */ PreparedStatement ps = null;
/* 466:409 */ ResultSet rs = null;
/* 467:410 */ PluginEntity plEntity = null;
/* 468: */ try
/* 469: */ ... | [
"public int method_5453() {\r\n return this.field_4741;\r\n }",
"public int method_5482() {\r\n return 4;\r\n }",
"public void mo26342c() {\n }",
"public int mo9459a() {\n return this.f706b;\n }",
"private final byte[] m41033e() throws java.io.IOException {\n /*\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method removeStudent iterate through the arraylist and check if name we want to remove is on the list | public void removeStudent(String fName, String lName){
int studentToRemove = -1;
for (Student theStudent : this.studentModel.getStudents()){
if (theStudent.getfName().equals(fName)&& theStudent.getlName().equals(lName)){
studentToRemove = this.studentModel.getStudents().indexOf(theStudent);
//i... | [
"public boolean removeStudent(String name){\n\t\tint numOfStudents = this.roster.length;\r\n\t\tfor(int index = 0; index < this.roster.length; index++){\r\n\t\t\tif( this.roster[index].getName().equals(name)){\r\n\t\t\t\troster[index] = null;\r\n\t\t\t\tnumOfStudents--;\r\n\t\t\t\tif ( numOfStudents == 0 ){ \r\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Result saveHunterStore(Long id,Long hunterid, String address, String content) {
id=id==0?null:id;//手机端传0代表添加
if(address==null||"".equals(address)){
return ResultUtils.returnError("店铺图片不能为空");
}
String content2=content.trim();
if(content2==null||"".equals(content2)){
return ResultUtils.... | [
"@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"
]
]
}
} |
Saves clusters into CLUSTERING_FILE and each cluster into separate file | protected void saveClusters(HDPGibbsSampler2 hdp, CLDACorpus corpus) throws IOException {
try {
HDPModel model = hdp.getModel();
int[][] documents = corpus.getDocuments();
getLogger().info("Saving clustering probabilities");
ClusterSaver.saveClustering(model, doc... | [
"void saveClusters(List<ClusterSummary> clusters);",
"void saveCluster(ClusterSummary cluster);",
"public void WriteIntoFile()\n\t{\n\t\tint val = 1;\n\t\tfor(int i = 0; i < n; i++) \n\t\t{\n\t\t\tif(clus[i].clusId != -1)\n\t\t\t{\n\t\t\t\tclus[i].clusId = val;\n\t\t\t\tval++;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Controller to display the Default page to load the MT940 Validation page. | @ApiOperation(value="Display MT940 Validatory",response=String.class)
@ApiResponses(value={
@ApiResponse(code=200,message="MT940 Validation Response",response=String.class),
@ApiResponse(code=500,message="Internal Server Error"),
@ApiResponse(code=404,message="File not found"),
... | [
"@RequestMapping(value = \"/validation\", method = RequestMethod.GET)\n public String getValidPage() {\n logger.debug(\"Received request to show app page\");\n // This will resolve to /jsp/validationpage.jsp\n return \"validationpage\";\n }",
"@RequestMapping(method = RequestMethod.GET)\n public Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
String smsmsg = "Dear [CONTACTNAME], As confirmed by you, your Test Drive for the Maruti Suzuki [ITEM] has been scheduled for [DATE] at [TIME]."; | protected void SendSMS() throws SQLException {
String smsmsg = (brandconfig_testdrive_sms_format);
smsmsg = "replace('" + smsmsg + "','[CONTACTNAME]',concat(title_desc, ' ', contact_fname,' ', contact_lname))";
smsmsg = "replace(" + smsmsg + ",'[MODELNAME]',model_name)";
smsmsg = "replace(" + smsmsg + ",'[IT... | [
"private void get_message(){\r\n message=String.format(text.substring(text.indexOf(\"*\"), text.lastIndexOf(\"*\")));\r\n}",
"private static void sendSms(String phone , String content, Date date , long id){\n\t\t\n\t\t// TODO send a timing sms , you should send a broadcast , when time come \n\t\t//you should ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Puts a new entry into the cache | public TValue put(TKey key, TValue value, long durration); | [
"void putLookedUpEntry(Object key, CacheEntry e);",
"public void saveInCache( String key, String value);",
"void addToCache(String key, User user);",
"public void put(String key, T value) {\n System.out.println(\"Before put opertaion, map size:\" + map.size());\n if (map.containsKey(key)) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
we can add some extra operations here, avoiding modifying the real object | @Override
public void somethingElse(String a) {
this.proxied.somethingElse(a);
} | [
"@Override\n\t\tprotected void swop() {\n\n\t\t}",
"@Override\n protected void primitiveOperation2() {\n }",
"@Override\n public void extornar() {\n \n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n protected void primitiveOperation3() {\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get server Url for sonar | public static String getSonarHomeURL(HttpServletRequest request) throws PhrescoException {
FrameworkConfiguration frameworkConfig = PhrescoFrameworkFactory.getFrameworkConfig();
String serverUrl = "";
if (StringUtils.isNotEmpty(frameworkConfig.getSonarUrl())) {
serverUrl = frameworkConfi... | [
"public String getServerUrl() {\n return serverUrl;\n }",
"@java.lang.Override\n public java.lang.String getServerUrl() {\n return instance.getServerUrl();\n }",
"public String getServerURL() {\n return this.properties.getProperty(Constants.SERVER_URL_KEY);\n }",
"@j... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: private | public /* synthetic */ void a(String str, PriceResponse priceResponse) throws Exception {
this.c.reportVoucherIsValidToMarketing();
if (getPresenter() != null && priceResponse != null && priceResponse.getPriceModels() != null && String.valueOf(this.g).equals(priceResponse.getTag())) {
this.s... | [
"@Override\n }",
"protected void method_5557() {}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n public void publicando() {\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"private InternalReflect() {\n\t\t\t// do nothing\n\t\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |