query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Determines if the timely and reliable completion condition should be used for a message. This is determined by the existence of the XDIRECTFINALDESTINATIONDELIVERY message disposition option on the original message. | protected boolean isRelAndTimelyRequired(Tx imfMessage)
{
return TxUtil.isReliableAndTimelyRequested(imfMessage);
} | [
"private boolean isRemovableDispositionStatus(DispositionStatus ds) {\n\t\tif (ds.getId() <= 5L) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"protected boolean isMcfDestinationRequired() {\n return true;\n }",
"public final boolean isCompletedNormally()\n/* */ {\n/* 910 */ retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes the minimal dimensions of a picture to be of good PPI at a given image place (we want to print it at the given dimensions in inches) | public static Dimensions getMinSatisfactoryDimensionsInPx(double placeWidthInches,
double placeHeightInches) {
int minWidth = (int) Math.ceil(MINIMAL_SATISFACTORY_PPI * placeWidthInches);
int minHeight = (int) Math.ceil(MINIMAL_SATISFACTORY_P... | [
"Integer getMinPtSize();",
"private Size getOptimalPictureSize(List<Size> sizes, int w, int h) {\n\t \tSize retorn = null;\n\t \tlong minimalValue = 999999;\n\t \tlong screenPixels = w * h;\n\t \tfor (int i = 0; i < sizes.size(); i++){\n \t\t\tlong tmpValue = Math.abs((sizes.get(i).width * sizes.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__BoolOperation__PTypingAssignment_8_0" $ANTLR start "rule__BoolOperation__PTypingAssignment_8_1_1" InternalBSQLLog2Java.g:5838:1: rule__BoolOperation__PTypingAssignment_8_1_1 : ( ruleBParameterTyping ) ; | public final void rule__BoolOperation__PTypingAssignment_8_1_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalBSQLLog2Java.g:5842:1: ( ( ruleBParameterTyping ) )
// InternalBSQLLog2Java.g:5843:2: ( ruleBParameterTyping )
... | [
"public final void rule__BoolOperation__PresAssignment_17_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2SQL.g:3303:1: ( ( ruleBPredicate ) )\n // InternalBSQL2SQL.g:3304:2: ( ruleBPredicate )\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Go to Website as Manager and click Manufacturing module login.loginManager(); | @Test
public void CreateBillsOfMaterials(){
Driver.logger = Driver.extent.startTest("Create Bills of Materials Report");
//Click on Bills of Materials button
WebDriverWait wait = new WebDriverWait(Driver.getDriver(),30);
wait.until(ExpectedConditions.visibilityOf(main.managerbillsO... | [
"public void loginAsEvents_CRM_Manager() {\n userName.sendKeys(ConfigurationReader.getProperty(\"event_srmmanager40\"));\n password.sendKeys(ConfigurationReader.getProperty(\"event_password\"));\n login.click();\n }",
"public void doLogin()\n\t{\n\t app.log(\"Trying to login to ZOHO.COM\")... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the ivaop tipo desc. | public String getIvaopTipoDesc() {
return this.ivaopTipoDesc;
} | [
"public String getTipo() {\n return tipo;\n }",
"public String getTipo() {\r\n return tipo; \r\n }",
"public String getTipo() { return tipo; }",
"public Tipos getTipo()\n\t{\n\t\treturn Tipos.Jogo;\n\t}",
"public String darTipo( )\n {\n return tipo;\n }",
"public String getTipo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/alpha change animation on first time window will get focus | @Override
public void onWindowFocusChanged(boolean hasFocus)
{
super.onWindowFocusChanged(hasFocus);
if(hasFocus)
{
// showContainer();
// playAnimations = false;
}
} | [
"public void onWindowFocusChanged(boolean hasFocus) {\n ImageView imgView = (ImageView) findViewById(R.id.animationImage);\n imgView.setVisibility(ImageView.VISIBLE);\n imgView.setBackgroundResource(R.anim.simple_animation);\n AnimationDrawable frameAnimation = (AnimationDrawable) imgVie... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Loads or reloads a plugin in from of a certain .jar or .zip archive and looks in the MANIFEST/MANIFEST.MFfile, lying inside the archive, for a "PluginClass:"entry to know which class in the archive will be the starting point. Every plugin is loaded in a separate ClassLoader, which allows Plugins to be unloaded from and... | public void reloadPlugin(File file)
{
String pluginClass;
Attributes attributes = null;
try
{
// Extract the entry-point of the plug-in which is defined by the 'Plugin-Class'-field in the
// MANIFEST.MF-file
JarFile jarFile = new JarFile(fi... | [
"public void loadPlugins()\n {\n File dir = new File(\"plugins\");\n dir.mkdir();\n\n for (File file : dir.listFiles(new PatternFilenameFilter(\".*\\\\.jar\")))\n {\n try\n {\n JarFile jar = new JarFile(file);\n ZipEntry entry = jar.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
to enable export to an application | public static void main(String args[])
{
PApplet.main(new String[] { soundmachinecontroller.BlockSequencerController.class.getName() });
} | [
"public void onExportPressed() {\n // TODO: Export project\n }",
"protected abstract void onExport();",
"@Override\r\n\tpublic void export() {\n\r\n\t}",
"public static void export() {\n if (canView()) {\n List data = JPA.em().createQuery(String.format(\"from %s o\", controllerTo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets active games number text field value. | public void setActiveGamesNumber(Integer activeGamesNumber)
{
synchronized (activeGamesTextField)
{
activeGamesTextField.setText(activeGamesNumber.toString());
}
} | [
"public void setNumber()\n {\n Stage changeNameStage = new Stage();\n\n TextField changeNumberField = new TextField();\n changeNumberField.setPromptText(\"change number\");\n changeNumberField.setOnKeyPressed(event -> {\n if (event.getCode()== KeyCode.ENTER) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Return type fixed from 'java.lang.Object' to match base method | @Override // javax.inject.Provider
public SchedulersFactory3 get() {
return (SchedulersFactory3) Preconditions.checkNotNullFromComponent(this.a.schedulersFactory3());
} | [
"@Override\r\n\tpublic Class<Object> returnedClass() {\r\n\t\treturn Object.class;\r\n\t}",
"public abstract T mo14164b(Object obj);",
"public Object object() { return obj; }",
"@Override public TypeObj all_type() { return _funret._obj; }",
"Object mo6179a(Object obj);",
"public T object() {\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
uploadFilepath = UriUtils.getImageAbsolutePath(this, uri); | public void startPhotoZoom(Uri uri) {
Intent intent = new Intent("com.android.camera.action.CROP");
intent.setDataAndType(uri, IMAGE_UNSPECIFIED);
intent.putExtra("crop", "true");
// aspectX aspectY 是宽高的比例
intent.putExtra("aspectX", 1);
intent.putExtra("aspectY", 1);
// outputX outputY 是裁剪图片宽高
intent.pu... | [
"String getUploadUri();",
"public void getfileuri()\n {\n image_name=\"books.jpg\";\n file=new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES) + File.separator +image_name);\n file_uri=Uri.fromFile(file);\n }",
"private String getAbsolutePath(Uri ur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get getCashChargeList excel file | File getCashChargeListDetailExcel(CashSub sub); | [
"public static List<CanyinNocert> readXlsx(String path) throws Exception {\n\t\t// 记录正在读取的行号\n\n\t\tSystem.out.println(PROCESSING + path);\n\t\tInputStream is = new FileInputStream(path);\n\t\tXSSFWorkbook xssfWorkbook = new XSSFWorkbook(is);\n\t\tCanyinNocert canyin = null;\n\t\tList<CanyinNocert> list = new Array... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a + b | public JSONObject onCalculate(JSONObject input) {
try {
JSONObject o = new JSONObject();
long a = input.getLong("a");
long b = input.getLong("b");
o.put("sum", a + b);
return o;
} catch (JSONException e) {
Log.e(TAG, e.toString());
... | [
"public int add (int a,int b) {\n return a + b;\n\n }",
"public int add (int a, int b){\n\t\treturn a + b;\n\t\t\n\n\t\n\n}",
"@Override\r\n\tpublic int add(int a, int b) {\r\n\t\treturn a + b;\r\n\t}",
"public static int Addition(int a, int b) {\n return a+b;\n }",
"int add(int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Executes the create request. | AutoScaleVCore create(); | [
"@Override\r\n\tprotected void doCreate(HttpServletRequest request, HttpServletResponse response) {\n\r\n\t}",
"public boolean create() throws Exception\r\n {\r\n if (!validateBody()) {\r\n return false;\r\n }\r\n \r\n String urlPath = getUrl();\r\n RetRpc response... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a true/false based on the element (checkboxes, radio buttons) being checked | public boolean isElementChecked(WebDriver driver,String locatorKey, String type) {
WebElement checkbox = getElement(driver, locatorKey, type);
return checkbox.isSelected();
} | [
"public abstract boolean isChecked(WebElement element);",
"protected Boolean isChecked(){\n\t\tBoolean isChecked = null;\n\t\ttry{\n\t\t\tisChecked = getElement().isSelected();\n\t\t}catch(Exception e){\n\t\t\treportResult(\"isChecked\", \"Is checked\" + getBy(),\"Failed\", false, e);\n\t\t}\n\t\treturn isChecked... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Des:This method generate a report indicating the user corresponding to each shift, and if he was attended or not. | public String generateReport() {
String wasAttended="";
String wasPresent="";
String report=" ----------------------------------------------\n SHIFTS REPORT\n ----------------------------------------------\n\n";
report+=" Shift ID User Attended... | [
"public String generateAccountReport();",
"public void setShifts(String Shifts){\n if(Joined){\n System.out.println(\" The shift is already hired\");\n }\n else{\n this.Shifts=Shifts;\n }\n}",
"private void createExamAttendances() {\n\n\t\tList<ExamGrade> grades = Arrays.a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indicates the AFD values that MediaLive will write into the video encode. If you do not know what AFD signaling is, or if your downstream system has not given you guidance, choose AUTO. AUTO: MediaLive will try to preserve the input AFD value (in cases where multiple AFD values are valid). FIXED: MediaLive will use the... | public String getAfdSignaling() {
return this.afdSignaling;
} | [
"public void setFixedAfd(Integer fixedAfd) {\n this.fixedAfd = fixedAfd;\n }",
"public double getAf1() {\n return af1;\n }",
"public final int mo23172aA(float f) {\n this.kDp.f16164JN = f;\n return 0;\n }",
"public void mo27568ai(float f) {\n this.cvt = f;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
fill questions for DeleteAction. | void fillLanguageDelete(); | [
"@Override\n\tpublic void delete(Question t) {\n\t\t\n\t}",
"public void deleteQuestionButtonAction(ActionEvent ae) {\n\t\tSystem.out.println(\"question is deleted\");\n\t\tQuestionGUI q = (QuestionGUI) table.getSelectionModel().getSelectedItem();\n\t\tif (q == null) {\n\t\t\tMyErrorMessage.show(\"Select a questi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Visits each element in the given IData document, calls the given service to convert the element, and creates a new IData document with the resulting elements. | public static IData map(IData input, String service, IData pipeline, String keyInput, String keyOutput, String valueInput, String valueOutput, Class valueClass, boolean recurse) throws ServiceException {
IData output;
if (input != null && service != null) {
IDataCursor ic = input.getCursor(... | [
"@Service\r\npublic interface UCDTransformerService {\r\n\t\r\n\t \r\n /**\r\n * This method converts the client specific text file or properties file into intermediate XML on basis on mapping file specified to the client\r\n * @param mappingFile\r\n * @param dataInTxtFormat\r\n * @return Inte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the image as an array. The array has 2 dimensions (x, y). | public byte[][] getImageAsByteArray(int component)
{
if (component < 0 || component > 4) return null;
Dimension d = this.getSize();
byte a[][] = new byte[d.width][d.height];
int bitoff[] = new int[] {16, 8, 0, 24};
int bo = bitoff[component];
for (int i=0; i<d.width; i++)
{
for (int j=0; j<d.height; j... | [
"public int[] getPixel();",
"public Color[][] getPixelArray() {\n Color[][] pixel = new Color[image.getWidth()][image.getHeight()]; \n for(int x=0; x < image.getWidth(); x++){\n for(int y=0; y < image.getHeight(); y++) {\n pixel[x][y] = new java.awt.Color(image.getRGB(x,y)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to get actual task display from task specific displayer and to show it to the user. | public void doGet (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
String tasktype = null;
String hidden = null;
String page = null;
String taskbody = null;
String[] defaults = null;
StringBuffer output = new StringBuffer(... | [
"java.lang.String getDisplaymanager();",
"public String showTask() {\n return String.format(\"[%s] %s\", getStatusIcon(), this.name);\n }",
"public DisplayView getDisplay() {\n return display;\n }",
"public String getDisplay()\n\t{\n\t\treturn display;\n\t}",
"private static Task getTask... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
adding to and updating blueprint hashmap | public void addBlueprint(int i){
blueprints.put(i,1);
} | [
"com.guidewire.datamodel.ConstantMapDocument.ConstantMap addNewConstantMap();",
"com.guidewire.datamodel.TypelistMapDocument.TypelistMap addNewTypelistMap();",
"public void addToHashMap(Reference toBeAdded){ //Takes HM and class to be added to the HM.\r\n for(String currKey: toBeAdded.getTitleKeyWords()){... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'maxTemperatures' field has been set | public boolean hasMaxTemperatures() {
return fieldSetFlags()[2];
} | [
"public void setmaxTempSet(double maxTempSet) {\n\t\tLeftLegSensor.maxTempSet = maxTempSet;\n\t}",
"public void setMaxTemperature(Double maxTemperature) {\n this.maxTemperature = maxTemperature;\n }",
"public boolean hasTemperature() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the tree options. | TreeOptions getTreeOptions(); | [
"private Options getAllOptions() {\n\n Options options = new Options();\n options.addOption(OPT_FICHIER).addOption(OPT_PROJET);\n return options;\n }",
"public List<Options> getChildOptions();",
"public abstract Options getOptions();",
"public Vector<Option> getOptions() {\n\t\treturn ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
List populateUnderProcessPieChart = new ArrayList(); ActivityUnderProcessPieData s1 = new ActivityUnderProcessPieData(); | private int populateUnderProcessPieChart() {
int underPieData = 0;
DBConnection dbConnection = new DBConnection();
Statement st = null;
ResultSet rs = null;
try {
Connection connection = (Connection) dbConnection.dbConnection();
st = connection.createStatement();
String query = "SELECT (SE... | [
"@SuppressLint(\"NewApi\")\n\tprivate void openChart(){\n \n \n NewPieChartService pieTask = new NewPieChartService();\n pieTask.execute();\n try {\n\t\t\tThread.sleep(1500);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public bg mo5118a() {
return null;
} | [
"public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }",
"interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }",
"public interface ans {\n /* renamed from: a */\n void mo1174a();\n}",
"public interface C24712af {\n /* renamed from... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function uploads the NewTaskInfo data to the webserver | public boolean postNewTask(TaskInfo task) {
String lineEnd = "\r\n";
String twoHyphens = "--";
String boundary = "*****";
String Tag = "fSnd";
try {
URL url = new URL(URL_POSTNEWTASK);
HttpURLConnection http = (HttpURLConnection) url.openConnection();
... | [
"public void uploadToServer() {\n\t\t\n\n\t}",
"private void Upload_Stoprealtime() {\n\t\t\n\t}",
"@SuppressLint(\"MissingPermission\")\n private void save() throws InterruptedException, ApiException, IOException {\n\n findViewById(R.id.loadingPanelAdd).setVisibility(View.VISIBLE);\n\n // Add l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the "EnvioLibro" element | public cl.sii.siiDte.libroguia.LibroGuiaDocument.LibroGuia.EnvioLibro getEnvioLibro()
{
synchronized (monitor())
{
check_orphaned();
cl.sii.siiDte.libroguia.LibroGuiaDocument.LibroGuia.EnvioLibro target = null;
target = (cl.sii.siiDte... | [
"public String getIDLibroPoliza () throws Exception\n\t {//Este m?todo, regresa libro de la p?liza\n\t\t return atrstrIDLibro;\n\t }",
"public String getTituloLibro() {\n return TituloLibro;\n }",
"public int getIdLibro() {\n return idLibro;\r\n }",
"public String getAutoresLibro() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When conversion is needed, remove all old stats | @Override
public void convert(CompoundVersionDetails source, CompoundVersionDetails target) {
} | [
"public void clearStats() {\n _storedStats = new ArrayList<Word>();\n _failedList = new ArrayList<Word>();\n }",
"public void resetStats() {\n for (Stat st:mToBeSaved) {\n st.reset();\n }\n }",
"void refillStats();",
"private void cleanUpOldData() {\n\t\t\r\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
User must be trimmed of spaces backslash character is the escape character or its a path separator on windows. Forward slash is the path separator on pretty much everything else colon is used to separate the namespace from the name. dGroup = dGroup.replace(":", "_"); dGroup = dGroup.replace("/", "_"); dGroup = dGroup.r... | private static String normalizeUserName( String user )
{
user = user.trim();
user = user.replace(".", "");
//user = user.replaceAll("\\W", "_");
//user = user.replace("___", "_");
//user = user.replace("__", "_");
//remove any trailing _
//user = user.replaceAll("_$", "");
... | [
"public static String cleanNameSpaceString(String nsString) {\n\tCIMObjectPath op = new CIMObjectPath(\"\", nsString);\n\tString nSpace = op.getNameSpace();\n\t// if nameSpace starts with a '//' or a '\\\\', remove it\n\tif (nSpace.startsWith(\"//\") || nSpace.startsWith(\"\\\\\\\\\")) {\n\t nSpace = nSpace.subs... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The simplest hash function using table rank and modulo operator | private int hashFunction(int key){
return key % tableSize;
} | [
"abstract int hashInt(int key);",
"private int hash(Object key) {\n\t\treturn Math.abs(key.hashCode()) % table.length;\n\t}",
"private int getHash(String key){\n\t\treturn Math.abs(key.hashCode()+key.length())%tableSize;\n\t}",
"private int hash(String key) {\r\n \t\tif (key == null) {\r\n\t\t\tthrow new Null... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
put ball back into the middle | public int reset() {
rx = 0.0;
ry = 0.0;
//assign a random speed
vx = StdRandom.uniform(-0.01, 0.01);
vy = StdRandom.uniform(-0.01, 0.01);
return 1;
} | [
"private void moveBall() {\n\t\tball.x += ball.xspeed;\n\t\tball.y += ball.yspeed;\n\n\t\t//bounce off bottom of screen\t\t\n\t\tif ((ball.y + ball.diameter) > gc.getDrawHeight()) {\n\t\t\tball.yspeed *=-1;\n\t\t\tlives--;\n\t\t\tball.colour = new Color(Color.HSBtoRGB((float)Math.random(), 1.0f, 1.0f));\n\t\t}\n\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo che permette di visualizzare i dettagli di un dato prodotto | public Prodotto visualizzaDettagliProdotto(String isbn) throws SQLException
{
Statement st=null;
ResultSet ris=null;
String query;
Connection conn=null;
try
{
conn = DBConnectionPool.getConnection();
query="SELECT * FROM "+DBNames.TABLE_PRODOTTO+
" WHERE "+DBNames.ATT... | [
"void visualizarDatos() throws IOException;",
"private static void visualizzaProbabilitaDistanze() {\r\n\t\tif(Modello.isNull())\r\n\t\t\tSystem.out.println(MSG_NO_MODELLO);\r\n\t\telse \r\n\t\t{\t\t\t\t\t\t\t\r\n\t\t\tif(TestSuite.isNull())\r\n\t\t\t\tSystem.out.println(MSG_NO_TS);\r\n\t\t\telse\r\n\t\t\t{\t\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Map<String, Object> grantCps(ErrorInfo error, int client, Object... obj) {
return null;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
PreConditions: 1. Create OTT Page 2. Create 2 Shelf (Shelf 1/Shelf 2) 3. add test shelves to test OTT page Test case: Step 1: go to Roku CMS as Editor Verify: Admin menu is appeared Step2: go to /admin/ott/pages Verify: "Pages" menu is appeared Step 3: click on "Edit" next to test page's label Verify: "Edit [pagename]"... | @Test(groups = {"roku_page", "regression"}, dataProviderClass = StaticBrandsProvider.class, dataProvider = "brandDataProvider", enabled = false)
public void checkThatEditorCouldChangeShelfOrder(final String brand) {
Utilities.logInfoMessage("Check that Admin is able to add change shelves' order on OTT page"... | [
"@Test(enabled = false, description = \"SOC-1416 P1R1 Approvals - Phase 1 - Actual Segment Approval Flow and Basic Dimensions - Findlaw Segment\")\r\n public void soc_1416() {\r\n\t\t\tapplicationLogin();\r\n\t\t\taccountpage = new Accountpage(driver);\r\n\t\t\taccountpage.searchExistAccount(25);\r\n\t\t\tcontac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
IS THIS NEEDED? Should train call a separate forward and backward method? what customization could that add? | public void forward() {
System.out.println("this is the beginning of forward (NN)");
for (int i=0; i<this.input.getSampleSize(); i++) { //repeats for every pair/set of input variables
this.next.forward(this.input.getInputSet(i)); //calls the forward method within hiddenLayer on one pair/set of input va... | [
"void backprop()\n\t{\n\t\tforward();\n\t\tcalculateError();\n\t\tupdateWeights();\n\n\t}",
"public void forward() {\n\t\t\n\t}",
"void fastforward();",
"public void setForwardFlag(){\n forwardFlag = true;\n }",
"@Override\n protected void train(boolean x, boolean y){\n return;\n }",
"@Ov... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column admin_log.spend_time | public Date getSpendTime() {
return spendTime;
} | [
"public String getTimeMillis()\t{\n\t\tsuspend();\n\t\tresume();\n\t\treturn new Long(timeSum).toString();\n\t}",
"String getTotalTimeFieldValue();",
"public String getCurrentSqlTime() {\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:MM\", Locale.US);\n Date date = new Date();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the context menue | private void hookContextMenu() {
MenuManager menuManager = new MenuManager("#PersonalPopupMenu");
menuManager.setRemoveAllWhenShown(true);
menuManager.addMenuListener(new IMenuListener() {
public void menuAboutToShow(IMenuManager manager) {
fillContextMenu(manager);
}
});
Menu menu = menuM... | [
"private void createContextMenu() {\n\t\tMenuManager menuManager = new MenuManager();\n\t\tmenuManager.setRemoveAllWhenShown(true);\n\t\tmenuManager.addMenuListener(new IMenuListener() {\n\t\t\t@Override\n\t\t\tpublic void menuAboutToShow(IMenuManager manager) {\n\t\t\t\tmanager.add(new GroupMarker(\n\t\t\t\t\t\tIW... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Query filter bool is_group_message = 1; | @java.lang.Override
public boolean getIsGroupMessage() {
return isGroupMessage_;
} | [
"private RealmList<MessageModel> FilterList(String query) {\n Realm realm = WhatsCloneApplication.getRealmDatabaseInstance(AGApplication.getInstance());\n RealmList<MessageModel> messagesModelList = new RealmList<>();\n RealmResults<MessageModel> messagesModels = null;\n if (isGroup) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the integer value of this enum value, as defined in the Thrift IDL. | public int getValue() {
return value;
} | [
"public int intValue() {\r\n return (int) getValue();\r\n }",
"public int getIntValue() {\n if (valueCase_ == 2) {\n return (java.lang.Integer) value_;\n }\n return 0;\n }",
"public int toInt() {\n return mValue;\n }",
"public int intValue() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find AuditLablog by networkAccessPointID | public List<AuditLablog> findByNetworkAccessPointID(String networkAccessPointID); | [
"EcsSnatchLog selectByPrimaryKey(Integer log_id);",
"public de.fraunhofer.fokus.movepla.model.Logging fetchByPrimaryKey(\n long loggingId)\n throws com.liferay.portal.kernel.exception.SystemException;",
"@ApiMethod(name = \"getMemberLogs\")\n public MemberLogs getMemberLogs(@Named(\"id\") Long ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void save(AccountModel account) {
accountDao.save(account);
} | [
"@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"
]
]
}
} |
set super sampling's algorithm kind | public BasicRayTracer setSamplingAlgo(String samplingAlgo) {
if(samplingAlgo!="RANDOM" && samplingAlgo!="DISTRIBUTED")
throw new IllegalArgumentException("you must select one of the two allowed algorithems");
BasicRayTracer.samplingAlgo = samplingAlgo;
return this;
} | [
"private void _updateSamplingChoices()\n\t{\n\t\t_w.spectroscopy_sampling.setChoices( SpInstMichelle.SAMPLINGS ) ;\n\t\t_w.spectroscopy_sampling.setValue( _instMichelle.getPixelSampling() ) ;\n\t}",
"@Override\n\tpublic void performSpeciation() {\n\t\t\n\t}",
"public interface SelectionScheme\r\n{\r\n /**\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Type__Group__1__Impl" $ANTLR start "rule__Property__Group__0" InternalDependency.g:752:1: rule__Property__Group__0 : rule__Property__Group__0__Impl rule__Property__Group__1 ; | public final void rule__Property__Group__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDependency.g:756:1: ( rule__Property__Group__0__Impl rule__Property__Group__1 )
// InternalDependency.g:757:2: rule__Property__Group__0__Impl ... | [
"public final void rule__Property__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalThingML.g:4473:1: ( rule__Property__Group__0__Impl rule__Property__Group__1 )\n // InternalThingML.g:4474:2: rule__Property__Group... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use EndStepEvent.newBuilder() to construct. | private EndStepEvent(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
} | [
"public ActivityEndEvent() {\r\n super();\r\n }",
"HistoryEvent createProcessInstanceEndEvt(DelegateExecution execution);",
"public java.lang.String getEventEnd() {\n java.lang.Object ref = eventEnd_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.prot... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the dataset metadata for the specifeid dataset id (asynchronously) | public com.squareup.okhttp.Call getDatasetByIdAsync(String datasetKey, final ApiCallback<Dataset> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
if (callback != null) {
... | [
"DataSetMetadata getDataSetMetadata(DataSetDef def) throws Exception;",
"public java.lang.String getDatasetId()\n {\n return this._datasetId;\n }",
"public String getDataset_id() {\n return dataset_id;\n }",
"DatasetInformation registerMainDataset(int datasetId);",
"Lazy<List<MetadataAsDictio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a grade to the list of grades in this result. | public void addGrade(Grade.gradeType type, String name, double mark) {
Grade grade = new Grade(type,name,mark);
allGrades.add(grade);
} | [
"public void addGrade(int grade){\n grades.add(grade);\n }",
"public void addGrade(int grade){\n grades.add(grade);\n// System.out.println(\"this is your new arrayList: \" + grades);\n }",
"public abstract void addGrade(TestGraded g);",
"public void addAssignmentGrade(String id, double ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for finstartday. The new value is set only if compareTo() says it is different, or if one of either the new value or the current value is null. In case the new value is different, it is set and the field is marked as 'modified'. | public void setFinstartday(Integer newVal) {
if ((newVal != null && this.finstartday != null && (newVal.compareTo(this.finstartday) == 0)) ||
(newVal == null && this.finstartday == null && finstartday_is_initialized)) {
return;
}
this.finstartday = newVal;
fin... | [
"public void setTakedate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.takedate != null && (newVal.compareTo(this.takedate) == 0)) || \n (newVal == null && this.takedate == null && takedate_is_initialized)) {\n return; \n } \n this.takedate = newVal; \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Makes sure that each note is in the proper register for its voice Future: rather than having octave leaps, find the closest diatonic note (making sure not to omit any required notes) | public void putInProperOctaves () {
for (int i = 0; i != this.chordCount; ++i) {
for (int j = 0; j != 4; ++j) {
if (j == 0) {
while (this.chords[i].notes[j].val < sopLower)
this.chords[i].notes[j].val += 12;
while (this.chords[i].notes[j].val > sopUpper)
this.chords[i].notes[j].val -= 12;... | [
"private static String generateNextNote(String currentNote) {\n double rnd = Math.random();\n\n // Frequency table mapping the probability of any given note following after the current note\n if (currentNote.equals(inputOctave + inputScale.get(0))) {\n if (rnd <= 0.25)\n c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A description of the MAD phasing method used to phase this structure. Note that this is not the computer program used, which is described in the SOFTWARE category, but rather the method itself. This data item should be used to describe significant methodological options used within the MAD phasing program. | public StrColumn getMethod() {
return (StrColumn) (isText ? textFields.computeIfAbsent("method", StrColumn::new) :
getBinaryColumn("method"));
} | [
"@Override\n public String description() {\n return \"Calcualte Elapsed Time in POC_PRO log line\";\n }",
"public String getParetoSelectedInfo(){\r\n\t\tString s = \"\";\r\n\t\tif(paretoTraffic.getRateOnPeriod()!=0){\r\n\t\t\ts = \" Distribution=\" + distribution + \r\n\t\t\t\t\" Target=\" + paretoTr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the parameter for the selection. | public ChartParameter getParameter()
{
return parameter;
} | [
"public Integer getParameter() {\n return this.parameter;\n }",
"@java.lang.Override\n public double getParameter() {\n return parameter_;\n }",
"public String getSelection();",
"@Override\n public String getParameterValue(String name) {\n return parameters.get(name);\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add issue id into book | public void addBookIssue(Issue issue, int bookId){
try{
Connection conn = getConnection();
Statement stmt = conn.createStatement();
// insert format
String update = "UPDATE books SET issue = ?, `current holder` = ? where `id` = ?";
PreparedStatement pr... | [
"public void createBookIdentifier() {\n System.out.println(\"In create book format\");\n\n int replace = -1;\n for (int cntr = 0; cntr < newBookIdentifierList.size(); cntr++) {\n String identifierType = newBookIdentifierList.get(cntr).getIdentifierType().getType();\n if (i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This method decodes a file, and returns it a Bitmap representation | public static Bitmap decodeSampledBitmapFromFile(File file,
int reqWidth, int reqHeight) {
//Decodes File with inJustDecodeBounds=true to check dimensions.
final BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustD... | [
"private Bitmap decodeFile(File f) {\r\n\t\ttry {\r\n\r\n\t\t\t// decode image size\r\n\t\t\tBitmapFactory.Options o = new BitmapFactory.Options();\r\n\t\t\to.inJustDecodeBounds = true;\r\n\t\t\tBitmapFactory.decodeStream(new FileInputStream(f), null, o);\r\n\r\n\t\t\t// Find the correct scale value. It should be t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
After completing background task Dismiss the progress dialog | protected void onPostExecute(String file_url) {
showProgress(false);
FillWithData(selectedCategory.getCatid());
} | [
"@Override\n public void onFinish() {\n dismissProgressDialog();\n }",
"protected void onSwPostExecute() {\n\t\tif (mProgressBar != null)\n\t\t\tmProgressBar.stop();\n\t}",
"@Override\r\n public void run() {\n progressDialog.dismiss(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method gets the y location of Pacman | public int getYLoc(){
return (int) (_circ.getCenterY() - Constants.HALF_SQR);
} | [
"public int getY() {\n\t\treturn p.y;\n\t}",
"public double posY()\r\n {\r\n return y;\r\n }",
"public final int getY() {\n return yLoc;\n }",
"public double getOriginY();",
"public int getY() { return y ; }",
"public int getY() { \r\n\t\treturn position.y; \r\n\t}",
"public int g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public IColumns createColumns() {
return null;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For Android public Object processRequest(Map input, Map httpEnv); | public Object processRequest(String input, Map<String, String> httpEnv); | [
"RequestProcessingActions processRequest(ModifiableHttpRequest request);",
"protected HashMap packRequest(HttpRequest request) {\n\n if (!request.getMethod().equals(GET)) {\n QueryStringDecoder decoder = new QueryStringDecoder(\"/?\" + request.getContent().toString(Charset.forName(\"UTF-8\")) + ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets the qualified iliname of the class that contains the base definition of this property. | public void setBaseDefInClass(String baseDefInClass) {
this.baseDefInClass = baseDefInClass;
} | [
"public void setCodeNameBaseProperty(String s) {\n codeNameBaseProperty = s;\n }",
"public void setSuperClass(BValuable name);",
"public abstract String getDefaultSuperClassFQN();",
"public void setBaseName(String baseName)\n/* */ {\n/* 494 */ this.baseName = baseName;\n/* */ }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
functionality that removes the provided element. | private boolean remove(E element) {
if (next != null) {
if (next.data.equals(element)) {
next = next.next;
size--;
return true;
} else {
next.remove(element);
}
}
return false;
} | [
"@Override\r\n\tpublic void removeElement(Object element) {\n\t\t\r\n\t}",
"public Object remove(Object anElement);",
"E remove (E element);",
"public void removeElement(Node element);",
"public void remove(E elem);",
"@Override\r\n\tpublic void remove(E element) {\n\r\n\t}",
"void removeElement(int ele... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onNothingSelected(AdapterView<?> arg0) {
} | [
"@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"
]
]
}
} |
starts the camera app and provides a pre defined file to store the pictuure | public void dispatchTakePictureIntent() {
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
// Ensure that there's a camera activity to handle the intent
if (takePictureIntent.resolveActivity(getPackageManager()) != null) {
// Create the File where the photo sho... | [
"private void takePic() {\n m_File = new File(getActivity().getExternalFilesDir(null), UUID.randomUUID() +\".jpg\");\n //TODO MAY BE A BUG\n Uri imageUri = FileProvider.getUriForFile(getActivity(),\n \"com.hod.finalapp.provider\", //(use your app signature + \".provider\" )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Packet send, must be confirmed writeC(0xf7); writeD(0); // clanhall id writeC(0); // FUNC_RESTORE_HP (Fireplace) writeC(0); // FUNC_RESTORE_MP (Carpet) writeC(0); // FUNC_RESTORE_MP (Statue) writeC(0); // FUNC_RESTORE_EXP (Chandelier) writeC(0); // FUNC_TELEPORT (Mirror) writeC(0); // Crytal writeC(0); // Curtain wri... | @Override
protected final void writeImpl()
{
writeC(0xf7);
writeD(clanHall.getId()); // clanhall id
// FUNC_RESTORE_HP
function = clanHall.getFunction(ClanHall.FUNC_RESTORE_HP);
if (function == null || function.getLvl() == 0)
{
writeC(0);
}
else if (clanHall.getGrade() == 0 && function.getLvl() < 2... | [
"protected void pxySendPacketToServer(ef pkt) {}",
"public static void sendPacketToServer(ef pkt)\r\n/* 23: */ {\r\n/* 24:30 */ instance.pxySendPacketToServer(pkt);\r\n/* 25: */ }",
"public void writePacketData(PacketBuffer data) throws IOException {\n/* 49 */ data.writeString(field_149343_a);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Attempts to load the class and delegates to TCCL if class is not found. Note: The approach is used as a last resort for environments like OSGi. | public static <T> Class<?> loadClass(Class<T> clazz, String className)
throws ClassNotFoundException {
try {
return clazz.getClassLoader().loadClass(className);
} catch (ClassNotFoundException ex) {
if (Thread.currentThread().getContextClassLoader() != null) {
return Thread.currentThre... | [
"@Override\n public Class<?> loadClass(String name) throws ClassNotFoundException {\n if (name == null) throw new NullPointerException(\"className cannot be null\");\n\n try {\n // Attempt to find class in ExtClassLoader (super-system/java.lang/etc)\n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Raw height and width of image | public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {
final int height = options.outHeight;
final int width = options.outWidth;
int inSampleSize = 1;
if (height > reqHeight || width > reqWidth) {
final int halfHeight = height ... | [
"int getWidth() { return this.img.getWidth(); }",
"Integer getImageHeight();",
"int getHeight() { return this.img.getHeight(); }",
"public String getImageWidth();",
"public double getImageSize() {\n return myRectangleDimensions.getHeight();\n }",
"public int getImageWidth() {\n return i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle action Foo in the provided background thread with the provided parameters. | private void handleActionFoo(String param1, String param2) {
// TODO: Handle action Foo
throw new UnsupportedOperationException("Not yet implemented");
} | [
"public void run() {\r\n\t\t// TODO Need exception handling\r\n\t\ttry {\r\n\t\t\tObject obj = target.internalInvoke(actionName, params, signature);\r\n\t\t\ttarget.notifyAsynchRequestComplete(new StringBuilder(actionName).append(renderParams(params)).toString(), obj, invocationIdentifier);\r\n\t\t} catch (Exceptio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the setpoint of the PID motor on the elevator TODO units of measure (e.g. feet/inches/etc.) | public void setSetPoint(double setpoint){
elevMotor.setSetpoint(setpoint);
} | [
"public void setSetpoint(double d_point) {\n\t\tm_PIDController.setSetpoint(d_point);\n\t}",
"public void setSetpoints(double val) {\n\t\tloaderPID.setSetpoint(val);\n\t}",
"public SetPivotPosition(double setpoint) {\n\t\trequires(Robot.shooterPivot);\n\t\t// Use requires() here to declare subsystem dependencie... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
t.foldplayer(3); t.view(); System.out.println(p.length+""+nofpm); rotate2(); | public void actionPerformed(ActionEvent arg0) {
call();
} | [
"private void preview (){\n // System.out.println(\"boo\");\n for (int r = 0; r < data.length; r ++){\n for (int c = 0; c < data [0].length; c ++){\n data [r] [c] = nmoves(r, c);\n // System.out.println(data [r] [c]);\n}\n}\n}",
"public void func_70071_h_()\n/* */ {\n/* 12... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column cliente.id_cliente | public void setIdCliente(Integer idCliente) {
this.idCliente = idCliente;
} | [
"public void setIdcliente2(int value) {\n this.idcliente2 = value;\n }",
"public void setClienteId(java.lang.Long value) {\n\t\tsetValue(test.generated.public_.tables.Pedido.PEDIDO.CLIENTE_ID, value);\n\t}",
"public int getIdCliente() {\n return idCliente;\r\n }",
"public int getIdCliente(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of toCalendar method, of class DateTimePattern. | @Test
public void testToCalendar_DATE_PATTERN_8() {
String source = "12.12.17";
Calendar out = Calendar.getInstance();
boolean result = DATE_PATTERN.toCalendar(source, out);
assertThat(result, is(false));
} | [
"@Test\r\n public void testConverter_Calendar() {\r\n assertNull(\"Falha na conversao de Calendar nulo\", DateUtil.converter((Calendar) null));\r\n\r\n Calendar expResult = new GregorianCalendar(2016, Calendar.NOVEMBER, 27, 22, 17, 00);\r\n java.sql.Date result = DateUtil.converter(expResult... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add listener so we update our list page images | private void addPagerListener() {
getCustomPager().addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
//do we need to do anything here
}
... | [
"@Override\n public void onPageSelected(int arg0) {\n for (int i = 0; i < listImage.size(); i++) {\n if (i == arg0 % strimage.length) {\n listImage.get(i).setImageResource(R.drawable.wxlbyd_red);\n } else {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__TreeNode__Group_1__1" $ANTLR start "rule__TreeNode__Group_1__1__Impl" InternalSpecDSL.g:2647:1: rule__TreeNode__Group_1__1__Impl : ( ':' ) ; | public final void rule__TreeNode__Group_1__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalSpecDSL.g:2651:1: ( ( ':' ) )
// InternalSpecDSL.g:2652:1: ( ':' )
{
// InternalSpecDSL.g:2652:1: ( ':' )
... | [
"public final void rule__TerminalExpression__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalArgument.g:4492:1: ( rule__TerminalExpression__Group_0__1__Impl )\n // InternalArgument.g:4493:2: rule__TerminalExpr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Asks for a integer and returns to the caller. | public static int getInteger (String prompt){
System.out.println(prompt);
int value = scn.nextInt();
/*Fix the problem that the terminal's cursor does not move to the next line after read input*/
scn.nextLine();
return value;
} | [
"default int askInt() throws IOException {\n String line = askLine();\n int result = 0;\n try {\n result = Integer.parseInt(line);\n } catch (Exception ex) {\n throw new InvalidIntegerException(\n String.format(\"Can't parse number from this line:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
String utilP; String utilPub = "kk"; String utilPro = null; System.out.println("" + utilP); | protected void utilProtected(){
} | [
"public static void main(String[] args) {\nString nptel,space,java;\n\n//Initialize the variables with proper input\nnptel=new String(\"NPTEL\");\nspace=new String(\" \");\njava=new String(\"JAVA\");\n\n System.out.print(nptel+space+java);\n }",
"public static void main(String[] args){\n System.out.pri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: Jh | public final C36398c mo41557Jh() {
AppMethodBeat.m2504i(116241);
C36398c c36398c = (C36398c) this.efp.pop();
AppMethodBeat.m2505o(116241);
return c36398c;
} | [
"void mo3357h();",
"@Override\r\n\tpublic void jugar() {\n\t\t\r\n\t}",
"public void mo28221a() {\n }",
"public void mo9609a() {\n }",
"public void mo26342c() {\n }",
"void mo3359j();",
"private static void EX5() {\n\t\t\r\n\t}",
"void mo62419c();",
"@Override\n\tpublic ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
jedan Dao objekat sa kojim komuniciramo. Ukoliko imamo vise tabela potrebno je napraviti Dao objekat za svaku tabelu | public Dao<Nekretnine, Integer> getNekretnineDao() throws SQLException {
if (nekretnineDao == null) {
nekretnineDao = getDao(Nekretnine.class);
}
return nekretnineDao;
} | [
"public void llenadoDeTablas() {\n\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"Codigo\");\n modelo.addColumn(\"Tipo Transaccion\");\n modelo.addColumn(\"Efecto Transaccio\");\n\n\n \n TipoTransaccionDAO TipoTDAO = new TipoTransacci... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
diagonal transpositions. works in upper left corner but can flip/mirror to orient for other diagonals. UL: no transformation needed. UR: horizontal flip LL: vertical flip LR: vertical then horizontal flip | @Override
public String firstLayer(String pt) {
String flipped = pt;
int whichFlip = rand.nextInt(4); // [0,3]
if (whichFlip == 1)
flipped = CipherTransformations.flipHorizontal(pt, 20, 17);
else if (whichFlip == 2)
flipped = CipherTransformations.flipVertical(pt, 20, 17);
else if (whichFlip == 3) {
... | [
"public void mirrorDiagonal()\r\n {\r\n Pixel[][] pixels = this.getPixels2D();\r\n Pixel topPixel = null;\r\n Pixel botPixel = null;\r\n int width = pixels[0].length;\r\n int length = pixels.length;\r\n int ctr = 0;\r\n if (width > length)\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
view = inflater.inflate(R.layout.fragment_transcript, container, false);
daoTranscript = new DAO_Transcript(getActivity(),this);
listView = view.findView... | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }",
"@Override\n\tprotected View initView(LayoutInflater inflate... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 ruleId = 7; | public int getRuleId() {
return ruleId_;
} | [
"String getRuleID();",
"public void setRuleId(long id) {\r\n\t automationRuleId = id;\r\n \r\n }",
"public int getRuleNumber()\n\t{\n\t\treturn ruleNumber;\n\t}",
"public void setRule(int rule, int value) {\n rules[rule].setId(value);\n }",
"Rule getRule(Long id);",
"public String getRuleSetI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for remaindersum | public void setRemaindersum(java.math.BigDecimal newValue) {
this.remaindersum = newValue;
} | [
"@Test\n\tpublic void remainderTestCase5() {\n\t\tint remainder = remainderObject.calculateRemainder(2, 0);\n\t\t// Compares expected and actual values of remainder\n\t\tassertFalse(\"It fails\", remainder == 2);\n\t}",
"@Test\n\tpublic void remainderTestCase4() {\n\t\tint remainder = remainderObject.calculateRem... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a yes or no dialog displaying the message. | public abstract YNAnswer inputYNQuestion( String message ); | [
"public void showConfirmDialog(String message, OnClickListener yesClicked,\n\t\t\tOnClickListener noClicked) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(mContext);\n\t\tbuilder.setMessage(message)\n\t\t.setTitle(R.string.termsandcond_dialog_title)\n\t\t.setPositiveButton(android.R.string.cancel, ye... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
An optional limit override to be appended to the descriptor produced by this rate limit configuration. If the override value is invalid or cannot be resolved from metadata, no override is provided. See :ref:`rate limit override <config_http_filters_rate_limit_rate_limit_override>` for more information. .envoy.con... | boolean hasLimit(); | [
"public WatchMutatingWebhookConfiguration limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"public void setRateLimitRetry(final int rateLimitRetry) {\n this.rateLimitRetry = rateLimitRetry;\n }",
"public void setLimit(double limit) {\n this.limit = limit;\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Watch showing how to deal with onedirectional stream. | @Override
public void watch(String query) {
logger.info("Starting watching for " + query + "...");
final Request request = Request.newBuilder().setQuery(query).build();
final CountDownLatch latch = new CountDownLatch(1); // we expect only 1 result
StreamObserver<Result> stream = ne... | [
"public String getStream();",
"public StreamInterface getInletStream();",
"boolean getStreaming();",
"public void setStream(AccurevStream stream) {\n this.stream = stream;\n }",
"public abstract boolean isStreaming();",
"private void handleStreamReady() {\n\n Iterator<V> iterator = this.iterator;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a ConfigurationException object. | public ConfigurationException(String property, String reason,
Throwable cause) {
super(property + " : " + reason);
this.property = property;
this.reason = reason;
this.cause = cause;
} | [
"public ConfigException() {\n\n\t}",
"public InvalidConfigurationException() {\r\n }",
"public ConfigHelperException () {\n\t}",
"public ConfigurationException(String msg, Throwable cause) {\n super(msg);\n }",
"private void throwConfigurationException(String message) throws ConfigurationExcept... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
execute the command request and return the command response. | CommandResponse<R> execute(CommandRequest request); | [
"public String execute(HttpServletRequest request) throws CommandException;",
"CommandOutputMessage execute();",
"public HttpStatus command(JSONObject request, JSONObject response)\n\t{\n\t\tfor(var commandImpl : getCommands())\n\t\t{\n\t\t\tif(commandImpl.getCommandName().equals(request.get(\"command\")))\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the horizontal scroll position. | protected int getHorizontalPixel() {
return parent.internalGetHorizontalPixel();
} | [
"public int getHorizontalIndex() {\n\tcheckWidget();\n\treturn horizontalScrollOffset / getHorizontalIncrement();\n}",
"public int getScrollX() {\n\t\treturn Math.max(0, Math.min(player.x - screenWidth / 2, world.width() - screenWidth));\n\t}",
"public double getHorizontalPos()\n\t{\n\t return x;\n\t}",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
bidirectional manytoone association to Usuario | @ManyToOne
@JoinColumn(name="SOLICITANTE")
public Usuario getSolicitante() {
return this.solicitante;
} | [
"@Override\n\tpublic Usuario save(Usuario usuario) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic Usuario cadastrarUsu(Usuario usuario) {\n\t\treturn usuario;\r\n\t}",
"@Override\n\tpublic User findById() {\n\t\treturn null;\n\t}",
"@ManyToOne\r\n\t@JoinColumn(name=\"id_user\")\r\n\tpublic User getUser1() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a random Direction | static Direction randomDirection() {
return new Direction((float)Math.random() * 2 * (float)Math.PI);
} | [
"private static Direction randomDirection() {\n\t\treturn Direction.values()[rand.nextInt(8)];\n\t}",
"public static Direction randomDirection() {\n\t\treturn new Direction((float)Math.random() * 2 * (float)Math.PI);\n\t}",
"public static Direction random() {\n Direction[] directions = values();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This capsule's JAR file. | protected final Path getJarFile() {
return oc.jarFile;
} | [
"public String getJAR()\n {\n return _jar;\n }",
"private final void exportAsJar() throws FileNotFoundException, IOException, URISyntaxException\n\t{\n\t\tManifest manifest = new Manifest();\n\t\tmanifest.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, \"1.0\");\n\t\tmanifest.getMainAttribu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the default radius. | public static void setDefaultRadius(float value) {
defaultRadius = value;
} | [
"void setRadius(float radius);",
"void setRadius(int radius) {\n circleRadius = radius;\n }",
"public void setRadius( double theRadius ) {\n if ( theRadius <= 0 )\n return;\n this.radius = theRadius;\n }",
"public void setRadius(int value) {\n\t\tthis.radius = value;\n\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
updateCenter Updates the ball's center coordinates. | public void updateCenter(){
centerX = x + IMAGE_SIZE/2;
centerY = y + IMAGE_SIZE/2;
} | [
"public void setCenter(Vector2D center) {\n this.center = center;\n }",
"void setCenterOffset(Vector2 newCenter);",
"void setCenter(Vec2 center);",
"public void setCenterCoord(final Point center) {\n\t\tthis.centerCoord = center;\n\t}",
"public void setCenter(Point3D center){this._center = center;}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set an ARCommand to hold the command FlightPlanStateComponentStateListChanged in feature Common Feature Common description: All common commands shared between all projects Class FlightPlanState description: FlightPlan state commands Command ComponentStateListChanged description: List of state of drone flightPlan compon... | public ARCOMMANDS_GENERATOR_ERROR_ENUM setCommonFlightPlanStateComponentStateListChanged (ARCOMMANDS_COMMON_FLIGHTPLANSTATE_COMPONENTSTATELISTCHANGED_COMPONENT_ENUM _component, byte _State) {
ARCOMMANDS_GENERATOR_ERROR_ENUM err = ARCOMMANDS_GENERATOR_ERROR_ENUM.ARCOMMANDS_GENERATOR_ERROR;
if (!valid) {
... | [
"public Builder setCommandList(\n rescuecore2.messages.protobuf.RCRSProto.MessageListProto.Builder builderForValue) {\n if (commandListBuilder_ == null) {\n component_ = builderForValue.build();\n onChanged();\n } else {\n commandListBuilder_.setMessage(builderForVa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: to be implemented by Andrey; read the XML files and return performance keyvalue properties, that give a recommendation of whether to proceed with CPU or MPI profiling | @Override
protected void calculate(List<File> ipmFiles, Map<String, Float> results) {
for( File file: ipmFiles )
System.out.println(file.getAbsolutePath());
} | [
"public Properties getPerformance(int resid)\n/* */ {\n/* 322 */ long maxtime = 0L;\n/* 323 */ Properties p = new Properties();\n/* 324 */ p.setProperty(\"LOGICALTHREADS\", \"-\");\n/* 325 */ p.setProperty(\"PHYSICALTHREADS\", \"-\");\n/* 326 */ p.setProperty(\"QUEUELENGTH\", \"-\");\n/* 3... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of effetCollision method, of class Joueur. | @Test
public void testEffetCollision() {
Jeu jeu = new SpaceInvaders();
System.out.println("effetCollision");
ObjetTouchable o = new TirEnnemi(jeu, "Tir Ennemi", 100, 10);
Joueur instance = new Joueur(jeu, "Joueur", 618, 650);
instance.effetCollision(o);
} | [
"@Ignore\n public void testActionOnCollision() {\n System.out.println(\"actionOnCollision\");\n Entity e = null;\n Entity instance = null;\n instance.actionOnCollision(e);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test cas... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method adds the specified edge to the list of tour edges to draw on the screen and then calls repaint to draw the specified edge on the screen. | public void drawTourEdge(Edge e) {
tour.add(e);
repaint();
} | [
"private void drawEdge(EdgeDrawable edge, GWTCanvas canvas) { \n double startX = edge.getStartX() + offsetX;\n double startY = edge.getStartY() + offsetY;\n double endX = edge.getEndX() + offsetX;\n double endY = edge.getEndY() + offsetY;\n \n canvas.beginPath();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build the option menu | @Override
public boolean onCreateOptionsMenu(Menu menu)
{
getMenuInflater().inflate(R.menu.main_menu, menu);
return true;
} | [
"private void buildMenu(){\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"-------------------------------\\n\");\n\t\tsb.append(\"\\tDictionary\\n\");\n\t\tsb.append(\"-------------------------------\\n\");\n\t\tsb.append(\"Choose a book \\n\");\n\t\tsb.append(\"1. Poblacht na HEirean \\n\");\n\t\tsb.a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: tR | public final void mo33527tR(String str) {
AppMethodBeat.m2504i(31766);
if (this.cgL != null && str.equals(this.cgL.getTalkerUserName())) {
m39073qs(false);
}
AppMethodBeat.m2505o(31766);
} | [
"MV getLodRsvTr();",
"T mo12982a(R r);",
"@Override\n\tpublic void tyre() {\n\t\t\n\t}",
"void mo17520b(T t);",
"void mo37715E_();",
"@Override\r\n\tpublic void trabalhar() {\n\t\t\r\n\t}",
"public void mo25169t() {\n }",
"public abstract void mo17847T2();",
"public static void m3582RU() {\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a remote forwarding configuration by the address bound | protected ForwardingConfiguration getRemoteForwardingByAddress(String addressToBind,
int portToBind)
throws ForwardingConfigurationException {
Iterator it = remoteForwardings.iterator();
ForwardingConfiguration config;
while (it.hasNext()) {
config = (Forwar... | [
"public int getForwardingAddress() {\n\t\treturn this.forwardingAddress;\r\n\t}",
"public int getForwardingAddress() {\n\t\t\treturn getMensaje().forwardingAddress;\r\n\t\t}",
"io.envoyproxy.envoy.extensions.filters.network.dubbo_proxy.v3.RouteConfiguration getRouteConfig(int index);",
"public SocketAddress g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Apache iBATIS ibator. This method returns the value of the database column AL_SHIFT_ASSESS.ALARM_QUANTITY_SUCC_A1 | public Integer getAlarmQuantitySuccA1() {
return alarmQuantitySuccA1;
} | [
"public int getTotalAU() {\n\t\treturn totalAU;\n\t}",
"public Number getCalcCuotaSsErSta() {\n return (Number) getAttributeInternal(CALCCUOTASSERSTA);\n }",
"private String getRawQuantity() {\n\tif (_quantity != null) {\n\t\treturn _quantity;\n\t}\n\telse if (_dataBean != null) {\n\t\tInteger quantit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
String msg = "tHiS iS tESt";
String words []= msg.split(" ");
for(String word : words) {
String firstChar = String.valueOf(word.charAt(0)).toUpperCase();
String remChar = word.substring(1).toLowerCase();
System.out.print(firstChar + remChar+" ");
}
} | [
"@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"
]
]
}
} |
Get the end date for this price's validity. The price can only be used if the current time is within the validity range. | public Date getValidUntil() {
return validUntil;
} | [
"private Date getEndDate() {\n System.out.println(\"Please enter the end date.\");\n return DateUtils.getInputYearMonthDay();\n }",
"public Date getEndDate() {\n return getDate(END_TIME);\n }",
"public Date getEndDate()\n {\n Calendar cal = Calendar.getInstance();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |