-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update openTemplate to support file stream (#246)
* Update openTemplate to support file stream * Adding some unit tests to support full in memory process
- Loading branch information
1 parent
d2a24ca
commit bbc8ef2
Showing
7 changed files
with
129 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Sample title for a random markdown file | ||
|
||
## Overview | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nisl quis tincidunt aliquam, nunc nisl ultricies nunc, quis aliquam nis | ||
|
||
## Function Signature | ||
|
||
Here is a random code in python that generate a random value. It takes some parameters like a date and return a value. | ||
|
||
```python | ||
def random_function(date: datetime) -> float: | ||
"""Generate a random value based on the provided date. | ||
Args: | ||
date (datetime): The date to be used to generate the random value. | ||
Returns: | ||
float: The random value generated based on the provided date. | ||
""" | ||
return random.random() | ||
``` | ||
|
||
## Parameters | ||
|
||
| Name | Type | Description | | ||
| ---- | ---- | ----------- | | ||
| date | datetime | The date to be used to generate the random value. | | ||
|
||
## Return Value | ||
|
||
| Type | Description | | ||
| ---- | ----------- | | ||
| float | The random value generated based on the provided date. | | ||
|
||
## Usage | ||
|
||
```python | ||
random_function(datetime.now()) | ||
``` | ||
|
||
## Example Output | ||
|
||
```python | ||
0.123456789 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Another sample markdown file | ||
|
||
## Overview | ||
|
||
This file is here only for the purpose of testing the generator. | ||
|
||
## Sample with mage | ||
|
||
Here is an image generated from Dall-E 2 : | ||
|
||
![Dall-E 2](images/sampleimagefromdalle.png) |
Binary file added
BIN
+1.42 MB
src/OpenXMLSDK.UnitTest/Resources/MdFiles/images/sampleimagefromdalle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.