query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Getter method for property cellId.
public String getCellId() { return cellId; }
[ "MeterCellId meterCellId();", "public int getCell()\n\t{\n\t\treturn cell;\n\t}", "@java.lang.Override\n public int getLobbyCellid() {\n return lobbyCellid_;\n }", "@Override\n\tpublic int CellID() {\n\t\treturn 0;\n\t}", "public int getLobbyCellid() {\n return lobbyCellid_;\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Replaces necessary foul balls, if there are any.
private void replaceFoulBalls(){ //Replaces any balls which are not red that have been pocketed this round. for(SnookerBall b : rBalls){ if(!b.getColour().equals("RED")){ b.replaceBall(); } } }
[ "void clearBalls() {\n balls.clear();\n }", "private void brickCollidesBall(){\n for(int i = 0; i < bricks.size(); i++){\n if (bricks.get(i).isColliding(ball)) {\n //System.out.println(\"collision happened\");\n Point2D speed = ball.getObject(\"velocity\")...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return the views type
@Override public int getItemViewType(int position) { return getItem(position).getItemType(); }
[ "abstract protected String getViewType();", "public ManagedViewType<X> getDeclaringType();", "public int getViewerType() { \r\n return this.expViewer.getViewerType();\r\n }", "public String getType ();", "@Override\r\n\t\tpublic int getViewTypeCount() {\n\t\t\treturn 1;\r\n\t\t}", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method produces the final timeseries
public static void produceFinalDataset(ExecConf conf) throws IOException { Path pt; int i = 1; BufferedReader resultBr; String lineResult; HashMap<String, Float> results = new HashMap<>(); boolean flag = true; while (true) { try { pt = new Path(conf.getHdfsPath() + "RegressionResults/" + i); ...
[ "List<TimeseriesDataPoint> timeseriesData();", "private void createTimeSeriesPVs() {\n\t\tif (!XspressPvProviderBase.pvExists(String.format(getFullPvName(SCA_TIMESERIES_TEMPLATE), 1, 1))) {\n\t\t\treturn;\n\t\t}\n\t\tlogger.info(\"Creating scalar time series array PVs\");\n\t\tpvScalerTimeSeries = new ReadOnlyPV[...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Saves the report in a SVformatted file.
private File saveReport(String separator, String extension) throws DbException, IOException, CounterReportsException { // Determine the report file name. CounterReportsManager reportManager = daemon.getCounterReportsManager(); String fileName = getReportFileName(extension); File reportFile = new F...
[ "private void saveReport() {\n this.console.println(\"\\n\\nEnter the file path for where the report \"\n + \"is to be saved.\");\n String filePath = this.getInput();\n \n try (PrintWriter out = new PrintWriter(filePath)) {\n //Write the report header\n out.println(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by nguyenanhtrung on 09/06/2017.
public interface LoginMvpPresenter<V extends LoginView> extends MvpPresenter<V> { void onClickButtonSignup(); void onCLickButtonSignin(String email, String password); void loginWithLoginRemember(); void onClickConnectAgainDisconnectNetworkDialog(String email, String password); void onClickImageS...
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
apply 2D(x,y) translate on model matrix
public void translate(float x, float y) { BaseMatrix.translate(modelMatrix, x, y, posZ); posX = modelMatrix[12]; posY = modelMatrix[13]; }
[ "Matrix3x2d translateLocal(double x, double y, Matrix3x2d dest);", "public abstract void translate(int x, int y);", "private void translationTransform (\n\tfinal double[][] matrix\n) {\n\tdouble dx = matrix[0][0];\n\tdouble dy = matrix[1][0];\n\tfinal double dx0 = dx;\n\tint xMsk;\n\tint yMsk;\n\tx = dx - Math....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 137 /Coverage entropy=0.0
@Test(timeout = 4000) public void test137() throws Throwable { String string0 = EWrapperMsgGenerator.updateAccountTime("F`T"); assertEquals("updateAccountTime: F`T", string0); }
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clean up before running the listener, because we don't know what the listener will do (e.g. remove/replace component which triggered the action). The UI will be locked until the listener returns.
public void onEvent(Event modalEvent) throws Exception { component.removeEventListener("onModalAction", this); ZK.clearBusy(); action.onEvent(event); }
[ "public void release() {\n listener.release();\n }", "public void onCleared() {\n super.onCleared();\n this.viewModelJob.cancel();\n }", "public void dispose()\n {\n _icons=null;\n if (_button!=null)\n {\n if (_listener!=null)\n {\n _button.removeActionListener(_l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a Map of FeatureListener[] by FeatureSource for all matches with featureType and transaction. A FeatureSource is considered a match when typeName and Transaction agree. Transaction.AUTO_COMMIT will match with any change.
Map getListeners(String typeName, Transaction transaction) { Map map = new HashMap(); Map.Entry entry; FeatureSource featureSource; EventListenerList listenerList; FeatureListener[] listeners; synchronized (listenerMap) { for (Iterator i = listenerMap...
[ "public void handleSourceDiff( IFeatureInfoId typeInfoID, IDatabaseTransaction transaction );", "public Map<String, SourceDataHandler> getSourceDataHandlers() throws Exception;", "Map<Definition, String> getSources();", "private Map<String, Set<PolygonStreamMessageType>> getRegisteredTickerChannels(PolygonStr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Options allow user to configure access to instance's metadata .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
@java.lang.Override public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder getMetadataOptionsOrBuilder() { return getMetadataOptions(); }
[ "public void setMetadata(EksMetadata metadata) {\n this.metadata = metadata;\n }", "com.google.cloud.compute.v1.Metadata getCommonInstanceMetadata();", "void updateInstanceMetadata(String serviceName, String instanceAddress, Map<String, String> metadata, boolean isOwned);", "com.google.analytics.dat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets array of all "soaprole" element
public void setSoapRoleArray(com.sun.java.xml.ns.javaee.String[] soapRoleArray) { synchronized (monitor()) { check_orphaned(); arraySetterHelper(soapRoleArray, SOAPROLE$14); } }
[ "private void setRole() {\n\n\t}", "protected void setRoles(List<Role> roles) {\n this.roles = roles;\n }", "private void createRoles(NodeList partList) {\n roles = new Extra[partList.getLength()];\n for (int i = 0; i < partList.getLength(); ++i){\n Node curRole = partList.item(i);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor para Query en Get
public SkillDto(Long idPoliticaMHabilidad, Long idHabilidadpos, String descripcion, Long idDominio, Long idPolitica){ this.idPoliticaMHabilidad=(idPoliticaMHabilidad == null ? null:idPoliticaMHabilidad.toString()); this.idHabilidadpos= (idHabilidadpos == null ? null:idHabilidadpos.toString()); this.descripcion...
[ "public Query() { }", "@Override\r\n\tpublic Param query() {\n\t\tParam param = new Param();\r\n\t\tparam.setId(1);\r\n\t\treturn paramDao.query(param);\r\n\t}", "public BasicQueries() {\n }", "protected abstract String createQuery();", "public PatientVitalStatusQuery() {}", "public abstract QueryColl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto generated method signature
public edu.internet2.middleware.grouper.ws.soap_v2_5.xsd.StemSaveResponse stemSave( edu.internet2.middleware.grouper.ws.soap_v2_5.xsd.StemSave stemSave42) throws java.rmi.RemoteException ;
[ "default String getSignature() {\n StringBuffer sb = new StringBuffer();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Seleccion de preguntas medias aleatorias, garantizado unos minimos de cada tipo de multiemdia y sin repeticiones
private void seleccionarPreguntasMedium(){ boolean sinRepetir = true; int numA = 0, numV = 0; switch(longitud){ case 5: numA = 2; numV = 1; break; case 10: numA = 3; numV = 2; ...
[ "private void PredMobili(){\n Mobili sedia = new Sedia(1,1, \"SD001\");\n sedia.setNum(6);\n Mobili tavolo = new Scrivania(120,60, \"SC001\");\n tavolo.setNum(1);\n mobili.add(sedia);\n mobili.add(tavolo);\n }", "public void carregarMedidas(Pesquisa pesquisa){\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines if the members of array are evenly spaced.
public static boolean isUniformInterval(float[] array) { boolean ret = true; if (array.length > 1) { float d0 = array[1] - array[0]; float d1; for (int i = 2; i < array.length; i++) { d1 = array[i] - array[i - 1]; if (d0 != d1) { ret = false; break; ...
[ "public boolean percolates() {\r\n for (int i = 0; i < size; i++) {\r\n if (isFull(i, size - 1)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public boolean percolates() {\n \tint n = this.percArray.length;\n\t\tif (percArray.length == 1...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end entryRuleLogicalOrExpression $ANTLR start ruleLogicalOrExpression ../org.yakindu.sct.statechart.expressions/srcgen/org/yakindu/sct/statechart/parser/antlr/internal/InternalExpressions.g:2704:1: ruleLogicalOrExpression returns [EObject current=null] : (this_LogicalAndExpression_0= ruleLogicalAndExpression ( (...
public final EObject ruleLogicalOrExpression() throws RecognitionException { EObject current = null; EObject this_LogicalAndExpression_0 = null; EObject lv_rightOperand_3_0 = null; EObject temp=null; setCurrentLookahead(); resetLookahead(); try { //...
[ "public final void rule__LogicalOrExpression__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReflex.g:7946:1: ( ( RULE_LOGICAL_OR ) )\n // InternalReflex.g:7947:1: ( RULE_LOGICAL_OR )\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Private helper methods (alphabetical order)
private void loadMoreData() { isLoading = true; Util.getClient() .getCloudItemsAsync(sourceId, currentPath, nextTokens.get(currentPath)) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(this); }
[ "@Override\n\tpublic void sortAsc() {\n\t\t\n\t}", "String preOrder();", "protected abstract String getSortName();", "private Sorting() {}", "private SortingUtilities() {\n\n\t}", "@Override\n public boolean isSortedAscending() {\n\n final String firstLetter = getFirstLetterOfName();\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public int create(WorkForm entity) { sql = "insert into workForm values (?,?,?,?,?,?,?,?,?)"; value.add(entity.getId()); value.add(entity.getBatchId()); value.add(entity.getProcId()); value.add(entity.getQuaNum()); value.add(entity.getDisquaNum()); value.add(entity.getTime()); value.add(entit...
[ "@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" ] ] } }
Does nothing Not utilised for dumping SOAP message.
public void close(final MessageContext context) { //Do nothing }
[ "public byte[] serialize() throws SOAPException;", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, _1._0._0._127.GetLog param, boolean optimizeContent)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Look for a collection of DataTransferObjects in the cache
public static boolean dtosExist(int[] dependencyIds) { // TODO: REVIEW: Code could surely be clearer/more concise. boolean allDTOsDoExist = false; OUTER: for (int i = 0; i < dependencyIds.length; i++) { int id = dependencyIds[i]; boolean foundDTOWithThisId = false; INNER: for (DataTransferObjec...
[ "@Override\n public Collection<DataObject> getAllDataObjects() {\n logger.trace(\"cache has {} entries\", fileCache.getSize());\n Collection<DataObject> ret = new HashSet<DataObject>();\n for (String name : fs.list()) {\n if (fileCache.get(name) == null) {\n FSDataObject file = getFile(name);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: 0000
public final void restoreViewState(Bundle bundle) { Bundle savedInstanceState = bundle; Bundle bundle2 = savedInstanceState; if (this.mSavedViewState != null) { this.mInnerView.restoreHierarchyState(this.mSavedViewState); this.mSavedViewState = null; } thi...
[ "private B000066() {\r\n\r\n\t}", "@Override\n\tpublic int modifiers() {\n\t\treturn 0;\n\t}", "protected void method_5557() {}", "@Override\r\n\tpublic int getAccessCode() {\n\t\treturn 0;\r\n\t}", "public abstract void mo30462c();", "@Override\n public int utilite() {\n return 0;\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setTribeNames sets both tribe names accordingly and stores them in the tribeNames string array.
public void setTribeNames(String tribeOne, String tribeTwo){ tribeNames[0] = tribeOne; tribeNames[1] = tribeTwo; }
[ "public void setComboxTribe(Tribe tribe)\n {\n modeltribes.addElement(tribe.getName());\n }", "public void setTruename(String truename) {\r\n this.truename = truename == null ? null : truename.trim();\r\n }", "public void setName(String arg[]) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Simply sets the goal based upon the planned building.
public void refreshGoal() { goal = (building == null?new Bundle():building.getCost()); }
[ "protected void setGoal(double goal) {\n\t\tthis.goal = goal;\n\t}", "public void setGoal(double goal) {\n\t\tmGoal = goal;\n\t}", "public void setGoal(Vector2 goal){\n\t\tthis.goal = goal;\n\t}", "void setNewGoal(int newGoal) {\n this.goal = newGoal;\n }", "public void testSetGoal()\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the business object where the model gets its data from.
@Override public void setBusinessObject(Object newBusinessObject) { super.setBusinessObject(newBusinessObject); fillModel(); }
[ "void setBizModel(BiexObject bizModel);", "public void prepareExternalBusinessObject(BusinessObject businessObject);", "public ExchangeEditModel(Object businessObject) {\n\t\tthis();\n\t\tsetBusinessObject(businessObject);\n\t}", "@Override\n public void setBusinessObject(Object newBusinessObject) {\n\t\t/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Changes the Y value for the position of the relationship in the map
public void setPositionY(int positionY) { this.positionY = positionY; }
[ "public void setY(int value) { \r\n\t\tposition.y = value; \r\n\t}", "public abstract void setYPos(int yPos);", "@Override\n\tpublic void setY(int newY) {\n\t\t\n\t}", "public void setYPosition(float _y);", "public void setY(float y) { this.y = y; changed = true;}", "public void setYPosition(int value) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
interfejs so metodi za observerot
public interface Observing { /** * metodot koj go povikuva subjektot za da go izvesti za napravenata promena */ void notifyObserving(); /** * se otkazuva od nadgleduvanjeto na subjektot */ void unregister(); }
[ "@Override\n\tpublic void observer(Object obj) {\n\t\t\n\t}", "@Override\n public void notifierObserveurs() {\n observeur.notify();\n }", "public interface Observer {\r\n\r\n /**\r\n * Get observer id.\r\n * @return\r\n */\r\n String getId();\r\n\r\n /**\r\n * Update temperature ob...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to separate out the Feature Option Pairs T::N::R~T::N::R from the Expression.
protected List getFeatureOptionFromExp(String strExp,char cDelimiter){ int iIndex = strExp.indexOf(cDelimiter); String strTemp = strExp; StringBuffer sEvalExpression = new StringBuffer(512); List featureOptionList = new ArrayList(); while (iIndex != -1) { strTemp = strTemp.substring(iIndex...
[ "List<String> normalizeExpression() {\n List<String> terms = new LinkedList<>();\n boolean isRightSide = false, firstRightTerm = false;\n for (String term : expression.split(\" \")) {\n if (term.equals(\"=\")) {\n isRightSide = true;\n firstRightTerm = true;\n continue;\n }\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method to handle Qnames
private void writeQName(javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String namespaceURI = qname.getNamespaceURI(); if (namespaceURI != null) { java.lang.String ...
[ "public int getIndex(String qName);", "public void setQyName(String qyName) {\n this.qyName = qyName;\n }", "private String qName(Namespace namespace, String localName)\n {\n \tString prefix = namespaces.getPrefix(namespace.URI);\n if (prefix == null || prefix.equals(\"\"))\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Types definition / StringObject: value=STRING;
@Override public ParserRule getRule() { return rule; }
[ "protected TYPE_STRING() {}", "public interface ObjectWithString {\n\tString getString();\n}", "private static final Type getStringType()\n {\n return new com.sun.star.uno.Type( String.class );\n }", "Object fromString(Type type, String value);", "@Override\n\t\t\tpublic Class<String> getType()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Object getItem(int position) { return getItem(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" ] ] } }
Deal one more card to the hand and than call "stand()". Double the hand's bet.
abstract protected void doubleDown();
[ "public void takeCard() {\n dealer.hit( this );\n }", "public void dealerTurn(Deck cards){\n while (hardScore()<17){\n \n }\n //call hit\n //display new card and score\n this.displayHand();\n }", "public static void dealNewHand(){\n\t\t\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
contentPanel.add(textField1, new GridBagConstraints(1, 1, 1, 4, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0));
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents ResourceBundle bundle = ResourceBundle.getBundle("resources"); dialogPane = new JPanel(); contentPanel = new JPanel(); scrollPane3 = new JScrollPane(); ...
[ "private void createTxtFields()\r\n\t{\r\n\t\ttxtFirstName = new JTextField();\r\n\t\ttxtFirstName.setToolTipText(\"Example : Harry; If name is Harry James Potter\");\r\n\t\tGridBagConstraints gbc_txtFirstName = new GridBagConstraints();\r\n\t\tgbc_txtFirstName.fill = GridBagConstraints.BOTH;\r\n\t\tgbc_txtFirstNam...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method that sets up action listeners from the Java objects
private void actionListeners() { home.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(Store.this, MainActivity.class); startActivity(intent); overridePendingTransition(R.ani...
[ "public void setActionListeners();", "private void AddActionEvents() \r\n\t{\r\n\t\tthis.Start.addActionListener(this);\r\n\t\tthis.Exit.addActionListener(this);\r\n\t\tthis.Rules.addActionListener(this);\r\n\t}", "private void setUpListeners() {\n ListenerService.addChangeListener(this.publicationYearFi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds MouseListener to the Selectable Level, clicking it selects it
private void registerMouseEvents() { addMouseListener(new MouseAdapter() { @Override public void mouseExited(MouseEvent e) { setBorder(defaultBorder); } @Override public void mouseEntered(MouseEvent e) { setBorder(hover...
[ "public void levelSelect() {\n\n if (canChangeToLevelSelect()) {\n Logger.info(\"Level Completed Presenter: level select\");\n audio.playSound(LDSound.SMALL_CLICK);\n screenChanger.changeToLevelSelect();\n }\n }", "private void createLockdownChoiceboxListener(){\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The method to set the value to status
public void setStatus(Choice<String> status) { this.status=status; this.keyModified.put("Status", 1); }
[ "private void setStatus(boolean value){\n this.status = value;\n }", "private void setStatus(Status value) {\n value.getClass();\n status_ = value;\n \n }", "public void setStatus(String status){\n this.status=status;\n }", "public void setStatus(java.lang.Integer value) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
static int m13811a(int i) { int[] iArr = f11090a; if (i < iArr.length) { return iArr[i]; } return -1; }
[ "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" ] ] } }
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent arg0) { if(arg0.getActionCommand().equals("็กฎๅฎš")) { double temp=Double.parseDouble(jf2.getText()); int playerPoint=(int)temp; System.out.println(playerPoint); Player pla=new Player(jf1.getText(),playerPoint); DataDisk dbDisk=new DataDisk(); dbDisk....
[ "@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" ] ] } }
draw the sprites and the bodies.
public void doOneFrame(DrawSurface d, double dt) { this.sprites.drawAllOn(d); this.sprites.notifyAllTimePassed(dt); if (this.remainedBlocks.getValue() == 0) { //100 point after destroy all the blocks. this.score.increase(100); this.running = false; } if (t...
[ "private void draw() {\n //Viewport/Camera projection\n batch.setProjectionMatrix(camera.projection);\n batch.setTransformMatrix(camera.view);\n //Batch setting up texture\n batch.begin();\n earth.draw(batch); //Draws earth\n drawAsteroid(); ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.pbui_Item_BulletDetailInfo item = 1;
public Builder setItem( com.mogujie.tt.protobuf.InterfaceBullet.pbui_Item_BulletDetailInfo.Builder builderForValue) { copyOnWrite(); instance.setItem(builderForValue); return this; }
[ "public Bullet getBullet(){\r\n return this.bullet;\r\n }", "public void item() {\n\t\t\n\t}", "public void setItem(Item item){\n this.item = item;\n }", "public void setItem(Item item) {\n this.item = item; \n }", "public void setItem(Object item){\n this.item = item;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses user input to "reminders" command.
public static Command handleReminder(String[] words) { if (words.length == 1) { return new ReminderCommand(); } else if (words.length == 2) { String taskType = words[1]; if (taskType.equalsIgnoreCase("todo")) { return new ReminderCommand(1); ...
[ "public static void getInput() {\n ui.printLine();\n ui.printMessage(ENTER_DESIRED_MONTH);\n ui.printLine();\n boolean isWrongCommand = true;\n\n while (isWrongCommand) {\n String temp = ui.getUserIn().toLowerCase();\n String[] input = temp.split(MULTIPLE_WHI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A method for painting the outline/border of the SmartEllipse
public void draw(java.awt.Graphics2D aBrush) { java.awt.Color savedColor = aBrush.getColor(); aBrush.setColor(_borderColor); java.awt.Stroke savedStroke = aBrush.getStroke(); aBrush.setStroke(new java.awt.BasicStroke(STROKE_WIDTH)); aBrush.draw(this); aBrush.setStroke...
[ "IDrawFigure outline();", "@Override\n public void fillEllipse(Point topLeft, Size size, Color color) {\n }", "@Override\n\tprotected void paintBorder( Graphics g )\n\t{\n\t\tg.setColor( getForeground() );\n\t\tg.drawOval(\n\t\t\t5,\n\t\t\t5,\n\t\t\tgetSize().width - 10,\n\t\t\tgetSize().height - 10 );\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table users
int updateByExampleSelective(@Param("record") Users record, @Param("example") UsersExample example);
[ "@SqlQuery(\"SELECT * FROM utilisateur order by mail asc\")\n\t@RegisterMapperFactory(BeanMapperFactory.class)\n\tList<User> all();", "@Override\r\n\tpublic List<Users> findAllUsers() {\n\t\tString FINDUSERS = \"select * from users\";\r\n\t\tList<Users> user = template.query(FINDUSERS, new RowMapper<Users>() {\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the API client
public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; }
[ "public void setClient (Client client) {\r\n\t\tthis.client = client;\r\n\t}", "void setRestClient(IRestClient restClient);", "private final void setApplicationApigeeClient (ApigeeClient apigeeClient) {\n\t\tentityApplication = (CollectionActivityApplication) getApplication();\n \tentityApplication.setApigee...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the number of records that will be used with lazy loading / pagination
public List findWithNamedQuery(String namedQueryName, int start, int end) { Query query = this.em.createNamedQuery(namedQueryName); query.setMaxResults(end - start); query.setFirstResult(start); return query.getResultList(); }
[ "public int countPaging() {\n\t\tint result;\n\t\tQuestionMapper questionMapper = sqlSession.getMapper(QuestionMapper.class);\n\t\tresult=questionMapper.countPaging();\n\t\treturn result;\n\t}", "@Override\r\npublic long getPageCount() {\n\t\tSession session = sessionFactory.openSession();\r\n\t\tlong count= (lon...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets up the JTextField with certain conditions.
private void setupChatDisplay() { chatDisplay.setEditable(false); chatDisplay.setEnabled(false); chatDisplay.setLineWrap(true); chatDisplay.setWrapStyleWord(true); chatPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); chatPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCR...
[ "private void setupInput()\n {\n display = new JTextField();\n display.setFont(new Font(\"DejaVu Sans\", Font.PLAIN, 20));\n display.setBackground(Color.PINK);\n display.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n display.setText(\"\");\n display.setEditable(false);\n\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method Override Update Particle Entity State //
@Override public void update(int dt) { // Fading Mechanics if(fade && alphaFade > 0) alphaFade = Math.max(alphaFade - dt * DEF_FADE_DECREMENT, 0); if(alphaFade <= 0) destroy(); }
[ "@Override\n public void updateEntity()\n {\n\n }", "@Override\n\tpublic void update(PSRFEntity t) {\n\t\t\n\t}", "public void onUpdate()\n {\n super.onUpdate();\n\n if(this.world.isRemote && this.dataManager.isDirty())\n {\n this.dataManager.setClean();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the underlying database table.
public static void createTable(Database db, boolean ifNotExists) { String constraint = ifNotExists? "IF NOT EXISTS ": ""; db.execSQL("CREATE TABLE " + constraint + "\"CUSTOMER_REGISTER\" (" + // "\"VIP_CARD_USER_LOG_FID\" TEXT PRIMARY KEY NOT NULL ," + // 0: vip_card_user_log_fid ...
[ "public void createTable() {\n StringBuilder sb = new StringBuilder(\"CREATE TABLE IF NOT EXISTS \").append(SCHEMA_NAME).append(\".\").\n append(TABLE_NAME).append(\"(\").append(\"key text PRIMARY KEY, \").\n append(\"value text) WITH default_time_to_live = 20;\");\n\n fi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
resets all properties to 0
public void resetIncrementsAndFactors() { incrementalUltimateUnindexed = 0; incrementalUltimateIndexed = 0; incrementalUltimateIndexedLast = 0; incrementalReported = 0; incrementalReportedLast = 0; incrementalPaid = 0; incrementalPaidLast = 0; cededFactorP...
[ "public void resetCounts() {\r\n resetProperties();\r\n }", "public void reset() {\n super.reset();\n mCount = mCount0;\n }", "public void reset() {\r\n\t\tthis.value = 0;\r\n\t}", "public void reset() {\n\t\tadds = 0;\n\t\tcompares = 0;\n\t}", "public void reset() {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by chenp_fjnu on 2017/3/11.
public interface IModel { }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n return 0;\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() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Graduates workflow wizard item from DRAFT to ACTUAL.
void graduateWfWizardItem(String wfWizardName, Long workEntityId) throws UnifyException;
[ "@Override\n public void stepActived(WizardStepEvent event) throws WizardStepException {\n }", "@Override\r\n\tpublic void flow(DeferredAssessment deferredAssessment) {\n\t\t\r\n\t}", "private void chooseRightStepAndSetDate(String sendStepHere)\n {\n if (sendStepHere.equals(\"1\")) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create pending intent for delete notification
private static PendingIntent createOnDismissedIntent(Context context, int notificationId) { Intent intent = new Intent(context, NotificationDeleteReceiver.class); intent.putExtra("push.notificationId", notificationId); return PendingIntent.getBroadcast(context.getApplicationContext(), ...
[ "@VisibleForTesting\n public Notification.Action createDeleteAction(Context context, Resources resources, Uri uri) {\n return new Notification.Action.Builder(Icon.createWithResource(resources, C0013R$drawable.ic_screenshot_delete), resources.getString(17040076), PendingIntent.getBroadcast(context, this.mC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
End Fetch// // Inserts// add new type
public int addType(Types type) throws Exception { Connect(); String query = "insert into types (name,username,types_users_id,date_time) values (?,?,?,?)"; PreparedStatement pst = con.prepareStatement(query); pst.setString(1, type.getName()); pst.setString(2, type.getUsername()); pst.setLong(3, type.getT...
[ "public void insert(Type value);", "com.guidewire.datamodel.TypecodeDocument.Typecode addNewTypecode();", "com.guidewire.datamodel.TypelistMapDocument.TypelistMap addNewTypelistMap();", "public void insertType(Reimbursement newT) \n\t{\n\t\tSession ses = HibernateUtil.getSession();\n\t\t//insert the new type ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find .cdr files in the upload folder. A .cdr file represents an incoming package. The .cdr files are returned in the form of a IncomingPackage object. All rendition assets related to those packages are included as IncomingAsset objects.
public List<IncomingPackage> getIncomingPackagesFromUpload() { final List<IncomingPackage> packages = new ArrayList<IncomingPackage>(); // Find each .cdr then look for all renditions related to it File uploadDir = new File(JEMM2Constants.UPLOAD_PATH); File[] cdrFiles = uploadDir.listFiles(new FilenameFilter()...
[ "@Override\n public List<CloudFile> getFiles() {\n //List<DbFile> dbFiles = dbClient.getFiles();\n //List<CloudFile> results = new ArrayList<>(dbFiles.size());\n //for (DbFile file : dbFiles) {\n// DropBoxClouldFile cf = new DropBoxCloudFile(file, dbClient);\n// results.add(cf)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 result = 5;
public boolean hasResult() { return ((bitField0_ & 0x00000010) == 0x00000010); }
[ "long getValue111();", "long getValue031();", "static Integer m3() {\n return 99; // autoboxing 99 into an Integer.\n }", "long getValue011();", "long getValue203();", "long getValue243();", "int getValue222();", "public int U()\r\n/* 2728: */ {\r\n/* 2729:2743 */ return 256;\r\n/*...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
just rend a string to browser
public void render(String i) { responseHead.Out(bos); try { bos.write((i).getBytes()); bos.flush(); } catch (IOException e) { e.printStackTrace(); } }
[ "public void render(StringBuffer buffer);", "String render(String input);", "public String consoleRender();", "public WebResponse renderText(String text) {\n\t\tif (text == null) {\n\t\t\tthrow new IllegalArgumentException(\"text must not be null\");\n\t\t}\n\t\tfinal byte[] bytes = text.getBytes(StandardChar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public long doQueryCountByCondition(Map<String, Object> condition) throws ServiceException { return 0; }
[ "@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" ] ] } }
Checks if this request is reporting any errors
public boolean hasErrors(IHTTPResponse toResponse) { return toResponse.hasErrors(); }
[ "public final boolean hasError() {\n\treturn (getStatus() & ERROR_MASK) != 0;\n}", "public final boolean hasError() {\n\t\treturn status.hasError();\n\t}", "public boolean hasError() {\n return error != null;\n }", "public boolean hasErrors() {\n\t\treturn errors.size() > 0;\n\t}", "public boole...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method indicates a new bar to be painted.
void addBar(boolean black, int weight);
[ "@Override\n public void paintBar(Graphics2D g2, XYBarRenderer renderer, int row, int column, RectangularShape bar, RectangleEdge base) {\n bar.setFrame(bar.getX(), bar.getY(), bar.getWidth() + 8, bar.getHeight());\n // g2.setBackground(Color.GREEN);\n g2.setC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Costruttore di una chiave primaria a partire dai valori delle varie colonne
public SendTRichiestaPk( final Integer idRichiesta ) { this.setIdRichiesta(idRichiesta); }
[ "private void riempiTitoliColonna() {\n /* variabili e costanti locali di lavoro */\n WrapRiga wrapRiga;\n WrapColonna wrapColonna;\n\n try { // prova ad eseguire il codice\n\n /* recupera la posizione della riga dei titoli di colonna */\n wrapRiga = this.getMapp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Coordenaas da las fichas derechas(centrales desplazando)
private Rectangle coordenadasIzq(int casilla){ int x = 0; int y = 0; if((casilla >= 1 && casilla <= 8) || (casilla >= 60 && casilla <= 76)){ x = -20; } else if((casilla >= 9 && casilla <= 25) || (casilla >= 77 && casilla <= 84)){ y = 20; } else if((casilla >= 26 && casilla <= 42) || (casilla >...
[ "Path getSiasaFilePath();", "public String obtenerDireccion(){\n \tFile temp = new File(\"Banco\");\n \treturn temp.getAbsolutePath()+File.separator; //obtener ruta completa\n }", "private void fecharArquivo() {\n\t\t\n\t}", "public void readfiles() {\n\n // String path = getClass().getResourc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 19 /Coverage entropy=1.0986122886681096
@Test(timeout = 4000) public void test019() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer(""); int int0 = xPathLexer0.endPosition(); assertEquals(0, int0); }
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional float angularDamping = 4;
float getAngularDamping();
[ "public Builder setAngularDamping(float value) {\n bitField0_ |= 0x00000080;\n angularDamping_ = value;\n onChanged();\n return this;\n }", "public void setAngularDamping(float damping) {\n controller.setAngularDamping(damping);\n }", "public @Dimensionless float getAn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new Board of BOARD_WIDTH width and BOARD_HEIGHT height.
public Board() { board = new Piece[BOARD_WIDTH][BOARD_HEIGHT]; }
[ "public void create_board() \n\t{\n\t\t// Define board with the dimensions `dimensions` x `dimensions`\n\t\tthis.BoardTiles = new BoardTile[dimensions][dimensions];\n\n\t\t// Index for game board\n\t\tint x, y;\n\n\t\t// Initialize each array position on the board to NULL\n\t\tfor (x = 0; x < dimensions; x++)\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cost > Int 2..3 [2 not in Cost.ref]
@Test(timeout = 60000) public void testConstantNotIn() { /* * import Control.Monad * import Data.List * * isUnique [] = True * isUnique (x : xs) = x `notElem` xs && isUnique xs * * choose 0 _ = return [] * choose _ [] = mzero *...
[ "int getCostOrNot();", "boolean hasCostId2();", "boolean hasCostId3();", "boolean hasCostValue3();", "boolean hasCostValue1();", "public interface Cost {\n}", "boolean hasCostW1();", "boolean hasCostW2();", "public boolean hasCostId2() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prepares this class for destruction.
public void finalize() { leftImage = null; rightImage = null; destImage = null; super.finalize(); }
[ "protected void destruction()\n\t\t{\n\t\t\tremove();\n\t\t}", "public final void cleanUp()\n {\n this.finalOperations();\n this.removeListeners();\n this.releasePointers();\n }", "@Override\n public void cleanup() {\n }", "public void cleanUp() {}", "@Override\n\tpublic void cleanu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve details of a particular file from RSpace Gallery.
ApiFile retrieveFileById(long fileId, String apiKey) throws IOException;
[ "ImageInfo fetchImageInfo(File file);", "@GET(\"drive/v3/files\")\r\n Call<GalleryItems> getFileDescription(\r\n @Query(\"fields\") String fields,\r\n @Query(\"q\") String q,\r\n @Query(\"orderBy\") String orderBy,\r\n @Query(\"pageSize\") Integer pageSize,\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Jared on 2016/12/14.
public interface FileUploadMapper extends Mapper{ @Select("select * from cloud_files where trash=0 and md5=#{md5} limit 1") PersistentFile getFileByMd5(String md5); @Insert("insert into cloud_files (createdAt,userId,appId,path,filename,size,contentType,md5,fileIndex,acl) " + "values(#{createdA...
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Select vehicleId and show add products components.
@FXML void showProductDetails(ActionEvent event) { boolean validate = vehicleComboBox.validate(); if (validate) { // Selected vehicleID String vehicleId = vehicleComboBox.getSelectionModel().getSelectedItem(); // Clear previous VehicleProducts observ...
[ "public AddProduct() {\n initComponents();\n displayWarehouse();\n }", "private void fillVehicleDropDown()\n {\n \tlbVehicle.clear();\n for (int i=0; i<myVehicles.getVehicleCount(); i++) {\n \tVehicle v = myVehicles.getMyList().get(i);\n lbVehicle.addItem(v.getVehic...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { if (e.getSource()==ask_minion_list) { askMinonList(); } else if(e.getSource()==ask_information) { askForInformation(); } else if(e.getSource()==listing_and_ask_for_information) { askMinonList(); DOUBLE_QUERY=true; askForInformation(); } ...
[ "@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" ] ] } }
finds all feedbacks of the movie by movie id
@Override public List <Feedback> findFeedbacksByMovieId(long id) throws DAOFailedException { List<Feedback> feedbacksList = new ArrayList<>(); ConnectionPool connectionPool = ConnectionPool.getInstance(); try ( ProxyConnection connection = connectionPool.takeConnection(); ...
[ "public Mfeedback getFeedbackById(int id);", "public static List<Feedback> findAllByDoctor(Long doctorid) {\n\n\t\tList<Feedback> Feedbacks=new ArrayList<>();\n\t\t\n\t\ttry{ \n\t\t\tConnection con=JdbcConnection.getJDBC_connection(); \n\t\t\tPreparedStatement ps=con.prepareStatement(\"SELECT * FROM feedback f wh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Extension constructor for pluggingin a custom parser.
protected ConcurrentPolicyFile( PolicyParser policyParser, Comparator<Permission> comp ) throws PolicyInitializationException { guard.checkGuard( null ); parser = policyParser; comparator = comp; /* * The bootstrap policy makes implies decisions until this constructo...
[ "protected Parser() {}", "public Parser() {\n this(null);\n }", "public Parser() {\n\t\tthis(new DefaultHapiContext());\n\t}", "public Parser()\n {\n AddAllowedCharacters();\n }", "public CommandLineParser() {\r\n }", "public DefaultParserHandler()\r\n\t{}", "public OCLParser()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
[ "@Override\n\tpublic void handlePost(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\n\n\n }", "@Override\n public void post(String path) {\n \n }", "@Override\r\n\tpub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
function that returns the number of columns in a 2D array
public static int cols(double[][] b) { return b[0].length; //returns the length of the first row }
[ "int ncol();", "public int getNumCols(int row)\r\n\t{\r\n\t\treturn array.get(row).size();\r\n\t}", "@Override\r\n\tpublic final int numColumns() {\r\n\t\treturn board[0].length;\r\n\t}", "public int getNumberOfColumns() {\n String[] kopfzeile = alleZeilen[0].split(COLUMN_SEPARATOR);\n // Ergebn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string provider = 1;
public boolean hasProvider() { return ((bitField0_ & 0x00000001) == 0x00000001); }
[ "public void setProvider(ProviderType param){\n \n this.localProvider=param;\n \n\n }", "public void setProvider(String _provider){\n\t\t\tprovider = _provider;\t\t\t\n\t\t}", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ mPowerManager.getMinimumScreenBrightnessSetting is hided, so we use reflect method here. mPowerManager.getMinimumScreenBrightnessSetting();
private int getMinimumScreenBrightnessSetting() { int resId = Resources.getSystem().getIdentifier("config_screenBrightnessSettingMinimum", "integer", "android"); int min = Resources.getSystem().getInteger(resId); Log.d(TAG, "MinimumScreenBrightnessSetting: " + mi...
[ "public int getMinimumScreenBrightnessForVrSetting() {\n return mContext.getResources().getInteger(\n com.android.internal.R.integer.config_screenBrightnessForVrSettingMinimum);\n }", "public int getDefaultScreenBrightnessForVrSetting() {\n return mContext.getResources().getInteger...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This uses the SOURCE retention suppression
@SuppressWarnings( "Arez:ProtectedMethod" ) @ComponentRef protected abstract Component getComponent();
[ "void removeBadSources();", "void sourceSinkType() throws SyntaxException {\n\t\tif (t.isKind(KW_url)) {\r\n\t\t\tconsume();\r\n\t\t}else if (t.isKind(KW_file)) {\r\n\t\t\tconsume();\r\n\t\t}else {\r\n\t\t\tthrow new SyntaxException(t,\"Error while parsing program at \" + t.kind);\r\n\t\t}\r\n\t\t\r\n\t}", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Empty out the box, and gives back the contents that were in in it (if possible)
public T empty(){ T junk = contents; contents = null; isFull = false; return junk; }
[ "private void clearContents() {\n \n contents_ = getDefaultInstance().getContents();\n }", "public void clear() {\n content = Content.EMPTY;\n }", "public void clear() {\n this.content = Mark.BLANK;\n }", "public void clear() {\n this.contents.delete(0, cont...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Theme__Group_5__1" $ANTLR start "rule__Theme__Group_5__1__Impl" InternalAbppt.g:1037:1: rule__Theme__Group_5__1__Impl : ( ( rule__Theme__FooterAssignment_5_1 ) ) ;
public final void rule__Theme__Group_5__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalAbppt.g:1041:1: ( ( ( rule__Theme__FooterAssignment_5_1 ) ) ) // InternalAbppt.g:1042:1: ( ( rule__Theme__FooterAssignment_5_1 ) ) ...
[ "public final void rule__Statement__Group_1__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMiniJava.g:2476:1: ( rule__Statement__Group_1__6__Impl )\n // InternalMiniJava.g:2477:2: rule__Statement__Group_1__6__Impl\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
link to the Data Tier
public LogicTier(DataTier dataTier) { this.dataTier = dataTier; }
[ "public TierData(String tierIdParam)\r\n\t{\r\n\t\tsetTierId(tierIdParam);\r\n\t}", "public Link(double dd) // constructor\r\n\t{\r\n\t\tdData = dd;\r\n\t}", "void downloadDataSet(String type) throws IOException;", "public abstract org.apache.spark.ml.regression.GeneralizedLinearRegression.Link defaultLink (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Declared at the super level
public void read(com.tangosol.io.ReadBuffer.BufferInput input) throws java.io.IOException { // import com.tangosol.util.ExternalizableHelper; super.read(input); setLeaseHolderId(input.readUnsignedShort()); setLeaseThre...
[ "@Override\n }", "@Override\n public void extornar() {\n \n }", "public void method_5753() {\r\n super();\r\n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\r\n public void publicando() {\n }", "@Override\n\tprotected void metprot() {\n\t\tsuper.m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Optional<Candidate> findById(Long userId, Long companyId, Long accelerationId) { return candidateDAO.findByIdCandidate(userId,accelerationId,companyId); }
[ "@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" ] ] } }
Retrieve from database the cities that user have subscribed to and save them into client object along with token and phone.
public void prepareClientForSave(Client client, User user) { client.setToken(user.getToken()); client.setPhone(NUMBER_PREFIX + user.getPhone()); List<String> selectedRegions = user.getCities(); if (selectedRegions != null && !selectedRegions.isEmpty()) { logger.info("cityRepository getByNameInList() invok...
[ "private void getFromCities() {\n\t\t\n\t\tfromCities = new ArrayList<String>();\n\t\tfromCities.add(\"Choose - From City\");\n\t\t\n\t\tNetworkEngine.setIP(\"starticketmyanmar.com\");\n\t\tNetworkEngine.getInstance().getFromCities(AppLoginUser.getAccessToken(), new Callback<Response>() {\n\t\t\t\n\t\t\tpublic void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Type your code here
public static void main (String[] args){ Scanner in = new Scanner(System.in); int n = in.nextInt(); for(int curr_row = 1; curr_row<=n; curr_row++) { for( int curr_col = 1; curr_col <= n;curr_col++) { if (((curr_row %2==0)&&(curr_col == 1))|| ((curr_row %2==1)&&(curr_col...
[ "public static void main(String[] args){\r\n \r\n/* We use package,class and turn on methods,If we would like to execute codes in Java we should get used to create class,\r\npackage,methods.We are typing codes in methods,and methods should be in class and classes should be in package \r\nrespectively */\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public int GetReceiveInfo(ReceiveInfo receiveInfo) { ReceiveInfo getReceiveInfo = receiveInfoDao.Get(receiveInfo.getrName(), receiveInfo.getrPhone(), receiveInfo.getrAddress()); if(getReceiveInfo != null) return getReceiveInfo.getrId(); return 0; }
[ "@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 "rule__Reference__Alternatives" $ANTLR start "rule__DataType__Alternatives" ../org.yazgel.titan.xtext.ui/srcgen/org/yazgel/titan/xtext/ui/contentassist/antlr/internal/InternalTitan.g:451:1: rule__DataType__Alternatives : ( ( ruleSingleDataType ) | ( ruleMultiDataType ) );
public final void rule__DataType__Alternatives() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.yazgel.titan.xtext.ui/src-gen/org/yazgel/titan/xtext/ui/contentassist/antlr/internal/InternalTitan.g:455:1: ( ( ruleSingleDataType ) | ( ruleMu...
[ "public final void rule__DataTypeCS__Alternatives_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.qvto.examples.xtext.qvtoperational.ui/src-gen/org/eclipse/qvto/examples/xtext/qvtoperational/ui/contentassist/antl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the array of the annotations on the Java method
public Annotation[] getAnnotations() { return this.annotatedMethod.getAnnotations(); }
[ "public JAnnotation[] getAnnotations();", "Annotation_[] getAnnotations();", "JAnnotation[] getAnnotations();", "Annotation_[] getDeclaredAnnotations();", "java.util.List<org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation> \n getAnnotationList();", "private String annotations(Method method) {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method loads all the news data in BINARY FORMAT.
public void loadNewsData() throws ClassNotFoundException, IOException { JFileChooser fc = new JFileChooser(); fc.setDialogTitle("Open Binary Data File"); int returnValue = fc.showOpenDialog(selectionView); if(returnValue == JFileChooser.APPROVE_OPTION) { System.out.println("Load Binary Data File"); ...
[ "public static void loadFromFile() {\n Downloader.direectDownload(onlineLink, Config.getNewsFile());\r\n \r\n System.out.println(\"Starting to read News from file\");\r\n\r\n try (ObjectInputStream ois = new ObjectInputStream(new FileInputStream(Config.getNewsFile()))) {\r\n\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
click btn sound; redirection to home screen
public void back(View view) { click.play(soundID, 1, 1, 1, 0, 1); finish(); Intent home = new Intent(this, home.class); startActivity(home); }
[ "public static void buttonClick() {\n BUTTONCLICK.play();\n }", "@Override\r\n public void onClick(View arg0) {\n if(Menu.soundb==1) clicksound.start();\r\n Intent menu = new Intent(c,MenuNew.class);\r\n c.startActivity(menu);\r\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
redirect to form page on error
@RequestMapping("/confirmRegistration") public ModelAndView confirmRegistration(@RequestParam("password2") String password2, @Valid @ModelAttribute("userKey") EventUser user, BindingResult errors) { if(errors.hasErrors()) { return new ModelAndView("register"); } // redirect to index upon co...
[ "@RequestMapping(\"/error\")\n public String handleError() {\n return \"redirect:/\";\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString pagina = \"./error.jsp\";\n\t\tresponse.sendRedirect(pagina); \n\t\t\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table tbl_comment
int deleteByPrimaryKey(Integer ID);
[ "@Select({\n \"select\",\n \"id, log_id, author_id, create_time, reply_id, content, reply_content\",\n \"from comment\",\n \"where id = #{id,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Purpose: testing the rotation towards right Method: Ship() Initialization: new Ship object Parameters: none Correct Result: pi/2 minus pi/18
@Test public void testRotateRight() { ship.rotateRight(); assertEquals(Math.PI / 2 - (Math.PI / 18), ship.getAngle()); }
[ "@Test\n public void rotateCorrectly_ord0_Test() {\n Mockito.when(direction.ordinal()).thenReturn(0);\n testEnemy.rotateCorrectly();\n Mockito.verify(model).rotate(0, (float) (Math.PI * 1.5), 0);\n }", "Rotor() { }", "public void setRotateOfShip(double rotate){\n if(this.rotate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shows or hides this panel.
@Override public void setVisible(boolean visible) { setPreferredSize(visible ? preferredSize : new Dimension(0, 0)); revalidate(); }
[ "public void showPanel() {\n\t\tbasePanel.setVisible(true);\n\t}", "public void show() {\n\t\tCompositeUtils.hideOrShowComposite(container, false);\n\n\t}", "public void toggle() {\n if (this.isVisible()) {\n this.hide();\n } else {\n this.show();\n }\n }", "public showPanel() {\n\t\t\tthi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if all animals have been researched
public boolean allResearched() { if (tutorialMode) { return researched.size() > 0; } else { int count = 0; for (Object o : getGameObjects()) { if (o instanceof Animal) { count++; } } return count == 0; } }
[ "boolean checkIngredients(Item container) {\n/* 1543 */ Item[] items = container.getItemsAsArray();\n/* 1544 */ boolean[] founds = new boolean[items.length]; int x;\n/* 1545 */ for (x = 0; x < founds.length; x++) {\n/* 1546 */ founds[x] = false;\n/* */ }\n/* 1548 */ if (getRecipeId() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end of getDescriptor(String xmlFile, String addXmlFile, boolean validate)
public static Element createSubElement(Document document, Element element, String value, String elementName) { if (value == null) { value = new String(""); } Element subElement = document.createElement(elementName); Text textNode = document.createTextNode(value); subElement.appendChild(textNod...
[ "void validateFile();", "void validate(CustomizedFile customizedFile) throws ValidationException;", "private void validate()\n throws BuildException\n {\n if( null == m_extension )\n {\n final String message = \"Extension element must be specified.\";\n throw new Bu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end of install method
@Override public boolean select() { return true; }
[ "@Override\n\t\t\tpublic void install() {\n\t\t\t}", "public void install() {\n // throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "private void checkForNewInstall(){\n }", "@Override\n public void extornar() {\n \n }", "public void installed() {\n // 1. cop...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void run() { while(true) { try { while((context = queue.poll(2, TimeUnit.SECONDS)) != null) { HttpServletRequest request = (HttpServletRequest)context.getRequest(); HttpServletResponse response = (HttpServletResponse)context.getResponse(); try { r...
[ "@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" ] ] } }
Normally called (only) by public constructor and recreateLdapContext().
private static LdapContext createLdapContext(String hostName, Method connectMethod, int port, String principal, String password, long ldapTimeoutInMillis) { Hashtable<String, String> env = new Hashtable<String, String>(); if (null == connectMethod || null == hostName || null == principal || ...
[ "protected final HierMemDirCtx createNewCtx() {\n/* 257 */ return new LdapSchemaCtx(0, this.myEnv, this.info);\n/* */ }", "private void createLdapInitContext(String username, Object credential) throws NamingException {\r\n\r\n\t\tProperties env = new Properties();\r\n\t\t// Map all option into the JNDI ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
I, printout matrix element in cycle way approach: 1, list the elements on the first cycle a[0][j=0..n2] a[i=0..m2][n1] a[m1][j=n1..1] a[i=m1..1][0] j,i from 0 to n,m, then from n,m to 0,0 k=1,l=1 > a[0][j=0..nk1] a[i=0..ml1][n1] a[m1][j=nk..k] a[i=m1..l][0] 2, find the rule for index changing when access each elements ...
public void cyclePrint(int[][] a, int n0, int nn, int m0, int mm){ int k=1, l=1, i=0, j=0; int n = nn-n0+1; int m = mm-m0+1; while(k<= Math.ceil(n/2) && l<=Math.ceil(m/2)){ System.out.println("Cycle "+k+" :"); for(;j<n-k;++j) System.out.print(a[i][j]+" "); for(;i<m-l;++i) System.out.print(a[i][j]+" ");...
[ "static void printAllPaths(int[][] a, int m, int n, int i , int j, int[] path, int pathIndex) {\n //edge case\n if(i == m && j == n)\n return;\n if(i == m - 1 || j == n - 1 ) {\n //if nowhere to go, forcefully travel towards bottom right\n if(i == m - 1) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
determine whether a list of alleles is segregating
private boolean isSegregating(int[] alleles) { int count0 = Util.count(alleles, 0); int count1 = Util.count(alleles, 1); if (count0 > 0 && count1 > 0) { return true; } return false; }
[ "boolean hasCombin();", "public boolean subsumedByHittingSets(HittingSet set) {\n\t\tfor(HittingSet hitset : this.hittingsets) {\n\t\t\tboolean subsumed = true;\n\t\t\t\n\t\t\tsubsumed = hitset.containsAllComponents(set);\n\t\t\t\n\t\t\tif(subsumed)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }