query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Gets the list of available gender types | public String[] getGenderTypes()
{
return genderTypes;
} | [
"public com.google.api.ads.adwords.axis.v201806.cm.Gender[] getGenderCriterion() throws java.rmi.RemoteException, com.google.api.ads.adwords.axis.v201806.cm.ApiException;",
"@CrossOrigin\n\t@GetMapping(\"/genders\")\n\tpublic Iterable<Gender> getGenders() {\n\t\treturn genderService.getGenders();\n\t}",
"@GetMa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize a new root disk item with given name and writability. | @Model
protected DiskItem(String name, boolean writable) {
setName(name);
setWritable(writable);
} | [
"public RootStorage(boolean readWrite) {\n super(\"root\", readWrite);\n dict.set(\"storages\", mountedStorages);\n try {\n metadata.store(PATH_STORAGEINFO, dict);\n } catch (StorageException e) {\n LOG.severe(\"error while initializing virtual storage: \" +\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / / / / / / / / / / / / / / / / / / / / / / | public TypeCode create_value_tc(String paramString1, String paramString2, short paramShort, TypeCode paramTypeCode, ValueMember[] paramArrayOfValueMember) {
/* 959 */ throw new NO_IMPLEMENT();
/* */ } | [
"private static void EX5() {\n\t\t\r\n\t}",
"protected int snapBits(){return 9;}",
"public int getSize() { return 3+length;}",
"protected void method_5557() {}",
"int getSize() {\r\n return 8;\r\n }",
"void mo8166KB();",
"@Override\nint nooftyres() {\nreturn 0;\n}",
"@Override\n public l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Saves given stream data to specified database into specified file. | protected void saveToDababase(String dbName, String dbFileName, InputStream data)
throws FlickrEntityException {
ClientSession session = null;
try {
session = getDatabaseSession().get(dbName, true);
} catch (NoDatabaseException ex) {
throw new FlickrEntityException("No database.", ex);
}
try {
if (... | [
"public static void save(OutputStream stream, DataGroup dataGroup) throws IOException {\n save(new PrintWriter(new BufferedOutputStream(stream, IpacTableUtil.FILE_IO_BUFFER_SIZE)), dataGroup);\n }",
"void saveFromStream(InputStream fileUploadInputStream);",
"private void saveOnFile() {\n\t\tFile file ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void mouseExited(MouseEvent e) {
super.mouseExited(e);
btnNewButton_3.setIcon(new ImageIcon(ZuJie2.class.getResource("/img/设置.png")));
btnNewButton_3.setFont(new Font("幼圆", Font.BOLD, 17));
btnNewButton_3.setForeground(Color.bl... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .com.vdian.search.netty.protocol.SolrParam solrParam = 3; | public SolrProtocol.SolrParam.Builder addSolrParamBuilder(
int index) {
return getSolrParamFieldBuilder().addBuilder(
index, SolrProtocol.SolrParam.getDefaultInstance());
} | [
"public static void main(String[] args) {\n \n SolrJ solrJ = new SolrJ();\n// solrJ.addDocumentTest(); \n QueryResponse response = solrJ.getRueryResponse(\"q=video&rows=1&fl=id,name&wt=json\");\n \n //q=video&rows=1&fl=id%2Cname&wt=json\n System.out.println(\"SolrJ 61 response = \" + response);\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Queries Questions API and gets response from StackExchange for multiple tags passed as parameter | public void getQuestions(List<String> tags) throws IOException {
for (String tag : tags) {
String fullEndpoint = baseEndpoint + "questions" + baseQueryParam + "&tagged=" + tag + "&pagesize=" + pagesize;
ResteasyWebTarget target = client.target(fullEndpoint);
Response response = target.request().ge... | [
"private static String getTagQuestions(String tag) {\n\n\t\t// Run database view for this tag\n\t\tdb.runView(\"all_docs/tag_and_question\", 0, tag);\n\t\t\n\t\t// Get No of questions for each Tag\n\t\tDBAccess tempDB = new DBAccess();\n\t\ttempDB.connect(\"couchdb.properties\");\n\t\ttempDB.runViewAndReduce(\"all_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Private constructor to aboid object creation from outside classes. | private DatabaseAccess(Context context) {
this.openHelper = new DatabaseOpenHelper(context);
} | [
"private ObjectCreator() {\n }",
"private Factory() {\n\t}",
"protected ExampleObject() {\n super();\n }",
"private PrivateConstructor() { \n \t\n }",
"private Factory() { }",
"private MyObject() {\r\n }",
"public ObjectFactory()\r\n {\r\n }",
"private Library(){}",
"pro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use a GUI to retrieve ACGAnnotator options. | private static boolean getOptionsGUI(ReMappOptions options) {
boolean[] canceled = {false};
JDialog dialog = new JDialog((JDialog)null, true);
dialog.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
dialog.setLocationRelativeTo(null);
dialog.setTitle("SCoRe Re-Mapper");
... | [
"@DSComment(\"Normal UI operations\")\n @DSSafe(DSCat.GUI)\n \n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:29:26.894 -0500\", hash_original_method = \"5C7A5DC825C127CAEB67314627C1344D\", hash_generated_method = \"E7803D9EA57EDD53A6619582D74C929D\")\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public List findAssortgoods(List entitys1,List entitys2); public List findLevel(List list); | public List<AssortGoods> findAssortGoods(List<AssortGoods> assortGoods,List<GoodsAssort> gAssort); | [
"public void BOMQueryL1Node(Object[] PathNumberList) {// conditionParams[] = { item_category.getKey(), item_warehouse.getKey() };\n //System.out.println(\"---\" + PathNumberList[0] + \"---\" + PathNumberList[1] + \"---\");\n int level = Integer.parseInt((String) PathNumberList[1]);\n if (level ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .UserInfo translator_info = 3; | public com.gzligo.ebizzcardstranslator.mqtt.protobuf.MQTTProtobufMsg.UserInfo.Builder getTranslatorInfoBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTranslatorInfoFieldBuilder().getBuilder();
} | [
"@Override\n\tpublic void translation() {\n\t\t\n\t}",
"com.zhangwuji.im.protobuf.IMBaseDefine.UserInfo getUserInfo();",
"public TranslateResponse translator(TranslateRequest request) {\n\n \tTranslateResponse response = new TranslateResponse();\n\n\t\ttry {\n\t\t\t\n\t\t\tTranslatedText translatedText = tra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To aggregate based on a selection of product type(s). | List<? extends String> getProductQualifier(); | [
"private void getProductType() throws OperatorException {\n \n productType = sourceProduct.getProductType();\n // product type could be 1P or 1C\n if (!productType.contains(\"ASA_IMP_1\") && !productType.contains(\"ASA_IMM_1\") &&\n !productType.contains(\"ASA_APP_1\") && !produc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts the format of date from one to another. | String CDF(String v,String sourceFormat, String distinyFormat){
try{
SimpleDateFormat sdfSource = new SimpleDateFormat(sourceFormat);
Date date = sdfSource.parse(v);
SimpleDateFormat sdfDestination = new SimpleDateFormat(distinyFormat);
v=sdfDestination.format(date);
}catch(ParseExce... | [
"public static String convertDateFormat(String sourceDate, String fromFormat, String toFormat) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(fromFormat);\n\t\tDate ddd = new Date();\n\t\ttry {\n\t\t\tddd = sdf.parse(sourceDate);\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tsdf = new S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
@Transactional
public Student getStudentById(int stuId) {
System.out.println(stuId);
Session session = sessionFactory.getCurrentSession();
Student student = (Student) session.get(Student.class, stuId);
return student;
} | [
"@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"
]
]
}
} |
lambda expression (parameter1, parameter2) > expression | public static void main(String[] args) {
maxFunction maxFunctionInstance= (int a , int b ) -> (a > b ) ? a : b ;
System.out.println(maxFunctionInstance.max(10,20));
StringFunction askFunctionInstance = (s) -> s + "?";
System.out.println(" Ask " + askFunctionInstance.ask("Hi"));
} | [
"public static void main(String[] args) {\n Number number = (int a, int b) -> (a + b);\n System.out.println(\"Sum = \" + number.add(50, 50));\n\n }",
"public static void main(String[] args) {\n Add add = (int a, int b) -> {\r\n int sum = a + b;\r\n return sum;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ TODO: implement this rule and an appropriate IValueConverter / UpperBoundType1 returns _12::UpperBoundType1: "UpperBoundType1"; | @Override public ParserRule getRule() { return rule; } | [
"List<TypeInfo> getUpperBounds();",
"com.google.privacy.dlp.v2.ValueOrBuilder getUpperBoundOrBuilder();",
"public static void show_lowerBoundAndUpperBound() {\r\n\t\tSystem.out.println(\"EOF MyCollectionUtility::show_lowerBoundAndUpperBound\");\r\n\t\t// since below upperBount ones can point to either of below ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the max J location value | public int getMaxJ() {
return maxj;
} | [
"private Double getMaxLon() {\n\n double max = impNodeList.get(0).getLon();\n\n for(int i = 0; i < impNodeList.size(); i++) {\n if(impNodeList.get(i).getLon() > max){\n max = impNodeList.get(i).getLon();\n }\n }\n\n return max;\n }",
"public doub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a goal component | @Override
public void remove(GoalComponent g) {
this.children.remove(g);
} | [
"public void removeGoal(Long playerId, Long goalId);",
"private MethodDescriptor removeComponentStrategy(ComponentDescriptor component){\n return\n new MethodBuilder(FluidTypes.E_TYPE,\n Strings.assembleMethodName(component.getPreferences().getPrefixComponentRemove(), component.getName()))\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set duration seekbar progress and current time | @Override
public void handleMessage(Message msg) {
int current_position = msg.what;
seekBar.setProgress(current_position);
String cTime = createTimeLabel(current_position);
curTime.setText(cTime);
} | [
"private void setSeekbarDuration(int duration) {\n if(duration <= 0)\n return;\n if(service != null && service.getCurrentLession() != null) {\n seekBar.setMax(duration);\n seekBar.setProgress(getCurrentTimePlayer() / 1000);\n mHandler.post(seekbarUpdateRunna... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
PUBLIC Fill table content | public void onShow(){
if(!dataFilled){
defaultWorkScheduleTable.addLine(proj.getDefaultWorkSchedule());
dataFilled = true;
}
} | [
"protected void fillTable() {\n\t\tString[] tempFieldNames = null;\n\t\tif (getDisplayColumns() != null) {\n\t\t\ttempFieldNames = getDisplayColumns().split(\",\");\n\t\t}\n\t\tgetChildDataTable().getFacets().clear();\n\t\t// Create child columns and button panels\n\t\tif (!isColumnsCreated()) {\n\t\t\t// Create co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Backend group to forward requests to. Stream (TCP) backend groups are not supported. string backend_group_id = 1 [(.yandex.cloud.required) = true]; | public java.lang.String getBackendGroupId() {
java.lang.Object ref = backendGroupId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
backendGroupId_ = ... | [
"private void setBackend(com.google.api.Backend value) {\n if (value == null) {\n throw new NullPointerException();\n }\n backend_ = value;\n \n }",
"private WebTarget group(final long groupID) {\n return base().path(String.format(\"groups/%d\", groupID));\n }",
"public void StoreG... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the subclass/interface set for the class/interface passed. | public SortedSet<TypeElement> directSubClasses(TypeElement typeElement, boolean isEnum) {
return directSubClasses0(typeElement, isEnum);
} | [
"public static Set<Class<?>> getAllInterfacesAsSet(Object instance) {\n\t\tAssert.notNull(instance, \"Instance must not be null\");\n\t\treturn getAllInterfacesForClassAsSet(instance.getClass());\n\t}",
"public static Set<Class> getAllInterfacesForClassAsSet(Class clazz) {\n return getAllInterfacesForClass... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ private method paintBackground. Takes Graphics as parameter and returns nothing. Draws background on the screen. | private void paintBackground(Graphics g) {
g.drawImage(images[BACKGROUND_INDEX], 0, 0,TitleView.FRAME_WIDTH, TitleView.FRAME_HEIGHT,
(int)(backgroundScalarX * (harrier.getXPos() - TitleView.FRAME_WIDTH / RADIUS_DIAM_RATIO) + BACK_CENTER),
(int)(backgroundScalarY * (harrier.getYPos() - TitleView.FRAME_HEIGHT /... | [
"private void paintBackground(Graphics g)\n {\n \n }",
"private void paintBackground(Graphics g)\n {\n // CONSTRUCT a 2D graphics from g\n Graphics2D g2d = (Graphics2D) g;\n // SET 2D graphics composite to 100%\n g2d.setComposite(AlphaComposite\n .getInst... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A method to a add the Claims Notes to the backend Database | public long insertClaimNotes(final ElsecoClaimsNotes elsecoClaims) throws Exception{
LOG.info("About to insertClaimNotes :"+elsecoClaims.toString());
final String sqlQ = "insert into \"EL_CLAIMS\".\"EL_ELSECO.EL_CLAIMS.EL_DB::EL_ClaimNotes_T\" (CLAIM_NOTES_ID, CLAIM_NOTES_VERSION, "
+ " CLAIM_HEADER_ID, CLAIM_H... | [
"public void createClaim(List<Claim> claims) {\n\t\t// TODO\n\t}",
"public void createNote() {\n\n long id = db.insertNote();\n\n Note n = db.getNote(id);\n\n notesList.add(0, n);\n\n macList = db.refineMacList(macList);\n\n macAdapter.notifyDataSetChanged();\n\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .grpc.client.AppType type = 3; | public int getTypeValue() {
return type_;
} | [
"com.google.protobuf.ByteString\n getAppTypeBytes();",
"com.ubbcluj.amcds.myDalgs.communication.Protocol.AppDecideOrBuilder getAppDecideOrBuilder();",
"grpc.testing.Messages.PayloadType getType();",
"public Builder setAppTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Element lastname = document.createElement("lastname"); lastname.appendChild(document.createTextNode("mook kim")); element.appendChild(lastname); | public void setFilaDatosExportarXmlEstadoFisicoFacturaEmpresa(EstadoFisicoFacturaEmpresa estadofisicofacturaempresa,Document document,Element element) {
Element elementId = document.createElement(EstadoFisicoFacturaEmpresaConstantesFunciones.ID);
elementId.appendChild(document.createTextNode(estadofisicofac... | [
"XMLElement add(String elementName, String text);",
"public static Node appendElement(Document document, Node parentElement, String elementName, String elementText) {\r\n\t\t \r\n\t\tElement childElement = document.createElement(elementName);\r\n\t\tText childElementText = document.createTextNode(elementText);\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks OrderedList for a an Arithmetic value at a certain location by row number and column number. | public boolean containsValueAtLocation(int row, int col){
return (getTripleIndex(row,col) > 0);
} | [
"public static int OperatorPosition(List exp) throws IllegalLineException {\n\n\t\tif (HasOperatorAndOr(exp) || HasOperatorImply(exp)) {\n\n\t\t\tint tracker = 0;\n\n\t\t\tfor (int i = 0; i < exp.size(); i++) {\n\n\t\t\t\tif (exp.get(i).equals('('))\n\t\t\t\t\ttracker++;\n\n\t\t\t\tif (exp.get(i).equals(')'))\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set lastRememberedTableDetails to current table's details. | public void rememberLoadedTableDetails() {
lastRememberedTableDetails = getTableDetails();
} | [
"private void setDetails() {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tprimaryKey = LoginScreen.getEmail(); //Get the current user's primary key.\r\n\t\t\t\r\n\t\t\t/**\r\n\t\t\t * Make a connection to database.\r\n\t\t\t * Construct the query. Query gets the user's details.\r\n\t\t\t * Use a prepared statement to setup query.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created a reasoner that fails on interrupt. | public static ElkReasoner createReasoner(final OWLOntology ontology,
final boolean isBufferingMode) {
return createReasoner(ontology, isBufferingMode,
FailingReasonerInterrupter.INSTANCE);
} | [
"public abstract void interrupt();",
"private void interrupt() {\n\t\tSystem.out.println(\"error interrupt!!!\");\n\t\t//reconnect();\n\t}",
"void interrupt(Hardware.Interrupt it);",
"@Override\r\n\tpublic void testInterrupt() throws Exception {\n\t}",
"public interface InterruptionHandler {\r\n void onI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Formats a Date object as a number string (e.g. 20060101). In additional to valid dates, handles 12/31/9999 and turns it into 99999999. Also handles 01/01/1901 and turns it into 00000000. | public static String toFormattedNumericString0s9s(Date date) {
DateFormat numericFormatter = new SimpleDateFormat(NUMERIC_FORMAT);
String dateString = numericFormatter.format(date);
if (dateString.equals("99991231"))
return "99999999";
else if (dateString.equals("19010101"))
return "00000000";
re... | [
"protected String formatDate(EYSDate date)\r\n {\r\n int year = date.getYear();\r\n int day = date.getDay();\r\n int month = date.getMonth();\r\n\r\n StringBuilder builder = new StringBuilder();\r\n String sYear = Integer.toString(year);\r\n // Grab only the last two dig... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Do something on an object, depending on its position indices | public interface ActIJ<T> {
/**
* Do something dependent on object and its matrix position. Returns nothing
*
* @param i int, column index
* @param j int, row index
* @param t object of type T
*/
void act(int i, int j, T t);
} | [
"public abstract void putObjectAt(int x, int y, Object object);",
"public void entferne(int position);",
"int getIndexPosition();",
"private static void setPosition(ArrayList<SpaceObject> arrSo, SpaceObject spaceObject){\n for(SpaceObject obj: arrSo){\n if(spaceObject.intersects(obj)){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
uint32 closed_height = 3; | public int getClosedHeight() {
return closedHeight_;
} | [
"public double getHeight(){return 32;}",
"public int getHeight() {\n\t\treturn 2;\n\t}",
"@NativeType(\"opus_uint32\")\n public int height() { return nheight(address()); }",
"public double getHeight() { return _h; }",
"public float getHeight() {\n/* 163 */ return this.height;\n/* */ }",
"int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Recupera o grupo muscular. | public GrupoMuscular getGrupoMuscular() {
return grupoMuscular;
} | [
"public void MostrarGrupo() {\n tbvGrupo.getItems().clear();\n for( Estudiante estudiante : grupo ) {\n tbvGrupo.getItems().add( estudiante );\n }\n }",
"public void llenarComboGrupo() {\n try {\n tipoMovimientoPrecedenciaHelper.getListaGrupo().clear();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Name: SortEndRow Type: ArrayList Action: Finish the last row of game board Input: stateGameAutoArrayList Output: stateGameAutoArrayList | private ArrayList<StateGameAuto> SortEndRow(ArrayList<StateGameAuto> stateGameAutoArrayList){
StateGameAuto currentState = new StateGameAuto(stateGameAutoArrayList.get(stateGameAutoArrayList.size() - 1).getState(),
stateGameAutoArrayList.get(stateGameAutoArrayList.size() - 1).getPositionEmpty())... | [
"@Override\n public void endRow(){\n boolean flag = false;\n for (String data : row) {\n if(!\"\".equals(data))\n flag = true;\n }\n\n if (flag){\n /*\n * flag가 true 즉 마지막 인덱스를 읽으면\n * 그떄부터 데이터를 담기 시작합니다.\n * 아래 ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void run() {
try {
while (!Thread.interrupted()) {
// 就绪事件到达之前,阻塞
selector.select();
Set selected = selector.selectedKeys();
Iterator it = selected.iterator();
while (it.hasNext()) {
... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "T__85" $ANTLR start "T__86" | public final void mT__86() throws RecognitionException {
try {
final int _type = T__86;
final int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.erlide.erlang/src-gen/org/erlide/parser/antlr/internal/InternalErlang.g:79:7:
// ( 'rem' )
// ../org.erlide.er... | [
"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"
]
]
}
} |
Adds a custom classloader to the collection of classloaders searched for "external" classes. These are classes that do not depend on any of the generator's classes or interfaces. Examples are JDBC drivers, root classes, root interfaces, etc. | public static synchronized void addExternalClassLoader(
ClassLoader classLoader) {
ObjectFactory.externalClassLoaders.add(classLoader);
} | [
"public List<ClassLoader> getClassLoadersLoading(String className);",
"void addFullyQualifiedNamesOfClassesToLoadByMockClassloader(String firstClass, String... additionalClasses);",
"public static ClassLoader addToClassPath(ClassLoader cloader, String[] newPaths) throws Exception {\n URLClassLoader loader = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getter method for student phone number | public String getPhoneNo() {
return phoneNo;
} | [
"public abstract java.lang.String getPhone();",
"public String getPhoneNum(){\n\t\treturn phone;\n\t}",
"public String getStrphone() {\n return strphone;\n }",
"protected String getPhoneNumber() {\n\t\treturn phoneNumber;\n\t}",
"public String getPhoneNum() { return this._phoneNum; }",
"public S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a norm of the difference with the previous step rank vector. The kind of norm is usually established in the constructor. | public double normDelta() {
throw new UnsupportedOperationException();
} | [
"public float norm(){\n\t\treturn (float) Math.sqrt(dot(this));\n\t}",
"public double norm() {\n\t\treturn Math.sqrt(dot(this,this));\n\t}",
"public double norm()\r\n/* 84: */ {\r\n/* 85: 87 */ return MathUtils.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);\r\n/* 86: */ }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
column, list button click event | public void onClickViewSortButton(View view) {
getPresenter().onViewSortBtnClicked(view.getId() == R.id.column_sort ? ViewSortType.VIEW_SORT_COLUMN : ViewSortType.VIEW_SORT_LIST);
} | [
"public void listClick() {\n }",
"public void buttonlistner(){\n\t\taddButton.addClickListener(new ClickListener() {\n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t for (Object id : table.getItemIds()) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
print the initial message, followed by instruction and doPlacement for all ships | public void doPlacementPhase() throws IOException {
// display the starting (empty) board
out.print(view.displayMyOwnBoard());
// print the instructions message
String instruction =
"--------------------------------------------------------------------------------\n"+
... | [
"public void print(){\n\t\tSystem.out.println(\"Fleet ID:\"+FltID+\"\\nShips Connected (ID numbers\");\n\t\tprintships();\n\t}",
"public void placeShips() {\n\t\tfor (int x = 0; x < 5; x++) {\n\t\t\tboard[carrier[x][0]][carrier[x][1]] = 1;\n\t\t}\n\t\t//battleship\n\t\tfor (int x = 0; x < 4; x++) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .CMsgVector position = 2; | skadistats.clarity.wire.common.proto.NetworkBaseTypes.CMsgVector getPosition(); | [
"org.ga4gh.protobuf.Common.PositionOrBuilder getPositionOrBuilder();",
"@Override\n public Vector3i getPosition() {\n return null;\n }",
"public abstract Vector2 getPosition();",
"at.fhj.swengb.apps.battleship.BattleShipProtobuf.BattleShipGame.Pos getPos();",
"Vector3 getPosition();",
"@Overr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sum += no(sum); //hunger100 | public void run() {
sum+=logic(sum);
//
/*bound=threshold-sum;
if(bound>=9)
bound=9;
... | [
"int sum() {\n\t\t \n\t\treturn math+kor+eng;\n\t}",
"int getSumWajue();",
"int getSumDubo();",
"private double foo(double sum, double prod){return sum + prod +1;}",
"static void bucle2(){\n\t\tint suma = 0;\nfor(int contador = 1;contador <= 100;suma += contador++);\t\n\t\t\n\t\tSystem.out.println(\"La sum... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the last move made (the move that led to the current state). | public final Move getMove() {
return this.lastMove;
} | [
"public Move lastMove() {\n return this.moves.get(this.moves.size() - 1);\n }",
"public Move getLastMove() {\n if (moves.size() > 0) {\n return moves.peek();\n } else {\n return null;\n }\n }",
"public MoveType getLastMove(){\n return lastMove;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Guardar en t_bitacora para el flujo de 3D secure | Integer saveTBitacoraForFacPago(FacPagoRequestDTO facPagoRequestDTO); | [
"public Figura3D(){\r\n this.x = x;\r\n this.y = y;\r\n this.volumen = volumen;\r\n this.punto1 = punto1;\r\n this.punto2 = punto2;\r\n this.punto3 = punto3;\r\n }",
"private void rotateAndBlurSkybox(float par1) {\n\t\tEaglerAdapter.glBindTexture(EaglerAdapter.GL_TEXTU... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns An iterator to the array of items. | @Override
public Iterator<T> iterator() {
return array.iterator();
} | [
"public Iterator<Item> iterator() {\n return new ArrayIterator();\n\n }",
"public Iterator<Item> getItems();",
"public Iterator<Object> iterator(){\n return new ArrayIterator();\n }",
"public Iterator<Item> iterator() {\n\t\treturn new RandomArrayIterator();\n\t}",
"@Override\n\tpublic I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes an item from the player's inventory | public void removeItem(Item item){
//If the item is in the inventory, remove it
if (inventory.contains(item))
inventory.remove(item);
} | [
"public abstract void removeItem(AItemStack item);",
"public void inventoryUnequip(int r){\r\n this.inventory.remove(r);\r\n \r\n }",
"public boolean RemoveFromInventoryOf(GameEntity entity, GameEntity item)\n\t{\n\t\treturn false;\n\t}",
"public void deleteItem(String item) {\n inventory.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes a modified version of manhattan distance between the two schemas: s1 & s2. Here the value on the same axis are preferred over values that change axis as this means that the number of casts required will be lesser on the same axis. However, this function ceases to be a metric as the triangle inequality does not... | private long fitPossible(Schema s1, Schema s2) {
if(s1==null || s2==null) return INF;
List<FieldSchema> sFields = s1.getFields();
List<FieldSchema> fsFields = s2.getFields();
long score = 0;
int castCnt=0;
for(int i=0;i<sFields.size();i++){
FieldSchem... | [
"private double computeManhattanDistance(\n\t\t\tHashMap<Integer, ArrayList<Double>> hashMap,\n\t\t\tHashMap<Integer, ArrayList<Double>> hashMap2) {\n\t\tArrayList<Double> fs1 = new ArrayList<Double>();\n\t\tArrayList<Double> fs2 = new ArrayList<Double>();\n\t\t\n\t\t//fill fs1 and fs2 with the metrics extracted fr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
minimize the swap if its same location or both i and j are even | private static void swap(int[] a, int i, int j) {
int tmp = a[i];
a[i] = a[j];
a[j] = tmp;
} | [
"static void swap(int[] arr, int i, int j){\n // arr[j] ^= arr[i];\n // arr[i] ^= arr[j];\n int temp = arr[i];\n arr[i] = arr[j];\n arr[j] = temp;\n }",
"private void doAllSwaps() {\r\n\r\n LinkedList<Pair<Vertex>> swaps = new LinkedList<Pair<Vertex>>();\r\n double minC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end of method run() | private void initializeDataMatrices(){
measuredDensity = new Double[detectorList.values().iterator().next().getDensityData().size()][cellData.size()];
measuredFlow = new Double[detectorList.values().iterator().next().getDensityData().size()][cellData.size()];
measuredSpeed = new Double[detectorList.values().it... | [
"public void run() {\n \t\n }",
"public void run()\n {\n }",
"public void run(){\n\t\t}",
"public void run()\n\t {\n\t }",
"public void run()\r\n\t{\r\n\t}",
"public void run() {\n\n }",
"@Override\r\n public void run() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the root of the scenegraph, and then pass a reference to this scene graph object to all its node. This will enable any node to call functions of its associated scene graph | @Override
public void makeScenegraph(INode root) {
this.root = root;
this.root.setScenegraph(this);
} | [
"@Override\n public void makeScenegraph(INode root)\n {\n this.root = root;\n this.root.setScenegraph(this);\n\n }",
"public void setRoot(Node<E> root) {\r\n\t\tthis.root = root;\r\n\t}",
"public abstract void setRoot(ASTNode root);",
"void setRootNode(T newRoot);",
"private void setRoot(StudentNod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public String getNamePropDisplayName() {
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"
]
]
}
} |
Creates a new instance of Reader. | public AbstractStreamTableReader(File file) throws FileNotFoundException {
this(new FileInputStream(file));
} | [
"protected Reader getReader (String name) throws IOException {\n return new FileReader(name);\n }",
"public ReaderWrapper(){\r\n\t\tmoodReader = new MoodReader();\r\n\t\tInfuencedByReader = new InfluencedByReader();\r\n\t\tInfluencingReader = new InfluencingReader();\r\n\t\tkeywordReader = new KeywordRe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The string representation of the polygon | @Override
public String toString() {
return "###################### \n"
+ "Polygon{" + "\n"
+ "id=" + id + "\n"
+ ", coordinates=" + coordinates + "\n"
+ ", color=" + color + "\n"
+ ", radius=" + radius + "\n"
+... | [
"public String getAsText() {\r\n String text = null;\r\n Object v = this.getValue();\r\n if (v instanceof Polygon) {\r\n text = encodePolygon((Polygon)v);\r\n }\r\n return text;\r\n }",
"public static String encodePolygon(Polygon value) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Purpose : to get all of the cards on the board without builds | public void populateBoard(String a_boardstring) {
String board;
String[] split = a_boardstring.split(" ");
StringBuilder sb = new StringBuilder();
for(int i = 1; i < split.length; i++){
sb.append(split[i]);
}
board = sb.toString();
int inBuild = 0;
... | [
"@Override\n\tpublic List<Card> getCardAll() {\n\t\treturn null;\n\t}",
"public List<Card> getCards() {\n List<Card> cards = getDeck();\n do {\n Collections.shuffle(cards);\n } while (cards.stream().limit(4).noneMatch(Card::isHouseCard));\n return TreePVector.from(cards);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Views attendance sheet of the specified group. | private void handleViewAtt() {
GroupDataPanel groupDataPanel = (GroupDataPanel) this.groupDataPanel;
groupDataPanel.changeAttendanceTab();
} | [
"public static void displayAttendance(DefaultTableModel model) {\r\n for(int i = 0; i < numStudents; i++){\r\n model.addRow(new Object[] {\r\n cl[i].getStudentName(), cl[i].getAttendance()\r\n });\r\n }\r\n }",
"public void viewTimeSheetButtonClicked() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns if the Board is eligible for play. | public boolean checkGameStatus()
{
return this.gameBoard.getBoardStatus()== new Square().EMPTY_VALUE;
} | [
"public boolean boardIsCovered() {\n int allPieces = this.board.numberOfAllPieces();\n double enough = 0.90 * (double) allPieces;\n if (board.numberOfWallPieces() > enough) {\n return true;\n } \n return false;\n }",
"public boolean canPlayersStillPlay() {\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves or creates the ProfileSyncService singleton instance. Returns null if sync is disabled (via flag or variation). Can only be accessed on the main thread. | @Nullable
public static ProfileSyncService get() {
ThreadUtils.assertOnUiThread();
if (!sInitialized) {
sProfileSyncService = new ProfileSyncService();
if (sProfileSyncService.mNativeProfileSyncServiceAndroid == 0) {
sProfileSyncService = null;
}
... | [
"public ProfileSyncService() {\r\n super(\"ProfileSyncService\");\r\n }",
"public void synchronize() {\n\t\t\n\t\t// Initialize synchronization of personalizations with web server\n\t\t// using PersonalizationSyncService\n\t\tif(!NetworkUtilities.haveNetworkConnection(context))\n\t\t{\n\t\t\tToast.makeT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads path into a spark dataframe using the S3Connector. | public Dataset<Row> read(StorageConnector.S3Connector connector, String dataFormat,
Map<String, String> options, String path) throws FeatureStoreException, IOException {
connector.update();
Map<String, String> readOptions = connector.sparkOptions();
// merge user spark options on ... | [
"static <K,V> DataSeriesRead<K,V,DataSeries<K,V>> read(String path) {\n return new DataSeriesRead<>(Resource.of(path));\n }",
"public void setS3Path(S3Path s3Path) {\n this.s3Path = s3Path;\n }",
"public S3Path getS3Path() {\n return this.s3Path;\n }",
"public void read(){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Showing google speech input dialog | private void askSpeechInput() {
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());
... | [
"private void promptSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the column value null. | protected void writeNullValue() {
} | [
"public void setNull()\n {\n this.type = ValueType.NULL;\n this.number = 0;\n this.object = null;\n }",
"public void setNull(String arg0, int arg1) throws SQLException {\n\t\t\r\n\t}",
"Column setNullable(boolean nullable);",
"void disableColumnNullObject();",
"public void setNull... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Runs the problem now without any run dialog Useful for testing | public void runNow() {
if ( program != null ) {
final Container oldContainer = getContentPane();
// Setup the GUI to handle the programGUI
final ProgramGUI programGUI = new ProgramGUI(this, program);
goFullScreen( programGUI, true );
// Run the program in a new thread
new Thread("Program ... | [
"private void checkRun(){\r\n\t\tif ((!PropertiesManager.isInDebugMode() &&\r\n\t\t\t\t(Jerboa.getInputFileSet() != null && Jerboa.getInputFileSet().getScriptFile() != null)) &&\r\n\t\t\t\t!Jerboa.isVersionCompatible)\r\n\t\t\twrongVersion();\r\n\t\telse if (Jerboa.getWorkFlow() == null ||\r\n\t\t\t\t(Jerboa.getWor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets partial list of records for current page and sets the partial search results to FormBean Store current search results in session. | private void getPaginatedSearchResults(HttpServletRequest request,
QuestionListActionForm questionBean, IExtendedPaginatedList thePage) throws BaseAppException{
thePage = thePage == null ? getPaginatedListFromRequest(request)
: thePage;
// Add Dummy search results
/*
* ArrayList searchResults =
... | [
"@Override\n\tpublic PageList<T> findPage(BaseForm form) {\n\t\tPageList<T> pageList = new PageList<>();\n\t\tpageList.setDataList(dao.findPageList(form));\n\t\tpageList.setCount(form.getTotalSize());\n\t\treturn pageList;\n\t}",
"private void getPaginatedSearchResults(HttpServletRequest request, QuestionListActi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a balance of this ATM | int getBalance() throws ATMDisabledException; | [
"public double getBalance()\n\t{ \n\t\tassert state == ATMState.TRANSACT;\n\t\treturn currentAccount.getBalance();\n\t}",
"public static double getbalance(){ \r\n return balance; /* return account balance */\r\n }",
"public int getBalan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a hero with a name and an initial position. | public GameObject(char symbol, int x, int y) {
this.symbol = symbol;
this.x = x;
this.y = y;
} | [
"public Hero(String name, int x, int y) {\n this.name = name;\n this.position = new Position(x, y);\n }",
"public Hero() {\n\t\tset_state('h');\n\t\tint[] default_position = {1, 1};\n\t\tset_position(default_position);\n\t}",
"private void addHero()\n {\n // Initial horizontal positio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The getCardData method grabs the data from the spots table in the database that corresponds with a clicked on spot marker. It then sends the JSON object to another method to be displayed on the card view. | private void getCardData(Marker marker) {
//GET SPOT ID FROM THE MARKER THAT WAS CLICKED ON AND SET URL PATH FOR PHP FILE
final String clickID = marker.getSnippet();
String url = Config5.DATA_URL_card;
//START STRING REQUEST WITH URL PATH
StringRequest stringRequest = new StringReque... | [
"private void populateCard(OriginTrain data) {\n TextView trainId = findViewById(R.id.train_id);\n trainId.setText(data.getTraincode());\n String scheduleText = getString(R.string.sch_arr) + data.getScharrival();\n TextView schArr = findViewById(R.id.schArr);\n schArr.setText(sche... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests addGuitar() by adding then getting. | @Test
void testaddGuitar() {
Guitar expected = this.testGuitar;
Inventory TestObj = new Inventory();
this.addGuitarSpec = new GuitarSpec(manufacturer.Martin,
type.Electric,
backWood.Maple,
topWood.Maple,
"Stratocaster");
TestObj.addGuitar("1700-400", 699.00, addGuitarSp... | [
"@Test\r\n\tpublic void addItemTest() {\r\n\t\tSimRandom nums = new SimRandom();\r\n\t\tFloor floor = new MockFloor(nums);\r\n\t\tInventory items = new Inventory(floor, nums);\r\n\t\tShelf test = new Shelf(new Point(1, 1));\r\n\t\tItem i = new Item(\"Hat\", 234, test);\r\n\t\titems.addItem(i);\r\n\t\t// assertEqual... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: f | private R m37229f() {
this.f33901i = false;
try {
this.f33901i = m37230g();
} catch (Throwable th) {
this.f33898f.f33842b = C12910c.m37582a((Context) this.f33894a.get(), th);
this.f33898f.f33844d = th.getMessage();
}
R a = mo31159a(this.f33901i... | [
"public abstract T mo8125a(F f);",
"public void mo92799a(float f) {\n }",
"public static void f() {\n\n\t}",
"@Override\n public void f() {\n }",
"void mo11404bf(float f);",
"private void f() {\n }",
"void mo22696a(float f);",
"private static void plus(float f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
determines if there was a fatal exception if not then determine if the request was for a folder/file if it was a file was it executable | void send() throws IOException {
if (!error.equalsIgnoreCase("200 OK")) {
client.print(buildHeader());
String err = "<h1>" + error + "</h1>";
client.write(err.getBytes("ASCII"));
} else {
if (body.isDirectory()) {
sendDir();
} e... | [
"private void checkNowFile() throws Exception{\n if(_body == null){\n _body = JP.go.ipa.oz.system.OzClassFile.search( _code, _name);\n }\n /* next global search */\n if(_body == null){\n try{ \n JP.go.ipa.oz.system.OzClassLoader.loadClass(_code);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
height if the first column makes contact | public float getMoveValue(int orient, int slot) {
int height = top[slot]-getpBottom()[nextPiece][orient][0];
//for each column beyond the first in the piece
for(int c = 1; c < pWidth[nextPiece][orient];c++) {
height = Math.max(height,top[slot+c]-State.getpBottom()[nextPiece][orient][c]);
}
// Check ... | [
"public int getFirstRowHeight() {\r\n return 20;\r\n }",
"public boolean isFull() {\r\n return height >= 2;\r\n }",
"public int getRowHeight() {\r\n return 10;\r\n }",
"private int getCellHeight()\n {\n return cellHeight + (borderThicknessY * 2);\n }",
"public static int getHeight()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
send message to server | private void sendData(Message m){
try {
if(handler != null) {
os_stream.writeObject(m);
os_stream.flush();
os_stream.reset();
}
} catch (Exception e) {
e.printStackTrace();
}
} | [
"public void send(String message){\n\t\tSystem.out.println(\"Server Send: \"+ message);\r\n\t\ttry { outputstream.write(message.getBytes()); }\r\n\t\tcatch (IOException e){ System.out.println(\"Server: \"+ e.toString()); setState(State.END); }\r\n\t}",
"public void sendMessage(String msg) \n {\n try\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public List<QuoteFabricReport> getQuoteFabricReportByPara(
Map<String, Object> paramap) {
return quoteFabricReportDao.getQuoteFabricReportByPara(paramap);
} | [
"@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 name of the currently active generator. | public String getCurrentGeneratorName() {
return generators.get(currentGenerator).getName();
} | [
"public NameGenerator getNameGenerator() {\n\t\tif (nameGenerator == null) {\n\t\t\tnameGenerator = new MD5NameGenerator();\n\t\t}\n\t\treturn nameGenerator;\n\t}",
"public IdentifierGenerator getGenerator();",
"public final Class<? extends Generator> getGenerator() {\n // generatorType is null when deserial... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Send query to sparql endpoint using REST or SOAP messages | Mappings send(Node serv, Query q, Mappings lmap, Environment env, int start, int limit) {
Query g = q.getOuterQuery();
int timeout = 0;
Integer time = (Integer) g.getPragma(Pragma.TIMEOUT);
if (time != null) {
timeout = time;
}
try {
// generate bindings from ... | [
"private void handleSparql(RoutingContext routingContext) {\n\n\t HttpServerResponse response = routingContext.response();\n\n\t String sparqlQuery = routingContext.request().getParam(\"sparqlQuery\");\n\n\t System.out.println(\"Send \" + sparqlQuery + \" to vastix.blazegraph\");\n\n\t BlazegraphService... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Outputs help for the command and its options. | private void usage() {
// automatically generate the help statement
HelpFormatter formatter = new HelpFormatter();
formatter.printHelp(this.commandName, this.options);
System.exit(0);
} | [
"public void commandHelp(){\n\t\tSystem.out.println(\"Command Meaning\");\n\t\tSystem.out.println(\"--------------------------------\");\n\t\tSystem.out.println(\"--------------------------------\");\n\t\tSystem.out.println(\"b Bet previous amount\");\n\t\tSystem.out.println(\"b VALUE Bet VALUE\");\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance with a custom painter. | HighlightInfo(final long start, final long end, @Nullable final IHighlighter.IHighlightPainter painter)
{
super();
this.start = start;
this.end = end;
this.painter = painter;
} | [
"public Painter() {}",
"public Painter<?> getPainter() {\r\n\t\tint width = 100;\r\n\t\tint height = 100;\r\n\t\tColor color1 = Color.WHITE;\r\n\t\tColor color2 = Color.GRAY;\r\n\t\tLinearGradientPaint gradientPaint = new LinearGradientPaint(0.0f, 0.0f,\r\n\t\t\t\twidth, height,\r\n\t\t\t\tnew float[] { 0.0f, 1.0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inserts a reimbursement request in the database. It returns true if the reimbursement was stored successfully. | public boolean insert(Reimbursement reimbursement); | [
"@Override\n public int saveReimbursementRequest(ReimbursementRequest reimb) throws DAOException{\n\n try{\n Session session = HibernateConnectionUtil.getSession();\n Transaction tx = session.beginTransaction();\n if (reimb.getID() == -1) session.save(reimb);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns all WordNet nouns | public Iterable<String> nouns() {
return this.nouns.keySet();
} | [
"public Iterable<String> nouns() {\n\t\treturn nounsST.keys();\n\t}",
"public Iterable<String> nouns()\n {\n\t return wordMap.keySet();\n }",
"public Iterable<String> nouns() {\n return nounTable.keys();\n }",
"public Set<String> nouns() {\n Set<String> nounset = new HashSet<String>(n);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
test a bunch of random prefixes | public void testPrefixes() throws Exception {
int num = atLeast(100);
for (int i = 0; i < num; i++) assertSame(TestUtil.randomUnicodeString(random(), 5));
} | [
"private static Prefix randomPrefix() {\n int r = rand.nextInt(6);\n switch (r) {\n case 0:\n return Prefix.FEMTO;\n case 1:\n return Prefix.PICO;\n case 2:\n return Prefix.NANO;\n case 3:\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | private void setCommentDate() {
commentAdapter = new ActivityCommentAdapter(context,
commentData, this, DetailsData.get("id"));
commentList.setAdapter(commentAdapter);
} | [
"@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"
]
]
}
} |
Validates whether the fields contained in this Builder are set accordingly. | @Override
protected void validate() throws AxonConfigurationException {
super.validate();
if (storeTokenBeforeProcessing == null) {
storeTokenBeforeProcessing = false;
}
assertNonNull(messageSource, "The StreamableMessageSource is a hard requiremen... | [
"public void validationCheck() {\n if (minFloorSettings > maxFloorSettings) {\n minFloorSettings = DEFAULT_MIN_FLOOR_SETTINGS;\n maxFloorSettings = DEFAULT_MAX_FLOOR_SETTINGS;\n }\n if (minRoomSettings > maxRoomSettings) {\n minRoomSettings = DEFAULT_MIN_ROOM_SE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: protected | public void onResume() {
super.onResume();
MainTask.GetInstance().SetUserCallBack(this);
ResetData(false);
if (!mfgAutoEnt) {
Evc.GetInstance().evol_workmode_set(12);
Log.d(TAG, "WORKMODE_EXD");
}
mfgShow = true;
mfgFinish = false;
... | [
"@Override\n }",
"protected void method_5557() {}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n public void publicando() {\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"pro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the project an user has been assigned to (meaning the user can create document) | List<MendelProject> findProjectUserAssignedTo(MendelUser user) throws MendelRuntimeException; | [
"public List<Project> getProjectsForUser(final User user);",
"private Project getSelectedProject() {\n Optional<String> selectedValue = projectName.getSelectedValue();\n if (selectedValue.isPresent()) {\n long projectId = Long.parseLong(selectedValue.get());\n Optional<Project>... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the velocity map. | public Map<String,Object> getVelocityMap(); | [
"public Vector2[][] getVelocityMap();",
"public int[] getVelocity(){\n return velocity;\n }",
"@Basic @Raw\n\tpublic Velocity getVelocity(){\n\t\treturn velocity;\n\t}",
"@Override\n\tpublic final Velocity getVelocity() {\n\t\treturn velocity;\n\t}",
"public Map2D getMap() {\n return map;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public long getItemId(int position) {
return position;
} | [
"@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"
]
]
}
} |
(LAMBDA HERE used to create filtered list) The filterTableByCustomer method displays all the appointments associated with the customer that is currently selected inside of the customer combo box. A lambda expression is use in this method to create a filtered list that pulls all the appointments with the customer id you... | public void filterTableByCustomer() {
int customerID = Integer.valueOf(customerIDTxt.getText());
ObservableList<Appointments> allAppointments = DBAppointments.getAllAppointments();
FilteredList<Appointments> selectedCustomerAppointments = new FilteredList<>(allAppointments, i -> i.getCustomerID... | [
"public void searchALLAppointmentsByCustomerName() {\n FilteredList<Appointment> filteredData = new FilteredList<>(allAppointmentList, b -> true);\n\n // 2. Set the filter Predicate whenever the filter changes.\n tfAllAppcCustIdSearch.textProperty().addListener((observable, oldValue, newValue) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates parameter token with given parameter number. | public ParamToken(int number, CharCode code)
{ this.number = number; this.code = code; } | [
"ParameterToken createParameterToken();",
"@Override\n public String createToken(String... params) {\n return name() + \":\" + params[0] + \":\" + params[1];\n }",
"IParameter buildParameter(String name, String value, byte type);",
"public Token<V> build(int index) ;",
"public Parameter cre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new fractal with the selected SaveVeiw. Returns null if the save doesn't exist | public static Fractal loadFractal(String name){
SavedView save = saves.get(name);
if(save == null){return null;}
Fractal f;
// Try to create a new instance of the Fractal
try{
f = save.type.newInstance();
}catch(InstantiationException | IllegalAccessException e){throw new FractalTypeException();}
... | [
"private void save() {\n\t\tISceneSet sceneSet = guiHelper.guiToModel();\r\n\t\t// 2. use interlight-model method to create json scene from common-datamodel\r\n\t\tDataToJSON data = new DataToJSON(sceneSet.getCuboids(), sceneSet.getCylinders(), sceneSet.getLightPoints(), sceneSet.getLightSources(), sceneSet.getRoom... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method responsible for creating titles | private Label createTitle(String title, int size) {
Label label = new Label(title);
label.setFont(new Font("Arial", size));
label.setTextFill(Color.web("#666"));
label.setPadding(new Insets(0, 0, 5, 0));
return label;
} | [
"public void createTitle() {\n\t\tJLabel title = new JLabel(\"Personalized Risk Assessment\", SwingConstants.CENTER);\n\t\ttitle.setFont(titleFont);\n\t\ttitle.setBounds(0, TOP_MARGIN, TITLE_WIDTH, TITLE_HEIGHT);\n\t\tp.add(title);\n\t}",
"@Override\n\tpublic void initTitle() {\n\t\t\n\t}",
"public void createT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {
} | [
"@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 was generated by MyBatis Generator. This method corresponds to the database table admin_settings | int deleteByPrimaryKey(String id); | [
"protected AdminSettings() {}",
"@Override\n\t\n\tpublic List<Admin> findAll(){\n\t\treturn jdbcTemplate.query(\"select * from Admin\", new RowMapper<Admin>() {\n\n\t\t\t@Override\n\t\t\tpublic Admin mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
There are three factory methods on Stream API. Of() : this is a static method, used to create a stream of values passed to this method iterate() & generate() : both are static and infinite methods iterate(): is used to iterate over any expression for infinite time to create infinite, initial value is supplied and limit... | public static void main(String[] args) {
/**
* Example 01
* of() factory method
* Here we will use to create a stream of String objects
*/
Stream<String> stringStream = Stream.of("Adam","Jenny","Emily","Dave");
stringStream.forEach(System.out::println);
... | [
"public Stream iterateStream() {\n return Stream.iterate(2, x -> x++).limit(10);\n }",
"static <T> Stream<T> generate(Supplier<T> paramSupplier) {\n/* 1051 */ Objects.requireNonNull(paramSupplier);\n/* 1052 */ return StreamSupport.stream(new StreamSpliterators.InfiniteSupplyingSpliterator.OfRef<... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Execute a named query for persistent instances, binding a number of values to ":" named parameters in the query string. A named query is defined in a Hibernate mapping file. | List findByNamedQuery(final String queryName, final String[] paramNames, final Object[] values, final Type[] types)
throws DataAccessException; | [
"@Override\n\tpublic boolean executeNamedQuery(String namedQuery, List<Object> params) throws DaoException {\n\t\tQuery query = entityManager.createNamedQuery(namedQuery);\n\t\t\n\t\tfor (int i = 0; i < params.size(); i++) {\n\t\t\tquery.setParameter(\"param\" + i, params.get(i)).toString();\n\t\t\t\n\t\t}\n\t\t\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compute an trade index, between 1 to 24 (for n+1,...,n+24) Note: the auction, and therfore the trade creation, take place in the timeslot following the timeslot during which bids are submitted. | public int computeBidGroupIndex(int tradeCreationTimeslot, int timeslot) {
// int bidsSubmisionTimeslot = tradeCreationTimeslot - 1;
// return timeslot - bidsSubmisionTimeslot;
return ob.hourAhead+1;
} | [
"long makeIndex(long time) throws T2Exception;",
"static double GBCEMarketIndex()\n {\n double marketIndex = 1;\n double count = 0;\n\n for (StockSymbol symbol: StockSymbol.values())\n {\n Double price = volumeWeightedStockPrice(symbol);\n if (price != null)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns True if has two PCurves in the parametric space of . i.e. is on a closed surface and is on the closing curve. | public static long IsClosed( TopoDS_Edge E, TopoDS_Face F) {
return OCCwrapJavaJNI.BRep_Tool_IsClosed__SWIG_1(TopoDS_Edge.getCPtr(E), E, TopoDS_Face.getCPtr(F), F);
} | [
"boolean hasCurve();",
"public boolean isOnCurve() {\n return isOnCurve(curve);\n }",
"public boolean isPartOfClosedSurface() {\n\t\treturn false;\n\t\t// return (getMetasLength() > 0);\n\t}",
"private boolean arePointsClose(PointF p1, PointF p2) {\n float diffX = Math.abs(p1.x - p2.x);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Json json=new Json(); | public Map<String, Object> upPhoto(MultipartFile file, HttpServletRequest request, HttpServletResponse response, String id) {
Map<String, Object> map = new HashMap<String, Object>(16);
try {
// 文件保存目录路径
String realPath = Global.getUserfilesBaseDir() + Global.USERFILES_BASE_COPY_URL + "/" + "image";
// 判断文件... | [
"public static void ParserJson() {\n\t\t//empty constructor\n\t}",
"public void initJson() {\n\t}",
"public Object fromJson(Json json);",
"public ReadJson(){\n // myJson = this;\n }",
"public JsonObject() {\n }",
"public JSONPlayer(){\n player_json = new JSONObject();\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public boolean containsBeanDefinition(String arg0) {
return false;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns status code for this optimization. | @AppSearchResult.ResultCode
public int getStatusCode() {
return mStatusCode;
} | [
"public int getStatus_code() {\n return status_code;\n }",
"public int getStatus() {\n if (okHttpResponse == null) {\n return 0;\n }\n\n return okHttpResponse.code();\n }",
"protected String getStatus(){\n return CoreConsts.OpResults.StatusCodes.OK;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onSuccess(String t) {
super.onSuccess(t);
MyCookieStore.setcookieStore(finalHttp);
Log.i("UserReLoginParser", "UserReLoginParser" + t);
map = reloginParse(t);
Log.i("UserReLoginParser", "UserReLoginParser" + map);
OnUserParseLoadCompleteListener.onEmergencyParserComplete... | [
"@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"
]
]
}
} |
Virtually sort B by an array to record the index of B after sorting | public static int[] advantageCount2(int[] A, int[] B) {
if (A == null || B == null || A.length != B.length) return new int[0];
Arrays.sort(A);
final int len = A.length;
final Integer[] bIndex = new Integer[len];
for (int i = 0; i < len; i++) {
bIndex[i] = i;
... | [
"public static void sortAInTermsOfB(double[] A, double[] B)\r\n\t\t{\r\n\t\t\tint numOfIts=0;\r\n\t\t\tfor(int i=0;i<A.length;i++)\r\n\t\t\t{\r\n\t\t\t\tdouble smallest=B[i];\r\n\t\t\t\tint position=i;\r\n\t\t\t\tfor(int j=i+1;j<A.length;j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tnumOfIts=numOfIts+1;\r\n\t\t\t\t\tif(B[j]<small... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |