query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
/CustomDialog dialog = new CustomDialog(mContext, getResources().getString(R.string.common_error) , getResources().getString(R.string.ok)); dialog.show(); | @Override
public void responseFailure(String failureResponse) {
AppUtils.showDialogAlertDismiss((Activity)mContext,"Alert",mContext.getString(R.string.common_error),R.drawable.exclamationicon,R.drawable.round);
} | [
"public void CustomAlerts(String msg) {\n final Dialog dialog = new Dialog(this);\r\n // hide to default title for Dialog\r\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n // inflate the layout dialog_layout.xml and set it as contentView\r\n LayoutInflater inflater = (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .Cache_service.MapPackageInfoLine map_package_info_line = 1; | public Builder addAllMapPackageInfoLine(
java.lang.Iterable<? extends Cache_service.CacheMessage.MapPackageInfoLine> values) {
ensureMapPackageInfoLineIsMutable();
super.addAll(values, mapPackageInfoLine_);
return this;
} | [
"public void getMAP() {\n\n }",
"public interface CacheOverlayItemImpl extends OverlayItemImpl {\n\n\tpublic cgCoord getCoord();\n\t\n\tpublic String getType();\n\n}",
"private static String getPrivatePackage(String line) {\n Pattern pattern = Pattern.compile(\".*in type (.*)$\");\n Matcher mat = patte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Store Decorator in Map | private void storeDecorator(Decorator d) {
if (d.getRole() != null) {
decorators.put(d.getName() + d.getRole(), d);
}
else {
decorators.put(d.getName(), d);
}
} | [
"protected Map<K, Collection<V>> decorated() {\r\n\t\treturn this.map;\r\n\t}",
"public abstract SeContainerInitializer enableDecorators(Class<?>... decoratorClasses);",
"@Override\n public void register(Map<String, List<MethodMutatorFactory>> mutators) {\n mutators.put(\"AOR\", gather(mutators,\"AOR1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
draw draw the animation at the specified spot | public void draw(Graphics g, double x, double y){
g.drawImage(Animation.getImage(sprites[index]), (int) x - xOffset, (int) y - yOffset, null);
} | [
"public void draw(){\n\n\tfloat t = (float)frameCount;\n\n\t// stroke(random(255),0,random(255), 40);\n\n\tint centX = width/2;\n\tint centY = height/2;\n\n\tfloat x, y;\n\tfloat lastx = -999;\n\tfloat lasty = -999;\n\t\n\tfor(float ang = 0; ang <= t; ang+=15){\n\t\tradius+=0.03f;\n\t\tfloat rad = radians(ang);\n\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all the dias vacacioneses where companyId = &63;. | public static java.util.List<es.davinciti.liferay.model.DiasVacaciones> findByCompanyId(
long companyId)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().findByCompanyId(companyId);
} | [
"public static List<Foo> findByCompanyId(long companyId) {\n\t\treturn getPersistence().findByCompanyId(companyId);\n\t}",
"@Query(\"select ca from ChartOfAccount ca where ca.enable = 1 and ca.company = :company\")\n\tList<ChartOfAccount> showAllActiveCa(@Param(\"company\") int company);",
"public static java.u... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
int goldTotal = 0, predTotal = 0, correct = 0; | private int[] evaluate(String developFile, final PerceptronLexicalAnalyzer segment) throws IOException
{
final int[] stat = new int[3];
Arrays.fill(stat, 0);
loadInstance(developFile, new InstanceHandler()
{
@Override
public boolean process(Sentence sentence)
... | [
"double getGold();",
"public int getGold()\n {\n return gold;\n }",
"public float correctpercent()\r\n\t{\r\n\t\treturn (float)((float)correctcount/(float)testcount);\r\n\t}",
"public static void computeAccuracy(int correct, int total) {\n\t\tSystem.out.println(\"Test-Data Prediciton Statistics\");\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the player's name. | public String getName() {
return name;
} | [
"public String getName()\n\t{\n\t\treturn playerName;\n\t}",
"public String getPlayerName() {\n\t\treturn playerNameTF.getText();\n\t}",
"private String getPlayerName() {\r\n\t\treturn this.gameEngine.getWorld().getPlayer().getName();\r\n\t}",
"public java.lang.String getPlayerName() {\n java.lang.Object r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get URL variable from PageObject | public String getPageUrl() throws InterruptedException {
return pageUrl;
} | [
"public String getPageURL(){\n return wikiPage.getWikiPageName();\n }",
"void setUrlToPageUrl();",
"String getPermalink();",
"public String getUrlString(){ return articleUrl; }",
"@Override\r\n\tpublic String getPageUrl() {\n\t\treturn null;\r\n\t}",
"public String value() {\n\t\tcheckNotNull(ur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Page query by parameter name and parameter value. | public CommonResponse getPageListByReq(UnitParaQueryPageReq<String> req, String unitType) {
String repositoryName = StringUtils.uncapitalize(req.getUnitName() + unitType);
if (repositoryService.getJpaSpecificationExecutor(repositoryName).isPresent()) {
JpaSpecificationExecutor j = repository... | [
"String get(P searchParameter);",
"public String getParameter(final String name);",
"Page<Abonnement> search(String query, Pageable pageable);",
"Page<ConfigMapping> search(String query, Pageable pageable);",
"String getParam(String name);",
"default public String searchBy(String field, Object value) {\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Repository class for FieldDef | public interface LobDefRepository extends Repository<Lobdef, Integer> {
@Query("SELECT ld FROM Lobdef ld WHERE ld.cSettings.id > :version")
List<Object> getCLobDefByVersionId(@Param("version") Integer version);
Lobdef getLobDefById(Integer id);
Lobdef save(Lobdef lobdef);
List<Lobdef> findAll();... | [
"public interface FieldDao {\n\n /** add a field with a describe string */\n void addField(String descr);\n\n /** delete a field using field id */\n void delField(Integer fid);\n\n /** get all fields from DB*/\n List getAllField();\n\n List getFieldsById(Integer uid);\n\n List getFieldsByPap... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Call a static method within a User class. Since these static methods are optional, report missing methods once and continue. To prevent this 'missing' message, just code a dummy method and return null. | private static Object callStaticMethod(UserInfo ui, String method, Object parm) {
try {
/* First get the class: */
Class wanted_class = Class.forName(ui.getClassName());
/* Look for the method name: */
Method[] methods = wanted_class.getMethods();
for (int i = 0; i < methods.le... | [
"private static void staticMethod() {\n }",
"default boolean staticMethod() {\n\t\treturn false;\n\t}",
"protected void visit_call_static_method_expression(ITreeNode node)\n {\n // You should *not* place your code right here. \n // Instead, you should override this method via a subclass.\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ApplicationContext context = new ClassPathXmlApplicationContext(); System.setProperty("webdriver.chrome.driver", "/Users/mfellows/development/lambda/lambdaassembly/lib/chromedrivermacosx"); | @Test
public void testXlsxData() throws UnableToParseTestsException, UnableToParseDataException, IOException, ProviderNotFoundException {
System.setProperty("webdriver.chrome.driver", "/usr/local/bin/chromedriver");
// Lambda lambda = Lambda.getInstance();
// lambda.setBrowser("firefox");
lambda.setBrowser("chro... | [
"public static void initializeDriver() {\n System.setProperty(\"webdriver.chrome.driver\", \r\n \"/Users/tangher/Desktop/Selenium/chromedriver\");\r\n }",
"@Bean\n public WebDriver getWebChromeDriver() {\n String osName = System.getProperty(\"os.name\");\n if (StringUtils.con... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
finds out if the segment is a dummy segment indicated by a segstring of "dummy" | boolean isDummySegment() {
return this.sameSegmentType(new Segment("dummy"));
} | [
"private boolean hasSegment(int x, int y) {\n\t\treturn snakeHead.hasSegment(x,y);\n\t}",
"public static boolean isSegmentField (String name) {\r\n \t\treturn (( name.indexOf(DbUtil.LOC_SEP) != -1 )\r\n \t\t\t|| name.equalsIgnoreCase(SEGKEY_NAME)\r\n \t\t\t|| name.equalsIgnoreCase(TUREF_NAME)\r\n \t\t\t|| name.eq... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns value of dead | public boolean getDead() {
return dead;
} | [
"public boolean get_is_dead()\n {\n\treturn _is_dead;\n }",
"public boolean dead() {\n return dead;\n }",
"public boolean getIsDead()\n\t{\n\t\treturn isDead;\n\t}",
"public boolean dead(){\n\t\treturn health <= 0 ? true : false;\n\t}",
"public boolean isDead() {\r\n return this.dead;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleModel" $ANTLR start "entryRulePackage" ../org.eclipse.eclipsecon.scoping/srcgen/org/eclipse/eclipsecon/scoping/parser/antlr/internal/InternalScoping.g:128:1: entryRulePackage returns [EObject current=null] : iv_rulePackage= rulePackage EOF ; | public final EObject entryRulePackage() throws RecognitionException {
EObject current = null;
EObject iv_rulePackage = null;
try {
// ../org.eclipse.eclipsecon.scoping/src-gen/org/eclipse/eclipsecon/scoping/parser/antlr/internal/InternalScoping.g:129:2: (iv_rulePackage= rulePackag... | [
"public final EObject entryRulePackageDeclaration() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePackageDeclaration = null;\n\n\n try {\n // ../de.gammarcraft.aqua/src-gen/de/gammarcraft/aqua/parser/antlr/internal/InternalAqua.g:134:2: (iv_rulePackageDec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Toast.makeText(getApplicationContext(), "it clicked at position" +position, Toast.LENGTH_SHORT).show(); | @Override
public void onPositionClicked(int position)
{
} | [
"@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position,\n long arg3) {\n Toast.makeText(mContext, position + \"\", Toast.LENGTH_SHORT).show();\n }",
"public void onItemClick(AdapterView<?> parent, View view,\n i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
here we initializing page to use methods from it | @Test
public void sampleTest2() {
PageFactorySamplePage pageFactory = new PageFactorySamplePage(driver);
//this is how we use method from page object class
pageFactory.clickElement();
//print out page Title
System.out.println(driver.getTitle());
//print out page UR... | [
"public abstract void initPages();",
"Page() {\r\n\t\t\r\n\t}",
"public HomePage()\n {\n \t PageFactory.initElements(driver, this);\n \t \n }",
"public Homepage() {\n\t PageFactory.initElements(driver, this);\n\t \n\t \n }",
"public HomePage()\r\n\t{\r\n\t\tinit();\r\n\t\tPageFactor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generated method Setter of User.assignedQuotes attribute defined at extension commerceservices. | @Accessor(qualifier = "assignedQuotes", type = Accessor.Type.SETTER)
public void setAssignedQuotes(final Collection<QuoteModel> value)
{
getPersistenceContext().setPropertyValue(ASSIGNEDQUOTES, value);
} | [
"public void setQuote(Quote quote) {\n this.quote = quote;\n }",
"public String getQuotes() {\n\t\treturn quotes;\n\t}",
"public void setStockQuoteService(StockQuoteService pStockQuoteService)\n {\n stockQuoteService = pStockQuoteService;\n }",
"public void setQuoteLiteral (final IOmlQu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @SuppressWarnings("unchecked")
@Override
public CoyCustWhInfo ViewCompanyCustomerWereHouse(final Long customerid) throws Exception
{
final StringBuilder hql = new StringBuilder();
List<CoyCustWhInfo> list = null;
CoyCustWhInfo cust = new CoyCustWhInfo();
try
{
hql.append(" from... | [
"@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 writes a DOM document to a file. | public boolean writeXmlFile(Document doc, File file) {
try {
FileOutputStream fileOut = new FileOutputStream(file);
OutputFormat format = new OutputFormat(doc);
format.setLineWidth(900);
format.setIndenting(true);
format.setIndent(6);
forma... | [
"public static void writeDocumentToFile(org.w3c.dom.Document document, File file) {\n // Make a transformer factory to create the Transformer\n TransformerFactory tFactory = TransformerFactory.newInstance();\n // Make the Transformer\n Transformer transformer = null;\n\t\ttry { transform... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
End checkId Determine if id is syntactically valid. | public static boolean isValid(String id) {
try {
checkId(id);
return true;
} catch (Exception e) {
return false;
}
} | [
"private boolean isIdValid(String id) {\n\t\treturn true;\n\t}",
"private boolean validId(String id) {\r\n\r\n Pattern p = Pattern.compile(\"[A-Z][a-z]{3}[0-9]{2}\");\r\n\r\n Matcher matcher = p.matcher(id);\r\n boolean matches = matcher.matches();\r\n\r\n return matches;\r\n\r\n }",
"public boolea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
all settings on joint will be updated on actual physics joint, if initialized it seems to be more efficient to not check if the values are different. | abstract public void updateSettingsOnJoint(); | [
"private void configurePhysics() {\r\n bulletAppState = new BulletAppState();\r\n stateManager.attach(bulletAppState);\r\n\r\n PhysicsSpace physicsSpace = getPhysicsSpace();\r\n physicsSpace.setAccuracy(0.1f); // 100-msec timestep\r\n }",
"protected void settoDefault(){\n\t\tif(myLi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a faction by the given id. | public static Faction getFaction(int id)
{
return factionsById.get(id);
} | [
"public Faculty getFaculty(int id) {\n Faculty faculty = facultyRepository.findById(id).orElse(null);\r\n logger.info(\"*** Service : Displaying faculty information. ***\");\r\n return faculty;\r\n }",
"public FacturaCabecera buscarFactura(int id){\r\n FacturaCabecer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a player positioned in square (x,y) | public Player(Dungeon dungeon, int x, int y, String name) {
super(x, y, name);
this.dungeon = dungeon;
this.inventory = new Inventory();
this.last_x = x;
this.last_y = y;
this.swordDurability = new SimpleIntegerProperty(0);
this.isInvincible = false;
this.... | [
"private void placePlayer(){\r\n\t\r\n\t\t//Makes a new Random positiion for x and y\r\n\t\txCoordinate = (int)(newMap.getWidth()*Math.random());\r\n\t\tyCoordinate = (int)(newMap.getLength()*Math.random());\r\n\t\t\r\n\t\t//if the map position of the player is a wall reroll the random number\r\n\t\twhile(getArra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required string ip = 4; | public boolean hasIp() {
return ((bitField0_ & 0x00000008) == 0x00000008);
} | [
"private void setIp(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n ip_ = value;\n }",
"void setIP(String ip);",
"public void setIp2(String ip2);",
"private static void chkIp(String ip)throws IllegalArgumentExce... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Program__Group__9__Impl" $ANTLR start "rule__Process__Group__0" InternalReflex.g:706:1: rule__Process__Group__0 : rule__Process__Group__0__Impl rule__Process__Group__1 ; | public final void rule__Process__Group__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalReflex.g:710:1: ( rule__Process__Group__0__Impl rule__Process__Group__1 )
// InternalReflex.g:711:2: rule__Process__Group__0__Impl rule__Proces... | [
"public final void rule__Process__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReflex.g:2399:1: ( rule__Process__Group__0__Impl rule__Process__Group__1 )\n // InternalReflex.g:2400:2: rule__Process__Group__0__I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if a pawn can be moved forward by two squares. | @Test
public void testPawn_Move_LegalCoordinates_TwoForward_UpdatesCoordinates() throws Exception {
this.testSubject = new Pawn(PieceColor.WHITE, 1, 2, chessBoard);
chessBoard.add(testSubject);
testSubject.move(MovementType.MOVE, 1, 4);
Assertions.assertEquals(1, pieces.get(new Pair<... | [
"static int checkMoveValidity(char player, int xyA[], int xyB[]){\n\t\tint flagM = 0;\n\t\t\n\t\t// The right pawn hasn't been chosen.\n\t\tif (player == 'a' && (Game.boardState[xyA[0]][xyA[1]] != -1 && Game.boardState[xyA[0]][xyA[1]] != -2)) {\n\t\t\tSystem.out.println(\"You need to choose your pawn first!\");\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Try to extract patient, title and date from a file. | public DocumentDescriptor analyze(final File file) throws Exception {
DocumentDescriptor dd = new DocumentDescriptor(null, new TimeTool(), file, file.getName());
File meta = new File(file.getAbsolutePath() + ".meta");
if (meta.exists() && meta.canRead()) {
String[] metadata = FileTool.readTextFile(meta).split(... | [
"private Recording parseFilename(File file){\n String fileName = \"\";\n try {\n fileName = file.getName();\n String directory = file.getParent();\n\n //Extracts information from the filename and directory\n String path = directory + \"/\" + fileName;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adjusts columns width to its content | public void fitColumnsWidthToContent() {
JTableHeader header = getTableHeader();
TableCellRenderer headerRenderer = null;
if (header != null)
{
headerRenderer = header.getDefaultRenderer();
}
TableColumnModel columns = getColumnModel();
TableModel t... | [
"private void adjustColumns ()\r\n {\r\n TableColumnModel cModel = getColumnModel();\r\n\r\n // Columns widths\r\n for (UnitModel.Column c : UnitModel.Column.values()) {\r\n cModel.getColumn(c.ordinal())\r\n .setPreferredWidth(c.width);\r\n }\r\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
fxdiff FXOLAT113: business path in DMZ | protected void showAboutPage(UserRequest ureq) {
//fxdiff FXOLAT-139
VelocityContainer aboutVC = createVelocityContainer("about");
// Add version info and licenses
aboutVC.contextPut("version", Settings.getFullVersionInfo());
aboutVC.contextPut("license", WebappHelper.getOlatLicense());
// Add translator and... | [
"Path mo7140e();",
"private static String[] outBFS(Digraph digraph) {\r\n\t\tBreadthFirstDirectedPaths BFS = new BreadthFirstDirectedPaths(digraph, 0);\r\n\t\tIterable<Integer> Path1 = BFS.pathTo(EnumCity.MINNEAPOLIS.getIndex());\r\n\t\tVector<String> temp1 = new Vector<String>();\r\n\t\tfor (int i : Path1) {\r\n... | {
"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"
]
]
}
} |
Never called. Disable default constructor | protected DocumentAnnotation() {
/* intentionally empty block */
} | [
"private O()\r\n {\r\n super();\r\n }",
"private MiniMiser() {\r\n // nothing\r\n }",
"DefaultConstructor() {\n\t\tSystem.out.println(\"DefaultConstructor\");\n\t}",
"private PrivateConstructor() { \n \t\n }",
"private MyObject() {\r\n }",
"public MyClass(){\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a DefaultTableModel with numRows and numColumns of null object values. | public DefaultTableModel(int numRows, int numColumns) {
Vector names = new Vector(numColumns);
names.setSize(numColumns);
setColumnIdentifiers(names);
dataVector = new Vector();
setNumRows(numRows);
} | [
"private DefaultTableModel createEmptyTable() {\n return new javax.swing.table.DefaultTableModel(\n new Object [][] {\n \n },\n new String [] {\n \"Song\", \"Artist\", \"Album\", \"Album Artist\", \"Track #\", \"Genre\", \"Length\"\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void actionPerformed(ActionEvent e) {
command= e.getActionCommand();
} | [
"@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"
]
]
}
} |
private String area; private Adp_InfoWindow_Maker infoWindow; | @Override
protected void onCreate(Bundle arg0) {
// TODO Auto-generated method stub
super.onCreate(arg0);
setContentView(R.layout.lyt_act_ubicacion);
overridePendingTransition(R.animator.activity_push_up_in,
R.animator.push_up_out);
getActionBar().setDisplayHomeAsUpEnabled(true);
busUbi... | [
"public InfoWindow() {\n\n\t}",
"private void getInfo(Point p){\r\n\t\tRoom r = getClosedRoom(p);\r\n\t\tif(r != null){\r\n//\t\t\tRoomInfoDialog dlg = new RoomInfoDialog(worldMap, r, false);\r\n\t\t\tmap.GUI.Dialog.RoomInformation dlg\r\n\t\t\t\t= new map.GUI.Dialog.RoomInformation(worldMap.getRooms(), r, false)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
1. Get all homes of teh current user | private void updateMemberWithUser() {
firestore.collection(HOME_USER_COLLECTION)
.whereEqualTo(MEMBER_ID, currentUser.getValue().getId())
.get()
.addOnCompleteListener(task -> {
if (task.isSuccessful()) {
HashMap<Home,... | [
"@GetMapping(\"/homes\")\n CollectionModel<EntityModel<Home>> all() {\n List<EntityModel<Home>> homes = homeRepository.findAll().stream()\n .map(home -> EntityModel.of(home,\n linkTo(methodOn(HomeController.class).one(home.getHomeId())).withSelfRel(),\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Iterator<DataItem> iterator() {
return dataItem.iterator();
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Animate Type'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseAnimateType(AnimateType object) {
return null;
} | [
"public TypeOfAnimation getType();",
"private Type type () {\n\t\tType t = null;\n\t\tif(token.type().equals(TokenType.Int)){\n\t\t\tmatch(TokenType.Int);\n\t\t\tt = Type.INT;\n\t\t}\n\t\telse if(token.type().equals(TokenType.Bool)){\n\t\t\tmatch(TokenType.Bool);\n\t\t\tt = Type.BOOL;\n\t\t}\n\t\telse if(token.ty... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Assigning category based on age Default categories: 06 > 1, small model 712 > 2, big model 13 16 > 3, big model >16 > 4, big model open category > 5, custom model Categories may change in future | public int assignAgeCategory(int ageInYears, boolean open){
if ((ageInYears <= 6) && (open == false)){ return 1; }
if ((ageInYears > 6) && (ageInYears <=12) && (open == false)){ return 2; }
if ((ageInYears > 12) && (ageInYears <= 16) && (open == false)){ return 3; }
if ((ageInYears > 16)... | [
"public int DwarfAgeCategories(int age){\n if(25 <= age && age <= 40) return 1;\n else if(41 <= age && age <= 350) return 2;\n else if(351 <= age && age <= 600) return 3;\n else if(601 <= age && age <= 680) return 4;\n else if(681 <= age && age <= 750) return 5;\n else retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
colocar los datos del cliente | private void colocarDatosCliente() {
nombreCliente.setText(datosClienteFacturacion.getNombre());
direccionCliente.setText(datosClienteFacturacion.getDomicilio());
telefonoCliente.setText(datosClienteFacturacion.getTelefono());
ccCliente.setText("" + datosClienteFacturacion.getIdentificac... | [
"public void datosCliente() {\r\n System.out.println(\"Digite Nombre del cliente: \");\r\n nombre = sc.next();\r\n System.out.println(\"Digite Apellido del cliente: \");\r\n apellido = sc.next();\r\n System.out.println(\"Digite Documento del cliente: \");\r\n documento = sc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "T__53" $ANTLR start "T__54" | public final void mT__54() throws RecognitionException {
try {
int _type = T__54;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.telcodev.dsl.ui/src-gen/org/telcodev/dsl/ui/contentassist/antlr/internal/InternalDime.g:44:7: ( 'Send' )
// ../org.telcodev.dsl.ui/src... | [
"public interface StmtParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int OPEN = 6;\r\n /** RegularExpression Id. */\r\n int CLOSE = 7;\r\n /** RegularExpression Id. */\r\n int NEW = 8;\r\n /** RegularExpression Id. */\r\n int FROMREGEX = 9;\r\n /** Reg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
tests the getReverseValue() method in Model class | @Test
public void testGetReverseValue() {
int res = model.getReverseValue();
assertTrue(res == 523);
} | [
"@Test\n public void testSetReverse()\n {\n Evaluator<Integer, String> reverse = null;\n ForwardReverseEvaluatorPair<String, Integer, Evaluator<String, Integer>, Evaluator<Integer, String>> instance =\n new ForwardReverseEvaluatorPair<String, Integer, Evaluator<String, Integer>, Evalu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end rule__SimpleFunction__Group__2 $ANTLR start rule__SimpleFunction__Group__2__Impl ../edu.kit.scc.cfeditor.cfengine.ui/srcgen/edu/kit/scc/cfeditor/cfengine/ui/contentassist/antlr/internal/InternalCfengineEditor.g:3580:1: rule__SimpleFunction__Group__2__Impl : ( ( rule__SimpleFunction__ValuesAssignment_2 ) ) ; | public final void rule__SimpleFunction__Group__2__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../edu.kit.scc.cfeditor.cfengine.ui/src-gen/edu/kit/scc/cfeditor/cfengine/ui/contentassist/antlr/internal/InternalCfengineEditor.g:3584:1: ( ( ( ru... | [
"public final void rule__Values__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.jlog.ui/src-gen/org/xtext/jlog/ui/contentassist/antlr/internal/InternalJlogDsl.g:1588:1: ( rule__Values__Group__2__Impl )\n /... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert longitude from degrees to double representation. | public static double parseNmeaLongitude(String lon, String orientation) {
double longitude = 0.0;
if (lon != null && orientation != null && lon.length()>0 && orientation.length()>0) {
double temp1 = Double.parseDouble(lon);
double temp2 = Math.floor(temp1/100d);
double temp3 = (temp1/100d - temp2)/0.6d;
... | [
"public Double decodeLongitude() {\n decode(); \n return longitude;\n }",
"public static double toLongitude(long fsuipcLongitude) {\n\t\treturn (fsuipcLongitude * (360.0 / (65536.0 * 65536.0 * 65536.0 * 65536.0)));\n\t}",
"public static double convert_long_to_double(long x){\n if(!suppre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a block game object at the specified location of the grid | public Block(float x, float y, int size, Grid grid, int textureType, int textureColor)
{
super(x, y, ObjectId.Block);
destinationX = x;
destinationY = y;
this.size = size;
this.grid = grid;
this.textureType = textureType;
this.textureColor = textureColor;
this.direction = Direction.CENTER;
this.movin... | [
"Block tileAt(Position location);",
"public void spawnNewPlayerBlock(String type) {\r\n\t\tIBlock b = new RotatingPolyomino(dropBlocksFromHere, type);\r\n\t\tb.setPos(b.getPos().left(b.getColumns() / 2));\r\n\t\tplayerBlock = b;\r\n\t}",
"@Override\n public Block create(int xpos, int ypos) {\n geometr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional uint32 depot_id = 1; optional uint32 depot_id = 1; | boolean hasDepotId(); | [
"void setDepotNo(int depotNo)\n\t{\n\t\tthis.depotNo = depotNo;\n\t}",
"public boolean hasDepotId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public int getDep() {\n return dep;\n }",
"public void setDep(int dep) {\n this.dep = dep;\n }",
"@Override\n\tpublic D... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ShippingInfo before the Set Shipping Method or Set Custom Shipping Method update action. | @Valid
@JsonProperty("oldShippingInfo")
public ShippingInfo getOldShippingInfo(); | [
"@With(FormHandler.class)\n public static Result setShippingMethod() {\n Form<SetShippingMethod> form = setShippingForm.bindFromRequest();\n if (form.hasErrors()) {\n displayErrors(\"set-shipping\", form);\n return badRequest(showPage(3, null, form));\n }\n // Ca... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fires a Toggle event on all registered handlers in the handler manager. If no such handlers exist, this method will do nothing. | public static ToggleEvent fire(HasToggleHandlers source, boolean toggleOn) {
// If no handlers exist, then type can be null.
if (TYPE != null) {
ToggleEvent event = new ToggleEvent(toggleOn);
source.fireEvent(event);
return event;
}
return null;
} | [
"@Override\n\tpublic void Toggle() {\n\t\t\n\t}",
"private static void toggleAllCowMenus() {\n if (cowPopupMenuToggle) {\n for (Cow cow : CowHandler.liveCowList) {\n if (cow.getRegionIn().getPlayground() == PlaygroundHandler.playground)\n cow.closeMenu();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of SupervisorBean | public Supervisee(String sussexId, String name, String surname, String projectTitle) {
this.sussexId = sussexId;
this.name = name;
this.surname = surname;
this.projectTitle = projectTitle;
} | [
"public SupiEscalaSupervisorBean()\n {\n }",
"public static Supervisor get() {\r\n\t\tif(instance == null)\r\n instance = new Supervisor(ActorSystem.create());\r\n return instance;\r\n\t}",
"public ProfileBean() {}",
"@Override\r\n\tprotected void criarNovoBean() {\r\n\t\ttry {\r\n\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: add code that runs after each test method | @After
public void tearDown() throws Exception {
fData = null;
} | [
"private void doTest() {\r\n\r\n\t}",
"private void testing() {\n\t}",
"@Override\n public void afterTestClass() {\n }",
"@Before\n\t@Override\n\tpublic void setUpBefore() {\n\t}",
"@Override\n protected void tearDown() {\n\n }",
"private void testingPurposes() {\n\t}",
"@Before\n\tpublic vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Draws terrain features for a given terrain tile | public void drawTerrainFeatures(Graphics g, int terrainValue, int size) {
int s = size-4;
int sta = 2;
int end = size-1-2;
if(TerrainConstants.isOfType(terrainValue, TerrainConstants.WATER)) {
g.setColor(WATER_COLOR);
g.fillRoundRect(sta, sta, s, s, s/2, s/2);
}
if(TerrainConstants.isOfTyp... | [
"protected void drawTiles() {\n }",
"private void drawTile () {\n Tiles t;\n for (int i = 0; i < gameTiles.size(); i++) {\n t = gameTiles.get(i);\n t.drawImage(buffer);\n }\n }",
"public void drawTiles(){\n\t\tpushMatrix();\r\n\t\tnoFill();\r\n\t\tif(raster != null... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialising object and Launching browser | @BeforeClass
public void launchBrowser() throws Throwable{
driver = Browsers.getBrowser();
Reporter.log("-----Browser launch successfully-----");
homePageObject = PageFactory.initElements(driver, HomePageObject.class);
myPaperPageObject = PageFactory.initElements(driver, MyPaperPageObject.class);
cartPage... | [
"public void launchBrowser(){\n\t\treader = new ReadConfigProperties();\n\t\treader.setBrowserType();\n\t\t//driver = chromeDriver.getChromeDriver();\n\t\tdriver = getBrowserDriver();\n\t\tbrowser = Browser.getInstance(driver);\n\t\tbutton = Button.getInstance(driver);\n\t\twindow = Window.getInstance(driver);\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/This method checks for the image files in the folder specified by the user | public boolean isThereImageFile(File usersFolder) {
boolean value = false;
File[] listOfFiles = usersFolder.listFiles();
String fileNames[] = new String[listOfFiles.length];
String nm, pff;
for (File list_of_file : listOfFiles) {
if (list_of_file.isFile()) {
... | [
"private void locateImages() {\n // Locate all files in directory\n imageFilenames = locateFiles(dirImages);\n }",
"public static boolean checkimage(String file_name, String file_path) {\n boolean flag;\n File path = new File(file_path);\n\n File file = new File(path, file_name);\n //... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Assign a version to the instrumentation library that is using the resulting Tracer. | TracerBuilder setInstrumentationVersion(String instrumentationVersion); | [
"void setVersion(it.csi.airquality.aqa.x100.VersionDocument.Version version);",
"public void setVersion(String version)\r\n/* 483: */ {\r\n/* 484:698 */ this.version = version;\r\n/* 485: */ }",
"public void setVersion(String inVersion) {\r\n version = inVersion;\r\n }",
"T incrementVersion();"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Required. Protocols required for the volume repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED]; | public Builder clearProtocols() {
protocols_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
} | [
"@Override\n public void setEnabledProtocols(String[] protocols) {\n\n }",
"public final String[] protocols() { return protocols; }",
"public boolean hasProtocol() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"java.util.List<com.adsizzler.mangolaa.commons.protobuff.OpenRtb.Pro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculate the new coordinates of the end points after implementing the growth | public void calculateNewEndPoint(Stem stem){
if(stem.angle == 90){
stem.endY = stem.endY - stem.length;
}
} | [
"private void CalculatePoint()\r\n\t{\r\n\t\tmLastCalculated = mOriginalPosition.Plus(mOffset);\r\n\t}",
"private void calculateIncrements() {\n\t\tiX = (int) Math.floor((endPoint.x - currentPoint.x) / this.health);\n\t\tiY = (int) Math.floor((endPoint.y - currentPoint.y) / this.health);\n\t}",
"public double g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column loan_audit_flow.next_user_id | public Long getNextUserId() {
return nextUserId;
} | [
"public int getNextUserIdNumber() {\r\n\t\t int toReturn = nextIdNumber;\r\n\t\t nextIdNumber++;\r\n\t\t return toReturn;\r\n\t }",
"@Override\n public String getPrevTempUserId() {\n String latestId = null;\n String query = (\"SELECT temp FROM latestId\");\n ResultSet select = db.e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ class com.facebook.inject.LazyFutures.ListBuilder.AnonymousClass3 / access modifiers changed from: protected | @Override // com.facebook.inject.LazyFuture
public ListenableFuture<List<Object>> createFuture() {
return Futures.allAsList(Lists.transform(copyOf, new Function<Lazy<ListenableFuture<Object>>, ListenableFuture<Object>>() {
/* class com.facebook.inject.LazyFutu... | [
"@Override\n public void build() {\n }",
"private ListManager() {\n\t}",
"private List_Of_Request(){}",
"private ListViewBuilder() {\n\n\t}",
"public LazyDataModel<Asistencia> getListaAsistencia()\r\n/* 334: */ {\r\n/* 335:334 */ return this.listaAsistencia;\r\n/* 336: */ }",
"protecte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
calcolo della valutazione del venditore in base alle recensioni dei coupon inseriti dallo stesso | public static int calcolaMediaValutazioneVenditore(String pIva){
int avg = 0;
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
String url = "jdbc:mysql://localhost:3306/coupon";
Connection con = DriverManager.getConnection(url,"root","progetto");
... | [
"public void sincronizza() {\n /* variabili e costanti locali di lavoro */\n Object valore;\n Campo campo;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* se è selezionato solo extra il check raggruppa pensioni\n * viene spento e dis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new Category in the Database | private static void createCategory(String category_name, Context context) {
eventsManager.open();
// Check if Category already exists
if(!category_name.trim().isEmpty() && eventsManager.getCategoryByName(category_name) == null) {
eventsManager.writeCategory(new Category(category_name... | [
"Category addCategory(Category category) throws DAOException;",
"Response addCategory(Category category) throws SQLException;",
"public void createCategory(Category category) {\n\t\tcRepo.save(category);\n\t}",
"public CreateCategory() {}",
"public static void insertCategory(Category category)\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Convert this into a parsed command | @Override
public boolean onCommand(CommandSender sender, Command command, String s, String[] args) {
ServerTutorialPlus plugin = ServerTutorialPlus.getInstance();
if(args.length < 3){
sender.sendMessage(Lang.WRONG_COMMAND_FORMAT.toString() + "/st edit <server tutorial ID> <invisible/rew... | [
"public interface Command {\n\n /**\n * Get the values of command.\n * such as 'APPEND' and so on.\n *\n * @return\n * the string command.\n */\n String[] values();\n\n /**\n * The Start Version is the Begin Version contains current command.\n *\n * @return\n * ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Forward into the screen is the negative Z direction | void setForward() {
set(0, 0, -1);
} | [
"public void Forward() { \r\n \tif (dir == 0) { \r\n y ++; // moving north means moving up on the Y axis\r\n } else if (dir == 1) {\r\n x ++; // moving east means moving up on the X axis\r\n } else if (dir == 2) {\r\n y --; // moving south means moving ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface for callbacks when query has finished. | public static interface QueryFinished {
/**
* A query has finished.
*
* @param results
* Results of the query if the query had results. This list is
* unmodifiable and will throw an exception on any attempt to modify
* it.
*/
public void queryFinished( List<ItemDes... | [
"public interface SQLOperations {\n\n public void onFinishQuery(Cursor cursor);\n}",
"public abstract OperationQuery complete();",
"public abstract void onQueryCompleted(ArrayList<FbEvent> events);",
"public abstract void onFinished();",
"public void onFinish() {}",
"void onFinished(PendingConnection c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
make variables for if there is a customer and a running total | public static void main(String[] args) {
boolean customer=true;
double runtot=0;
while(customer){//while there are customers in line
//instantiate variables
int lems, brs, bd=0, ld=0;
double lemcost=.79, bcost=1.29, total=0, totbrs, totlems;
String nm;
Scanner sc=new Scanner(System.... | [
"private void populateTotalForCustomer (CMSTransactionHeader transactionHeaders[]) {\n\t double totalAmount = 0;\n\t if (transactionHeaders != null && transactionHeaders.length > 0) {\n\t\t for (int iCtr = 0; iCtr < transactionHeaders.length; iCtr++) {\n\t\t\t totalAmount += transactionHeaders[iCtr].getTotalAmo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the defined SpeedUnits for the specified name. | public static SpeedUnits getSpeedUnits(String name)
{
return EnumTools.getValueOf(SpeedUnits.class, name);
} | [
"@Override\n protected Unit<?> unitFor(String name) {\n Unit<?> unit = nameToUnit.get(name);\n if (unit != null)\n return unit;\n // Else returns default mapping.\n return DEFAULT.unitFor(name);\n }",
"private String getUnit(String name) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
int64 date = 1; | public long getDate() {
return date_;
} | [
"long getDateLong();",
"com.google.protobuf.Int64Value getEstablishmentDate();",
"public long getDate() {\n return date;\n }",
"public Long getDateAsLong() {\n\treturn dateAsLong;\n}",
"long mo15856d();",
"public static void main(String[] args) {\n Date date = new Date(160761600000L);\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"
]
]
}
} |
TODO Autogenerated method stub | public int getUnreadMessagesCount() {
String query = "select count(*) from tb_message where read = 0";
int sum = 0;
try {
sum = (int)MessageDaoOpe.queryRawValue(query);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return sum;
} | [
"@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"
]
]
}
} |
print out the String Detail | public String toString(){
return "Your ID is " + getId() + "\nYour name is " + getName() + "\nThe balance is " + (int)getBalance() + "\nMonthly interest is " + getMonthlyInterestRate() + "\nThe date you create this account is " + dateCreated;
} | [
"@Override\n\tpublic void print(){\n\t\tSystem.out.println(getString());\n\t}",
"void printDetails() {\n\t\tSystem.out.println(\"Id is \" + id);\n\t\tSystem.out.println(\"Name is \" + name);\n\t\tSystem.out.println(\"Salary is \" + salary);\n\t\tSystem.out.println(\"------------------------\");\n\t}",
"public S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
byte[] buf = new byte[1024]; | public static String toString(String filename, int offset, int length)
throws IOException {
File file = new File(filename);
FileInputStream input = new FileInputStream(file);
byte[] data = new byte[length];
int nb = input.read(data);
String dump = FSUtils.toString(data, 0... | [
"public MyByteArray() {\n buffer = new byte[32768];\n curr = 0;\n }",
"byte[] getByteBuffer();",
"public int getBufferSize() {\nreturn 0;\r\n}",
"public byte[] read(){return new byte[1];}",
"public SeekableByteArrayOutputStream(byte[] buf)\n/* 28: */ {\n/* 29: 57 */ this.buf = bu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the role2 bao cao persistence. | public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.org.oep.cmon.dao.report.model.Role2BaoCao")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<Role2BaoCao>> list... | [
"@PostConstruct\n\tpublic void init(){\n\t\tif(roleRepository.findByName(\"ROLE_ADMIN\") == null){\n\t\t\t//create a role as regular user\n\t\t\tRole roleUser = new Role();\n\t\t\troleUser.setName(\"ROLE_USER\");\n\t\t\troleRepository.save(roleUser);//save the role\n\n\t\t\t//create a role as admin\n\t\t\tRole role... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table `guideaccountdetail` | @Select({
"select",
"guideAccountDetailId, guideAccountSN, guideId, orderId, orderSN, guideFinanceId, ",
"bizType, content, price, payType, bizStatus, bizComment, guideDrawId, updated_at, ",
"created_at",
"from `guideaccountdetail`",
"where guideAccountDetailId = #{guidea... | [
"@Override\n public List<Accountdetail> selectAccOnAccno(int accno) throws AccountNotFoundException { \n \tEntityManager entityManager = getEntityManager();\n \tQuery query = entityManager.createQuery(\"from Accountdetail\");\n List<Accountdetail> AccountDetailsList = query.getResultList();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/Por cada empleado del array de empleados recibido en el constructor hacemos lo siguiente: | @Override
public void onBindViewHolder(final PasarAGerenciaViewHolder holder, int position) {
final Empleado empleado = listaEmpleados.get(position);
holder.nombre.setText(empleado.getNombre()+" "+empleado.getApellidos());
bbdd = FirebaseDatabase.getInstance().getReference("empleados");
... | [
"public ArrayVehiculo() {\n this.vehiculo = new ArrayList<>();\n }",
"public void ArregloEstudiante()\n {\n Estudiante[] arreglo_estudiante = new Estudiante[2];\n \n //como llenar el arreglo\n //tarea hacer for (for(int i=0; i<arreglo_estudiante.length; i++... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / / | public void fromData(DataInput in)
/* */ throws IOException, ClassNotFoundException
/* */ {
/* 131 */ this.name = DataSerializer.readString(in);
/* 132 */ this.fieldType = ((AdfFieldType)DataSerializer.readEnum(AdfFieldType.class, in));
/* 133 */ this.indexed = DataSerializer.readBoolean(in).b... | [
"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"
]
]
}
} |
Iterates all of the ComplainingCustomer instances in all of the queues in the simulation, increments their time spent in the queue by 1 and then doubles their ServeTime if they've been waiting in the queue for longer than their patience limit | public void actOnInconveniencedCustomers(QueueControlSystem queueSystem) {
for (Queue queue : queueSystem.getQueues()) {
for (Person person : queue.getQueue()) {
if (person instanceof ComplainingCustomer) {
((ComplainingCustomer) person).incrementTimeSpentQueueing();
if (((ComplainingCustomer) p... | [
"private void updateStatsSCE(Customer currentCustomer){\n\t\tsims.minQS = state.queueSize < sims.minQS ? state.queueSize : sims.minQS;\n\t\tsims.maxQS = state.queueSize > sims.maxQS ? state.queueSize : sims.maxQS;\n\n // update statistics if transient phase is over\n if(this.state.isTransientPhaseOver... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string name = 1; | boolean hasName(); | [
"public void setName(String string) {\n name = string;\n }",
"private static void forName(String string) {\n\t\t\n\t}",
"public var(String name){\n\t\tthis.name = name;\n\t\tnumber = new BigNum(\"0\");\n\n\t}",
"public String getname(String name) {\n \treturn name;\n }",
"int getNameValue(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the "minimum" size of the pie directly. If the minimum is too large, then the size will be the pie's maximum size. | final void setCustomSpaceSize (boolean customize, Dimension size) {
needsUpdate = true;
customSizing = customize;
customSpaceSize = size;
} | [
"@Override public Dimension getMinimumSize() {\n\t\t\t\t\treturn new Dimension(HiDPIHelper.scale(100),HiDPIHelper.scale(100));\n\t\t\t\t\t}",
"public BaseElement setMinimumSize(Dimension minimumSize) {\n this.minimumSize = (minimumSize == null) ? null : new Dimension(minimumSize);\n return this;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "RULE_TAG" $ANTLR start "RULE_DECIMAL" | public final void mRULE_DECIMAL() throws RecognitionException {
try {
int _type = RULE_DECIMAL;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../de.nie.fin/src-gen/de/nie/fin/parser/antlr/internal/InternalFin.g:6046:14: ( ( '+' | '-' )? RULE_INT '.' RULE_INT )
// ... | [
"public TerminalRule getDECIMALRule() {\r\n\t\treturn gaXbase.getDECIMALRule();\r\n\t}",
"public final void mDECIMAL() throws RecognitionException {\n try {\n int _type = DECIMAL;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Users\\\\chw\\\\workspace-cloudmig\\\\CShar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
XXX: this can be deleted when the meta model has been changed | @Override
protected void handleSelection(SelectionEvent e)
{
if (e.getSource() instanceof Button)
{
Object selected = getObject((Button) e.getSource());
if (selected instanceof ModifierType)
{
switch ((ModifierType) selected)
{
... | [
"private void clearMeta() { meta_ = null;\n \n }",
"public OntModel getMetaModel(){\n return metaModel;\n }",
"public void invalidateMeta() {\n }",
"@Override\n\t\t\tpublic MetaClass getMetaClass() {\n\t\t\t\treturn null;\n\t\t\t}",
"public void setMeta(Meta meta) {\n this.meta ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method will check the status variable and reboot the TS . After rebooting it sets the timer which will prevent multiple rebooting. | public void reboot () {
if(status.equals("UNDEFINED") && (ts_skeep <= 0)) {
//.............................audio alarm
// mySysExe.run_unix("door_bell");
ts_skeep = DataPool.reboot_timer;
//.............................rebooting
System.out.println("Rebooting clastrig2" );
... | [
"@In Boolean reboot();",
"abstract public void reboot();",
"private void scheduleStatusUpdates() {\r\n\t\tstatusUpdateTimer = new Timer();\r\n\t\tstatusUpdateTimer.scheduleAtFixedRate(new TimerTask() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttripStatusHandler.post(tripStatu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct filter for specific node types | public NodeTypeNodeFilter(short[] nodeTypes) {
this.nodeTypes = nodeTypes;
} | [
"public abstract void filter(String type);",
"public Filter getTypeFilter(int type) {\r\n\treturn new TypeFilter(type);\r\n }",
"public interface DTMFilter {\n\n // Constants for whatToShow. These are used to set the node type that will\n // be traversed. These values may be ORed together before being ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 38 /Coverage entropy=0.6931471805599453 | @Test(timeout = 4000)
public void test38() throws Throwable {
VisualListModel visualListModel0 = new VisualListModel();
Vector<VisualPageListItem> vector0 = new Vector<VisualPageListItem>();
visualListModel0.addAllElements((-2902), (Collection<VisualPageListItem>) vector0);
assertEquals(0, v... | [
"@Test(timeout = 4000)\n public void test140() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Doub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Accuracy test toJSONString method. | @Test
public void test_toJSONString2() throws Exception {
instance = new BillingCostExportDetail();
String json = instance.toJSONString();
assertTrue("return result is incorrect", json.indexOf("\"quickBooksImportTimestamp\":null") > -1);
assertTrue("return result is incorrect"... | [
"public String toJSONString()\r\n/* 21: */ {\r\n/* 22:19 */ return this.jsonString;\r\n/* 23: */ }",
"@Test\r\n public void test_toJSONString1() throws Exception {\r\n String json = instance.toJSONString();\r\n assertTrue(\"return result is incorrect\", json.indexOf(\"\\\"billingCostE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method retrieves all rows in the DB and displays them on the GUI | private static void getISBNInfoGUI(TextArea t) {
try {
stmt = conn.createStatement();
ResultSet results = stmt.executeQuery("select * from " + infoTable);
t.setText("");
while(results.next()) {
t.append("ISBN: " + results.getString("isbn")+" ");
t.append... | [
"public static void display(){\n\n try {\n Connection myConnection = ConnectionFactory.getConnection();\n Statement stat = myConnection.createStatement();\n ResultSet rs = stat.executeQuery(\"SELECT * from client\");\n\n System.out.println(\"CLIENT\");\n while(rs.next()){\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handles the HTTP GET method. | @Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
} | [
"@Override\n\tpublic void handleGET(CoapExchange exchange) {\n\n\t\t\n\t}",
"protected void doGet(HttpServletRequest req, HttpServletResponse response) throws ServletException, IOException {\r\n\t\tSystem.out.println(\"--> get\");\r\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse respo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: b | public static C29054ax m46148b(WXMediaMessage wXMediaMessage, String str, String str2, String str3) {
int i;
AppMethodBeat.m2504i(36697);
C4990ab.m7410d("MicroMsg.UploadManager", "appmsg.description " + wXMediaMessage.description);
C4990ab.m7410d("MicroMsg.UploadManager", "appmsg.title "... | [
"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"
]
]
}
} |
induce rule is possible, otherwise set the correct status | public GrammarInducer(Example origEx, Example defEx) {
id = origEx.id;
chart = origEx.chart;
numTokens = origEx.numTokens();
tokens = origEx.getTokens();
inducedRules = new ArrayList<>();
defStatus = DefStatus.NoParse;
parseStatus = getParseStatus(origEx);
if (defEx.predDerivations.size... | [
"@Override\n\tpublic boolean isRuleApplicable() {\n\t\treturn true;\n\t}",
"private boolean ruleValidationGet(int rule) {\n\n boolean status = true;\n RuleBean previousRule = DailyLogDB.getPreviousCanadaRule(Utility.onScreenUserId);\n // if driver rule is of canada\n if (rule <= 2 || p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets by car body type. | @Override
public List<Car> getByBody(String bodyType) {
List<Car> carList;
try {
Body body = Body.valueOf(bodyType);
carList = carRepository.findByBody(body);
} catch (IllegalArgumentException exception) {
throw new RuntimeException(localizedMessageSource.... | [
"@SuppressWarnings(\"rawtypes\")\r\n\tpublic abstract Class getCarType();",
"public String getCarType() {\r\n return carType;\r\n }",
"public com.hjc.herol.proto.test.RichManPb.RichMan.CarType getType() {\n com.hjc.herol.proto.test.RichManPb.RichMan.CarType result = com.hjc.herol.proto.test.Ric... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value related to the column: submittedby | public void setSubmittedby (java.lang.String _submittedby) {
this._submittedby = _submittedby;
} | [
"void setAssignedUser(User value);",
"public void setPostedBy(String postedby) {\n TextView post_postedby = (TextView) mView.findViewById(R.id.postedby);\n post_postedby.setText(postedby);\n\n }",
"public void setSubmitted(Date v) {this.submitted = v;}",
"public void setAssigned_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the font and bother | public void updateFontBorder(Font font, Border border); | [
"private void refreshFontSettings(){\n \n infoText1.setFont(new Font(settings.getFontFamily(), settings.getFontSize()));\n infoText2.setFont(new Font(settings.getFontFamily(), settings.getFontSize()));\n infoText3.setFont(new Font(settings.getFontFamily(), settings.getFon... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
startActivity(new Intent(AtyMain.this, AtyShowTexts.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"
]
]
}
} |
TODO Autogenerated method stub | @Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D graphics2d = (Graphics2D) g;
graphics2d.setStroke(new BasicStroke(thick));
graphics2d.setColor(ColorPanel.color);
graphics2d.drawLine(20, 45, 100, 45);
graphics2d.setStroke(new B... | [
"@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"
]
]
}
} |
create test date time with pst as the time zone | private Date createUserDateTime(Date date)
{
GregorianCalendar calendar = new GregorianCalendar(TimeZone.getTimeZone(STORAGE_TIMEZONE));
// calendar.set(2007, Calendar.MAY, 30, 13, 10);
System.out.println("before conversion : " + date.toString());
calendar.setTime(date);
//System.out.println("year : ... | [
"@Test\n public void pst()\n {\n String result = TimeZoneFormatter.getTimezone(\"GMT-8\");\n assertNotNull(result);\n assertEquals(\"-8.00\", result);\n }",
"private static void timezoneTests()\n throws Exception\n {\n LocalDateTime ldt;\n \n //... ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new TreeNode with left and right child set to null and data set to the dataNode. | public TreeNode(TreeNode<T> node) {
this.rightChild = node.rightChild;
this.leftChild = node.leftChild;
this.data = node.getData();
} | [
"public TreeNode(T dataNode) {\r\n\t\tthis.data = dataNode;\r\n\t\tthis.leftChild = null;\r\n\t\tthis.rightChild = null;\r\n\t}",
"public Node(Object data){\n this.data = data;\n leftChild = null;\n rightChild = null;\n\t\t}",
"public TreeNode( E nodeData )\r\n { \r\n dat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of elements in this list. | public int size()
{
return count;
} | [
"public int getNbElements() {\n\t\treturn liste.getNbElements();\n\t}",
"public int size()\n {\n synchronized (elements) {\n return elements.size();\n }\n }",
"public int getNumElements() {\r\n\t\treturn elements.size();\r\n\t}",
"public int size() {\n\t\tint countOfElements = 0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ prints the board so the player can see | private static void printBoard(byte[][] board){
for(int i = 0; i < board.length; i++){
for(int j = 0; j < board[0].length; j++){
if(board[i][j] == 0){
if(j == 2){
System.out.print(" ");
}else{
System.out.print(" |");
}
} else if(board[i][j] == 1){
if(j == 2){
System... | [
"public void printBoard()\n\t{\n\t\tplayingField.print(true);\n\t}",
"public void printBoard(){\r\n \t\tSystem.out.print(toString());\r\n \t}",
"public void printBoard() {\n\t\t//TODO\n\t}",
"static void printBoard()\n\t{\n\t\tSystem.out.println(\"|---|---|---|\");\n\t\tSystem.out.println(\"| \" + board[0] + ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method for converting CP to GPS. | @JsonIgnore
public LatLonPoint getLatLonPoint() {
return ZonedUTMPoint.ZonedUTMtoLL(Ellipsoid.WGS_84,
getNorthernly(),
getEasternly(),
getZoneNumber(),
getZoneChar().charAt(0),
null);
} | [
"public void convertToLatLng(){\n this.mPosition = new LatLng(lat,lon);\n }",
"public com.hashmapinc.tempus.WitsmlObjects.v1311.CsLocation to1311CsLocation() {\n com.hashmapinc.tempus.WitsmlObjects.v1311.CsLocation location = new com.hashmapinc.tempus.WitsmlObjects.v1311.CsLocation();\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the builder for the settings used for calls to expandIpCidrRange. | public UnaryCallSettings.Builder<ExpandIpCidrRangeSubnetworkRequest, Operation>
expandIpCidrRangeSettings() {
return getStubSettingsBuilder().expandIpCidrRangeSettings();
} | [
"public static Builder newRackSettings() {\n\t\treturn new Builder();\n\t}",
"public io.grpc.xds.shaded.envoy.api.v2.core.RateLimitSettings.Builder getRateLimitSettingsBuilder() {\n \n onChanged();\n return getRateLimitSettingsFieldBuilder().getBuilder();\n }",
"public POGOProtos.Rpc.ArdkConfi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the code of this e s f code org. | @Override
public java.lang.String getCode() {
return _esfCodeOrg.getCode();
} | [
"@Override\r\n\tpublic java.lang.String getCode() {\r\n\t\treturn _esfTool.getCode();\r\n\t}",
"public String getCode() {\n\t\ttry {\n\t\t\treturn document.getText();\n\t\t} catch(BadLocationException e) {\n\t\t\tErrorDialog.showError(\"Unknown error. Not able to get the code, aborting process.\", e);\n\t\t}\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use Parameters.newBuilder() to construct. | private Parameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private DataprocParameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public ParameterWrapper() {\n\t}",
"public Builder setParametersBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |