query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Method called if the app has the ACCESS_FINE_LOCATION. Creates a Location task that tries to retrieve last location from the FusedLocationProviderClient, which has a onSuccessListener, if the task is successful get latitude and longitude of the devices last location, create a new instance of NearbyMuseumTask and pass a...
@SuppressLint("MissingPermission") @AfterPermissionGranted(PERMISSION_LOCATION_ID) private void getCurrentLocation() { Task<Location> task = fusedLocationProviderClient.getLastLocation(); task.addOnSuccessListener(new OnSuccessListener<Location>() { @Override public void ...
[ "private void setUpLastKnownLocation(){\n if(ActivityCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n android.Manifest...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the right bar panel.
private void clearPanels() { Global.window.rightBar.uavsPanel.setText(null); }
[ "public void clear() {\r\n\t\tdeleteElementsOfEnteredBar();\r\n\t\tprintError(\"Bar cleared\");\r\n\t}", "public void clearBottomBar() {\r\n BottomBarPainter.paint();\r\n }", "public void clearPanel();", "public void removeAllBars() {\n bars.clear();\n }", "public void clearMusicPanel(){...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the SIPStack object from this message channel.
public abstract SIPTransactionStack getSIPStack();
[ "public StackInterface Stack() { return mStack; }", "public List<IMessage> getStack();", "public String getStack() {\n return this.stack;\n }", "public ItemStack getStack()\n\t{\n\t\treturn stack.copy();\n\t}", "public interface StackMessageFactory {\n /**\n * Make a new SIPServerResponse given a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets whether to extract common prefixes from register names
public static void setExtractCommonPrefix(boolean extractCommonPrefix) { ModeControl.extractCommonPrefix = extractCommonPrefix; }
[ "public static boolean isExtractCommonPrefix() {\n return extractCommonPrefix;\n }", "@Test public void prefixes1() {\n String data1 = StrUtils.strjoinNL\n (\"@prefix : <http://example/> .\" ,\n \"@prefix ex: <http://example/ex#> .\" ,\n \"@prefix xsd: <\"+XSD.getU...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
WIP toggle for the line counter. Not added yet.
@FXML public void lineCounterToggle(){ if(lineCounter.isSelected() == false) { try { synchronized(update) { update.wait(); } } catch (InterruptedException e) { System.out.println("InterruptedException"); e.printStackTrace(); } counterColumn.clear(); counterColumn.setVisible(false...
[ "private void toggleLineNumberRuler()\n \t{\n \t\tfShowLineNumber=!fShowLineNumber;\n \t\t\n \t\tupdateLineNumberRuler();\n \t}", "private void updateLines(final int theNumLinesCleared) {\n myLines += theNumLinesCleared;\n myLinesLabel.setText(Integer.toString(myLines));\n }", "@Action(selected...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the inPalette property.
public boolean isInPalette() { return inPalette; }
[ "public int [] getPalette() {\r\n return bitmapColors;\r\n }", "public void setInPalette(boolean value) {\r\n this.inPalette = value;\r\n }", "public DrawPanel getPalettePanel() {\n String name= (String) _paletteList.getSelectedItem();\n return _paletteHashtable.get(name); \n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converts a GrayImage to a RealColorImage. Each plane of the color image has the same value in every pixel.
public static RealColorImage toRealColor(GrayImage img) { int X = img.X(); int Y = img.Y(); float[] color = new float[3]; float gray; RealColorImage newimg = new RealColorImage(X, Y); for (int y = 0; y < Y; y++) { for (int x = 0; x < X; x++) { gray = (float) img.get(x, y); color[0] = gray; co...
[ "public static RealColorImage toRealColor(RealGrayImage img) {\n\t\tint X = img.X();\n\t\tint Y = img.Y();\n\t\tfloat[] color = new float[3];\n\t\tfloat gray;\n\t\tRealColorImage newimg = new RealColorImage(X, Y);\n\t\tfor (int y = 0; y < Y; y++) {\n\t\t\tfor (int x = 0; x < X; x++) {\n\t\t\t\tgray = img.get(x, y);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If I can save the record then set the variable error to false. After I get the list of people and go to list template.
@RequestMapping("/insert") public String insert(Person person, Model model) { if (service.newRecord(person)) { model.addAttribute("error", false); return listPeople(model); //If I can not save the record then set the variable to true and go to newperson template. } else { model.addAttribute("erro...
[ "public String getSuccessPage() throws Exception \n{\t \n\t\n\t if(record.getFirstName()!=\"\")\n {\n\t utility.saveStudentSurvey(record); \n\t \n\t \n\t \t\t \n }\n \n\t return \"success\";\n \n}", "private final void savePeopleInfo() {\n }", "public void upda...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This interface is useful to save an object with JSONObjet.set(String where, Object what)
public interface JStorable { /** * Return the Object as an JSONObject */ public JSONObject save(); /** * Load the Object from a JSONObject * @param obj * The JSONObject */ public void load(JSONObject obj); }
[ "public interface Jsonable {\r\n\t/**\r\n\t * Saves the object to a processing JSON object\r\n\t * @return - a JSON object containing the information to recreate this object\r\n\t */\r\n\tpublic JSONObject saveToJson();\r\n\t\r\n\t/**\r\n\t * Loads from the given JSON object\r\n\t * @param jsonable - a JSON object ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__InlineEnumerationType__Group__1__Impl" $ANTLR start "rule__InlineEnumerationType__Group__2" InternalTaskDefinition.g:2420:1: rule__InlineEnumerationType__Group__2 : rule__InlineEnumerationType__Group__2__Impl rule__InlineEnumerationType__Group__3 ;
public final void rule__InlineEnumerationType__Group__2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalTaskDefinition.g:2424:1: ( rule__InlineEnumerationType__Group__2__Impl rule__InlineEnumerationType__Group__3 ) // InternalTaskDef...
[ "public final void rule__InlineEnumerationType__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTaskDefinition.g:2397:1: ( rule__InlineEnumerationType__Group__1__Impl rule__InlineEnumerationType__Group__2 )\n // I...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prints the coordinates of each town
public void printCoord(final ArrayList<double[]> coord) { for (final double[] f : coord) { double _get = f[0]; double _get_1 = f[1]; double _get_2 = f[2]; System.out.println(((((("Town n°: " + Double.valueOf(_get)) + " | x=") + Double.valueOf(_get_1)) + " | y=") + Double.valueOf(_get_2))); ...
[ "public void printCoordinates ()\n\t{\n\t\tfor (int a = 0; a < object.size(); a++)\n\t\t{\n\t\t\tSystem.out.println(\"Polygon \" + (a+1) + \":\");\n\t\t\tobject.get(a).detailedPrint();\n\t\t\tSystem.out.println(\"**********\");\n\t\t}\n\t}", "public void diplayTownInfo()\n\t{\n\t\tSystem.out.println(\"Welcome to ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the number of articles where articleStatus = &63;.
@Override public int countByArticleStatus(int articleStatus) throws SystemException { FinderPath finderPath = FINDER_PATH_COUNT_BY_ARTICLESTATUS; Object[] finderArgs = new Object[] { articleStatus }; Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, this); if (count == null) { St...
[ "public int countByArticle(java.lang.String articleId);", "@Transactional\n\tpublic Integer countArticles() {\n\t\treturn ((Long) articleDAO.createQuerySingleResult(\"select count(o) from Article o\").getSingleResult()).intValue();\n\t}", "@Override\n\tpublic int countByIsArticlePublished(boolean isArticlePubli...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getter for columnar file name
public String getColumnarFileName() throws Exception { String val = Convert.getStrValue(COLUMNNAR_FILE_NAME_POSITION, data, COLUMNNAR_FILE_NAME_SIZE); return val.trim(); }
[ "public String getFileName() {\n return getCellContent(FILE).split(FILE_LINE_SEPARATOR)[0];\n }", "java.lang.String getFileName();", "public String getFilename(int row) {\n return (String) getValueAt(row, 2);\n }", "java.lang.String getFilename();", "public String getFileName() {\n\t\t\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets status of tray menu whether is blocked or not
public void setBlockTrayMenu(boolean blockTrayMenu) { this.blockTrayMenu = blockTrayMenu; }
[ "public boolean isBlockTrayMenu() {\n\t\treturn blockTrayMenu;\n\t}", "private void setSystemTray() {\r\n //Check the SystemTray is supported\r\n if (!SystemTray.isSupported()) {\r\n System.out.println(\"SystemTray is not supported\");\r\n return;\r\n }\r\n final ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set gps connection status
public static void setGpsConnected(boolean d) { gpsconnected = d; }
[ "private void turnGPSOn(Context context) {\n try {\n Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED, \"network,gps\");\n } catch(Exception e) {\n velocitydisplay.setText(e.getMessage());\n }\n Date now = new Date();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lists all the skus with the specified resource type in the given region.
PagedFlux<ComputeSku> listByRegionAndResourceTypeAsync(Region region, ComputeResourceType resourceType);
[ "PagedIterable<ComputeSku> listByRegionAndResourceType(Region region, ComputeResourceType resourceType);", "@GetMapping(\"/region-types\")\n @Timed\n public List<RegionTypeDTO> getAllRegionTypes() {\n log.debug(\"REST request to get all RegionTypes\");\n return regionTypeService.findAll();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This name is the same as the non_unique_name field returned within the SyncEntity message in GetUpdatesResponse. optional string non_unique_name = 8;
java.lang.String getNonUniqueName();
[ "@java.lang.Override\n public java.lang.String getNonUniqueName() {\n return nonUniqueName_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getNonUniqueNameBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(nonUniqueName_);\n }", "public String getU...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////// check if the disc id equals the special brick id which indicates keeping the special effect while moving
public boolean isSpecialBrick(String discId){ if (specialBrickId!=null){ if (specialBrickId.equals(discId)){ return true; } } return false; }
[ "public boolean IsDiscInIntake(){\n if(colorSensorArray.GetSensor(4).alpha() > discAlpha) return true;\n else return false;\n }", "public void ifBallHitsBrick(){\n Brick brick1 =brickWall.getBrickAt(ball.getX()+ball.getWidth()/2,ball.getY());\n Brick brick2 =brickWall.getBrickAt(bal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Mutates the given classifier according to the given state by flipping condition chars and potentially choosing a new action to perform Reference: Page 13 'An Algorithmic Description of XCS'
private void applyMutation(Classifier<A, C> cl, S state){ cl.getCondition().mutate(state, constants.getMu()); if(random.nextDouble() < constants.getMu()){ Set<A> covered = new HashSet<A>(); covered.add(cl.getAction()); cl.setAction(findRandomElementInSet(uncoveredActions(covered))); } }
[ "private MoC classifyCSDF() {\r\n \t\t// new interpreter must be called before creation of ActorState\r\n \t\tAbstractInterpreter interpreter = newInterpreter();\r\n \r\n \t\tActorState state = new ActorState(actor);\r\n \t\tif (state.isEmpty()) {\r\n \t\t\treturn classifyCSDFStateless(interpreter);\r\n \t\t} else ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convert the String to boolean. "1" = true "true" = true (ignore case) "yes" = true (ignore case) "on" = true (ignore case) Others will lead to false.
public static boolean string2Boolean(String string) { return "1".equals(string) || "true".equalsIgnoreCase(string) || "yes".equalsIgnoreCase(string) || "on".equalsIgnoreCase(string); }
[ "private boolean convertToBoolean (String s) {\n return (\"1\".equalsIgnoreCase(s)\n || \"yes\".equalsIgnoreCase(s)\n || \"true\".equalsIgnoreCase(s)\n || \"on\".equalsIgnoreCase(s)\n || \"y\".equalsIgnoreCase(s)\n || \"t\".equalsIgnoreCase(s));\n }", "public st...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the rule ID for this structure rule.
public int getRuleID() { return schema.getRuleID(); }
[ "int getRuleId();", "public int getRuleId() {\n return ruleId_;\n }", "public Integer getRuleId() {\n return ruleId;\n }", "public String ruleId() {\n return this.ruleId;\n }", "public Long getRuleId() {\n\t\treturn ruleId;\n\t}", "public String getRuleId() {\r\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
// setSlot // //
public void setSlot (Slot slot) { this.slot = slot; }
[ "private void setSlot(int slot) {\n\t}", "public void setSlot( int slot, Slot s );", "public void setSlot(int slot){\n this.slot = slot;\n }", "public void setSlot(int slot) {\r\n this.slot = slot;\r\n }", "public void setSlot(int slot) {\n this.slot = slot;\n }", "public voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the locations of tree
public ArrayList<Integer[]> getTreeLocations() { return treeLocations; }
[ "public static ArrayList<Position> getTreePositions() {\n List<Element> trees = getTrees().getChildren(\"tree\");\n ArrayList<Position> treePositions = new ArrayList<Position>();\n\n //add the positions to a list\n for (Element tree : trees) {\n treePositions.add(new Position(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unsets the "Description" element
public void unsetDescription() { synchronized (monitor()) { check_orphaned(); get_store().remove_element(DESCRIPTION$6, 0); } }
[ "public void unsetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DESCRIPTION$8, 0);\n }\n }", "public void unsetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of RGBtoCIE method, of class ColourspaceConverter.
@Test public void testRGBtoCIE() { System.out.println("RGBtoCIE"); double r = 255.0; double g = 171.0; double b = 32.0; double[] result = ColourspaceConverter.RGBtoCIE(r, g, b); assertEquals(76.369, result[0],e); assertEquals(21.182, result[1],e); asse...
[ "@Test\n public void testCIEtoRGB() {\n System.out.println(\"CIEtoRGB\");\n double l = 76.369;\n double a = 21.182;\n double b = 74.945;\n double[] result = ColourspaceConverter.CIEtoRGB(l, a, b);\n assertEquals(255.0, result[0],e);\n assertEquals(171.0, result[1]...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the token which is the compact name of the header.
public DsByteString getCompactToken() { return sCompactToken; }
[ "String getTokenName();", "private String readHeader(RoutingContext ctx) {\n String tok = ctx.request().getHeader(XOkapiHeaders.TOKEN);\n if (tok != null && ! tok.isEmpty()) {\n return tok;\n }\n return null;\n }", "String getShortToken();", "String getHeaderName();", "public static String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Multiplies the matrix by the given fraction
public Matrix multiply(Fraction f) { return multiply(new ComplexNumber(f)); }
[ "Matrix multiply(double value);", "void multiplyBy(double constant) throws MatrixException;", "public Matrix multiply(int i) {\n\t\treturn multiply(new Fraction(i));\n\t}", "Matrix divide(double constant) throws MatrixException;", "public static void multiplyRow(int r, int val, Matrix matrix){\n Frac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the diagram from the resource, if there is one.
public static Optional<Diagram> getDiagramFromResource(Resource res) { for (Object o : res.getContents()) { if (o instanceof Diagram) { return Optional.of((Diagram)o); } } return Optional.empty(); }
[ "Diagram getDiagram();", "void getDiagram ();", "public UmlUseCaseDiagram associatedDiagram() {\n read_if_needed_();\n \n return _assoc_diagram;\n }", "protected boolean isExportDiagramResourceIfPresent() {\r\n\t\treturn this.getExportOptions().isExportDiagramResourceIfPresent();\r\n\t}", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__DomainSpec__Group__2" $ANTLR start "rule__DomainSpec__Group__2__Impl" InternalSymboleoide.g:2119:1: rule__DomainSpec__Group__2__Impl : ( ( ( rule__DomainSpec__Group_2__0 ) ) ( ( rule__DomainSpec__Group_2__0 ) ) ) ;
public final void rule__DomainSpec__Group__2__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalSymboleoide.g:2123:1: ( ( ( ( rule__DomainSpec__Group_2__0 ) ) ( ( rule__DomainSpec__Group_2__0 )* ) ) ) // InternalSymboleoide.g:2124...
[ "public final void rule__DomainSpec__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSymboleoide.g:2226:1: ( rule__DomainSpec__Group_2__1__Impl )\n // InternalSymboleoide.g:2227:2: rule__DomainSpec__Group_2__1__...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes atheneService and example exercise
@BeforeEach public void init() { // Create example exercise database.addUsers(10, 1, 1); var course = database.addCourseWithOneReleasedTextExercise(); exercise1 = (TextExercise) course.getExercises().iterator().next(); atheneRequestMockProvider.enableMockingOfRequests(); ...
[ "AnalysisOfDB() {\n\t\t// System.out.println(\"in testDb constructor with default DB and domain\");\n\t\ttry {\n\t\t\tsdb = new AmazonSimpleDBClient(new PropertiesCredentials(\n\t\t\t\t\tAnalysisOfDB.class\n\t\t\t\t\t\t\t.getResourceAsStream(\"AwsCredentials.properties\")));\n\t\t} catch (IOException e) {\n\t\t\t//...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new RegistrationServlet form dto.
public RegistrationFormDto(String firstName, String lastName, String password, String confirmPassword, String email, boolean isMailingEnable, String role) { this.firstName = firstName; this.lastName = lastName; this.password = password; this.confirmPassword = confirmPassword; thi...
[ "public RegistrationForm() {\r\n }", "@POST\n\t@Path(\"/signup\")\n\t@Produces(MediaType.TEXT_XML)\n\tpublic RegistrationForm registerPatient(\n\t\t\tfinal RegistrationForm registrationForm) {\n\t\tpatientSignUpBusinessService.saveSignUpInfo(registrationForm);\n\t\treturn registrationForm;\n\t}", "@GetMappin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set renderer and editors for session table
public void setTableRendersAndEditors(DefaultCellEditor dce) { DefaultCellEditor singleclick = new DefaultCellEditor(new JCheckBox()); singleclick.setClickCountToStart(2); table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); table.setAutoCreateRowSorter(true); table.setFi...
[ "public ManageSessionsPanel() {\n initComponents();\n sessionTableModel = new SessionTableModel();\n sessionTable.setModel(sessionTableModel);\n sessionTable.setRowSelectionAllowed(false);\n sessionTable.setGridColor(Color.WHITE);\n }", "@Override\n public ChatPanel getCha...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the harvest qty decimal.
public String getHarvestQtyDecimal() { return harvestQtyDecimal; }
[ "public String getHarvestAmountDecimal() {\n\n return harvestAmountDecimal;\n }", "org.spin.grpc.util.Decimal getQuantityOnHand();", "org.spin.grpc.util.Decimal getQuantityOrdered();", "public Double getQty() {\n return qty;\n }", "private int grabTotalPrice() {\n testClass.waitTill...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculates the teams rank in the system
public double calculateRank() { this.teamRank = new Rank(PCT, offenseStats, defenseStats, this); return teamRank.calculateRank(); }
[ "public ArrayList<CollegeFootballTeam> rankTeams();", "public void calculateOpponentsRank() {\n int sum;\n for (int i = 4; i < 8; i++) {\n if (consecutives[i] == 4) {\n rank += 36 * rankMultiplier;\n } \n else if (consecutives[i] + openSides[i] >= 5) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Population in boss house = number stone + numberBoss 5
public int getPopulation() { if (this.isHasBoss()) { this.population = this.getNumberStone() + 5; } else { this.population = this.getNumberStone(); } return this.population; }
[ "int getPopulation();", "public int getPopulation() {\r\n return Population;\r\n }", "public void populationInc() {\r\n populationNumber++;\r\n }", "private void genBossFloors() {\n Random random = new Random(); // use a fresh random generator to insure\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
a constructor for the geo point, which gets two arguments, the point and the geometry
public GeoPoint(Geometry geometry, Point3D point) { this.geometry = geometry; this.point = point; }
[ "public GeoPoint(Geometry geometry, Point3D point) {\n\tsuper();\n\tthis.geometry = geometry;\n\tthis.point = point;\n}", "public GeoPoint(Geometry g, Point3D p) {\n this.geometry = g;\n this.point = p;\n }", "public GeoPoint(double lat, double lon){\n this(lat, lon, -1d);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The device for which the extensions will serve. Optional. .google.ads.googleads.v13.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice device = 5;
com.google.ads.googleads.v13.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice getDevice();
[ "com.google.ads.googleads.v6.resources.CampaignExtensionSetting getCampaignExtensionSetting();", "com.google.ads.googleads.v6.resources.CustomerExtensionSetting getCustomerExtensionSetting();", "com.google.ads.googleads.v1.resources.CampaignExtensionSetting getCampaignExtensionSetting();", "com.google.ads.goo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Colocated'.
Colocated createColocated();
[ "public CUmemLocation()\r\n {\r\n // Default constructor\r\n }", "Location createLocation();", "private Location()\n\t{\n\t\tthis (null, null);\n\t}", "public LocalCluster build() throws Exception {\n return new LocalCluster(this);\n }", "private Locations()\n {\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interprets a given List of Strings to a single String
@NonNull private String interpret(List<String> strings) { String string = strings.toString(); return string.substring(1, string.length() - 1); }
[ "static String listToString(List<String> inputList) {\n return inputList.stream().collect(Collectors.joining(\"\\n\"));\n }", "public String convertListToString(List<String> input) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(String s:input) {\n\t\t\tsb.append(s);\n\t\t}\n\t\treturn sb.toString();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method sets the value of the database column EP_MAIL.ML_TDEF5
public void setMlTdef5(Date mlTdef5) { this.mlTdef5 = mlTdef5; }
[ "public void setMlSdef5(String mlSdef5) {\n this.mlSdef5 = mlSdef5;\n }", "public void setMlNdef5(BigDecimal mlNdef5) {\n this.mlNdef5 = mlNdef5;\n }", "public void setMT202_FIELD72_5(String MT202_FIELD72_5) {\r\n this.MT202_FIELD72_5 = MT202_FIELD72_5 == null ? null : MT202_FIELD72_5...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo posRandomDeCeldasLibres, generamos un random con las posiciones del array que estan libres para posteriormente poder introducir la celula en una de esas posiciones.
public int posRandomDeCeldasLibres() { int posicionRandom; // Nos devuelve una posicion dada por un random y el numero de celdas libres. posicionRandom = (int) (Math.random() * numeroDeCeldasLibres); return posicionRandom; }
[ "private static int[] calculateLotto() {\r\n int random;\r\n int[] array = new int[ArraySize];\r\n for (int i = 0; i < array.length; i++) {\r\n random = Math.getRandom(1, ArrayMax);\r\n if (!Arrays.contains(random, array))\r\n array[i] = random;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prints the number of employees who has invalid lines in the log file
public void printFaultyEmployees() { System.out.println(localizer.getString(Messages.INVALID_LINES, violations.size())); }
[ "public int checkDatabaseLines(){\n int i = 0;\n try{\n Scanner inputstream = new Scanner (new FileInputStream(\"database/userdatabase.txt\"));\n while (inputstream.hasNextLine()){\n inputstream.nextLine();\n i++;\n }\n } catch (Fil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor that receives a LuaState.
public JavaFunction(LuaState L) { this.L = L; }
[ "public LedState() {\t}", "protected LuaState(int stateId) {\n\t\tluaState = _open(stateId);\n\t\tthis.stateId = stateId;\n\t}", "public MiniWorldState() {\n }", "public GameState(State.StateView state) {\n }", "void create( State state );", "State createState();", "public StateManager(State initi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Executed once token is expired after user makes request to web service.
@Override public void handleTokenExpiration(){ JWTToken.removeTokenSharedPref(this); }
[ "@Override\n public void onRequestToken() {\n Toast.makeText(getApplicationContext(), \"Your token has expired\", Toast.LENGTH_LONG).show();\n Log.i(\"Video_Call_Tele\", \"The token as expired..\");\n // mRtcEngine.renewToken(token);\n // https://docs.agora.io/en/V...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets center of the bottom circle
public Vector getBottomCenter() { return new Vector(position.x + BOTTOM_RADIUS, position.y + BOTTOM_RADIUS); }
[ "public double getCenter() {\n return 0.5 * (lo + hi);\n }", "public int getBottom() {\n return (int) mCenter.y + RADIUS;\n }", "public Point getCenter() {\r\n\t\treturn new Point(getX() + radius, getY() + radius);\r\n\t}", "public float ycenter() {\n\t\treturn (y + height) / 2;\n\t}", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the csp_Identificador value for this Csp_Get_Info_User_OutBlock.
public void setCsp_Identificador(java.lang.String csp_Identificador) { this.csp_Identificador = csp_Identificador; }
[ "public void setIdentificador(java.lang.String identificador);", "public void setIdentificadorOde(java.lang.String identificadorOde);", "public java.lang.String getCsp_Identificador() {\n return csp_Identificador;\n }", "public String getIdentificacao() {\n\t\treturn identificacao;\n\t}", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table OP.T_CT_ERROR_CALL
@SelectProvider(type=TCtErrorCallSqlProvider.class, method="selectBySpec") @Results({ @Result(column="ERROR_NO", property="errorNo", jdbcType=JdbcType.VARCHAR, id=true), @Result(column="CREATE_DATE", property="createDate", jdbcType=JdbcType.VARCHAR, id=true), @Result(column="CREATE_TIME"...
[ "@Insert({\r\n \"insert into OP.T_CT_ERROR_CALL (ERROR_NO, CREATE_DATE, \",\r\n \"CREATE_TIME, ARRIVAL_DATE, \",\r\n \"ARRIVAL_TIME, ARRIVAL_PDA_DATE, \",\r\n \"ARRIVAL_PDA_TIME, ARRIVAL_XPOS, \",\r\n \"ARRIVAL_YPOS, ARRIVAL_SIDO, \",\r\n \"ARRIVAL_GUGUN, ARRIVAL_DONG, \",\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleInputtypeOptions" $ANTLR start "entryRuleOutputSection" ../org.xtext.hipie/srcgen/org/xtext/hipie/parser/antlr/internal/InternalHIPIE.g:2367:1: entryRuleOutputSection returns [EObject current=null] : iv_ruleOutputSection= ruleOutputSection EOF ;
public final EObject entryRuleOutputSection() throws RecognitionException { EObject current = null; EObject iv_ruleOutputSection = null; try { // ../org.xtext.hipie/src-gen/org/xtext/hipie/parser/antlr/internal/InternalHIPIE.g:2368:2: (iv_ruleOutputSection= ruleOutputSection EOF )...
[ "public final EObject entryRuleOutputOption() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleOutputOption = null;\n\n\n try {\n // ../org.xtext.hipie/src-gen/org/xtext/hipie/parser/antlr/internal/InternalHIPIE.g:3008:2: (iv_ruleOutputOption= ruleOutputOpti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.cfwf.client_conn.school.ResourceFileInfo vedio_info = 4;
com.cfwf.cb.business_proto.ClientConnSchool.ResourceFileInfoOrBuilder getVedioInfoOrBuilder();
[ "com.cfwf.cb.business_proto.ClientConnSchool.ResourceFileInfo getVedioInfo();", "com.cfwf.cb.business_proto.ClientConnSchool.ResourceFileInfo getFileInfo();", "com.cfwf.cb.business_proto.ClientConnSchool.ResourceFileInfo getCoverimgInfo();", "public com.cfwf.cb.business_proto.ClientConnSchool.ResourceFileInfo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stores given float value. Alignment aware.
public static void putFloat(long addr, float val) { if (UNALIGNED) UNSAFE.putFloat(addr, val); else putIntByByte(addr, Float.floatToIntBits(val), BIG_ENDIAN); }
[ "void writeFloat(float value);", "void setFloat(float val);", "private static void setValueFloat(float value)\n {\n Util.valueFloat = value;\n }", "@Override\n public void saveFloat(String key, float value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string user_scrt = 1;
java.lang.String getUserScrt();
[ "public Builder setUserScrt(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n userScrt_ = value;\n onChanged();\n return this;\n }", "public Builder setUserScrt(\n java.lang.String value...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A representation of the model object 'Path Node Member'.
public interface PathNodeMember extends PathNode { }
[ "public String nodePath() {\r\n String path;\r\n if (this.parent == null) {\r\n path = \"(\" + this.nodeType + \"|\" + this.dataType + \"|\" + this.data + \")\";\r\n } else {\r\n path = this.parent.nodePath() + \" (\" + this.nodeType + \"|\" + this.dataType + \"|\" + this....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENFIRST:event_B_openAListActionPerformed file dialog options
private void B_openAListActionPerformed(java.awt.event.ActionEvent evt) { fileChooser.setAcceptAllFileFilterUsed(true); fileChooser.setMultiSelectionEnabled(false); fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY); fileChooser.setFileFilter(fa13FilesFilter); file = new...
[ "private void B_openTListActionPerformed(java.awt.event.ActionEvent evt) {\n fileChooser.setAcceptAllFileFilterUsed(true);\n fileChooser.setMultiSelectionEnabled(false);\n fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n fileChooser.setFileFilter(fa13FilesFilter);\n fi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes and starts the bar code scanning.
public void initializeAndStartBarcodeScanning() { // Switch to full screen. getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); requestWindowFeature(Window.FEATURE_NO_TITLE); // We inst...
[ "private void initBarCodeScanner() {\n BarCodeScannerProvider barCodeScannerProvider = mModuleRegistry.getModule(BarCodeScannerProvider.class);\n if (barCodeScannerProvider != null) {\n mBarCodeScanner = barCodeScannerProvider.createBarCodeDetectorWithContext(getContext());\n }\n }", "public void i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Build call for refreshFieldSettings
public com.squareup.okhttp.Call refreshFieldSettingsCall(Long projectId, Long connectionId, String artifact, Long mappingId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws QtestApiException { Object localVarPostBody...
[ "public UnaryCallSettings.Builder<UpdateBuildTriggerRequest, BuildTrigger>\n updateBuildTriggerSettings() {\n return getStubSettingsBuilder().updateBuildTriggerSettings();\n }", "public OperationCallSettings.Builder<RunBuildTriggerRequest, Build, BuildOperationMetadata>\n runBuildTriggerOper...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
adds a activationlistsner from this widget.
public void addActivationListener(IActivationListener l) { activationHook.add(l); }
[ "public synchronized void addCompletionListener(ActionListener l) {\n if (Trace.isTracing(Trace.MASK_APPLICATION))\n {\n Trace.record(Trace.MASK_APPLICATION, BEANNAME, \"addCompletionListener registered\");\n }\n completionListeners.addElement(l); //add listeners\n }", "public v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compiler knows pissible matches can be enum values only. case Season.WINTER: will not compile
public static void main(String [] args){ Season summer = Season.SUMMER; switch(summer){ case WINTER: System.out.println("Get out the sled!"); break; case SUMMER: System.out.println("Time for the pool!"); break; default: System.out.println("Is it summer yet?"); } Seas...
[ "private PatternType matchPatternEnum(String s){\n s = s.toLowerCase();\n switch(s){\n case \"factory method\":\n return PatternType.FACTORY_METHOD;\n case \"prototype\":\n return PatternType.PROTOTYPE;\n case \"singleton\":\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
P_SpawnSpecials After the map has been loaded, scan for specials that spawn thinkers
@SourceCode.Suspicious(CauseOfDesyncProbability.LOW) @P_Spec.C(P_SpawnSpecials) default void SpawnSpecials() { DoomMain<?, ?> D = DOOM(); AbstractLevelLoader ll = levelLoader(); UnifiedGameMap.Specials sp = getSpecials(); sector_t sector; /*int episode; ...
[ "private void initAllSpecials(){\n\t\t // NOW LOAD ALL THE TILES FROM A SPRITE SHEET\n\t\t PropertiesManager props = PropertiesManager.getPropertiesManager();\n\t\t SpriteType sT;\n\t String tilesSpriteSheetFile = props.getProperty(PathXPropertyType.IMAGE_SPECIAL_SHEET);\n\t String imgPath = props.getProper...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all the rounds matching the UUID and company.
public static java.util.List<it.bastianelli.personale.burraco.model.Round> getRoundsByUuidAndCompanyId(String uuid, long companyId) { return getService().getRoundsByUuidAndCompanyId(uuid, companyId); }
[ "public static java.util.List<it.bastianelli.personale.burraco.model.Round>\n\t\tgetRoundsByUuidAndCompanyId(\n\t\t\tString uuid, long companyId, int start, int end,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t\t<it.bastianelli.personale.burraco.model.Round>\n\t\t\t\t\torderByComparator) {\n\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column goods_transition.balanced_date_time
public Date getBalancedDateTime() { return balancedDateTime; }
[ "public Date getBidTime() {\n return bidTime;\n }", "@ApiModelProperty(value = \"A timestamp showing when the balance was captured\")\n \n @Valid\n public BigDecimal getBalanceDate() {\n return balanceDate;\n }", "public void setBalancedDateTime(Date balancedDateTime) {\r\n this.bala...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The interface for system components capable of saving/restoring their session state.
public interface ISessionComponent { /** * Gets the unique key for the session component to identify it within a session service. * * @return the unique key. */ String getKey(); /** * Gets a <code>HashMap</code> session data object containing the session state. * * @return the session dat...
[ "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n Session currentSession = sessionTracker.getSession();\n Session.saveSession(currentSession, outState);\n outState.putBoolean(SESSION_IS_ACTIVE_KEY, sessionTracker.isTrackin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleEMapEntry" $ANTLR start "ruleEMapEntry" InternalAADMParser.g:2974:1: ruleEMapEntry : ( ( rule__EMapEntry__Group__0 ) ) ;
public final void ruleEMapEntry() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalAADMParser.g:2978:2: ( ( ( rule__EMapEntry__Group__0 ) ) ) // InternalAADMParser.g:2979:2: ( ( rule__EMapEntry__Group__0 ) ) { //...
[ "public final void rule__EMapEntry__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:19660:1: ( rule__EMapEntry__Group__0__Impl rule__EMapEntry__Group__1 )\n // InternalAADMParser.g:19661:2: rule__EMap...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return methodInfo for all methods defined on this class. This does not include inherited methods. Here we return a map from method name to the set of MethodInfo instances for all methods with the same method name. This form is useful for handling method overload resolution.
public Map<String,Set<MethodInfo>> methodInfoByName() ;
[ "public Enumeration getMethodNames() {\n return methodInfo.keys();\n }", "private static Map<String, Method> getSwaggerCodegenMethods() throws ClassLoaderNotInitializedException {\n Map<String, Method> nameMethodMap = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);\n URLClassLoader urlClassLoader ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Append the given blame info to the list
protected void addBlameLine(BlameLine blameLine) { this.lines.add(blameLine); }
[ "public void addBonus(Bonus b){\n\t\tbonusList.add(b);\n\t}", "void addExtraInformation(StringBuilder message);", "public void addExtraInfo(final ArrayList<PersonInfo> extra) {\n info.addAll(extra);\n hasExtra = true;\n }", "public void addHobby(String name) {\n Hobby hobby = new Hobby...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form Project2ExperimentDialog
public Project2ExperimentDialog(java.awt.Frame parent, boolean modal, ExperimentDetail d) { super(parent, modal); this.experiment = d; //newData.setGenomeRelease(Defaults.GenomeRelease.toRelease(data.getGenomeRelease())); this.experimentDetailView1 = new ExperimentDetailView(experiment,...
[ "private void actionNewProject ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDataController.scenarioNewProject();\r\n\r\n\t\t\thelperDisplayProjectFiles();\r\n\r\n\t\t\t//---- Change button icon\r\n\t\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_VIEW_SAMPLES);\r\n\r\n\t\t\tmainFormLink.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Functional test that represents a successful process to buy a product by a Client.
@Test public void succesfullPurchaseProductOKTest() { // Firtst of all, add coins for change this.dexmaVendingMachine.addCoinsForChange(CoinType.TWO_EURO); this.dexmaVendingMachine.addCoinsForChange(CoinType.EURO); this.dexmaVendingMachine.addCoinsForChange(CoinType.FIFTY_CENTS); this.dexmaVendingMachine.add...
[ "public void testPurchasingAndInvoicingSupplies() throws Exception {\n executePurchasingAndInvoicingSuppliesTest(\"testPurchasingAndInvoicingSupplies Product\");\n }", "public void testCompletePurchaseOrderWithCancelledItemAfterCreation() throws GeneralException {\n GenericValue product1 = cre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Defines an rpc field to send
public interface RpcFlatField extends RpcField { /** * The value of the field * * @return value of the field */ Object getValue(); /** * The original value of the field before set by user * * @return original value of the field */ Object getOriginalValue(); /** * Sets the va...
[ "Object sendRpcRequest(RpcRequest rpcRequest);", "public void setField(FIELD theField);", "private void sendMessage(String fieldname) {\n\t\tString message = \"Folgendes Feld ist ein Pflichtfeld: \";\n\t\tMessage m = Message.getInstance();\n\t\tm.setType(MessageType.General);\n\t\tm.setMessage(message + fieldna...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 roomFightIndex = 11;
int getRoomFightIndex();
[ "public int getRoomFightIndex() {\n return roomFightIndex_;\n }", "public int getRoomFightIndex() {\n return roomFightIndex_;\n }", "int getRoomOverType();", "int getRoomNumber();", "int getRoomid();", "boolean hasRoomFightIndex();", "int getRoomType();", "int getFightSkillId();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the competitor value for this Account.
public java.lang.String getCompetitor() { return competitor; }
[ "public java.lang.String getAccountCompetitors() {\n return accountCompetitors;\n }", "public java.lang.Object getCompetitorID() {\n return competitorID;\n }", "public String getCompetitors() {\n return competitors;\n }", "public Name getCompetitorName() {\r\n\t\treturn competito...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method that converts a character to it's military phonetic equivalent.
private String getMilitaryPhoneticString(String aChar) { String militaryPhoneticString = ""; switch (aChar) { case "A" : militaryPhoneticString = "Alfa"; break; case "B" : militaryPhoneticString = "Bravo"; brea...
[ "public String getPhonetic ()\n {\n return joinSyllables ( Phonetics.wylieToStandardPhonetic ( keyWord.getWylie () ) ) ;\n }", "public abstract char mapChar(char c);", "private CharSequence getPhoneticLetter(String locale, String letter) {\n Locale parsedLocale = LocaleUtils.parseLocaleString(locale);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is to fetch the next set of posts using the 'after' property
List<Post> fetchMorePosts(){ generateURL(); return fetchPosts(); }
[ "private void loadMorePosts() {\n if (afterParam == null) {\n return;\n }\n\n int totalItemCount = llm.getItemCount();\n int lastVisibleItem = llm.findLastVisibleItemPosition();\n int visibleThreshold = 2;\n\n if (!loadingFlag && totalItemCount <= (lastVisibleIte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the kind of file
public FileType getKind() { return kind; }
[ "FileType getType();", "public String getFILE_TYPE() {\r\n return FILE_TYPE;\r\n }", "public FileType getKind() {\n\t\treturn kind;\n\t}", "public java.lang.String getFileType() {\n return fileType;\n }", "public String getFileTyp() {\n return fileTyp;\n }", "public String ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a CSV processor with the given Transformation Listener, and an additional parameter determining bulk save size
public CSVProcessor(TextTransformCustomListener ttListener, int bulkSaveSize) { this.ttListener = ttListener; this.bulkSaveSize = bulkSaveSize; }
[ "public CSVProcessor(TextTransformCustomListener ttListener) {\n this.ttListener = ttListener;\n bulkSaveSize = BULK_SAVE_SZ_DF; // default\n }", "public CSVProcessor(TextTransformCustomListener ttListener, int bulkSaveSize, boolean replaceFl) {\n this.ttListener = ttListener;\n thi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A region is offline, won't be in transition any more.
public synchronized void regionOffline(final HRegionInfo hri) { String regionName = hri.getEncodedName(); RegionState oldState = regionStates.get(regionName); if (oldState == null) { LOG.warn("Offline a region not in RegionStates: " + hri); } else { State state = oldState.getState(); S...
[ "public boolean isOffline() {\n return isOffline;\n }", "public void computeOffline() {\n this.offline = true;\n }", "@Exported\n public boolean isOffline() {\n for (Node n : getNodes()) {\n Computer c = n.toComputer();\n if (c != null && !c.isOffline())\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns whether the Elite Mob is a natural entity. Only natural entities can drop special plugin loot. Additionally, based on the settings, only natural Elite Mobs tend to only have visual effects if they are natural.
public boolean isNaturalEntity() { return this.isNaturalEntity; }
[ "protected boolean isNaturalSpawn(Entity creature) {\n return creature.hasMetadata(NATURAL_KEY);\n }", "public void setIsNaturalEntity(Boolean bool) {\n this.isNaturalEntity = bool;\n this.hasNormalLoot = bool;\n }", "public boolean isNpc(Entity entity) {\n PreCon.notNull(entit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Whether is first page.
public boolean isFirstPage() { return !hasPrePage(); }
[ "default boolean isFirstPage() {\n return getPageNumber() == 0;\n }", "public boolean isFirst()\n {\n return pageable.getCurrentPage() <= 0;\n }", "public boolean isFirstPage();", "public boolean isFirst()\n {\n return getPageNumber() == 0;\n }", "@JsonProperty(\"isFirst\")\n public B...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method: processSingleResult Description: process an actual response from a query to the database. Goes through a set/collection of xmlresources processing them and sending the result to the outputstream. (In this case being single the resourceset only has 1 resource). Actually calls the common streamResults method to d...
public XMLStreamReader processSingleResult(ResourceSet resultSet,String responseWrapper) { try { return streamResults(resultSet, responseWrapper, null, null, null, true); }catch(Exception e) { SOAPFaultException sfe = new SOAPFaultException(e.getMessage(),e,QUERY_WSDL_NS,SOAPFaultException.QUERYSO...
[ "private XMLStreamReader streamResults(ResourceSet resultSet,String responseWrapper, String start, String max, String identOnly, boolean singleResource) throws IOException, XMLDBException {\n\n\t \t\t//get the limit from the config and set the limit.\n int limit = conf.getInt(\"reg.amend.returncount\",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the ws075Amount value for this Ws075ChargebackDetails.
public java.lang.String getWs075Amount() { return ws075Amount; }
[ "public java.lang.String getWs075Currency() {\n return ws075Currency;\n }", "public mastercom.app.claimsretrieve.Ws075ChargebackDetails[] getWs075ChargebackDetails() {\n return ws075ChargebackDetails;\n }", "public java.lang.String getWs075ChargebackId() {\n return ws075ChargebackId;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete a Collection and physically delete the media items in the collection.
public List<MediaItem> deleteCollectionAndItems(Long collectionId, BizContext context);
[ "public void deleteItemCollection(ItemCollection itemCollection) {\n\t\t// Start of user code for method deleteItemCollection\n\t\t// End of user code\n\t}", "private void removeCollectionRecursive(CollectionItem collection) {\n for(Item item: collection.getChildren()) {\n if(item instanceof C...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the SqlLimiter used to apply additional sql around a query to limit its results. Basically add the clauses for limit/offset, rownum, row_number().
public SqlLimiter sqlLimiter() { return sqlLimiter; }
[ "public BasicSqlLimiter basicSqlLimiter() {\n return basicSqlLimiter;\n }", "public abstract ClauseHelper addLimitClause(ClauseHelper helper) throws SQLException, QueryBuilderException;", "com.vitessedata.llql.llql_proto.LLQLQuery.Limit getLimit();", "@NotNull\n List<Result> executeQueryWithRaisingLimi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
start the server, create a listening thread
public void start() { if (isRunning()) { LOGGER.log(Level.INFO, "Tried to start a server that is already open and bounded"); return; } try { server = new ServerSocket(localPort); } catch (IOException e) { LOGGER.log(Level.WARNING, "Failed to start a server socket on " + localPort + " " + e.getMessag...
[ "public void start() {\n\n serverThread.start(); // Start tcp server\n }", "private void start() {\n if (Thread.currentThread().isDaemon()) {\n server.start();\n return;\n }\n\n Thread thread = THREAD_FACTORY.newThread(server::start);\n thread.start();\n try {\n thread.join...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the rotation of the video in degree. Only works on API21+, else it always returns 0.
public int getVideoRotation(MediaFormat format) { int rotation =0; try { // rotation-degrees is available from API21, officially supported from API23 (KEY_ROTATION) rotation = (format != null && format.containsKey("rotation-degrees") ? format.getInteger("rotat...
[ "public int getCameraRotation() {\n return mCameraRunner.getCameraRotation();\n }", "public double getRotationAngle();", "int getRotation();", "int getSensorRotationDegrees();", "int getCameraOrientationDegrees();", "public double getRotation() {\n return Degrees.atan2(y, x);\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Model__ViewNameAssignment_1" $ANTLR start "rule__Model__MetamodelAssignment_3" ../emfviews.dsl.ui/srcgen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:2298:1: rule__Model__MetamodelAssignment_3 : ( ruleMetamodel ) ;
public final void rule__Model__MetamodelAssignment_3() throws RecognitionException { int stackSize = keepStackSize(); try { // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:2302:1: ( ( ruleMetamodel ) ) // ../emfviews.ds...
[ "public final void rule__Model__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:683:1: ( ( ( rule__Model__MetamodelAssignment_3 ) ) )\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Submit a bug report.
void submitBugReport(BugReport bugReport, AsyncCallback<Void> callback);
[ "public void submitFeedbackFormForIssueReport(){\r\n\t\t\r\n\t\t/*waitForPageLoad();\r\n\t\tclick(By.id(\"cboxClose\"));*/\r\n\t\twaitForElement(TestDataManage.getObjectProperty(\"Category1_Drpdwn\"));\r\n\t\tselectbyVisibleText(TestDataManage.getObjectProperty(\"Category1_Drpdwn\"), TestDataManage.getData(\"Catego...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'field636' field. doc for field636
public java.lang.CharSequence getField636() { return field636; }
[ "public java.lang.CharSequence getField636() {\n return field636;\n }", "public void setField636(java.lang.CharSequence value) {\n this.field636 = value;\n }", "public boolean hasField636() {\n return fieldSetFlags()[636];\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XForLoopExpression__Group__7__Impl" $ANTLR start "rule__XWhileExpression__Group__0" ../org.xtext.example.helloxcore.ui/srcgen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:10092:1: rule__XWhileExpression__Group__0 : rule__XWhileExpression__Group__0__Impl rule__XWhil...
public final void rule__XWhileExpression__Group__0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:10096:1: ( rule__XWhileExp...
[ "public final void rule__XWhileExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:10108:1:...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the player X.
public Player getxPlayer() { return xPlayer; }
[ "public float getPlayerX() {\n return player.getX();\n }", "public int getPlayerX()\n {\n return iPlayerPosX + (iPlayerWidth / 2);\n }", "public Player getxPlayer() {\n\t\treturn this.xPlayer;\n\t}", "public int getX(){\n int x = TwodokuGame.getMoveIntX(move);\n return x;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__AstExternalFunction__Group__1__Impl" $ANTLR start "rule__AstExternalFunction__Group__2" ../org.caltoopia.frontend.ui/srcgen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:9051:1: rule__AstExternalFunction__Group__2 : rule__AstExternalFunction__Group__2__Impl rule__AstExternalFunc...
public final void rule__AstExternalFunction__Group__2() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:9055:1: ( rule__AstExternalFunction__Group...
[ "public final void rule__AstExternalFunction__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:9067:1: ( ( 'external' )...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
computes the Maximum Coverage Gap for the computed accesses, unless they were not computed
public void computeMaxMCG() { computeMaxMCG(allAccesses); }
[ "public void AveragePercentageCoverageCheck(int g){\n\t\tfloat Metrics[] = new float[this.PopulationSize];\n\t\tfloat Max = 0, Sum = 0;\n\t\tArrayList<Integer> MaxAPC = new ArrayList<Integer>(); //Store the Chromosome that has the Largest APC.\n\n\t\tfor(int i=0; i<this.PopulationSize; i++){\n\t\t\tMetrics[i] = thi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XRelationalExpression__Alternatives_1" $ANTLR start "rule__OpCompare__Alternatives" ../org.xtext.lwc.instances.ui/srcgen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1881:1: rule__OpCompare__Alternatives : ( ( '>=' ) | ( '' ) | ( '<' ) );
public final void rule__OpCompare__Alternatives() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1885:1: ( ( '>=' ) | ( '<=' ) | ( '>' ) ...
[ "public final void rule__OpCompare__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:2246:1: ( ( '>=' ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method for the transaction menu. Used to select the type of account to make the transfer into.
public Account transactionMenu(boolean transferOut){ String typeOfAccount = null; int accountNum = 0; int numAccounts = -1; boolean selectionNotMade = true; while (selectionNotMade) { System.out.println("Select account type:"); if (!transferOut) {...
[ "public void transactionMenu(){\n\t\tstate = ATM_State.TRANSACTION;\n\t\tgui.setDisplay(\"Transaction menu\\n\"\n\t\t\t\t+ \"1. Balance\\n\"\n\t\t\t\t+ \"2. Deposit\\n\"\n\t\t\t\t+ \"3. Withdraw\\n\"\n\t\t\t\t+ \"4. Log out\\n\"\n\t\t\t\t+ \"Enter choice: \");\n\t}", "public void setTransactionType(int transactio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new unparented version statement node owned by the given AST. N.B. This constructor is packageprivate.
VersionStatement(AST ast) { super(ast); }
[ "public AST() {\n\t\tthis.root = new Node(new Root(), null);\n\t}", "public AST()\n {\n // initialise instance variables\n }", "LabeledStatement(AST ast) {\r\n\t\tsuper(ast);\r\n\t}", "Version create(Identity nodeId);", "public static ASTNode newASTNode(ASTNode other) {\n return newASTNode(o...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Implements Pathselection if the character has remaining steps > 0 and there are more than one following field sets arrowactors for every possible following field player can choose which way he wants to go after choosing switch turnvalue to MOVE
public void selectPath() throws IllegalArgumentException { if (this.player.turnValue == TurnValue.PATHSELECTION && turnDone == false) { //Show arrows for PathSelection - selection of path in arrowActor Eventlistener if (this.player.getRemainingSteps() > 0) { int i = 0; ...
[ "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "@Override\n \tpublic void updatePath() {\n \t\tpath.reset();\n \n\t\tfinal ILine arrowLine...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method for writing a string to SiteConfiguration.txt to store a registered site
private static void writeNewSiteToConfigFile(String siteName) { try(PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("SiteConfiguration.txt", true)))) { if(sites.isEmpty()) pw.write(String.format("%s", siteName)); else pw.write(String.format("\n%s", siteName)); }catch (IOException i...
[ "private static void readSiteConfig() {\n\n\t\ttry(BufferedReader br = new BufferedReader(new FileReader(\"SiteConfiguration.txt\"))) {\n\t\t\twhile (br.ready()) {\n\t\t\t\tString line = br.readLine().strip().toUpperCase();\n\t\t\t\tSite readSite = new Site(line);\n\n\t\t\t\tsites.putIfAbsent(readSite.getSiteName()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field modelo is set (has been assigned a value) and false otherwise
public boolean isSetModelo() { return this.modelo != null; }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isModeloModified()\r\n\t{\r\n\t\treturn modeloModified;\r\n\t}", "public boolean is_set_fields() {\n return this.fields != null;\n }", "public boolean isSetMarca() {\r\n return this.marca != null;\r\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct RemoteSortedSet instance with a specified supplier.
public PortableSortedSet(Remote.Supplier<SortedSet<E>> supplier) { m_supplier = supplier; }
[ "public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }", "<K, V> ReactiveSortedSetCommands<K, V> sortedSet(Class<K> redisKeyType, Class<V> valueType);", "public SortedSet() {\n\n }", "public MySortedSet(Comparator<? supe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle the Done returned from telescope.
public void handleDone( CommandDone done ) { TTL_CIL_Message msg = null; // TTL_CIL_Message msg = translator.translate( done ); try { cil.sendMessage( msg ); } catch( IOException ioe ) { } // remove msg from Hashtable(?) after dealt with return; }
[ "public void done() {\n isDone = true;\n }", "private void finishTask() {\n\t\tSystem.out.println(\"Finished task, sent \" + sendTracker + \" messages\");\n\t\tregistry_sender.sendEvent(EventFactory.getInstance().createEvent(new String(\"7\" + \"\\n\" + registry_socket.getLocalAddress().toString().subst...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XBooleanLiteral__Group__1__Impl" $ANTLR start "rule__XNullLiteral__Group__0" ../org.xtext.guicemodules.ui/srcgen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13936:1: rule__XNullLiteral__Group__0 : rule__XNullLiteral__Group__0__Impl rule__XNullLiteral__Group__1 ;
public final void rule__XNullLiteral__Group__0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:13940:1: ( rule__XNullLiteral__Group__0_...
[ "public final void rule__XNullLiteral__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:12334:1: ( rule__X...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validation Functions Description : To validate the Preferred Contact Method in Contact Details of Customer Tab for Mail Coded by :Rajan Created Data:23 Oct 2016 Last Modified Date: Modified By: Parameter:
public void validate_the_Preferred_Contact_Method_in_Contact_Details_of_Customer_Tab_Mail(boolean status)throws Exception { boolean checked=VerifyElementPresentAndGetCheckBoxStatus(Desktop_XPATH_Verify_Customer_Page_MarketingPreferences.replaceAll("M_Header", "Contact Details").replaceAll("M_Category", "Preferre...
[ "public void validate_the_Preferred_Contact_Method_in_Contact_Details_of_Customer_Tab_Email(boolean status)throws Exception {\n\t\t\t\n\t\t\tboolean checked=VerifyElementPresentAndGetCheckBoxStatus(Desktop_XPATH_Verify_Customer_Page_MarketingPreferences.replaceAll(\"M_Header\", \"Contact Details\").replaceAll(\"M_C...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Procedure to get all Templates saved.
@RequestMapping(value = "/getAllTemplates", method = RequestMethod.GET) protected @ResponseBody String getAllTemplates() { String[] templates = NOpenFileUtil.getAllTemplateJSONFileNames(); return NOpenFileUtil.parseStringToJSON("template", templates); }
[ "public List<StoredApiTemplate> getStoredApiTemplates() throws StorageException;", "public List<Template> getTemplates() {\r\n\t\treturn templateDao.findAll();\r\n\t}", "public List<StoredApiTemplate> getStoredApiTemplates(ApiDesignType type) throws StorageException;", "public ArrayList<Template> getTemplates...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }