query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Condition 3 of rule constructDeeperUnderstanding03_PATH_2_GOAL_5_COMPONENT_txtParcela1_15. The original expression was: action.getGoal().getComponent().getName().equalsIgnoreCase("txtParcela1") | private boolean constructDeeperUnderstanding03_PATH_2_GOAL_5_COMPONENT_txtParcela1_15_cond_3() {
return (module_entity_Action_1.getGoal().getComponent().getName().equalsIgnoreCase("txtParcela1"));
} | [
"private boolean constructDeeperUnderstanding03_PATH_1_GOAL_1_COMPONENT_txtParcela1_2_cond_3() {\r\n return (module_entity_Action_1.getGoal().getComponent().getName().equalsIgnoreCase(\"txtParcela1\"));\r\n }",
"private boolean constructDeeperUnderstanding03_PATH_1_GOAL_3_COMPONENT_txtParcela2_8_cond_3(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Increments the value of column in row/column indicator. | public void incremetColumn() {
setRowAndColumn(row, column + 1);
} | [
"void incrementColumnIndex();",
"public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }",
"private void increment() {\n if (this.currentColumn < this.expectedColumns - 1) {\n this.currentColumn++;\n }\n else if (this.currentRow < this.expectedRows - 1) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get list of peptide combinations from a given peptides array and missed cleavage number. The size of the result list depends on the given size of peptide list and missed cleavage number. For example, given there are 5 peptides in the list and the missed cleavage is 2. Then every 3 peptides in the original order will co... | private List<String> getPeptideCombinations(String[] peptides,
int missedCleavage) {
List<String> combinedList = new ArrayList<>();
// if the size of given peptide array is greater than missedCleavage. then the result list is not empty.
if (peptide... | [
"public static int[] good_codons(int[] codon_array, int[] badcodons){\n\t\tif(badcodons.length==0){ return codon_array;}\n\t\tint[] good_codon_array = new int[codon_array.length-(badcodons.length)];\n\t\tboolean flag = false;\n\t\tint m = 0;\n\t\tfor (int j = 0; j < codon_array.length; j++){\n\t\t\tflag = false;\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
adds a new tribot given a start position | private void addTriBot(Vector2f pos)
{
getSprites().add(new TriBot(pos.x, pos.y, new Vector2f(.3f, .3f), screenWalls, platforms, player, walls, bm, tribotSpriteSheet, taserEffect, random.nextBoolean(), hitEffect));
} | [
"public void addPosition(int position);",
"public void addPos(String word, IPosition pos);",
"net.opengis.gml.x32.TimePositionType addNewBeginPosition();",
"void addLine(int index, Coordinate start, Coordinate end);",
"public void addTileOnBeginning(Tile tile);",
"void addRobot(Position robotPost);",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getEdge method, of class Graph. | @Test
public void testGetEdge() {
System.out.println("Test getEdge");
instance.insertEdge("A","B","Edge1",6);
instance.insertEdge("A","C","Edge2",1);
instance.insertEdge("B","D","Edge3",3);
instance.insertEdge("C","D","Edge4",4);
instance.insertEdge("C","E"... | [
"@Test\n public void testGetEdge_GraphEdge() {\n System.out.println(\"getEdge\");\n ArrayList<GraphVertex> vSet = testSubject.getVertexSet();\n GraphEdge e = new GraphEdge(testSubject, vSet.get(6), vSet.get(7));\n\n assertEquals(false, testSubject.getEdge(e) == null);\n }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
verify that the contractId is exist. | public TbContract verifyContractIdExist(int chainId, int contractId, int groupId) {
ContractParam param = new ContractParam(chainId, contractId, groupId);
TbContract contract = queryContract(param);
if (Objects.isNull(contract)) {
log.info("contractId is invalid. contractId:{}", cont... | [
"public void verifyContractNotExistByName(int chainId, int groupId, String name, String path) {\n TbContract contract = tbContractMapper.getContract(chainId, groupId, name, path);\n if (Objects.nonNull(contract)) {\n log.warn(\"contract is exist. groupId:{} name:{} path:{}\", groupId, name,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is used to get tree panel | Tree getTreePanel(); | [
"public JPanel getView()\r\n {\r\n return new BTreeDisplay(root); \r\n }",
"public PreviewTreeSidePanel() {\r\n\r\n super(new BorderLayout());\r\n\r\n tree = new ModernTree<ModernWidget>();\r\n\r\n tree.setNodeRenderer(new PreviewModernTreeNodeRenderer());\r\n\r\n ModernScrollPane sc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the inner path of the this node up to the anchor. | protected String resolveInnerPath() throws RepositoryException {
final String path;
InheritanceNodeWrapper anchor = findAnchor();
// if no anchor left we are relative to the root
if(anchor == null){
path = this.getPath();
}
else{
path = StringUtils... | [
"private Stack<Node> getPath() {\n Stack<Node> finalPath = new Stack<>(); //Stack containing the final path of our algorithm\n\n\n Node current = goal;\n while (current.getParent() != null){\n finalPath.push(current);\n current = current.getParent();\n }\n fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Model tests for IdentityPatch | @Test
public void testIdentityPatch() {
// TODO: test IdentityPatch
} | [
"@Test\n public void patchIdTest() {\n // TODO: test patchId\n }",
"@Test\n public void testIdentity() {\n // TODO: test Identity\n }",
"@Test\n public void idMappingTest() {\n // TODO: test idMapping\n }",
"@Test\n\tpublic void updateSpecificationInvalidIdTest() throws ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form FrmMulti | public FrmMulti() {
initComponents();
} | [
"Multi createMulti();",
"FORM createFORM();",
"@RequestMapping(params = {\"create\", \"form\"}, produces = \"text/html\")\n public String createForm_new(Model uiModel) {\n \tpopulateEditForm(uiModel, new Flight());\n return \"flights/create_new\";\n }",
"public com.rcs.webform.model.FormItem c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/A Bean with name RabbitTemplate is created, which accepts and forwards the messages | @Bean
RabbitTemplate rabbitTemplate2(ConnectionFactory connectionFactory) {
RabbitTemplate rabbitTemplate = new RabbitTemplate(connectionFactory);
rabbitTemplate.setMessageConverter(messageConverter2());
return rabbitTemplate;
} | [
"@Bean\n public RabbitTemplate rabbitTemplate(final ConnectionFactory connectionFactory) {\n final RabbitTemplate rabbitTemplate = new RabbitTemplate(connectionFactory);\n rabbitTemplate.setMessageConverter(producerJackson2MessageConverter());\n return rabbitTemplate;\n }",
"@Bean\n\tpu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the Vessel identified by the ship's hull ID, or null if no such Vessel can be found. | public Vessel getVessel(Context ctx) {
return ctx.getVesselData().getVessel(mShipType);
} | [
"public Vessel getVessel();",
"public Ship getShip(int shipId) {\n for (Ship ship : lineShips) {\n if (ship.getId() == shipId) {\n return ship;\n }\n }\n for (Ship ship : lShips) {\n if (ship.getId() == shipId) {\n return ship;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the size i.e. width and height of the current outputFormat of this SwScale | private void setOutputFormatSize(Dimension size) {
VideoFormat outputFormat = (VideoFormat) getOutputFormat();
if (outputFormat != null) {
outputFormat = setSize(outputFormat, size);
if (outputFormat != null) {
setOutputFormat(outputFormat);
}
}
} | [
"public void setOutputSize(Dimension size) {\n\t\t/*\n\t\t * If the specified output size is tiny enough to crash sws_scale, do\n\t\t * not accept it.\n\t\t */\n\t\tif ((size != null)\n\t\t\t\t&& ((size.height < MIN_SWS_SCALE_HEIGHT_OR_WIDTH) || (size.width < MIN_SWS_SCALE_HEIGHT_OR_WIDTH))) {\n\t\t\treturn;\n\t\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
free function NAME: CosZentih TYPE: free function Descript: Given a 3D vectors, this function calculate the COSINE value of the Zenith angle of the vector . Input Arguments: vector1: the 3D vector isUnit : if the vector is Unit Vector ie. |vector|=1 Output Arguments: Return: float: COSINE value of the Zenith angle . Hi... | public static float CosZenith(Coordinate vector1) {
float norm = (float) Math.sqrt(vector1.x*vector1.x
+ vector1.y*vector1.y
+ vector1.z*vector1.z);
vector1.z=vector1.z/norm;
return (float) vector1.z;
} | [
"public static float CosAzimuth(Coordinate vector1) {\n\n float normXY = (float) Math.sqrt(vector1.x*vector1.x + vector1.y*vector1.y);\n return (float) (vector1.y/normXY);\n }",
"public static float CosAngleBetween(Coordinate vector1, Coordinate vector2) {\n\n float norm = 1;\n floa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This shuts down all handlers and socket. If tearDown is true then it will forcefully shutdown all connections and try to return as soon as possible. Otherwise it will behave the same as void disconnect( String name ); | void disconnect( String name, boolean tearDown )
throws Exception; | [
"protected void doShutdown() {\n \t\t// Close down connections to all clients.\n \t\tfor (Client client : this.clients) {\n \t\t\ttry {\n \t\t\t\tclient.sendDisconnectMessage();\n \t\t\t} catch (IOException ioe) {\n \t\t\t\t// Ignored for now, who cares if we're shutting down. :)\n \t\t\t}\n \t\t\tclient.disconnect... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns start of this week (the closest past Sunday) | public long startOfThisWeek() {
final Calendar mc = Calendar.getInstance();
mc.setTimeZone(mC.getTimeZone());
int d = mC.get(Calendar.DAY_OF_WEEK);
mc.set(mC.get(Calendar.YEAR),
mC.get(Calendar.MONTH),
mC.get(Calendar.DAY_OF_MONTH) - d + 1, 0, 0, 0);
return mc.getTimeInMillis();
} | [
"int getWeekOffsetFromNow();",
"public static Date getFirstDateOfCurrentWeek(){\n \tCalendar cal = Calendar.getInstance();\n cal.set(Calendar.DAY_OF_WEEK , 1);\n return cal.getTime();\n }",
"public DateTime getFirstDayOfWeek(){\n return setStartTime().dayOfWeek().withMinimumValue();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this function gets an order and ensures that the current day is atleast a day before until the scheduled time. | private static void ensureTimes(SingleProviderOrder singleProviderOrder){
if(!singleProviderOrder.isAutomatic()){
LocalDate nextDate = singleProviderOrder.getDeliveryDate();
long hoursUntil = StoreController.current_date.until(nextDate, ChronoUnit.DAYS);
if(hoursUntil < 1){
throw new IllegalArgumentExcep... | [
"private static void ensureTimesAutomatic(SingleProviderOrder singleProviderOrder){\n\t\tif(singleProviderOrder.isAutomatic()){\n\t\t\tLocalDate nextDate = getNextAutoOrderDate(singleProviderOrder);\n\t\t\tlong hoursUntil = StoreController.current_date.until(nextDate, ChronoUnit.DAYS);\n\t\t\tif(hoursUntil < 1){\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes multiple rows in the report_category table. | @TransactionalReadWrite
public void deleteAll(List<ReportCategoryPk> pkList) throws ReportCategoryDaoException
{
for(ReportCategoryPk pk : pkList) {
delete(pk);
}
} | [
"public void deleteAll(List<ReportCategoryPk> pkList) throws ReportCategoryDaoException;",
"public void delete(ReportCategoryPk pk) throws ReportCategoryDaoException;",
"void deleteAllInBatch();",
"void deleteAllCopiedComponent(RecordSet compRs);",
"@Override\r\n public void deleteCopAnalysis(String copA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the images of the instruction manual and adds them in the page list | public void imageInitialization(){
for (int i = 0; i<12; i++){
String url = String.format("/images/instructionManual/InstructionPage%d.png", i);
ImageView page = new ImageView(new Image(url));
page.setPreserveRatio(true);
page.setSmooth(true);
page.set... | [
"private void setHelpImages() {\n setImage(\"/be/ac/ulb/infof307/g04/pictures/Help_Pictures/ReadArticle.png\", 250, 400, readArticleImage);\n setImage(\"/be/ac/ulb/infof307/g04/pictures/Help_Pictures/SearchByTitle.png\", 280, 380, searchArticleImage);\n setImage(\"/be/ac/ulb/infof307/g04/pictur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all the connection uniqueids that are currently registered as a shared connection. | Collection<String> getSharedConnectionIds() throws CoreException; | [
"Collection<String> getConnectedClientIds();",
"Collection<String> getSharedServiceIds() throws CoreException;",
"public static Set<String> getAllRegisteredChannelIds(){\n\t\treturn channelPool.keySet();\n\t}",
"long[] getAllServerSocketIds();",
"public List<Connection> getConnections();",
"public static ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build timed task with the results stored in the parser(s) | private Task buildTimedTask(EnumSet<ParserFlags> parseFlags,
DateParser dateParser, PriorityParser priorityParser,
DescriptionParser descriptionParser) {
if (!parseFlags.contains(ParserFlags.PRIORITY_FLAG)) {
return new Task(descriptionParser.getDescription(),
... | [
"AddCommand parseTimedTask()throws Exception {\r\n\r\n\t\tArrayList<String> hashtags = new ArrayList<String>();\r\n\t\tString date1, date2, day;\r\n\t\tString TaskDes = getTimedTaskDescription();\r\n\r\n\t\tif(!TaskDes.equals(NULL_STRING)){\r\n\r\n\t\t\tdate1 = extractTillKeyword(PREFIX_END_TIME);\r\n\r\n\t\t\t//Sp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Count number of baby item | public int numberOfBabyItem() {
String countBabyItem = "SELECT * FROM " + Constant.TABLE_NAME;
SQLiteDatabase db = this.getReadableDatabase();
Cursor cursor = db.rawQuery(countBabyItem, null);
return cursor.getCount();
// cursor.close();
} | [
"int getWeikeCountCount();",
"int getWeikeCount();",
"public abstract int numOfBaby();",
"public int numberOfBoats(){\n return this.boats.size();\n }",
"int getHerwinCount();",
"public int countBoats() {\r\n\t\treturn boats.size();\r\n\t}",
"public void countKiwi() \n {\n //check if ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
fill in the m_TrueSumBin and m_FalseSumBin values these will be valif until more data is added | protected void guaranteeSumsIfDirty() {
if (isDirty()) {
Arrays.fill(m_TrueSumBin, 0);
Arrays.fill(m_FalseSumBin, 0);
int trueSum = 0;
int falseSum = 0;
if (isHighIsBetter()) {
// sum up high is better
int i = m_FalseBi... | [
"public void fillBins() {\n\t\t// grab our current data and then transpose it\n\t\tList<List<String>> currentData = dc.getDataFold().get(currentFold);\n\t\tList<List<String>> tranData = dc.transposeList(currentData);\n\t\tfor (int row = 0; row < tranData.size(); row++) {\n\t\t\t// for each row of attribute values, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets import data for the generated Java file. | void setJavaImportData(JavaImportData javaImportData) {
this.javaImportData = javaImportData;
} | [
"abstract void importData();",
"@Override public void setupImports(CompilationUnit cu)\n{\n model_data.beginImport();\n ImportVisitor iv = new ImportVisitor(cu);\n accept(iv);\n}",
"public void GenarateImportfile()\n\t{\t\t\n\t\t//write import file\n\t\ttry\n\t\t{\n\t\t // Create file \n\t\t FileWri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
StartScreenButtonsPanel is the constructor of this class. It create a JPanel, sets the Layout of the Buttons, creates the Buttons, add them and also their actionListener. | public StartScreenButtonsPanel(startScreen2 ss){
super(); //calls in the constructor of a JPanel
//makes buttons be stacked one on top of the other
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
//Font Type and Size
Font BFont = new Font("Comic Sans MS", Font.BO... | [
"public void setUpButtonPanel() {\n\t\tpanelButton.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tpanelButton.setBackground(Color.DARK_GRAY);\n\n\t\tbuttonChan = new JButton(\"Set Channel\");\n\t\tbuttonChan.addActionListener(new SetChannelListener());\n\t\tbuttonStart = new JButton(\"Start Bets\");\n\t\tbuttonSta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleBasicSelectConstraint" $ANTLR start "ruleBasicSelectConstraint" ../org.iobserve.rac.constraint.ui/srcgen/org/iobserve/rac/constraint/ui/contentassist/antlr/internal/InternalConstraintLang.g:238:1: ruleBasicSelectConstraint : ( ( rule__BasicSelectConstraint__Alternatives ) ) ; | public final void ruleBasicSelectConstraint() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.iobserve.rac.constraint.ui/src-gen/org/iobserve/rac/constraint/ui/contentassist/antlr/internal/InternalConstraintLang.g:242:2: ( ( ( rule__BasicSelectC... | [
"public final void ruleBasicConstraint() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.iobserve.rac.constraint.ui/src-gen/org/iobserve/rac/constraint/ui/contentassist/antlr/internal/InternalConstraintLang.g:438:2: ( ( ( rule__BasicC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
probe fields with corresponding BloomFilters repeated string probe_fields = 6; | java.lang.String getProbeFields(int index); | [
"int getProbeFieldsCount();",
"public Builder addProbeFieldsBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureProbeFieldsIsMutable();\n probeFields_.add(value);\n onChanged();\n return this;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the time is before the current time by a dateFormat. | public static boolean isTimeBefore(String time, DateFormat dateFormat)
{
time = time.trim();
try
{
Date currentTime = new Date();
return dateFormat.parse(time).before(currentTime);
}
catch (ParseException e)
{
e.printStackTrace();
return false;
}
} | [
"public static boolean isTimeBefore(String time1, String time2, DateFormat dateFormat)\n\t{\n\t\ttime1 = time1.trim();\n\t\ttime2 = time2.trim();\n\t\ttry\n\t\t{\n\t\t\treturn dateFormat.parse(time1).before(dateFormat.parse(time2));\n\t\t}\n\t\tcatch (ParseException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\t\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Accuracy test for convertToTCUML(). Verify that the returned ModelElement is instance of ActivityGraphImpl, and its edges and node should be converted too. And verify simple attributes are copied to the converted instance. Change note: Verify that the return value is instance of ActivityGraphImpl . | public void testConvertToTCUML1() {
AbstractZUMLActivityDiagram diagram = createDiagramForTest();
// Set its simple attributes
diagram.setName("edge");
Namespace namespace = new CollaborationImpl();
diagram.setNamespace(namespace);
diagram.setVisibility(null);
... | [
"public void testConvertToTCUML2() {\n AbstractZUMLActivityDiagram diagram = new ZUMLActivityDiagramImpl();\n\n diagram.addStereotype(new StereotypeImpl());\n diagram.addTaggedValue(new TaggedValueImpl());\n diagram.addReferenceTag(new TaggedValueImpl());\n diagram.addSupplierDepe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get visual style map | public Map<Object, Object[]> getVisualStyleMap() {
if (this.visualStyleMap == null) {
this.setVisualStyleMap(new HashMap<Object, Object[]>());
}
return visualStyleMap;
} | [
"private String mapStyle() {\n return \"[\\n\" + \"{\\n\" + \"\\\"featureType\\\": \\\"administrative\\\",\\n\" + \"\\\"elementType\\\": \\\"all\\\",\\n\" + \"\\\"stylers\\\": [\\n\" + \"{\\n\" + \"\\\"visibility\\\": \\\"off\\\"\\n\" + \"}\\n\" + \"]\\n\" + \"},\\n\" +\n \"{\\n\" + \"\\\"feat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use CGameNotifications_LocalizedText.newBuilder() to construct. | private CGameNotifications_LocalizedText(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"SteamMsgGameNotifications.CGameNotifications_LocalizedTextOrBuilder getMessageOrBuilder();",
"SteamMsgGameNotifications.CGameNotifications_LocalizedTextOrBuilder getTitleOrBuilder();",
"SteamMsgGameNotifications.CGameNotifications_LocalizedText getMessage();",
"SteamMsgGameNotifications.CGameNotifications_Lo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if for the host from the initial request there is some redirection configured. Redirects in the following order: redirecturl for this host redirecthost for this host, if so with redirecturl redirect to resolved shortlink for this host empty string | @HourCache
public String resolveRedirect(String hostName, String requestPath, Set<String> formerHostsSet) throws Exception {
try {
if ((hostName == null || this.isIpAddress(hostName)) || ("".equalsIgnoreCase(hostName))) {
return ("");
}
HostHbm host = null;
try {
host = hostHbmDao... | [
"public static boolean processWebSiteRedirects(HttpServletRequest request, HttpServletResponse response) {\n String matchPath = request.getServletPath();\n String pathInfo = request.getPathInfo();\n if (pathInfo != null) {\n matchPath += pathInfo;\n }\n //String matchPa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
POST /careerportaltemplates : Create a new careerPortalTemplate. | @PostMapping("/career-portal-templates")
@Timed
public ResponseEntity<CareerPortalTemplate> createCareerPortalTemplate(@RequestBody CareerPortalTemplate careerPortalTemplate) throws URISyntaxException {
log.debug("REST request to save CareerPortalTemplate : {}", careerPortalTemplate);
if (career... | [
"PSTemplateSummary createTemplate(String name, String srcId, String siteId, PSTemplateTypeEnum type) throws PSDataServiceException;",
"@RequestMapping(method = RequestMethod.POST)\n public ResponseEntity<ActionTemplate> createActionTemplate(\n @RequestBody @Valid final ActionTemplate requestActionTemplate) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns whether channel is inside 1d gate. If the channel is equal to wither limiting channel or between them, it is inside the gate. | public boolean inGate(final int channel) {
if (dimensions != 1) {
throw new UnsupportedOperationException(
"inGate(int): can only be called for 1D gates.");
}
return (isSet && (channel >= lowerLimit) && (channel <= upperLimit));
} | [
"public boolean inGate(final int channelX, final int channelY) {\n boolean inside = false; // default value if not all conditions are met\n if (dimensions != 2) {\n throw new UnsupportedOperationException(\n \"inGate(int,int): can only be called for 2D gates\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Resolve event via authentication attribute set. | protected Set<Event> resolveEventViaAuthenticationAttribute(final Authentication authentication,
final Collection<String> attributeNames,
final RegisteredService service,
... | [
"protected Set<Event> resolveEventViaPrincipalAttribute(final Principal principal,\n final Collection<String> attributeNames,\n final RegisteredService service,\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return the right card container when development card type is given | public CardContainer getCardContainer(DevelopmentCardType developmentCardType){
for(CardContainer cardContainer: cardContainers){
if(cardContainer.getType().equals(developmentCardType)){
return cardContainer;
}
}
return null;
} | [
"public abstract String getCardType();",
"public CardsType getCardsType();",
"public CardType getCardType() {\n return type;\n }",
"public int getType(){\n return cardType;\n }",
"public String getCardType() {\treturn type;\t}",
"int getCardType();",
"java.lang.String getCreCard();",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Open the camera that best matches the specified params. This should be run on a background thread to avoid blocking the UI thread. | void openCamera(CameraParamsI params, int surfaceRotationDegrees); | [
"private void openCamera() {\n try {\n if (!mCameraLock.tryLock(MAX_CAMERA_WAIT_TIME, TimeUnit.SECONDS)) {\n throw new RuntimeException(\"Timed out while waiting to acquire camera!\");\n }\n } catch (InterruptedException e) {\n th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Points the userObj to a User. | public void pointToUserObj(User user)
{
userObj = user;
} | [
"public void setUserObject(gov.nih.nlm.ncbi.www.UserObjectDocument.UserObject userObject)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.UserObjectDocument.UserObject target = null... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Property Gets all property values for the hasNodeSettings property. | Collection<? extends NodeSettings> getHasNodeSettings(); | [
"boolean hasHasNodeSettings();",
"public NodeProperties getProperties() {\n return properties;\n }",
"public boolean[] getSettings() {\n return Global.getSettings();\n }",
"public HashMap<String, Boolean> getAllSettings() {\n return new HashMap<>(this.settings);\n }",
"@NotNull\n pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the current conditions description (i.e. cloudy) | String getConditions(); | [
"public String getConditiondescription() {\r\n return conditiondescription;\r\n }",
"io.dstore.values.StringValue getConditionDescription();",
"@Override\n public VictoryConditionDetails getDetails() {\n Map<String, String> info = new LinkedHashMap<>();\n\n VictoryConditionDetails det... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TESTING CREATING IMAGE COMMANDS. | @Test
public void testCreateImage() {
List<String> checkerboardInputs = new ArrayList<String>(
Arrays.asList("checkerboard", "new", "1", "36", "0", "0", "0", "255", "255", "255"));
assertTrue(Command.createImage.returnExecutable(
checkerboardInputs, null, null) instanceof CreateCheck... | [
"@Test\n public void testCreateLayeredImage() {\n List<String> fromInputs = new ArrayList<String>(\n Arrays.asList(\"newLayered\", \"outputImages/misc\"));\n assertTrue(Command.createLayeredImage\n .returnExecutable(fromInputs, null, null) instanceof ImportNewLayeredImageCommand);\n\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor requiring a Username/Password/Environment URLs. | public RestUtilities(final String envBaseUrl, final String username, final String password) {
this.username = username;
this.password = password;
this.envUrl = envBaseUrl;
} | [
"static void setCredentials(final String url, final String username, final String password, final String profile) {\n// MyLog.logCall();\n _url = url;\n _username = username;\n _password = password;\n _profile = profile;\n }",
"public JavaURLHttpAccessor(final String username... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method uses quick sort for sorting the archers. | public static List<Archer> quickSort(List<Archer> archers, Comparator<Archer> scoringScheme) {
QuickSort.sortList(archers, scoringScheme);
return archers;
} | [
"public static List<Archer> quickSort(List<Archer> archers, Comparator<Archer> scoringScheme) {\n //Sort array\n sort(archers, 0, archers.size() - 1, scoringScheme);\n return archers;\n }",
"private void quickSort() {\r\n\t\t//Runs through the 30 arrays.\r\n\t\tfor (int i = 0; i < 30; i++)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create privileges prepared statement | private void composePrivilegePreparedStatement(Connection conn, String databaseName, String username,
H2PrivilegeSet privileges) throws SQLException,
RSSManagerException {
RSSM... | [
"public void bindStatement() throws StandardException\n\t{\n\t\tprivileges = (PrivilegeNode) privileges.bind( new HashMap(), grantees, true);\n\t}",
"public void prepareStatement();",
"Statement createStatement();",
"@Test\n public void testDefaultDbPrivilege() throws Exception {\n\n policyFile\n .... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Contract__Group_6_1__1" $ANTLR start "rule__Contract__Group_6_1__1__Impl" InternalSymboleoide.g:3462:1: rule__Contract__Group_6_1__1__Impl : ( ';' ) ; | public final void rule__Contract__Group_6_1__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalSymboleoide.g:3466:1: ( ( ';' ) )
// InternalSymboleoide.g:3467:1: ( ';' )
{
// InternalSymboleoide.g:3467:1... | [
"public final void rule__Contract__Group_6_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSymboleoide.g:3455:1: ( rule__Contract__Group_6_1__1__Impl )\n // InternalSymboleoide.g:3456:2: rule__Contract__Group_6_1__1__... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Undo the action, adding the team | @Override
public void undo() {
project.addDevTeam(team, start, end);
} | [
"@Override\n public void redo() {\n project.removeDevTeam(team, start, end);\n }",
"private void undoAction(){\n if (allClickedButtons.size() > 0) {\n ButtonClass button = allClickedButtons.get(allClickedButtons.size() - 1);\n //If the button constituted a gameWin, then u... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
System.out.println("jAddStars.actionPerformed, event="+evt); TODO add your code for jAddStars.actionPerformed | private void jAddStarsActionPerformed(
final ActionEvent evt)
{
final AddStars inst = new AddStars();
inst.setLocationRelativeTo(null);
inst.setVisible(true);
... | [
"private void psActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"private void splPerActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"private void snameActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"private void st5ActionPerformed(java.awt.event.ActionEvent evt) {\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleNumericValue" $ANTLR start "entryRuleFLOAT" InternalMLRegression.g:653:1: entryRuleFLOAT : ruleFLOAT EOF ; | public final void entryRuleFLOAT() throws RecognitionException {
try {
// InternalMLRegression.g:654:1: ( ruleFLOAT EOF )
// InternalMLRegression.g:655:1: ruleFLOAT EOF
{
before(grammarAccess.getFLOATRule());
pushFollow(FOLLOW_1);
ruleFLO... | [
"public final void entryRuleFLOAT() throws RecognitionException {\r\n try {\r\n // ../hu.bme.mit.androtext.androres.ui/src-gen/hu/bme/mit/androtext/androres/ui/contentassist/antlr/internal/InternalAndroResDsl.g:537:1: ( ruleFLOAT EOF )\r\n // ../hu.bme.mit.androtext.androres.ui/src-gen/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sends a request to add blocking reservations in the database for the selected time period. | @FXML
void addBlock(ActionEvent event) {
Room r = roomList.getSelectionModel().getSelectedItem();
if (r == null) {
debugAlert("You must choose the Room for which you want to block reservations");
return;
}
LocalDate start = fromDate.getValue();
... | [
"public void addNewReservation() {\r\n\t\tif (!selectedRes.equals(\"\")) {\r\n\t\t\tnotReserved.clear();\r\n\t\t\tnewResAdded = true;\r\n\t\t\tbadReservation = false;\r\n\t\t\terror = \"\";\r\n\t\t\tfinal ResourceBundle msg = ResourceBundle.getBundle(\"messages\",\r\n\t\t\t\t\tnew Locale(LanguageBean.getLocaleFromC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use GetPayHTMLS.newBuilder() to construct. | private GetPayHTMLS(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private GetPayHTMLC(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"com.google.protobuf.ByteString\n getHtmlSourceBytes();",
"@Test\n public void salesOrderGetHtmlTest() throws ApiException {\n Integer number = null;\n String custom = null;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test that the values detected match what we get rendering the typesafe config with jackson directly. | @Test
public void testDetectConfigurationConfig() throws Exception {
Config config = ConfigFactory.load("componentTest").getConfig("configuredComponent");
ComponentConfigurator<ComponentConfiguration> configurator = new ComponentConfigurator<>(ComponentConfiguration.class);
ComponentConfiguration testP... | [
"@Test\n public void testDetectConfigurationConfigString() throws Exception {\n\n Config config = ConfigFactory.load(\"componentTest\");\n\n ComponentConfigurator<ComponentConfiguration> configurator = new ComponentConfigurator<>(ComponentConfiguration.class);\n\n ComponentConfiguration testPojo = mapper.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Output only. The shopping add gender recommendation. .google.ads.googleads.v13.resources.Recommendation.ShoppingOfferAttributeRecommendation shopping_add_gender_recommendation = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; | com.google.ads.googleads.v13.resources.Recommendation.ShoppingOfferAttributeRecommendation getShoppingAddGenderRecommendation(); | [
"com.google.ads.googleads.v13.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder getShoppingAddGenderRecommendationOrBuilder();",
"com.google.ads.googleads.v13.resources.Recommendation.ShoppingOfferAttributeRecommendation getShoppingAddColorRecommendation();",
"com.google.ads.googleads.v13.r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
photo to be renamed Creates an instance of revert name action | public RevertNameAction(Manager manager) {
} | [
"@FXML\n\tpublic void renamePhoto(ActionEvent event) {\n\t\trenameField.setVisible(true);\n\t\trenameWarningMsg.setVisible(true);\n\t\trenameField.setText(photoCaption);\n\t\toperationIndex = RENAME;\n\t}",
"void performRename();",
"public RenameAction(String name, Questionaire app) {\n\t\tsuper(name, app);\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
function for deleting storage groups of the given path from mTree. the log format is like "delete_storage_group,sg1,sg2,sg3" TODO: return value unused | public boolean deleteStorageGroupsFromMTree(List<Path> deletePathList)
throws MetadataException {
List<String> pathList = new ArrayList<>();
StringBuilder jointPath = new StringBuilder();
for (Path storagePath : deletePathList) {
pathList.add(storagePath.getFullPath());
jointPath.append(",... | [
"void deleteGroupSnapshots(StorageSystem storage, URI snapshot, TaskCompleter taskCompleter) throws DeviceControllerException;",
"void deleteGroups ( List<UUID> ids ) throws FileshareException;",
"public void deleteGroup(Group group);",
"public void setStorageGroupToMTree(String path) throws MetadataException... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'orderID' field has been set | public boolean hasOrderID() {
return fieldSetFlags()[10];
} | [
"public boolean isSetOrderId() {\n return EncodingUtils.testBit(__isset_bitfield, __ORDERID_ISSET_ID);\n }",
"public boolean isSetOrder() {\n return this.order != null;\n }",
"public boolean isSetOrder() {\n return this.order != null;\n }",
"public boolean isOrderEmpty(long orderID)\n\t{\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Order. L is a list. maximal depth of L. | public static <C> int ORDER(LIST<C> L) {
if ( isNull( L ) ) {
return 0;
}
int n = 0;
for ( C a : L.list ) {
if ( a instanceof LIST ) {
LIST<C> LP = null;
try {
LP = (LIST<C>) a;
} catch(Cla... | [
"public IList<ITreeNode<E>> levelOrder() throws ETree;",
"public void levelOrder(){\n\t\tQueue<BinaryTreeNode> q = new LinkedList<BinaryTreeNode>();\n\t\tq.add(this);\n\t\twhile(!q.isEmpty()){\n\t\t\tBinaryTreeNode polledElement = (BinaryTreeNode)q.remove();\n\t\t\tif(null!=polledElement){\n\t\t\t\tpolledElement.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a JavaURLHttpAccessor with the default basic authentication information. | public JavaURLHttpAccessor(final String username, final String password) {
ContractCheck.mustNotBeNull(username, "username"); //$NON-NLS-1$
this.defaultUserInfo = username + ":" + (password != null ? password : ""); //$NON-NLS-1$ //$NON-NLS-2$
} | [
"BasicAuthentication getBasicAuthentication();",
"void setBasicAuthentication(BasicAuthentication basicAuthentication);",
"private void setBasicAuthentication(HttpUriRequest httpUriRequest, String username, String password) {\n // set basic authentication\n String authString = username + \":\" + p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an PlatformMetaData object from a Parcel. | @Override
public PlatformMetaData createFromParcel(Parcel in) {
return new PlatformMetaData(in);
} | [
"private PlatformMetaData(Parcel in) {\n int size = in.readInt();\n if (size == -1) metaData = null;\n else {\n metaData = new HashMap<>();\n for (int j = 0; j < size; j++) {\n metaData.put(in.readString(), in.readString());\n }\n }\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an array of every particle, constraint, and composite added to the Group. | public ArrayList getAll() {
ArrayList list = new ArrayList();
list.addAll(getParticles());
list.addAll(getConstraints());
list.addAll(getComposites());
return list;
} | [
"Collection<Constraint> getGroupConstraints(Group group);",
"protected ParticleGroup createParticleGroup() {\n\t\treturn new ParticleGroup();\n\t}",
"java.util.List<PrimitiveGroup> getPrimitivegroupList();",
"public List<? extends PropositionDefinitionContract> getCompoundComponents();",
"Object[] getChildA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column tt_fitment_detail.FITMENT_DETAIL_ID | public Integer getFitmentDetailId() {
return fitmentDetailId;
} | [
"public Number getDetailId() {\n return (Number)getAttributeInternal(DETAILID);\n }",
"public Long getDetailId() {\n\t\treturn detailId;\n\t}",
"public Integer getProfitandlossJyDetailId() {\n return profitandlossJyDetailId;\n }",
"public void setFitmentDetailId(Integer fitmentDetailId) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
unwrap Returns the list of child elements of the jaxb object | public Object[] unWrap(Object jaxbObject, ArrayList<String> childNames) throws JAXBWrapperException; | [
"ArrayList<XMLPart> getChildrenElements();",
"java.util.List<org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement> getBridgeElementList();",
"private void unwrap(Object wrappedDocument) {\n String methodSig = \"UnWrappedMessage$RPCStyleUnwrapper :: \" +\n \"unwrap(Objec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form CreateModelNameVisual | public CreateModelNameVisual() {
initComponents();
} | [
"@RequestMapping(value = \"/new\", method = RequestMethod.GET)\n\tpublic String getCreatePersonForm(Model model) {\n\t\tmodel.addAttribute(new Person());\n\t\treturn doGetCreatePersonForm(model);\n\t}",
"public void modelCreated(PrimeModel model);",
"private String renderCreatePage(Model model) {\n\t\tmodel.add... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets exception type id. | public Integer getExceptionTypeId() {
return exceptionTypeId;
} | [
"public static Oid getTypeId()\n\t{\n\t\tsynchronized(Backend.THREADLOCK)\n\t\t{\n\t\t\treturn _getTypeId();\n\t\t}\n\t}",
"public String getEtypeId() {\r\n return etypeId;\r\n }",
"public final Class getExceptionType() {\n return $exceptionType;\n }",
"public String getEinoExceptionType() {\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new RunFilter with a set of run numbers to accept. | RunFilter(final Set<Integer> acceptRuns) {
if (acceptRuns.isEmpty()) {
throw new IllegalArgumentException("The acceptRuns collection is empty.");
}
this.acceptRuns = acceptRuns;
} | [
"List<RunRecord> getRuns(ProgramRunStatus status, Predicate<RunRecord> filter);",
"public AXLFileFilter(String[] filters) {\n\t this(filters, null);\n }",
"public PipelineFilter()\n {\n }",
"public SimpleTestFilter() {\n }",
"void addFilter(Spec<Task> filter);",
"private FilterPipeline create... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
seta o valor de codigoProduto | public void setCodigo_produto(int pCodigoProduto){
this.codigoProduto = pCodigoProduto;
} | [
"public void setCodProduto(int value) {\n this.codProduto = value;\n }",
"public void setCodigo(java.lang.String codigo) {\n this.codigo = codigo;\n }",
"public void setCodigo_pcom(java.lang.String newCodigo_pcom);",
"public void setCodigo(String codigo) {\r\n\r\n\t\tthis.c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the environment vars of this job. | @Override
public String getEnvironmentVars() {
return model.getEnvironmentVars();
} | [
"@PublicAtsApi\n public Map<String, String> getEnvVariables() {\n\n return this.processExecutor.getEnvVariables();\n }",
"@Override\n public Map<String, String> getEnvironmentVars() {\n return environmentVars;\n }",
"public String[] getEnvironmentParams()\r\n\t{\r\n\t\treturn environme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Encode a UTF32 encoded string datatype to the stream | private void encodeUnicode32DataType(Encoder encoder, int size) throws IOException {
encoder.openElement(ELEM_TYPE);
encoder.writeString(ATTRIB_NAME, "");
encoder.writeString(ATTRIB_METATYPE, "array");
encoder.writeSignedInteger(ATTRIB_SIZE, size);
encoder.writeSignedInteger(ATTRIB_ARRAYSIZE, size / 4);
enc... | [
"void writeUTF(String s) throws IOException;",
"public String encode(String strToEncode) throws PhoneticEncoderException;",
"public ICodec<String> utf_16be();",
"public String base32() { return Encode.toBase32(this); }",
"private void encodeStringLiteral(ByteBuf out, CharSequence string) {\n int huff... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public EnvelopeTrackerBase copy(); Set maximum step size allowed between space charge kicks | public void setStepSize(double step) {
dblMaxStep = step;
} | [
"public abstract void setNumberOfPINEnvelopeCopies(int copies);",
"void setMaximumSize(int newMaxSize);",
"public double getInternalStepSize ();",
"@Override\n public int getMaxCapacity() {\n return 156250000;\n }",
"void setMaxSpecialMemory(long maxBytes);",
"protected int getMaximumNumberOf... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parses the "Ram=..." clauses of the RAM LL entries for BRAMs and enters the data into the RAMGroupHash. Since a certain RAM may already have a RAMGroup entry in the RAMGroupHash, the method performs a lookup first to see if the RAM's RAMGroup entry exists. If the entry exists, the method adds a RAMRBEntry to the RAMGro... | final public void BRam(int offset, int frame, int frameOffset, String block) throws ParseException {
String lutType;
int address;
RAMGroup rg;
RAMRBEntry rrb;
String key;
jj_consume_token(RAM);
jj_consume_token(EQUAL);
jj_consume_token(LUT);
lutType = token.toString();
jj_co... | [
"final public void SliceRam(int offset, int frame, int frameOffset, String block) throws ParseException {\r\n String lutType;\r\n int address;\r\n RAMGroup rg;\r\n RAMRBEntry rrb;\r\n String key;\r\n jj_consume_token(RAM);\r\n jj_consume_token(EQUAL);\r\n jj_consume_token(LUT);\r\n lutType = t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
we are testing to see if we are able to combine dissimilar geometric relations correctly to extract query geometry. Note, that returned predicate is null since we can't represent CQL expression fully into single query geometry and predicate | @Test
public void testIntesectAndCrossesAndLike()
throws CQLException, TransformException, ParseException {
final Filter filter =
CQL.toFilter(
String.format(
"CROSSES(%s, POLYGON((0 0, 0 25, 10 25, 10 0, 0 0))) AND location == 'abc'",
geomAttributeName));... | [
"@Test\n public void testWithMultipleAttributes() throws CQLException, TransformException, ParseException {\n final Filter filter =\n CQL.toFilter(\n String.format(\n \"INTERSECTS(%s, POLYGON((0 0, 0 25, 10 25, 10 0, 0 0))) AND INTERSECTS(geomOtherAttr, POLYGON((0 0, 0 5, 5 5, 5... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates combinations recursively up to length of input to enumerate all possible paths | private void genCombinations(int[] input, int start, int index, int[] combos) {
if (index == input.length) {
return;
}
addCombo(combos, index);
for (int i = start; i < input.length; i++) {
combos[index] = input[i];
genCombinations(input, i+1, index+1, ... | [
"private ArrayList<String> PossiblePaths(ArrayList<String> paths, ArrayList<String> nodes){\n \n ArrayList<String> possible = new ArrayList<String>();\n StringBuilder build = new StringBuilder();\n \n // create first possible path from nodes array\n for (int i=1; i<nodes.si... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
RADIUS_DEFAULT = RADIUS_DEFAULT + progress + 100; | @Override
public void onProgressChanged(SeekBar seekBar, int progress,
boolean fromUser) {
switch (progress){
case 1:
RADIUS_DEFAULT = 2300;
break;
case 2:
... | [
"void changeRadius (int boostFactor)\r\n {\r\n\tradius += boostFactor;\r\n }",
"public void incrementProgress () {\n isSpinning = false;\n progress++;\n if (progress > 360)\n progress = 0;\n// setText(Math.round(((float) progress / 360) * 100) + \"%\");\n postIn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Log.d(TAG,"queryContactsFromDB onNext:value="+value.intValue()); Log.d(TAG,"queryContactsFromDB onNext thread:"+Thread.currentThread().getName()); | @Override
public void onNext(Integer value) {
if(num_contacts_tv != null){
sum = value.intValue();
num_contacts_tv.setText("共有" + sum + "个联系人");
}
} | [
"@Override\n public void onNext(Integer value) {\n\n if(value.intValue() != sum){//如果人数有变化\n datas.clear();\n allData.clear();\n nums.clear();\n addData();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Mutator for setting the player's gold count | public void setGoldCount(JLabel gold_count) {
this.gold_count = gold_count;
} | [
"public void setGold(int gold) {}",
"public void addGold(){\n this.gold = this.gold + 1;\n }",
"public void setGold(double g) { \r\n this.gold = g; \r\n }",
"public void setGoldCoins(int value) {\n this.goldCoins = value;\n }",
"public void addGold(int g){\n this.gol... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletion of trigger objects from database based on given triggerId. | @Override
public boolean deleteTrigger(String triggerId) {
SessionFactory sessionFactory = null;
Session session = null;
Trigger trigger = null;
boolean bool = false;
logger.info("Delete the trigger objects from database. JobId :" + triggerId);
try {
sessionFactory = HibernateUtils.getSessionFacto... | [
"@DELETE\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"/{alertId}/triggers/{triggerId}\")\n @Description(\"Deletes a trigger having the given ID and removes any associations with the alert or notifications.\")\n public Response deleteTriggersById(@Context HttpServletRequest req,\n @PathParam(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is a function that construct the image cache file path by using 1. Target Cache Directory 2. Image Key | public static String createFilePath(File cacheDir, String imageKey)
{
try
{
// Get the ABsolute Path of the Cache Directory. E.g /root/......
String absolutePath = cacheDir.getAbsolutePath();
// Use URLEncoder to make sure the file name is valid
String... | [
"public static String createFilePath(File cacheDir, String key) {\n try {\n // Use URLEncoder to ensure we have a valid filename, a tad hacky but it will do for\n // this example\n return cacheDir.getAbsolutePath() + File.separator +\n CACHE_FILENAME_PREFIX... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column GWK.LS_CONSUMEINFO.REF_BATCH_ID | public void setRefBatchId(String refBatchId) {
this.refBatchId = refBatchId == null ? null : refBatchId.trim();
} | [
"public void setRefBatchNo (java.lang.String refBatchNo) {\n\t\tthis.refBatchNo = refBatchNo;\n\t}",
"public String getRefBatchId() {\n return refBatchId;\n }",
"private void setBatchProcessID(java.lang.Long value) {\n __getInternalInterface().setFieldValue(BATCHPROCESSID_PROP.get(), value);\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the AuxItem data for a given AuxItem tag. | public Hollerith[] getAuxData(int tag) {
return stat.getAuxData(tag);
} | [
"public final Object get(String tag) {\n\t\treturn tags.get(tag).data;\n\t}",
"private short getData(short tag) {\n\t\tshort offset = 0;\n\n\t\tswitch (tag) {\n\t\t// 4F - Application identifier (AID)\n\t\tcase (short) 0x004F:\n\t\t\treturn JCSystem.getAID().getBytes(buffer, _0);\n\n\t\t// 5E - Login data\n\t\tca... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Executes click method in each listener | public void click(){
for(MouseListener m: listeners){
m.mouseClicked();
}
} | [
"public void click()\r\n\t{\r\n\t\tsilentClick();\r\n\t}",
"public static void clickEvent() {\n counterClicks += 1;\n }",
"public void click(){\n \t try{\n \t\t uniqId.click();\n \t\t// reportEvent.Status(e1.getClassName().toString().replace(\"com.uhg.vbr.panels.\",\"\")+\"page\",\"Button\"+labe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use PlusOneData.newBuilder() to construct. | private PlusOneData(Builder builder) {
super(builder);
} | [
"private GpsData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Data(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private IncrementalField(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'CREATE_DT' field. | public void setCREATEDT(java.lang.CharSequence value) {
this.CREATE_DT = value;
} | [
"public org.LNDCDC_NCS_TCS.SHOWS.apache.nifi.LNDCDC_NCS_TCS_SHOWS.Builder setCREATEDT(java.lang.CharSequence value) {\n validate(fields()[28], value);\n this.CREATE_DT = value;\n fieldSetFlags()[28] = true;\n return this;\n }",
"public void setCreateDt(final Date createDt) {\n this.c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets (as xml) the "horizAngle" attribute | public void xsetHorizAngle(org.landxml.schema.landXML11.Angle horizAngle)
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.Angle target = null;
target = (org.landxml.schema.landXML11.Angle)get_store().find_a... | [
"public void setHorizAngle(double horizAngle)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(HORI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return whether or not the value specifies TDB | protected boolean isTdb(final String theType) {
return JenaModelType.TDB.toString().equals(theType);
} | [
"public boolean isDouble() { return (asDouble() != null); }",
"public boolean isTypical()\n {\n if (_tableClass == HuffmanTableClass.DC) {\n return\n Arrays.equals(_lengthBytes, TYPICAL_LUMINANCE_DC_LENGTHS) &&\n Arrays.equals(_valueB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add the parameter to the list at the beginning (index = 0). Integers in list are shifted to the right. If an element is added to a full list, last element "falls of" | public void add(int parameter) {
// if counter is equal to length of list, increase size of list by 50%
if (count == list.length) {
// determine size of new array, 50% larger than original array
int newSize = (int) (list.length * 1.5);
// create new array
int[] newList = new int[newSize];
// copy all... | [
"public void addFirst(T t) {\n if (size == elements.length) // checks potential overflow\n ensureCapacity(); // increase capacity\n for (int j = size; j > 0; j--) // treat elements of list with indexes in range [1, n]\n elements[j] = elements[j - 1]; // element shifts to right\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XIfExpression__Group__4" $ANTLR start "rule__XIfExpression__Group__4__Impl" ../com.avaloq.tools.dslsdk.check.ui/srcgen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:12019:1: rule__XIfExpression__Group__4__Impl : ( ')' ) ; | public final void rule__XIfExpression__Group__4__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:12023:1: ( ( ')' ) )
... | [
"public final void rule__XIfExpression__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:10403:1: ( ( ')' ) )\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the list of themes declared by the project and its dependencies. | @NotNull
public Collection<ThemeEditorStyle> getProjectThemes() {
return Collections.unmodifiableList(myProjectThemes);
} | [
"public String[][] getThemes()\n {\n return configfile.themes;\n }",
"public String[] getAllThemeNames() {\n\tjava.util.List names = resources.getStringList(\"themelist\");\n\treturn (String[]) names.toArray(new String[names.size()]);\n }",
"public List<String> getThemeNames() {\n return getEleme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used by Sabacc to loop through the player's hand and randomly decide if the card should be swapped for an entirely random card from the Sabacc deck. Also does data validation to make sure that duplicate cards are not drawn from the deck and placed in the player's hand. | public void randomizeHandSabacc() {
for (int i = 0 ; i < this.cards.length ; i++) {
// for (int j = 0 ; j < i ; j++) {
// do {
// if (this.rand.nextInt(5) == 0) {
// this.cards[i].replaceCard(this.rand.nextInt(Suit.getCardsInSuit()));
// ... | [
"public void checkCardStackAndShuffle() {\n if (gameModel.getCardDeck().getCardsFromCardDeck().size() == 0) { //checks size\n Collections.shuffle(gameModel.getCardDeck().getPlayedCardsDeck()); //shuffles the cards that are not in the game anymore\n for (int i = 0; i < gameModel.getCardD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prints the fields of a document for human consumption. | @Override
public final String toString() {
StringBuilder buffer = new StringBuilder();
buffer.append("Document<");
for (int i = 0; i < fields.size(); i++) {
IndexableField field = fields.get(i);
buffer.append(field.toString());
if (i != fields.size() - 1) {
buffer.append(" ");
... | [
"public void printFields(PDDocument pdfDocument) throws IOException\n {\n PDDocumentCatalog docCatalog = pdfDocument.getDocumentCatalog();\n PDAcroForm acroForm = docCatalog.getAcroForm();\n List<PDField> fields = acroForm.getFields();\n\n System.out.println(fields.size() + \" top-lev... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new choix entreprise. | public ChoixEntreprise() {
} | [
"void createChoix(String nom, boolean juste){\n Choix c = new Choix(nom,juste);\n }",
"public CrearEquip() {\n initComponents();\n this.setLocationRelativeTo(null);\n\n this.controladorEquipo = new ControladorEquipo();\n\n this.jTFIdEquipo.setText(String.valueOf(controladorEq... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Do the Print Mailing Labels Use Case | public void doPrintMailingLabels() throws IOException
{
String directory = fileSystem.getDefaultDirectory();
JFileChooser chooser = new JFileChooser(directory);
if (chooser.showDialog(gui, "Print") == JFileChooser.APPROVE_OPTION)
{
PrintWriter writer =
n... | [
"public void printShippingLabel(ShippingLabel shippingLabel);",
"public void main(String[] a1) {\n\n\t\t\tLabelPrinter instanceofLabelPrinter = new LabelPrinter(\"Pranav\", \"Jagadeesh\", \"Alphabets\", 1, \"Section-A\");\n\t\t\tinstanceofLabelPrinter.print();\n\t\t\t\n//\t\t\tLabelPrinter instanceofLabelPrinter ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
invoke contract service find all contract code id by list customer uuid | List<ListContractResponse> invokeContract_getAllContractCodeByCustomerIds(String customerIds) {
// System.out.println("invokeContract_getAllContractCodeByCustomerIds:" + customerIds);
idPayload.setId(customerIds);
try {
ResponseDTO<Object> dto = invoker.call(urlContractRequest + "/get... | [
"List<UUID> invokeContract_getCustomerIdByContractCode(List<String> ContractCodes) {\n\n idPayload = new IdPayload<List<String>>();\n idPayload.setId(ContractCodes);\n\n try {\n ResponseDTO<Object> dto = invoker.call(urlContractRequest + \"/getCustomerIdsByContractCodes\", idPayload,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field permisDesc is set (has been assigned a value) and false otherwise | public boolean isSetPermisDesc() {
return this.permisDesc != null;
} | [
"public boolean isSetDesc() {\n return this.desc != null;\n }",
"public boolean isSetDesc() {\n return this.desc != null;\n }",
"public boolean isSetDescr() {\n return this.descr != null;\n }",
"public boolean isSetPermissionDesc() {\n return this.permissionDesc != null;\n }",
"public bo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stub method for changeRefState to allow its remote invocation on the server. | @Override
public void changeRefState(refState state){
outObject = "changeRefState";
outObject += "=" + state.name();
try {
out.writeObject(outObject);
} catch (IOException ex) {
}
try {
inObject = (String) in.readObject();
} catch (IOEx... | [
"public void receiveResultchangeState(\n org.eclipse.mylyn.targetprocess.modules.services.RequestServiceStub.ChangeStateResponse result\n ) {\n }",
"public IServerState changeState(ServerEvents serverEvent);",
"public abstract boolean setSwitchState(int switch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string arrivalTime = 5; | java.lang.String getArrivalTime(); | [
"public void setArrivalTime(long v) {this.arrival = v;}",
"public void setExpectedArrival (int timeOfArrival) {\r\n\t\texpectedArrival = timeOfArrival;\r\n\t}",
"public int getArrivalTime()\n {\n return arrivalTime;\n }",
"public Builder setArrivalTime(\n java.lang.String value) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Resolve the EncryptedKey elements containing the data encryption key used to encrypt the specified EncryptedData element. | Iterable<EncryptedKey> resolve(EncryptedData encryptedData); | [
"private SecretKey getUsersDecryptedDataKey(String email, char[] password)\n throws EncryptionUtilsException, DBUtilsException {\n LOGGER.debug(\"Getting users encrypted data key\");\n /* Get the users encrypted data key */\n EncryptedEntry encryptedDataKey = databaseController\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
SHIPS=================================== resets ship to known state | @POST("/ResetShips")
int resetShip(@Body int id) throws GameNotFoundException; | [
"void unsetShipFrom();",
"void unsetShipTo();",
"private void resetStates() {\n\t\tthis.setState(StateType.SALTY_SIGNALING, \"Unknown\");\n\t\tthis.setState(StateType.RTC_SIGNALING, \"Unknown\");\n\t\tthis.setState(StateType.RTC_ICE_CONNECTION, \"Unknown\");\n\t\tthis.setState(StateType.RTC_ICE_GATHERING, \"Unk... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
create a vertex shader type (GLES20.GL_VERTEX_SHADER) or a fragment shader type (GLES20.GL_FRAGMENT_SHADER) | public static int loadShader(int type, String shaderCode){
int shader = GLES20.glCreateShader(type);
// add the source code to the shader and compile it
GLES20.glShaderSource(shader, shaderCode);
GLES20.glCompileShader(shader);
return shader;
} | [
"void create(Shader shader);",
"private static int loadShader(int type, String shaderCode){\n int shader = GLES20.glCreateShader(type);\n\n // add the source code to the shader and compile it\n GLES20.glShaderSource(shader, shaderCode);\n GLES20.glCompileShader(shader);\n\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the t value of offset pt perpendicular to this line. | public double
offsetPtTValue(double x0, double y0)
{
double x1 = this.getP1().getX();
double y1 = this.getP1().getY();
double x2 = this.getP2().getX();
double y2 = this.getP2().getY();
double a = x2 - x1;
double b = y2 - y1;
return (-(a*(x1 - x0) + b*(y1 - y0))/(a*a + b*b));
} | [
"public CMLVector3 getPerpendicularVector() {\r\n Vector3 v = this.getEuclidVector3().getPerpendicularVector();\r\n return (v == null) ? null : CMLVector3.createCMLVector3(v);\r\n }",
"public GLine2D perpendicularLine()\n {\n return new GLine2D(-dy, dx, p);\n }",
"@XmlElement(\"Per... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if the first date is after the second date ignoring time. | public static boolean isAfterDay(Date date1, Date date2) {
if (date1 == null || date2 == null) {
throw new IllegalArgumentException("The dates must not be null");
}
Calendar cal1 = Calendar.getInstance();
cal1.setTime(date1);
Calendar cal2 = Calendar.getInstance();
cal2.setTime(date... | [
"boolean isAfter( DateTime other );",
"public boolean after(Date other){\r\n\t\tif(other.before(this)){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public static boolean isLaterDate(final Date date1, final Date date2) {\n return getZeroTimeDate(date2).getTime() - getZeroTimeDate(date1).... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Defines a listener interface that can be notified when new replays are detected and they are autosaved. | public interface ReplayAutosaveListener {
/**
* Called when a new replay file is detected and auto-saved by Sc2gears.<br>
* New replays are only detected and auto-saved if replay auto-save is enabled in Sc2gears.<br>
* Replay auto-save status can be checked with {@link InfoApi#isReplayAutoSaveEnabled()}.
... | [
"public void addRecordingUpdateListener(RecordingUpdateListener listener);",
"public interface LastPlayedRetrievedListener {\n\n public void onLastPlayedRetrieved(final List<Radio> radios);\n }",
"public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownload... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |