query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Indicates the command that is defined as the clear command in this form. A clear command can be used both to map to a "clear" hardware button if such a button exists. | public void setClearCommand(Command clearCommand) {
this.clearCommand = clearCommand;
} | [
"public Command getClearCommand() {\n\t\treturn clearCommand;\n\t}",
"public Button getClearButton() {\n return clearButton;\n }",
"private void clearCommandInput() {\n commandInput.setText(\"\");\n }",
"public JButton getClearBox() {\n\t\treturn clearBox;\n\t}",
"public String getComman... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retorna a classe que representa o VO. | private Class<V> getClassVO() throws ClassNotFoundException {
Type superclass = this.getClass().getGenericSuperclass();
if (superclass instanceof ParameterizedType) {
ParameterizedType parameterizedType = (ParameterizedType) superclass;
Type[] typeArguments = parameterizedType.g... | [
"public interface VOOfrecen {\n\t\n\t/**\n\t * Da el id del medico.\n\t *\n\t * @return el id del medico\n\t */\n\tpublic String getId_Medico();\n\t\n\t/**\n\t * Da el id del servicio.\n\t *\n\t * @return el id del servicio\n\t */\n\tpublic String getId_Servicio();\n\t\n\t/**\n\t * To string.\n\t *\n\t * @return th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the TextFieldExtUsuario property value. | private TextFieldExt getTextFieldExtUsuario() {
if (ivjTextFieldExtUsuario == null) {
ivjTextFieldExtUsuario = new TextFieldExt();
ivjTextFieldExtUsuario.setName("TextFieldExtUsuario");
ivjTextFieldExtUsuario.setKeyMask(TextFieldExt.KeyMask.KM_Mayusculas_Y_Minusculas);
ivjTextFieldExtUsuario.setFocus... | [
"public TextField getTfUsuario() {\n if (tfUsuario == null) {//GEN-END:|124-getter|0|124-preInit\n // write pre-init user code here\n tfUsuario = new TextField(\"Usu\\u00E1rio:\", null, 8, TextField.ANY);//GEN-LINE:|124-getter|1|124-postInit\n // write post-init user code her... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Save the user details before closing the screen. | private void saveDetailsBeforeClose(){
BUser user = getNetworkAdapter().currentUserModel();
if (!etName.getText().toString().isEmpty()) {
user.setMetaName(etName.getText().toString());
}
user.setMetadataString(BDefines.Keys.BDateOfBirth, txtDateOfBirth.getText().toString... | [
"public void saveUserDetails() {\n\n onBoardUser.setHeight(finalHeight);\n onBoardUser.setWeight(finalWeight);\n onBoardUser.setWeight_unit(0);\n onBoardUser.setHeight_unit(0);\n }",
"public void save() {\n\t\tuserData.saveData();\n\t}",
"private void persistData() {\n mSha... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This will retrieve the property store from an internal map of stores and keys. If it doesn't exist one will be created | public static PropertyStore getStore(final String key, final boolean useProjectSettings) {
PropertyStore returnMe = _propStore.get(key);
if (returnMe == null) {
returnMe = new PropertyStore(new ScopedPreferenceStore(new InstanceScope(), key), new ScopedPreferenceStore(
new ConfigurationScope(), ... | [
"public static PropertyStore getStore(final String key) {\n PropertyStore returnMe = _propStore.get(key);\n if (returnMe == null) {\n returnMe = new PropertyStore(new ScopedPreferenceStore(new InstanceScope(), key), new ScopedPreferenceStore(\n new ConfigurationScope(), key));\n _propStore.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
singleton array of first rotations Defines a new piece given the Points that make up its body. Makes its own copy of the array and the Point inside it. Does not set up the rotations. This constructor is PRIVATE if a client wants a piece object, they must use Piece.getPieces(). | private Piece(Point[] points) {
//FIX
body = points;
//Good
width = 0;
height = 0;
for(Point p: points) {
if(p.x + 1 > width) {
width = p.x + 1;
}
if(p.y + 1 > height) {
height = p.y + 1;
}
}
skirt = new int[width];
for(int i = 0; i < skirt.length; i++){
s... | [
"protected Piece(Point[] points) \n {\n body = new Point[points.length];\n \n for(int i = 0; i < points.length; i++)\n {\n body[i] = new Point();\n body[i] = points[i];\n }\n }",
"public void initPieces(){\n int xRoi = 4, yRoi = (couleur==Coule... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns details of the interfaces in the system, encoded as a single string for ease of JNI transfer over to the Go environment. Example: rmnet_data0 10 2000 true false false false false | fe80::4059:dc16:7ed3:9c6e%rmnet_data0/64 dummy0 3 1500 true false false false false | fe80::1450:5cff:fe13:f891%dummy0/64 wlan0 30 ... | String getInterfacesAsString() {
List<NetworkInterface> interfaces;
try {
interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());
} catch (Exception e) {
return "";
}
StringBuilder sb = new StringBuilder("");
... | [
"String getInterfaces();",
"public static String getNetworkDetails() {\n\n WirelessAccessPoint tempWap = new WirelessAccessPoint(\"wap\");\n tempWap.getMACAddressAndDynamicIPAddressAndName(nodeTypeCounter(\"wap\"));\n\n String networkIPAddress = tempWap.getIPAddress().substring(0, 10) + \"0\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a validation component which can check whether the class contains field mappings for all primary key columns. | protected ValidationComponent createKeyColumnMappingComponent (
final PersistenceClassElement persistenceClass)
{
return new ValidationComponent ()
{
public void validate () throws ModelValidationException
{
String className = getClassName();
MappingClassElement mappingClass = getMappingClass(class... | [
"public boolean isValid(AbstractRecord rowContainingPrimaryKey, Class theClass);",
"public boolean generatePrimaryKeyClass() {\n return columnDefinitions.getPrimaryKeyColumns().size() > 1;\n }",
"public boolean isValid(Vector primaryKey, Class theClass);",
"@Override\r\n\tpublic boolean isPKValid() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines whether we have run through all the tokens | public boolean hasMoreTokens() {
return !jackProgram.hitEnd();
} | [
"public boolean hasMoreToken(){\n return !tokens.isEmpty();\n }",
"boolean hasTokenCount();",
"public abstract boolean hasToken(int numberOfTokens);",
"public boolean hasMoreTokens() {\n /*\n * Switch the value of `toPrint.isEmpty()` to get\n * boolean representing whether or ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates the 2D shape created by the intersection of a given 2D point and 2D polygon. | public static Shape2D intersection(Point2D point, Polygon2D polygon) {
// intersection exists?
if (!LinAlg2D.intersects(point, polygon))
throw new IntersectException("Given shapes do not intersect");
return new Point2D(point.getPosition());
} | [
"public static Shape2D intersection(Segment2D segment, Polygon2D polygon) {\n // intersection exists?\n if (!LinAlg2D.intersects(segment, polygon))\n throw new IntersectException(\"Given shapes do not intersect\");\n \n // get segment start and end points in world coords\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Opens a new capture session. The previously opened session will be safely disposed of before the new session opened. | @SuppressWarnings("WeakerAccess") /* synthetic accessor */
void openCaptureSession() {
if (mState.get() != State.OPENED) {
Log.d(TAG, "openCaptureSession() ignored due to being in state: " + mState.get());
return;
}
ValidatingBuilder validatingBuilder;
synchr... | [
"public OpenSessionCommand openSession() {\n final Optional<String> serialNumberOpt = getSerialNumber();\n final OpenSessionOption option;\n if (serialNumberOpt.isPresent()) {\n option = new OpenSessionOptionBuilder()\n .setCamera(this)\n .setCameraBySer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the inheritance relations of this type. | public default List<InheritanceRelation> inheritanceRelations() throws LookupException {
return nonMemberInheritanceRelations();
} | [
"public Set<Relation> getRelations();",
"public List<Relation> getRelations() {\n return relations;\n }",
"public Set<RelationType> getRelationTypes();",
"public Set<Cause> getRelations() {\n \t\tSet<Cause> relations = new TreeSet<Cause>();\n \t\tfor (Relation relation : this.causeRelations) {\n \t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get intent for opening App B | private void launchIntent(String text){
Intent intent = getActivity().getPackageManager().getLaunchIntentForPackage(getString(R.string.second_app_package_name));
//check if App B exists
if(intent != null){
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
// put image url t... | [
"Intent getOpenInOtherWindowIntent();",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = getPackageManager().getLaunchIntentForPackage(app.pkgInfo.packageName);\n intent.setFlags(Intent.FLAG_ACTIVIT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
calTree function: core fuction called in evaluate() to evaluate the tree value | private Tree calTree(Tree left, Tree right, Tree tree) {
float value = 0;
float leftValue = 0;
int treeType = 12;
Tree rTree = null;
//float leftValue_f = 0;
float rightValue = 0;
//float rightValue_f = 0;
if(left.get_info().getToken() == Tk_INT && right.get_info().getToken() == Tk_INT && tree.get_info(... | [
"public Tree evaluate(Tree tree) {\n\t\tTree rTree = null;\n\t\tif(tree != null) {\n\t\t\tTree left = evaluate(tree.get_left());\n\t\t\tTree right = evaluate(tree.get_right());\n\t\t\tif(left == null || right == null) {\n\t\t\t\treturn tree;\n\t\t\t}\n\t\t\trTree = calTree(left,right,tree);\n\n\n\t\t}\n\n\t\treturn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use Distinct.newBuilder() to construct. | private Distinct(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
} | [
"public DistinctValues() {\n }",
"com.vitessedata.llql.llql_proto.LLQLQuery.DistinctOrBuilder getDistinctOrBuilder();",
"com.vitessedata.llql.llql_proto.LLQLQuery.Distinct getDistinct();",
"public AggregateOperator setDistinct(DistinctOperator distinct);",
"LengthDistinct createLengthDistinct();",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets (as xml) the "Town" element | public void xsetTown(org.apache.xmlbeans.XmlString town)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TOWN$30, 0);
if (target == null)
... | [
"public void setTown(java.lang.String town)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOWN$30, 0);\n if (target == null... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Return a Point that would win, if not possible to block, if not possible to block return an available Point of your own choosing | @Override
// Precondition: During testing the AI is associated with the 'O', the odd number move.
public Point desiredMove(TicTacToeGame theGame) {
char[][] board = theGame.getTicTacToeBoard();
Point dPoint;
//check for win
dPoint = winOrBlock(board,'O');
if(dPoint != null) {
System.out.p... | [
"private Point getSafeTeleportPosition() {\n\t\tRandom number \t= new Random();\n\t\tPoint p\t\t\t= new Point();\n\t\twhile(true) {\n\t\t\tint x\t\t= number.nextInt(rows-1);\t\n\t\t\tint y\t\t= number.nextInt(cols-1);\n\t\t\tp.x\t\t\t= x;\n\t\t\tp.y\t\t\t= y;\n\t\t\t\n\t\t\t//if the point isn't in the array\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new vincolo capitoli converter. | public VincoloCapitoliConverter() {
super(VincoloCapitoli.class, SiacTVincolo.class);
} | [
"public VincoloGenereVincoloConverter() {\n\t\tsuper(Vincolo.class, SiacTVincolo.class);\n\t}",
"public VariazioneImportiSingoloCapitoloConverter() {\n\t\tsuper(VariazioneImportoSingoloCapitolo.class, SiacTVariazione.class );\n\t}",
"public AfiliadoVista() {\r\n }",
"public Vaca()\n {\n peso=PESO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Devuelve el componente divider de un splitPane. | public static BasicSplitPaneDivider getSplitPaneDivider(JSplitPane splitPane) {
return ((BasicSplitPaneUI)splitPane.getUI()).getDivider();
} | [
"public abstract int getDividerLocation(JSplitPane jc);",
"private void addDivider() {\n Label label = new Label(\" \"); //$NON-NLS-1$\n label.setStyleName(\"divider-20\"); //$NON-NLS-1$\n add(label);\n }",
"public abstract void setDividerLocation(JSplitPane jc, int location);",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inserts a new item into the tree, maintaining its order. If the item already exists in the tree, nothing happens. | public void insert(E item) {
root = addItem(root, item);
} | [
"public boolean insertItem(BPTreeNodeItem item);",
"public void insertItem(T item)\n {\n insert(root, item);\n }",
"protected TreeNode insertItem(TreeNode tNode, KeyedItem item) throws TreeException\n {\n if (tNode == null) \n {\n // position of insertion found; insert after lea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a PendingIntent to be sent for each activity detection. | private PendingIntent getActivityDetectionPendingIntent() {
Intent intent = new Intent(mContext, ActivityRecognitionIntentService.class);
// We use FLAG_UPDATE_CURRENT so that we get the same pending intent back when calling
// requestActivityUpdates() and removeActivityUpdates().
return PendingIntent.getServi... | [
"private PendingIntent getActivityDetectionPendingIntent() {\n Intent intent = new Intent(this, DetectedActivitiesIntentService.class);\n\n\n // We use FLAG_UPDATE_CURRENT so that we get the same pending intent back when calling\n // requestActivityUpdates() and removeActivityUpdates().\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the minimum percentile. | public float getPercentileMin() {
return _clips.getPercentileMin();
} | [
"long percentile(double percentile);",
"public java.lang.Float getPercentile() {\n return percentile;\n }",
"public java.lang.Float getPercentile() {\n return percentile;\n }",
"public double minValue() {\n\t\treturn getValue(minChannel());\n\t}",
"java.math.BigDecimal getFractionalMinimum();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Configure the ObjectMapper to filter out all fields on the events except those that are actually needed for the analytics reporting | private void initMapper() {
final BeanPropertyFilter filterOutAllExcept =
SimpleBeanPropertyFilter.filterOutAllExcept("fname", "executionTimeNano");
this.mapper.addMixInAnnotations(
PortalEvent.class, PortletRenderExecutionEventFilterMixIn.class);
final SimpleFilt... | [
"public JacksonJsonHandler() {\n this.mapper = new ObjectMapper();\n this.mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n }",
"private void configureObjectMapper(ObjectMapper mapper)\n {\n \n\t\tmapper.setSerializationInclusion(Include.NON_NULL);\n\t\tmappe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets URI prefix for Feeds | public String getFeedPathPrefix(); | [
"public String getFeedNamespacePrefix(String namespace);",
"public String getURIDefinition(String prefix) {\n\t\treturn prefixToURIMap.get(prefix);\n\t}",
"public String prefixURI(String prefix) {\n return triples.getNsPrefixURI(prefix);\n }",
"public String getFeedConfigSuffix();",
"public String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This API starts recording the contact when the agent joins the call. StartContactRecording is a onetime action. For example, if you use StopContactRecording to stop recording an ongoing call, you can't use StartContactRecording to restart it. For scenarios where the recording has started and you want to suspend and res... | java.util.concurrent.Future<StartContactRecordingResult> startContactRecordingAsync(StartContactRecordingRequest startContactRecordingRequest,
com.amazonaws.handlers.AsyncHandler<StartContactRecordingRequest, StartContactRecordingResult> asyncHandler); | [
"java.util.concurrent.Future<StartContactRecordingResult> startContactRecordingAsync(StartContactRecordingRequest startContactRecordingRequest);",
"public void startRecording() {\n final int minBufSize = AudioRecord.getMinBufferSize(SAMPLE_RATE, AudioFormat.CHANNEL_IN_MONO,\n AudioFormat.ENC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column power_menu.menuid | public void setMenuid(Integer menuid) {
this.menuid = menuid;
} | [
"public void setMenuid(Integer menuid) {\n this.menuid = menuid;\n }",
"public void setMenuId(Integer menuId) {\n this.menuId = menuId;\n }",
"public void setMenuId(String menuId) {\r\n this.menuId = menuId;\r\n }",
"public void setMenuId(String menuId) {\r\n this.menuId = menuI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Take the winner from the passed in match and move him/her to the next round of the bracket. | private void updateBracket(Match match)
{
BracketEntry entry = match.getBracketEntry();
if (null != entry)
{
BracketEntry next = entry.getNext();
if (null != next)
{
// If the match was an odd numbered match for that round, then the
... | [
"public void nextRound() throws TournamentException;",
"private void nextRound() {\n if (roundCounter < 3) {\n round.resolveRound();\n roundCounter += 1;\n }\n else {\n this.declareWinner();\n }\n }",
"private void movePlayer() {\n ladder.ch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Filter list and get total amount Filtered list of given time period. Calculates transaction's amount summary of given time period. | public double listTotalAmount(LocalDate start, LocalDate end) throws EmptyDateException {
if(start == null || end == null)
throw new EmptyDateException("Cannot filter transaction list, date is null");
// Filter transactions of given time period
transactionFilteredList.setPredicate(... | [
"public double listTotalAmount() {\n // Filter Transactions Filter List (All)\n transactionFilteredList.setPredicate(transaction -> true);\n // Return amounts summary\n return transactionFilteredList.stream().mapToDouble(Transaction::getAmount).sum() / 100d;\n }",
"public double lis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests reset banner by viewer. | @Test(groups = "wso2.ds.dashboard", description = "Reset banner by viewer", dependsOnMethods = "addBannerByViewer")
public void resetBannerByViewer()
throws MalformedURLException, XPathExpressionException {
clickRemoveBannerButton();
assertFalse(isResourceExist(dashboardId + "/" + viewer... | [
"private void resetBannerImage() {\n\t\tsetBannerImage(defaultImage);\n\t}",
"public void resetPanorama() {\n if (mMosaicProxy != null) {\n mMosaicProxy.tearDown();\n }\n setGLRenderer(mCamManager.getRenderer());\n }",
"@Test\n public void resetTest() {\n\n Match mat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new RDFSLiteral with a default datatype derived from the value. | RDFSLiteral createRDFSLiteral(Object value); | [
"RDFSLiteral createRDFSLiteral(String lexicalValue, RDFSDatatype datatype);",
"RDFSLiteral createRDFSLiteral(String value, String language);",
"Object createRDFSLiteralOrString(String value, String language);",
"RDFSLiteral asRDFSLiteral(Object value);",
"public Literal createLiteral(String lexicalValue, UR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will look for "application.property" file and will read some attributes from it. | public void loadApplicationPropertyFile() {
if (!isToLoadApplicationPropertyFile()) {
return;
}
try {
// make sure the property is fresh
ApplicationPropertyHolder.reloadProperties();
// extract the application property object
Properties property = ApplicationPropertyHolder.getProperty();
... | [
"private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the value associated with the column: MasDiscounts | public java.util.Set<jkt.hms.masters.business.MasDiscount> getMasDiscounts() {
return masDiscounts;
} | [
"Money getDiscountValue();",
"java.lang.String getDiscount();",
"public java.util.Set<jkt.hms.masters.business.MasDiscount> getMasDiscounts () {\n\t\treturn masDiscounts;\n\t}",
"java.lang.String getSumDiscount();",
"public Double getDiscount() {\n return Double.valueOf(discount);\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__FQN__Group_1__0__Impl" $ANTLR start "rule__FQN__Group_1__1" InternalTaskDefinition.g:1934:1: rule__FQN__Group_1__1 : rule__FQN__Group_1__1__Impl ; | public final void rule__FQN__Group_1__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalTaskDefinition.g:1938:1: ( rule__FQN__Group_1__1__Impl )
// InternalTaskDefinition.g:1939:2: rule__FQN__Group_1__1__Impl
{
... | [
"public final void rule__FQN__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTaskDefinition.g:1884:1: ( rule__FQN__Group__1__Impl )\n // InternalTaskDefinition.g:1885:2: rule__FQN__Group__1__Impl\n {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
PRIVATE EFFECTS: Fetch the start button image from file so it can be used as a button icon. | private void initializeStartBtnImage() {
try {
ImageIcon img = createImageIcon("/images/startBtn.png", "btnPicture");
Image titleImage = img.getImage(); // convert it into an image
Image finalTitleImage = titleImage.getScaledInstance(355, 130, java.awt.Image.SCALE_SMOOTH);
... | [
"String buttonIcon();",
"private void initializeInstructionBtnImage() {\n\n try {\n ImageIcon img = createImageIcon(\"/images/instructionsBtn.png\", \"btnPicture\");\n Image titleImage = img.getImage(); // convert it into an image\n Image finalTitleImage = titleImage.getSca... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
True if has "DSAPK" element | boolean isSetDSAPK(); | [
"boolean isSetRSAPK();",
"public static boolean isSet() {\n if (KingdomKey.KEY != null) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean isSetKiosk()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to get entity role Id for entity | String getEntityRoleIdForEntity(Record inputRecord); | [
"Integer getIdRole();",
"java.lang.String getRoleid();",
"long getRoleId();",
"EntityId getEntityId(Entity entity);",
"java.lang.String getEntityId();",
"int getUserRoleID();",
"public Integer getRoleId() {\r\n return roleId;\r\n }",
"public Integer getRoleId() {\n return roleId;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write to path the user profiles from dataset in the following CSV format (i.e. 1 rating/line): userID, itemID, rating userID, itemID2, rating etc. | private static void writeHashtableIntScoreCountToCSV(Hashtable<Integer, ScoreCount<Integer>> dataset, String path) {
CSVWriter writer = new CSVWriter(new BufferedWriter(ExceptHandler.createFileWriter(path)));
logger.trace("Content of the CSV file");
long nbLines = 0;
boolean quoteElements = false;
for(Iterato... | [
"public static void writeUserProfile(Profile profile) throws IOException {\n\n try (BufferedWriter writer = Files.newBufferedWriter(Paths.get(USER_PROFILE));\n\n CSVPrinter csvPrinter = new CSVPrinter(writer, CSVFormat.EXCEL.withHeader(\"firstName\",\"lastName\",\"email\",\"password\",\"phoneNumb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Activity__Group_7__4" $ANTLR start "rule__Activity__Group_7__4__Impl" InternalActivityDiagram.g:2064:1: rule__Activity__Group_7__4__Impl : ( '}' ) ; | public final void rule__Activity__Group_7__4__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalActivityDiagram.g:2068:1: ( ( '}' ) )
// InternalActivityDiagram.g:2069:1: ( '}' )
{
// InternalActivityDia... | [
"public final void rule__Activity__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:595:1: ( ( '}' ) )\n /... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__SequenceExp__PartsAssignment_4_1" $ANTLR start "rule__SetExp__NameAssignment_1" InternalOCLlite.g:11219:1: rule__SetExp__NameAssignment_1 : ( ( 'Set' ) ) ; | public final void rule__SetExp__NameAssignment_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalOCLlite.g:11223:1: ( ( ( 'Set' ) ) )
// InternalOCLlite.g:11224:2: ( ( 'Set' ) )
{
// InternalOCLlite.g:11224:2:... | [
"public final void rule__SetType__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOCLlite.g:11905:1: ( ( ( 'Set' ) ) )\n // InternalOCLlite.g:11906:2: ( ( 'Set' ) )\n {\n // InternalO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the match object of the last match played Iterate backwards to account for data gaps | public static @Nullable Match getLastMatchPlayed(List<Match> matches)
{
if (matches == null || matches.isEmpty()) return null;
for (int i = matches.size() - 1; i >= 0; i--) {
Match m = matches.get(i);
if (m.hasBeenPlayed()) {
return m;
}
... | [
"public Match getRightPreviousMatch() {\n return rightPreviousMatch;\n }",
"public int getPrevMatch (int currentIndex, Team team);",
"@Override\n\tpublic int getNextFirstPlayOff() {\n\t\treturn _esfMatchResult.getNextFirstPlayOff();\n\t}",
"Collection<QwirklePlacement> getLastPlay();",
"public sta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the PHP Processor | public void setPhpProcessor(PHPProcessor phpProcessor)
{
this.phpProcessor = phpProcessor;
} | [
"public void setProcessor(final String processor) {\n this.processor = processor;\n }",
"public void setScriptProcessor(ScriptProcessor scriptProcessor) {\n this.scriptProcessor=scriptProcessor;\n }",
"@Override\n public void setNextProcessor(Processor processor) {\n this.nextProcessor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Write float number in two registers Parameters: startingAddress First Address to write; Shifted by 1 value value to write to registers (example: 12.89) | public void writeFloat(int startingAddress, float value){
try {
client.WriteMultipleRegisters(startingAddress -1 ,ModbusClient.ConvertFloatToTwoRegisters((float)value ));
} catch (Exception e) {
// TODO Auto-generated catch block
JOptionPane.showMessageDialog(null, e.getMessage(), "Exception from s... | [
"private native void Df1_Write_Float(String plcAddress,float value) throws Df1LibraryNativeException;",
"public void readFloat(int startingAddress){\r\n \t\r\n\t\tfloat read;\r\n \ttry {\r\n\t\t\tread = ModbusClient.ConvertRegistersToFloat(client.ReadHoldingRegisters(startingAddress -1 , 2));\r\n\t\t\tview.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The connecting algorithm! While lTerm is not empty: 1. Look for / take odd connection 2. If none, look for shared even and process accordingly (crossed or bridge) 3. For now, just print in this case! Not sure how to handle this yet. | public List<Integer> connect() throws Exception {
List<Integer> steps = new ArrayList<Integer>();
int count = 0;
boolean prevWas6 = false;
while (!lTerm.isEmpty()) {
count++;
if (count > 4 * N) {
System.out.println("STEPS:");
System.out.println(steps);
throw new Exception("Too many ite... | [
"public boolean findAndProcessUnshared_noBridge(Map<Integer, List<List<Connection>>> connectionMap, \n\t\t\tList<Integer> steps) throws Exception {\n\t\t\n\t\tif (connectionMap.size() < 2) {\n\t\t\treturn false; // error!\n\t\t}\n\t\t\n\t\tConnection leftToEven = null; \n\t\tint leftToEvenIndex = -1; \n\t\tConnecti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Util Function to check the value of two inputs. if s1 is not null it will be returned in priority over s2. | public static synchronized <T> T compare(T s1, T s2) {
try {
if(s1 == null && s2 == null) {
return null;
}
Clapper.log(LogLevel.DEBUG, "Returning Value: " + (s1 != null ? s1 : s2).toString());
return s1 != null ? s1 : s2;
} catch (Exceptio... | [
"private static boolean nullOrEqual(final String s1, final String s2) {\n return (s1 == null) ? (s2 == null) : s1.equals(s2);\n }",
"private int nullSafeCompare(String first, String second) {\n int result = nullCompare(first, second);\n return result == NON_NULLS ? StringUtils.compare(first, sec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new not found with the primary key. Does not add the not found to the database. | @Override
public NotFound createNotFound(long notFoundId) {
return notFoundPersistence.create(notFoundId);
} | [
"PrimaryKey createPrimaryKey();",
"private int newPrimaryKey( )\n {\n int nKey;\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_NEW_PK );\n\n daoUtil.executeQuery( );\n\n if ( daoUtil.next( ) )\n {\n nKey = daoUtil.getInt( 1 ) + 1;\n }\n else\n {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of child challenges that the user has permission to view where groupId = &63; and challengeId = &63; and challengeStatus LIKE &63;. | @Override
public int filterCountByGroupIdAndChallengeAndChallengeStatus(
long groupId, long challengeId, String challengeStatus)
throws SystemException {
if (!InlineSQLHelperUtil.isEnabled(groupId)) {
return countByGroupIdAndChallengeAndChallengeStatus(groupId,
challengeId, challengeStatus);
}
String... | [
"@Override\n\tpublic int countByGroupIdAndChallengeAndChallengeStatus(long groupId,\n\t\tlong challengeId, String challengeStatus) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_WITH_PAGINATION_COUNT_BY_GROUPIDANDCHALLENGEANDCHALLENGESTATUS;\n\n\t\tObject[] finderArgs = new Object[] { groupId, ch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column TRSPAYPLANDET_TENTATIVE_TEMP.VAT_AMOUNT | public BigDecimal getVAT_AMOUNT() {
return VAT_AMOUNT;
} | [
"public BigDecimal getVAT_AMOUNT()\r\n {\r\n\treturn VAT_AMOUNT;\r\n }",
"public double getTotalVAT() {\n return totalVAT;\n }",
"public MonetaryAmount getTotalVat() {\n\t\treturn this.totalVat;\n\t}",
"public BigDecimal getVAT_CHARGE_INSUR_AMT() {\r\n return VAT_CHARGE_INSUR_AMT;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Will use the given JAXRS root resource class. If the given class is not a valid root resource class, a warning is logged and false is returned. | public boolean addClass(Class<?> jaxRsClass)
throws IllegalArgumentException {
if (jaxRsClass == null)
throw new IllegalArgumentException(
"The JAX-RS class to add must not be null");
boolean used = false;
if (Util.isRootResourceClass(jaxRsClass)... | [
"public static boolean isRootResourceClass(Class<?> jaxRsClass) {\n return checkClassAndInterfacesForAnnotation(jaxRsClass,\n javax.ws.rs.Path.class);\n }",
"public void setResourceClass(final String resourceClass) {\n this.resourceClass = resourceClass;\n }",
"Class<?> getResour... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__RadarChart__Group_6__0__Impl" $ANTLR start "rule__RadarChart__Group_6__1" InternalMyDsl.g:8294:1: rule__RadarChart__Group_6__1 : rule__RadarChart__Group_6__1__Impl rule__RadarChart__Group_6__2 ; | public final void rule__RadarChart__Group_6__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:8298:1: ( rule__RadarChart__Group_6__1__Impl rule__RadarChart__Group_6__2 )
// InternalMyDsl.g:8299:2: rule__RadarChart__Group_6__... | [
"public final void rule__RadarChart__Group_7__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8406:1: ( rule__RadarChart__Group_7__1__Impl )\n // InternalMyDsl.g:8407:2: rule__RadarChart__Group_7__1__Impl\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads out properties of the currently active GPU and write it in the variables 'GPU_name', 'global_memory_in_bytes' and 'OpenCL_Version'. | public CLIJ2_GetGPUPropertiesBlock() {
super(new GetGPUProperties());
} | [
"@Public\n @Evolving\n public abstract long getGPUAttribute();",
"public synchronized GpuDeviceInformation getGpuDeviceInformation()\n throws YarnException {\n validateConfOrThrowException();\n\n if (null == pathOfGpuBinary) {\n throw new YarnException(\n \"Failed to find GPU discovery ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column com_buyers.other1 | public String getOther1() {
return other1;
} | [
"public String getOther2() {\n return other2;\n }",
"public String getOthers1() {\n return others1;\n }",
"public String getOther() {\n return other;\n }",
"public final String getOther() {\r\n return (other);\r\n }",
"public BigDecimal getOTHER_AMOUNT()\r\n {\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine if this acceptor can accept current from an adjacent emitter in a direction. The TileEntity in the emitter parameter is what was originally added to the energy net, which may be normal inworld TileEntity, a delegate or an IMetaDelegate. | boolean acceptsEnergyFrom(TileEntity emitter, ForgeDirection direction); | [
"private boolean checkAdjacentForMovables(){\r\n boolean hasAdjacent=false;\r\n\r\n try {\r\n if (isAValidMovable(getNorth()))\r\n hasAdjacent = true;\r\n }catch(ArrayIndexOutOfBoundsException e){}\r\n\r\n try {\r\n if (isAValidMovable(getEast()))\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method converts each character into KivaCommand from input string | public KivaCommand[] convertToKivaCommands(String input) {
KivaCommand[] commands = new KivaCommand[input.length()];
KivaCommand[] kivaCommands = KivaCommand.values();
for (int i = 0; i < input.length(); i++) {
for (int j = 0; j < kivaCommands.length; j++) {
i... | [
"private ArrayList<ICommand> stringToICommandList(String str) {\n ArrayList<ICommand> commands = new ArrayList<>();\n for (char c : str.toCharArray()) {\n if (CommandFactory.charToCommand.containsKey(c)) {\n commands.add(CommandFactory.charToCommand.get(c));\n } el... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Display user credential cache file information (except password). | private boolean _credList()
{
//File file = new File(loginFileLocation);
File file = this._loginReader.getFile();
String fileLocation = (file == null) ? null : file.getAbsolutePath();
if (!file.canRead())
{
this._logger.info("No credentials exist.");
//this... | [
"public void getUserInfo() {\r\n\t\tString username;\r\n\t\tString password;\r\n\r\n\t\tSharedPreferences pref = getSharedPreferences(PREFS_NAME, 0);\r\n\r\n\t\tusername = pref.getString(\"id\", \"\");\r\n\t\tpassword = pref.getString(\"pwd\", \"\");\r\n\r\n\t\tif (username != \"\" && password != \"\") {\r\n\t\t\tu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Client invocation of the update request through the proxyClient, which is already initialised with caller credentials, region and retry settings | private UpdateMonitoringScheduleResponse updateResource(
final UpdateMonitoringScheduleRequest awsRequest,
final ProxyClient<SageMakerClient> proxyClient) {
try {
return proxyClient.injectCredentialsAndInvokeV2(awsRequest, proxyClient.client()::updateMonitoringSchedule);
... | [
"Client updateClient(Client client) throws BaseException;",
"public Client updateClient(Client client);",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/proxies/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n Kub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Default exit sequence for state State6 | private void exitSequence_mainRegion_State2__region0_State4__region0_State6() {
nextStateIndex = 0;
stateVector[0] = State.$NullState$;
} | [
"private void exitSequence_main_region_Failed() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.$NullState$;\n\t}",
"private void exitSequence_mainRegion_State1() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.$NullState$;\n\t}",
"private void exitSequence_mainRegion_State2__region0_State4__regio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method Returns the current gameMode as an int | public int getGameMode(){
return this.gameMode;
} | [
"public int getMode()\r\n { \r\n return this.mode; // used at the beginning to check if the game has started yet\r\n }",
"GameMode getGameMode();",
"public String getGameMode() {\n return gameMode;\n }",
"public GameMode getGamemode() {\n\n return GameMode.valueOf(this.gamemode);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Disconnect to chat server. | private void disconnectChatServer() {
Intent intent = new Intent(this, SmackService.class);
this.stopService(intent);
} | [
"public void disconnect(){\n\n\t\tserverConnection.disconnect();\n\t}",
"public void disconnect()\n\t{\n\t\tNetMessage objDisco = new NetMessage(\"Client.disconnect\");\n\t\tobjDisco.sendTo(this.serverConnection);\n\t}",
"public void disconnect() {\n \t\tclient.disconnect();\n \t}",
"public void sendDisconnec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Methode die checkt of het BSN dat is ingevuld al bestaat in de lijst van BSNs | public static boolean bestaatBSN(int nieuwBSN) {
boolean exists = false;
for(Integer e : BSN_Onthouder) {
if(nieuwBSN == e) {
exists = true;
break;
}
}
return exists;
} | [
"private boolean isValidBSN(String BSN) {\n int candidate;\n try {\n candidate = Integer.parseInt(BSN);\n } catch (NumberFormatException e) {\n return false;\n }\n\n if (candidate <= 9999999 || candidate > 999999999) {\n return false;\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Decodes array of program json results into program model objects | public static ArrayList<Program> fromJson(String strJson) throws JSONException {
JSONObject jsonRootObject = new JSONObject(strJson);
//Get the instance of JSONArray that contains JSONObjects
JSONArray jsonArray = jsonRootObject.optJSONArray("program");
JSONObject programJson;
A... | [
"private static Application ParseResponseToApplication(String properties) {\n\t\tInputStream in = new ByteArrayInputStream(properties.getBytes(StandardCharsets.UTF_8));\n ResultSet results = ResultSetFactory.fromJSON(in);\n \n Application app = new Application();\n\n while (results.hasNe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub return topics.removeIf(t > t.getId().equals(id)); | public void deletTopic(String id) {
topicReposiory.deleteById(id);
} | [
"int cleanUnusedTopic(final Set<String> topics);",
"public Topic getTopic(String id) {\r\n\t\treturn topics.stream().filter(t -> t.getId().equals(id)).findFirst().get();\r\n\t}",
"public void deleteTopic(int topicId);",
"public Topic getTopic(String id) {\n\t\treturn topics.stream().filter(t -> t.getId().equa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__RefList__Group__2__Impl" $ANTLR start "rule__RefList__Group__3" InternalDsl.g:10073:1: rule__RefList__Group__3 : rule__RefList__Group__3__Impl rule__RefList__Group__4 ; | public final void rule__RefList__Group__3() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:10077:1: ( rule__RefList__Group__3__Impl rule__RefList__Group__4 )
// InternalDsl.g:10078:2: rule__RefList__Group__3__Impl rule__RefList_... | [
"public final void rule__Reference__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDomain.g:1921:1: ( rule__Reference__Group__3__Impl rule__Reference__Group__4 )\n // InternalDomain.g:1922:2: rule__Reference__Gro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ get month and year from view index | public int[] getMonthYear(int viewIdx) {
int yearIdx = viewIdx/12; // year idx
int[] my = new int[2];
my[0] = viewIdx - yearIdx*12 + 1; // month
my[1] = yearIdx + startYear; // year
return my;
} | [
"public int getViewIdx(int month, int year) {\n return (year-startYear) * 12 + month - 1;\n}",
"private int getYear() {\r\n Calendar cal = monthView.getCalendar();\r\n return cal.get(Calendar.YEAR);\r\n }",
"public int getMonth() { return number; }",
"int getMonthOfYear();",
"int getMonth(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ensures that the getScore method throws a ScorecardStructureException when given a scorecard with a null name. | public void testGetScoreThrowsOnNullScorecardNameWithCache() {
scorecard.resetName();
checkGetScoreThrowsSSE("a scorecard with a null name.");
} | [
"public void testGetScoreThrowsOnNullScorecard() throws CalculationException {\n try {\n instance.getScore(null, review);\n fail(\"An IllegalArgumentException is expected when given a null scorecard.\");\n } catch (IllegalArgumentException ex) {\n // Good!\n }\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the detached flag. | public boolean isDetached()
{
return m_isDetached;
} | [
"boolean getAttach ()\n {\n return attach;\n }",
"public WrapperProcessConfig setDetached( boolean detached )\r\n {\r\n m_isDetached = detached;\r\n return this;\r\n }",
"public Boolean getDelflag() {\r\n return delflag;\r\n }",
"boolean getDetachAllOnCommit();",
"public i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
supprime la piece qui est a cette position | public void removePiece(Position position)
{
if(positionPossible(position) == false)//inutile de faire des boucle pour rien
{
return;
}
ListIterator<PieceAbstraite> iterator = piece.listIterator();
PieceAbstraite actuel;
while(iterator.hasNext())
{
actuel = iterator.next();
if(positio... | [
"public void makesNotHere(){this.piece.unAffect();}",
"void clearPrevPieceLoc(Piece piece){\n board[piece.oneX()][piece.oneY()] = 0;\n board[piece.twoX()][piece.twoY()] = 0;\n board[piece.threeX()][piece.threeY()] = 0;\n board[piece.fourX()][piece.fourY()] = 0;\n }",
"private void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
continuous feature get id Lists after split by a threshold | private ArrayList<ArrayList<Integer>> idListForLabel(ArrayList<Double> sortedFeature, ArrayList<Double> feature, ArrayList<Integer> dataList,int pThr){
ArrayList<ArrayList<Double>> subList = new ArrayList<>();
ArrayList<Double> dlist1 = new ArrayList<>();
ArrayList<Double> dlist2 = new ArrayList<>();
double bre... | [
"private ArrayList<ArrayList<Integer>> subListWithThreshold_con(double pThre, ArrayList<Integer> dataList, ArrayList<Double> unsortFeature){\n\t\tArrayList<ArrayList<Integer>> idList = new ArrayList<>();\n\t\tArrayList<Integer> list1 = new ArrayList<>();\n\t\tArrayList<Integer> list2 = new ArrayList<>();\n\t\tfor(i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Elasticsearch 2.0 deprecated custom routing hash functions. So what we do here is that for old indices, we move this old & deprecated node setting to an index setting so that we can keep things backward compatible. | private void pre20Upgrade() throws Exception {
final Class<? extends HashFunction> pre20HashFunction;
final String pre20HashFunctionName = settings.get(DEPRECATED_SETTING_ROUTING_HASH_FUNCTION, null);
final boolean hasCustomPre20HashFunction = pre20HashFunctionName != null;
// the hash f... | [
"private IndexMetaData upgradeLegacyRoutingSettings(IndexMetaData indexMetaData) throws Exception {\n if (indexMetaData.settings().get(IndexMetaData.SETTING_LEGACY_ROUTING_HASH_FUNCTION) == null\n && indexMetaData.getCreationVersion().before(Version.V_2_0_0)) {\n // these settings n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for RtypDesc, using the alias name RtypDesc | public String getRtypDesc() {
return (String)getAttributeInternal(RTYPDESC);
} | [
"public java.lang.String getRtDesc() {\r\n return rtDesc;\r\n }",
"public Number getRtypId() {\r\n return (Number)getAttributeInternal(RTYPID);\r\n }",
"public void setRtypDesc(String value) {\r\n setAttributeInternal(RTYPDESC, value);\r\n }",
"public String getCustTypeDesc() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the Id of the given Transition is unique according to XPDL spec rules. | protected boolean checkTransitionId(Transition newEl) {
int idCnt = 0;
WorkflowProcess proc = XMLUtil.getWorkflowProcess(newEl);
String newId = newEl.getId();
Transitions trans = proc.getTransitions();
idCnt += XMLUtil.cntIds(trans, newId);
ActivitySets actSets = proc.getActivitySet... | [
"protected boolean containsTransitionWithId(Set trans, String id) {\n Iterator it = trans.iterator();\n while (it.hasNext()) {\n Transition t = (Transition) it.next();\n if (t.getId().equals(id)) {\n return true;\n }\n }\n return false;\n }",
"protected boo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This provides data to testGetOPBrowserStateCookie(Object cookie, Object expectedResult) | @DataProvider(name = "provideDataForTestGetOPBrowserStateCookie")
public Object[][] provideDataForTestGetOPBrowserStateCookie() {
Cookie opbscookie = new Cookie("opbs", OPBROWSER_STATE);
Cookie commonAuth = new Cookie("commonAuth", "eab0-40d2-a46d");
return new Object[][]{
{... | [
"@DataProvider(name = \"provideDataForTestRemoveOPBrowserStateCookie\")\n public Object[][] provideDataForTestRemoveOPBrowserStateCookie() {\n\n Cookie opbscookie = new Cookie(\"opbs\", OPBROWSER_STATE);\n Cookie commonAuth = new Cookie(\"commonAuth\", \"eab0-40d2-a46d\");\n\n return new Obj... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The start location of the snakes head. | public XYPoint getSnakeHeadStartLocation(); | [
"public int startLocation() {\r\n\t\treturn startingLocation;\r\n\t}",
"public Point getHeadLocation ()\r\n {\r\n if (headLocation == null) {\r\n computeLocations();\r\n }\r\n\r\n return headLocation;\r\n }",
"public Location getStartLocation() {\r\n \treturn new Locatio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for CropId, using the alias name CropId. | public Number getCropId() {
return (Number) getAttributeInternal(CROPID);
} | [
"public Integer getCropId() {\n return cropId;\n }",
"@Override\r\n\tpublic Crop getCrop(int cropId) throws CropNotFoundException \r\n\t{\r\n\t\tCrop crop = cropRepository.findById(cropId).orElse(new Crop());\r\n\t\tif(crop.getCropId()!=cropId)\r\n\t\t{\r\n\t\t\tthrow new CropNotFoundException(\"No Crop... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column account_user.user_industry | public String getUserIndustry() {
return userIndustry;
} | [
"public String getIndustry() {\n return industry;\n }",
"public String getIndustry() {\n\t\treturn industry;\n\t}",
"public String getIndustryCode() {\r\n return industryCode;\r\n }",
"public java.lang.String getIndustry() {\n return industry;\n }",
"@gw.internal.gosu.parser.Ex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unsets the "DiagnosticOrder" element | void unsetDiagnosticOrder(); | [
"void unsetOrder();",
"public void unsetOrderNumber()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ORDERNUMBER$2, 0);\n }\n }",
"public void unsetDrawingorder()\r\n {\r\n synchronized (monit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
yy there is no guarantee that "createPathCalculator" is called with the same network as the one that was used for "preProcessData". This can happen for example when LinkToLink routing is switched on. kai & theresa, feb'15 To fix this, we create the PreProcessData when the first LeastCostPathCalculator object is created... | @Override
public synchronized LeastCostPathCalculator createPathCalculator(final Network network, final TravelDisutility travelCosts, final TravelTime travelTimes) {
if (this.usePreProcessData) {
PreProcessDijkstra preProcessDijkstra = this.preProcessData.get(network);
if (preProcessDijkstra == null) {
pre... | [
"@Test\r\n public void checkHeuristics() {\r\n RoadNetwork rn = createSampleGraph();\r\n LandmarkAlgorithm landAlg = new LandmarkAlgorithm(rn);\r\n List<Long> nodeIds = new ArrayList<Long>();\r\n nodeIds.add(5L);\r\n nodeIds.add(2L);\r\n nodeIds.add(8L);\r\n landAlg.setLandmarkIds(nodeIds);\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Type of result class. | String getResultClass(); | [
"public ResultType getType() {\r\n\t\treturn type;\r\n\t}",
"Class<?> resultClass();",
"public Class getResultType() {\n return _res;\n }",
"public ResultType getResultType() {\n return result_type;\n }",
"@SuppressWarnings(\"unchecked\")\n default Class<Result> resultType() {\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the order data bo. | public static OrderDataBo getOrderDataBo() {
final OrderDataBo orderDataBo = (OrderDataBo) APP_CONTEXT.getBean("orderDataBo");
return orderDataBo;
} | [
"public String getOrderData() {\n return orderData;\n }",
"public Order getData() {\n\n return data;\n }",
"private void getOrderFromDatabase() {\r\n Cursor cursor = helper.getOrderMoreDetails(orderId);\r\n cursor.moveToFirst();\r\n try {\r\n JSONObject sender... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests fix for BUG75592 "SHOW VARIABLES WHERE" is expensive. | public void testBug75592() throws Exception {
if (versionMeetsMinimum(5, 0, 3)) {
MySQLConnection con = (MySQLConnection) getConnectionWithProps("statementInterceptors=" + Bug75592StatementInterceptor.class.getName());
// reference values
Map<String, String> serverVariables... | [
"public void testBug74711() throws Exception {\n this.rs = this.stmt.executeQuery(\"SELECT @@global.query_cache_type, @@global.query_cache_size\");\n this.rs.next();\n if (!\"ON\".equalsIgnoreCase(this.rs.getString(1)) || \"0\".equals(this.rs.getString(2))) {\n System.err\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Request the server to set up a knew game | public void newGame(){
sendGuess(new Request(NEW_GAME));
} | [
"public void startNewGame() throws IOException{\r\n try{\r\n toServer.writeObject(new Guess(\"START\"));\r\n }catch (IOException e){\r\n e.printStackTrace();\r\n }\r\n }",
"public void createGame()\n {\n //call Client Controller's setState method with\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__SequenceAction__ActionAssignment_1" $ANTLR start "rule__GUARD__ExprAssignment_0" InternalDsl.g:35889:1: rule__GUARD__ExprAssignment_0 : ( ruleExpression ) ; | public final void rule__GUARD__ExprAssignment_0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:35893:1: ( ( ruleExpression ) )
// InternalDsl.g:35894:2: ( ruleExpression )
{
// InternalDsl.g:35894:2: ( ... | [
"public final void rule__GUARD__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:11088:1: ( ( ( rule__GUARD__ExprAssignment_0 ) ) )\n // InternalDsl.g:11089:1: ( ( rule__GUARD__ExprAssignment_0 ) )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__NewProcessStatement__Group__1" $ANTLR start "rule__NewProcessStatement__Group__1__Impl" InternalDsl.g:28742:1: rule__NewProcessStatement__Group__1__Impl : ( ( rule__NewProcessStatement__ElementAssignment_1 ) ) ; | public final void rule__NewProcessStatement__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:28746:1: ( ( ( rule__NewProcessStatement__ElementAssignment_1 ) ) )
// InternalDsl.g:28747:1: ( ( rule__NewProcessState... | [
"public final void rule__NewElement__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:28881:1: ( ( ( rule__NewElement__ProcessAssignment_0 ) ) )\n // InternalDsl.g:28882:1: ( ( rule__NewElement__Process... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts a position in the circular list to the matching position in the original list | public int circularPosToArrayPos(int circularPos){
if(this.innerList.isEmpty()){
return 0;
}
int rsp = (head + circularPos) % this.innerList.size();
return Math.abs(rsp);
} | [
"void changePositions(List<CardListPosition> cardListPositions);",
"public int arrayPosToCircularPos(int arrayPos){\r\n if(arrayPos < 0){\r\n throw new ArrayIndexOutOfBoundsException();\r\n }\r\n return (head + arrayPos -1) % this.innerList.size();\r\n }",
"public void reindex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the output directory for the DAO unit test. | String getDaoUnitTestStringOutDir(); | [
"public static String getOutputDir() {\n outputDir = getProperty(\"outputDir\");\n if (outputDir == null) outputDir = \"./\";\n return outputDir;\n }",
"public String getOutputDataDirectory();",
"public String getOutputDirectory();",
"public abstract String getTestResultsDir();",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an Optimizer that implements the Adamax algorithm. | public Adamax(Graph graph, String name, float learningRate) {
this(graph, name, learningRate, BETA_ONE_DEFAULT, BETA_TWO_DEFAULT, EPSILON_DEFAULT);
} | [
"public Adamax(Graph graph, String name) {\n this(graph, name, LEARNING_RATE_DEFAULT, BETA_ONE_DEFAULT, BETA_TWO_DEFAULT, EPSILON_DEFAULT);\n }",
"OptimisationAlgo createOptimisationAlgo();",
"public Adamax(\n Graph graph, String name, float learningRate, float betaOne, float betaTwo, float epsilon) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column gd_dept.dept_scene_id | public void setDeptSceneId(String deptSceneId) {
this.deptSceneId = deptSceneId == null ? null : deptSceneId.trim();
} | [
"public void setSceneID(long sceneID) {\n this.sceneID = sceneID;\n }",
"public void setSceneID(int n){\n this.sceneID = n;\n }",
"public String getDeptSceneId() {\n return deptSceneId;\n }",
"public int getSceneID(){\n return this.sceneID;\n }",
"@Override\n public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets value as the attribute value for SvpSignature. | public void setSvpSignature(BlobDomain value) {
setAttributeInternal(SVPSIGNATURE, value);
} | [
"void setSignature(cl.sii.siiDte.dsig.SignatureType signature);",
"public void setSignature(byte[] voteSignature)\r\n\t{\r\n\t\tthis.signature = voteSignature;\r\n\t}",
"public static native void CommitmentSigned_set_signature(long this_ptr, byte[] val);",
"public static native void FundingSigned_set_signatur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Shfits the columns towards the center if there are any empty columns | private void shiftColumnsToCenter()
{
int centerCol = boardSize / 2;
/*Iterates through all of the columns left of the center*/
for(int ndx = centerCol; ndx < boardSize - 1; ndx++)
{
shift(ndx, 1);
}
/*If the board is even sized the move the center left one*/
if(boardSize % 2 == 0)
{
centerCol-... | [
"private void fixColumn() {\n\t\twhile(frontIsClear()) {\n\t\t\tturnLeft();\n\t\t\tputStone();\n\t\t}\n\t\tif (noBeepersPresent()) {\n\t\t\tputBeeper();\n\t\t}\n\n\t}",
"void insertEmptyColumns() {\n List<DateTime> starts = new ArrayList<>();\n for (Long startMillis : mColumnsByStartMillis.k... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks lexeme for correctness (sync points). If corrupted, the lexeme will not be added but stored in the corrupted lexemes list. Minimal condition is that a lexeme contains: START READY END Also, labels must be in correct order. If one of the above is violated it results in a LEXEME_ERROR, the lexeme is not added. TOD... | private boolean checkLexeme(BehaviorLexeme lexeme)
{
List<BMLSyncLabel> syncList = lexeme.getOrderedSyncLabels();
// check minimal set
BMLSyncLabel[] minimalSet = {BMLSyncLabel.START, BMLSyncLabel.READY, BMLSyncLabel.END};
boolean containsMinimalSet = true;
for (BMLSyncLabel... | [
"private void checkAndCorrectLabelReferences() {\n\t\t\n\t\tboolean madeChange;\n\t\tCodeItem codeItem = getCodeItem();\n\t\tList<Label> labels = codeItem.getLabels();\n\n\t\t// Parses all the Labels, and all the OffsetInstructions inside the Labels.\n\t\t// We stop the parsing whenever a change of instruction has ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'calle' field has been set | public boolean hasCalle() {
return fieldSetFlags()[4];
} | [
"public void setCalle(String calle) {\n this.calle = calle;\n }",
"public expedidoEn.emisor.comprobante.Builder setCalle(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.calle = value;\n fieldSetFlags()[4] = true;\n return this; \n }",
"public boolean isSet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when a peer node is added to the user account | void accountPeerAdded(String peerId); | [
"void addPeer(Uuid peer) throws RemoteException;",
"@Override\n public void userCapsNodeAdded(Jid user, List<Jid> fullJids,\n String node, boolean online)\n {\n /*\n * It doesn't matter to us whether a caps node has been added or removed\n * for the sp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'var110' field has been set. | public boolean hasVar110() {
return fieldSetFlags()[111];
} | [
"public boolean hasVar112() {\n return fieldSetFlags()[113];\n }",
"public boolean hasVar111() {\n return fieldSetFlags()[112];\n }",
"public boolean hasVar109() {\n return fieldSetFlags()[110];\n }",
"public boolean hasVar120() {\n return fieldSetFlags()[121];\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Attempts to add every juggler to their firstchoice circuit If that circuit is already full, after being added to the circuit, the worst person in the circuit will be kicked to their 2nd choice | public void addAllJugglersToFirstCircuitChoice() {
for (int currentJuggler = 0; currentJuggler < jugglers.size(); currentJuggler++) { // For each juggler who needs to be added to a circuit...
int currentJugglerMostDesiredCircuitIndex = jugglers.get(currentJuggler).getDesiredCircuits().get(0);
... | [
"private void dealerChoise(){\n\t\tfor(int i = 0; i < Player.size(); i++){\n\t\t\tif(!Player.get(i).bustStatus()){\n\t\t\t\twhile(comp.makeChoise()){\n\t\t\t\t\tcomp.addCardToHand(gameDeck.dealCard());\n\t\t\t\t\tprintCardsDealer(comp);\n\t\t\t\t\tif(this.checkBust(comp)){\n\t\t\t\t\t\tSystem.out.println(\"DEALER B... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Scrolls the item into view. | public void scrollIntoView(T item) {
if (rendered) {
item.el().scrollIntoView(el().dom, false);
}
} | [
"public void scroll();",
"@Listen(\"onClick = #scroll\")\n\tpublic void scrollIntoView() {\n\t\ttreeModel.setOpenObjects(treeModel.getRoot().getChildren());\n\t\tTreeitem[] items = tree.getItems().toArray(new Treeitem[0]);\n\t\tClients.scrollIntoView(items[items.length - 1]); //last item is /WEB-INF\n\t}",
"pri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets a cache of providers that are predefined. | void setProviderCache(Map<String /* provider name */, ProviderCache> providerCache); | [
"private void cacheProviders(Context context, Collection<Provider> providers) {\n FileOutputStream fos = null;\n ObjectOutputStream os = null;\n try {\n fos = context.openFileOutput(PROVIDERS_CACHE_FILE, Context.MODE_PRIVATE);\n os = new ObjectOutputStream(fos);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set the font flags Bit 1: If set, font is subsetted | public void setFontFlags(int val){
flags = val;
} | [
"public native void setFontBuilderFlags(int fontBuilderFlags);",
"public void setFont(Font font);",
"public boolean isFontSet() { return false; }",
"public void setFontType(int val){\n type = val;\n }",
"public void setCurrentFont(){\n\t\t\n\t}",
"void setFontFamily(ReaderFontSelection f);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/retourne une collection ArrayList de type contenant toutes les aptitudes existants dans la base | public static ArrayList<AptitudeBean> getAptitudeList(){
ArrayList<AptitudeBean> listAptitude = new ArrayList<AptitudeBean>();
try (Connection conn=DBConnection.getConnection();
PreparedStatement prstm = conn.prepareStatement("select * from aptitude;");
ResultSet rs= prstm.executeQuery();){
... | [
"public void add_guariti(ArrayList<Persona> pg){ guariti.addAll(pg); }",
"public abstract ArrayList<Proiettile> getProiettili();",
"java.util.List<bosphorus2.Aomgen.ARCHETYPETERM> \n getItemsList();",
"public void add_asintomatici(ArrayList<Persona> ps){ //TEST\n asintomatici.addAll(ps);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'field586' field | public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField586() {
field586 = null;
fieldSetFlags()[586] = false;
return this;
} | [
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField232() {\n field232 = null;\n fieldSetFlags()[232] = false;\n return this;\n }",
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField858() {\n field858 = null;\n fieldSetFlags()[858] = false;\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get all user's planner based on the pagination criteria, also perform searching sorting This function specially works to return grid response for jqgrid | @Override
public GridResponse getAllUserPlannersList(Integer skipRecord,
Integer skipRecordFreq, Integer page, String sortBy,
String sortOrder, Map<Object, Object> filters) {
// creating object of grid response class
GridResponse gridResponse = new GridResponse();
UserPlannerBuilder userPlannerBuilder = n... | [
"@Override\n\tpublic GridResponse getPlannersList(Integer skipRecord,\n\t\t\tInteger skipRecordFreq, Integer page, String sortBy,\n\t\t\tString sortOrder, Map<Object, Object> filters) {\n\n\t\t// creating object of grid response class\n\t\tGridResponse gridResponse = new GridResponse();\n\t\tPlannerBuilder plannerB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a set of polygons describing this controller's click boundary. | public Set<Polygon> getBounds()
{
return new HashSet<Polygon>();
} | [
"public Polygon[] getPolygons() {\n return this.polygons;\n }",
"public ArrayList<Polygon> getPolygons ()\n\t{\n\t\treturn object;\n\t}",
"protected Rectangle[] getBoundAreas() {\n\t\tareas[0].setBounds((int) x-10, (int) y + 210, eyeOpen.getWidth(), eyeOpen.getHeight());\n\t\tareas[1].setBounds((int) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |