query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
This method creates a new graph of linked jobs, starting with a start job. The data of the provider is not checked for the type of the job. | public static IBuildingJob createLinkedJobs(BuildingJobDataProvider provider, String startJob) {
if (startJob == null) {
throw new IllegalArgumentException("Start job is null.");
}
Hashtable<String, SimpleBuildingJob> converted = new Hashtable<>();
fillHashtableWithUnlinked(provider, startJob, converted);
... | [
"public void createJobs(){\n \t\n \tjobSimulator.simulateJobs(this.list, this.timeToPlay);\n\n }",
"public void createJob(List<Job> job);",
"private void startJobs() {\n List<JobProfile> profileList = getJobConfDb().getAcceptedJobs();\n for (JobProfile profile : profileList) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates class from interface and prints it; | private void generateInterface() {
if (clazz.getPackage() != null) {
writer.println("package " + clazz.getPackage().getName() + ";");
writer.println();
}
writer.println("class " + className + "Impl implements " + clazz.getCanonicalName() + " {");
HashSet<Method> m... | [
"private GeneratedClass generateInterface(MetaModule module){\n\t \n\t\tGeneratedClass clazz = new GeneratedClass();\n\t\tstartNewJob(clazz);\n\t\tappendGenerationPoint(\"generateInterface\");\n\t\tclazz.setTypeComment(CommentGenerator.generateJavaTypeComment(getInterfaceName(module), this));\n \n\t clazz.set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the user created of this temp crew list. | @Override
public void setUserCreated(java.lang.String userCreated) {
_tempCrewList.setUserCreated(userCreated);
} | [
"public void setCreatedUser(String value) {\n this.createdUser = value;\n }",
"@Override\n\tpublic java.lang.String getUserCreated() {\n\t\treturn _tempCrewList.getUserCreated();\n\t}",
"@Override\n\tpublic void setUserCreated(java.lang.String userCreated) {\n\t\t_tempNoTiceShipMessage.setUserCreated(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests whether constraints with undefined variables are ignored. | @Test
public void testUndefinedVariableConstraints() {
reasoningTest("UndefinedVariableConstraints.ivml", 0);
} | [
"public boolean canBeUndefined();",
"private boolean checkEarlyVariables() {\n Iterator<Variable> enumeration = earlyVariables.iterator();\n while (enumeration.hasNext()) {\n Variable variable = enumeration.next();\n if (!variable.isBound()) {\n return false;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the size of the grid | public int getSize(){
return(grid.length*grid.length);
} | [
"public int getSize() {\n\t\treturn grid.length;\n\t}",
"@Override\r\n\tpublic int getSize() {\n\t\treturn gridSize;\r\n\t}",
"public abstract int getGridWidth();",
"public int getWidth()\n\t{\n\t\treturn grid[0].length;\n\t}",
"public String getGridDimensions() {\n return settings.getGridWidth() + \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the number of Bids left on the Auction. | public Integer getBidsLeft() {
return this.bidsLeft;
} | [
"public int getNumBids(){ \n return bids.size(); \n }",
"public int getNumofbids() {\n return numofbids;\n }",
"public long getCountNotLeft() {\r\n return countNotLeft;\r\n }",
"public int getNumBooksBorrowed() {\n return borrowedBooks.size();\n }",
"public int getNumberB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for CHANGE_NOTE using the alias name ChangeNote | public String getChangeNote() {
return (String)getAttributeInternal(CHANGENOTE);
} | [
"public String getNote() {\n return (String) getAttributeInternal(NOTE);\n }",
"public String getNote() {\n return (String)getAttributeInternal(NOTE);\n }",
"public String getNote () {\n try {\n return getValueOfQualifier (\"note\");\n } catch (InvalidRelationException e) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
create fabric push mpls flow | private Flow createFabricFlowPushMpls(short tableId, int priority, MacAddress sourceMac,
MacAddress destMac, long tag, short gotoTableId) {
// create fabric flow
FlowBuilder fabricFlow = new FlowBuilder() //
.setTableId(tableId) //
.setFlowName("Fabric Push Mpls:"+tag);
... | [
"Flows createFlows();",
"public interface Sender {\n\n /**\n * 초기화\n *\n * @param pushSenderJob sender 설정 정보\n */\n void init(PushSenderJob pushSenderJob);\n\n /**\n * 비동기 작업 처리\n *\n * @param pushItem 예약 정보\n */\n void doTask(PushContents pushItem);\n}",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Instituto Faculdade' attribute. If the meaning of the 'Instituto Faculdade' attribute isn't clear, there really should be more of a description here... | String getInstituto_Faculdade(); | [
"public String getFabOunce() {\n return (String)getAttributeInternal(FABOUNCE);\n }",
"public int getFac_id_i() {\n return fac_id_i;\n }",
"public String getFaculty() {\n return faculty;\n }",
"public String getFacility() { return facility; }",
"public String getFaculty() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allows a Player to purchase a Mule from the store. Adds a Mule and subtracts money. | public void buyMule(Mule.Configuration type) {
if (verifyAvailability(4, 1)) {
int price;
if (type == Mule.Configuration.FOOD) {
price = 125;
} else if (type == Mule.Configuration.ENERGY) {
price = 150;
} else if (type == Mule.Conf... | [
"public void sellMule() {\n Player curr = Controller.players.get(Controller.currentPlayerTurn);\n if (curr.getMule() != null) {\n Mule currMule = curr.getMule();\n int sellback;\n if (currMule.getType() == Mule.Configuration.ENERGY) {\n sellback = 150;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a workout session from the database, if it exists | void removeWorkoutSession(WorkoutSession workoutSession); | [
"public void removeWorkout() {\n Workout w = getSelectedWorkout();\n if (w != null) { \n if (MessageDialog.showYesNoQuestion(\"Opravdu si přejete smazat tento trénink?\")) { \n MainApp.getEntityManager().getTransaction().begin();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/createSite() Post api/site JSON instance of site to be created JSON array of all site instances | @POST
@Path("/")
@Consumes("application/json")
public List<Site> createSite(Site newSite){
System.out.println("help");
return siteDaoObj.createSite(newSite);
} | [
"CreateSiteResult createSite(CreateSiteRequest createSiteRequest);",
"@PostMapping(\"/site-infos\")\n @Timed\n public ResponseEntity<SiteInfo> createSiteInfo(@RequestBody SiteInfo siteInfo) throws URISyntaxException {\n log.debug(\"REST request to save SiteInfo : {}\", siteInfo);\n if (siteInf... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public int insert(int i, int k, String s) inserts an item to the ith position in list with key k and info s. returns 1 if in otherwise return 0. | public int insert(int i, int k, String s) //O(log(n))
{
int output = this.lst.rankinsertion(i, k, s); //see details in class AVLTree
if(output == 0)
this.length++; //we added one element
return output;
} | [
"public void insert(int k) {\n \t\n \tif (! this.member(k)) {\n \t\t// increases the length of this set as needed\n \t\tif (this.size() == this.SIZE) {\n \t\t\tthis.resize();\n \t\t}\n \t\tthis.S[this.next] = k;\n \t\tthis.next++;\n \t}\n \n }",
"public int insert(int i, int k... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The DAO to interact with event related schema. | public interface EventDAO {
/**
* Insert the event into the schema.
* @param eventsList
*/
public void insert(List<Event> eventsList);
public void setDataSource(DataSource ds);
/**
* A factory class to get the Implementation.
*
*/
public static class Factory {
/**
* Create a {@link EventDAO}... | [
"public EventDao() {\n\t\tsuper(de.piratenpartei.berlin.ldadmin.dbaccess.generated.tables.Event.EVENT, de.piratenpartei.berlin.ldadmin.dbaccess.generated.tables.pojos.Event.class);\n\t}",
"public interface EventDao {\n\n /**\n * Insert the event into the database.\n *\n * @param event the event to ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ActionAnd__Group_1__2" $ANTLR start "rule__ActionAnd__Group_1__2__Impl" ../com.blasedef.onpa.ONPA.ui/srcgen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:5338:1: rule__ActionAnd__Group_1__2__Impl : ( ( rule__ActionAnd__RightAssignment_1_2 ) ) ; | public final void rule__ActionAnd__Group_1__2__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:5342:1: ( ( ( rule__ActionAnd__RightAssignment_1... | [
"public final void rule__And__Group_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:7165:1: ( ( ( rule__And__RightAssignment_1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Boolean to determine if this entity has at least one distribution online element. | public boolean hasDistributionOnline() {
return this.hasDistributionOnline;
} | [
"protected final boolean hasDemand() {\n\t\t\treturn this.demand.get() > 0;\n\t\t}",
"public boolean isSetUse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(USE$4) != 0;\n }\n }",
"public boolean hasElement() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Simulation of the Tournament. The simulation is as follows: There are exactly 4 teams. A team plays 2 matches with every other team. There will hence be 12 matches. The first match will be played in stadium at index 0. The next match will be played in the stadium at the next index If there is no stadium at the next ind... | public boolean simulateTournament(); | [
"public boolean simulateTournament() {\n\t\tif(!this.verifyTournamentValidity()) {\n\t\t\treturn false;\n\t\t}\n\t\tint stadiumIndex = 0;\n\t\tint matchWinningTeamNumber;\n\t\tfor(int i = 0; i<NUMBER_OF_TEAMS; i++) {\n\t\t\tfor(int j = 0; j<NUMBER_OF_TEAMS; j++) {\n\t\t\t\tif(i==j) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
//GENEND:|170getter|2| //GENBEGIN:|170action|0|170preAction Performs an action assigned to the selected list element in the lstAdministracao component. | public void lstAdministracaoAction() {//GEN-END:|170-action|0|170-preAction
// enter pre-action user code here
String __selectedString = getLstAdministracao().getString(getLstAdministracao().getSelectedIndex());//GEN-BEGIN:|170-action|1|173-preAction
if (__selectedString != null) {
i... | [
"public List getLstAdministracao() {\n if (lstAdministracao == null) {//GEN-END:|170-getter|0|170-preInit\n // write pre-init user code here\n lstAdministracao = new List(\"Administra\\u00E7\\u00E3o do sistema\", Choice.IMPLICIT);//GEN-BEGIN:|170-getter|1|170-postInit\n lstAd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
POST /tierss : Create a new tiers. | @PostMapping("/tierss")
@Timed
public ResponseEntity<Tiers> createTiers(@Valid @RequestBody Tiers tiers) throws URISyntaxException {
log.debug("REST request to save Tiers : {}", tiers);
if (tiers.getId() != null) {
return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAl... | [
"@PostMapping(\"/tablettes\")\n public ResponseEntity<Tablette> createTablette(@RequestBody Tablette tablette) throws URISyntaxException {\n log.debug(\"REST request to save Tablette : {}\", tablette);\n if (tablette.getId() != null) {\n throw new BadRequestAlertException(\"A new tablett... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new panel agenda. | public PanelAgenda() throws ParseException
{
CardLayout gestionnaireCartes = new CardLayout();
setLayout(gestionnaireCartes);
leAgenda = new Agenda();
leAgenda.ajout(new Evenement(new Date(5, 7, 1741), "Tourte", "Morrowind"));
leAgenda.ajout(new Evenement(new Date(13, 4, 2009), "Terezi", "Skaia"));
... | [
"public AgendaViewPanel() {\n\n\n\t\t// creating the AgendaViewPanel\n\t\tJPanel panel = new JPanel();\n\t\tagendaDetail = new JTextArea(); // where the agenda is displayed\n\n\t\tagenda = \"\"; // the string to save all the events\n\t\tagendaDetail.setText(agenda);\n\t\tpanel.add(agendaDetail);\n\n\t\t// Make pane... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the instance of the AppClient singleton object. | public static AppClient getInstance() {
return instance;
} | [
"public static App getInstance() {\n return applicationInstance;\n }",
"public static Client getInstance() {\n if(client == null) {\n client = new Client();\n }\n return client;\n }",
"public static Client getInstance() {\n\t\treturn INSTANCE;\n\t}",
"public static... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column tp_photo_album_ad.ori_price | public void setOriPrice(double oriPrice) {
this.oriPrice = oriPrice;
} | [
"public void setPrice(double price)\n {\n this.price = price;\n }",
"public void setPrice() {\n this.price = 37.99;\n }",
"protected void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price)\n {\n setPriceOrder(price);\n }",
"public v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the plugin implementation of a IClassLoader so invocations of external code are made possible. | public IClassLoader getClassLoader(); | [
"public interface PluginClassLoader {\n}",
"PluginLoader getLoader();",
"public static ClassLoader getPluginClassLoader() {\r\n if (JDInit.CL == null) {\r\n try {\r\n if (JDUtilities.getRunType() == JDUtilities.RUNTYPE_LOCAL_JARED) {\r\n try {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The Paint method is an abstract method which draws the object on the Frame. | public abstract void Paint(Graphics g); | [
"public void paint() {}",
"protected abstract void paint(Painter painter);",
"public abstract void selfPaint(Graphics g);",
"public abstract void setPaint(Paint paint);",
"public abstract void paintContents(Graphics g);",
"public abstract void draw(GraphicsContext gc);",
"@Override\n public void hand... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a DOM Text node and appends it as a child to the given parent element or just appends the data to the last child of parent if that last child is a Text node. In other words, this method doesn't allow the creation of adjacent Text nodes and creates a Text node only when this is necessary. | public Text createTextNode(String data, Element parent); | [
"private void createTextChild(Document doc, Node parent, String tag, String text)\n {\n if (text == null) return; \n Element newElement = doc.createElement(tag);\n parent.appendChild(newElement);\n Text newElementText = doc.createTextNode(text);\n newElement.appendChild(newEle... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'req_uri' field. | public void setReqUri(java.lang.String value) {
this.req_uri = value;
} | [
"public io.confluent.developer.InterceptTest.Builder setReqUri(java.lang.String value) {\n validate(fields()[4], value);\n this.req_uri = value;\n fieldSetFlags()[4] = true;\n return this;\n }",
"void setRequestUri(URI requestUri);",
"public void setRequestUri(String requestUri){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleProtocolSpecification" $ANTLR start "ruleProtocolSpecification" | public final EObject ruleProtocolSpecification() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_2=null;
Token otherlv_4=null;
Enumerator lv_communicationType_1_0 = null;
EObject lv_protocol_3_0 = null;
enterRule();
... | [
"public final EObject entryRuleProtocolSpecification() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleProtocolSpecification = null;\n\n\n try {\n // InternalMappingDsl.g:3310:62: (iv_ruleProtocolSpecification= ruleProtocolSpecification EOF )\n /... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prepare files and data structures to start the simulation. At the end of this method, the eventSearcher is called, starting the simulation. | public static void prepareForStartSimulation(InputFileReader fileReaderInstance) {
OutputFileWriter.openFile();
Scheduler scheduler = SchedulerFactory.createScheduler(fileReaderInstance.policy);
Tasks tasks = new Tasks((ArrayList<Task>) fileReaderInstance.taskList);
SearchForEvent.eventS... | [
"public void start() {\n\t\t// doctors start waiting at OPEN_TIME\n\t\tfor (int i = 0; i < _doctors.length; ++i) {\n\t\t\t_doctors[i].startWaiting();\n\t\t}\n\t\t_xrayDoctor.startWaiting();\n\t\tprintTimer();\n\t\tprint(\"Start of simulation.\");\n\t\tprint(\"All doctors start waiting.\");\n\n\t\t// recurse on all ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
retrieve not before date from jwt token | public Date getNotBeforeDateFromToken(String token) {
return getClaimFromToken(token, Claims::getNotBefore);
} | [
"Duration getTokenExpiredIn();",
"public Date getJwtExpiration(String token) {\n\t\treturn Jwts.parser().setSigningKey(jwtSecret).parseClaimsJws(token).getBody().getExpiration();\n\t}",
"private Boolean isTokenExpired(DecodedToken token) {\n\t\ttry {\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"SSS\");\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the DatagramSocketFactory used by the DatagramSocketClient to open DatagramSockets. If the factory value is null, then a default factory is used (only do this to reset the factory after having previously altered it). | public void setDatagramSocketFactory(final DatagramSocketFactory factory) {
if (factory == null) {
_socketFactory_ = DEFAULT_SOCKET_FACTORY;
} else {
_socketFactory_ = factory;
}
} | [
"public void setDatagramSocketFactory(DatagramSocketFactory factory)\n {\n if (factory == null) {\n _socketFactory_ = __DEFAULT_SOCKET_FACTORY;\n } else {\n _socketFactory_ = factory;\n }\n }",
"public void setSocketFactory(SocketFactory factory)\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a LatticeElement for a Sink of category cat. | public String getSink(String cat); | [
"public interface ISourceSinkCategory {\n\n\t/**\n\t * Gets a human-readable description of the current category. This can be\n\t * different from toString(), which is allowed to yield a more technical\n\t * description.\n\t * \n\t * @return A human readable description for this category\n\t */\n\tpublic String get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use ACCESSGROUPREF.newBuilder() to construct. | private ACCESSGROUPREF(Builder builder) {
super(builder);
} | [
"GroupRefType createGroupRefType();",
"public interface GroupReference extends ComplexExtensionDefinition,\n SequenceDefinition, ComplexTypeDefinition, SchemaComponent {\n public static final String REF_PROPERTY = \"ref\";\n public static final String MAX_OCCURS_PROPERTY = \"maxOccurs\";\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use ControlBoardInfo.newBuilder() to construct. | private ControlBoardInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private NewControlBoardMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private BusiControl(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private ControlMes... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get mirror pre: pos: get the mirror of the list | public char getMirror() {
return mirror;
} | [
"public List getMirrorList(ListReference lr) {\r\n\t\tList ll = (List) tree.get(lr.getUniqueNane());\r\n\t\tif (ll != null)\r\n\t\t\treturn ll;\r\n\r\n\t\tObject o = list.node.get(lr.getUniqueNane());\r\n\r\n\t\t// null oppure IllegalArgument exception\r\n\t\tif (o == null)\r\n\t\t\treturn null;\r\n\r\n\t\t// null ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new Jode from the given backing node | public Jode(Node n) {
this.node = n;
this.v = node.getTextContent();
this.n = node.getNodeName();
} | [
"Node createNode();",
"abstract protected Node makeNode();",
"void createNode(NodeKey key);",
"Version create(Identity nodeId);",
"public LeafNode createLeafNode(Ref<BranchNode> parent);",
"TNode createTNode();",
"Node<E> createNewNode();",
"abstract protected void createNode (DefaultMutableTreeNode p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getname method, of class connection. | @Test
public void testGetname() {
System.out.println("getname");
connection instance = new connection();
String[] expResult = null;
String[] result = instance.getname();
assertArrayEquals(expResult, result);
// TODO review the generated test code and remove the... | [
"public void testGetName() {\n DBTable instance = table;\n String expResult = \"SIMPLETABLE\";\n String result = instance.getName();\n assertEquals(expResult, result);\n }",
"String getConnectionName();",
"@Test\n public void testGetName() {\n System.out.println(\"getNam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads a property definition. If no property definition with the given name is found, null is returned. | public CmsPropertyDefinition readPropertyDefinition(String name) throws CmsException {
return (m_securityManager.readPropertyDefinition(m_context, name));
} | [
"public Object getProperty(String name);",
"String getProperty(String name);",
"Property getProperty(String propertyName);",
"private String getPropertyFromPropertiesFile(String name) {\n\t\tObject result = properties.get(name);\n\t\tif (result == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn result... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the pollinterval child. | @NotNull
GenericAttributeValue<String> getPollInterval(); | [
"public int getPollInterval()\r\n {\r\n return m_iPollInterval;\r\n }",
"public abstract int getPollStatusInterval();",
"public int getPollingInterval() {\n return pollingInterval;\n }",
"public Integer getMonitorPoll () {\r\n\t\treturn (Integer) getStateHelper().eval(PropertyKeys.monit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
FIXME: This is bad that we're dependent on BigDBRestApplication here. BigDBRestApplication should be a client of the BigDB service (i.e. at the next layer up) but the service shouldn't have any dependencies on the REST API. Probably the main method below should be moved to BigDBRestApplication. | public void run() throws BigDBException {
if (restletComponent != null && restletComponent.isStarted()) {
try {
restletComponent.stop();
} catch (Exception e) {
logger.warn("Failed stopping the previous bigdb service: "
+ e.getM... | [
"DatabaseClient newStagingClient();",
"DatabaseClient newJobDbClient();",
"public static void main(final String[] args) throws Exception {\n new ApiApplication().run(args);\n }",
"public static void main (String [] args){\n new DatabaseApp();\n }",
"public static Bigquery createAuthorizedClientAppEn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column nj_statistics_summary.fourth_amount_range_count | public String getFourthAmountRangeCount() {
return fourthAmountRangeCount;
} | [
"public BigDecimal getFourthAmountRangeSum() {\n return fourthAmountRangeSum;\n }",
"public String getFifthAmountRangeCount() {\n return fifthAmountRangeCount;\n }",
"public void setFourthAmountRangeCount(String fourthAmountRangeCount) {\n this.fourthAmountRangeCount = fourthAmountRan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the link write style header | public void setLinkWriteStyle(LinkWriteStyle style)
{
if (style != null)
setHeader(linkWriteStyleHeaderName, style.toString());
} | [
"public void setHeader (String name, String val);",
"public void setHeaderAlignment(int align) {}",
"protected void setHeadCellStyle(CellWriteHandlerContext context) {\n setHeadCellStyle(context.getCell(), context.getHeadData(), context.getRelativeRowIndex());\n }",
"void setHyperlink(Hyperlink link... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Format each row with the row number [board values] newline | public void printBoard(){
String rowFormat = " %s\t[ %s ] \n";
for(int i=0; i<boardSize; i++){
// The row numbers start at 1 and are the reverse of the standard array index
int rowNumber = Math.abs(i-boardSize);
StringBuilder boardRow = new StringBuilder();
... | [
"public String printBoard() {\n StringBuilder resultBuilder = new StringBuilder();\n for(int i=0; i<9; i++) {\n StringBuilder lineBuilder = new StringBuilder();\n for(int j=0; j<9; j++) {\n lineBuilder.append(sudokuElementsArray[i][j]);\n if(j == 2 |... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test on PLSQL file with default version | @Test
public void testPlsql() {
LanguageVersionDiscoverer discoverer = new LanguageVersionDiscoverer();
File plsqlFile = new File("/path/to/MY_PACKAGE.sql");
LanguageVersion languageVersion = discoverer.getDefaultLanguageVersionForFile(plsqlFile);
Assert.assertEquals("LanguageVersion... | [
"@Test\n public void test_db_versions() throws Exception {\n DatabaseMetaData metadata = newMetadata(11, 0, \"12.1.0.1.0\");\n underTest.init(metadata);\n // oracle 11.1 is noit\n metadata = newMetadata(11, 1, \"12.1.0.1.0\");\n underTest.init(metadata);\n // oracle 11.2... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the power property. | public void setPower(int value) {
this.power = value;
} | [
"public void setPower(double power)\n {\n this.power = power;\n }",
"public void setPower(int newPower){\n power = newPower;\n //creates new power from the power\n }",
"private void set_power(int p) {\r\n\t\tthis._power = p;\r\n\t}",
"public void set_power(int p) {\n\t\tthis._power = p;\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the configured part of speech tags that can be represented by a cardinal relation. E.g. the sentence <NN>Germany</NN> has 16 <NN>states</NN> > here, the composition part of speech tag is NN (for noun). | public List<String> getCardinalRelationCompositionPosTags(final Language language) {
return fetchMultipleValues("de.saschafeldmann.adesso.master.thesis.detection.cardinalrelation.composition.postag." + language.toString().toLowerCase());
} | [
"public List<String> getCardinalRelationCompositePosTags(final Language language) {\n return fetchMultipleValues(\"de.saschafeldmann.adesso.master.thesis.detection.cardinalrelation.composite.postag.\" + language.toString().toLowerCase());\n }",
"public List<String> getCardinalRelationCardinalityPosTags(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add the panel which bill according to a fixed quantity | public void addBill2() {
jpContentPanel = ContentPanel.getInstance();
jpContentPanel.setLayout(new GridBagLayout());
contentPanel = BillUp2Panel.getInstance();
contentPanel.setBackground(new java.awt.Color(255, 255, 255));
jpContentPanel.setBackground(new java.awt... | [
"private void buildAmountPanel1() // buildAmountPanel1 method start\n\t\t{\n\t\t\t// creating panel objects\n\t\t\tamountLabel1 = new JLabel(\"Amount: $\");\n\t\t\tamountField1 = new JTextField(\"0.00\", 10);\n\t\t\tamountField1.setEditable(false);\n\t\t\t\n\t\t\t// adding objects to panel\n\t\t\tamountPanel1.add(a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
try out with the possibility that the subSubRootNode is an unbound communication script, with no established partners. Then that node should search for partners, and try those using tryOutInBoundMode. Otherwise tryOutInBoundMode will be called directly | Boolean tryOut() {
if (subRootNode instanceof CommNode) {
CommNode commNode = (CommNode) subRootNode;
if (commNode.partners == null) {
if (doTrace) trace("tryOut.findAndTryPartnersFor on: "+commNode+" ");
Boolean result = commNode.findAndTryPartnersFor (this);
if (doTrace) trace("tryOut.findAndTryP... | [
"protected void checkExitSubBehavior()\r\n\t{\r\n\t\tint nextSub = GetCurrNode().getSubBehaviorId();\r\n\t\tif ((_subBehaviorId != 0) && (nextSub != _subBehaviorId))\r\n\t\t{\r\n\t\t\t// exiting a subbehavior\r\n\t\t\t_subBehaviorId = 0;\r\n\t\t\t_entity.GetState().GetExecStack().exitSubBehavior();\r\n\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the cost of the decoration added to the tree after getting the trees cost | public double getCost() {
return tree.getCost() + 2;
} | [
"double getCost();",
"@Override\r\n\tpublic double calculateCost() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn cost;\r\n\t}",
"float getCost();",
"public float getCost() {\n return Tower.COST_ARCHER;\n }",
"public double cost() {\r\n\t\treturn 1.80 + cake.cost();\r\n\t}",
"public d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Functions View All Conditions function Overview: This function finds which Rooms fulfill the constrains and then returns the ids of Rooms that do. | public static int[] ViewAllCondition(ArrayList<String> savedOption, ArrayList<Integer> constrain) {
int[][] nsaRoomIdBuffer = new int[constrain.size()][nsaRoomArray.length];// holds the Room IDs to compare purposes
int[] nsaRoomId = new int[nsaRoomArray.length]; // Holds the Room ID
int[] ns... | [
"public Set<Integer> listRooms(){\r\n\t\treturn rooms.keySet();\r\n\t}",
"public Set<String> getRooms() {\n\t\tSet<String> keys = new HashSet<>();\r\n\t\tfor (Map.Entry<String, Room> m : ROOM_INFO_MAP.entrySet()) {\r\n\t\t\tkeys.add(m.getKey()+\"[\"+m.getValue().getPeopleNum()+\"]\");\r\n\t\t}\r\n\t\treturn keys;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'field390' field. | public void setField390(java.lang.CharSequence value) {
this.field390 = value;
} | [
"public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField390(java.lang.CharSequence value) {\n validate(fields()[390], value);\n this.field390 = value;\n fieldSetFlags()[390] = true;\n return this; \n }",
"public void setField391(java.lang.CharSequence value) {\n this.field391 ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__EvaluationExpressionOut__Group__3" $ANTLR start "rule__EvaluationExpressionOut__Group__3__Impl" ../com.blasedef.onpa.ONPA.ui/srcgen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:4577:1: rule__EvaluationExpressionOut__Group__3__Impl : ( ( rule__EvaluationExpressionOut__ExpressionAssi... | public final void rule__EvaluationExpressionOut__Group__3__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:4581:1: ( ( ( rule__EvaluationExpres... | [
"public final void rule__EvaluationExpressionOut__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:4569:1: ( rule__EvaluationExpr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__FQN__Group__0__Impl" $ANTLR start "rule__FQN__Group__1" ../org.eclipse.eclipsecon.conference.ui/srcgen/org/eclipse/eclipsecon/ui/contentassist/antlr/internal/InternalConference.g:1025:1: rule__FQN__Group__1 : rule__FQN__Group__1__Impl ; | public final void rule__FQN__Group__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.eclipse.eclipsecon.conference.ui/src-gen/org/eclipse/eclipsecon/ui/contentassist/antlr/internal/InternalConference.g:1029:1: ( rule__FQN__Group__1__Impl )
... | [
"public final void rule__FQN__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.eclipsecon.conference.ui/src-gen/org/eclipse/eclipsecon/ui/contentassist/antlr/internal/InternalConference.g:1061:1: ( rule__FQN__Group... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Interface' containment reference. If the meaning of the 'Interface' containment reference isn't clear, there really should be more of a description here... | Interface getInterface(); | [
"public java.lang.Object getInterface()\n {\n return this._interface;\n }",
"public Interface getInterface() {\n\t\treturn this.iface;\n\t}",
"public int getCurrentInterface() {\r\n\t\treturn currentInterface;\r\n\t}",
"public AIDLInterface getInterface()\n\t{\n\t\t//System.out.println(\"---- mIn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Plots the queens in the board. | public String[][] plotQueens(String[][] board) {
for(int i = 0; i < MAX_LENGTH; i++) {
board[i][this.pos[i]] = "Q";
}
return board;
} | [
"public static void printQueens(int[] q) {\n int n = q.length;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n System.out.print(\"|\");\n if (q[i] == j) System.out.print(\"Q\");\n else System.out.print(\" \");\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets H5 bold font of given HTML control. Example: _control ctrlSetFontH5B "TahomaB" | public native static void ctrlSetFontH5B(GameControl oper1, String oper2); | [
"public void setBold(boolean bold) {\r\n try {\r\n if (bold) {\r\n this.setFont(this.getFont().deriveFont(Font.BOLD));\r\n } else {\r\n this.setFont(this.getFont().deriveFont(Font.PLAIN));\r\n }\r\n this.bold = bold;\r\n } catch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the group by topics mapping. | private void updateGroupsByTopics(
String groupId,
Set<String> oldSubscribedTopics,
Set<String> newSubscribedTopics
) {
if (oldSubscribedTopics.isEmpty()) {
newSubscribedTopics.forEach(topicName ->
subscribeGroupToTopic(groupId, topicName)
);
... | [
"public void syncConsumerGroupTopicPartitionCache(){\n\t\tif(null == kafkaAdminConsumerClient){\n\t\t\treturn;\n\t\t}\n\t\tsynchronized (consumerGroupTopicPartitionMap) {\n\t\t\tconsumerGroupTopicPartitionMap.clear();\n\t\t\tHashMap<String, List<String>> consumerGroupAndTopicsMap = kafkaAdminConsumerClient.getGroup... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleBitwiseAndExpression" $ANTLR start "ruleBitwiseAndExpression" ../org.yakindu.sct.model.stext/srcgen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2867:1: ruleBitwiseAndExpression returns [EObject current=null] : (this_LogicalRelationExpression_0= ruleLogicalRelationExpression ( ... | public final EObject ruleBitwiseAndExpression() throws RecognitionException {
EObject current = null;
Token otherlv_2=null;
EObject this_LogicalRelationExpression_0 = null;
EObject lv_rightOperand_3_0 = null;
enterRule();
try {
/... | [
"public final EObject entryRuleBitwiseAndExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleBitwiseAndExpression = null;\r\n\r\n\r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/Intern... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Sets the reward value to win or loss. | public void setReward(int value) {
reward = value;
nowGame = reward;
} | [
"public void setReward(int value){\n unitGold=value;\n }",
"public void setReward(int reward) {\n this.reward = reward;\n }",
"public void setValReward() {\n if (this.diff == \"B\"){\n this.valReward = 1;\n }\n if (this.diff == \"D\"){\n this.valRew... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates reference type for an entity | private ReferenceType createRef(IntuitEntity entity) {
ReferenceType referenceType = new ReferenceType();
referenceType.setValue(entity.getId());
return referenceType;
} | [
"ElementTypeReference createElementTypeReference();",
"RelationshipType createRelationshipType();",
"HxType createReference(final String className);",
"EntityType createEntityType();",
"HxType createReference(final HxType resolvedType);",
"DataTypeReference createDataTypeReference();",
"@DOMSupport(DomL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.opentelemetry.proto.common.v1.ArrayValue array_value = 5; | io.opentelemetry.proto.common.v1.ArrayValue getArrayValue(); | [
"io.opentelemetry.proto.common.v1.ArrayValueOrBuilder getArrayValueOrBuilder();",
"ArrayValue createArrayValue();",
"ElementValueArrayInitializer createElementValueArrayInitializer();",
"public String[] getArrayValue();",
"public SerializableArrayTag(String name, Serializable[] value) {\n \n s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DiagnosisService is a Serviceclass used to provide logic to Diagnosis operations. All the methods in this class throws Application Exception. Exceptions are thrown if the input data is null. Beans are injected during runtime using Spring IOC. | public interface DiagnosisService {
/**
* <p>
* This Method is used to add a new diagnosis using the details provided by the
* user. Returns true if the entry is added successfully, else returns false.
* </p>
*
* @param diagnosis an Diagnosis object containing all the details of the
* d... | [
"public Diagnosis searchDiagnosisById(int id) throws ApplicationException;",
"public Diagnosis retrieveDiagnosisById(int id) throws ApplicationException;",
"public interface DiagnosisDao {\n\n\t/**\n\t * <p>\n\t * This Method is used to add the diagnosis details given by the user and adds\n\t * them to the Data... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This adds sold birds to those available for sale | private void updatePool(Vector sold){
for(int i = 0; i < sold.size(); i++){
this.marketPool.addElement((Bird) sold.elementAt(i));
}
} | [
"void addBirds (String bird, double birdPrice, int count){\n int i = 0;\n for(String s: birds){\n if (s == null){\n birds[i] = bird;\n break;\n }\n i++;\n }\n if (i < 50){\n price[i] = birdPrice + birdPrice * marg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for the amount of free meeples. | public int getFreeMeeples() {
return freeMeeples;
} | [
"public boolean hasFreeMeeples() {\n return freeMeeples > 0;\n }",
"public int getMinesRemaining() {\r\n return this.dPanel.getDigits();\r\n }",
"public static int getSupplyFree() {\n return getSupplyTotal() - getSupplyUsed();\n }",
"public int remainingPellets() {\n Board bo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table tb_friend | Friend selectByPrimaryKey(String friendId); | [
"org.roylance.yaorm.TestingModel.Person getFriends(int index);",
"java.util.List<org.roylance.yaorm.TestingModel.Person>\n getFriendsList();",
"Friends selectByPrimaryKey(Integer id);",
"@Override\n\tpublic Friend mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\treturn new Friend(rs.getInt(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the max heap size in the configuration file so on a restart the maximum size will be changed | public static void setMaxHeapSize( final String maxHeapSize ) throws FileNotFoundException, IOException {
processAppIni(false, new Function<String, String>(){
public String apply( String line ) {
if (line.matches(".*Xmx([0-9]+)([mMgGkKbB]).*")) { //$NON-NLS-1$
... | [
"public void setHeapConfigUsage(Integer heapConfigUsage) {\n this.heapConfigUsage = heapConfigUsage;\n }",
"void setMaximumSize(int newMaxSize);",
"public static void setMaxMemoryMB(int value)\r\n {\r\n preferences.putInt(ID_MAX_MEMORY, Math.min(getMaxMemoryMBLimit(), value));\r\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
INIT A LABEL AND SET IT'S STYLESHEET CLASS | private Label initLabel(DraftKit_PropertyType labelProperty, String styleClass) {
PropertiesManager props = PropertiesManager.getPropertiesManager();
String labelText = props.getProperty(labelProperty);
Label label = new Label(labelText);
label.getStyleClass().add(styleClass);
re... | [
"private Label initLabel(WDK_PropertyType labelProperty, String styleClass) {\r\n PropertiesManager props = PropertiesManager.getPropertiesManager();\r\n String labelText = props.getProperty(labelProperty);\r\n Label label = new Label(labelText);\r\n label.getStyleClass().add(styleClass)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new contents instance with the given values. | public Contents(List<Content> values) {
this.values.addAll(Optional.ofNullable(values).orElse(Collections.emptyList()));
} | [
"Content createContent();",
"FromValues createFromValues();",
"public Content createContent();",
"Values createValues();",
"abstract public Content createContent();",
"public Content() {}",
"protected void setContents(Object contents) {\n\t}",
"static public IBlobContents createBlobContents(byte[] val... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Switch Yellow Light State to Yellow Light State Print error message: Light is already yellow. | @Override
public void switchYellowState() {
System.out.println("-> Light is already yellow.");
} | [
"@Override\n public void switchGreenState() {\n System.out.println(\"-> You can't switch green light.\");\n }",
"@Override\n public void switchRedState() {\n if(light.getTimeout() == timeout){\n System.out.println(\"-> Switch to Red Light...\");\n light.setState(light.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column ONLINEJNL.JNLTYPE | public String getJnltype() {
return jnltype;
} | [
"public\tJSQLType\tgetJSQLType()\n\t{\n\t\treturn jsqlType;\n\t}",
"public String getJtype() {\n return jtype;\n }",
"public Integer getJtype() {\n return jtype;\n }",
"public java.lang.String getSql_Type() {\n return sql_Type;\n }",
"public void setJnltype(String jnltype) {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required bool fenced = 2; | boolean hasFenced(); | [
"boolean getFenced();",
"@java.lang.Override\n public boolean getFenced() {\n return fenced_;\n }",
"boolean isSightedRequiredToFire();",
"public boolean isSoft();",
"public void setRequired(boolean tmp) {\n this.required = tmp;\n }",
"boolean isSetStraight();",
"public void setIsCritic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests auction Started to String | @Test
public void testAuctionStartedToString() {
AuctionStarted ae = new AuctionStarted("1","AUCTION_STARTED",0L,1L);
assertEquals(ae.toString(), "AUCTION_STARTED: Thu Jan 01 01:00:00 CET 1970 - Auction started with id 1");
} | [
"@Test\n\tpublic void testAuctionEndedToString() {\n\t\tAuctionEnded ae = new AuctionEnded(\"1\",\"AUCTION_ENDED\",0L,1L);\n\t\tassertEquals(ae.toString(), \"AUCTION_ENDED: Thu Jan 01 01:00:00 CET 1970 - Auction ended with id 1\");\n\t}",
"@Test\n\tpublic void testAuctionSuccessToString() {\n\t\tAuctionSuccessRat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Given an Iterable of files and a "current working directory" returns an Iterable where the files that were relative are now absolute after having the "CWD" applied to them as their parent directory. Files in the list that were already absolute are returned unmodified. | public static Iterable<File> applyCwd(File cwd, Iterable<File> files) {
if (files != null) {
List<File> result = new ArrayList<File>();
for (File f : files) {
result.add(applyCwd(cwd, f));
}
return result;
} else {
return null;
... | [
"public static List<File> applyCwd(File cwd, List<File> files) {\n if (files != null) {\n List<File> result = new ArrayList<File>(files.size());\n for (File f : files) {\n result.add(applyCwd(cwd, f));\n }\n return result;\n } else {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an entry for the given resource (if appropriate). If the entry is of no interest to this root, then nothing is created and it returned null. | public IFileEntry create(IResource resource) throws CoreException {
IPath path = resource.getFullPath();
IPath fullPath = dir.getFullPath();
try {
if (fullPath.isPrefixOf(path)
&& resource instanceof IFile) {
IFile file = (IFile) resource;
ID id = path2ID(path.makeRelativeTo(fullPath)); ... | [
"Entry createEntry();",
"public ScimResourceTypeEntity getOrCreateResourceTypeEntry(ResourceType resourceType)\n {\n RealmModel realmModel = getKeycloakSession().getContext().getRealm();\n Optional<ScimResourceTypeEntity> optionalResourceTypeEntity = getResourceTypeEntityByName(resourceType.getName());\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds the root of a node i, performing path compression. | private int findRoot(int i){
if(parent[i]==i) {
//at the root
return i;
} else {
int root=findRoot(parent[i]);
//path compression!
parent[i]=root;
return root;
}
} | [
"private int root(int i) {\n while (parent[i] != i) {\n parent[i] = parent[parent[i]];\n i = parent[i];\n }\n return i;\n }",
"private void doPathCompression(int i) {\n int root = i;\n int temp;\n while(root != parent[root]){\n temp=roo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ returns the board itself (These are kind of unnecessary) Programmer: Michael | @Override
public Peg[][] getBoard() {
return SquareBoard.board;
} | [
"public String getBoard() {\r\n\t\tString r = \"\";\r\n\t\tfor (int y = 0; y < 3; y++) {\r\n\t\t\tfor (int x = 0; x < 3; x++) {\r\n\t\t\t\tr = r + board[y][x];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn r;\r\n\t}",
"int[][] getBoard();",
"String getBoardString();",
"public Board getBoard() {\n\t\tgenerate();\n\t\tretu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this function determines the processes for which it is unsafe to start with | public void isSafe() {
safetyLog = new boolean[proc];
for (int i = 0; i < proc; i++) {
safetyLog[i] = true;
}
for (int i = 0; i < proc; i++) {
for (int j = 0; j < res; j++) {
if (need[i][j] > available[0][j]) {
safetyLog[i] = false;
break;
}
}
}
/*System.out
... | [
"private void startProcesses(double numProcessesRequired) {\r\n \t\tdouble numProcesses = pool.size() +\r\n \t\t\t\tpoolConfig.startupLimit - startupThrotle.availablePermits();\r\n \r\n \t\twhile (numProcesses < numProcessesRequired\r\n \t\t\t\t&& startupThrotle.availablePermits() > 0) {\r\n \t\t\tnumProcesses += 1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return the first DP with name equals to dpName. | protected MdmScomoDp searchDp(String dpName) {
return mDps.get(dpName);
} | [
"public dNode FindByName(String depName) {\n\t\tcurr = head;\n\t\twhile (curr != null) {\n\t\t\tif (curr.data.name.equals(depName)) { // important\n\t\t\t\treturn curr;\n\t\t\t}\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn null;\n\t}",
"String getPdpName();",
"@Override\n public IPaddock findPaddockByName(Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds prey in the model and links the movement handler and death controller | private void registerPreys(List<Prey> preys){
model.addPreys(preys);
for(Prey prey: preys){
movementHandler.addCinematicObject(prey);
prey.attach(movementHandler);
if (this.deathController != null)
prey.attach(deathController);
//statistic... | [
"public ModelElephant()\n {\n \tint par1 = 12;\n \tint textureWidth = 256;\n \tint textureHeight = 128;\n \t\n \t// head\n head = new ModelRenderer(this, 0, 0);\n head.setTextureSize(textureWidth, textureHeight);\n head.addBox(-4F, -4F, -6F, 10, 10, 7);\n // remember de... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Filter the activities.id > firstId | private List<Activity> getFilteredList(List<Activity> activities, Long firstId) {
List<Activity> result = new ArrayList<Activity>();
synchronized (activities) {
for (Activity activity : activities) {
if (activity.getId() > firstId) {
result.add(activity);
... | [
"ObservableList<Activity> getFilteredActivityList();",
"public LearningResultHasActivity[] findWhereActivityIdActivityEquals(int activityIdActivity) throws LearningResultHasActivityDaoException;",
"List<Contact> filterByIds(List<Integer> requiredContactsId) {\n\n List<Contact> filteredContacts = new ArrayLis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests weather or not the Address Object correctly stores the First Name Attribute checks for unusual chars | @Test
public void testFirstNameUnusualString() {
Address a = new Address();
a.setFirstName("--;{}--.-.");
assertEquals("--;{}--.-.", a.getFirstName());
} | [
"@Test\n\tpublic void testFirstNameArbitraryString() {\n\t\tAddress a = new Address();\n\t\ta.setFirstName(\"awdawdawdawd\");\n\t\tassertEquals(\"awdawdawdawd\", a.getFirstName());\n\t}",
"@Test\n\tpublic void testLastNameUnusualString() {\n\t\tAddress a = new Address();\n\t\ta.setFirstName(\"--;{}--.-.\");\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Atomic__Group_9__1" $ANTLR start "rule__Atomic__Group_9__1__Impl" InternalDsl.g:33764:1: rule__Atomic__Group_9__1__Impl : ( ( rule__Atomic__ProcNameAssignment_9_1 ) ) ; | public final void rule__Atomic__Group_9__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:33768:1: ( ( ( rule__Atomic__ProcNameAssignment_9_1 ) ) )
// InternalDsl.g:33769:1: ( ( rule__Atomic__ProcNameAssignment_9_1 ) )
... | [
"public final void rule__Atomic__Group_8__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:33606:1: ( ( ( rule__Atomic__ProcNameAssignment_8_1 ) ) )\n // InternalDsl.g:33607:1: ( ( rule__Atomic__ProcNameAssign... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
convert pet structure to JsonObject | public JsonObject convertPet(Pet pet) {
String jsonBody = new GsonBuilder().create().toJson(pet);
return getJsonObject(jsonBody);
} | [
"public JSONArray petsToJson() {\n JSONArray jsonArray = new JSONArray();\n\n for (Pet p : petList) {\n jsonArray.put(p.toJson());\n }\n return jsonArray;\n }",
"io.vertx.core.json.JsonObject toJson();",
"public JSONObject convertToJSON() throws JSONException {\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Read a file and return a list of integers | private static ArrayList<Integer> readFile(String file_name) throws IOException {
File f = new File(file_name);
ArrayList<Integer> number_list = new ArrayList<>();
//test if the file is valid
if(f.isFile()) {
BufferedReader reader = new BufferedReader(new FileRead... | [
"public ArrayList<Integer> readFile(File file) {\n\t\tArrayList<Integer> fileData = new ArrayList<Integer>();\n\t\t// read the file\n\t\ttry {\n\t\t\tScanner sc = new Scanner(file);\n\t\t\twhile (sc.hasNextInt()) {\n\t\t\t\tfileData.add(sc.nextInt());\n\t\t\t}\n\t\t\tsc.close();\n\t\t} catch (FileNotFoundException ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the current forwardness of the robot. This is an indication of which end of the robot is considered to be "forward", which is either the Fluke board or the Scribbler light sensors. | public int getForwardness()
{
int val = _read_mem( 0, 0 );
if( val == 0xdf )
return FORWARD_SCRIBBLER;
else
return FORWARD_FLUKE;
} | [
"public Long getForward() {\n return forward;\n }",
"public float ForwardComponent() {\n return m_pVehicle.getHeading().dot(m_vSteeringForce);\n }",
"public int getForwardCount() {\n return forwardCount;\n }",
"public int get_forward() {\n return (int)getUIntBEElem... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get down clues from Parser | public final HashMap downClues() {
HashMap<Integer, String> clues = new HashMap<>();
int clueSize = Parser.getClues().size() / 2;
for ( int i = clueSize; i < clueSize * 2; i++ ) {
int clueLabel = (int) Parser.getClueLabels().get( i );
String clue = (String) Parser.getClue... | [
"List<Hint<?>> extractHints(MessageExchange messageExchange);",
"int getParsingPointer();",
"CParserResult getParserResult();",
"private void getExplanation()\n {\n \n }",
"public ArrayList<Relation> extractRelations(LexicalizedParser lp) {\n \t\tBreakIterator iterator = BreakIterator.getSentenceI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method will display the 7 days of the week in a nice border below topPanel | private void displayWeekDayPanel() {
JLabel[] weekDayLabel = new JLabel[7];
Border weekBorder = BorderFactory.createLineBorder(Color.BLACK, 5);
for (int i = 0; i < 7; i++) {
weekDayLabel[i] = new JLabel(daysOfWeek[i], SwingConstants.CENTER);
weekDayLabel[i].setBorde... | [
"public static JPanel printWeekdays(){\n\t\t\n\t\tJPanel weekdays = new JPanel();\n\t\tweekdays.setLayout(new GridLayout(1, 7 , 1, 1));\n\t\tFont myFont = new Font(\"Serif\", Font.ITALIC, 16);\n\t\t\n\t\tfor (int i=0; i < 7; i++) {\n\t\t\tJLabel myLabel = new JLabel();\n\t\t\tmyLabel.setFont(myFont);\n\t\t\tmyLabel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Layout specific: set's the default number of rows (5) | private void defaultGridRow() {
((GridLayout) this.jPanelAddresses.getLayout()).setRows(5);
} | [
"void setDefaultRowHeight(double points);",
"public void setRows( int rows )\n {\n numRows = rows;\n }",
"public void setRowSize() {\n \t\tfor (int i = 0; i < model.getRowCount(); i++) {\n \n \t\t\tthis.setRowHeight(i, 60);\n \t\t\tthis.setRowMargin(5);\n \t\t}\n \t\tSystem.out.println(\"R... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a shape given a center and angle | public Shape(Point center, double theta){
this.center = center;
this.theta = theta;
} | [
"Angle createAngle();",
"Shape createShape();",
"public Shape(Point center){\n\t\tthis(center,0);\n\t}",
"Ellipse createEllipse();",
"void createShape();",
"IArc createArc(IPoint pos, double width, double startAngle, double length);",
"void createShape(double theX, double theY);",
"private PolygonShap... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
new columns (sequenceDisplayLabel) // | public ScGridColumn<AcConsignmentTransport> newSequenceDisplayLabelColumn()
{
return newSequenceDisplayLabelColumn("Sequence Display Label");
} | [
"public ScGridColumn<AcItem> newDisplayLabelColumn()\n {\n return newDisplayLabelColumn(\"Display Label\");\n }",
"@Override\n public List<String> getColumnLabels() {\n return columns;\n }",
"public int getDisplayColumns();",
"public String getLabelColumn()\n {\n return myL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column IMAL141_DEV_O18.S_CONTROL_PARAM.ADD_STRING2_DESC | public String getADD_STRING2_DESC() {
return ADD_STRING2_DESC;
} | [
"public void setADD_STRING2_DESC(String ADD_STRING2_DESC) {\r\n this.ADD_STRING2_DESC = ADD_STRING2_DESC == null ? null : ADD_STRING2_DESC.trim();\r\n }",
"public String getADD_STRING1_DESC() {\r\n return ADD_STRING1_DESC;\r\n }",
"public String getADD_NUMBER2_DESC() {\r\n return ADD_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a package to introspector to scan at startup. | public BinderConfiguration addPackageToScan(String packageToScan) {
packagesToScan.add(packageToScan);
return this;
} | [
"public void setRegisterBlueprintsByPackage(String _package) throws RegisterBlueprintException {\n\n Set<Class<?>> annotated = null;\n try {\n annotated = new ClassesInPackageScanner().findAnnotatedClasses(_package, Blueprint.class);\n } catch (IOException e) {\n throw new... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the activity def to the context parent def object. | protected void addActivityToParent(AeActivityDef aChildDef) {
if (getParentDef() instanceof IAeMultipleActivityContainerDef) {
((IAeMultipleActivityContainerDef) getParentDef()).addActivityDef(aChildDef);
} else if (getParentDef() instanceof IAeSingleActivityContainerDef) {
I... | [
"protected void addActivity(BPELExtensibleElement parentInFragment, Activity newAct) {\n\n\t\tif (parentInFragment == null || newAct == null)\n\t\t\tthrow new NullPointerException(\"parentInFragment==null:\" + (parentInFragment == null)\n\t\t\t\t\t+ \" newAct == null:\" + (newAct == null));\n\n\t\t// Parent is proc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a value of property OfficialArtistWebpage as an RDF2Go node | public void removeOfficialArtistWebpage( org.ontoware.rdf2go.model.node.Node value) {
Base.remove(this.model, this.getResource(), OFFICIALARTISTWEBPAGE, value);
} | [
"public void removeOfficialArtistWebpage(org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.remove(this.model, this.getResource(), OFFICIALARTISTWEBPAGE, value);\r\n\t}",
"public static void removeOfficialArtistWebpage( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.onto... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ CHECKS IF ANY INT FIELDS ARE LEFT BLANK | protected boolean areIntFieldsBlank(EditText age, EditText mobilenum) {
if (age.getText().toString().isEmpty() || mobilenum.getText().toString().isEmpty()) {
Toast.makeText(FreelanceEditProfileActivity.this,
"ERROR: You may not leave any of the fields empty.",
... | [
"public static boolean isNullOrBlanksAndOnlyDigits(String input) {\n\t\tString field = input;\n\t\tString pattern = \"^[0-9]*$\";\n\t\tif (input == null || input.isEmpty()) {\n\t\t\treturn true;\n\t\t} else if (field.matches(pattern)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}",
"void ch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the backgroundColor value. | public String backgroundColor() {
return this.backgroundColor;
} | [
"public native final String backgroundColor() /*-{\n\t\treturn this.backgroundColor;\n\t}-*/;",
"public int backgroundColor() {\n // create/return the background color\n return Color.rgb(180, 200, 255);\n }",
"public eu.hansolo.steelseries.tools.BackgroundColor getBackgroundColor()\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets mouse listeners for root. Listeners are used in Input class and Input class is mainly used in GObject classes. | private void setMouseListeners() {
root.setOnMouseMoved(new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent e) {
Input.updateMousePosition(e.getSceneX(), e.getSceneY());
}
});
root.setOnMousePressed(new EventHandler<MouseE... | [
"private void setListeners()\n {\n// KeyListener keyListener = Input.getKeyListener();\n MouseListener mouseListener = Input.getMouseListener();\n// addKeyListener(keyListener);\n gamePanel.getInnerGamePanel().addMouseListener(mouseListener);\n Input.setGamePanel(gamePanel.getInnerGamePan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Log.i("Onswitchfragment","inside "+pos); FragmentManager manager= getSupportFragmentManager(); Fragment fr=getSupportFragmentManager().findFragmentById(R.id.bottomNavFrameLayout); if(fr!=null) Log.i("fragment In", "switchFragment: "+fr.getClass()); else Log.i("fragment In", "switchFragment: null"); FragmentTransaction ... | private void switchFragment(int pos) {
Fragment fragment=bottomBarList.get(pos);
String backStateName = fragment.getClass().getName();
String fragmentTag = backStateName;
FragmentManager manager = getSupportFragmentManager();
boolean fragmentPopped = manager.popBackStackImmedia... | [
"public void switchTopFragment(String fragmentStr) {\n Fragment fragment;\n if(fragmentStr.equals(\"TransactionFragment\")) {\n if(transactionFragment == null) {\n fragment = new TransactionFragment();\n transactionFragment = (TransactionFragment) fragment;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Write'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseWrite(Write object)
{
return null;
} | [
"public T caseWrites(Writes object)\n {\n return null;\n }",
"public Write getWrite();",
"public T caseOutput(Output object)\n {\n return null;\n }",
"public T caseIwOutput(IwOutput object) {\r\n\t\treturn null;\r\n\t}",
"public void write(T object);",
"public T caseOutputOperation(OutputOperati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stops reporting client load stats to the remote server for the given cluster:cluster_service. | void cancelClientStatsReport(String clusterName, @Nullable String clusterServiceName) {
} | [
"public void stop(yandex.cloud.api.mdb.clickhouse.v1.ClusterServiceOuterClass.StopClusterRequest request,\n io.grpc.stub.StreamObserver<yandex.cloud.api.operation.OperationOuterClass.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopMethod(), responseObserver);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes aChild from this node's child array, giving it a null parent. | public void remove(AbstractProofNode aChild) {
if (aChild == null) {
throw new IllegalArgumentException("argument is null");
}
if (!isNodeChild(aChild)) {
throw new IllegalArgumentException("argument is not a child");
}
remove(getIndex(aChild));
} | [
"public void remove ( AbstractProofNode aChild )\n {\n if ( aChild == null )\n {\n throw new IllegalArgumentException ( \"argument is null\" ) ; //$NON-NLS-1$\n }\n if ( ! isNodeChild ( aChild ) )\n {\n throw new IllegalArgumentException ( \"argument is not a child\" ) ; //$NON-NLS-1$\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |