query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Option to enable Stackdriver Logging. bool enable_stackdriver_logging = 4;
@java.lang.Override public boolean getEnableStackdriverLogging() { return enableStackdriverLogging_; }
[ "@java.lang.Override\n public boolean getEnableStackdriverLogging() {\n return enableStackdriverLogging_;\n }", "public Builder setEnableStackdriverLogging(boolean value) {\n\n enableStackdriverLogging_ = value;\n bitField0_ |= 0x00000008;\n onChanged();\n return this;\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the value related to the column: muscular_co_ordination
public void setMuscularCoOrdination (java.lang.String muscularCoOrdination) { this.muscularCoOrdination = muscularCoOrdination; }
[ "public java.lang.String getMuscularCoOrdination () {\n\t\treturn muscularCoOrdination;\n\t}", "public void setMucPhi(String mucPhi);", "public void setMatricula(long value) {\r\n this.matricula = value;\r\n }", "void setMatricule(int ma){\n \t this.matricule = ma;\n }", "public v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This test checks that if user has the required role, the user skips the other executions
@Test public void testSkipOtherExecutionsIfUserHasRoleCondition() { final String userWithRole = "test-user@localhost"; final String role = "offline_access"; final String newFlowAlias = "browser - allow skip"; Map<String, String> configMap = new HashMap<>(); configMap.put(Con...
[ "@Test\n public void testDenyAccessWithRoleCondition() {\n denyAccessWithRoleCondition(false);\n }", "@Test\n public void testDenyAccessWithNegateRoleCondition() {\n denyAccessWithRoleCondition(true);\n }", "@Test\r\n\tpublic void testHasRoleForUserWithNoRoles() {\r\n\t\tassertFalse(te...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
sets MembershipPanel Ediable to False
private void setMembershipPanelEdiableFalse() { accountNrTF.setEditable(false); fromDateTF.setEditable(false); groupTrainingCB.setEnabled(false); monthPayTF.setEditable(false); pbsDateTF.setEditable(false); pbsNumberTF.setEditable(false); ...
[ "private void setMembershipPanelEditableTrue() {\n \n accountNrTF.setEditable(true);\n fromDateTF.setEditable(true);\n groupTrainingCB.setEnabled(true);\n monthPayTF.setEditable(true);\n pbsDateTF.setEditable(true);\n pbsNumberTF.setEditable(true)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add DynamicCuboid to cuboids array (without seed)
public void addDynamicCuboid(DynamicModelPart parent, int u, int v, float x, float y, float z, float sizeX, float sizeY, float sizeZ, float extraX, float extraY, float extraZ, boolean mirror, boolean bl) { this.cuboids.add(new DynamicCuboid(parent, u, v, x, y, z, sizeX, sizeY, sizeZ, ext...
[ "public DynamicModelPart addCuboids() {\n for (int i = 0; i < this.x.length; i++) {\n this.addCuboid(this.x[i], this.y[i], this.z[i], this.sizeX[i], this.sizeY[i],\n this.sizeZ[i], this.extra[i], this.u[i], this.v[i]);\n }\n return this;\n }", "public void add...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Models a poll vote. The vote may either be a summary or a particular vote, containing a reference to the member who voted. EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without...
public interface IPollVote { /** * This is a summary vote, containing the number of votes this option got. */ public static final int SUMMARY_VOTE = 1; /** * This is a detail vote, having 1 as the number of votes and an optional * reference to the member who voted. */ public static final int...
[ "public Long getVote() {\n return vote;\n }", "public Vote(int voterId, int pollId) {\n this();\n this.voterId = voterId;\n this.pollId = pollId;\n }", "void votedOnPoll(String pollId);", "public String getVote() {\n return vote;\n }", "public void setVote(Long vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getting the poll answer1
public String getPollAnswer1() { return pollAnswer1; }
[ "public String getPollAnswer2() {\n return pollAnswer2;\n }", "public String getPollAnswer() {\n return pollAnswer;\n }", "java.lang.String getAnswer();", "java.lang.String getPswAnswer();", "java.lang.String getMyanswer();", "Answer GetA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the empty invocation environment variables.
public static CommandLineToolInvocationEnvironmentVariables empty() { return EMPTY_ENVIRONMENT_VARIABLES; }
[ "RuntimeEnv createRuntimeEnv();", "public static CommandLineToolInvocationEnvironmentVariables inherit() {\n\t\treturn new CommandLineToolInvocationEnvironmentVariables(System.getenv());\n\t}", "private Env( ) { this(null,null,0,CTL_0,MEM_0,XNIL,null); }", "Map<String, String> buildEnv( String rubyRuntimeName...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parse the commandspecific options.
protected void parse(CommandLine cli) { // Name option if(hasOption(cli, Opt.NAME, true)) { name = getOptionValue(cli, Opt.NAME); logOptionValue(Opt.NAME, name); } // API key option if(hasOption(cli, Opt.API_KEY, true)) { a...
[ "protected void parseOptions()\n {\n for (Class c = getClass(); c != null; c = c.getSuperclass()) {\n for (Field field : c.getDeclaredFields()) {\n Option option = field.getAnnotation(Option.class);\n try {\n if (option != null) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an Ear task.
public Ear() { super(); archiveType = "ear"; emptyBehavior = "create"; }
[ "Task createTask();", "private Task createTask(String[] taskTokens) throws DukeException {\n switch (taskTokens[0]) {\n case \"[T]\":\n return new ToDo(taskTokens[2]);\n case \"[D]\":\n return new Deadline(taskTokens[2], taskTokens[3]);\n case \"[E]\":\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds expense to the current expense list if it belongs to the specified group.
public void addExpense(Expense expense, Group group) { boolean isCurrentGroup = isCurrentExpenseList(group); if (isCurrentGroup) { expenses.add(expense); } }
[ "public void addExpense(Expense e) {\n e.setId(getLargestId(this.expenseList) + 1);\n expenseList.add(e);\n }", "void addExpense(Expense expense);", "public void setExpenses(Group group) {\n expenses.clear();\n expenses.addAll(group.getExpenses());\n expenses.setGroup(group...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return block to sync = head revoking size
public long getSyncBeginNumber() { logger.info("headNumber:" + dynamicPropertiesStore.getLatestBlockHeaderNumber()); logger.info("syncBeginNumber:" + (dynamicPropertiesStore.getLatestBlockHeaderNumber() - revokingStore.size())); logger.info("solidBlockNumber:" + dynamicPropertiesStore.getLatestSolidifiedBlo...
[ "public abstract int blockLength();", "public int GetBlockLength() {\r\n\r\n return this.blockLength;\r\n }", "long getTotalBytesInUse();", "long getTotalChunksInUse();", "public int getSizeOfBlock() {\n return sizeOfBlock;\n }", "public int getBlockLength();", "int getLostedSize();"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of vertexSetCount method, of class MatrixGraph.
@Test public void testVertexSetCount() { System.out.println("vertexSetCount"); GeneralGraph instance = null; int expResult = 0; int result = instance.vertexSetCount(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call ...
[ "public void testVerticesSet() {\n System.out.println(\"verticesSet\");\n\n Assert.assertTrue(generateGraph().verticesSet().size() == 25);\n }", "@Test\r\n public void testGetVertexCount_0args() {\r\n System.out.println(\"getVertexCount\");\r\n \r\n int expResult = noOfVer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleOpMultiAssign" $ANTLR start "ruleOpMultiAssign" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:352:1: ruleOpMultiAssign : ( ( rule__OpMultiAssign__Alternatives ) ) ;
public final void ruleOpMultiAssign() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:356:2: ( ( ( rule__OpMultiAssign__Alternatives ) ) ) ...
[ "public final void ruleOpMultiAssign() 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:244:2: ( ( ( rule__OpMultiAss...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle cucumber TestStepFinished event
private void handleTestStepFinished(final TestStepFinished event) { final WebDriver webDriver = AutomationApplication.getWebDriver(); if (webDriver instanceof TakesScreenshot && (isNotOk(event) || isPrint(event))) { saveScreenshot((TakesScreenshot) webDriver); } }
[ "public static void endStep() {\n\t\tTestNotify.log(GenLogTC() + \"has been tested.\");\n\t}", "protected void runAfterStep() {}", "void finishStepContext();", "@AfterStep\n public void AfterStep() {\n }", "void completed(TestResult tr);", "private void testFinished() {\n\t\t\tLoginPage.logout(drive...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the current_balance value for this BalanceWs.
public com.token.vl.service.MoneyWs getCurrent_balance() { return current_balance; }
[ "public Amount getCurrentBalance() { return balance; }", "public double returnCurrentBalance() {\n\t\treturn accountBalance;\n\t}", "public BigDecimal getCurrBalance()\n {\n return getDirtyBalance().getCurrentBalance();\n }", "public double getBalance() {\n\t\treturn currentAccount.getBalance();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the value related to the column: accession_no
public void setAccessionNo (java.lang.Integer accessionNo) { this.accessionNo = accessionNo; }
[ "public ImagingStudy setAccessionNo(IdentifierDt theValue) {\n\t\tmyAccessionNo = theValue;\n\t\treturn this;\n\t}", "public void setAccession(java.lang.String accession)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Displays the updated cargo space available for the player once he or she buys/sells an item
public void updateCargoSpaceAvailable() { cargoSpaceAvailable.setText(String.valueOf(viewModel.getCargoSpaceAvailable())); }
[ "public void dispenseItem() {\n if (this.currentBalance >= 0) {\n dispenseChange();\n } else {\n throw new NotsufficientBalanceException(\"Price for item: \" + this.currentItemSelected.getName() + \" is \" + this.currentItemSelected.getPrice() + \"please enter sufficient balance\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ajoute et modifie les valeurs maximales et minimales dans le graphique
private void updateMaxAndMinGraph(){ //Les valeurs entrées précédement sont supprimées si elles existaient déjà graph.removeSeries(maxSeries); graph.removeSeries(minSeries); long maxTimeStamp = values.getValues()[values.getValues().length - 1].getTimeStamp(); DataPoint[] maxTemp...
[ "private void updateMaxAndMinDep(Node current) {\r\n\t\t current.maxDepTime = Integer.MIN_VALUE;\r\n\t\t current.minDepTime = Integer.MAX_VALUE;\r\n\t\tif(current.left != null ){\r\n\t\t\tcurrent.maxDepTime = (current.left.elem.getDepartureTime()+current.left.elem.getCurrentDayIndex()*(60*24))%(7*60*24);\r\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets value as the attribute value for the calculated attribute salehdrseq.
public void setsalehdrseq(BigDecimal value) { setAttributeInternal(SALEHDRSEQ, value); }
[ "public void setSeq(Number value) {\n setAttributeInternal(SEQ, value);\n }", "public void setDISCCNCLhdrSeq(BigDecimal value) {\n setAttributeInternal(DISCCNCLHDRSEQ, value);\n }", "public void setremarksseq(BigDecimal value) {\n setAttributeInternal(REMARKSSEQ, value);\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unsets the "virtualized" attribute
public void unsetVirtualized() { synchronized (monitor()) { check_orphaned(); get_store().remove_attribute(VIRTUALIZED$22); } }
[ "public void xsetVirtualized(org.apache.xmlbeans.XmlString virtualized)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will export the selected GPIO pin. This method required root permissions access.
public static native void export(int pin, int direction) throws RuntimeException;
[ "private void convert(int pinNum) {\n\t\tgpio = GpioFactory.getInstance();\n\t\tif (pins[pinNum] == null) {\n\t\t\tswitch (pinNum) {\n\t\t\t// Pins for pi1\n\t\t\tcase 0:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_00, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get preferred size. Preferred size depends on the toggle state. In expanded state, the dimension returned is a previously set preferred size, or Dimension(0,0) if no preferred size or preferredExpandedHeigh is set. If preferredExpandedHeight is set, then Dimension(?,preferredExpandedHeight) is returned, where the width...
@Override public Dimension getPreferredSize() { // get current preferred size Dimension d = isPreferredSizeSet() ? super.getPreferredSize() : new Dimension(0,0); // forward return isExpanded() ? (isPreferredSizeSet() ? (preferredExpandedHeight...
[ "public Dimension getPreferedSize() {\n\t\treturn new Dimension(1, 1);\n\t}", "@Override\r\n public Dimension getMaximumSize() {\r\n \t// get current preferred size\r\n \tDimension d = isMaximumSizeSet() ? super.getMaximumSize() : new Dimension(Integer.MAX_VALUE,Integer.MAX_VALUE);\r\n // forward\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get list of Cache namespace junctions to target for namespace associations.
public List<NamespaceJunction> junctions() { return this.junctions; }
[ "List<PrefixedNamespace> getNamespaces();", "@Override\n public Map<String, OperationSet> getTargetAssociations(String target) throws PMException {\n return graph.getTargetAssociations(target);\n }", "public Object[] getRelationships(Object source, Object dest);", "List<String> getNamespaces();",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to get the reporter of a Report.
public Reporter getReporter() { return reporter; }
[ "public ControllableReporter getReporterById(ID reporterID);", "public String getReporter() {\r\n return this.issue.getReporter() == null ? NA : this.issue.getReporter();\r\n }", "public String getReporterName() {\n return reporterName;\n }", "public String getReporterName() {\r\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__DeclareList__Group__0" $ANTLR start "rule__DeclareList__Group__0__Impl" InternalDsl.g:9113:1: rule__DeclareList__Group__0__Impl : ( ( rule__DeclareList__DecAssignment_0 ) ) ;
public final void rule__DeclareList__Group__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDsl.g:9117:1: ( ( ( rule__DeclareList__DecAssignment_0 ) ) ) // InternalDsl.g:9118:1: ( ( rule__DeclareList__DecAssignment_0 ) ) ...
[ "public final void rule__DeclareList__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:9105:1: ( rule__DeclareList__Group__0__Impl rule__DeclareList__Group__1 )\n // InternalDsl.g:9106:2: rule__DeclareList__G...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the alleles, in decreasing order by number of reads. The order is determined by getSortedAlleleCounts()
public char[] getSortedAlleles() { AlleleCount[] sortedCounts = getSortedAlleleCounts(); char[] result = new char[sortedCounts.length]; for (int i = 0; i < sortedCounts.length; i++) { result[i] = sortedCounts[i].allele; } return result; }
[ "public AlleleCount[] getSortedAlleleCounts() {\r\n\t\tAlleleCount[] sortedCounts = getAlleleCounts();\r\n\t\tArrays.sort(sortedCounts);\r\n\t\treturn sortedCounts;\r\n\t}", "public ArrayList<WordCount> getWordCountsByCount() {\r\n ArrayList<WordCount> arr= getWordCountsByWord();\r\n Collections.sor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convenience method to add blue each pixel by param amount.
private void addBluePixel(int x, int y, int amount) { Pixel currentPixel = this.getPixel(x, y); int newBlue = currentPixel.getBlue() + amount; currentPixel.setBlue(newBlue); }
[ "public Picture addBlue(int amount) {\r\n\t\tPicture bluePicture = new Picture(this);\r\n\t\tint picHeight = this.getHeight();\r\n\t\tint picWidth = this.getWidth();\r\n\r\n\t\tfor (int h = 0; h < picHeight; h++) {\r\n\t\t\tfor (int w = 0; w < picWidth; w++) {\r\n\t\t\t\tbluePicture.addBluePixel(w, h, amount);\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of MetaDataSentence
public MetaSentence(Session s, String sSentence, SerializerWrite serwrite, SerializerRead serread) { super(s); m_sSentence = sSentence; m_SerWrite = serwrite; m_SerRead = serread; }
[ "public static Grammar makeSentence() {\r\n\t\t// Define the non-terminals\r\n\t\tNonTerm sent = new NonTerm(\"Sentence\");\r\n\t\tNonTerm subj = new NonTerm(\"Subject\");\r\n\t\tNonTerm obj = new NonTerm(\"Object\");\r\n\t\tNonTerm mod = new NonTerm(\"Modifier\");\r\n\t\t// Define the terminals, using the Sentence...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a hyperedge to the collection of hyperedges.
protected void addHyperEdge(IHyperEdge hyperedge) { if (hyperedge != null) { this.ids.add(hyperedge.getID()); this.hyperEdgeMap.put(hyperedge.getID(), hyperedge); } }
[ "void add(Edge edge);", "public void addHyperEdge(HyperEdge hyperEdge) {\r\n\t\tfor (GRBVar variable : hyperEdge.getVariables()) {\r\n\t\t\tif (!incidentHyperEdges.containsKey(variable)) {\r\n\t\t\t\tincidentHyperEdges.put(variable, new ArrayList<HyperEdge>(1));\r\n\t\t\t}\r\n\t\t\tincidentHyperEdges.get(variable...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the window of the transformation.
public void setWindow(Rectangle.Double w) { this.setWindow(w.x, w.y, w.width, w.height); }
[ "public abstract void set_window(int window);", "public void setWindow(Window window) {\n this.window = window;\n window.setInput(input);\n }", "public void setWindow(Integer window) {\n this.window = window;\n }", "public void setWindowView(boolean wind)\n {\n window = wi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
LDC push a constant index from a constant pool (String, int, float, Class, java.lang.invoke.MethodType, or java.lang.invoke.MethodHandle) onto the stack
@Override public void visitLdcInsn(Object o) { /* * log.add("constant from pool: " + String.valueOf(o)); Operation operation = new * Operation(Operation.OperationType.STRING_CONSTANT); operation.setValue("" + o); * operation.setDescription("constant from pool: " + String.valueOf(o...
[ "public abstract void resolveConstant(Constant[] pool) throws IOException;", "@Override\n public void visitProgramClass(ProgramClass programClass)\n {\n programClass.constantPoolEntriesAccept(\n new ConstantTagFilter(ClassConstants.CONSTANT_InvokeDynamic,\n this));\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the number of webhooks associated with a specific user
private synchronized int webhookCount(String clientId) { if (!clientWebhooks.containsKey(clientId)) clientWebhooks.put(clientId, 0); return clientWebhooks.get(clientId); }
[ "public int getWallItemsCount(String userUuid);", "String getNotificationCount(Long userId) throws JsonProcessingException;", "public int getWallItemsCount(String userUuid, ProfilePrivacy privacy);", "public Map<String, Integer> findHistoryItemCountsForWebHookConfigId(String webhookId);", "public long count...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets whether itinerary leg is a walk or not.
public boolean isWalk() { return journeyLegType().equals(ItineraryLegType.WALK); }
[ "public boolean isWalkway(){\n\t\treturn (cellType == CellType.WALKWAY);\n\t}", "public boolean isAbleToWalk();", "public boolean isWalkable();", "public boolean isWalkable() {\n \t\treturn ((data[MapBlock.BLOCK_SIZE - 1] & this.walkableBit) != 0);\n \t}", "public boolean isWalkable() {\n return type != ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleBusinessLogicLayer" $ANTLR start "entryRuleBusinessLogicContent" InternalMyDsl.g:2081:1: entryRuleBusinessLogicContent returns [EObject current=null] : iv_ruleBusinessLogicContent= ruleBusinessLogicContent EOF ;
public final EObject entryRuleBusinessLogicContent() throws RecognitionException { EObject current = null; EObject iv_ruleBusinessLogicContent = null; try { // InternalMyDsl.g:2081:61: (iv_ruleBusinessLogicContent= ruleBusinessLogicContent EOF ) // InternalMyDsl.g:2082...
[ "public final EObject entryRuleBusinessLogicLayer() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleBusinessLogicLayer = null;\n\n\n try {\n // InternalMyDsl.g:2020:59: (iv_ruleBusinessLogicLayer= ruleBusinessLogicLayer EOF )\n // InternalMyDsl.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns linear equivalent stress name.
private String getLinearName(LinearEquivalentStress stress, XYSeriesCollection dataset) { // initialize name String name = ""; // include spectrum name if (input_.getIncludeSpectrumName()) { name += stress.getParentItem().getParentItem().getParentItem().getName() + ", "; } // include STF file name i...
[ "private String getFastLinearName(FastLinearEquivalentStress stress, XYSeriesCollection dataset) {\n\n\t\t// initialize name\n\t\tString name = \"\";\n\n\t\t// include spectrum name\n\t\tif (input_.getIncludeSpectrumName()) {\n\t\t\tname += stress.getParentItem().getParentItem().getName() + \", \";\n\t\t}\n\n\t\t//...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this will print the minimum weight or the wrestler
public int minWeight(ArrayList<WWE>wwe) { int minW = wwe.stream().collect(Collectors.summarizingInt(WWE::getWeight)).getMin(); return minW; }
[ "public void printWeight()\n {\n // put your code here\n System.out.print(\"\"+weight); \n }", "public void printWeight(){\n\t\tSystem.out.printf(\"Cell [%d][%d] weight = %d\\n\",position[0],\n\t\t\t\tposition[1],weight);\n\t}", "java.lang.String getTotalWeight();", "public void SmallerList...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Writes the configuration data from the Dictionary to the given OutputStream. This method writes at the current location in the stream and does not close the outputstream.
public static void write(OutputStream out, Dictionary properties) throws IOException { BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(out, ENCODING)); for (Enumeration ce = orderedKeys(properties); ce.hasMoreElements(); ) { String key = (String) ce.nextElement(); ...
[ "public void writeToConfigFile() {\n if(properties == null) {\n return;\n }\n\n properties.put(\"MAN-LATITUDE\", String.valueOf(Location.getMan_latitude()));\n properties.put(\"MAN-LONGITUDE\", String.valueOf(Location.getMan_longitude()));\n properties.put(\"CURRENT-DES...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Reads the response from the Egree service. This will validate that the response code is valid before it tries to read the entity data. If this failed, an exception will be thrown indicating what error was seen on the Egree service side. This will consume the entity and close the response connection.
private byte[] readAndClose(CloseableHttpResponse response) throws EgreeServiceException, IOException { try { int returnCode = response.getStatusLine().getStatusCode(); logger.debug("Return code is " + returnCode); if (returnCode != HTTP_OK) { Ser...
[ "protected T readResponse(Response response) throws IOException, RequestException {\n\t\tif (response == null) {\n\t\t\treturn null;\n\t\t}\n\t\tint status = response.code();\n\t\tResponseBody body = response.body();\n\t\tString content = null;\n\t\tif (body != null) {\n\t\t\tcontent = body.string();\n\t\t}\n\t\tif...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an object that takes a user input for vector calculations
public static void main(String[] args) { String a = "Input x and y values to begin: "; String b = "Input your x values"; System.out.println(a + b); Scanner scan = new Scanner(System.in); double vectorValue = scan.nextDouble(); MyVector<Double> vectors = new MyVector<Double>(); // double x = vect...
[ "public abstract void calculateVectors();", "public static void vectorScenario() throws IOException {\n \tSystem.out.println(\"Enter a vector, accepted values are 0 and 1\");\n\t\tString input = sc.nextLine();\n\t\tinput = input.replace(\" \", \"\");\n\t\tList<Integer> vector = VectorUtils.stringToIntegerList(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles MPGroup ADD operations. Supports addition of one or more unicast GRIs to an existing linkdisjoint set of paths. Group GRIs MUST begin with string "MP" as they are treated as Multipath reservations by query/cancel/modify/etc methods. IF possible, a new linkdisjoint path will be added to the group from the same s...
protected String addToGroup(String groupGRI, MultipathOSCARSClient mpClient, int numPathsToAdd) { // Ensure that groupGRI is a valid MP-GRI // ArrayList<String> groupList = new ArrayList<String>(); ArrayList<SubrequestTuple> allSubrequests; groupList.add(groupGRI); allSubrequests = mpClient.listGroupMembers(...
[ "private void addGroup() {\n\n if(clientSession.isTeacherRole())\n return;\n\n LinkedTreeMap groupMap = (LinkedTreeMap) packet.getArgument(\"group\");\n\n Group group = Group.parse(groupMap);\n\n if(clientDatabase.addGroup(group)) {\n\n groupsList(true);\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialise this Glob with the specified FileSystemInterface.
public Glob(FileSystemInterface fs) { this.fs = fs; }
[ "public Glob() {\n this(FileSystemInterface.fsInstance);\n }", "@SuppressWarnings(\"ConstantConditions\")\n IgfsImpl(IgfsContext igfsCtx) throws IgniteCheckedException {\n assert igfsCtx != null;\n\n this.igfsCtx = igfsCtx;\n\n cfg = igfsCtx.configuration();\n log = igfsCt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to test the CSVReader SetDataSet() method and returns a Test object containing the test tile, Class being tested, method being tested,test description, Input data expected output, if the test has been run and if the test is passed.
public Test TestsetDataSet(boolean run){ Test theTest = new Test( "Testing if you can set the DataSet",//Test Title CLASSNAME,//Class Name "setDataSet",//Method Being Tested "A test to see if the you can set the DataSet in the class", //Des...
[ "public Test TestParseFile(boolean run){\n Test theTest = new Test(\n \"Testing if ther class can parse the file\",//Test Title\n CLASSNAME,//Class Name\n \"ParseFile\",//Method Being Tested\n \"A test to see if the Class can read a file and...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
var_type > FLOAT | INT
public boolean var_type() { if (lexer.token != Symbol.FLOAT && lexer.token != Symbol.INT) { return false; } lexer.nextToken(); return true; }
[ "public void visitVarIntegerType(VarIntegerType varIntegerType);", "public abstract AnyInt asAnyInt();", "public abstract AnyFloat asAnyFloat();", "IntegerValueType getIntegerValue();", "public final void mRANGE_OR_INT_OR_FLOAT_OR_DOUBLE() throws RecognitionException {\n try {\n int _type ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests for nil "GetAllowedCategoryTreeResult" element
public boolean isNilGetAllowedCategoryTreeResult() { synchronized (monitor()) { check_orphaned(); com.cdiscount.www.CategoryTreeMessage target = null; target = (com.cdiscount.www.CategoryTreeMessage)get_store().find_element_user(GETALLOWEDC...
[ "public void setNilGetAllowedCategoryTreeResult()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.cdiscount.www.CategoryTreeMessage target = null;\n target = (com.cdiscount.www.CategoryTreeMessage)get_store().find_element_user(GE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the fridayStartTime1 value for this Account.
public void setFridayStartTime1(java.lang.String fridayStartTime1) { this.fridayStartTime1 = fridayStartTime1; }
[ "public void setFridayEndTime1(java.lang.String fridayEndTime1) {\n this.fridayEndTime1 = fridayEndTime1;\n }", "public void setSaturdayStartTime1(java.lang.String saturdayStartTime1) {\n this.saturdayStartTime1 = saturdayStartTime1;\n }", "public java.lang.String getFridayStartTime1() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get state of music player
public MusicState getState() { return this.state; }
[ "public void getState(){\n\t\tif(hasLibrary){\n\t\t\tupdatePlayer(new MusicMessage(MusicMessage.Action.GET_PLAYER_STATE));\t\n\t\t}\n\t}", "@Override\n public PlaybackState getPlaybackState() {\n return musicProvider.getPlaybackState();\n }", "PortableMusic getMusicPlaying();", "public PlayerStat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get a celebrity (Person) based on a N number of people
public Person findCelebrity(Set<Person> people) throws CelebrityFinderException;
[ "@Override\n public Person findCelebrity(Set<Person> people) throws CelebrityFinderException {\n if (people.size() < 2)\n throw new CelebrityFinderException(\"Party must have more than one person\");\n Deque<Person> possibleCelebrities = new ArrayDeque<>();\n // Step 1 :Push all p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns the victory screen days bar
public static Image getDays(){ return days; }
[ "public float getDayOpacity() {\r\n //Gdx.app.debug(\"Clock\", \"h: \" + (24f * (seconds / 60f)));\r\n if (dayOpacity < 0.25) {\r\n return 0;\r\n } else if (dayOpacity < 0.5) {\r\n return (dayOpacity - 0.25f) / 0.25f;\r\n } else {\r\n return 1;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle a search request. Assume canceled orders should still be listed. Assume username exists in our database.
public synchronized static String search(String username, String tu) { if (!user_orders.containsKey(username)) { return String.format("No order found for %s", username); } String response = ""; for (String order : user_orders.get(username)) { response += String....
[ "private void handleSearch() {\n if (thisUser == null) {\n // Current user hasn't bee retrieved so ignore search command for now.\n return;\n }\n if (allExpAdapter == null) {\n // The first experiment list hasn't even be made yet! Ignore command.\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
First task to be executed based on its score also known as timestamp
@SuppressWarnings("unchecked") private String findFirstTask(RedisOperations ops) { Set<byte[]> res = (Set<byte[]>) ops.execute(new RedisCallback() { @Override public Object doInRedis(RedisConnection redisConnection) throws DataAccessException { return redisConnection....
[ "public int getOneScheduledTaskExecuteTime(){\n if(tasks.isEmpty()) //if there is no scheduled task yet, return -1\n return -1;\n \n Random rd = new Random();\n sortExecuteTime();\n int rdNumber = rd.nextInt(sortedList.size());\n return sortedLis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
gets the type of week the class is held in (odd/even/every week)
public String getClassWeek(){ return classWeek; }
[ "int getWeek();", "com.czht.face.recognition.Czhtdev.Week getWeekday();", "boolean getWeek6();", "DayOfWeek getUserVoteSalaryWeeklyDayOfWeek();", "boolean getWeek7();", "boolean getWeek1();", "boolean getWeek2();", "boolean getWeek5();", "boolean getWeek3();", "public Integer getWeek() {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the adjusted age of a mob. If relative age is on, and the mob recently tageted a player, the delta ticks will be returned. Otherwise, the regular getTicksLived() will be used.
public int adjustedAge(Entity entity) { if (lastTargeted.containsKey(entity.getUniqueId())) { return entity.getTicksLived() - lastTargeted.get(entity.getUniqueId()); } else { return entity.getTicksLived(); } }
[ "public int getAge() {\r\n\t\treturn mAgeRoundUnits / ROUNDUNITS_PER_DAY;\r\n\t}", "public long age() {\n if (startTime == 0) {\n return 0;\n } else {\n return (System.currentTimeMillis() - this.startTime) / 1000;\n }\n }", "public int howOld(){\r\n \r\n \t Date...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
MyIDictionary typEnv1 = first.typecheck(typeEnv); MyIDictionary typEnv2 = snd.typecheck(typEnv1); return typEnv2;
@Override public MyIDictionary<String, Type> typecheck(MyIDictionary<String,Type> typeEnv) throws TypecheckException { return second.typecheck(first.typecheck(typeEnv)); }
[ "@Override\r\n public MyIDictionary<String, Type> typecheck(MyIDictionary<String, Type> typeEnv) throws MyException {\n return snd.typecheck(first.typecheck(typeEnv));\r\n }", "public static void compareTs(TypeSystem t1, TypeSystem t2) {\n TypeSystemImpl ts1 = (TypeSystemImpl) t1;\n Typ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the flowPane for the Exception Help
public static FlowPane getFlowPane(ExceptionHelp ehelp, Linker linker) { FlowPane fp = new FlowPane(); Label lbl = new Label(Translator.translate(ehelp.getI18nHint())); Hyperlink link = new Hyperlink(Translator.translate("help")); fp.getChildren().addAll(lbl, link); link.setOnAction((evt) -> { ...
[ "public FlowPane makeHelpPane(String helpText) {\n\t\tFlowPane pane = new FlowPane();\n\t\tpane.setStyle(\"-fx-background-color: #90EE90;\");\n\t\tLabel labelOne = new Label(helpText);\n\t\tpane.getChildren().add(labelOne);\n\t\treturn pane;\n\t}", "public final static JComponent createErrorPanel(final Resources ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method checks how many players are still in the game. In the checkBeads() method, a player who had lost all his beads had been marked as out of the game. So this method just needs to perform a check on the status of the players. If all the players are marked as out of the game, that means they all lost all their b...
public String checkPlayersStatus() { String message = ""; int numberOfPlayersAlive = this.getNumberOfPlayersAlive(); if (numberOfPlayersAlive == 0) { gameOver = true; // The winner is the one who moved the bar winner = players[playerTurn]; message...
[ "public static void checkWinner() {\r\n int[] hands = new int[5];\r\n int i = 0;\r\n //Evaluates the CPUs' final hands\r\n for (i = 0; i < NUM_PLAYERS; i++) {\r\n if (players[i].status == 1) {\r\n players[i].evaluate(board, round);\r\n hands[i] = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the city of this announcement.
@Override public void setCity(java.lang.String city) { _announcement.setCity(city); }
[ "public void setCity(final String city)\n {\n this.city = city;\n }", "public void setCity(String c)\n {\n address.setCity(c);\n }", "public void setCity(String s) {\n this.city = s;\n }", "public void setCity(java.lang.String city)\n {\n synchronized (monitor())\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////// UTIL /////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////// Converts a string to an enum to all...
private Specials.TypeOfSpecial stringToEnum(String string) { switch(string) { case "ATTACK": return Specials.TypeOfSpecial.ATTACK; case "HEALTH": return Specials.TypeOfSpecial.HEALTH; case "DEFENSE": return Specials.TypeOfSpecial.DEFENSE; default: return null; ...
[ "public static NPCType toEnum(String s){\r\n for(NPCType type: NPCType.values()){\r\n if(type.toString().equals(s)){\r\n return type;\r\n }\r\n }\r\n \r\n throw new InvalidParameterException(\"NPC Type \" + s + \" is not a valid type!\");\r\n }", "public Enum parseEnum(String input){...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tears down the poster bytes stream. Called on network thread.
private void cleanup() { if (mPosterBytes != null) { try { mPosterBytes.close(); } catch (IOException ignored) { // Ignored. } finally { mPosterBytes = null; } } }
[ "void stopDownloader();", "public void teardown()\n {\n dgramSocket.close();\n }", "private void shutdown() {\n mMediaRecorder.reset();\n mMediaRecorder.release();\n mCamera.release();\n\n // once the objects have been released they can't be reused\n mMediaRecorde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests generic array creation with parameters of same type.
@Test public void testArrayCreation() { final String[] array = ArrayUtils.toArray("foo", "bar"); assertEquals(2, array.length); assertEquals("foo", array[0]); assertEquals("bar", array[1]); }
[ "@Test\n public void testArrayCreation() {\n final Integer[] integers = dummyCreator.create(new Integer[]{}.getClass());\n assertNotNull(integers);\n for (final Integer i : integers) {\n assertSame(Integer.class, i.getClass());\n }\n final int[] ints = dummyCreator.create(new int[]{}.getClass()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENEND:Idx GENFIRST:Superclass Here you can add code for customizing the Superclass BeanInfo. GENLAST:Superclass Gets the bean's BeanDescriptors.
@Override public BeanDescriptor getBeanDescriptor() { return getBdescriptor(); }
[ "public java.beans.BeanInfo[] getAdditionalBeanInfo() {\n\tjava.lang.Class superClass;\n\tjava.beans.BeanInfo superBeanInfo = null;\n\n\ttry {\n\t\tsuperClass = getBeanDescriptor().getBeanClass().getSuperclass();\n\t} catch (java.lang.Throwable exception) {\n\t\treturn null;\n\t}\n\n\ttry {\n\t\tsuperBeanInfo = jav...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column TB_CHECK_RECORD.PC_ID
public BigDecimal getPcId() { return pcId; }
[ "public Long getCockpitProjectId() {\r\n RemoteCustomFieldValue[] values = this.issue.getCustomFieldValues();\r\n\r\n for (RemoteCustomFieldValue value : values) {\r\n if (value.getCustomfieldId().trim().toLowerCase().equals(ConfigUtils.getIssueTrackingConfig().getDirectProjectIDField().trim()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Provide access to instance of SimpleRoot.
public static SimpleRoot getInstance() { return INSTANCE_SIMPLE_ROOT; }
[ "public Object getRoot() { return root;}", "public static Root getUniqueRootInstance()\r\n\t{\r\n\t\tif(uniqueRootInstance == null)\r\n\t\t{\r\n\t\t\tuniqueRootInstance = new Root();\r\n\t\t}\r\n\t\t\r\n\t\treturn uniqueRootInstance;\r\n\t}", "public Root() {\n super(null);\n }", "public Obj...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calls the provided SubclassMatchProcessor if classes are found on the classpath that extend the specified superclass.
public <T> FastClasspathScanner matchSubclassesOf(final Class<T> superclass, final SubclassMatchProcessor<T> subclassMatchProcessor) { getScanSpec().matchSubclassesOf(superclass, subclassMatchProcessor); return this; }
[ "boolean hasSuperclass(AbstractClass superclass);", "public <T> FastClasspathScanner matchSubinterfacesOf(final Class<T> superinterface,\n final SubinterfaceMatchProcessor<T> subinterfaceMatchProcessor) {\n getScanSpec().matchSubinterfacesOf(superinterface, subinterfaceMatchProcessor);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__AbstractMethod__Group__5" $ANTLR start "rule__AbstractMethod__Group__5__Impl" InternalMyDsl.g:7047:1: rule__AbstractMethod__Group__5__Impl : ( '}' ) ;
public final void rule__AbstractMethod__Group__5__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMyDsl.g:7051:1: ( ( '}' ) ) // InternalMyDsl.g:7052:1: ( '}' ) { // InternalMyDsl.g:7052:1: ( '}' ) ...
[ "public final void rule__AbstractMethod__Group__5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:7040:1: ( rule__AbstractMethod__Group__5__Impl )\n // InternalMyDsl.g:7041:2: rule__AbstractMethod__Group__5__Impl\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads all songs from the DB.
public List<Song> readAll() ;
[ "public List <Song> getAllSongs() throws IOException, DalException\n {\n return songDB.getAllSongs();\n }", "public static ArrayList<Song> getAll() {\n ArrayList<Song> songs = new ArrayList<>();\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn = DriverMan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A simple setter for the nextY field.
public void setNextY(int myNextY){ nextY = myNextY; }
[ "public int getNextY(){\r\n return nextY;\r\n }", "public void setY(double y) {\n this.y += y;\n }", "public void setY ( Integer y ) {\r\n\t\tgetStateHelper().put(PropertyKeys.y, y);\r\n\t\thandleAttribute(\"y\", y);\r\n\t}", "public int getNextY()\r\n\t{\r\n\t\t\r\n\t\treturn y + blocks...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the PartyMgr instance
public static PartyMgr getInstance() { return instance; }
[ "public PartyMgr() {\n instance = this;\n this.partyList = new ArrayList<>();\n this.partyInvites = new HashMap<>();\n }", "public static synchronized PartyService getInstance() {\n\t\tif (service == null){service = new PartyService();}\n\t\treturn service;\n\t}", "private Manager getMan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
addNew sets new object list to be rendered on html view
public String addNew() { todo = new Todo("", "", 3); form.setRendered(true); addCommand.setRendered(false); return null; }
[ "@Command\n\tpublic void addNew () {\n\t\tif (_selectedIndex >= 0) {\n\t\t\t_personModel.add(_selectedIndex+1, new Person(\"\", \"\", null));\n\t\t} else {\n\t\t\t_personModel.add(new Person(\"\", \"\", null));\n\t\t}\n\t}", "@ModelAttribute(\"newList\")\n public ShoppingList newList() {\n return new Sh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check to see if a given is annotateable. In the case of this class, an element is annotateable if it is a field, is static, and is nonprivate.
public boolean isAnnotateable(Element field) { //param is Element so it overrides method if (!field.getKind().isField()) { return false; } boolean isStatic = false; for (Modifier mod: field.getModifiers()) { if (mod == Modifier.STATIC) { isStatic = true; } else if (mod == Modifier.PRIVATE) { re...
[ "boolean isAnnotationDriven();", "boolean isAnnotationType();", "public boolean isAnnotation()\n {\n return (m_nFlags & ACC_ANNOTATION) != 0;\n }", "public abstract boolean isAnnotationProcessingEnabled();", "public boolean hasAnnotations()\n {\n return !_annotations.isEmpty...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Defines the optional (initial) tree path.
public void setInitialTreePath(String initialTreePath) { String[] selectedItemPath = initialTreePath.split(":"); if (null != selectedItemPath && 3 == selectedItemPath.length) { initialGroupId = selectedItemPath[0]; initialArtifactId = selectedItemPath[1]; initialVersi...
[ "protected TreePath getDefaultPath() {\r\n return jobsNodePath;\r\n }", "public void initPath() {\r\n\t\tpath = new Path();\r\n\t}", "public PathBuilder() {\n\t\tthis( null, true );\n\t}", "public void initPath(Path p) {\r\n\tpath = new Path(p);\r\n}", "public DefaultTreeItem(String... treeItemPat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the defect status.
public void setDefectStatus(String rallyStatus) { this.defectStatus = rallyStatus; }
[ "public void setStatus(String status) {\n\t\tthis.ticketStatus = status;\n\t}", "public void setStatus(CMnServicePatch.RequestStatus st) {\n status = st;\n }", "@Override\n\tpublic void setStatus(java.lang.String status) {\n\t\t_commitment.setStatus(status);\n\t}", "public void setStatusCd(int statu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the "IdentifierRequest" element
public com.cdiscount.www.IdentifierRequest getIdentifierRequest() { synchronized (monitor()) { check_orphaned(); com.cdiscount.www.IdentifierRequest target = null; target = (com.cdiscount.www.IdentifierRequest)get_store().find_element_user(IDENTIFIERREQUEST$0, 0);...
[ "public int getRequestID() {\n return requestID.getValue();\n }", "public com.cdiscount.www.IdentifierRequest addNewIdentifierRequest()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.cdiscount.www.IdentifierRequest target = null;\n target = (com....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Class constructor instance a SVList specifying separators
public CSVList() { super(sepReg, sep); }
[ "public CSVList(String svl)\n\t{\n\t\tsuper(svl, sepReg, sep);\n\t}", "public SLList(){\n sentinel = new Node(0000, null);\n size = 0;\n }", "public StarList ( Vector original_list ) {\r\n\t\tsuper(original_list);\r\n\t}", "Separated createSeparated();", "public MyList() {\n this(\"L...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when show flight selected.
private void onShowFlightSelected(boolean visible, int flightID) { XYPlot plot = getChart().getXYPlot(); XYSeriesCollection dataset = (XYSeriesCollection) plot.getDataset(); for (int i = 0; i < dataset.getSeriesCount(); i++) { SeriesKey key = (SeriesKey) dataset.getSeries(i).getKey(); if (key.getID() == fli...
[ "protected void doShowFirstFlight() {\n Flight ff1;\n if (FlightAppGUI.getCurrentFlightSchedule().isEmpty()) {\n AlertBox.display(\"First Flight\", \"Your current flight schedule is empty.\");\n } else {\n ff1 = FlightAppGUI.getCurrentFlightSchedule().showFirst();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This exists in all but the first item of each checkpoint file. .tensorflow.SavedSlice data = 2;
org.tensorflow.util.SavedSlice getData();
[ "org.tensorflow.util.SavedSliceOrBuilder getDataOrBuilder();", "org.tensorflow.util.SavedTensorSliceMeta getMeta();", "public int readSavedData(){\n\t\t\n\t\treturn 1;\n\t}", "public void checkpoint();", "void checkpoint() throws IOException;", "org.tensorflow.util.SavedTensorSliceMetaOrBuilder getMetaOrB...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check wether MR is configured to run in localmode
public boolean isLocalMode(Configuration conf);
[ "public boolean IsLocal() {\r\n\t\treturn BrickFinder.getDefault().isLocal();\r\n\t}", "boolean isLocalExecutionEnabled();", "public boolean hasIsLocalMultiplayer() {\n return isLocalMultiplayer != null;\n }", "public boolean hasIsLocalMultiplayer() {\n return game.isLocalMultiplayer != null;\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a String containing a sample color palette.
private static String sampleColors() { return COLOR_GRAY + "K" + COLOR_RED + "R" + COLOR_GREEN + "G" + COLOR_YELLOW + "Y" + COLOR_BLUE + "B" + COLOR_MAGENTA + "M" + COLOR_CYAN + "C" + COLOR_WHITE + "W" + COLOR_RESET; }
[ "public static String getRandomColor() {\n Random aRandom = new Random(System.nanoTime());\n String color = \"\";\n for (int j = 0; j < 3; j++) {\n int z = aRandom.nextInt(256);\n String val = Integer.toHexString(z).toUpperCase();\n color += val.length() == 1 ? ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ getObjectComponent() / (nonJavadoc)
@Override public Component getObjectComponent(int height, int width) throws NotImplementedException { throw new NotImplementedException(); }
[ "abstract java.awt.Component getComponent(java.lang.Object object);", "public NamedObj getComponent() {\n\t\treturn getContainer();\n\t}", "public ObjectReference getObject();", "public interface Component {\n\n /**\n * Generates the content of the component which is sent to the client for execution/render...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the repository name.
public void setRepositoryName(String repositoryName){ this.repositoryName = repositoryName; }
[ "public void setRepositoryName(@Nullable String name) {\n this.repositoryName = name;\n }", "public void setShRepositoryName(String val) {\n\n\t\tshRepositoryName = val;\n\n\t}", "@Override\n public UpdateRepositoryNameResult updateRepositoryName(UpdateRepositoryNameRequest request) {\n requ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Work with global hash table Register this line as the one stored under indxindex (0 = current, 1 = error).
private DocumentLine registerLine (int indx, DocumentLine line) { DocumentLine prev; CloneableEditorSupport es = pos.getCloneableEditorSupport (); DocumentLine[] arr = (DocumentLine[])assigned.get (es); if (arr != null) { // remember the previous prev = arr[ind...
[ "public abstract void setInDataStorage(int index, String line);", "public void ll(String label, Integer lineNo){\n //check if the map contains the key already (the label)\n //if not, add it, as well as it's corresponding line no.\n if(labelToLineNo.get(label) == null){\n ArrayList<Integer> temp = ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Resets the number of times all sequents in this Theory have been applied. TODO: this shouldn't be here. It should be in the tableau or the prover or something.
public void resetSequentTimesApplied() { // for (int i = 0; i < knowledgeBase.size(); ++i) // TODO: replace this with HashMap reference // ((KBSequent) knowledgeBase.get(i)).resetTimesApplied(); }
[ "public void reset() {\n reset(initialCount);\n }", "public static void resetEfficiency() {\n Sequence.efficiencyCounter = 0;\n }", "public void reset() \n {\n //reseting all private member variables\n totalTrialCount = 0;\n twoCount=0;\n threeCount=0;\n fourCount=0;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the map parameter instance => Settype.
Map<ParameterInstance, SetType> getInstanceSetTypes();
[ "public abstract EnumMap<bufferCommandParamTypeEnum, Class> getParamMap();", "java.util.Map<java.lang.String, com.google.spanner.v1.Type> getParamTypesMap();", "public String getMapType(){\n return type;\n }", "public String getMapTyp() {\n\t\treturn this.mapTyp;\n\t}", "public GMapType getMapType...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the standard deviation of the dataset stdDev = sqrt( (SIGMA(x_i x_bar)^2) / (n1) )
public float getSDev() { int sumStdError = 0; // SIGMA(x_i - x_bar) int size = rbt.size() - 1; float mean = getMean(); List<Integer> rbtArray = createArray(rbt.root); // calculate sumStdError for (int i = 0; i < rbtArray.size(); i++) { float gradeData...
[ "public double stddev(){\n if(elements.length == 0){\n System.out.println(\"The array is empty!\");\n return -1; // if the given array is empty return a negative number, because the minimum possible standard deviation is zero\n }\n double stdDev = 0;\n double mean =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return the vertex names in the original order with the string join inserted between each pair
public String vertexNames(String join) { String vert = " "; int i = 0; for(i = 0; i < n - 1; i++) { vert = vert + vertices[i].name + join; } if(i < n) { vert = vert + vertices[i].name; } return vert; }
[ "private String vertexNamesAndCoordsToString() {\n \n //make empty string\n String s = \"\";\n \n //add # of vertices & line break\n s += N + \"\\n\";\n \n //for loop to add names/coords to it\n for (int i = 0; i < arrayOfVertices.length; i++) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column t_charge.chargePatternId
public void setChargepatternid(Integer chargepatternid) { this.chargepatternid = chargepatternid; }
[ "public Integer getChargepatternid() {\n return chargepatternid;\n }", "public void setPatternId(java.lang.Integer value) {\n this.patternId = value;\n }", "public referential.store.v2.WeekPattern.Builder setPatternId(java.lang.Integer value) {\n validate(fields()[0], value);\n this.patt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The list of aggregation types that are not allowed for the calculated field. Valid values for this structure are COUNT, DISTINCT_COUNT, MIN, MAX, MEDIAN, SUM, AVERAGE, STDEV, STDEVP, VAR, VARP, and PERCENTILE.
public java.util.List<String> getNotAllowedAggregations() { return notAllowedAggregations; }
[ "public List<MetricAggregationType> supportedAggregationTypes() {\n return this.supportedAggregationTypes;\n }", "public AnalyticsAggregationType getAggregationTypeFallback() {\n if (hasAggregationType()) {\n return aggregationType;\n } else if (hasValueDimension() && value.getAggregationType...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ xmsoriginalfile: specification/sql/resourcemanager/Microsoft.Sql/stable/20211101/examples/ServerAutomaticTuningUpdateMax.json Sample code: Updates server automatic tuning settings with all properties.
public static void updatesServerAutomaticTuningSettingsWithAllProperties( com.azure.resourcemanager.AzureResourceManager azure) { azure .sqlServers() .manager() .serviceClient() .getServerAutomaticTunings() .updateWithResponse( ...
[ "public static void updatesServerAutomaticTuningSettingsWithMinimalProperties(\n com.azure.resourcemanager.AzureResourceManager azure) {\n azure\n .sqlServers()\n .manager()\n .serviceClient()\n .getServerAutomaticTunings()\n .updateWithResponse(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds fade in actions to map border actor. After map border actor had done fade in action pointers actions will be added.
private void fadeInActions() { // fade outs all point actors fadeOutAllPointActors(); // fades outs map borders and fades in and after this fades in point actors mapBorderActor.addAction( Actions.sequence( Actions.fadeOut(0f), ...
[ "protected void enableActionFade()\n {\n Action action = new Action(\"Fade\");\n action.addOutputParameter(new ParameterRelated(\"Value\", iPropertyFade));\n iDelegateFade = new DoFade();\n enableAction(action, iDelegateFade);\n }", "protected void enableActionSetFade()\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/TC2032:Verify that the user has the ability to edit the values of New Targets column for all the fields of each controllable component listed and the percentage must be positive and can be up to the hundredths decimal place
@Test() public void foodOverBase_US1111_TC2032() throws InterruptedException, RowsExceededException, BiffException, WriteException, IOException, ParseException { /** Variable Section : **/ FoodOverBasePage foodOverBasePage; AbstractTest.tcName="foodOverBase_US1111_TC2032"; String password = LoginTestData.pa...
[ "private boolean checkOtherValuesTable() {\n\t\tboolean cont = true;\n\t\tAbstractTableModel tm = view.getOtherValuesTableModel();\n\t\tfloat recency = (float) Float.valueOf((String)tm.getValueAt(0,1));\n\t\tfloat common = (float) Float.valueOf((String)tm.getValueAt(1,1));\n\t\t//float cscLike = (float) Float.value...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Valid characters for Kafka topics are the ASCII alphanumerics, '.', '_', and ''
static boolean containsInvalidCharacters(String topic) { Matcher matcher = INVALID_CHARS_PATTERN.matcher(topic); return matcher.find(); }
[ "@Test\n\tpublic void caseNameWithSpecialChar() {\n\t\tString caseName = \"le@d\";\n\t\ttry {\n\t\t\tCaseManagerValidator.isCharAllowed(caseName);\n\t\t} catch (ValidationException e) {\n\t\t}\n\t}", "public static boolean regularTopicFormat(String topic) {\n Platform platform = Platform.getInstance();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for property tableModified.
public void setTableModified(boolean tableModified) { this.tableModified = tableModified; }
[ "public boolean isTableModified() {\r\n return tableModified;\r\n }", "public boolean isTableNameModified() {\n return tableName_is_modified; \n }", "public void setModified();", "public interface ITableModifiedListener {\n\t\t\n\t\t/**Called whenever the table content is modified. \n\t\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an unbuffered reader that uses UTF8 encoding
static public Reader asUTF8(InputStream in) { return new InputStreamReader(in, StandardCharsets.UTF_8); }
[ "public Utf8InputStreamReader(InputStream in) {\n this.in = in;\n this.cd = Charsets.UTF_8.newDecoder();\n this.cb.limit(0);\n }", "static public BufferedReader asBufferedUTF8(InputStream in) {\n // Always buffered - for readLine.\n return new BufferedReader(asUTF8(in), BUFSI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 2 / 1 covered goal: 1 org.jsecurity.util.AntPathMatcher.setPathSeparator(Ljava/lang/String;)V: I4 Branch 1 IFNULL L80 true
@Test public void test2() throws Throwable { AntPathMatcher antPathMatcher0 = new AntPathMatcher(); antPathMatcher0.setPathSeparator((String) null); }
[ "@Test\n public void test3() throws Throwable {\n AntPathMatcher antPathMatcher0 = new AntPathMatcher();\n antPathMatcher0.setPathSeparator(\"-&ma\");\n boolean boolean0 = antPathMatcher0.doMatch(\"-&ma\", \"-&ma\", true);\n assertEquals(true, boolean0);\n }", "@Test\n public void test28(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prints out all strings in inputs.
public static void print(String[] inputs) { for (int i=0; i<inputs.length; i++){ System.out.println(inputs[i]); } }
[ "private static void showFormattedInput(List<String> input){\n System.out.println(\"\\nInput:\\n\");\n for(int i = 0; i < input.size(); i++){\n System.out.println(input.get(i) + \"\\n\");\n }\n }", "public void print() {\n\tString completeInput = byteStream.toString();\n\n\tif (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update the persistent category.
public void update(Category persistentCategory);
[ "void updateCategory(Category category);", "void updateCategory(String category){}", "@Override\n public FoodCategory updateFoodCategory(FoodCategory foodCategory) {\n \t// Connecting to database\n \tConnection con = jdbcConnectionPool.takeOut();\n \tString sqlQuery = \"UPDATE food_category SET name...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Since flavor is optional, let's return a null string if flavor is null
public String getFlavor(){ if(flavor == null){return "";} else{return flavor;} }
[ "public String getFlavor(){\n return flavor;\n }", "public String getFlavor() {\n \t\treturn flavor == null ? \"tooling\" : flavor; //$NON-NLS-1$\n \t}", "public String getFlavor ( ) {\r\n\t\treturn flavor;\r\n\t}", "public String getFlavorName(){\n\t\treturn flavorName;\n\t}", "public java.lang.S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles caret change events.
protected void handleCaretEvent( CaretEvent event ) { // See if any text selected. // dot will equal mark if not. int dot = event.getDot(); int mark = event.getMark(); // Enable or disable menu items to match // selection status. enableEditMenuItems( dot != mark ); /...
[ "public void caretStatusChanged(JCaret caret);", "public void caretUpdate(final CaretEvent evt) {\n // Now we can assume at least one error.\n updateHighlight(evt.getDot()); // invokeLater unnecessary here; this method runs in the event thread!\n }", "protected void handleCursorPositionChanged () {\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns whether this traffic action is an exact match to the traffic action given in the argument.
boolean exactMatch(ExtTrafficActionRedirectToIp trafficAction);
[ "public final boolean matchAction(String action) {\n return hasAction(action);\n }", "boolean exactMatch(FlowRule rule);", "public boolean isExactMatch () { return exactMatch; }", "public boolean isExactMatch() {\n return exactMatch;\n }", "public static boolean isAccept (String action)\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return if, when going from cb1 to cb2, this is possible looking at the orientation of the blocks.
private boolean haveMatchingOrientations(ConveyorBlock cb1, ConveyorBlock cb2) { Orientation or1 = cb1.getOrientation(); Orientation or2 = cb2.getOrientation(); if (cb1 instanceof BendLeftConveyorBlock) { or1 = or1.rotateLeft(); } else if (cb1 instanceof BendRightConveyorBlock) { or1 = or1.rotateRight(...
[ "public boolean connectedRotate(Path p1, Path p2){\n\t\tif((p1.getExit()==p2.getPos()&&p2.getExit()==p1.getPos())||(p1.getEntry()==p2.getPos()&&p2.getEntry()==p1.getPos()))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}", "private boolean isCovering(Card c1, Card c2) {\n\n Posn p1 = c1.getPosn();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }