query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
String query = "SELECT id, meshblock_id, operat_score, st_astext(st_transform(centroid, 4326)) FROM result"; WHERE ST_Transform(geom,4326) && ST_MakeEnvelope(174.85434354888253, 41.21126571507782, 174.93674100982003, 41.18995441845707, 4326)
@Override public List<DisplayResult> getResults(ReferencedEnvelope bounds) { String whereClause = bounds != null ? "WHERE ST_Transform(geom, 4326) && ST_MakeEnvelope("+bounds.getMinX()+","+bounds.getMinY()+","+bounds.getMaxX()+","+bounds.getMaxY()+") " : ""; //Only latest results String query = "SELECT DIS...
[ "protected abstract NativeSQLStatement createNativeIntersectionStatement(Geometry geom);", "@Test\n public void testIntesectAndCrossesAndLike()\n throws CQLException, TransformException, ParseException {\n final Filter filter =\n CQL.toFilter(\n String.format(\n \"CROSSES...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Send the current bank balance to the client.
public void sendBankBalance(int amount) { sendMessage(Prefix.BANKBALANCE, amount + ""); }
[ "private static void transferMoney(int depositAmount) throws SystemException, TException, InterruptedException {\n\t\twhile (true) {\n\t\t\tint index = new Random().nextInt(handler.getBranchList().size());\n\t\t\tif (!handler.getBranchList().get(index).name.equals(branchId)) {\n\t\t\t\tString toBranch = handler.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the selected table. Created : Nov 26, 2004 4:51:21 PM Author : Christopher Harper account : HARPECHR
public Table getSelectedTable() { return (Table) getTablesTabFolder().getSelection().getControl(); }
[ "public Table getSelectedTable() {\n Integer id = (Integer)super.getSelectedItem();\n if (id == null) {\n return null;\n }\n try {\n return tableHome.getTable(id.intValue());\n }\n catch (PersistenceException ex) {\n // Cas impossible : Le m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an aliased mini_shop_471752.b2c_user_address table reference
public UserAddress(String alias) { this(DSL.name(alias), USER_ADDRESS); }
[ "public UserAddress() {\n this(DSL.name(\"b2c_user_address\"), null);\n }", "Integer addUserAddress(String temp, Integer user_id, Integer address_id) ;", "void addUserAddress(long id, Address newAddress);", "CustomerAddress getNewAddress();", "public void createAddresses(){\r\n\r\n\t\tint index = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a panel for the demo (used by SuperDemo.java).
public static JPanel createDemoPanel() { JFreeChart chart = createChart(); return new ChartPanel(chart); }
[ "public static JPanel createDemoPanel() {\r\n JFreeChart chart = createChart(createDataset());\r\n return new ChartPanel(chart);\r\n }", "public static JPanel createDemoPanel() {\r\n JFreeChart chart = createChart(createDataset());\r\n ChartPanel panel = new ChartPanel(chart);\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Filters and saves the original set of projects into request's attribute.
@SuppressWarnings(value = "unchecked") private Set<Project> cacheProjects(String name, Set<Project> original) { Set<Project> p = (Set<Project>) cfg.getRequestAttribute(name); if (p == null) { p = filterProjects(original); cfg.setRequestAttribute(name, p); } re...
[ "public static void saveProjects(Vendor vendor, HttpServletRequest request)\n throws EnvoyServletException\n {\n String toField = (String) request.getParameter(\"toField\");\n ArrayList projects = new ArrayList();\n if (toField != null)\n {\n if (toField.equals(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If the xObject has a transparency group flag.
public boolean isTransparencyGroup() { return transparencyGroup; }
[ "protected void checkTransparencyAllowed() {\n this.pdfDoc.getProfile().verifyTransparencyAllowed(\"Java2D graphics\");\n }", "public boolean isTransparent() {\n return transparent;\n }", "protected abstract boolean isTransparent();", "public boolean isTransparencySupported() {\n return...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor por defecto de TablizableEntity
public TablizableEntity() { }
[ "public ValoracionEntity() {\r\n //Constructor por defecto para crear una ValoracionEntity\r\n }", "public RowEntity() {\n }", "public BaseCompanyTable() {\n }", "protected AstroCatTable() {\n }", "public DatabaseTable() { }", "public Tablero(Tablero t){\r\n tablero = t.tablero;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates format for filewriting
public String toFileFormat() { return startx + " " + starty + "; " + endx + " " + endy + "; "+ texture + ";\r\n"; }
[ "void export(String format, File file) throws IOException;", "public abstract String saveFormat();", "@Override\n public String toFile() {\n String doneState = isDone ? \"1\" : \"0\";\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy HHmm\");\n return String.format(\"%s | ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If user click on the validate button of the filter Search Menu close it and Run the filter algorithm and replace the fragment by a new with the filter result
@Override public void onClick(View v) { if (v.getId() == validateFilterButton.getId()) { slidingLayout.toggleMenu(); // call the method to filter the releases with th information of filter provide by the user ArrayList<TomeClass> filterAr = FilterSearch((ArrayList<TomeCla...
[ "private void showFilterDialog() {\n android.app.FragmentManager fm = getFragmentManager();\n SearchFilterDialogFragment filterDialogFragment = SearchFilterDialogFragment.newInstance(filter);\n filterDialogFragment.show(fm, \"fragment_filter\");\n }", "@Override\n public Dialog onCreate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the sign packaging test.
@Test public void getSignPackagingTest() { final Optional<SignatureConf> signConf = conf.getSignatureById("1"); assertTrue("La configuration de signature n'existe pas: idSignConf=1", signConf.isPresent()); params = ConfigurationLoader.loadSignConf(signConf.get()); assertNotNull("Le p...
[ "public String getPackaging() {\n return packaging;\n }", "public String getPackaging() {\n return packaging;\n }", "public String getSignType() {\n return signType;\n }", "public Sign getSign() {\n return sign;\n }", "String getJunitPackage();", "String getSignatureFile(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the Manufacturer bytes from tag discovery. Does not cause any RF activity and does not block.
public abstract byte[] getManufacturer();
[ "public Map<Short, byte[]> getManufacturerData();", "java.lang.String getManufacturer();", "@Override\r\n public String getEquipmentManufacturer() throws DIException {\n DValue dataElement = dicomDataSet.getValueByGroupElementString(\"0008,0070\");\r\n if (dataElement == null) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method which returns the number of pips on a given point
public int getNumberOfPipsOnPoint(int point) { return gameBoard.getPoint(point).size(); }
[ "public static int countPoint(ArrayList<Card> cards) {\n\t\tint result = 0;\n\t\tfor(Card c: cards) {\n\t\t\tresult = result + c.getPoint();\n\t\t}\n\t\treturn result;\n\t}", "public final int getPointCnt()\n {\n return this.count;\n }", "public int pointsCount() {\n\t\treturn points.size();\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
create builder for LocalizedEnumField instance
public static LocalizedEnumFieldBuilder builder(final LocalizedEnumField template) { return LocalizedEnumFieldBuilder.of(template); }
[ "public static LocalizedEnumFieldBuilder builder() {\n return LocalizedEnumFieldBuilder.of();\n }", "public static CustomFieldEnumTypeBuilder builder() {\n return CustomFieldEnumTypeBuilder.of();\n }", "public static RemoveLocalizedEnumValuesChangeBuilder builder() {\n return RemoveLo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__End__Group__4" $ANTLR start "rule__End__Group__4__Impl" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10672:1: rule__End__Group__4__Impl : ( '}' ) ;
public final void rule__End__Group__4__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10676:1: ( ( '}' ) ) // ../org...
[ "public final void rule__End__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10557:1: ( ( 'end' ) )\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
factory method for an instance of DiscountedLineItemPriceBuilder
public static DiscountedLineItemPriceBuilder of() { return new DiscountedLineItemPriceBuilder(); }
[ "public DiscountedLineItemPrice build() {\n Objects.requireNonNull(value, DiscountedLineItemPrice.class + \": value is missing\");\n Objects.requireNonNull(includedDiscounts, DiscountedLineItemPrice.class + \": includedDiscounts is missing\");\n return new DiscountedLineItemPriceImpl(value, inc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Append the getCapabilities request to an URL.
public static String generateGetCapabilitiesURL(String baseURL) { StringBuffer buf = new StringBuffer(); buf.append(setLastSignMark(baseURL)); buf.append("VERSION=" + VERSION); buf.append("&REQUEST=GetCapabilities"); buf.append("&SERVICE=WMS"); return buf.toString(); }
[ "public URL capabilitiesURL(String service, String version) throws MalformedURLException {\n String externalForm = _url.toExternalForm();\n String versionParam = version == null ? \"\" : \"&VERSION=\" + version;\n \n String query = \"REQUEST=GETCAPABILITIES&SERVICE=\" + service + version...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets activity ids feed from an identity.
public List<String> getActivityIdsFeed(Identity ownerIdentity, int offset, int limit);
[ "public List<String> getUserSpacesActivityIds(Identity ownerIdentity, int offset, int limit);", "public List<String> getUserIdsActivities(Identity owner, long offset, long limit) throws ActivityStorageException;", "public List<ExoSocialActivity> getActivitiesOfIdentity(Identity ownerIdentity, long offset, long ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verifies that a precise timestamp formatter will be created.
@Test public void createTimestampFormatter() { ModernJavaRuntime runtime = new ModernJavaRuntime(); TimestampFormatter formatter = runtime.createTimestampFormatter("yyyy-MM-dd HH:mm:ss.SSS", Locale.US); assertThat(formatter).isInstanceOf(PreciseTimestampFormatter.class); Timestamp timestamp = TimestampFactor...
[ "public static boolean isValidTimestamp(String timestamp, DateTimeFormatter formatter) {\n try {\n ZonedDateTime.parse(timestamp, formatter);\n } catch (DateTimeParseException e) {\n return false;\n }\n\n return true;\n }", "public static boolean verifyTimeStam...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Display the solution matrix values
public void displaySolution() { System.out.println(); for(int i=0; i<Constants.DIMENSION; i++) { for(int j=0; j<Constants.DIMENSION; j++) { if(j%3==0 && j!=0) { System.out.print("| "); } System.out.print(solution[i][j]+" "); } if((i+1)%3==0) { System.out.println(); System.o...
[ "private void print_solution() {\n System.out.print(\"\\n\");\n for (int i = 0; i < rowsCount; i++) {\n for (int j = 0; j < colsCount; j++) {\n System.out.print(cells[i][j].getValue());\n }\n System.out.print(\"\\n\");\n }\n }", "public void pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Methods for field "heading"
public Heading getHeading() { return this.heading; }
[ "java.lang.String getHeading();", "public String getHeading() {\n return heading;\n }", "private org.gwtbootstrap3.client.ui.Heading get_f_Heading35() {\n return build_f_Heading35();\n }", "void setHeading(java.lang.String heading);", "private org.gwtbootstrap3.client.ui.Heading get_f_Head...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parse string containing real number. Example: parseNumber "0.125"
public native static float parseNumber(String oper1);
[ "public static double parseNumericString(String numString)\r\n throws IllegalNumberFormat {\r\n // decimal string?\r\n if (isDecimalConstant(numString))\r\n return parseDecimalString(numString);\r\n // hexadecimal string?\r\n else if (isHexadecimalConstant(numSt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check if the given String is a SecretBytes text by attempting to decrypt it
public static boolean isSecretBytes(String data) { data = Util.fixNull(data); int len = data.length(); if (len >= 2 && ENCRYPTED_VALUE_PATTERN.matcher(data).matches()) { byte[] decoded; try { decoded = Base64.decodeBase64(data.substring(1, len - 1)); ...
[ "@NonNull\n public static SecretBytes fromString(String data) {\n data = Util.fixNull(data);\n SecretBytes s;\n try {\n int len = data.length();\n if (len >= 2 && ENCRYPTED_VALUE_PATTERN.matcher(data).matches()) {\n byte[] decoded = Base64.decodeBase64(da...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Performs a LowLevel client search. Param is given through the REST API 'body'.
public String restLow(String body, String index) throws IOException { HttpEntity entity = new NStringEntity(body, ContentType.APPLICATION_JSON); Request request = new Request("GET", "/" + index + "/_search"); request.setEntity(entity); request.addParameter("pretty", "true"); req...
[ "public Storage search(SearchCriteria sc) {\n \t\tthis.type = sc.type;\n \t\tthis.q = sc.q;\n \t\tthis.maxResults = sc.maxResults;\n \t\tthis.resultsToSkip = sc.resultsToSkip;\n \t\t\n \ttry {\n \t\t// generate the correct URL for the get request\n \t\t// create http parameters for the get request that ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an instance of Value for the given value
static <V> Value<V> of(V value) { return new ImmutableValue<>(value); }
[ "Value createValue();", "public static <X> Value<X> Value(X value) { return new Value(value); }", "public NodeScriptObject newInstance(Object value) {\n return new ValueObject(this, value);\n }", "public Value(){}", "ValueOperation createValueOperation();", "GenericValue create(GenericValue value) thr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
calculo submatriz y eliminando i,j
private double[][] SubMatriz(int i,int j,double [][] matriz) { double [][]temp=new double[matriz.length-1][matriz.length-1]; int count1 =0; int count2 =0; for(int k =0; k<matriz.length;k++){ if(k!=i){ count2 =0; for(int l =0; l<matriz.length;l++){ if(l!=j){ temp[count1][count2]=...
[ "public SquareMatrix submatrix(int i, int j) {\n SquareMatrix sub = new SquareMatrix(this.val.length-1);\n int j2 = sub.val.length-j;\n int j1 = j+1;\n for(int row = 0; row < this.val.length; row++) {\n if(row < i) {\n System.arraycopy(this.val[i],0,sub.val[i],0...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets whether the progress bar should paint its border. By default, this is true paint the border.
public void setBorderPainted(boolean b) { boolean oldValue = paintBorder; paintBorder = b; firePropertyChange("borderPainted", oldValue, paintBorder); if (paintBorder != oldValue) { repaint(); } }
[ "public void setPaintBorder(boolean paint) {\n\t\tthis.paintBorder = paint;\n\t}", "private void setDrawBorders(boolean value) {\r\n this.isDrawBorders = value;\r\n }", "void setBorder(boolean border);", "public void toggleBorder() { \n drawBorderWanted = !drawBorderWanted;\n drawBorde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'Transformation Orchestration'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseTransformationOrchestration(TransformationOrchestration object) { return null; }
[ "public T caseTransformation(Transformation object)\n {\n return null;\n }", "public T caseTransformation(Transformation object) {\n\t\treturn null;\n\t}", "public T caseAnalysisOrchestration(AnalysisOrchestration object)\r\n {\r\n return null;\r\n }", "public T caseHOTransformation(HOTransformation...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks that the caller has write ExtendedFileAccessPermissions.
public void checkWriteExtFileAccPerm() throws AccessDeniedException;
[ "private boolean hasWritePermission() {\n return true;\n\n }", "boolean isWriteAccess();", "private boolean checkSystemWritePermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if(Settings.System.canWrite(this))\n return true;\n else\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for retrieving the winning spaces.
public Space getWinSpace(int winIndex) { return end[winIndex]; }
[ "public ArrayList<Space> getSpaces()\r\n\t{\r\n\t\treturn new ArrayList<Space>(_spaces.values());\r\n\t}", "public int getSpaces()\n {\n return spacesCompleted;\n }", "public String getCurrentSpace() {\n return spaces.getValue();\n }", "public Space getSpace() {\n return space;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unregister the specified command
public void UnregisterCommand(AbstractCommand command) { if (!m_commands.containsKey(command.GetCommandPrefix())) return; m_commands.remove(command.GetCommandPrefix()); }
[ "public final void unregister(ConsoleCmd cmd) {\n cmdList.remove(cmd.name);\n }", "boolean unregisterCommandBusForCommand( String commandName );", "@SuppressWarnings(\"unchecked\")\n\tpublic void unregisterCommand(String name) {\n\t\ttry {\n\t\t\tField known = SimpleCommandMap.class.getDeclaredField(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of calculateEKM method, of class TokenCalculator.
@Test public void testCalculateSSLEKM() throws CryptoException { context.setMasterSecret( ArrayConverter.hexStringToByteArray( "6D7B3B37807AFB5BAFEB46A3BA1AD1BCE0CF31DA68D635EC9A8130CB9A0241C437DF4D988ED2D00D3AC5FECEB056C3C7")); context.setClientRandom( ...
[ "@Test\n public void testCalculateEKM() throws CryptoException {\n context.setMasterSecret(\n ArrayConverter.hexStringToByteArray(\n \"6D7B3B37807AFB5BAFEB46A3BA1AD1BCE0CF31DA68D635EC9A8130CB9A0241C437DF4D988ED2D00D3AC5FECEB056C3C7\"));\n context.setClientRando...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
buildIncomeStatementPane method end buildRetainedEarningsStatementPane method builds the retained earnings statement panel
private void buildRetainedEarningsStatementPane() // buildRetainedEarningsStatementPane method start { // creating object RESOutput = new JTextArea(); // object settings RESOutput.setText(log.retainedEarningsStatement()); RESOutput.setEditable(false); RESOutput.setFont(font); RESOutput.setRows(20); ...
[ "private void buildIncomeStatementPane() // buildIncomeStatementPane method start\n\t{\n\t\t// creating object\n\t\tISOutput = new JTextArea();\n\t\t\n\t\t// object settings\n\t\tISOutput.setText(log.incomeStatement());\n\t\tISOutput.setEditable(false);\n\t\tISOutput.setFont(font);\n\t\tISOutput.setRows(20);\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
process upload data on machine (USERID)
public boolean processUpload(EmployeeUp employeeUp);
[ "@Override\n public void upload(String name, Integer type, String path, Integer pid, String md5, Integer createUserId, String caseNo, MultipartFile file) throws IOException {\n }", "void storeUserImage(MultipartFile file, String loggedUserUsername);", "public synchronized void upload(){\n\t}", "void sto...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Selection__Group__5" $ANTLR start "rule__Selection__Group__5__Impl" ../org.iobserve.rac.constraint.ui/srcgen/org/iobserve/rac/constraint/ui/contentassist/antlr/internal/InternalConstraintLang.g:1734:1: rule__Selection__Group__5__Impl : ( ( rule__Selection__Group_5__0 ) ) ;
public final void rule__Selection__Group__5__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.iobserve.rac.constraint.ui/src-gen/org/iobserve/rac/constraint/ui/contentassist/antlr/internal/InternalConstraintLang.g:1738:1: ( ( ( rule__Selec...
[ "public final void rule__Selection__Group_5__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.iobserve.rac.constraint.ui/src-gen/org/iobserve/rac/constraint/ui/contentassist/antlr/internal/InternalConstraintLang.g:1989:1: ( rule__S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns whether the given CFA edge is a function call to the given function name. Only returns true if the function call is a direct call to the function. Functionpointers are considered 'false'.
private static boolean isFunctionCall(CFAEdge pCfaEdge, String pExpectedFunctionName) { if (!(pCfaEdge instanceof AStatementEdge)) { return false; } AStatement statement = ((AStatementEdge) pCfaEdge).getStatement(); if (!(statement instanceof AFunctionCall)) { return false; } AExpres...
[ "public boolean isInFunction(Address addr);", "public boolean hasValidFunctionCall()\n {\n if((m_functionCall == null) || (m_functionAlias == null))\n {\n return false;\n }\n else\n {\n return true;\n }\n }", "public boolean isFunctionType(Xnode node)\n {\n return isFunct...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Functionality__Group_5__0" $ANTLR start "rule__Functionality__Group_5__0__Impl" InternalMyDsl.g:8514:1: rule__Functionality__Group_5__0__Impl : ( 'render:' ) ;
public final void rule__Functionality__Group_5__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMyDsl.g:8518:1: ( ( 'render:' ) ) // InternalMyDsl.g:8519:1: ( 'render:' ) { // InternalMyDsl.g:8519:1: (...
[ "void render(RenderGroup group);", "public final void rule__Implementation__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a string to the paint queue.
public void add(String s){ numberOfRows++; this.queue.add(s); }
[ "public void addToDisplay(String string) {\n\t\tdisplayList.add(string);\n\t\tdisplayBox.updateUI();\n\t}", "public void add(String str) {\n lastYank = false;\n\n if (lastKill) {\n if (slots[head] != null) {\n slots[head] += str;\n return;\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the amount of life points linked to this bonus.
public long getLifePoints() { return this.lifePoints; }
[ "public int getLifePoints() {\r\n\t\treturn this.life;\r\n }", "public int getLifePoints(){\n return this.lifePoints;\n }", "public int getLives() {\n if(lives>-1)\n return lives;\n else return 0;\n }", "public int getLife() {\r\n\t\treturn life;\r\n\t}", "public int getNoOf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the class of one declared object for rule constrainInterpretation01_PATH_2_GOAL_6_COMPONENT_txtOp_17.
private Class getDeclaredClass_constrainInterpretation01_PATH_2_GOAL_6_COMPONENT_txtOp_17(int index) { switch (index) { case 0: return module.entity.Action.class; case 1: return module.entity.MERFunction.class; case 2: return module.entity.RuleToHuman.class; ...
[ "private Class getDeclaredClass_constrainInterpretation01_PATH_1_GOAL_2_COMPONENT_txtOp_4(int index) {\r\n switch (index) {\r\n case 0: return module.entity.Action.class;\r\n case 1: return module.entity.MERFunction.class;\r\n case 2: return module.entity.RuleToHuman.class;\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get method of texture id......................................
public int getID(){ return textureID; // get texture id..................... }
[ "public int getId() {\r\n \t\r\n \treturn textureId;\r\n }", "public int getTextureID() {\n return textureID;\n }", "String getTextureName();", "public int getTexture(int id)\r\n\t{\r\n\t\tfor (Integer tmpId : m_textureIds)\r\n\t\t{\r\n\t\t\tif (tmpId.intValue() == id)\r\n\t\t\t{\r\n\t\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
custom query for jpa User findByUserName(String username); User findBypassword(String password);
User findByUserNameAndPassword(String UserName, String password);
[ "public User findUserByUsernameAndPassword(String username, String password);", "public Users findByUsername(String username);", "List<UserAccount> findByUserNameAndPassword(String userName, String password);", "User selectUserByUserNameAndPassword(@Param(\"username\") String username, @Param(\"password\") St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an iterator to all books
public Iterator getBooks() { return books.iterator(); }
[ "public Iterable<Book> getAll() {\n return bookRepository.findAll();\n }", "Collection<Book> readAll();", "public List<Book> allBooks() {\n return bookRepository.findAll();\n }", "Collection<Book> getAll();", "@Override\n\tpublic List<Book> getAllBooks() {\n\t\treturn bookRepository.find...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR start "declare_key" main.java.PLSQLKeys.g:368:1: declare_key : SQL92_RESERVED_DECLARE ;
public final declare_key_return declare_key() throws RecognitionException { declare_key_return retval = new declare_key_return(); retval.start = input.LT(1); Object root_0 = null; Token SQL92_RESERVED_DECLARE7=null; Object SQL92_RESERVED_DECLARE7_tree=null; try { ...
[ "private void analyseDeclareStatement() throws CompileError {\n if(check(TokenType.LET_KW)){\n analyseLetDeclare();\n }\n else {\n analyseConstDeclare();\n }\n }", "KDeclaration createKDeclaration();", "public final void rule__Declare__Group__0__Impl() throws...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets value as attribute value for CHANGE_NUMBER using the alias name ChangeNumber
public void setChangeNumber(Number value) { setAttributeInternal(CHANGENUMBER, value); }
[ "public void setChangeNumber(long value) {\n this.changeNumber = value;\n }", "@Override\n public void setIdNumber(String changeIdNumber) {\n idNumber = changeIdNumber;\n }", "public void setChangeNum(Long changeNum) {\n this.changeNum = changeNum;\n }", "public void setChange...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when a transaction is about to be reused. The default implementation of this method does nothing. Override if any preparation is required to ready a transaction for reuse.
protected void reuseTxn(Txn txn) throws Exception { }
[ "@Override\n \tpublic void startTransaction() {\n \t\t/*\n \t\t * This method is called only when transactions are nested. The nested\n \t\t * transaction will call this method before it applies the changes to\n \t\t * this transaction.\n \t\t */\n \t\tinsideTransaction = true;\n \t}", "@Override\n\tpublic void o...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the identity quaternion corresponding to zero rotation
public static Quaternion getIdentity(){ return new Quaternion(1,0,0,0);}
[ "public Quaternion inverse() {\n if (!this.isZero()){\n double a = Math.pow(this.norm(), 2);\n return new Quaternion(\n this.getRpart() / a,\n (- this.getIpart()) / a,\n (- this.getJpart()) / a,\n (- this.getKpart()) / a);\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
validate the age of students( student's age < 100)
private void validateAge(LocalDate dateOfBirth){ if(((LocalDate.now().getYear() - 1) - dateOfBirth.getYear()) > 100){ throw new IllegalArgumentException(": Please check the year entered, student cannot be over 100 years old"); } else { this.age = (LocalDate.now().get...
[ "public boolean checkAge(int age) {\n if (age > maxAgeOfStudent || age < minAgeOfStudent) {\n System.out.println(\"You enter wrong age\");\n return false;\n } else {\n return true;\n }\n }", "@Override\n public void validateYears(int age, int ageLimit) {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
///////////////////////// NON UI PART (could be extracted in common) ///////////////////////////// Returns real tile size in pixels for float zoom .
public float getTileSize() { float res = map == null ? 256 : map.getTileSize(); if (zoom != (int) zoom) { res *= (float) Math.pow(2, zoom - (int) zoom); } // that trigger allows to scale tiles for certain devices // for example for device with density > 1 draw tiles the same size as with den...
[ "public int getTileSizePixels();", "int getTileSize();", "public double getTileSize()\n {\n return m_TileSize;\n }", "public static int getTileSize(){\n\t\treturn tileDim;\n\t}", "public int getTileSize() {\r\n\t\treturn tSize;\r\n\t}", "public int getSquareTileSize() {\n return square...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleSchedulerDSL" $ANTLR start "entryRuleDefCore" InternalDsl.g:6249:1: entryRuleDefCore returns [EObject current=null] : iv_ruleDefCore= ruleDefCore EOF ;
public final EObject entryRuleDefCore() throws RecognitionException { EObject current = null; EObject iv_ruleDefCore = null; try { // InternalDsl.g:6249:48: (iv_ruleDefCore= ruleDefCore EOF ) // InternalDsl.g:6250:2: iv_ruleDefCore= ruleDefCore EOF { ...
[ "public final EObject entryRuleSchedulerDef() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleSchedulerDef = null;\n\n\n try {\n // InternalDsl.g:7589:53: (iv_ruleSchedulerDef= ruleSchedulerDef EOF )\n // InternalDsl.g:7590:2: iv_ruleSchedulerDef...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getContextAsDate Get Context and convert it to a Timestamp if error return today's date
public static Timestamp getContextAsDate(Properties ctx, int WindowNo, String context) { if (ctx == null || context == null) throw new IllegalArgumentException ("Env.getContext - require Context"); String s = getContext(ctx, WindowNo, context, false); // JDBC Format YYYY-MM-DD example 2000-09-11 00:00:00.0 ...
[ "public static Timestamp getContextAsDate(Properties ctx, String context)\n\t{\n\t\treturn getContextAsDate(ctx, 0, context);\n\t}", "public static Timestamp getContextAsDate(Properties ctx, String context)\n\t{\n\t\tif (ctx == null || context == null)\n\t\t\tthrow new IllegalArgumentException (\"Env.getContext -...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Enables or disables the underflow alarm for this tank.
protected final void setUnderflowAlarmEnabled(boolean alarmEnabled) { setAlarmEnabled(underflowAlarm, alarmEnabled); }
[ "protected AlarmVisualization getUnderflowAlarm() {\n return underflowAlarm;\n }", "protected final void setOverflowAlarmEnabled(boolean alarmEnabled) {\n setAlarmEnabled(overflowAlarm, alarmEnabled);\n }", "public void setDown() {\n armPID.reset();\n if (armPID.getSetpoint() >...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To Start The Emulator Through program
public static void startEmulator() throws IOException, InterruptedException { Runtime.getRuntime().exec(commonPath+"\\src\\main\\java\\Resources_Emulator\\Emulator.bat"); Thread.sleep(6000); }
[ "public static void launchEmulator(String nameOfAVD) {\n\t System.out.println(\"Starting emulator for '\" + nameOfAVD + \"' ...\");\n\t String[] aCommand = new String[] { emulatorPath, \"-avd\", nameOfAVD };\n\t try {\n\t Process process = new ProcessBuilder(aCommand).start();\n\t process.waitFor(180, TimeUnit.SE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column CO2.DEVICEID
public void setDeviceid(Integer deviceid) { this.deviceid = deviceid; }
[ "public void setDeviceID(long deviceID) {\n this.deviceID = deviceID;\n }", "public void setUserdeviceId(int value) {\n this.userdeviceId = value;\n }", "void setDevice(int value);", "public void setDeviceID(String deviceID) {\n\t\tthis.deviceID = deviceID;\n\t}", "void setDeviceID(Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface to get the CRL for a cert, implement this Interface if you have some service or way around for downloading CRL
public interface CrlFinderInterface { /** * CRL of the Certificate * @param cert * @return CRL */ X509CRL getCrl(X509Certificate cert); }
[ "X509CRL getCrl(X509Certificate cert);", "private static X509CRL downloadCRL(String crlURL) \n\t\t\tthrows IOException, CertificateException, CRLException,\n\t\t\tCertificateVerificationException, NamingException \n\t{\n\t\tif (crlURL.startsWith(\"http://\") || crlURL.startsWith(\"https://\")\n\t\t\t\t|| crlURL.s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Starting a while loop opens a new scope.
@Override public void enterWhileStat(EmojiLangParser.WhileStatContext ctx) { this.scope.openScope(); }
[ "WhileStart createWhileStart();", "While createWhile();", "Loop createLoop();", "public boolean isOpenLoop();", "public void openScope() {\n currentscope++;\n scopemap.put(currentscope, new HashMap<>());\n }", "WhileCommand createWhileCommand();", "public void openScope() {\n sco...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ The text testre default constructor
public TextTester(){}
[ "public TextContent(String text){\r\n\t\tsuper(text);\r\n\t}", "public TextFlow() {\n this(new String());\n }", "public ParserTest()\n {\n getTextForTests();\n }", "public TextConstruct(String name)\n\t{\n super(name);\n this.type = ContentType.TEXT;\n\t}", "public TextPar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private ConcurrentHashMap map; Constructor of ComputerProxy
ComputerProxy(Computer computer) { this.computer = computer; //this.map = new ConcurrentHashMap<UUID, Task>(); }
[ "public ThreadMap()\n\t{\n\t\taThreadMap = new ConcurrentHashMap<Thread, T>();\n\t}", "private static <K, V> Map<K, V> newConcurrentHashMap() {\n return new ConcurrentHashMap<K, V>();\n }", "public ThreadMap(Map<? extends Thread, ? extends T> rMap)\n\t{\n\t\taThreadMap = new ConcurrentHashMap<Thread, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get mute state of sound playback.
public boolean getMute();
[ "public boolean getIsSoundMuted() {\n return isSoundMuted;\n }", "public boolean getMute() {\n return mute;\n }", "public boolean getMute() {\n\t\treturn _settings.getMute();\n\t}", "public void mute(boolean state){ is_muted = state; }", "public void mute() {\n Log.d(TAG, \"Getting cu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ The default constructor should initialize size to 0 and initialize the items array to have a size of CAPACITY. Public Bag Constructor. Default capacity 16(pieces per player) 64 possible moves max
@SuppressWarnings("unchecked") public Bag() { this.size = 0; this.items = (T[]) new Object[CAPACITY]; }
[ "public ArrayBag() {\n currentCapacity = 100;\n aBag = new Object[currentCapacity];\n }", "public ResizeableArrayBag()\n {\n this(DEFAULT_CAPACITY);\n }", "public Bag() {\n n = 0;\n first = null;\n }", "public Backpack()\n {\n maxItems = 6;\n ite...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function is run when the robot is first started up and should be used for any initialization code.
@Override public void robotInit() { }
[ "private void robotInit() {\r\n\t\tinitCamera();\r\n\t\tinitSubsystems();\r\n\t\tinitSmartDashboardChoosers();\r\n\t}", "public void robotInit() {\n \n\tRobotMap.init();\n autoChooser = new SendableChooser();\n autoChooser.addDefault(\"Simple Autonomous\", new SimpleAutonomous());\n //...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor NONNULL_PTR this_ptr, struct LDKPublicKey val);
public static native void DelayedPaymentOutputDescriptor_set_revocation_pubkey(long this_ptr, byte[] val);
[ "public static native byte[] DelayedPaymentOutputDescriptor_get_revocation_pubkey(long this_ptr);", "public static native void TxCreationKeys_set_revocation_key(long this_ptr, byte[] val);", "public static native void ChannelPublicKeys_set_revocation_basepoint(long this_ptr, byte[] val);", "public static nati...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
displays operation history and cost before Termination
public void shutDownSimulator() { displayOperationHistory(); this.costService.displayCost(); }
[ "public void historicCalculator() {\n\t\ttmpMoney = fin.districtCalculatorCost(map);\r\n\t\tmoney.withDraw(tmpMoney);\r\n\t\thistoricText += \"------------ \"+ clock.getDay() +\" \"+ clock.getMonthName() +\"------------\\n\";\r\n\t\thistoricText += \"-\" + tmpMoney + \" Entretien des quartiers\\n\";\r\n\t\t\r\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the InfoSource field.
public void setInfoSource(typekey.InfoSource value);
[ "public void setInfo(int line, String source) {\n this.line = line;\n this.sourceFile = source;\n }", "public void setSource(String source);", "public void set_infos_log_src(int value) {\n setUIntBEElement(offsetBits_infos_log_src(), 16, value);\n }", "public void setIpSource(String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get list of conversations for a given project
@GetMapping("/project/{project_id}/conversations") public Page<ConversationDTO> getProjectConversations(@PathVariable(value = "project_id") UUID projectId, Pageable pageable) { Page<Conversation> page = conversationRepository.findByProjectId(projectId, pageable); List<ConversationDTO> list = page....
[ "public static ArrayList<Conversation> getAllConversations(Context context) {\n JSONObject data = getUserJson();\n ArrayList<Conversation> conversations = new ArrayList<>();\n try {\n String getConversationsURL = context.getResources().getString(R.string.get_conversations_url);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the value related to the column: ref_date
public void setRefDate (java.util.Date refDate) { this.refDate = refDate; }
[ "public void setRefDate(Date value) {\n set(1, value);\n }", "public void setRefDate(java.lang.String refDate) {\r\n this.refDate = refDate;\r\n }", "public void setRefDate(String refDate) {\n this.refDate = refDate == null ? null : refDate.trim();\n }", "public void setReference...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Closes a result statement
public static void closeResultStatement(ResultSet result) { try { if (result != null /*!res.isClosed()*/) result.close(); } catch (SQLException e) { printMessage(e, "closeResultStatement"); } }
[ "void close (Object queryResult);", "public void closeStatement();", "public static void closeResult(ResultSet result) throws SQLException {\n\tif (null != result) {\n\t result.close();\n\t}\n }", "void closeCurrentResultSet() {\n try {\n if (currentResult != null) {\n c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Spring Data repository for the Technologist entity.
@SuppressWarnings("unused") @Repository public interface TechnologistRepository extends JpaRepository<Technologist, Long> { }
[ "@Repository\npublic interface TeacherRepository extends JpaRepository<Teacher, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface SpeciesCategoryRepository extends JpaRepository<SpeciesCategory, Long> {\n}", "public interface SpecialityRepository extends CrudRepository<Speciality, Long>...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Rescales a vector with the given factor if factor is greater than zero. Else, the original Vector is returned.
public Vector resizeVector(double factor){ if(this.vectorLengthSquared() >= 0) return new Vector(this.getX() * factor, this.getY() * factor); else return this; }
[ "public static Vector scale(Vector v, double factor) {\r\n Vector w = new Vector(v);\r\n w.scale(factor);\r\n return w;\r\n }", "public Vector scale(double factor){\n\t\treturn new Vector(x*factor, y*factor, z*factor);\n\t}", "public Vector rescale (double magnitude) {\n\t\tdouble magni = magnitude();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
f0 > "MOVE" f1 > Reg() f2 > Exp()
@Override public String visit(MoveStmt n) { String _ret = null; String r1 = this.reg[n.f1.f0.which]; int which = n.f2.f0.which; if (which == 0) { /* 0 MOVE r1 HALLOCATE SimpleExp */ this.save_a0v0(r1); n.f2.accept(this); Global.outputSt...
[ "X86.Reg gen_dest_operand();", "void moveInstruction(Register regA, Register regB){\n System.err.println(\"\\t\\t\\tMOVE \" + regA + \",\" + regB); //for instruction trace\n regB.setVal(regA.getVal());\n }", "private void createFPregMove(Code32 code, int opCode, int cond, int Vm, int Rt, int R...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return Time Line results for a given customer id , app combo Optional Parameters include restriction on collection id (later we should be able to specify a range of collection ids or dates) Includes optional restriction on instance id which can be a list(multiple instanceId's allowed) Return results segragated by path ...
@GET @Path("timelineres/{customer}/{app}") public Response getTimelineResults(@Context UriInfo urlInfo, @PathParam("customer") String customer, @PathParam("app") String app) { MultivaluedMap<String, String> queryParams = urlInfo.getQueryParameters(); List<S...
[ "@Override\n public ListAppResultsResponse getAppResults(AppSessionCompact appSession, QueryParams params)\n {\n return getConnectionProvider().getResponse(ListAppResultsResponse.class,\n \"appsessions/\" + appSession.getId() + \"/appresults\", params, null);\n }", "@Override\n pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Arquivos Metodo que escreve os dados dos hospedes no arquivo
public void arquivoCadastroHospede(FileWriter arquivo) throws IOException { Collection<Hospede> h = hospedesDoHotel.values(); String quntHospedes = String.valueOf(h.size()); arquivo.write("Cadastro de Hospedes: " + quntHospedes + " hospedes registrados \r\n"); int cont = 1; for (Hospede hospede : h) { a...
[ "public Object carregarDados() {\n\n\t\tObject resultado = null;\n\n\t\ttry {\n\t\t\t// tem que ser o mesmo nome do arquivo de salvamento\n\t\t\tFileInputStream fs = new FileInputStream(CAMINHO);\n\t\t\tObjectInputStream os = new ObjectInputStream(fs);\n\t\t\tresultado = os.readObject();\t\t\t\n\t\t\treturn resulta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Read the accelerometer if there is one and transform to (x,y) display axis values. Use the current orientation to take into account the device rotation. If there is no accelerometer use the mouse to simulate the accelerometer. If the right mouse button is pressed, then read the touch position. else acceleration=0
public Vector2 read() { if (hasAccelerometer) { switch (orientation) { case LANDSCAPE: acceleration.set(-Gdx.input.getAccelerometerY(), Gdx.input.getAccelerometerX()); break; case PORTRAIT: acceleration.set(G...
[ "public Accelerometer() {\n hasAccelerometer = Gdx.input.isPeripheralAvailable(Input.Peripheral.Accelerometer);\n }", "public ChannelData accelerometer(){\n return _accelerometer;\n }", "@Override\n public void onSensorChanged(SensorEvent event) {\n float orientXscreen = eve...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns the value of the database column MSG_PARAMS.CT_USER
public String getCtUser() { return ctUser; }
[ "public String getCrtUser() {\n return crtUser;\n }", "public String getCR_USER() {\n return CR_USER;\n }", "public String getCR_USER() {\n\t\treturn CR_USER;\n\t}", "public String getJdbcUser()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_USER);\n }", "public String ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
3. Sum two integer variables initialized with maximal values for that type.
public static void ex3() { int a = Integer.MAX_VALUE; int b = Integer.MAX_VALUE; System.out.printf("%nex3; MAX Values %d, %d; Sum equals %d", a, b, a + b); }
[ "final int calculateTypeConstraintMaxDiff(){\n int result=0;\n for(int i=0;i<MaximumNumberOfVerticesOfTypeZ.length;i++){\n result+=MaximumNumberOfVerticesOfTypeZ[i];\n }\n return result;\n }", "public int maximum(int num1,int num2);", "public static final int max(int unsignedA, int...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check text on digids
public Boolean checkDigids(String text) { String regex = "^(\\d+)$"; return text.matches(regex); }
[ "public boolean textCheck(String content){\n String [] text = content.split(\"\\r\\n|\\r|\\n\");\n if (text.length<4)\n return false;\n for (int i=0;i<text.length;i++){\n if (!text[i].contains(\":\")){\n Log.d(TAG, \"textCheck: Entry does not contain ':'\");...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__AstProcedure__Group_6_2__1__Impl" $ANTLR start "rule__AstExternalProcedure__Group__0" ../org.caltoopia.frontend.ui/srcgen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10069:1: rule__AstExternalProcedure__Group__0 : rule__AstExternalProcedure__Group__0__Impl rule__AstExternalPro...
public final void rule__AstExternalProcedure__Group__0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10073:1: ( rule__AstExternalProcedure__Gr...
[ "public final void rule__AstExternalProcedure__Group__0__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:10085:1: ( ( () ) )\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a list of simple class names (class name without its package) of the registered listeners. Multiple listeners with the same name are supported
List<String> getListenerTypes();
[ "Class[] listenTo();", "EventListener[] getListeners(Class<?> listenerType);", "public synchronized ConfigDataListener[] getListenerNames() {\r\n int size = dataListeners.size();\r\n ConfigDataListener[] names = new ConfigDataListener[size];\r\n ConfigDataListener listener = null;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a reference to Prior toolbar button (JButton).
public JButton getPriorButton() { return priorButton; }
[ "private JButton getPreButton() {\r\n\t\tif (preButton == null) {\r\n\t\t\tpreButton = new JButton();\r\n\t\t\tpreButton.setText(\"Prev Page\");\r\n\t\t\tpreButton.setSize(new Dimension(120, 30));\r\n\t\t\tpreButton.setLocation(new java.awt.Point(10,480));\r\n\t\t}\r\n\t\treturn preButton;\r\n\t}", "private JButt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column FreeHost_Product_VPS.HourIOPS4
public Integer getHouriops4() { return houriops4; }
[ "public Integer getHouriops0() {\r\n return houriops0;\r\n }", "public Integer getHouriops7() {\r\n return houriops7;\r\n }", "public Integer getHouriops6() {\r\n return houriops6;\r\n }", "public void setHouriops4(Integer houriops4) {\r\n this.houriops4 = houriops4;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Requests allocation of the given resources. The client will be notified via callback if the allocation was successful or not.
void allocate(@Nonnull Client client, @Nonnull Set<TCSResource<?>> resources) throws IllegalArgumentException;
[ "void allocateNow(@Nonnull Client client, @Nonnull Set<TCSResource<?>> resources)\n throws ResourceAllocationException;", "ListenableFuture<ResourceSet> allocate(final ResourceSchedulingContext queryContext,\n final ResourceSchedulingProperties resourceSchedulingProper...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form GUIRedeemMiles
public GUIRedeemMiles(){ initComponents(); }
[ "public void designNewWindow()\r\n {\r\n //place the label and textfields in correct order\r\n addMemberG.add(addFNameL, 0, 0);\r\n addMemberG.add(addFNameText, 2, 0);\r\n addMemberG.add(addSNameL, 0, 1);\r\n addMemberG.add(addSNameText, 2, 1);\r\n addMemberG.add(addAftS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct STARTUP message it will allows for further interactions with Cassandra.
public static void constructStartupMessage(final ByteBuf buffer) { /* * Requests headers - according to https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v4.spec * section #1 * * 0 8 16 24 32 40 * +---------+-...
[ "@Override\n public void preStart() {\n cluster.subscribe(getSelf(), MemberUp.class);\n }", "@Override\n public void preStart() {\n cluster.subscribe(self(), ClusterEvent.MemberUp.class);\n }", "gr.uoa.di.containermigrator.master.communication.protocol.Protocol.AdminMessage.Start getStart();",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Disable Certificate Validation,add the selfsigned certificate to your JVM truststore ignoreCert: ignore the cert
public static void ignoreCert() { try { SSLContext sc = SSLContext.getInstance("SSL"); sc.init(null, new TrustManager[] { new DefaultTrustManager() }, new SecureRandom()); HttpsURLConnection .setDefaultSSLSocketFactory(sc.getSocketFactory()); HostnameVerifier hv = new HostnameVerifier() { @...
[ "private static void disableSSL() {\n // Create a trust manager that does not validate certificate chains\n TrustManager[] trustAllCerts = new TrustManager[] {new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return null;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Builds the URL used to talk to the movie server using a string. To get the videos and revies of a movie by its id.
public static URL buildDetailsUrl(String movieId) { String baseUrl = MOVIE_URL + movieId; Uri builtUri = Uri.parse(baseUrl).buildUpon() .appendQueryParameter(API_KEY_QUERY_PARAM, BuildConfig.THE_MOVIE_DB_API_KEY) .appendQueryParameter(APPEND_TO_RESPONSE_QUERY_PARAM, VIDE...
[ "public static URL buildMovieVideosUrl(int movieId) {\n Uri builtUri = Uri.parse(MOVIES_BASE_URL).buildUpon()\n .appendPath(PATH1_PARAM)\n .appendPath(PATH_MOVIE)\n .appendEncodedPath(String.valueOf(movieId))\n .appendPath(PATH_VIDEOS)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Moves user plane in the specified direction by telling it to level manager
public void moveUserPlane(int direction) { levelManager.moveUserPlane(direction); }
[ "public void move(Direction direction);", "public void moveUnit(Unit unit, Orientation direction) throws ServerException, XMWPException, WorldMakerException;", "public void movePlayer(model.IDirection.Direction direction){\r\n\r\n\t\tmovingPlayer(direction, playerX, playerY);\r\n\t}", "public void movePlayer(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Search for the uOM corresponding to the query.
Page<UOMDTO> search(String query, Pageable pageable);
[ "@GetMapping(\"/_search/uoms\")\n @Timed\n public ResponseEntity<List<UomDTO>> searchUoms(@RequestParam String query, @ApiParam Pageable pageable) {\n log.debug(\"REST request to search for a page of Uoms for query {}\", query);\n Page<UomDTO> page = uomService.search(query, pageable);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the existing allocated IP address.
void updateAllocatedIp(K8sIpam ipam);
[ "void updateAvailableIp(K8sIpam ipam);", "K8sIpam allocatedIp(String ipamId);", "Update withNextHopToVirtualAppliance(String ipAddress);", "public void updateAddress(Address address);", "PublicIp assignPublicIpAddress(long dcId, Long podId, Account owner, VlanType type, Long networkId, String requestedIp) t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an iterator for an array with a specified start and end index.
public ArrayIterator(E[] array, int start, int length) { myArray = array; myCursor = start; myFirstUnincludedIndex = myCursor + length; }
[ "public IntIterator iterator(int fromIndex, int toIndex);", "public ObjectArrayIterator(final E array[], final int start) {\n this(array, start, array.length);\n }", "IArray getArrayNext() throws InvalidRangeException;", "CloseableIterator<IndexEntry> iterator(Object start, boolean startInclusive, O...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method recursively deletes the snake segments starting from the back. It takes in the tail segment and returns the new tail segment.
public Segment killSnake(Segment end) { if(tail==null) return null; // if the tail is null, exit the recursion else { // otherwise tail = tail.getSeg(); // set the tail to be the segment that the tail currently has // a handle on. parts--; // subtract the number of parts return this.killSnake(tail); //...
[ "private void deleteTail() {\n int cont = sizeSnake;\n for (int i = positions.size() - 1; i >= 0; i--) {\n if (cont == 0) {\n Position t = positions.get(i);\n Cells.get(t.y).get(t.x).updateColor(2);\n } else {\n cont--;\n }\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new PasswordRecoveryItem and sets the given fields initially.
@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...) private PasswordRecoveryItem(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}
[ "protected Item createFieldsItem() {\n Item item = new Item( \n i18n( \"fieldsItem_title\" ), i18n( \"fieldsItem_description\" ),\n null, null, false, false );\n return item;\n }", "void create(PasswordRecover recover) throws DAOException;", "public Item createItem...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the replicaHostIndex property.
public long getReplicaHostIndex() { return replicaHostIndex; }
[ "public void setReplicaHostIndex(long value) {\n this.replicaHostIndex = value;\n }", "public Integer replicas() {\n return this.replicas;\n }", "@JsonProperty\n public String replicaId() {\n return replicaId;\n }", "public Set<Replica> getReplica() {\r\n return replica...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method sets the value of the database column YLJZN.CURRECT_CHRONIC.FAMILY_ID
public void setFamilyId(String familyId) { this.familyId = familyId; }
[ "public void setFamilyId(Integer familyId) {\r\n this.familyId = familyId;\r\n }", "public String getFamilyId() {\r\n return familyId;\r\n }", "public void xsetFamilyName(org.apache.xmlbeans.XmlString familyName)\n {\n synchronized (monitor())\n {\n check_orphaned...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests_SRS_HTTPSTRANSPORT_11_006: [The function shall add a packet containing the callbacks, contexts, and response for all sent messages to the callback queue.]
@Test public <T extends Queue> void sendMessagesAddsToCompletedQueue( @Mocked final Message mockMsg, @Mocked final HttpsSingleMessage mockHttpsMsg, @Mocked final IotHubEventCallback mockCallback, @Mocked final HttpsBatchMessage mockBatch, @Mocked final Iot...
[ "void requestProcessed( C conn, int numResponseExpected ) ;", "private void addPacket( BLEIoQueue queue, byte[] data, BLEIoOperation.OnResponseCallback callback ){\n\t\t\t\t \t\tBLEIoOperation op = new BLEIoOperation( BLEIoOperation.Type.WRITE_CHARACTERISTICS, \"Sending command.\", callback );\n\n\t\t\t\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Main play routine. Loops until end of play. Or until quitGame() is called, which sets quitBoolean to false.
public void play() { printWelcome(); // Enter the main command loop. Here we repeatedly read commands and // execute them until the game is over. boolean finished = false; while (! finished) { Command command = parser.getCommand(); ...
[ "public void play() {\r\n\r\n gamestate.startGame();\r\n\r\n while (!quit) {\r\n\r\n if (newGame) {\r\n gamestate.startGame();\r\n turn = 0;\r\n finished = true;\r\n newGame = false;\r\n }\r\n\r\n while (!gamestate.gameOver()) {\r\n\r\n if (newGame) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes the form with the given id and all its questions and answers.
public void delete(int id) { try { ps = con.prepareStatement("DELETE FROM forms WHERE id=?"); ps.setInt(1, id); ps.executeUpdate(); ps.clearParameters(); ps = con.prepareStatement("SELECT id FROM questions WHERE form_id=?"); ps.setInt(1, id); rs = ps.executeQuery(); ps.clearParameters(); w...
[ "public void deleteForm(int entryId) throws SQLException {\n \n Connection con = null;\n PreparedStatement stmt = null;\n try {\n // delete the entries\n con = getConnection();\n stmt = con.prepareStatement(getQuery(\"DELETE_FORM_ENTRY\"));\n s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ImportProperty__Group__0__Impl" $ANTLR start "rule__ImportProperty__Group__1" ../org.iworkz.qon.ui/srcgen/org/iworkz/qon/ui/contentassist/antlr/internal/InternalQonDsl.g:1569:1: rule__ImportProperty__Group__1 : rule__ImportProperty__Group__1__Impl rule__ImportProperty__Group__2 ;
public final void rule__ImportProperty__Group__1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.iworkz.qon.ui/src-gen/org/iworkz/qon/ui/contentassist/antlr/internal/InternalQonDsl.g:1573:1: ( rule__ImportProperty__Group__1__Impl rule__ImportP...
[ "public final void rule__ImportProperty__Group_4_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.iworkz.qon.ui/src-gen/org/iworkz/qon/ui/contentassist/antlr/internal/InternalQonDsl.g:1829:1: ( rule__ImportProperty__Group_4_1__1...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
puts a string in sharedPreferences
public static void putString(String name, String value) { editor = prefs.edit(); editor.putString(name, value); editor.apply(); }
[ "public void saveString(String key,String value)\n {\n preference.edit().putString(key,value).apply();\n }", "public void storeStringInPreference(String key, String value) {\n mEditor.putString(key, value);\n mEditor.commit();\n }", "private void savePreferenceAsString(String prefe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Displays a list of tools for the user representing their collection
public void refreshToolCollection(List<Tool> tools) { collectionToolName.getChildren().clear(); collectionPurchaseDate.getChildren().clear(); collectionReturnButtons.getChildren().clear(); collectionToolName.setSpacing(8); collectionPurchaseDate.setSpacing(8); collectionToolName.getChildren().add(...
[ "public void viewTools()\r\n {\r\n // Create the tools variable ArrayList and store the current\r\n // type and amount of tools in the list.\r\n ArrayList<ListItem> tools = theGame.getTools();\r\n \r\n System.out.println(\"\\nHere are the tools available in the storehouse:\");\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Run TF train for DataStream.
public static <IN, OUT> DataStream<OUT> train(StreamExecutionEnvironment streamEnv, DataStream<IN> input, TFConfigBase tfConfig) throws IOException { return train(streamEnv, input, tfConfig, (TypeInformation<OUT>) null); }
[ "public static <OUT> DataStream<OUT> train(StreamExecutionEnvironment streamEnv,\n\t\t\tTFConfigBase tfConfig) throws IOException {\n\t\treturn train(streamEnv, tfConfig, (TypeInformation<OUT>) null);\n\t}", "public static <IN, OUT> DataStream<OUT> train(StreamExecutionEnvironment streamEnv, DataStream<IN> input,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }