query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
$ANTLR end "rulePartElements" $ANTLR start "entryRulePartOptions" ../de.nordakademie.mwi13a.team1.dependency/srcgen/de/nordakademie/mwi13a/team1/dependency/parser/antlr/internal/InternalDependency.g:226:1: entryRulePartOptions returns [EObject current=null] : iv_rulePartOptions= rulePartOptions EOF ; | public final EObject entryRulePartOptions() throws RecognitionException {
EObject current = null;
EObject iv_rulePartOptions = null;
try {
// ../de.nordakademie.mwi13a.team1.dependency/src-gen/de/nordakademie/mwi13a/team1/dependency/parser/antlr/internal/InternalDependency.... | [
"public final EObject rulePartElements() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_0=null;\r\n Token otherlv_1=null;\r\n EObject lv_option_2_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../de.nordakad... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value of the name property to a long. | public void setLong(String name, long value); | [
"void setLongProperty(String name, long value);",
"public void put(String name, long value){\n\t fields.put(name, new Long(value));\n\t}",
"public static PropertyDescriptionBuilder<Long> longProperty(String name) {\n return PropertyDescriptionBuilder.start(name, Long.class, Parsers::parseLong);\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update INI file items. | public static void updateINIFileItems(File iniFile, String section, String newItemValue, String[] itemNames) {
IniFile ini = readINI(iniFile);
IniSection iniSection = ini.getSection(section);
int x = 0;
while (x < itemNames.length) {
iniSection.getItem(itemNames[x]).setValue(newItemValue);
x++;
}... | [
"public static void updateAllINIFileItemsInSection(File iniFile, String section, String newItemsValue) {\r\n\t\t\tIniFile ini = readINI(iniFile);\r\n\t\t\tIniSection iniSection = ini.getSection(section);\r\n\t\t\tIterator<IniItem> it = iniSection.getItems().iterator();\r\n\t\t\twhile (it.hasNext()) {\r\n\t\t\t\tIni... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0" $ANTLR start "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17816:1: rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1 :... | public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17820:1: ( ( rule... | [
"public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1() 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... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Event handler for when the snapshot button is pressed ... bring up a dialog box | private void handleSnapshotButtonPress() {
if (!mapping && photo == null) {
updateStatusBar("Error: No image available ... snapshot not saved", Color.red.darker());
return;
}
FileDialog saveDialog = new FileDialog(this, "Save PNG", FileDialog.SAVE);
saveDialog.setDirectory(workingDirectory);
saveDialog.... | [
"private void snapBFButtonActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"public void activateSnapshotButton() {\n\t\tsnapShotButton.setEnabled(true);\n\t}",
"private void openDialog(){\n \t\tdialog = new AlertDialog.Builder(ConvertedPicScreen.this).create();\n \t\tdialog.setMessage(\"The picture is... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .AxisType axisType = 4; | int getAxisTypeValue(); | [
"public int getAxis()\n {\n return axis;\n }",
"public void setAxis(String axis)\n {\n this.axis = axis;\n }",
"public void setAxisInfo( int axis, AxisInfo info ){\n }",
"AxisType createAxisType();",
"public void setAutoRange() {\n this.customAxis=false;\n addGraphPanel();\n }",
"v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves a specific leave entry | public LeaveEntry selectLeaveEntry(String id) throws DaoException, DataObjectNotFoundException {
String sql = "SELECT e.id, t.fixedCalendar AS fixedCalendar,e.leaveType, e.leaveTypeId, t.name AS leaveTypeName, startDate, endDate, days, halfDay, status, reason, userId, applicantId, applicationDate, approvalDate... | [
"MedicalLeave fetch(Integer id);",
"public final int getLeaveId() {\n\n return leaveId;\n }",
"@Override\n @Transactional(readOnly = true)\n public Optional<Leave> findOne(Long id) {\n log.debug(\"Request to get Leave : {}\", id);\n return leaveRepository.findById(id);\n }",
"@Over... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns TRUE if this MotifCollection returns a system predefined collection (like Transfac or JASPAR) | public boolean isPredefined() {
return hasConstructorString(Operation_new.COLLECTION_PREFIX);
} | [
"boolean hasCollectionName();",
"boolean isSetSystem();",
"boolean isBasicCollectionType();",
"public boolean isSetSystem()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SYSTEM$0) != 0;\n }\n }",
"boolean isCollect... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Observer callback for state change of a object | private void handleObjectStateChange(GameObject obj){
ImageView imageView = (ImageView) getNodeById(obj.getObjID());
if(imageView != null) {
imageView.setImage(resources.getImage(obj.getClassName(), obj.getState()));
System.out.println(obj + " changed state to: " + obj.getState()... | [
"protected void stateChanged() {\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}",
"public void stateChanged() {\n this.setChanged();\n this.notifyObservers();\n }",
"public abstract void stateChanged(STATE state);",
"public void stateChanged(StateChangedCallback handler);",
"public v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets (as xml) the "SearchRecurrenceRule" element | void xsetSearchRecurrenceRule(org.apache.xmlbeans.XmlString searchRecurrenceRule); | [
"void setSearchRecurrenceRule(java.lang.String searchRecurrenceRule);",
"org.apache.xmlbeans.XmlString xgetSearchRecurrenceRule();",
"void setNilSearchRecurrenceRule();",
"java.lang.String getSearchRecurrenceRule();",
"void xsetSearchRecurrenceStart(org.apache.xmlbeans.XmlDateTime searchRecurrenceStart);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ExStart ExFor:OoxmlCompliance ExFor:OoxmlSaveOptions.Compliance ExSummary:Shows conversion VML shapes to DML using ISO/IEC 29500:2008 Strict compliance level | @Test
public void iso29500Strict() throws Exception
{
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
//Set Word2003 version for document, for inserting image as VML shape
doc.getCompatibilityOptions().optimizeFor(MsWordVersion.WORD_2003);
... | [
"@Test\r\n public void iso29500Strict() throws Exception\r\n {\n Document doc = new Document();\r\n DocumentBuilder builder = new DocumentBuilder(doc);\r\n\r\n // If we configure compatibility options to comply with Microsoft Word 2003,\r\n // inserting an image will define its sha... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column employee_institution_datadictionaryView.InsuranceNum | public String getInsuranceNum() {
return insuranceNum;
} | [
"public java.lang.String getInsuranceNumber() {\n return insuranceNumber;\n }",
"public void setInsuranceNum(String insuranceNum) {\n this.insuranceNum = insuranceNum;\n }",
"public Insurance getInsurance(Integer insuranceId) throws DAOException;",
"@ApiModelProperty(example = \"1100000125... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a map of the classes and their associated document roles. | public Map<String, Role> getClassAndTheirRoles() {
return classAndRole;
} | [
"public Map<String, DocumentTypeDetails> getDocTypes() {\n return docTypes;\n }",
"private Map<String, String[]> getServletRoles() {\n Reflections reflections = new Reflections(new ConfigurationBuilder()\n .setUrls(ClasspathHelper.forPackage(\"com.blakesinner.quickNotes.controller\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create changeImage method Call changeImage when the user click the next button When the changeImage is call, i is added for each click What ever i is equal to, the image assign to that number That image will then load. | @FXML
private void changeImage(ActionEvent event) {
i++;
if (i == 1) {
myImage.setImage(new Image("/sample/Image/41jOy+rrcHL (1).jpg"));
} else if (i == 2) {
myImage.setImage(new Image("/sample/Image/HowlMovingCastle.jpg"));
} else if (i == 3) {
... | [
"@FXML\r\n private void changeImageBack(ActionEvent event) {\r\n i--;\r\n if (i == 1) {\r\n myImage.setImage(new Image(\"/sample/Image/41jOy+rrcHL (1).jpg\"));\r\n i = 16;\r\n } else if (i == 2) {\r\n myImage.setImage(new Image(\"/sample/Image/HowlMovingCastl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Assign properties to one kingdom according to the property list for CalculatePropertyAttributes.feature and IdentifyProperties.feature | boolean assignPropToKingdom(List<Property> list, Kingdom kingdom) throws Exception; | [
"public interface CreateProperty {\n /**\n * Give the list of properties in one kingdom for CalculatePropertyAttributes.feature and IdentifyProperties.feature without assigning it to any kingdom\n * @param kingdom the kingdom\n * @return the property list\n * @throws Exception null detection\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Abstraction for a generic cell editor. | public interface CellEditorView extends IsWidget, TakesValue<String>, HasKeyDownHandlers, Focusable, HasPlaceholder {
/**
* Set the validation state of the cell.
*
* @param state
*/
public void setValidationState(ValidationState state);
/**
* Set the help text of the cell.
*
* @param he... | [
"public static interface AttribEditor {\n\n\t\t/**\n\t\t * Returns the editor component\n\t\t * \n\t\t * @return AWT or Swing component of editor\n\t\t */\n\t\tpublic Component getComponent();\n\n\t\t/**\n\t\t * Returns the currently edited cell value\n\t\t * \n\t\t * @return edited object.\n\t\t */\n\t\tpublic Obj... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
String e1 = (String) _data.get(o1); String e2 = (String) _data.get(o2); return e1.compareTo(e2); | public int compare(Object o1, Object o2) {
Integer i1 = (Integer) _data.get(o1);
Integer i2 = (Integer) _data.get(o2);
return i1.compareTo(i2);
} | [
"@Override\n public int compare(Event o1, Event o2) {\n char[] event1 = o1.getEvent().toCharArray();\n char[] event2 = o2.getEvent().toCharArray();\n\n int i = 0; // Intiialize counter variable i\n\n while (i < event1.length && i < event2.length) // We reached the end, stop\n {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Returns an array whose ith element is the number of bubbles that fall after the ith dart is thrown. Assume all elements of darts are unique, valid locations in the grid. Must be nondestructive and have no sideeffects to grid. | public int[] popBubbles(int[][] darts) {
// TODO
UnionFind uf = new UnionFind(grid.length*grid[0].length+1); // 0 position represents the ceiling
//Label all the bubbles which would be hit to 2
for (int[] dart: darts) {
if (grid[dart[0]][dart[1]] == 1) {
grid[... | [
"public int[] popBubbles(int[][] darts) {\n int[] fallingBubbles = new int[darts.length];\n int originBubbles = uF.sizeOf(0);\n int count = 0;\n\n for (int[] dart : darts) {\n grid[dart[0]][dart[1]] = 0;\n for (int i = 0; i < rowNum; i++){\n for (int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete an SDX Instance. :: Delete an SDX Instance. | public com.cloudera.thunderhead.service.sdxsvcadmin.SDXSvcAdminProto.DeleteInstanceResponse deleteInstance(com.cloudera.thunderhead.service.sdxsvcadmin.SDXSvcAdminProto.DeleteInstanceRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteInstanceMethod(), getCallOpt... | [
"public void deleteInstance(com.cloudera.thunderhead.service.sdxsvcadmin.SDXSvcAdminProto.DeleteInstanceRequest request,\n io.grpc.stub.StreamObserver<com.cloudera.thunderhead.service.sdxsvcadmin.SDXSvcAdminProto.DeleteInstanceResponse> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleChapter" $ANTLR start "entryRuleParagraph" InternalScoping.g:178:1: entryRuleParagraph : ruleParagraph EOF ; | public final void entryRuleParagraph() throws RecognitionException {
try {
// InternalScoping.g:179:1: ( ruleParagraph EOF )
// InternalScoping.g:180:1: ruleParagraph EOF
{
before(grammarAccess.getParagraphRule());
pushFollow(FOLLOW_1);
r... | [
"public final void rule__Chapter__ParagraphsAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalScoping.g:1050:1: ( ( ruleParagraph ) )\n // InternalScoping.g:1051:2: ( ruleParagraph )\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Triggers a disconnect on the mock object being held. | public static void triggerDisconnect() {
sMockCar.disconnect();
} | [
"public void disconnect() {}",
"public void connectionClosed(Spy spy);",
"public void destroyBucketAndDisconnect() {\n destroyBucket();\n disconnect();\n if (mock != null) {\n this.mock.stop();\n }\n }",
"public void disconnectSync();",
"public void connectionClosed... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds most recently added version of concept map | ConceptMap loadLatestConceptMapForUUID(String uuid) {
ArrayList<ConceptMap> listItems = loadConceptMapVersionsForUUID(uuid, 1);
if (listItems == null || listItems.isEmpty()) return null;
return listItems.get(0);
} | [
"private MapData latestMap(Vector<MapData> candidateMaps)\n {\n try\n {\n return Factory.findNewestMap(candidateMaps);\n }\n catch (SQLException e)\n {\n logger.warn(\"There was a problem determining the newest map, using arbitrary map!\");\n return candidateMaps.get(0);\n }\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for the COM property "PhoneticAccelerator" | @VTID(80)
void setPhoneticAccelerator(
@MarshalAs(NativeType.VARIANT) java.lang.Object rhs); | [
"@VTID(79)\r\n @ReturnValue(type=NativeType.VARIANT)\r\n java.lang.Object getPhoneticAccelerator();",
"@VTID(70)\r\n void setAccelerator(\r\n @MarshalAs(NativeType.VARIANT) java.lang.Object rhs);",
"@VTID(69)\r\n @ReturnValue(type=NativeType.VARIANT)\r\n java.lang.Object getAccelerator();",
"@Override... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The main method expects an argument list as described below. Execution will fail without them. args[0] The unique integer id this node will use to identify itself. args[1] The hostname of the node. args[2] The port number on which this node will receive messages. args[3] Time between requests args[4] Time to execute cr... | public static void main(String[] args) {
int id = Integer.parseInt(args[0]);
String hostname = args[1];
int port = Integer.parseInt(args[2]);
int timeBetweenRequests = Integer.parseInt(args[3]);
int timeInCriticalSection = Integer.parseInt(args[4]);
int numTotalRequests =... | [
"public static void main(String[] args) {\n\n // 1. Load server config file\n if(args.length<1){\n System.out.println(\"Please indicate your server config file\");\n return;\n }\n List<ClientWorker> connection;\n try {\n connection = LoadServer(arg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column sys_frinedshiplink.friendshiplink_name | public void setFriendshiplinkName(String friendshiplinkName) {
this.friendshiplinkName = friendshiplinkName;
} | [
"public String getFriendshiplinkName() {\n return friendshiplinkName;\n }",
"public void setFriendName(java.lang.String friendName) {\n this.friendName = friendName;\n }",
"public void setFriendshiplinkId(Long friendshiplinkId) {\n this.friendshiplinkId = friendshiplinkId;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
gets booking details based on confirmationCode | public SeatHold getBookingDetails(String confirmationCode) {
SeatHold sHold = SystemData.getFromBookingMap(confirmationCode);
if( sHold == null ){
System.out.println("No booking exists for this confirmation code.");
}
return sHold;
} | [
"Booking getBookingByConfirmationCode(String confirmationCode);",
"@GetMapping(value = \"/getDetails/{booking_status_code}\", produces = \"application/json;charset=UTF-8\")\r\n\tpublic ResponseEntity<String> get(@PathVariable(\"booking_status_code\") Integer booking_status_code) {\r\n\t\ttry {\r\n\t\t\tList<Booki... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
private Restaurant restaurant; Create the frame. | public ChefFrame() {
setTitle("Chef");
// this.restaurant = restaurant;
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
setBounds(100, 100, 716, 523);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
textArea... | [
"public Restaurant() {\r\n }",
"void setRestaurant(Restaurant restaurant) {\n this.restaurant = restaurant;\n }",
"public void setRestaurant(Restaurant restaurant) {\n this.restaurant = restaurant;\n }",
"public UIUCRestaurants() {\n allRestaurants = new Restaurant[]{pandaExpress, saka... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the last proposal2 phase in the ordered set where proposalId = &63;. | @Override
public Proposal2Phase findByProposalId_Last(long proposalId,
OrderByComparator orderByComparator)
throws NoSuchProposal2PhaseException, SystemException {
Proposal2Phase proposal2Phase = fetchByProposalId_Last(proposalId,
orderByComparator);
if (proposal2Pha... | [
"@Override\n public Proposal2Phase fetchByProposalId_Last(long proposalId,\n OrderByComparator orderByComparator) throws SystemException {\n int count = countByProposalId(proposalId);\n\n if (count == 0) {\n return null;\n }\n\n List<Proposal2Phase> list = findByProp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the getBlocks for the level. | public void setBlocks(List<Block> blocksList) {
this.blocks = blocksList;
} | [
"private void setBlocks() {\n // load the class\n ClassLoader cl = ClassLoader.getSystemClassLoader();\n // create an InputStream object\n InputStream inputStream = cl.getResourceAsStream(this.map.get(\"block_definitions\"));\n // initialize this factory with a factory\n th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end tableRow tableDatum is an auxiliary function a particular datum to be displayed on the web page | private String tableDatum
( String columnName, int columnType, String datum, boolean isPrimaryKey, boolean isForeignKey, boolean isAutoIncrement, List<String> fkOptions, int sqlColType, boolean isTemplateRow )
{
String tableDatum = "<td" + (isPrimaryKey?" data-primary-key ":"") + (isAutoIncrement?" data-a... | [
"@Override\n public void getDataRow() {\n\n }",
"protected void displayTable()\n {\n\n }",
"private String getRowSetHtml(AnalyseTable analyseTable) {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tDecimalFormat df = new DecimalFormat(\"######0.00\");\n\t\t\n\n\t\tObject[] rowDimesions = analyse... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Named_arguments__Group__0__Impl" $ANTLR start "rule__Named_arguments__Group__1" ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/srcgen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:4926:1: rule__Named_arguments__Group__1 : rule__Named_a... | public final void rule__Named_arguments__Group__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/I... | [
"public final void rule__Named_arguments__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/content... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Some synths need extra time to process a writepatch before writing a second patch (with no change patch request). The default is to return getPauseAfterWritePatch() which in turn has a default of getPauseAfterSendAllParameters() | public int getPauseBetweenPatchWrites()
{
return super.getPauseBetweenPatchWrites();
} | [
"public int getPauseAfterReceivePatch()\n {\n return super.getPauseAfterReceivePatch();\n }",
"public int getPauseAfterChangePatch()\n {\n return 0;\n }",
"public int getPauseAfterSendAllParameters() \n {\n return 0;\n }",
"public boolean getShoul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the most recent report day, that contains a report of given type | public ReportDay getMostRecentReport(ReportType forType) {
return mostRecentReportForType.get(forType);
} | [
"public ReportDay getMostRecentReport() {\n if (daysContainingReport.size() > 0) {\n return daysContainingReport.get(daysContainingReport.size() - 1);\n } else {\n return new ReportDay(\n new Date(),\n new LinkedHashMap<ReportSummary.ReportTy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Mandatory fields: plant name; time; water freq TODO: add feature to allow certain empty fields. | private boolean checkEmptyFields() {
return (isEmpty(plantNameField) ||
isEmpty(waterFreqField) ||
isEmpty(timeField));
} | [
"private void fillMandatoryFields() {\n\n }",
"private void fillMandatoryFields() {\n\n username(\"DefaultString\");\n name(\"DefaultString\");\n phoneNumber(\"DefaultString\");\n password(\"DefaultString\");\n acceptedCommercial(true);\n acceptedTerms(true);\n userType(true);\n }",
"void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ajax to display additional field | @RequestMapping(value = "/getAdditionalField.html", method = RequestMethod.GET)
public String getAdditionalField(@RequestParam(name = "departmentId") Integer departmentId,
HttpServletResponse response) {
List<AdditionalFields> additionalFields = additionalFieldsDao
.getAdditionalFieldByDepartment(depart... | [
"protected abstract String getAdditionalInfoForDisplay();",
"java.lang.String getAdditionalField1();",
"java.lang.String getAdditionalField3();",
"java.lang.String getAdditionalField2();",
"private void showRequestDetails() {\n\t\tlblExamID.setText(req.getExamID());\n\t\tlblDuration.setText(String.valueOf(r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ActivationConstraints__Group__0" $ANTLR start "rule__ActivationConstraints__Group__0__Impl" InternalComponentDefinition.g:4011:1: rule__ActivationConstraints__Group__0__Impl : ( () ) ; | public final void rule__ActivationConstraints__Group__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalComponentDefinition.g:4015:1: ( ( () ) )
// InternalComponentDefinition.g:4016:1: ( () )
{
// Inter... | [
"public final void rule__ActivationConstraints__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalComponentDefinition.g:4003:1: ( rule__ActivationConstraints__Group__0__Impl rule__ActivationConstraints__Group__1 )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the underlying sdk support vCards | boolean isVCardSupported(); | [
"public boolean vcardSupported();",
"public boolean canBuyCard() {\n\t\treturn canDo.canBuyDevCard(this.getPlayerIndex());\n\t}",
"public boolean canPlayCard() {\n\t\treturn canDo.canPlayDevCard(this.getPlayerIndex());\n\t}",
"boolean hasPlayCardRequest();",
"boolean isVssSupported(int cameraId);",
"boole... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Click on Sitemap Link. | public ItemPage clickSitemapLink() {
sitemap.click();
return this;
} | [
"HtmlPage clickSiteLink();",
"public void clickViewLink() {\n getViewLink().click();\n }",
"public HomePage clickSitemapLink() {\n sitemap.click();\n return this;\n }",
"public void clickOnLaceBootsLink(){\n Reporter.log(\"clicking on boots \"+ bootsLink+\"<br>\");\n c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form DoctorSignUp | public DoctorSignUp() {
initComponents();
} | [
"public SignUp() {\n \n initComponents();\n \n }",
"public signup() {\n initComponents();\n }",
"public Signup_Form() {\n initComponents();\n }",
"public RegistrationForm() {\r\n }",
"public SignUp() {\n initComponents();\n }",
"public Signup() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a BevelArrowIcon with a base of "size" pixels, and the given direction. | public BevelArrowIcon(double size, int direction) {
if(size < 8 || size > Integer.MAX_VALUE) {
throw new IllegalArgumentException("BevelArrowIcon(int size): size must be between 8 and "
+ Integer.MAX_VALUE + ".");
}
this.size = size;
width = (int) si... | [
"public BevelArrowIcon(int direction) {\r\n this(10.0, direction);\r\n }",
"static Shape openArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\treturn path;\n \t}",
"public sta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 24 / 25 covered goals: Goal 1. org.apache.commons.cli.Options.addOption(Ljava/lang/String;ZLjava/lang/String;)Lorg/apache/commons/cli/Options;: rootBranch Goal 2. org.apache.commons.cli.Options.addOption(Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)Lorg/apache/commons/cli/Options;: rootBran... | @Test(timeout = 4000)
public void test24() throws Throwable {
Options options0 = new Options();
// Undeclared exception!
try {
options0.addOption("[ Options: [ short java.util.HashMap@0000000003 ] [ long {~;yXgj=[ option: Dk4NQ5n7X ~;yXgj [ARG...] :: MW0qv+)ij;+ ]} ]", false, "[ Opti... | [
"@Test(timeout = 4000)\n public void test12() throws Throwable {\r\n Options options0 = new Options();\r\n // Undeclared exception!\r\n try { \r\n options0.addOption(\"J1<*ssS-q\", \"2$0V70O}+C6*?]i_w\", true, \"\");\r\n fail(\"Expecting exception: IllegalArgumentException\");\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column CIF_KYC_FINANCIAL_INFO.KYC_FINANCIAL_CUSTOMER_REF | public String getKYC_FINANCIAL_CUSTOMER_REF() {
return KYC_FINANCIAL_CUSTOMER_REF;
} | [
"public void setKYC_FINANCIAL_CUSTOMER_REF(String KYC_FINANCIAL_CUSTOMER_REF) {\r\n this.KYC_FINANCIAL_CUSTOMER_REF = KYC_FINANCIAL_CUSTOMER_REF == null ? null : KYC_FINANCIAL_CUSTOMER_REF.trim();\r\n }",
"public BigDecimal getKYC_FINANC_CUSTOMER_REF_CODE() {\r\n return KYC_FINANC_CUSTOMER_REF_CO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new instance of the module marshaller using the parameter as the file into which the module will be marshalled. | public ModuleMarshaller(File file) {
moduleFile = file;
} | [
"public ModuleMarshaller(String filename) {\n moduleFile = new File(filename);\n }",
"Module createModule();",
"public void marshallModule(Module m) throws JAXBException {\n JAXBContext context = JAXBContext.newInstance(Module.class, PreparationTime.class, SupportTime.class);\n Marshalle... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates a progress bar for unlocking the chest | private String getProgressBar(){
String output = "\u00A77[";
int total = 20;
double unlocked = this.unlockedPercentage;
output += "\u00A72";
//green bars for every 5% unlocked
while(unlocked>=5){
output += "|";
unlocked-=5;
total--;
... | [
"public void update(double percentage) {\n String[] part_char = {\"\", INCREMENT_1, INCREMENT_2, INCREMENT_3, INCREMENT_4, INCREMENT_5, INCREMENT_6, INCREMENT_7, INCREMENT_8};\n// StringBuilder str = new StringBuilder(PROGRESS_START);\n// for (int i = 0; i < whole_width; i++) {\n// s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Transform worker string from "ip1013531210.ec2:8981" to "10.135.31.210". | @SuppressWarnings("JavaDoc")
private static String workerStringTransformation(String worker) {
return worker.split("\\.")[0].substring("ip-".length()).replaceAll("-", ".")
+ ':'
+ worker.split(":")[1];
} | [
"private static final String getHostnameFrom(String str) {\n String[] tmp = str.split(\":\");\n if( tmp.length > 0 && tmp[0] != null ) return tmp[0];\n else return \"0.0.0.0\";\n }",
"public interface IHostPortParser {\r\n\r\n /**\r\n * Turn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the overall completion time for the given patch type. | public long getCompletionTime(Tab patchType)
{
Long completionTime = completionTimes.get(patchType);
return completionTime == null ? -1 : completionTime;
} | [
"private void updateCompletionTime()\n\t{\n\t\tfor (Map.Entry<Tab, Set<FarmingPatch>> tab : farmingWorld.getTabs().entrySet())\n\t\t{\n\t\t\tlong extremumCompletionTime = config.preferSoonest() ? Long.MAX_VALUE : 0;\n\t\t\tboolean allUnknown = true;\n\t\t\tboolean allEmpty = true;\n\n\t\t\tfor (FarmingPatch patch :... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if chartseries contains all months if not place 0 | private void checkMonths(LineChartModel model){
for (ChartSeries chartSeries : model.getSeries()) {
for (String month : performance.getMonths()) {
if(!chartSeries.getData().containsKey(month))
chartSeries.getData().put(month, 0);
}
}
} | [
"public boolean isSetMonths() {\n return (this.months != null ? this.months.isSetValue() : false);\n }",
"public boolean hasMonth() {\n return fieldSetFlags()[2];\n }",
"public boolean isSetMonth() {\r\n return EncodingUtils.testBit(__isset_bitfield, __MONTH_ISSET_ID);\r\n }",
"private boolean... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Crear vista del fragmento | @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
LinearLayout linearLayout = (LinearLayout) inflater.inflate(R.layout.fragment_medicamentos, container, false);
//Vincular componentes
lvMedicamentos = linearLayout.findViewById(R.id.lvMe... | [
"Fragment createFragment();",
"protected abstract Fragment createFragment();",
"protected abstract List<Fragment> makeFragments();",
"BPEachFragment createBPEachFragment();",
"public void listaVacia() {\n\n mProgressDialog.dismiss();\n\n Bundle arguments = new Bundle();\n\n arguments.pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Runs the program until an exit command is called by the user. | public void runUntilExit() {
boolean isExit = false;
while (!isExit) {
try {
ui.showLine();
String fullCommand = ui.readCommand();
Command c = Parser.parseCommand(fullCommand);
agent.handleCommand(c, ui, storage);
... | [
"private static void exitProgram()\n {\n System.out.println(\"exiting program...\");\n System.exit(1);\n }",
"public void exit() {\n try {\n synchronized (this.mSync) {\n if (this.mRunning) {\n this.mRunning = false;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Move n Disks from this HanoiStack to destination by buffer HanoiStack | public void moveDisks(int n, HanoiStack destination, HanoiStack buffer) {
if(n > 0) {
moveDisks(n-1, buffer, destination);
moveTopTo(destination);
buffer.moveDisks(n-1, destination, this);
}
} | [
"private void moveDiscs(int numOfDiscs, int from, int to, int using){\n if(numOfDiscs == 1){\n int disc = _stacks.get(from - 1).pop();\n _stacks.get(to - 1).push(disc);\n }\n else{\n moveDiscs(numOfDiscs - 1, from, using, to);\n moveDiscs(1, from, to,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the game's role bank | public ArrayList<Roles> getRolesBank() {
return rolesBank;
} | [
"int getRole();",
"public Bank getBank() {\r\n\t\treturn gameBank;\r\n\t}",
"public Heroes.Role getRole(){\n return Heroes.Role.TANK;\n }",
"private RS2Object getBank() {\n return provider().objects.closest(MethodProvider.random(30) == 1 ?\n \"Deposit box\" : \"Bank chest\");\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the state of a collision layer. | public boolean getCollisionLayerState(String layerName) {
return !this.disabledCollision.contains(layerName);
} | [
"CollisionRule getCollisionRule();",
"public static boolean getCollision()\r\n\t{\r\n\t\treturn collision;\r\n\t}",
"LeaderCardState getState();",
"public Collidable collisionObject() {\r\n return this.collisionShape;\r\n }",
"public int getPlaneState();",
"Rectangle getCollisionRectangle();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a navigator listener that is informed when the robot stops or reaches a way point. | public void addNavigatorListener(NavigatorListener listener) {
listeners.add(listener);
} | [
"private void addListener() {\n if (getWaypointMissionOperator() != null) {\n getWaypointMissionOperator().addListener(eventNotificationListener);\n }\n }",
"public void setLocationListener(SeagullLocationListener listener){\n this.moveListener = listener;\n }",
"void addLi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value of the atom:published element using the serialized string value | DateTime setPublished(String value); | [
"public trans.encoders.relayVote.RelayVote.Builder setPublished(java.lang.Long value) {\n validate(fields()[5], value);\n this.published = value;\n fieldSetFlags()[5] = true;\n return this; \n }",
"public void setPublished(java.lang.Long value) {\n this.published = value;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Given an instance declaration "instance CT where m1 = f1; m2 = f2; ...;" this method checks that all the instance method resolving functions f1, f2,... have a type compatible with what is required by the CTm triple. For example, the function resolving the Prelude.add class method in the Num Int instance must have type ... | void checkTypesOfInstanceMethodResolvingFunctions() {
for (int i = 0, nClassInstances = currentModuleTypeInfo.getNClassInstances(); i < nClassInstances; ++i) {
ClassInstance classInstance = currentModuleTypeInfo.getNthClassInstance(i);
... | [
"void checkClassInstanceDefinitions(ModuleLevelParseTrees moduleLevelParseTrees) throws UnableToResolveForeignEntityException { \r\n \r\n checkForOverlappingInstances(moduleLevelParseTrees.getModuleDefnNode());\r\n \r\n List<ParseTreeNode> instanceDefnNodes = moduleLevelParseTrees.getIn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ajoute vendeur dans la liste des vendeurs du magasin | public static void ajouterVendeurDansListeVendeur(Vendeur vendeur, Rayon rayon)
{
rayon.getListeVendeurs().add(vendeur);
} | [
"public void vampireAdd(){\n //Will permit to know if every vampires are different\n Set<Being> swap = new HashSet();\n\n //Iterate till the set is equal to the number of vampire we need\n while(swap.size() != this.vampires){\n //Create a new vampire\n Vampire vamp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
applying business logic to calcilate hour | public static String calculateHour(int hour){
if (hour==24)
return assgnValues(0);
if (hour>20 && hour!=24) {
hour = hour % 20;
return assgnValues(hour);
}
else
return assgnValues(hour);
} | [
"CalcTaskHours createCalcTaskHours();",
"Integer getStartHour();",
"public String calculateHour() {\n\t\tString hora;\n\t\tString min;\n\t\tString seg;\n\t\tString message;\n\t\tCalendar calendario = new GregorianCalendar();\n\t\tDate horaActual = new Date();\n\t\tcalendario.setTime(horaActual);\n\n\t\thora = c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ surfaceAdded: tells the parent frame ViewJFrameVolumeView that a triangle mesh surface has been removed from the scene. | public void surfaceRemoved( int iIndex ) {
if ( parent instanceof ViewJFrameVolumeView ) {
if ( ( (ViewJFrameVolumeView) parent ) != null ) {
( (ViewJFrameVolumeView) parent ).surfaceRemoved( iIndex );
}
}
} | [
"protected abstract void onSurfaceDestroyed();",
"public void onSurfaceDestroyed() {\n\t\t\tif (DEBUG) Log.v(TAG, \"onSurfaceDestroyed:\");\n\t\t\t// Here is in GL context\n\t\t\t// This is the last palce that OpenGL functions can execute .\n\t\t\t// although texture and other GL objects are lost when GL context ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This method plays the scenario file specified by the argument. The argument can be specified either as an absolute or a relative path. | public void setScenarioFile (String scenarioFile)
{
try
{
File f = new File (scenarioFile);
fileScanner = new Scanner (f);
String absolutePath = f.getAbsolutePath();
scenarioFilePath = absolutePath.substring(0,absolutePath.lastIndexO... | [
"public void play(File file);",
"public void play(String configFileName);",
"@Test\n\t@TestProperties(name = \"Run a single JBehave story\", paramsInclude = { \"stepsPackages\", \"storyFile\", \"parserType\" })\n\tpublic void runStory() throws IOException {\n\t\t// Checking inputs\n\t\tif (null == stepsPackages... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TS_SMR_11c(E to E) Verify whether the anonymous Gas customer is able to do SMR journey,verify BPCP and Audit details for single register without alert | @Test(groups ={Slingshot,Regression,SubmitMeterRead})
public void AnonymousGasSmrCR_singleregister_noalrertchecked(){
Report.createTestLogHeader("Anonymous SMR", "Verify whether the anonymous Gas customer is able to do SMR journey without alret");
SMRAccountDetails smrProfile = new TestDataHelper().getAllS... | [
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\n\t\t\t public void AnonymousGasSmrCR_singleregister_alreatchecked(){\n\t\t\t\tReport.createTestLogHeader(\"Anonymous SMR\", \"Verify whether the anonymous Gas customer is able to do SMR journey\");\n\t\t\t\tSMRAccountDetails smrProfile = new TestDataHelper().... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Learn support vector machines classifier | @Implementation(SupportVectorMachineLearner.class)
public SupportVectorMachines<T> learnSVM(SupportVectorMachineParams param); | [
"public SVMClassifier(){\n\n\t\tthis.classifier = new LibSVM();\n\t\tString[] options;\n\t\ttry {\n\t\t\toptions = weka.core.Utils.splitOptions(\"-S 0 -K 0 -C 425 -M 40.0 -W 1 -seed 1\");\n\t\t\tthis.classifier.setOptions(options);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Wrong input... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returning the complete outside estimate of the span | private double evaluate(SXTriple span) {
// System.err.println("Evaluating " + span);
return outside(span);
} | [
"BigDecimal getEndingElevation();",
"public static double outside(double[] values, double low, double high) {\n return -1.0; // FIXME Q1\n }",
"public double getBoundary();",
"public double getMakespan(){return makespan;}",
"double[] getExtremeElevations(Sector sector);",
"double getIncy();",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XTryCatchFinallyExpression__Group_3_1__0__Impl" $ANTLR start "rule__XTryCatchFinallyExpression__Group_3_1__1" ../org.xtext.lwc.instances.ui/srcgen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10797:1: rule__XTryCatchFinallyExpression__Group_3_1__1 : rule__XTryCatchFinall... | public final void rule__XTryCatchFinallyExpression__Group_3_1__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10801:1: ( rule__XTryCa... | [
"public final void rule__XTryCatchFinallyExpression__Group_3_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10675:1: ( ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method used to fill the layout displaying the workers names. | private void fillNamesLayout(FragmentActivity activity) {
int nbOfWorkers = StoreWorkerModel.getInstance().getStoreWorkersNumber();
int cellWidth = mScreenSize.x / (nbOfWorkers + 2);
for (int i = 0; i < nbOfWorkers; i++) {
TextView textView = new TextView(activity);
Strin... | [
"private void fillInfo() {\n\n nameLabel = new Label(containedProject.getName());\n\n nameLabel.setFont(Font.font(\"FiraGo\", FontWeight.BOLD , 20));\n\n createdByLabel = new Label(\"Created By: \" + containedProject.getCreatedBy().getFirstName() + \" \" + containedProject.getCreatedBy().getLa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Resets the collection of test result data to allow the next automated test to take place. | public void resetTests() {
results.clear();
} | [
"protected void clearTestData() {\n getDataKeeper().clear();\n }",
"private void clearResults() {\r\n\t\tResultsTable ClearRT = new ResultsTable();\t\r\n\t\tClearRT = Analyzer.getResultsTable();\r\n\t\tint numres = ClearRT.getCounter();\r\n\t\tif (numres > 0){\r\n\t\t\tIJ.deleteRows(0, numres);\r\n\t\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter method for heardPercentUs | public void setHeardPercentUS(double heardPercentUS) {
this.heardPercentUS = heardPercentUS;
} | [
"public double getHeardPercentUS() {\n return heardPercentUS;\n }",
"public void setHeardPercentEng(double heardPercentEng) {\n this.heardPercentEng = heardPercentEng;\n }",
"public void setHeardPercentReading(double heardPercentReading) {\n this.heardPercentReading = heardPercentRead... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ referenceBits = [incrementbit, leapbit, movebit, successbit] | static void getSuccessPath(int[] arr, int leap, int[] referenceBits, List<Integer> zeroIndexes, Set<Integer> movedMoves) {
if (referenceBits[0] >= arr.length)
return;
if ((referenceBits[0] < arr.length) && (arr[referenceBits[0]] == 0) && (referenceBits[0] == (arr.length-1))) {
referenceBits[3] = 1;
retu... | [
"static void init(int[] referenceBits, int leap) {\n\t\treferenceBits[0] = 0;\n\t\treferenceBits[1] = leap;\n\t\treferenceBits[2] = 0;\n\t\treferenceBits[3] = 0;\n\t}",
"int nextBits(int bits);",
"boolean[] bitwiseChangeList();",
"int getBits();",
"int getBitY();",
"private int getNextBit() {\n fin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method returns DVS features that are available for the given DistributedVirtualSwitch product specification | public DVSFeatureCapability queryDvsFeatureCapability(
ManagedObjectReference dvsManagerMor,
DistributedVirtualSwitchProductSpec
productSpec)
throws Exception
{
DVSFeatureCapab... | [
"java.util.List<com.google.cloud.compute.v1.GuestOsFeature> getGuestOsFeaturesList();",
"@NonNull\n Collection<String> getDynamicFeatures();",
"com.google.cloud.compute.v1.GuestOsFeature getGuestOsFeatures(int index);",
"public DistributedVirtualSwitchProductSpec[]\n queryAvailableSwitchSpec(ManagedObjec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the model2NegDistr property. | public void setModel2NegDistr(double value) {
this.model2NegDistr = value;
} | [
"public void setModel1NegDistr(double value) {\r\n this.model1NegDistr = value;\r\n }",
"public void setModel4NegDistr(double value) {\r\n this.model4NegDistr = value;\r\n }",
"public double getModel2NegDistr() {\r\n return model2NegDistr;\r\n }",
"public void setModel7NegDistr(double value) {\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value related to the column: break_man | public void setBreakMan (java.lang.String breakMan) {
this.breakMan = breakMan;
} | [
"public java.lang.String getBreakMan () {\n\t\treturn breakMan;\n\t}",
"DurabilityData setBreakable(boolean breakable);",
"public void setBanhao(Long banhao) {\r\n this.banhao = banhao;\r\n }",
"public void setWordBreak(java.lang.Boolean wordBreak) {\r\n this.wordBreak = wordBreak;\r\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a Sort object which sorts persons in ascending order by using the last name. | private Sort sortByLastNameAsc() {
return new Sort(Sort.Direction.ASC, "tieName");
} | [
"private Sort sortByLastNameAsc() {\n return new Sort(Sort.Direction.ASC, \"remName\");\n }",
"private Sort sortByLastNameAsc() {\n return new Sort(Sort.Direction.ASC, \"salDate\");\n }",
"private Sort sortByLastNameAsc() {\n return new Sort(Sort.Direction.ASC, \"catProductNo\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the first fact non printed material in the ordered set where libraryId = &63; and period = &63;. | public com.idetronic.eis.model.FactNonPrintedMaterial findByLibraryPeriod_First(
long libraryId, java.lang.String period,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.idetronic.eis.NoSuchFactNonPrintedMaterialException,
com.liferay.portal.kernel.exception.SystemException; | [
"public com.idetronic.eis.model.FactNonPrintedMaterial fetchByLibraryPeriod_First(\n\t\tlong libraryId, java.lang.String period,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"@Override\n\tpublic FactNonPrintedMaterial f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the currently viewed active page number | public int getActivePage()
{
return activePage;
} | [
"public int getCurrentPage();",
"int getCurrentPage();",
"int getCurrentPageIndex();",
"public int getCurrentPageIndex() {\r\n\t\treturn 0;\r\n\t}",
"public int getCurrentPageNumber() {\n return index / pageSize;\n }",
"public int getRealCurrentPage();",
"public int getCurrentPageIndex()\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new Motor position. | public MotorPosition(double xPosition, double yPosition) {
this.xPosition = xPosition;
this.yPosition = yPosition;
} | [
"public MotorPosition() {\n }",
"public CurrentRobotState() {\r\n currentPos = new RobotCoordinates();\r\n motorState = new Motor();\r\n reInitialize();\r\n }",
"public GetMotorPositionCommand ()\r\n {\r\n }",
"public SingleMotor() {}",
"public MotorControl() {\n leftMotor = new Jaguar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all rows from the ordini table that match the criteria 'ord_data = :ordData'. | public Ordini[] findWhereOrdDataEquals(Date ordData) throws OrdiniDaoException
{
return findByDynamicSelect( SQL_SELECT + " WHERE ord_data = ? ORDER BY ord_data", new Object[] { ordData==null ? null : new java.sql.Date( ordData.getTime() ) } );
} | [
"public Ordini[] findWhereOrdIdEquals(long ordId) throws OrdiniDaoException\n\t{\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE ord_id = ? ORDER BY ord_id\", new Object[] { new Long(ordId) } );\n\t}",
"public Ordini[] findWhereOrdNumeroEquals(String ordNumero) throws OrdiniDaoException\n\t{\n\t\treturn f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor Harvester. Each harvester has certain fuel tank size and top speed | public Harvester(int fuelTankSize, int topSpeed){
this.fuelTankSize=fuelTankSize;
this.topSpeed=topSpeed;
} | [
"public PlantingHarvester(int x, int y)\n {\n super(x, y);\n }",
"public ArcherTower() {\n\t\tsuper(defaultAttack, defaultRange, defaultAttackSpeed, name);\n\t}",
"public HarvesterAnt()\n {\n super.setFoodCost(2);\n count = 0;\n }",
"public Heater() {\n \t\tbrandName = \"Dyson\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Main method to run the wheel of fortune game. Keep playing the game until the puzzle is solved. | public static void main(String[] args) {
int choice; //Represents the player's choice to spin or guess the puzzleState
int wheelValue; //Represents the value on the wheel after spinning
WheelOfFortune wof = new WheelOfFortune();
Wheel wheel = new Wheel();
puzzleState = new PuzzleState... | [
"public void run(){\n\t\t//Create the Puzzle\n\t\tcreatePuzzle(0,0);\n\t\t\n\t\t//Print the Final Puzzle\n\t\tprintPuzzle();\n\t}",
"public static void main(String[] args) {\n \n \tframework.Puzzle thePuzzle = new rushhour.RushHour();\n framework.SequentialPuzzleSolver theSolver = new framework.Sequen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Loops all teachers and, using a Teacher Generator, populates interchange data. | private static void generateTeachers(InterchangeWriter<InterchangeStaffAssociation> iWriter, Collection<TeacherMeta> teacherMetas) throws Exception {
long startTime = System.currentTimeMillis();
for (TeacherMeta teacherMeta : teacherMetas) {
Teacher teacher;
if ("medium".equal... | [
"private void initializeTeacher(){\n mListTeachers = new ArrayList<String>();\n mTeachers = database.getUsersByType(2);\n for(Person teacher : mTeachers){\n mListTeachers.add(teacher.getFirstname() + \" \" + teacher.getLastname());\n }\n }",
"public static ArrayList<Teach... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allows to change task running mode | void setRunMode(TaskRunMode runMode); | [
"public void setRunning(boolean value) {\r\n this.running = value;\r\n }",
"public void toggleTask()\n\t{\n\t\tif (runningTask == null)\n\t\t{\n\t\t\tstartTask();\n\t\t} else\n\t\t{\n\t\t\tstopTask();\n\t\t}\n\t}",
"private void setRunning(boolean run) {\r\n\t\trunning = run;\r\n\t}",
"private void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new Demo RecordBuilder. | public static com.demo.Demo.Builder newBuilder() {
return new com.demo.Demo.Builder();
} | [
"public static DataModelBuilder create() {\n return new DataModelBuilder();\n }",
"RecordDefinition createRecordDefinition();",
"public static iodine.avro.TapRecord.Builder newBuilder() {\n return new iodine.avro.TapRecord.Builder();\n }",
"public Builder() {}",
"public static com.yshi.avro.InnerRec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of _interface | public void setInterface(boolean arg_interface) {
this._interface = arg_interface;
} | [
"public void setInterface(Interface _interface)\n {\n this._interface = _interface;\n }",
"public void setInterface(java.lang.Object _interface)\n {\n this._interface = _interface;\n }",
"void setInterfaceState(IsisInterfaceState interfaceState);",
"public final synchronized void set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AstExternalActor__Group__10" $ANTLR start "rule__AstExternalActor__Group__10__Impl" ../org.caltoopia.frontend.ui/srcgen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:11107:1: rule__AstExternalActor__Group__10__Impl : ( ';' ) ; | public final void rule__AstExternalActor__Group__10__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:11111:1: ( ( ';' ) )
// ..... | [
"public final void rule__AstExternalActor__Group__10() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:11100:1: ( rule__AstExternalActo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int64 period = 5; | long getPeriod(); | [
"void setPeriod(int period);",
"protected long getPeriod()\n {\n return 0;\n }",
"public int getHowManyInPeriod();",
"long getSamplePeriod();",
"public int getPeriod() {\r\n return period;\r\n }",
"long getStepPeriod();",
"int getRunPeriod();",
"public Integer getPeriod() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method can be used to create host for batch processing application using the predefined type | public void createHostsBatchProcessing(int numberHosts)
{
final long storage = 100000, //host storage (MEGABYTE)
bw = 10000; //host storage (MEGABYTE)
System.out.println("Creating host HPProliant Dl160G5");
long mipsPe=2500; //2.5ghz=2500 mhz host Instruction Pre Second... | [
"public void createHostsWebApplication(int numberHosts, int type) { \t\r\n \t\r\n // \tfinal double MAX_POWER = 100;\r\n // \tfinal double STATIC_POWER_PERCENT = 0.7;\r\n // \tfinal PowerModel powerModel = new PowerModelLinear(MAX_POWER, STATIC_POWER_PERCENT);\r\n \tfinal PowerModel powerModelHPProli... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TargetSDK is per package. To make sure two apps int the same shared UID do not fight over what to set, always compute the combined targetSDK. | private static int getMinimumTargetSDK(@NonNull Context context,
@NonNull ApplicationInfo appInfo, @NonNull UserHandle user) {
PackageManager pm = context.getPackageManager();
int minimumTargetSDK = appInfo.targetSdkVersion;
String[] uidPkgs = pm.getPackagesForUid(appInfo.uid);
... | [
"private int getTargetSdk(String packageName, int userId) {\n final ApplicationInfo ai;\n try {\n ai = mIPackageManager.getApplicationInfo(packageName, 0, userId);\n return ai == null ? 0 : ai.targetSdkVersion;\n } catch (RemoteException e) {\n // Shouldn't happ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a function that maps keys to a parser. This supports parsing of specific values using a custom parser to expand an inlined configuration. | public B parserMapping(Function<Config.Key, Optional<ConfigParser>> parserMapping) {
Objects.requireNonNull(parserMapping, "parserMapping cannot be null");
this.parserMapping = parserMapping;
return me;
} | [
"public void setParser(Parser p);",
"@Override\n void setParser(Parser parser) {\n super.setParser(parser);\n MethodCallStrategy.instance().setParser(this.parser);\n }",
"private void createParsers() {\n parsers = new HashMap<Integer, CommandParser>();\n parsers.put(DomainAdmin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Run the OperationResult liveDatabaseUpdate(Property[],OperationOptions) method test. | @Test(expected = org.apache.axis.NoEndPointException.class)
public void testLiveDatabaseUpdate_5()
throws Exception {
SAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub((URL) null, new DeployWSServiceLocator());
Property[] aArguments = new Property[] {};
OperationOptions aOptions = new Operati... | [
"@Test\n\tpublic void testLiveDatabaseUpdate_1()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\t\tOperationOptions aOptions = new OperationOptions();\n\n\t\tOperationRes... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Kontakt__Group__7" $ANTLR start "rule__Kontakt__Group__7__Impl" ../de.nie.fin.ui/srcgen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:5828:1: rule__Kontakt__Group__7__Impl : ( ( rule__Kontakt__StrasseAssignment_7 ) ) ; | public final void rule__Kontakt__Group__7__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:5832:1: ( ( ( rule__Kontakt__StrasseAssignment_7 ) ) )
... | [
"public final void rule__Kontakt__Group__7() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:5820:1: ( rule__Kontakt__Group__7__Impl rule__Kontakt__G... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the Type that corresponds to the given signature. For example, 's' is String, and 'as' is String[]. A null or empty signature is invalid. | public static Type toType(String sig) throws BusException {
if (sig == null || sig.isEmpty()) {
throw new BusException("null or empty signature");
}
// Check if sig describes loose fields not in a container (then need to treat it as a struct)
String[] sigArray = Signature.sp... | [
"public static int getTypeSignatureKind(String signature) {\n \tfinal int[] kind = { 0 };\n \tSignatureProcessor.process(signature, false, new SignatureRequestorAdapter() {\n \t\t@Override\n \t\tpublic void acceptPrimitive(TypeBasic type) {\n \t\t\tkind[0] = PRIMITIVE_TYPE_SIGNATURE;\n \t\t}\n \t\t@Override\n \t\tp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the cfg as string. | public void setCfgAsString(String cfg) {
this.cfg = new Cfg(cfg);
} | [
"@XmlAttribute(name=\"cfg\")\n\tpublic String getCfgAsString() {\n\t\tif(cfg != null)\n\t\t\treturn cfg.toString();\n\t\treturn null;\n\t}",
"public void setConfig(java.lang.String value);",
"public static void setConfigFileName(String cfg) {\n configFileName = cfg;\n }",
"void setCfgLinea(String cf... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the regions/region of the given index. | public void removeRegions_region(int index) throws java.lang.IndexOutOfBoundsException {
_Regions_region =null;
try{
getItem().removeChild(SCHEMA_ELEMENT_NAME + "/regions/region",index);
} catch (FieldNotFoundException e1) {logger.error(e1);}
} | [
"public void removeIndex(int index) {\r\n\r\n\t\tObject value = getValue(index);\r\n\t\tkeys.remove(index);\r\n\t\tvalues.remove(value);\r\n\t}",
"public void remove(int index)\n\t{\n\t\tHashSet<Integer> conflicts = new HashSet<Integer>(mappingConflicts.get(index));\n\t\tfor(Integer i : conflicts)\n\t\t{\n\t\t\tf... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use ClassifyLog.newBuilder() to construct. | private ClassifyLog(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"com.tencent.angel.serving.apis.prediction.PredictionLogProtos.ClassifyLogOrBuilder getClassifyLogOrBuilder();",
"com.tencent.angel.serving.apis.prediction.PredictionLogProtos.ClassifyLog getClassifyLog();",
"public Builder setClassifyLog(com.tencent.angel.serving.apis.prediction.PredictionLogProtos.ClassifyLog... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This edits the database. | public static void editDatabase(String sql){
Connection connection = dbConnection();
try{
PreparedStatement pst = connection.prepareStatement(sql);
pst.executeUpdate();
pst.close();
connection.close();
}catch (Exception e){
e.printStac... | [
"public abstract void updateDatabase();",
"public void uptadeDB(){\n //mainDatabase.modifyStaff(this);\n }",
"private ServerError updateDatabase() {\n return updateDatabase(WebConf.DB_CONN, WebConf.JSON_OBJECTS, WebConf.DEFAULT_VERSION);\r\n }",
"public void saveToDb() {\r\n\ttry {\r\n\t ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the PortletContext of the portlet application the portlet is in. | public PortletContext getPortletContext() {
return this.context;
} | [
"public PortletContext getPortletContext ()\n {\n \treturn config.getPortletContext();\n }",
"public org.apache.catalina.Context getAppContext();",
"public ServletContext getApplication() {\n return servletRequest.getServletContext();\n }",
"public ComponentContext getContext()\n\t{\n\t\treturn c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets value as attribute value for RULE_ISENABLED using the alias name RuleIsenabled. | public void setRuleIsenabled(String value) {
setAttributeInternal(RULEISENABLED, value);
} | [
"public String getRuleIsenabled() {\r\n return (String) getAttributeInternal(RULEISENABLED);\r\n }",
"public void setIsabled(Integer isabled) {\n this.isabled = isabled;\n }",
"public void setEnabled(String ruleName, boolean enabled)\n throws IllegalArgumentException \n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Combine this escaper with another, such that the passed escaper is used only on characters this escaper did not escape. | default Escaper and(Escaper other) {
return new Escaper() {
@Override
public CharSequence escape(char c) {
CharSequence result = Escaper.this.escape(c);
return result == null ? other.escape(c) : result;
}
@Override
publ... | [
"private static UnicodeEscaper wrap(CharEscaper escaper) {\n return new UnicodeEscaper() {\n @Override\n @CheckForNull\n protected char[] escape(int cp) {\n // If a code point maps to a single character, just escape that.\n if (cp < Character.MIN_SUPPLEMENTARY_CODE_POINT) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialise la zone d'aquarium | public Aquarium() {
super();
} | [
"public Aquarium() {\n\t\t// Here we ask GFX to make our window of size WIDTH and HEIGHT.\n\t\t// Don't change this here, edit the variables instead.\n\t\tsuper(WIDTH, HEIGHT);\n\t\t\n\t}",
"public void initializeObliqueLaunch(){\r\n world = new Environment();\r\n cannon = new Thrower();\r\n ball ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the delay of note prepositions. This is used with James McVay's Mechbass. | public static void setPrepositionDelay(long l){
prepositionDelay = l;
} | [
"public static long getPrepositionDelay(){\n\t\treturn prepositionDelay;\n\t}",
"public float getInitialTimeDelay() {\n\t\treturn delay;\n\t}",
"public int getInitialDelay() \r\n\t{\r\n\t\treturn initialDelay;\r\n\t}",
"public static int getReplicatorDelay() {\r\n\t\treturn 500;\r\n\t}",
"public int getDela... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clip a bid such that no power value in the bid exceeds the given ceiling. Any value in the resulting bid will have resulted from the given bid (i.e. no new power level values will have been introduced). | private ArrayBid clipAbove(final ArrayBid bid, final double ceiling) {
double[] demand = bid.getDemand();
// find start of unclipped region
int start = this.findFirstIndexOfUnclippedRegion(demand, ceiling);
// if there is no unclipped region we use the last (lowest value)
if (s... | [
"private ArrayBid clipBelow(final ArrayBid bid, final double floor) {\n double[] demand = bid.getDemand();\n\n // find end of unclipped region\n int end = this.findLastIndexOfUnclippedRegion(demand, floor);\n\n if (end == -1) {\n // if there is no unclipped region we use the f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use CSActivityFanPaiGainReward.newBuilder() to construct. | private CSActivityFanPaiGainReward() {} | [
"private SCActivityFanPaiGainReward() {}",
"private SCActivityPinTuGetReward() {}",
"private C_GetReward(Builder builder) {\n super(builder);\n }",
"private C_GetTotalSpendReward(Builder builder) {\n super(builder);\n }",
"private CSActivityPinTuGetReward() {}",
"private SCActivityPinTuBuy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |