Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
indices: uint64
-- schema metadata --
huggingface: '{"info": {"features": {"indices": {"dtype": "uint64", "_typ' + 50
to
{'hexsha': Value('string'), 'repo': Value('string'), 'path': Value('string'), 'license': List(Value('string')), 'language': Value('string'), 'identifier': Value('string'), 'return_type': Value('string'), 'original_string': Value('string'), 'original_docstring': Value('string'), 'docstring': Value('string'), 'docstring_tokens': List(Value('string')), 'code': Value('string'), 'code_tokens': List(Value('string')), 'short_docstring': Value('string'), 'short_docstring_tokens': List(Value('string')), 'comment': List(Value('string')), 'parameters': List({'param': Value('string'), 'type': Value('string')}), 'docstring_params': {'others': List({'docstring': Value('string'), 'docstring_tokens': List(Value('string')), 'identifier': Value('string')}), 'outlier_params': List({'default': Value('string'), 'docstring': Value('string'), 'docstring_tokens': List(Value('string')), 'identifier': Value('string'), 'is_optional': Value('null'), 'type': Value('null')}), 'params': List({'default': Value('string'), 'docstring': Value('string'), 'docstring_tokens': List(Value('string')), 'identifier': Value('string'), 'is_optional': Value('null'), 'type': Value('string')}), 'raises': List({'docstring': Value('string'), 'docstring_tokens': List(Value('string')), 'type': Value('null')}), 'returns': List({'docstring': Value('string'), 'docstring_tokens': List(Value('string')), 'type': Value('null')})}}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/arrow/arrow.py", line 75, in _generate_tables
yield Key(file_idx, batch_idx), self._cast_table(pa_table)
~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/arrow/arrow.py", line 54, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
indices: uint64
-- schema metadata --
huggingface: '{"info": {"features": {"indices": {"dtype": "uint64", "_typ' + 50
to
{'hexsha': Value('string'), 'repo': Value('string'), 'path': Value('string'), 'license': List(Value('string')), 'language': Value('string'), 'identifier': Value('string'), 'return_type': Value('string'), 'original_string': Value('string'), 'original_docstring': Value('string'), 'docstring': Value('string'), 'docstring_tokens': List(Value('string')), 'code': Value('string'), 'code_tokens': List(Value('string')), 'short_docstring': Value('string'), 'short_docstring_tokens': List(Value('string')), 'comment': List(Value('string')), 'parameters': List({'param': Value('string'), 'type': Value('string')}), 'docstring_params': {'others': List({'docstring': Value('string'), 'docstring_tokens': List(Value('string')), 'identifier': Value('string')}), 'outlier_params': List({'default': Value('string'), 'docstring': Value('string'), 'docstring_tokens': List(Value('string')), 'identifier': Value('string'), 'is_optional': Value('null'), 'type': Value('null')}), 'params': List({'default': Value('string'), 'docstring': Value('string'), 'docstring_tokens': List(Value('string')), 'identifier': Value('string'), 'is_optional': Value('null'), 'type': Value('string')}), 'raises': List({'docstring': Value('string'), 'docstring_tokens': List(Value('string')), 'type': Value('null')}), 'returns': List({'docstring': Value('string'), 'docstring_tokens': List(Value('string')), 'type': Value('null')})}}
because column names don't match
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1879, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
hexsha string | repo string | path string | license list | language string | identifier string | return_type string | original_string string | original_docstring string | docstring string | docstring_tokens list | code string | code_tokens list | short_docstring string | short_docstring_tokens list | comment list | parameters list | docstring_params dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
db02e3b13c3e3642036f4843d8461f5f02579191 | augustoproiete-forks/cake-contrib--Cake.Figlet | src/Cake.Figlet/FigletAliases.cs | [
"MIT"
] | C# | Figlet | string | [CakeMethodAlias]
public static string Figlet(this ICakeContext context, string text)
{
var figlet = new Figlet();
return figlet.ToAsciiArt(text);
} | /// <summary>
/// Returns ASCII art for the specified text using the default font.
/// </summary>
/// <example>
/// <code>
/// Setup(ctx => {
/// Information(Figlet("Cake.Figlet"));
/// });
/// </code>
/// </example>
/// <param name="context">The context.</param>
/// <param name="text">The text to render as ASCII... | Returns ASCII art for the specified text using the default font. | [
"Returns",
"ASCII",
"art",
"for",
"the",
"specified",
"text",
"using",
"the",
"default",
"font",
"."
] | [CakeMethodAlias]
public static string Figlet(this ICakeContext context, string text)
{
var figlet = new Figlet();
return figlet.ToAsciiArt(text);
} | [
"[",
"CakeMethodAlias",
"]",
"public",
"static",
"string",
"Figlet",
"(",
"this",
"ICakeContext",
"context",
",",
"string",
"text",
")",
"{",
"var",
"figlet",
"=",
"new",
"Figlet",
"(",
")",
";",
"return",
"figlet",
".",
"ToAsciiArt",
"(",
"text",
")",
"... | Returns ASCII art for the specified text using the default font. | [
"Returns",
"ASCII",
"art",
"for",
"the",
"specified",
"text",
"using",
"the",
"default",
"font",
"."
] | [] | [
{
"param": "ICakeContext",
"type": "this"
},
{
"param": "text",
"type": "string"
}
] | {
"others": [
{
"docstring": "Setup(ctx => {\nInformation(Figlet(\"Cake.Figlet\"));\n}).",
"docstring_tokens": [
"Setup",
"(",
"ctx",
"=",
">",
"{",
"Information",
"(",
"Figlet",
"(",
"\"",
"Cake",
... |
db02e3b13c3e3642036f4843d8461f5f02579191 | augustoproiete-forks/cake-contrib--Cake.Figlet | src/Cake.Figlet/FigletAliases.cs | [
"MIT"
] | C# | Figlet | string | [CakeMethodAlias]
public static string Figlet(this ICakeContext context, string text, FilePath fontFile)
{
var figlet = new Figlet(fontFile.FullPath);
return figlet.ToAsciiArt(text);
} | /// <summary>
/// Returns ASCII art for the specified text using
/// a custom figlet font file.
/// </summary>
/// <example>
/// <code>
/// Setup(ctx => {
/// var fontFile = File("mini.flf");
/// Information(Figlet("Cake.Figlet", fontFile));
/// });
/// </code>
/// </example>
/// <param name="context">The co... | Returns ASCII art for the specified text using
a custom figlet font file. | [
"Returns",
"ASCII",
"art",
"for",
"the",
"specified",
"text",
"using",
"a",
"custom",
"figlet",
"font",
"file",
"."
] | [CakeMethodAlias]
public static string Figlet(this ICakeContext context, string text, FilePath fontFile)
{
var figlet = new Figlet(fontFile.FullPath);
return figlet.ToAsciiArt(text);
} | [
"[",
"CakeMethodAlias",
"]",
"public",
"static",
"string",
"Figlet",
"(",
"this",
"ICakeContext",
"context",
",",
"string",
"text",
",",
"FilePath",
"fontFile",
")",
"{",
"var",
"figlet",
"=",
"new",
"Figlet",
"(",
"fontFile",
".",
"FullPath",
")",
";",
"r... | Returns ASCII art for the specified text using
a custom figlet font file. | [
"Returns",
"ASCII",
"art",
"for",
"the",
"specified",
"text",
"using",
"a",
"custom",
"figlet",
"font",
"file",
"."
] | [] | [
{
"param": "ICakeContext",
"type": "this"
},
{
"param": "text",
"type": "string"
},
{
"param": "fontFile",
"type": "FilePath"
}
] | {
"others": [
{
"docstring": "Setup(ctx => {\nvar fontFile = File(\"mini.flf\");\nInformation(Figlet(\"Cake.Figlet\", fontFile));\n}).",
"docstring_tokens": [
"Setup",
"(",
"ctx",
"=",
">",
"{",
"var",
"fontFile",
"=",
"Fi... |
9164b061a35ed5f95a3607023af3d3d5dfa90944 | michaelbmorris/FileSizeTool | MichaelBrandonMorris.FileSystemSizeInfoTool/FileSystemSizeInfo.cs | [
"MIT"
] | C# | GetContentsAndSize | null | private void GetContentsAndSize(DirectoryInfo directory)
{
foreach (var fileSystemInfo in directory.GetFileSystemInfos())
{
var directoryInfo = fileSystemInfo as DirectoryInfo;
if (directoryInfo != null)
{
FoldersCount+... | /// <summary>
/// Gets the size of the contents and.
/// </summary>
/// <param name="directory">The directory.</param>
/// TODO Edit XML Comment Template for GetContentsAndSize | Gets the size of the contents and. | [
"Gets",
"the",
"size",
"of",
"the",
"contents",
"and",
"."
] | private void GetContentsAndSize(DirectoryInfo directory)
{
foreach (var fileSystemInfo in directory.GetFileSystemInfos())
{
var directoryInfo = fileSystemInfo as DirectoryInfo;
if (directoryInfo != null)
{
FoldersCount++... | [
"private",
"void",
"GetContentsAndSize",
"(",
"DirectoryInfo",
"directory",
")",
"{",
"foreach",
"(",
"var",
"fileSystemInfo",
"in",
"directory",
".",
"GetFileSystemInfos",
"(",
")",
")",
"{",
"var",
"directoryInfo",
"=",
"fileSystemInfo",
"as",
"DirectoryInfo",
"... | Gets the size of the contents and. | [
"Gets",
"the",
"size",
"of",
"the",
"contents",
"and",
"."
] | [] | [
{
"param": "directory",
"type": "DirectoryInfo"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "directory",
"is_optional": null,
"type": "DirectoryInfo"
}
],
"raises": [],
"returns": []
} |
aa3ce00c4eb6759601a95b3e0764340d452569e5 | michaelbmorris/FileSizeTool | MichaelBrandonMorris.FileSystemSizeInfoTool/MainWindow.xaml.cs | [
"MIT"
] | C# | UIElement_OnMouseLeftButtonDown | null | private void UIElement_OnMouseLeftButtonDown(
object sender,
MouseButtonEventArgs e)
{
if (e.ClickCount < 2)
{
return;
}
var messageBox = sender as Border;
var message = messageBox?.Child as TextBlock;
... | /// <summary>
/// Handles the OnMouseLeftButtonDown event of the
/// UIElement control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">
/// The <see cref="MouseButtonEventArgs" />
/// instance containing the event data.
/// </param>
/// TODO Edit XML Comment... | Handles the OnMouseLeftButtonDown event of the
UIElement control. | [
"Handles",
"the",
"OnMouseLeftButtonDown",
"event",
"of",
"the",
"UIElement",
"control",
"."
] | private void UIElement_OnMouseLeftButtonDown(
object sender,
MouseButtonEventArgs e)
{
if (e.ClickCount < 2)
{
return;
}
var messageBox = sender as Border;
var message = messageBox?.Child as TextBlock;
... | [
"private",
"void",
"UIElement_OnMouseLeftButtonDown",
"(",
"object",
"sender",
",",
"MouseButtonEventArgs",
"e",
")",
"{",
"if",
"(",
"e",
".",
"ClickCount",
"<",
"2",
")",
"{",
"return",
";",
"}",
"var",
"messageBox",
"=",
"sender",
"as",
"Border",
";",
"... | Handles the OnMouseLeftButtonDown event of the
UIElement control. | [
"Handles",
"the",
"OnMouseLeftButtonDown",
"event",
"of",
"the",
"UIElement",
"control",
"."
] | [] | [
{
"param": "sender",
"type": "object"
},
{
"param": "e",
"type": "MouseButtonEventArgs"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "The source of the event.",
"docstring_tokens": [
"The",
"source",
"of",
"the",
"event",
"."
],
"identifier": "sender",
"is_optional": null,
... |
44bf55f840f4b83fc1af024423f48c22b1a4a4c9 | michaelbmorris/FileSizeTool | MichaelBrandonMorris.FileSystemSizeInfoTool/FileSystemSizeInfoFormatter.cs | [
"MIT"
] | C# | GetFormattedFileSystemSizeInfos | string | internal string GetFormattedFileSystemSizeInfos()
{
var formattedFileSystemSizeInfos = new StringBuilder();
var header = new StringBuilder();
header.AppendCsv(ResultNumberHeader);
if (ShouldSplitPaths && MaxPathLevels != null)
{
for (v... | /// <summary>
/// Gets the formatted file system size infos.
/// </summary>
/// <returns>System.String.</returns>
/// TODO Edit XML Comment Template for GetFormattedFileSystemSizeInfos | Gets the formatted file system size infos. | [
"Gets",
"the",
"formatted",
"file",
"system",
"size",
"infos",
"."
] | internal string GetFormattedFileSystemSizeInfos()
{
var formattedFileSystemSizeInfos = new StringBuilder();
var header = new StringBuilder();
header.AppendCsv(ResultNumberHeader);
if (ShouldSplitPaths && MaxPathLevels != null)
{
for (va... | [
"internal",
"string",
"GetFormattedFileSystemSizeInfos",
"(",
")",
"{",
"var",
"formattedFileSystemSizeInfos",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"var",
"header",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"header",
".",
"AppendCsv",
"(",
"ResultNumberHe... | Gets the formatted file system size infos. | [
"Gets",
"the",
"formatted",
"file",
"system",
"size",
"infos",
"."
] | [] | [] | {
"others": [],
"outlier_params": [],
"params": [],
"raises": [],
"returns": [
{
"docstring": null,
"docstring_tokens": [
"None"
],
"type": null
}
]
} |
f7c5583479fdf51089669041e2046850266e5c04 | michaelbmorris/FileSizeTool | MichaelBrandonMorris.FileSystemSizeInfoTool/FileSystemSizeInfoGetter.cs | [
"MIT"
] | C# | GetFileSystemSizeInfos | null | internal HashSet<FileSystemSizeInfo> GetFileSystemSizeInfos()
{
FileSystemSizeInfos = new HashSet<FileSystemSizeInfo>();
foreach (var directory in SearchDirectories)
{
CancellationToken.ThrowIfCancellationRequested();
try
{
... | /// <summary>
/// Gets the file system size infos.
/// </summary>
/// <returns>HashSet<FileSystemSizeInfo>.</returns>
/// TODO Edit XML Comment Template for GetFileSystemSizeInfos | Gets the file system size infos. | [
"Gets",
"the",
"file",
"system",
"size",
"infos",
"."
] | internal HashSet<FileSystemSizeInfo> GetFileSystemSizeInfos()
{
FileSystemSizeInfos = new HashSet<FileSystemSizeInfo>();
foreach (var directory in SearchDirectories)
{
CancellationToken.ThrowIfCancellationRequested();
try
{
... | [
"internal",
"HashSet",
"<",
"FileSystemSizeInfo",
">",
"GetFileSystemSizeInfos",
"(",
")",
"{",
"FileSystemSizeInfos",
"=",
"new",
"HashSet",
"<",
"FileSystemSizeInfo",
">",
"(",
")",
";",
"foreach",
"(",
"var",
"directory",
"in",
"SearchDirectories",
")",
"{",
... | Gets the file system size infos. | [
"Gets",
"the",
"file",
"system",
"size",
"infos",
"."
] | [] | [] | {
"others": [],
"outlier_params": [],
"params": [],
"raises": [],
"returns": [
{
"docstring": null,
"docstring_tokens": [
"None"
],
"type": null
}
]
} |
ccc0bcbce1174b90806ec8af18b93ca9d3b5c09c | michaelbmorris/FileSizeTool | MichaelBrandonMorris.FileSystemSizeInfoTool/ViewModel.cs | [
"MIT"
] | C# | CanGetFileSizeInfo | bool | private bool CanGetFileSizeInfo()
{
return SearchPaths.ContainsText()
&& PathDisplayOptionIsChecked()
&& ScopeIsSelected();
} | /// <summary>
/// Determines whether this instance [can get file size
/// information].
/// </summary>
/// <returns>
/// <c>true</c> if this instance [can get file size
/// information]; otherwise, <c>false</c>.
/// </returns>
/// TODO Edit XML Comment Template for CanGetFileSizeInfo | Determines whether this instance [can get file size
information]. | [
"Determines",
"whether",
"this",
"instance",
"[",
"can",
"get",
"file",
"size",
"information",
"]",
"."
] | private bool CanGetFileSizeInfo()
{
return SearchPaths.ContainsText()
&& PathDisplayOptionIsChecked()
&& ScopeIsSelected();
} | [
"private",
"bool",
"CanGetFileSizeInfo",
"(",
")",
"{",
"return",
"SearchPaths",
".",
"ContainsText",
"(",
")",
"&&",
"PathDisplayOptionIsChecked",
"(",
")",
"&&",
"ScopeIsSelected",
"(",
")",
";",
"}"
] | Determines whether this instance [can get file size
information]. | [
"Determines",
"whether",
"this",
"instance",
"[",
"can",
"get",
"file",
"size",
"information",
"]",
"."
] | [] | [] | {
"others": [],
"outlier_params": [],
"params": [],
"raises": [],
"returns": [
{
"docstring": null,
"docstring_tokens": [
"None"
],
"type": null
}
]
} |
ccc0bcbce1174b90806ec8af18b93ca9d3b5c09c | michaelbmorris/FileSizeTool | MichaelBrandonMorris.FileSystemSizeInfoTool/ViewModel.cs | [
"MIT"
] | C# | CanRemoveExcludedPath | bool | private bool CanRemoveExcludedPath(
DynamicDirectoryPath excludedPath = null)
{
return ExcludedPaths.Count > 1
|| ExcludedPaths.All(x => !x.IsNullOrWhiteSpace());
} | /// <summary>
/// Determines whether this instance [can remove excluded
/// path] the specified excluded path.
/// </summary>
/// <param name="excludedPath">The excluded path.</param>
/// <returns>
/// <c>true</c> if this instance [can remove excluded path]
/// the specified excluded path; otherwise, <c... | Determines whether this instance [can remove excluded
path] the specified excluded path. | [
"Determines",
"whether",
"this",
"instance",
"[",
"can",
"remove",
"excluded",
"path",
"]",
"the",
"specified",
"excluded",
"path",
"."
] | private bool CanRemoveExcludedPath(
DynamicDirectoryPath excludedPath = null)
{
return ExcludedPaths.Count > 1
|| ExcludedPaths.All(x => !x.IsNullOrWhiteSpace());
} | [
"private",
"bool",
"CanRemoveExcludedPath",
"(",
"DynamicDirectoryPath",
"excludedPath",
"=",
"null",
")",
"{",
"return",
"ExcludedPaths",
".",
"Count",
">",
"1",
"||",
"ExcludedPaths",
".",
"All",
"(",
"x",
"=>",
"!",
"x",
".",
"IsNullOrWhiteSpace",
"(",
")",... | Determines whether this instance [can remove excluded
path] the specified excluded path. | [
"Determines",
"whether",
"this",
"instance",
"[",
"can",
"remove",
"excluded",
"path",
"]",
"the",
"specified",
"excluded",
"path",
"."
] | [] | [
{
"param": "excludedPath",
"type": "DynamicDirectoryPath"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "The excluded path.",
"docstring_tokens": [
"The",
"excluded",
"path",
"."
],
"identifier": "excludedPath",
"is_optional": null,
"type": "DynamicDirectory... |
ccc0bcbce1174b90806ec8af18b93ca9d3b5c09c | michaelbmorris/FileSizeTool | MichaelBrandonMorris.FileSystemSizeInfoTool/ViewModel.cs | [
"MIT"
] | C# | CanRemoveExtension | bool | private bool CanRemoveExtension(
DynamicText.DynamicText excludedExtension)
{
return Extensions.Count > 1
|| Extensions.All(x => !x.IsNullOrWhiteSpace());
} | /// <summary>
/// Determines whether this instance [can remove extension]
/// the specified excluded extension.
/// </summary>
/// <param name="excludedExtension">The excluded extension.</param>
/// <returns>
/// <c>true</c> if this instance [can remove extension] the
/// specified excluded extension; o... | Determines whether this instance [can remove extension]
the specified excluded extension. | [
"Determines",
"whether",
"this",
"instance",
"[",
"can",
"remove",
"extension",
"]",
"the",
"specified",
"excluded",
"extension",
"."
] | private bool CanRemoveExtension(
DynamicText.DynamicText excludedExtension)
{
return Extensions.Count > 1
|| Extensions.All(x => !x.IsNullOrWhiteSpace());
} | [
"private",
"bool",
"CanRemoveExtension",
"(",
"DynamicText",
".",
"DynamicText",
"excludedExtension",
")",
"{",
"return",
"Extensions",
".",
"Count",
">",
"1",
"||",
"Extensions",
".",
"All",
"(",
"x",
"=>",
"!",
"x",
".",
"IsNullOrWhiteSpace",
"(",
")",
")"... | Determines whether this instance [can remove extension]
the specified excluded extension. | [
"Determines",
"whether",
"this",
"instance",
"[",
"can",
"remove",
"extension",
"]",
"the",
"specified",
"excluded",
"extension",
"."
] | [] | [
{
"param": "excludedExtension",
"type": "DynamicText.DynamicText"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "The excluded extension.",
"docstring_tokens": [
"The",
"excluded",
"extension",
"."
],
"identifier": "excludedExtension",
"is_optional": null,
"type": "D... |
ccc0bcbce1174b90806ec8af18b93ca9d3b5c09c | michaelbmorris/FileSizeTool | MichaelBrandonMorris.FileSystemSizeInfoTool/ViewModel.cs | [
"MIT"
] | C# | CanRemoveSearchPath | bool | private bool CanRemoveSearchPath(DynamicDirectoryPath searchPath = null)
{
return SearchPaths.Count > 1
|| SearchPaths.All(x => !x.IsNullOrWhiteSpace());
} | /// <summary>
/// Determines whether this instance [can remove search
/// path] the specified search path.
/// </summary>
/// <param name="searchPath">The search path.</param>
/// <returns>
/// <c>true</c> if this instance [can remove search path]
/// the specified search path; otherwise, <c>false</c>.
... | Determines whether this instance [can remove search
path] the specified search path. | [
"Determines",
"whether",
"this",
"instance",
"[",
"can",
"remove",
"search",
"path",
"]",
"the",
"specified",
"search",
"path",
"."
] | private bool CanRemoveSearchPath(DynamicDirectoryPath searchPath = null)
{
return SearchPaths.Count > 1
|| SearchPaths.All(x => !x.IsNullOrWhiteSpace());
} | [
"private",
"bool",
"CanRemoveSearchPath",
"(",
"DynamicDirectoryPath",
"searchPath",
"=",
"null",
")",
"{",
"return",
"SearchPaths",
".",
"Count",
">",
"1",
"||",
"SearchPaths",
".",
"All",
"(",
"x",
"=>",
"!",
"x",
".",
"IsNullOrWhiteSpace",
"(",
")",
")",
... | Determines whether this instance [can remove search
path] the specified search path. | [
"Determines",
"whether",
"this",
"instance",
"[",
"can",
"remove",
"search",
"path",
"]",
"the",
"specified",
"search",
"path",
"."
] | [] | [
{
"param": "searchPath",
"type": "DynamicDirectoryPath"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "The search path.",
"docstring_tokens": [
"The",
"search",
"path",
"."
],
"identifier": "searchPath",
"is_optional": null,
"type": "DynamicDirectoryPath"
... |
ccc0bcbce1174b90806ec8af18b93ca9d3b5c09c | michaelbmorris/FileSizeTool | MichaelBrandonMorris.FileSystemSizeInfoTool/ViewModel.cs | [
"MIT"
] | C# | ExecuteGetFileSizeInfo | null | private async void ExecuteGetFileSizeInfo()
{
var searchPaths = from x in SearchPaths
where !x.IsNullOrWhiteSpace()
select x.Text;
var excludedPaths = from x in ExcludedPaths
where !x.IsNullOrWhiteSpace()
select x.Text;
... | /// <summary>
/// Executes the get file size information.
/// </summary>
/// TODO Edit XML Comment Template for ExecuteGetFileSizeInfo | Executes the get file size information. | [
"Executes",
"the",
"get",
"file",
"size",
"information",
"."
] | private async void ExecuteGetFileSizeInfo()
{
var searchPaths = from x in SearchPaths
where !x.IsNullOrWhiteSpace()
select x.Text;
var excludedPaths = from x in ExcludedPaths
where !x.IsNullOrWhiteSpace()
select x.Text;
... | [
"private",
"async",
"void",
"ExecuteGetFileSizeInfo",
"(",
")",
"{",
"var",
"searchPaths",
"=",
"from",
"x",
"in",
"SearchPaths",
"where",
"!",
"x",
".",
"IsNullOrWhiteSpace",
"(",
")",
"select",
"x",
".",
"Text",
";",
"var",
"excludedPaths",
"=",
"from",
... | Executes the get file size information. | [
"Executes",
"the",
"get",
"file",
"size",
"information",
"."
] | [] | [] | {
"others": [],
"outlier_params": [],
"params": [],
"raises": [],
"returns": []
} |
ccc0bcbce1174b90806ec8af18b93ca9d3b5c09c | michaelbmorris/FileSizeTool | MichaelBrandonMorris.FileSystemSizeInfoTool/ViewModel.cs | [
"MIT"
] | C# | ExecuteRemoveExcludedPath | null | private void ExecuteRemoveExcludedPath(
DynamicDirectoryPath excludedPath)
{
if (ExcludedPaths.Count > 1)
{
ExcludedPaths.Remove(excludedPath);
}
else
{
ExcludedPaths.First().Text = string.Empty;
... | /// <summary>
/// Executes the remove excluded path.
/// </summary>
/// <param name="excludedPath">The excluded path.</param>
/// TODO Edit XML Comment Template for ExecuteRemoveExcludedPath | Executes the remove excluded path. | [
"Executes",
"the",
"remove",
"excluded",
"path",
"."
] | private void ExecuteRemoveExcludedPath(
DynamicDirectoryPath excludedPath)
{
if (ExcludedPaths.Count > 1)
{
ExcludedPaths.Remove(excludedPath);
}
else
{
ExcludedPaths.First().Text = string.Empty;
... | [
"private",
"void",
"ExecuteRemoveExcludedPath",
"(",
"DynamicDirectoryPath",
"excludedPath",
")",
"{",
"if",
"(",
"ExcludedPaths",
".",
"Count",
">",
"1",
")",
"{",
"ExcludedPaths",
".",
"Remove",
"(",
"excludedPath",
")",
";",
"}",
"else",
"{",
"ExcludedPaths",... | Executes the remove excluded path. | [
"Executes",
"the",
"remove",
"excluded",
"path",
"."
] | [] | [
{
"param": "excludedPath",
"type": "DynamicDirectoryPath"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "The excluded path.",
"docstring_tokens": [
"The",
"excluded",
"path",
"."
],
"identifier": "excludedPath",
"is_optional": null,
"type": "DynamicDirectory... |
ccc0bcbce1174b90806ec8af18b93ca9d3b5c09c | michaelbmorris/FileSizeTool | MichaelBrandonMorris.FileSystemSizeInfoTool/ViewModel.cs | [
"MIT"
] | C# | ExecuteRemoveSearchPath | null | private void ExecuteRemoveSearchPath(DynamicDirectoryPath searchPath)
{
if (SearchPaths.Count > 1)
{
SearchPaths.Remove(searchPath);
}
else
{
ExcludedPaths.First().Text = string.Empty;
}
} | /// <summary>
/// Executes the remove search path.
/// </summary>
/// <param name="searchPath">The search path.</param>
/// TODO Edit XML Comment Template for ExecuteRemoveSearchPath | Executes the remove search path. | [
"Executes",
"the",
"remove",
"search",
"path",
"."
] | private void ExecuteRemoveSearchPath(DynamicDirectoryPath searchPath)
{
if (SearchPaths.Count > 1)
{
SearchPaths.Remove(searchPath);
}
else
{
ExcludedPaths.First().Text = string.Empty;
}
} | [
"private",
"void",
"ExecuteRemoveSearchPath",
"(",
"DynamicDirectoryPath",
"searchPath",
")",
"{",
"if",
"(",
"SearchPaths",
".",
"Count",
">",
"1",
")",
"{",
"SearchPaths",
".",
"Remove",
"(",
"searchPath",
")",
";",
"}",
"else",
"{",
"ExcludedPaths",
".",
... | Executes the remove search path. | [
"Executes",
"the",
"remove",
"search",
"path",
"."
] | [] | [
{
"param": "searchPath",
"type": "DynamicDirectoryPath"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "The search path.",
"docstring_tokens": [
"The",
"search",
"path",
"."
],
"identifier": "searchPath",
"is_optional": null,
"type": "DynamicDirectoryPath"
... |
6c6f5a7b14c43bd3687d9cc26bee0ef37f1419d6 | iCoreSolutions/vsgallery | VsGallery.Core/Threading/ThreadingExtensions.cs | [
"MIT"
] | C# | Raise | null | public static void Raise<T>(this Action<T> action, T args)
{
// Maybe its WinForms?
if (action.Target is ISynchronizeInvoke syncTarget && syncTarget.InvokeRequired)
{
// WinForms target which requires marshaling
syncTarget.BeginInvoke(action, n... | /// <summary>
/// Extension method which marshals actions back onto the main thread
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="action"></param>
/// <param name="args"></param> | Extension method which marshals actions back onto the main thread | [
"Extension",
"method",
"which",
"marshals",
"actions",
"back",
"onto",
"the",
"main",
"thread"
] | public static void Raise<T>(this Action<T> action, T args)
{
if (action.Target is ISynchronizeInvoke syncTarget && syncTarget.InvokeRequired)
{
syncTarget.BeginInvoke(action, new object[] { args });
}
else
{
action.Dynam... | [
"public",
"static",
"void",
"Raise",
"<",
"T",
">",
"(",
"this",
"Action",
"<",
"T",
">",
"action",
",",
"T",
"args",
")",
"{",
"if",
"(",
"action",
".",
"Target",
"is",
"ISynchronizeInvoke",
"syncTarget",
"&&",
"syncTarget",
".",
"InvokeRequired",
")",
... | Extension method which marshals actions back onto the main thread | [
"Extension",
"method",
"which",
"marshals",
"actions",
"back",
"onto",
"the",
"main",
"thread"
] | [
"// Maybe its WinForms?",
"// WinForms target which requires marshaling",
"// Just do it."
] | [
{
"param": "Action<T>",
"type": "this"
},
{
"param": "args",
"type": "T"
}
] | {
"others": [
{
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "typeparam"
}
],
"outlier_params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "action",
"is_optional":... |
6f50e14e41ccbd5a99e4045fcd8e148633699cba | iCoreSolutions/vsgallery | VsGallery.WebService/Controllers/FeedsController.cs | [
"MIT"
] | C# | GetAsJson | null | [HttpGet]
[Route("api/json")]
public IHttpActionResult GetAsJson()
{
var feed = LoadFeed();
return Ok(JsonConvert.SerializeObject(feed));
} | /// <summary>
/// JSON feed for the entire package catalog. Same data that is being fed through the atom feed but just in a handier JSON format.
/// </summary>
/// <returns></returns> | JSON feed for the entire package catalog. Same data that is being fed through the atom feed but just in a handier JSON format. | [
"JSON",
"feed",
"for",
"the",
"entire",
"package",
"catalog",
".",
"Same",
"data",
"that",
"is",
"being",
"fed",
"through",
"the",
"atom",
"feed",
"but",
"just",
"in",
"a",
"handier",
"JSON",
"format",
"."
] | [HttpGet]
[Route("api/json")]
public IHttpActionResult GetAsJson()
{
var feed = LoadFeed();
return Ok(JsonConvert.SerializeObject(feed));
} | [
"[",
"HttpGet",
"]",
"[",
"Route",
"(",
"\"",
"\"",
")",
"]",
"public",
"IHttpActionResult",
"GetAsJson",
"(",
")",
"{",
"var",
"feed",
"=",
"LoadFeed",
"(",
")",
";",
"return",
"Ok",
"(",
"JsonConvert",
".",
"SerializeObject",
"(",
"feed",
")",
")",
... | JSON feed for the entire package catalog. | [
"JSON",
"feed",
"for",
"the",
"entire",
"package",
"catalog",
"."
] | [] | [] | {
"others": [],
"outlier_params": [],
"params": [],
"raises": [],
"returns": [
{
"docstring": null,
"docstring_tokens": [
"None"
],
"type": null
}
]
} |
6f50e14e41ccbd5a99e4045fcd8e148633699cba | iCoreSolutions/vsgallery | VsGallery.WebService/Controllers/FeedsController.cs | [
"MIT"
] | C# | GetVsixData | null | [HttpGet]
[Route("feeds/VSIXData/{vsixId}/{*file}")]
[ApiExplorerSettings(IgnoreApi = true)]
public IHttpActionResult GetVsixData(string vsixId, string file)
{
var filePath = Path.Combine(_configuration.VsixStorageDirectory, "VSIXData", vsixId, file);
return new F... | /// <summary>
/// return additional feed vsix metadata, which is inside a feed description like e.g. preview image
/// </summary>
/// <param name="vsixId"></param>
/// <param name="file"></param>
/// <returns></returns> | return additional feed vsix metadata, which is inside a feed description like e.g. preview image | [
"return",
"additional",
"feed",
"vsix",
"metadata",
"which",
"is",
"inside",
"a",
"feed",
"description",
"like",
"e",
".",
"g",
".",
"preview",
"image"
] | [HttpGet]
[Route("feeds/VSIXData/{vsixId}/{*file}")]
[ApiExplorerSettings(IgnoreApi = true)]
public IHttpActionResult GetVsixData(string vsixId, string file)
{
var filePath = Path.Combine(_configuration.VsixStorageDirectory, "VSIXData", vsixId, file);
return new F... | [
"[",
"HttpGet",
"]",
"[",
"Route",
"(",
"\"",
"\"",
")",
"]",
"[",
"ApiExplorerSettings",
"(",
"IgnoreApi",
"=",
"true",
")",
"]",
"public",
"IHttpActionResult",
"GetVsixData",
"(",
"string",
"vsixId",
",",
"string",
"file",
")",
"{",
"var",
"filePath",
... | return additional feed vsix metadata, which is inside a feed description like e.g. | [
"return",
"additional",
"feed",
"vsix",
"metadata",
"which",
"is",
"inside",
"a",
"feed",
"description",
"like",
"e",
".",
"g",
"."
] | [] | [
{
"param": "vsixId",
"type": "string"
},
{
"param": "file",
"type": "string"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "vsixId",
"is_optional": null,
"type": "string"
},
{
"default": null,
"docstring": null,
"docstring_... |
6f50e14e41ccbd5a99e4045fcd8e148633699cba | iCoreSolutions/vsgallery | VsGallery.WebService/Controllers/FeedsController.cs | [
"MIT"
] | C# | GetAtomFeed | null | [HttpGet]
[Route("feeds/atom.xml")]
[Route("feeds/atom", Name = "AtomFeed")]
public IHttpActionResult GetAtomFeed()
{
return FormatFeedAs("application/atom+xml", feed => new Atom10FeedFormatter(feed));
} | /// <summary>
/// This is the main entry point for the VSIX feed and serves up the Syndicate-Feed compatible Atom file
/// containing all available extensions on the server.
/// This is the URL endpoint that should be used in Visual Studio.
/// </summary>
/// <returns></returns> | This is the main entry point for the VSIX feed and serves up the Syndicate-Feed compatible Atom file
containing all available extensions on the server.
This is the URL endpoint that should be used in Visual Studio. | [
"This",
"is",
"the",
"main",
"entry",
"point",
"for",
"the",
"VSIX",
"feed",
"and",
"serves",
"up",
"the",
"Syndicate",
"-",
"Feed",
"compatible",
"Atom",
"file",
"containing",
"all",
"available",
"extensions",
"on",
"the",
"server",
".",
"This",
"is",
"th... | [HttpGet]
[Route("feeds/atom.xml")]
[Route("feeds/atom", Name = "AtomFeed")]
public IHttpActionResult GetAtomFeed()
{
return FormatFeedAs("application/atom+xml", feed => new Atom10FeedFormatter(feed));
} | [
"[",
"HttpGet",
"]",
"[",
"Route",
"(",
"\"",
"\"",
")",
"]",
"[",
"Route",
"(",
"\"",
"\"",
",",
"Name",
"=",
"\"",
"\"",
")",
"]",
"public",
"IHttpActionResult",
"GetAtomFeed",
"(",
")",
"{",
"return",
"FormatFeedAs",
"(",
"\"",
"\"",
",",
"feed"... | This is the main entry point for the VSIX feed and serves up the Syndicate-Feed compatible Atom file
containing all available extensions on the server. | [
"This",
"is",
"the",
"main",
"entry",
"point",
"for",
"the",
"VSIX",
"feed",
"and",
"serves",
"up",
"the",
"Syndicate",
"-",
"Feed",
"compatible",
"Atom",
"file",
"containing",
"all",
"available",
"extensions",
"on",
"the",
"server",
"."
] | [] | [] | {
"others": [],
"outlier_params": [],
"params": [],
"raises": [],
"returns": [
{
"docstring": null,
"docstring_tokens": [
"None"
],
"type": null
}
]
} |
6f50e14e41ccbd5a99e4045fcd8e148633699cba | iCoreSolutions/vsgallery | VsGallery.WebService/Controllers/FeedsController.cs | [
"MIT"
] | C# | GetRssFeed | null | [HttpGet]
[Route("feeds/rss.xml")]
[Route("feeds/rss", Name = "RssFeed")]
public IHttpActionResult GetRssFeed()
{
return FormatFeedAs("application/rss+xml", feed => new Rss20FeedFormatter(feed));
} | /// <summary>
/// The same feed just as RSS 2.0 Feed
/// </summary>
/// <returns></returns> | The same feed just as RSS 2.0 Feed | [
"The",
"same",
"feed",
"just",
"as",
"RSS",
"2",
".",
"0",
"Feed"
] | [HttpGet]
[Route("feeds/rss.xml")]
[Route("feeds/rss", Name = "RssFeed")]
public IHttpActionResult GetRssFeed()
{
return FormatFeedAs("application/rss+xml", feed => new Rss20FeedFormatter(feed));
} | [
"[",
"HttpGet",
"]",
"[",
"Route",
"(",
"\"",
"\"",
")",
"]",
"[",
"Route",
"(",
"\"",
"\"",
",",
"Name",
"=",
"\"",
"\"",
")",
"]",
"public",
"IHttpActionResult",
"GetRssFeed",
"(",
")",
"{",
"return",
"FormatFeedAs",
"(",
"\"",
"\"",
",",
"feed",... | The same feed just as RSS 2.0 Feed | [
"The",
"same",
"feed",
"just",
"as",
"RSS",
"2",
".",
"0",
"Feed"
] | [] | [] | {
"others": [],
"outlier_params": [],
"params": [],
"raises": [],
"returns": [
{
"docstring": null,
"docstring_tokens": [
"None"
],
"type": null
}
]
} |
e2aa07fe2ffec8eaa31320e9d23ffb1c7129468a | iCoreSolutions/vsgallery | VsGallery.WebService/Controllers/UploadController.cs | [
"MIT"
] | C# | AddOrUpdateVsix | null | [HttpPost]
[HttpPut]
public IHttpActionResult AddOrUpdateVsix()
{
// Get the uploaded image from the Files collection
var requestFiles = HttpContext.Current.Request.Files;
var httpFiles = Enumerable.Range(0, requestFiles.Count).Select(i => requestFiles[i]).ToL... | /// <summary>
/// This endpoint accepts form-data uploads of one or more .vsix files to the hosting service.
/// </summary> | This endpoint accepts form-data uploads of one or more .vsix files to the hosting service. | [
"This",
"endpoint",
"accepts",
"form",
"-",
"data",
"uploads",
"of",
"one",
"or",
"more",
".",
"vsix",
"files",
"to",
"the",
"hosting",
"service",
"."
] | [HttpPost]
[HttpPut]
public IHttpActionResult AddOrUpdateVsix()
{
var requestFiles = HttpContext.Current.Request.Files;
var httpFiles = Enumerable.Range(0, requestFiles.Count).Select(i => requestFiles[i]).ToList();
if (!httpFiles.Any())
{
... | [
"[",
"HttpPost",
"]",
"[",
"HttpPut",
"]",
"public",
"IHttpActionResult",
"AddOrUpdateVsix",
"(",
")",
"{",
"var",
"requestFiles",
"=",
"HttpContext",
".",
"Current",
".",
"Request",
".",
"Files",
";",
"var",
"httpFiles",
"=",
"Enumerable",
".",
"Range",
"("... | This endpoint accepts form-data uploads of one or more .vsix files to the hosting service. | [
"This",
"endpoint",
"accepts",
"form",
"-",
"data",
"uploads",
"of",
"one",
"or",
"more",
".",
"vsix",
"files",
"to",
"the",
"hosting",
"service",
"."
] | [
"// Get the uploaded image from the Files collection",
"// Validate the uploaded image(optional)",
"// Get the complete file path",
"// Save the uploaded file to \"UploadedFiles\" folder",
"// Now move all the files uploaded to the main storage directory"
] | [] | {
"others": [],
"outlier_params": [],
"params": [],
"raises": [],
"returns": []
} |
ccf0a02747fd0e511a74cc94a98800f1af3881dd | iCoreSolutions/vsgallery | VsGallery.WebService/Controllers/RatingsController.cs | [
"MIT"
] | C# | GetVsixRating | null | [HttpGet]
public IHttpActionResult GetVsixRating(string id)
{
var rating = FileCounter.GetRating(id, _configuration);
var popularity = new PackagePopularity() { Rating = rating.Item1, Count = rating.Item2 };
return Ok(popularity);
} | /// <summary>
/// Retrieves the rating value and vote count for a particular VSIX package by its VSIX ID.
/// </summary>
/// <param name="id"></param>
/// <returns></returns> | Retrieves the rating value and vote count for a particular VSIX package by its VSIX ID. | [
"Retrieves",
"the",
"rating",
"value",
"and",
"vote",
"count",
"for",
"a",
"particular",
"VSIX",
"package",
"by",
"its",
"VSIX",
"ID",
"."
] | [HttpGet]
public IHttpActionResult GetVsixRating(string id)
{
var rating = FileCounter.GetRating(id, _configuration);
var popularity = new PackagePopularity() { Rating = rating.Item1, Count = rating.Item2 };
return Ok(popularity);
} | [
"[",
"HttpGet",
"]",
"public",
"IHttpActionResult",
"GetVsixRating",
"(",
"string",
"id",
")",
"{",
"var",
"rating",
"=",
"FileCounter",
".",
"GetRating",
"(",
"id",
",",
"_configuration",
")",
";",
"var",
"popularity",
"=",
"new",
"PackagePopularity",
"(",
... | Retrieves the rating value and vote count for a particular VSIX package by its VSIX ID. | [
"Retrieves",
"the",
"rating",
"value",
"and",
"vote",
"count",
"for",
"a",
"particular",
"VSIX",
"package",
"by",
"its",
"VSIX",
"ID",
"."
] | [] | [
{
"param": "id",
"type": "string"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "id",
"is_optional": null,
"type": "string"
}
],
"raises": [],
"returns": [
{
"docstring": null,
"do... |
ccf0a02747fd0e511a74cc94a98800f1af3881dd | iCoreSolutions/vsgallery | VsGallery.WebService/Controllers/RatingsController.cs | [
"MIT"
] | C# | UpdateVsixRating | null | [HttpPut]
[HttpPost]
public IHttpActionResult UpdateVsixRating(string vsixId, [FromBody] string ratingString)
{
if (!float.TryParse(ratingString, out float rawRating))
{
return BadRequest();
}
// Upperbound the rating
f... | /// <summary>
/// Submitting rating values for a particular VSIX package by its VSIX ID.
/// The post payload should be just raw string and contain a single floating point value in the range between [0.0, 5.0].
/// </summary>
/// <param name="vsixId"></param>
/// <param name="ratingString"></param>
/// <returns></retu... | Submitting rating values for a particular VSIX package by its VSIX ID.
The post payload should be just raw string and contain a single floating point value in the range between [0.0, 5.0]. | [
"Submitting",
"rating",
"values",
"for",
"a",
"particular",
"VSIX",
"package",
"by",
"its",
"VSIX",
"ID",
".",
"The",
"post",
"payload",
"should",
"be",
"just",
"raw",
"string",
"and",
"contain",
"a",
"single",
"floating",
"point",
"value",
"in",
"the",
"r... | [HttpPut]
[HttpPost]
public IHttpActionResult UpdateVsixRating(string vsixId, [FromBody] string ratingString)
{
if (!float.TryParse(ratingString, out float rawRating))
{
return BadRequest();
}
float rating = Math.Min(5, Math.Max(0, ... | [
"[",
"HttpPut",
"]",
"[",
"HttpPost",
"]",
"public",
"IHttpActionResult",
"UpdateVsixRating",
"(",
"string",
"vsixId",
",",
"[",
"FromBody",
"]",
"string",
"ratingString",
")",
"{",
"if",
"(",
"!",
"float",
".",
"TryParse",
"(",
"ratingString",
",",
"out",
... | Submitting rating values for a particular VSIX package by its VSIX ID. | [
"Submitting",
"rating",
"values",
"for",
"a",
"particular",
"VSIX",
"package",
"by",
"its",
"VSIX",
"ID",
"."
] | [
"// Upperbound the rating",
"// Record the rating",
"// Trigger a re-creation of the ATOM feed by touching the main file if possible",
"// All ok"
] | [
{
"param": "vsixId",
"type": "string"
},
{
"param": "string",
"type": "[FromBody]"
}
] | {
"others": [],
"outlier_params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "ratingString",
"is_optional": null,
"type": null
}
],
"params": [
{
"default": null,
"docstring": null,
"docstr... |
de60e3039ebb513014d89d4cd8bc1c08816d99aa | iCoreSolutions/vsgallery | VsGallery.Core/Threading/AsyncBackgroundProcessor.cs | [
"MIT"
] | C# | RunAsync | null | public Task<TResult> RunAsync(TProcessArgs args)
{
// Create a new cancellation source for the task
_cancelSource?.Dispose();
_cancelSource = new CancellationTokenSource();
var cancellationToken = _cancelSource.Token;
return new TaskFactory<TResult>()... | /// <summary>
/// Runs an the process asynchronously for the given <see cref="args"/> arguments.
/// </summary>
/// <param name="args">The arguments to the background process</param> | Runs an the process asynchronously for the given arguments. | [
"Runs",
"an",
"the",
"process",
"asynchronously",
"for",
"the",
"given",
"arguments",
"."
] | public Task<TResult> RunAsync(TProcessArgs args)
{
_cancelSource?.Dispose();
_cancelSource = new CancellationTokenSource();
var cancellationToken = _cancelSource.Token;
return new TaskFactory<TResult>().StartNew(CreateAsyncProcess(args, cancellationToken), cancell... | [
"public",
"Task",
"<",
"TResult",
">",
"RunAsync",
"(",
"TProcessArgs",
"args",
")",
"{",
"_cancelSource",
"?",
".",
"Dispose",
"(",
")",
";",
"_cancelSource",
"=",
"new",
"CancellationTokenSource",
"(",
")",
";",
"var",
"cancellationToken",
"=",
"_cancelSourc... | Runs an the process asynchronously for the given arguments. | [
"Runs",
"an",
"the",
"process",
"asynchronously",
"for",
"the",
"given",
"arguments",
"."
] | [
"// Create a new cancellation source for the task"
] | [
{
"param": "args",
"type": "TProcessArgs"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "The arguments to the background process",
"docstring_tokens": [
"The",
"arguments",
"to",
"the",
"background",
"process"
],
"identifier": "args",
... |
de60e3039ebb513014d89d4cd8bc1c08816d99aa | iCoreSolutions/vsgallery | VsGallery.Core/Threading/AsyncBackgroundProcessor.cs | [
"MIT"
] | C# | CancelAsync | null | public void CancelAsync()
{
if (_cancelSource != null && !_cancelSource.IsCancellationRequested)
_cancelSource.Cancel();
} | /// <summary>
/// Cancel an ongoing background job. If nothing is running or another cancellation is already
/// pending calling this funciton will have no effect.
/// </summary> | Cancel an ongoing background job. If nothing is running or another cancellation is already
pending calling this funciton will have no effect. | [
"Cancel",
"an",
"ongoing",
"background",
"job",
".",
"If",
"nothing",
"is",
"running",
"or",
"another",
"cancellation",
"is",
"already",
"pending",
"calling",
"this",
"funciton",
"will",
"have",
"no",
"effect",
"."
] | public void CancelAsync()
{
if (_cancelSource != null && !_cancelSource.IsCancellationRequested)
_cancelSource.Cancel();
} | [
"public",
"void",
"CancelAsync",
"(",
")",
"{",
"if",
"(",
"_cancelSource",
"!=",
"null",
"&&",
"!",
"_cancelSource",
".",
"IsCancellationRequested",
")",
"_cancelSource",
".",
"Cancel",
"(",
")",
";",
"}"
] | Cancel an ongoing background job. | [
"Cancel",
"an",
"ongoing",
"background",
"job",
"."
] | [] | [] | {
"others": [],
"outlier_params": [],
"params": [],
"raises": [],
"returns": []
} |
826c2a6292709667f27a375da1d35e023dcf7297 | LoloActemium/LocalizationProvider | src/DbLocalizationProvider/Queries/GetTranslation.cs | [
"Apache-2.0"
] | C# | GetResourceFromDb | null | protected virtual LocalizationResource GetResourceFromDb(string key)
{
var q = new GetResource.Query(key);
return _queryExecutor.Execute(q);
} | /// <summary>
/// Gets the resource from database.
/// </summary>
/// <param name="key">The key.</param>
/// <returns></returns> | Gets the resource from database. | [
"Gets",
"the",
"resource",
"from",
"database",
"."
] | protected virtual LocalizationResource GetResourceFromDb(string key)
{
var q = new GetResource.Query(key);
return _queryExecutor.Execute(q);
} | [
"protected",
"virtual",
"LocalizationResource",
"GetResourceFromDb",
"(",
"string",
"key",
")",
"{",
"var",
"q",
"=",
"new",
"GetResource",
".",
"Query",
"(",
"key",
")",
";",
"return",
"_queryExecutor",
".",
"Execute",
"(",
"q",
")",
";",
"}"
] | Gets the resource from database. | [
"Gets",
"the",
"resource",
"from",
"database",
"."
] | [] | [
{
"param": "key",
"type": "string"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "key",
"is_optional": null,
"type": "string"
}
],
"raises": [],
"returns": [
{
"docstring": null,
"d... |
4fa7b978630783cbbffd4e3a17ec4ddaa9801228 | LoloActemium/LocalizationProvider | src/DbLocalizationProvider/Json/JsonConverter.cs | [
"Apache-2.0"
] | C# | GetJson | null | public JObject GetJson(
string resourceClassName,
string languageName,
FallbackLanguagesCollection fallbackCollection,
bool camelCase = false)
{
var resources = _queryExecutor.Execute(new GetAllResources.Query());
var filteredResources = re... | /// <summary>
/// Gets the JSON object from given resource class.
/// </summary>
/// <param name="resourceClassName">Name of the resource class.</param>
/// <param name="languageName">Name of the language.</param>
/// <param name="fallbackCollection">List of fallback languages collection.</param>
/// <param name="camel... | Gets the JSON object from given resource class. | [
"Gets",
"the",
"JSON",
"object",
"from",
"given",
"resource",
"class",
"."
] | public JObject GetJson(
string resourceClassName,
string languageName,
FallbackLanguagesCollection fallbackCollection,
bool camelCase = false)
{
var resources = _queryExecutor.Execute(new GetAllResources.Query());
var filteredResources = re... | [
"public",
"JObject",
"GetJson",
"(",
"string",
"resourceClassName",
",",
"string",
"languageName",
",",
"FallbackLanguagesCollection",
"fallbackCollection",
",",
"bool",
"camelCase",
"=",
"false",
")",
"{",
"var",
"resources",
"=",
"_queryExecutor",
".",
"Execute",
... | Gets the JSON object from given resource class. | [
"Gets",
"the",
"JSON",
"object",
"from",
"given",
"resource",
"class",
"."
] | [] | [
{
"param": "resourceClassName",
"type": "string"
},
{
"param": "languageName",
"type": "string"
},
{
"param": "fallbackCollection",
"type": "FallbackLanguagesCollection"
},
{
"param": "camelCase",
"type": "bool"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "Name of the resource class.",
"docstring_tokens": [
"Name",
"of",
"the",
"resource",
"class",
"."
],
"identifier": "resourceClassName",
"is_opt... |
993abb2f46f8080e6c5589c9fc6bcccb580a315f | LoloActemium/LocalizationProvider | src/DbLocalizationProvider/Sync/Synchronizer.cs | [
"Apache-2.0"
] | C# | UpdateStorageSchema | null | public void UpdateStorageSchema()
{
var command = new UpdateSchema.Command();
if (!_commandExecutor.CanBeExecuted(command))
{
throw new InvalidOperationException(
"Resource sync handler is not registered. Make sure that storage provider is ... | /// <summary>
/// Updates the underlying storage schema.
/// </summary> | Updates the underlying storage schema. | [
"Updates",
"the",
"underlying",
"storage",
"schema",
"."
] | public void UpdateStorageSchema()
{
var command = new UpdateSchema.Command();
if (!_commandExecutor.CanBeExecuted(command))
{
throw new InvalidOperationException(
"Resource sync handler is not registered. Make sure that storage provider is ... | [
"public",
"void",
"UpdateStorageSchema",
"(",
")",
"{",
"var",
"command",
"=",
"new",
"UpdateSchema",
".",
"Command",
"(",
")",
";",
"if",
"(",
"!",
"_commandExecutor",
".",
"CanBeExecuted",
"(",
"command",
")",
")",
"{",
"throw",
"new",
"InvalidOperationExc... | Updates the underlying storage schema. | [
"Updates",
"the",
"underlying",
"storage",
"schema",
"."
] | [] | [] | {
"others": [],
"outlier_params": [],
"params": [],
"raises": [],
"returns": []
} |
fe525541ef2d80f9d570ee5399ff65245c2f42ff | LoloActemium/LocalizationProvider | src/DbLocalizationProvider.Storage.AzureTables/ResourceRepository.cs | [
"Apache-2.0"
] | C# | AddTranslation | null | public void AddTranslation(LocalizationResource resource, LocalizationResourceTranslation translation)
{
if (resource == null)
{
throw new ArgumentNullException(nameof(resource));
}
if (translation == null)
{
throw new ... | /// <summary>
/// Adds the translation for the resource.
/// </summary>
/// <param name="resource">The resource.</param>
/// <param name="translation">The translation.</param>
/// <exception cref="ArgumentNullException">
/// resource
/// or
/// translation
/// </exception> | Adds the translation for the resource. | [
"Adds",
"the",
"translation",
"for",
"the",
"resource",
"."
] | public void AddTranslation(LocalizationResource resource, LocalizationResourceTranslation translation)
{
if (resource == null)
{
throw new ArgumentNullException(nameof(resource));
}
if (translation == null)
{
throw new A... | [
"public",
"void",
"AddTranslation",
"(",
"LocalizationResource",
"resource",
",",
"LocalizationResourceTranslation",
"translation",
")",
"{",
"if",
"(",
"resource",
"==",
"null",
")",
"{",
"throw",
"new",
"ArgumentNullException",
"(",
"nameof",
"(",
"resource",
")",... | Adds the translation for the resource. | [
"Adds",
"the",
"translation",
"for",
"the",
"resource",
"."
] | [] | [
{
"param": "resource",
"type": "LocalizationResource"
},
{
"param": "translation",
"type": "LocalizationResourceTranslation"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "resource",
"is_optional": null,
"type": "LocalizationResource"
},
{
"default": null,
"docstring": null,
... |
fe525541ef2d80f9d570ee5399ff65245c2f42ff | LoloActemium/LocalizationProvider | src/DbLocalizationProvider.Storage.AzureTables/ResourceRepository.cs | [
"Apache-2.0"
] | C# | UpdateTranslation | null | public void UpdateTranslation(LocalizationResource resource, LocalizationResourceTranslation translation)
{
if (resource == null)
{
throw new ArgumentNullException(nameof(resource));
}
if (translation == null)
{
throw n... | /// <summary>
/// Updates the translation for the resource.
/// </summary>
/// <param name="resource">The resource.</param>
/// <param name="translation">The translation.</param>
/// <exception cref="ArgumentNullException">
/// resource
/// or
/// translation
/// </exception> | Updates the translation for the resource. | [
"Updates",
"the",
"translation",
"for",
"the",
"resource",
"."
] | public void UpdateTranslation(LocalizationResource resource, LocalizationResourceTranslation translation)
{
if (resource == null)
{
throw new ArgumentNullException(nameof(resource));
}
if (translation == null)
{
throw ne... | [
"public",
"void",
"UpdateTranslation",
"(",
"LocalizationResource",
"resource",
",",
"LocalizationResourceTranslation",
"translation",
")",
"{",
"if",
"(",
"resource",
"==",
"null",
")",
"{",
"throw",
"new",
"ArgumentNullException",
"(",
"nameof",
"(",
"resource",
"... | Updates the translation for the resource. | [
"Updates",
"the",
"translation",
"for",
"the",
"resource",
"."
] | [] | [
{
"param": "resource",
"type": "LocalizationResource"
},
{
"param": "translation",
"type": "LocalizationResourceTranslation"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "resource",
"is_optional": null,
"type": "LocalizationResource"
},
{
"default": null,
"docstring": null,
... |
fe525541ef2d80f9d570ee5399ff65245c2f42ff | LoloActemium/LocalizationProvider | src/DbLocalizationProvider.Storage.AzureTables/ResourceRepository.cs | [
"Apache-2.0"
] | C# | InsertResource | null | public void InsertResource(LocalizationResource resource)
{
if (resource == null)
{
throw new ArgumentNullException(nameof(resource));
}
var table = GetTable();
table.Execute(TableOperation.Insert(ToEntity(resource)));
} | /// <summary>
/// Inserts the resource in database.
/// </summary>
/// <param name="resource">The resource.</param>
/// <exception cref="ArgumentNullException">resource</exception> | Inserts the resource in database. | [
"Inserts",
"the",
"resource",
"in",
"database",
"."
] | public void InsertResource(LocalizationResource resource)
{
if (resource == null)
{
throw new ArgumentNullException(nameof(resource));
}
var table = GetTable();
table.Execute(TableOperation.Insert(ToEntity(resource)));
} | [
"public",
"void",
"InsertResource",
"(",
"LocalizationResource",
"resource",
")",
"{",
"if",
"(",
"resource",
"==",
"null",
")",
"{",
"throw",
"new",
"ArgumentNullException",
"(",
"nameof",
"(",
"resource",
")",
")",
";",
"}",
"var",
"table",
"=",
"GetTable"... | Inserts the resource in database. | [
"Inserts",
"the",
"resource",
"in",
"database",
"."
] | [] | [
{
"param": "resource",
"type": "LocalizationResource"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "resource",
"is_optional": null,
"type": "LocalizationResource"
}
],
"raises": [
{
"docstring": null,
... |
fe525541ef2d80f9d570ee5399ff65245c2f42ff | LoloActemium/LocalizationProvider | src/DbLocalizationProvider.Storage.AzureTables/ResourceRepository.cs | [
"Apache-2.0"
] | C# | GetAvailableLanguages | null | public IEnumerable<CultureInfo> GetAvailableLanguages(bool includeInvariant)
{
var allResources = GetAll();
return allResources
.SelectMany(r => r.Translations.Select(t => t.Language))
.Distinct()
.Where(l => includeInvariant || l != strin... | /// <summary>
/// Gets the available languages (reads in which languages translations are added).
/// </summary>
/// <param name="includeInvariant">if set to <c>true</c> include invariant.</param>
/// <returns>List of all available languages</returns> | Gets the available languages (reads in which languages translations are added). | [
"Gets",
"the",
"available",
"languages",
"(",
"reads",
"in",
"which",
"languages",
"translations",
"are",
"added",
")",
"."
] | public IEnumerable<CultureInfo> GetAvailableLanguages(bool includeInvariant)
{
var allResources = GetAll();
return allResources
.SelectMany(r => r.Translations.Select(t => t.Language))
.Distinct()
.Where(l => includeInvariant || l != string... | [
"public",
"IEnumerable",
"<",
"CultureInfo",
">",
"GetAvailableLanguages",
"(",
"bool",
"includeInvariant",
")",
"{",
"var",
"allResources",
"=",
"GetAll",
"(",
")",
";",
"return",
"allResources",
".",
"SelectMany",
"(",
"r",
"=>",
"r",
".",
"Translations",
".... | Gets the available languages (reads in which languages translations are added). | [
"Gets",
"the",
"available",
"languages",
"(",
"reads",
"in",
"which",
"languages",
"translations",
"are",
"added",
")",
"."
] | [] | [
{
"param": "includeInvariant",
"type": "bool"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "if set to true",
"docstring_tokens": [
"if",
"set",
"to",
"true"
],
"identifier": "includeInvariant",
"is_optional": null,
"type": "bool"
}
],
"r... |
fe525541ef2d80f9d570ee5399ff65245c2f42ff | LoloActemium/LocalizationProvider | src/DbLocalizationProvider.Storage.AzureTables/ResourceRepository.cs | [
"Apache-2.0"
] | C# | ResetSyncStatus | null | public void ResetSyncStatus()
{
var allKeys = GetAll().Select(r => r.ResourceKey);
var table = GetTable();
foreach (var key in allKeys)
{
var entity = new DynamicTableEntity(LocalizationResourceEntity.PartitionKey, key) { ETag = "*" };
... | /// <summary>
///Resets synchronization status of the resources.
/// </summary> | Resets synchronization status of the resources. | [
"Resets",
"synchronization",
"status",
"of",
"the",
"resources",
"."
] | public void ResetSyncStatus()
{
var allKeys = GetAll().Select(r => r.ResourceKey);
var table = GetTable();
foreach (var key in allKeys)
{
var entity = new DynamicTableEntity(LocalizationResourceEntity.PartitionKey, key) { ETag = "*" };
... | [
"public",
"void",
"ResetSyncStatus",
"(",
")",
"{",
"var",
"allKeys",
"=",
"GetAll",
"(",
")",
".",
"Select",
"(",
"r",
"=>",
"r",
".",
"ResourceKey",
")",
";",
"var",
"table",
"=",
"GetTable",
"(",
")",
";",
"foreach",
"(",
"var",
"key",
"in",
"al... | Resets synchronization status of the resources. | [
"Resets",
"synchronization",
"status",
"of",
"the",
"resources",
"."
] | [] | [] | {
"others": [],
"outlier_params": [],
"params": [],
"raises": [],
"returns": []
} |
6148fc024bcd2feddd3af1eefac6658f6d959f15 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/Messages/Flex/BubbleContainerFlexMessages.cs | [
"MIT"
] | C# | SetBubbleContainer | null | public BubbleContainerFlexMessage SetBubbleContainer(BubbleContainer bubbleContainer)
{
Contents = bubbleContainer ?? throw new ArgumentNullException(nameof(bubbleContainer));
return this;
} | /// <summary>
/// Sets a Bubble container to the FlexMessage object.
/// </summary>
/// <param name="bubbleContainer"></param>
/// <returns>Flex Message</returns> | Sets a Bubble container to the FlexMessage object. | [
"Sets",
"a",
"Bubble",
"container",
"to",
"the",
"FlexMessage",
"object",
"."
] | public BubbleContainerFlexMessage SetBubbleContainer(BubbleContainer bubbleContainer)
{
Contents = bubbleContainer ?? throw new ArgumentNullException(nameof(bubbleContainer));
return this;
} | [
"public",
"BubbleContainerFlexMessage",
"SetBubbleContainer",
"(",
"BubbleContainer",
"bubbleContainer",
")",
"{",
"Contents",
"=",
"bubbleContainer",
"??",
"throw",
"new",
"ArgumentNullException",
"(",
"nameof",
"(",
"bubbleContainer",
")",
")",
";",
"return",
"this",
... | Sets a Bubble container to the FlexMessage object. | [
"Sets",
"a",
"Bubble",
"container",
"to",
"the",
"FlexMessage",
"object",
"."
] | [] | [
{
"param": "bubbleContainer",
"type": "BubbleContainer"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "bubbleContainer",
"is_optional": null,
"type": "BubbleContainer"
}
],
"raises": [],
"returns": [
{
"docst... |
6148fc024bcd2feddd3af1eefac6658f6d959f15 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/Messages/Flex/BubbleContainerFlexMessages.cs | [
"MIT"
] | C# | SetQuickReply | null | public BubbleContainerFlexMessage SetQuickReply(QuickReply quickReply)
{
QuickReply = quickReply;
return this;
} | /// <summary>
/// Sets a QuickReply object to the FlexMessage object.
/// </summary>
/// <param name="quickReply"></param>
/// <returns>Flex Message</returns> | Sets a QuickReply object to the FlexMessage object. | [
"Sets",
"a",
"QuickReply",
"object",
"to",
"the",
"FlexMessage",
"object",
"."
] | public BubbleContainerFlexMessage SetQuickReply(QuickReply quickReply)
{
QuickReply = quickReply;
return this;
} | [
"public",
"BubbleContainerFlexMessage",
"SetQuickReply",
"(",
"QuickReply",
"quickReply",
")",
"{",
"QuickReply",
"=",
"quickReply",
";",
"return",
"this",
";",
"}"
] | Sets a QuickReply object to the FlexMessage object. | [
"Sets",
"a",
"QuickReply",
"object",
"to",
"the",
"FlexMessage",
"object",
"."
] | [] | [
{
"param": "quickReply",
"type": "QuickReply"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "quickReply",
"is_optional": null,
"type": "QuickReply"
}
],
"raises": [],
"returns": [
{
"docstring": nul... |
6148fc024bcd2feddd3af1eefac6658f6d959f15 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/Messages/Flex/BubbleContainerFlexMessages.cs | [
"MIT"
] | C# | SetSender | null | public BubbleContainerFlexMessage SetSender(Sender sender)
{
Sender = sender;
return this;
} | /// <summary>
/// Sets a Sender object to the FlexMessage object.
/// </summary>
/// <param name="sender"></param>
/// <returns>Flex Message</returns> | Sets a Sender object to the FlexMessage object. | [
"Sets",
"a",
"Sender",
"object",
"to",
"the",
"FlexMessage",
"object",
"."
] | public BubbleContainerFlexMessage SetSender(Sender sender)
{
Sender = sender;
return this;
} | [
"public",
"BubbleContainerFlexMessage",
"SetSender",
"(",
"Sender",
"sender",
")",
"{",
"Sender",
"=",
"sender",
";",
"return",
"this",
";",
"}"
] | Sets a Sender object to the FlexMessage object. | [
"Sets",
"a",
"Sender",
"object",
"to",
"the",
"FlexMessage",
"object",
"."
] | [] | [
{
"param": "sender",
"type": "Sender"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "sender",
"is_optional": null,
"type": "Sender"
}
],
"raises": [],
"returns": [
{
"docstring": null,
... |
020acf25a68713da09cfb3daf77444a93a9decf0 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/Messages/Flex/Component/Extensions/BoxComponentEntensions.cs | [
"MIT"
] | C# | AddContents | null | public static BoxComponent AddContents(this BoxComponent self, IFlexComponent component)
{
self.Contents.Add(component);
return self;
} | /// <summary>
/// Add a flex component to the Box component.
/// </summary>
/// <param name="self">BoxComponent</param>
/// <param name="component">Flex Component</param>
/// <returns>BoxComponent</returns> | Add a flex component to the Box component. | [
"Add",
"a",
"flex",
"component",
"to",
"the",
"Box",
"component",
"."
] | public static BoxComponent AddContents(this BoxComponent self, IFlexComponent component)
{
self.Contents.Add(component);
return self;
} | [
"public",
"static",
"BoxComponent",
"AddContents",
"(",
"this",
"BoxComponent",
"self",
",",
"IFlexComponent",
"component",
")",
"{",
"self",
".",
"Contents",
".",
"Add",
"(",
"component",
")",
";",
"return",
"self",
";",
"}"
] | Add a flex component to the Box component. | [
"Add",
"a",
"flex",
"component",
"to",
"the",
"Box",
"component",
"."
] | [] | [
{
"param": "BoxComponent",
"type": "this"
},
{
"param": "component",
"type": "IFlexComponent"
}
] | {
"others": [],
"outlier_params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "self",
"is_optional": null,
"type": null
}
],
"params": [
{
"default": null,
"docstring": null,
"docstring_toke... |
c0a276b9a26157270a8045f61ee1b1e7f5b1b0ca | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/Messages/Flex/CarouselContainerFlexMessges.cs | [
"MIT"
] | C# | AddBubbleContainer | null | public CarouselContainerFlexMessage AddBubbleContainer(BubbleContainer bubbleContainer)
{
if (bubbleContainer == null) { throw new ArgumentNullException(nameof(bubbleContainer)); }
var contents = (Contents as CarouselContainer).Contents;
contents.Add(bubbleContainer);
... | /// <summary>
/// Add a bubble container to the FlexMessage object.
/// </summary>
/// <param name="bubbleContainer">Bubble Container</param>
/// <returns>Flex Message</returns> | Add a bubble container to the FlexMessage object. | [
"Add",
"a",
"bubble",
"container",
"to",
"the",
"FlexMessage",
"object",
"."
] | public CarouselContainerFlexMessage AddBubbleContainer(BubbleContainer bubbleContainer)
{
if (bubbleContainer == null) { throw new ArgumentNullException(nameof(bubbleContainer)); }
var contents = (Contents as CarouselContainer).Contents;
contents.Add(bubbleContainer);
... | [
"public",
"CarouselContainerFlexMessage",
"AddBubbleContainer",
"(",
"BubbleContainer",
"bubbleContainer",
")",
"{",
"if",
"(",
"bubbleContainer",
"==",
"null",
")",
"{",
"throw",
"new",
"ArgumentNullException",
"(",
"nameof",
"(",
"bubbleContainer",
")",
")",
";",
... | Add a bubble container to the FlexMessage object. | [
"Add",
"a",
"bubble",
"container",
"to",
"the",
"FlexMessage",
"object",
"."
] | [] | [
{
"param": "bubbleContainer",
"type": "BubbleContainer"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "bubbleContainer",
"is_optional": null,
"type": "BubbleContainer"
}
],
"raises": [],
"returns": [
{
"docst... |
c0a276b9a26157270a8045f61ee1b1e7f5b1b0ca | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/Messages/Flex/CarouselContainerFlexMessges.cs | [
"MIT"
] | C# | SetQuickReply | null | public CarouselContainerFlexMessage SetQuickReply(QuickReply quickReply)
{
QuickReply = quickReply;
return this;
} | /// <summary>
/// Sets a QuickReply object to the FlexMessage object.
/// </summary>
/// <param name="quickReply"></param>
/// <returns>Flex Message</returns> | Sets a QuickReply object to the FlexMessage object. | [
"Sets",
"a",
"QuickReply",
"object",
"to",
"the",
"FlexMessage",
"object",
"."
] | public CarouselContainerFlexMessage SetQuickReply(QuickReply quickReply)
{
QuickReply = quickReply;
return this;
} | [
"public",
"CarouselContainerFlexMessage",
"SetQuickReply",
"(",
"QuickReply",
"quickReply",
")",
"{",
"QuickReply",
"=",
"quickReply",
";",
"return",
"this",
";",
"}"
] | Sets a QuickReply object to the FlexMessage object. | [
"Sets",
"a",
"QuickReply",
"object",
"to",
"the",
"FlexMessage",
"object",
"."
] | [] | [
{
"param": "quickReply",
"type": "QuickReply"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "quickReply",
"is_optional": null,
"type": "QuickReply"
}
],
"raises": [],
"returns": [
{
"docstring": nul... |
c0a276b9a26157270a8045f61ee1b1e7f5b1b0ca | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/Messages/Flex/CarouselContainerFlexMessges.cs | [
"MIT"
] | C# | SetSender | null | public CarouselContainerFlexMessage SetSender(Sender sender)
{
Sender = sender;
return this;
} | /// <summary>
/// Sets a Sender object to the FlexMessage object.
/// </summary>
/// <param name="sender"></param>
/// <returns>Flex Message</returns> | Sets a Sender object to the FlexMessage object. | [
"Sets",
"a",
"Sender",
"object",
"to",
"the",
"FlexMessage",
"object",
"."
] | public CarouselContainerFlexMessage SetSender(Sender sender)
{
Sender = sender;
return this;
} | [
"public",
"CarouselContainerFlexMessage",
"SetSender",
"(",
"Sender",
"sender",
")",
"{",
"Sender",
"=",
"sender",
";",
"return",
"this",
";",
"}"
] | Sets a Sender object to the FlexMessage object. | [
"Sets",
"a",
"Sender",
"object",
"to",
"the",
"FlexMessage",
"object",
"."
] | [] | [
{
"param": "sender",
"type": "Sender"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "sender",
"is_optional": null,
"type": "Sender"
}
],
"raises": [],
"returns": [
{
"docstring": null,
... |
c7ac11eb6a67692c6ce1c11ac725dd7da9d5deb8 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/OAuth/OAuthClient.cs | [
"MIT"
] | C# | IssueChannelAccessTokenAsync | null | public async Task<ChannelAccessToken> IssueChannelAccessTokenAsync()
{
HttpResponseMessage response = await _client.PostAsync($"{_uri}/oauth/accessToken",
new FormUrlEncodedContent(new Dictionary<string, string>
{
["grant_type"] = "client_credentia... | /// <summary>
/// Issues a short-lived channel access token.
/// Up to 30 tokens can be issued. If the maximum is exceeded, existing channel access tokens will be revoked in the order of when they were first issued.
/// https://developers.line.me/en/docs/messaging-api/reference/#oauth
/// </summary>
/// <param name="h... | Issues a short-lived channel access token.
Up to 30 tokens can be issued. If the maximum is exceeded, existing channel access tokens will be revoked in the order of when they were first issued. | [
"Issues",
"a",
"short",
"-",
"lived",
"channel",
"access",
"token",
".",
"Up",
"to",
"30",
"tokens",
"can",
"be",
"issued",
".",
"If",
"the",
"maximum",
"is",
"exceeded",
"existing",
"channel",
"access",
"tokens",
"will",
"be",
"revoked",
"in",
"the",
"o... | public async Task<ChannelAccessToken> IssueChannelAccessTokenAsync()
{
HttpResponseMessage response = await _client.PostAsync($"{_uri}/oauth/accessToken",
new FormUrlEncodedContent(new Dictionary<string, string>
{
["grant_type"] = "client_credentia... | [
"public",
"async",
"Task",
"<",
"ChannelAccessToken",
">",
"IssueChannelAccessTokenAsync",
"(",
")",
"{",
"HttpResponseMessage",
"response",
"=",
"await",
"_client",
".",
"PostAsync",
"(",
"$\"",
"{",
"_uri",
"}",
"/oauth/accessToken",
"\"",
",",
"new",
"FormUrlEn... | Issues a short-lived channel access token. | [
"Issues",
"a",
"short",
"-",
"lived",
"channel",
"access",
"token",
"."
] | [] | [] | {
"others": [],
"outlier_params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "httpClient",
"is_optional": null,
"type": null
},
{
"default": null,
"docstring": null,
"docstring_tokens": [
... |
c7ac11eb6a67692c6ce1c11ac725dd7da9d5deb8 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/OAuth/OAuthClient.cs | [
"MIT"
] | C# | RevokeChannelAccessTokenAsync | null | public async Task RevokeChannelAccessTokenAsync()
{
HttpResponseMessage response = await _client.PostAsync($"{_uri}/oauth/revoke",
new FormUrlEncodedContent(new Dictionary<string, string>
{
["access_token"] = _channelAccessToken
}))... | /// <summary>
/// Revokes a channel access token.
/// https://developers.line.me/en/docs/messaging-api/reference/#revoke-channel-access-token
/// </summary>
/// <param name="httpClient">HttpClient</param>
/// <param name="channelAccessToken">ChannelAccessToken</param>
/// <param name="uri">URI</param> | Revokes a channel access token. | [
"Revokes",
"a",
"channel",
"access",
"token",
"."
] | public async Task RevokeChannelAccessTokenAsync()
{
HttpResponseMessage response = await _client.PostAsync($"{_uri}/oauth/revoke",
new FormUrlEncodedContent(new Dictionary<string, string>
{
["access_token"] = _channelAccessToken
}))... | [
"public",
"async",
"Task",
"RevokeChannelAccessTokenAsync",
"(",
")",
"{",
"HttpResponseMessage",
"response",
"=",
"await",
"_client",
".",
"PostAsync",
"(",
"$\"",
"{",
"_uri",
"}",
"/oauth/revoke",
"\"",
",",
"new",
"FormUrlEncodedContent",
"(",
"new",
"Dictiona... | Revokes a channel access token. | [
"Revokes",
"a",
"channel",
"access",
"token",
"."
] | [] | [] | {
"others": [],
"outlier_params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "httpClient",
"is_optional": null,
"type": null
},
{
"default": null,
"docstring": null,
"docstring_tokens": [
... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | PushMessageAsync | null | public virtual async Task PushMessageAsync(string to, IList<ISendMessage> messages)
{
var json = JsonConvert.SerializeObject(new { to, messages }, _jsonSerializerSettings);
var content = new StringContent(json, Encoding.UTF8, "application/json");
await SendAsync(HttpMethod.Po... | /// <summary>
/// Send messages to a user, group, or room at any time.
/// Note: Use of push messages are limited to certain plans.
/// </summary>
/// <param name="to">ID of the receiver</param>
/// <param name="messages">Reply messages. Up to 5 messages.</param> | Send messages to a user, group, or room at any time.
Note: Use of push messages are limited to certain plans. | [
"Send",
"messages",
"to",
"a",
"user",
"group",
"or",
"room",
"at",
"any",
"time",
".",
"Note",
":",
"Use",
"of",
"push",
"messages",
"are",
"limited",
"to",
"certain",
"plans",
"."
] | public virtual async Task PushMessageAsync(string to, IList<ISendMessage> messages)
{
var json = JsonConvert.SerializeObject(new { to, messages }, _jsonSerializerSettings);
var content = new StringContent(json, Encoding.UTF8, "application/json");
await SendAsync(HttpMethod.Po... | [
"public",
"virtual",
"async",
"Task",
"PushMessageAsync",
"(",
"string",
"to",
",",
"IList",
"<",
"ISendMessage",
">",
"messages",
")",
"{",
"var",
"json",
"=",
"JsonConvert",
".",
"SerializeObject",
"(",
"new",
"{",
"to",
",",
"messages",
"}",
",",
"_json... | Send messages to a user, group, or room at any time. | [
"Send",
"messages",
"to",
"a",
"user",
"group",
"or",
"room",
"at",
"any",
"time",
"."
] | [] | [
{
"param": "to",
"type": "string"
},
{
"param": "messages",
"type": "IList<ISendMessage>"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "ID of the receiver",
"docstring_tokens": [
"ID",
"of",
"the",
"receiver"
],
"identifier": "to",
"is_optional": null,
"type": "string"
},
{
... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | PushMessageWithJsonAsync | null | public virtual async Task PushMessageWithJsonAsync(string to, params string[] messages)
{
var json =
$@"{{
""to"" : ""{to}"",
""messages"" : [{string.Join(", ", messages)}]
}}";
var content = new StringContent(json, Encoding.UTF8, "application/json");
await SendAsyn... | /// <summary>
/// Send messages to a user, group, or room at any time.
/// Note: Use of push messages are limited to certain plans.
/// </summary>
/// <param name="to">ID of the receiver</param>
/// <param name="messages">Set reply messages with Json string.</param> | Send messages to a user, group, or room at any time.
Note: Use of push messages are limited to certain plans. | [
"Send",
"messages",
"to",
"a",
"user",
"group",
"or",
"room",
"at",
"any",
"time",
".",
"Note",
":",
"Use",
"of",
"push",
"messages",
"are",
"limited",
"to",
"certain",
"plans",
"."
] | public virtual async Task PushMessageWithJsonAsync(string to, params string[] messages)
{
var json =
$@"{{
""to"" : ""{to}"",
""messages"" : [{string.Join(", ", messages)}]
}}";
var content = new StringContent(json, Encoding.UTF8, "application/json");
await SendAsyn... | [
"public",
"virtual",
"async",
"Task",
"PushMessageWithJsonAsync",
"(",
"string",
"to",
",",
"params",
"string",
"[",
"]",
"messages",
")",
"{",
"var",
"json",
"=",
"$@\"",
"{{",
" \n ",
"\"\"",
"to",
"\"\"",
" : ",
"\"\"",
"{",
"to",
"}",
"\"\"",
", \... | Send messages to a user, group, or room at any time. | [
"Send",
"messages",
"to",
"a",
"user",
"group",
"or",
"room",
"at",
"any",
"time",
"."
] | [] | [
{
"param": "to",
"type": "string"
}
] | {
"others": [],
"outlier_params": [
{
"default": null,
"docstring": "Set reply messages with Json string.",
"docstring_tokens": [
"Set",
"reply",
"messages",
"with",
"Json",
"string",
"."
],
"identifier": "messages",
"is... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | MultiCastMessageAsync | null | public virtual async Task MultiCastMessageAsync(IList<string> to, IList<ISendMessage> messages)
{
var json = JsonConvert.SerializeObject(new { to, messages }, _jsonSerializerSettings);
var content = new StringContent(json, Encoding.UTF8, "application/json");
await SendAsync(H... | /// <summary>
/// Send push messages to multiple users at any time.
/// Only available for plans which support push messages. Messages cannot be sent to groups or rooms
/// https://developers.line.me/en/docs/messaging-api/reference/#send-multicast-messages
/// </summary>
/// <param name="to">IDs of the receivers. Max: ... | Send push messages to multiple users at any time.
Only available for plans which support push messages. | [
"Send",
"push",
"messages",
"to",
"multiple",
"users",
"at",
"any",
"time",
".",
"Only",
"available",
"for",
"plans",
"which",
"support",
"push",
"messages",
"."
] | public virtual async Task MultiCastMessageAsync(IList<string> to, IList<ISendMessage> messages)
{
var json = JsonConvert.SerializeObject(new { to, messages }, _jsonSerializerSettings);
var content = new StringContent(json, Encoding.UTF8, "application/json");
await SendAsync(H... | [
"public",
"virtual",
"async",
"Task",
"MultiCastMessageAsync",
"(",
"IList",
"<",
"string",
">",
"to",
",",
"IList",
"<",
"ISendMessage",
">",
"messages",
")",
"{",
"var",
"json",
"=",
"JsonConvert",
".",
"SerializeObject",
"(",
"new",
"{",
"to",
",",
"mes... | Send push messages to multiple users at any time. | [
"Send",
"push",
"messages",
"to",
"multiple",
"users",
"at",
"any",
"time",
"."
] | [] | [
{
"param": "to",
"type": "IList<string>"
},
{
"param": "messages",
"type": "IList<ISendMessage>"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "IDs of the receivers. Max: 150 users",
"docstring_tokens": [
"IDs",
"of",
"the",
"receivers",
".",
"Max",
":",
"150",
"users"
],
... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | MultiCastMessageWithJsonAsync | null | public virtual async Task MultiCastMessageWithJsonAsync(IList<string> to, params string[] messages)
{
var json =
$@"{{
""to"" : [{string.Join(", ", to.Select(x => "\"" + x + "\""))}],
""messages"" : [{string.Join(", ", messages)}]
}}";
var content = new StringContent(json, Enc... | /// <summary>
/// Send push messages to multiple users at any time.
/// Only available for plans which support push messages. Messages cannot be sent to groups or rooms
/// https://developers.line.me/en/docs/messaging-api/reference/#send-multicast-messages
/// </summary>
/// <param name="to">IDs of the receivers. Max: ... | Send push messages to multiple users at any time.
Only available for plans which support push messages. | [
"Send",
"push",
"messages",
"to",
"multiple",
"users",
"at",
"any",
"time",
".",
"Only",
"available",
"for",
"plans",
"which",
"support",
"push",
"messages",
"."
] | public virtual async Task MultiCastMessageWithJsonAsync(IList<string> to, params string[] messages)
{
var json =
$@"{{
""to"" : [{string.Join(", ", to.Select(x => "\"" + x + "\""))}],
""messages"" : [{string.Join(", ", messages)}]
}}";
var content = new StringContent(json, Enc... | [
"public",
"virtual",
"async",
"Task",
"MultiCastMessageWithJsonAsync",
"(",
"IList",
"<",
"string",
">",
"to",
",",
"params",
"string",
"[",
"]",
"messages",
")",
"{",
"var",
"json",
"=",
"$@\"",
"{{",
" \n ",
"\"\"",
"to",
"\"\"",
" : [",
"{",
"string"... | Send push messages to multiple users at any time. | [
"Send",
"push",
"messages",
"to",
"multiple",
"users",
"at",
"any",
"time",
"."
] | [] | [
{
"param": "to",
"type": "IList<string>"
}
] | {
"others": [],
"outlier_params": [
{
"default": null,
"docstring": "Set reply messages with Json string.",
"docstring_tokens": [
"Set",
"reply",
"messages",
"with",
"Json",
"string",
"."
],
"identifier": "messages",
"is... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | GetGroupMemberProfileAsync | null | public virtual async Task<UserProfile> GetGroupMemberProfileAsync(string groupId, string userId)
{
var content = await GetStringAsync($"{_uri}/bot/group/{groupId}/member/{userId}");
return JsonConvert.DeserializeObject<UserProfile>(content);
} | /// <summary>
/// Gets the user profile of a member of a group that the bot is in. This includes user profiles of users who have not added the bot as a friend or have blocked the bot.
/// Use the group ID and user ID returned in the source object of webhook event objects. Do not use the LINE ID used in the LINE app.
/... | Gets the user profile of a member of a group that the bot is in. This includes user profiles of users who have not added the bot as a friend or have blocked the bot.
Use the group ID and user ID returned in the source object of webhook event objects. Do not use the LINE ID used in the LINE app. | [
"Gets",
"the",
"user",
"profile",
"of",
"a",
"member",
"of",
"a",
"group",
"that",
"the",
"bot",
"is",
"in",
".",
"This",
"includes",
"user",
"profiles",
"of",
"users",
"who",
"have",
"not",
"added",
"the",
"bot",
"as",
"a",
"friend",
"or",
"have",
"... | public virtual async Task<UserProfile> GetGroupMemberProfileAsync(string groupId, string userId)
{
var content = await GetStringAsync($"{_uri}/bot/group/{groupId}/member/{userId}");
return JsonConvert.DeserializeObject<UserProfile>(content);
} | [
"public",
"virtual",
"async",
"Task",
"<",
"UserProfile",
">",
"GetGroupMemberProfileAsync",
"(",
"string",
"groupId",
",",
"string",
"userId",
")",
"{",
"var",
"content",
"=",
"await",
"GetStringAsync",
"(",
"$\"",
"{",
"_uri",
"}",
"/bot/group/",
"{",
"group... | Gets the user profile of a member of a group that the bot is in. | [
"Gets",
"the",
"user",
"profile",
"of",
"a",
"member",
"of",
"a",
"group",
"that",
"the",
"bot",
"is",
"in",
"."
] | [] | [
{
"param": "groupId",
"type": "string"
},
{
"param": "userId",
"type": "string"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "Identifier of the group",
"docstring_tokens": [
"Identifier",
"of",
"the",
"group"
],
"identifier": "groupId",
"is_optional": null,
"type": "string"
... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | GetGroupMemberIdsAsync | null | public virtual async Task<GroupMemberIdsResponse> GetGroupMemberIdsAsync(string groupId, string continuationToken)
{
var requestUrl = $"{_uri}/bot/group/{groupId}/members/ids";
if (continuationToken != null)
{
requestUrl += $"?start={continuationToken}";
... | /// <summary>
/// Gets the user IDs of the members of a group that the bot is in. This includes the user IDs of users who have not added the bot as a friend or has blocked the bot.
/// This feature is only available for LINE@ Approved accounts or official accounts.
/// Use the group Id returned in the source object of ... | Gets the user IDs of the members of a group that the bot is in. This includes the user IDs of users who have not added the bot as a friend or has blocked the bot.
This feature is only available for LINE@ Approved accounts or official accounts.
Use the group Id returned in the source object of webhook event objects.
Use... | [
"Gets",
"the",
"user",
"IDs",
"of",
"the",
"members",
"of",
"a",
"group",
"that",
"the",
"bot",
"is",
"in",
".",
"This",
"includes",
"the",
"user",
"IDs",
"of",
"users",
"who",
"have",
"not",
"added",
"the",
"bot",
"as",
"a",
"friend",
"or",
"has",
... | public virtual async Task<GroupMemberIdsResponse> GetGroupMemberIdsAsync(string groupId, string continuationToken)
{
var requestUrl = $"{_uri}/bot/group/{groupId}/members/ids";
if (continuationToken != null)
{
requestUrl += $"?start={continuationToken}";
... | [
"public",
"virtual",
"async",
"Task",
"<",
"GroupMemberIdsResponse",
">",
"GetGroupMemberIdsAsync",
"(",
"string",
"groupId",
",",
"string",
"continuationToken",
")",
"{",
"var",
"requestUrl",
"=",
"$\"",
"{",
"_uri",
"}",
"/bot/group/",
"{",
"groupId",
"}",
"/m... | Gets the user IDs of the members of a group that the bot is in. | [
"Gets",
"the",
"user",
"IDs",
"of",
"the",
"members",
"of",
"a",
"group",
"that",
"the",
"bot",
"is",
"in",
"."
] | [] | [
{
"param": "groupId",
"type": "string"
},
{
"param": "continuationToken",
"type": "string"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "Identifier of the group",
"docstring_tokens": [
"Identifier",
"of",
"the",
"group"
],
"identifier": "groupId",
"is_optional": null,
"type": "string"
... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | GetGroupMemberProfilesAsync | null | public virtual async Task<IList<UserProfile>> GetGroupMemberProfilesAsync(string groupId)
{
var result = new List<UserProfile>();
string continuationToken = null;
do
{
var ids = await GetGroupMemberIdsAsync(groupId, continuationToken);
... | /// <summary>
/// Gets the user profiles of the members of a group that the bot is in. This includes the user IDs of users who have not added the bot as a friend or has blocked the bot.
/// Use the group Id returned in the source object of webhook event objects.
/// This feature is only available for LINE@ Approved ac... | Gets the user profiles of the members of a group that the bot is in. This includes the user IDs of users who have not added the bot as a friend or has blocked the bot.
Use the group Id returned in the source object of webhook event objects.
This feature is only available for LINE@ Approved accounts or official accounts | [
"Gets",
"the",
"user",
"profiles",
"of",
"the",
"members",
"of",
"a",
"group",
"that",
"the",
"bot",
"is",
"in",
".",
"This",
"includes",
"the",
"user",
"IDs",
"of",
"users",
"who",
"have",
"not",
"added",
"the",
"bot",
"as",
"a",
"friend",
"or",
"ha... | public virtual async Task<IList<UserProfile>> GetGroupMemberProfilesAsync(string groupId)
{
var result = new List<UserProfile>();
string continuationToken = null;
do
{
var ids = await GetGroupMemberIdsAsync(groupId, continuationToken);
... | [
"public",
"virtual",
"async",
"Task",
"<",
"IList",
"<",
"UserProfile",
">",
">",
"GetGroupMemberProfilesAsync",
"(",
"string",
"groupId",
")",
"{",
"var",
"result",
"=",
"new",
"List",
"<",
"UserProfile",
">",
"(",
")",
";",
"string",
"continuationToken",
"... | Gets the user profiles of the members of a group that the bot is in. | [
"Gets",
"the",
"user",
"profiles",
"of",
"the",
"members",
"of",
"a",
"group",
"that",
"the",
"bot",
"is",
"in",
"."
] | [] | [
{
"param": "groupId",
"type": "string"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "Identifier of the group",
"docstring_tokens": [
"Identifier",
"of",
"the",
"group"
],
"identifier": "groupId",
"is_optional": null,
"type": "string"
... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | GetRoomMemberProfileAsync | null | public virtual async Task<UserProfile> GetRoomMemberProfileAsync(string roomId, string userId)
{
var content = await GetStringAsync($"{_uri}/bot/room/{roomId}/member/{userId}");
return JsonConvert.DeserializeObject<UserProfile>(content);
} | /// <summary>
/// Gets the user profile of a member of a room that the bot is in. This includes user profiles of users who have not added the bot as a friend or have blocked the bot.
/// Use the room ID and user ID returned in the source object of webhook event objects. Do not use the LINE ID used in the LINE app
/// <... | Gets the user profile of a member of a room that the bot is in. This includes user profiles of users who have not added the bot as a friend or have blocked the bot.
Use the room ID and user ID returned in the source object of webhook event objects. Do not use the LINE ID used in the LINE app | [
"Gets",
"the",
"user",
"profile",
"of",
"a",
"member",
"of",
"a",
"room",
"that",
"the",
"bot",
"is",
"in",
".",
"This",
"includes",
"user",
"profiles",
"of",
"users",
"who",
"have",
"not",
"added",
"the",
"bot",
"as",
"a",
"friend",
"or",
"have",
"b... | public virtual async Task<UserProfile> GetRoomMemberProfileAsync(string roomId, string userId)
{
var content = await GetStringAsync($"{_uri}/bot/room/{roomId}/member/{userId}");
return JsonConvert.DeserializeObject<UserProfile>(content);
} | [
"public",
"virtual",
"async",
"Task",
"<",
"UserProfile",
">",
"GetRoomMemberProfileAsync",
"(",
"string",
"roomId",
",",
"string",
"userId",
")",
"{",
"var",
"content",
"=",
"await",
"GetStringAsync",
"(",
"$\"",
"{",
"_uri",
"}",
"/bot/room/",
"{",
"roomId",... | Gets the user profile of a member of a room that the bot is in. | [
"Gets",
"the",
"user",
"profile",
"of",
"a",
"member",
"of",
"a",
"room",
"that",
"the",
"bot",
"is",
"in",
"."
] | [] | [
{
"param": "roomId",
"type": "string"
},
{
"param": "userId",
"type": "string"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "Identifier of the room",
"docstring_tokens": [
"Identifier",
"of",
"the",
"room"
],
"identifier": "roomId",
"is_optional": null,
"type": "string"
},
... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | GetRoomMemberIdsAsync | null | public virtual async Task<GroupMemberIdsResponse> GetRoomMemberIdsAsync(string roomId, string continuationToken = null)
{
var requestUrl = $"{_uri}/bot/room/{roomId}/members/ids";
if (continuationToken != null)
{
requestUrl += $"?start={continuationToken}";
... | /// <summary>
/// Gets the user IDs of the members of a room that the bot is in. This includes the user IDs of users who have not added the bot as a friend or has blocked the bot.
/// Use the room ID returned in the source object of webhook event objects.
/// This feature is only available for LINE@ Approved accounts ... | Gets the user IDs of the members of a room that the bot is in. This includes the user IDs of users who have not added the bot as a friend or has blocked the bot.
Use the room ID returned in the source object of webhook event objects.
This feature is only available for LINE@ Approved accounts or official accounts. | [
"Gets",
"the",
"user",
"IDs",
"of",
"the",
"members",
"of",
"a",
"room",
"that",
"the",
"bot",
"is",
"in",
".",
"This",
"includes",
"the",
"user",
"IDs",
"of",
"users",
"who",
"have",
"not",
"added",
"the",
"bot",
"as",
"a",
"friend",
"or",
"has",
... | public virtual async Task<GroupMemberIdsResponse> GetRoomMemberIdsAsync(string roomId, string continuationToken = null)
{
var requestUrl = $"{_uri}/bot/room/{roomId}/members/ids";
if (continuationToken != null)
{
requestUrl += $"?start={continuationToken}";
... | [
"public",
"virtual",
"async",
"Task",
"<",
"GroupMemberIdsResponse",
">",
"GetRoomMemberIdsAsync",
"(",
"string",
"roomId",
",",
"string",
"continuationToken",
"=",
"null",
")",
"{",
"var",
"requestUrl",
"=",
"$\"",
"{",
"_uri",
"}",
"/bot/room/",
"{",
"roomId",... | Gets the user IDs of the members of a room that the bot is in. | [
"Gets",
"the",
"user",
"IDs",
"of",
"the",
"members",
"of",
"a",
"room",
"that",
"the",
"bot",
"is",
"in",
"."
] | [] | [
{
"param": "roomId",
"type": "string"
},
{
"param": "continuationToken",
"type": "string"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "Identifier of the room",
"docstring_tokens": [
"Identifier",
"of",
"the",
"room"
],
"identifier": "roomId",
"is_optional": null,
"type": "string"
},
... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | GetRoomMemberProfilesAsync | null | public virtual async Task<IList<UserProfile>> GetRoomMemberProfilesAsync(string roomId)
{
var result = new List<UserProfile>();
string continuationToken = null;
do
{
var ids = await GetRoomMemberIdsAsync(roomId, continuationToken);
... | /// <summary>
/// Gets the user profiles of the members of a room that the bot is in. This includes the user IDs of users who have not added the bot as a friend or has blocked the bot.
/// Use the room ID returned in the source object of webhook event objects.
/// This feature is only available for LINE@ Approved acco... | Gets the user profiles of the members of a room that the bot is in. This includes the user IDs of users who have not added the bot as a friend or has blocked the bot.
Use the room ID returned in the source object of webhook event objects.
This feature is only available for LINE@ Approved accounts or official accounts. | [
"Gets",
"the",
"user",
"profiles",
"of",
"the",
"members",
"of",
"a",
"room",
"that",
"the",
"bot",
"is",
"in",
".",
"This",
"includes",
"the",
"user",
"IDs",
"of",
"users",
"who",
"have",
"not",
"added",
"the",
"bot",
"as",
"a",
"friend",
"or",
"has... | public virtual async Task<IList<UserProfile>> GetRoomMemberProfilesAsync(string roomId)
{
var result = new List<UserProfile>();
string continuationToken = null;
do
{
var ids = await GetRoomMemberIdsAsync(roomId, continuationToken);
... | [
"public",
"virtual",
"async",
"Task",
"<",
"IList",
"<",
"UserProfile",
">",
">",
"GetRoomMemberProfilesAsync",
"(",
"string",
"roomId",
")",
"{",
"var",
"result",
"=",
"new",
"List",
"<",
"UserProfile",
">",
"(",
")",
";",
"string",
"continuationToken",
"="... | Gets the user profiles of the members of a room that the bot is in. | [
"Gets",
"the",
"user",
"profiles",
"of",
"the",
"members",
"of",
"a",
"room",
"that",
"the",
"bot",
"is",
"in",
"."
] | [] | [
{
"param": "roomId",
"type": "string"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "Identifier of the room",
"docstring_tokens": [
"Identifier",
"of",
"the",
"room"
],
"identifier": "roomId",
"is_optional": null,
"type": "string"
}
... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | GetRichMenuAsync | null | public virtual async Task<RichMenu> GetRichMenuAsync(string richMenuId)
{
var json = await GetStringAsync($"{_uri}/bot/richmenu/{richMenuId}");
return JsonConvert.DeserializeObject<ResponseRichMenu>(json);
} | /// <summary>
/// Gets a rich menu via a rich menu ID.
/// https://developers.line.me/en/docs/messaging-api/reference/#get-rich-menu
/// </summary>
/// <param name="richMenuId">ID of an uploaded rich menu</param>
/// <returns>RichMenu</returns> | Gets a rich menu via a rich menu ID. | [
"Gets",
"a",
"rich",
"menu",
"via",
"a",
"rich",
"menu",
"ID",
"."
] | public virtual async Task<RichMenu> GetRichMenuAsync(string richMenuId)
{
var json = await GetStringAsync($"{_uri}/bot/richmenu/{richMenuId}");
return JsonConvert.DeserializeObject<ResponseRichMenu>(json);
} | [
"public",
"virtual",
"async",
"Task",
"<",
"RichMenu",
">",
"GetRichMenuAsync",
"(",
"string",
"richMenuId",
")",
"{",
"var",
"json",
"=",
"await",
"GetStringAsync",
"(",
"$\"",
"{",
"_uri",
"}",
"/bot/richmenu/",
"{",
"richMenuId",
"}",
"\"",
")",
";",
"r... | Gets a rich menu via a rich menu ID. | [
"Gets",
"a",
"rich",
"menu",
"via",
"a",
"rich",
"menu",
"ID",
"."
] | [] | [
{
"param": "richMenuId",
"type": "string"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "ID of an uploaded rich menu",
"docstring_tokens": [
"ID",
"of",
"an",
"uploaded",
"rich",
"menu"
],
"identifier": "richMenuId",
"is_optional": ... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | DownloadRichMenuImageAsync | null | public virtual async Task<HttpContent> DownloadRichMenuImageAsync(string richMenuId)
{
var response = await SendAsync(HttpMethod.Get, $"{_dataUri}/bot/richmenu/{richMenuId}/content", null);
return response.Content;
} | /// <summary>
/// Downloads an image associated with a rich menu.
/// https://developers.line.me/en/docs/messaging-api/reference/#download-rich-menu-image
/// </summary>
/// <param name="richMenuId">RichMenu Id</param>
/// <returns>Image as <see cref="HttpContent"/></returns> | Downloads an image associated with a rich menu. | [
"Downloads",
"an",
"image",
"associated",
"with",
"a",
"rich",
"menu",
"."
] | public virtual async Task<HttpContent> DownloadRichMenuImageAsync(string richMenuId)
{
var response = await SendAsync(HttpMethod.Get, $"{_dataUri}/bot/richmenu/{richMenuId}/content", null);
return response.Content;
} | [
"public",
"virtual",
"async",
"Task",
"<",
"HttpContent",
">",
"DownloadRichMenuImageAsync",
"(",
"string",
"richMenuId",
")",
"{",
"var",
"response",
"=",
"await",
"SendAsync",
"(",
"HttpMethod",
".",
"Get",
",",
"$\"",
"{",
"_dataUri",
"}",
"/bot/richmenu/",
... | Downloads an image associated with a rich menu. | [
"Downloads",
"an",
"image",
"associated",
"with",
"a",
"rich",
"menu",
"."
] | [] | [
{
"param": "richMenuId",
"type": "string"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "richMenuId",
"is_optional": null,
"type": "string"
}
],
"raises": [],
"returns": [
{
"docstring": null,
... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | GetRichMenuListAsync | null | public virtual async Task<IList<ResponseRichMenu>> GetRichMenuListAsync()
{
var response = await SendAsync(HttpMethod.Get, $"{_uri}/bot/richmenu/list", null, ensuresSuccess: false);
var menus = new List<ResponseRichMenu>();
if (response.StatusCode == System.Net.HttpStatusCode... | /// <summary>
/// Gets a list of all uploaded rich menus.
/// https://developers.line.me/en/docs/messaging-api/reference/#get-rich-menu-list
/// </summary>
/// <returns>List of ResponseRichMenu</returns> | Gets a list of all uploaded rich menus. | [
"Gets",
"a",
"list",
"of",
"all",
"uploaded",
"rich",
"menus",
"."
] | public virtual async Task<IList<ResponseRichMenu>> GetRichMenuListAsync()
{
var response = await SendAsync(HttpMethod.Get, $"{_uri}/bot/richmenu/list", null, ensuresSuccess: false);
var menus = new List<ResponseRichMenu>();
if (response.StatusCode == System.Net.HttpStatusCode... | [
"public",
"virtual",
"async",
"Task",
"<",
"IList",
"<",
"ResponseRichMenu",
">",
">",
"GetRichMenuListAsync",
"(",
")",
"{",
"var",
"response",
"=",
"await",
"SendAsync",
"(",
"HttpMethod",
".",
"Get",
",",
"$\"",
"{",
"_uri",
"}",
"/bot/richmenu/list",
"\"... | Gets a list of all uploaded rich menus. | [
"Gets",
"a",
"list",
"of",
"all",
"uploaded",
"rich",
"menus",
"."
] | [] | [] | {
"others": [],
"outlier_params": [],
"params": [],
"raises": [],
"returns": [
{
"docstring": "List of ResponseRichMenu",
"docstring_tokens": [
"List",
"of",
"ResponseRichMenu"
],
"type": null
}
]
} |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | IssueLinkTokenAsync | null | public virtual async Task<string> IssueLinkTokenAsync(string userId)
{
var response = await SendAsync(HttpMethod.Post, $"{_uri}/bot/user/{userId}/linkToken", null);
var content = await response.Content.ReadAsStringAsync();
return JsonConvert.DeserializeAnonymousType(content, ... | /// <summary>
/// Issues a link token used for the account link feature.
/// <para>https://developers.line.me/en/docs/messaging-api/linking-accounts</para>
/// </summary>
/// <param name="userId">
/// User ID for the LINE account to be linked. Found in the source object of account link event objects. Do not use the LIN... | Issues a link token used for the account link feature. | [
"Issues",
"a",
"link",
"token",
"used",
"for",
"the",
"account",
"link",
"feature",
"."
] | public virtual async Task<string> IssueLinkTokenAsync(string userId)
{
var response = await SendAsync(HttpMethod.Post, $"{_uri}/bot/user/{userId}/linkToken", null);
var content = await response.Content.ReadAsStringAsync();
return JsonConvert.DeserializeAnonymousType(content, ... | [
"public",
"virtual",
"async",
"Task",
"<",
"string",
">",
"IssueLinkTokenAsync",
"(",
"string",
"userId",
")",
"{",
"var",
"response",
"=",
"await",
"SendAsync",
"(",
"HttpMethod",
".",
"Post",
",",
"$\"",
"{",
"_uri",
"}",
"/bot/user/",
"{",
"userId",
"}"... | Issues a link token used for the account link feature. | [
"Issues",
"a",
"link",
"token",
"used",
"for",
"the",
"account",
"link",
"feature",
"."
] | [] | [
{
"param": "userId",
"type": "string"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "User ID for the LINE account to be linked. Found in the source object of account link event objects. Do not use the LINE ID used in the LINE app.",
"docstring_tokens": [
"User",
"ID",
"... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | GetNumberOfSentReplyMessagesAsync | null | public virtual async Task<NumberOfSentMessages> GetNumberOfSentReplyMessagesAsync(DateTime date)
{
var response = await GetStringAsync($"{_uri}/bot/message/delivery/reply?date={date.ToString("yyyyMMdd")}");
return JsonConvert.DeserializeObject<NumberOfSentMessages>(response);
} | /// <summary>
/// Gets the number of messages sent with the /bot/message/reply endpoint.
/// The number of messages retrieved by this operation does not include the number of messages sent from LINE@ Manager.
/// </summary>
/// <param name="date">
/// - Date the messages were sent
/// - Format: yyyyMMdd(Example: 201912... | Gets the number of messages sent with the /bot/message/reply endpoint.
The number of messages retrieved by this operation does not include the number of messages sent from LINE@ Manager. | [
"Gets",
"the",
"number",
"of",
"messages",
"sent",
"with",
"the",
"/",
"bot",
"/",
"message",
"/",
"reply",
"endpoint",
".",
"The",
"number",
"of",
"messages",
"retrieved",
"by",
"this",
"operation",
"does",
"not",
"include",
"the",
"number",
"of",
"messag... | public virtual async Task<NumberOfSentMessages> GetNumberOfSentReplyMessagesAsync(DateTime date)
{
var response = await GetStringAsync($"{_uri}/bot/message/delivery/reply?date={date.ToString("yyyyMMdd")}");
return JsonConvert.DeserializeObject<NumberOfSentMessages>(response);
} | [
"public",
"virtual",
"async",
"Task",
"<",
"NumberOfSentMessages",
">",
"GetNumberOfSentReplyMessagesAsync",
"(",
"DateTime",
"date",
")",
"{",
"var",
"response",
"=",
"await",
"GetStringAsync",
"(",
"$\"",
"{",
"_uri",
"}",
"/bot/message/delivery/reply?date=",
"{",
... | Gets the number of messages sent with the /bot/message/reply endpoint. | [
"Gets",
"the",
"number",
"of",
"messages",
"sent",
"with",
"the",
"/",
"bot",
"/",
"message",
"/",
"reply",
"endpoint",
"."
] | [] | [
{
"param": "date",
"type": "DateTime"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "Date the messages were sent\nFormat: yyyyMMdd(Example: 20191231)\nTimezone: UTC+9",
"docstring_tokens": [
"Date",
"the",
"messages",
"were",
"sent",
"Format",
... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | GetNumberOfSentPushMessagesAsync | null | public virtual async Task<NumberOfSentMessages> GetNumberOfSentPushMessagesAsync(DateTime date)
{
var response = await GetStringAsync($"{_uri}/bot/message/delivery/push?date={date.ToString("yyyyMMdd")}");
return JsonConvert.DeserializeObject<NumberOfSentMessages>(response);
} | /// <summary>
/// Gets the number of messages sent with the /bot/message/push endpoint.
/// The number of messages retrieved by this operation does not include the number of messages sent from LINE@ Manager.
///</summary>
/// <param name="date">
/// - Date the messages were sent
/// - Format: yyyyMMdd(Example: 20191231... | Gets the number of messages sent with the /bot/message/push endpoint.
The number of messages retrieved by this operation does not include the number of messages sent from LINE@ Manager. | [
"Gets",
"the",
"number",
"of",
"messages",
"sent",
"with",
"the",
"/",
"bot",
"/",
"message",
"/",
"push",
"endpoint",
".",
"The",
"number",
"of",
"messages",
"retrieved",
"by",
"this",
"operation",
"does",
"not",
"include",
"the",
"number",
"of",
"message... | public virtual async Task<NumberOfSentMessages> GetNumberOfSentPushMessagesAsync(DateTime date)
{
var response = await GetStringAsync($"{_uri}/bot/message/delivery/push?date={date.ToString("yyyyMMdd")}");
return JsonConvert.DeserializeObject<NumberOfSentMessages>(response);
} | [
"public",
"virtual",
"async",
"Task",
"<",
"NumberOfSentMessages",
">",
"GetNumberOfSentPushMessagesAsync",
"(",
"DateTime",
"date",
")",
"{",
"var",
"response",
"=",
"await",
"GetStringAsync",
"(",
"$\"",
"{",
"_uri",
"}",
"/bot/message/delivery/push?date=",
"{",
"... | Gets the number of messages sent with the /bot/message/push endpoint. | [
"Gets",
"the",
"number",
"of",
"messages",
"sent",
"with",
"the",
"/",
"bot",
"/",
"message",
"/",
"push",
"endpoint",
"."
] | [] | [
{
"param": "date",
"type": "DateTime"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "Date the messages were sent\nFormat: yyyyMMdd(Example: 20191231)\nTimezone: UTC+9",
"docstring_tokens": [
"Date",
"the",
"messages",
"were",
"sent",
"Format",
... |
fe0eeab361948943c513bf08eb533abdb8c7f646 | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/LineMessagingClient.cs | [
"MIT"
] | C# | GetNumberOfSentMulticastMessagesAsync | null | public virtual async Task<NumberOfSentMessages> GetNumberOfSentMulticastMessagesAsync(DateTime date)
{
var response = await GetStringAsync($"{_uri}/bot/message/delivery/multicast?date={date.ToString("yyyyMMdd")}");
return JsonConvert.DeserializeObject<NumberOfSentMessages>(response);
... | /// <summary>
/// Gets the number of messages sent with the /bot/message/push endpoint.
/// The number of messages retrieved by this operation does not include the number of messages sent from LINE@ Manager.
/// </summary>
/// <param name="date">
/// - Date the messages were sent
/// - Format: yyyyMMdd(Example: 2019123... | Gets the number of messages sent with the /bot/message/push endpoint.
The number of messages retrieved by this operation does not include the number of messages sent from LINE@ Manager. | [
"Gets",
"the",
"number",
"of",
"messages",
"sent",
"with",
"the",
"/",
"bot",
"/",
"message",
"/",
"push",
"endpoint",
".",
"The",
"number",
"of",
"messages",
"retrieved",
"by",
"this",
"operation",
"does",
"not",
"include",
"the",
"number",
"of",
"message... | public virtual async Task<NumberOfSentMessages> GetNumberOfSentMulticastMessagesAsync(DateTime date)
{
var response = await GetStringAsync($"{_uri}/bot/message/delivery/multicast?date={date.ToString("yyyyMMdd")}");
return JsonConvert.DeserializeObject<NumberOfSentMessages>(response);
... | [
"public",
"virtual",
"async",
"Task",
"<",
"NumberOfSentMessages",
">",
"GetNumberOfSentMulticastMessagesAsync",
"(",
"DateTime",
"date",
")",
"{",
"var",
"response",
"=",
"await",
"GetStringAsync",
"(",
"$\"",
"{",
"_uri",
"}",
"/bot/message/delivery/multicast?date=",
... | Gets the number of messages sent with the /bot/message/push endpoint. | [
"Gets",
"the",
"number",
"of",
"messages",
"sent",
"with",
"the",
"/",
"bot",
"/",
"message",
"/",
"push",
"endpoint",
"."
] | [] | [
{
"param": "date",
"type": "DateTime"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "Date the messages were sent\nFormat: yyyyMMdd(Example: 20191231)\nTimezone: UTC+9",
"docstring_tokens": [
"Date",
"the",
"messages",
"were",
"sent",
"Format",
... |
095d7c6c80604fd938aa9e8ac4da205e9311a83d | pierre3/line-messaging-api-csharp | line-messaging-api-csharp/Webhooks/XLineSignature.cs | [
"MIT"
] | C# | Verify | bool | public static bool Verify(string channelSecret, string xLineSignature, string requestBody)
{
try
{
var key = Encoding.UTF8.GetBytes(channelSecret);
var body = Encoding.UTF8.GetBytes(requestBody);
using (HMACSHA256 hmac = new HMACSHA256(key)... | /// <summary>
/// The signature in the X-Line-Signature request header must be verified to confirm that the request was sent from the LINE Platform.
/// Authentication is performed as follows.
/// 1. With the channel secret as the secret key, your application retrieves the digest value in the request body created using... | The signature in the X-Line-Signature request header must be verified to confirm that the request was sent from the LINE Platform.
Authentication is performed as follows.
1. With the channel secret as the secret key, your application retrieves the digest value in the request body created using the HMAC-SHA256 algorithm... | [
"The",
"signature",
"in",
"the",
"X",
"-",
"Line",
"-",
"Signature",
"request",
"header",
"must",
"be",
"verified",
"to",
"confirm",
"that",
"the",
"request",
"was",
"sent",
"from",
"the",
"LINE",
"Platform",
".",
"Authentication",
"is",
"performed",
"as",
... | public static bool Verify(string channelSecret, string xLineSignature, string requestBody)
{
try
{
var key = Encoding.UTF8.GetBytes(channelSecret);
var body = Encoding.UTF8.GetBytes(requestBody);
using (HMACSHA256 hmac = new HMACSHA256(key)... | [
"public",
"static",
"bool",
"Verify",
"(",
"string",
"channelSecret",
",",
"string",
"xLineSignature",
",",
"string",
"requestBody",
")",
"{",
"try",
"{",
"var",
"key",
"=",
"Encoding",
".",
"UTF8",
".",
"GetBytes",
"(",
"channelSecret",
")",
";",
"var",
"... | The signature in the X-Line-Signature request header must be verified to confirm that the request was sent from the LINE Platform. | [
"The",
"signature",
"in",
"the",
"X",
"-",
"Line",
"-",
"Signature",
"request",
"header",
"must",
"be",
"verified",
"to",
"confirm",
"that",
"the",
"request",
"was",
"sent",
"from",
"the",
"LINE",
"Platform",
"."
] | [] | [
{
"param": "channelSecret",
"type": "string"
},
{
"param": "xLineSignature",
"type": "string"
},
{
"param": "requestBody",
"type": "string"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": null,
"docstring_tokens": [
"None"
],
"identifier": "channelSecret",
"is_optional": null,
"type": "string"
},
{
"default": null,
"docstring": null,
"doc... |
03b60346fbb6ea2228f3f4d661385a3bdbee1724 | TEEx3/DemeoMods | Common/UI/UiHelper.cs | [
"MIT"
] | C# | WrapObject | null | public static GameObject WrapObject(GameObject child)
{
var container = new GameObject($"{child.name}Wrapper");
child.transform.SetParent(container.transform);
return container;
} | /// <summary>
/// Wraps the specified GameObject inside a new <see cref="GameObject"/>.
/// </summary>
/// <remarks>
/// Useful for preserving the composition and layout of the original GameObject.
/// </remarks>
/// <returns>The GameObject whose child is the specified GameObject.</returns> | Wraps the specified GameObject inside a new . | [
"Wraps",
"the",
"specified",
"GameObject",
"inside",
"a",
"new",
"."
] | public static GameObject WrapObject(GameObject child)
{
var container = new GameObject($"{child.name}Wrapper");
child.transform.SetParent(container.transform);
return container;
} | [
"public",
"static",
"GameObject",
"WrapObject",
"(",
"GameObject",
"child",
")",
"{",
"var",
"container",
"=",
"new",
"GameObject",
"(",
"$\"",
"{",
"child",
".",
"name",
"}",
"Wrapper",
"\"",
")",
";",
"child",
".",
"transform",
".",
"SetParent",
"(",
"... | Wraps the specified GameObject inside a new . | [
"Wraps",
"the",
"specified",
"GameObject",
"inside",
"a",
"new",
"."
] | [] | [
{
"param": "child",
"type": "GameObject"
}
] | {
"others": [
{
"docstring": "Useful for preserving the composition and layout of the original GameObject.",
"docstring_tokens": [
"Useful",
"for",
"preserving",
"the",
"composition",
"and",
"layout",
"of",
"the",
"origina... |
a3cc729ad2a1ed604cbe1ac0554f27f74076a069 | TEEx3/DemeoMods | HouseRules_Configuration/ConfigManager.cs | [
"MIT"
] | C# | ExportRuleset | string | internal string ExportRuleset(Ruleset ruleset)
{
if (string.IsNullOrEmpty(ruleset.Name))
{
throw new ArgumentException("Ruleset name must not be empty.");
}
var ruleEntries = new List<RuleConfigEntry>();
foreach (var rule in ruleset.Ru... | /// <summary>
/// Exports the specified ruleset by writing it to a file.
/// </summary>
/// <param name="ruleset">The ruleset to export.</param>
/// <returns>The path of the file that the ruleset was written to.</returns> | Exports the specified ruleset by writing it to a file. | [
"Exports",
"the",
"specified",
"ruleset",
"by",
"writing",
"it",
"to",
"a",
"file",
"."
] | internal string ExportRuleset(Ruleset ruleset)
{
if (string.IsNullOrEmpty(ruleset.Name))
{
throw new ArgumentException("Ruleset name must not be empty.");
}
var ruleEntries = new List<RuleConfigEntry>();
foreach (var rule in ruleset.Rul... | [
"internal",
"string",
"ExportRuleset",
"(",
"Ruleset",
"ruleset",
")",
"{",
"if",
"(",
"string",
".",
"IsNullOrEmpty",
"(",
"ruleset",
".",
"Name",
")",
")",
"{",
"throw",
"new",
"ArgumentException",
"(",
"\"",
"\"",
")",
";",
"}",
"var",
"ruleEntries",
... | Exports the specified ruleset by writing it to a file. | [
"Exports",
"the",
"specified",
"ruleset",
"by",
"writing",
"it",
"to",
"a",
"file",
"."
] | [] | [
{
"param": "ruleset",
"type": "Ruleset"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "The ruleset to export.",
"docstring_tokens": [
"The",
"ruleset",
"to",
"export",
"."
],
"identifier": "ruleset",
"is_optional": null,
"type": "Ru... |
a3cc729ad2a1ed604cbe1ac0554f27f74076a069 | TEEx3/DemeoMods | HouseRules_Configuration/ConfigManager.cs | [
"MIT"
] | C# | ImportRulesets | null | internal List<Ruleset> ImportRulesets()
{
var files = Directory.EnumerateFiles(RulesetDirectory, "*.json").ToList();
ConfigurationMod.Logger.Msg($"Found [{files.Count}] rulesets in directory [{RulesetDirectory}]");
return files.Select(ImportRuleset).ToList();
} | /// <summary>
/// Imports all rulesets in the default ruleset directory.
/// </summary>
/// <returns>The list of imported rulesets.</returns> | Imports all rulesets in the default ruleset directory. | [
"Imports",
"all",
"rulesets",
"in",
"the",
"default",
"ruleset",
"directory",
"."
] | internal List<Ruleset> ImportRulesets()
{
var files = Directory.EnumerateFiles(RulesetDirectory, "*.json").ToList();
ConfigurationMod.Logger.Msg($"Found [{files.Count}] rulesets in directory [{RulesetDirectory}]");
return files.Select(ImportRuleset).ToList();
} | [
"internal",
"List",
"<",
"Ruleset",
">",
"ImportRulesets",
"(",
")",
"{",
"var",
"files",
"=",
"Directory",
".",
"EnumerateFiles",
"(",
"RulesetDirectory",
",",
"\"",
"\"",
")",
".",
"ToList",
"(",
")",
";",
"ConfigurationMod",
".",
"Logger",
".",
"Msg",
... | Imports all rulesets in the default ruleset directory. | [
"Imports",
"all",
"rulesets",
"in",
"the",
"default",
"ruleset",
"directory",
"."
] | [] | [] | {
"others": [],
"outlier_params": [],
"params": [],
"raises": [],
"returns": [
{
"docstring": "The list of imported rulesets.",
"docstring_tokens": [
"The",
"list",
"of",
"imported",
"rulesets",
"."
],
"type": null
}
]
} |
a3cc729ad2a1ed604cbe1ac0554f27f74076a069 | TEEx3/DemeoMods | HouseRules_Configuration/ConfigManager.cs | [
"MIT"
] | C# | ImportRuleset | null | private static Ruleset ImportRuleset(string fileName)
{
var rulesetJson = File.ReadAllText(fileName);
var rulesetConfig = JsonConvert.DeserializeObject<RulesetConfig>(rulesetJson);
var rules = new List<Rule>();
foreach (var ruleConfigEntry in rulesetConfig.Rules)... | /// <summary>
/// Imports a ruleset by full file name.
/// </summary>
/// <param name="fileName">The full file name of the JSON file to load as a ruleset.</param>
/// <returns>The imported ruleset.</returns> | Imports a ruleset by full file name. | [
"Imports",
"a",
"ruleset",
"by",
"full",
"file",
"name",
"."
] | private static Ruleset ImportRuleset(string fileName)
{
var rulesetJson = File.ReadAllText(fileName);
var rulesetConfig = JsonConvert.DeserializeObject<RulesetConfig>(rulesetJson);
var rules = new List<Rule>();
foreach (var ruleConfigEntry in rulesetConfig.Rules)
... | [
"private",
"static",
"Ruleset",
"ImportRuleset",
"(",
"string",
"fileName",
")",
"{",
"var",
"rulesetJson",
"=",
"File",
".",
"ReadAllText",
"(",
"fileName",
")",
";",
"var",
"rulesetConfig",
"=",
"JsonConvert",
".",
"DeserializeObject",
"<",
"RulesetConfig",
">... | Imports a ruleset by full file name. | [
"Imports",
"a",
"ruleset",
"by",
"full",
"file",
"name",
"."
] | [] | [
{
"param": "fileName",
"type": "string"
}
] | {
"others": [],
"outlier_params": [],
"params": [
{
"default": null,
"docstring": "The full file name of the JSON file to load as a ruleset.",
"docstring_tokens": [
"The",
"full",
"file",
"name",
"of",
"the",
"JSON",
"file",
... |
340515df864c2765e90d60563f17e326cba98fef | cronkite-asu/Neighborhood-DataVR | DataVRUnity/Assets/Scripts/GeoPosition.cs | [
"MIT"
] | C# | fetchHeightofAllMarkerLocations | null | void fetchHeightofAllMarkerLocations ()
{
foreach (MarkerObject marker in markerList) {
double height = getHeightAtTile (new Vector3 ((float)marker.x, 0f, (float)marker.z));
marker.y = (float)height;
if (height > maxBuildingHeight) {
maxBuildingHeight = height;
}
}
// Debug.Log ("Maximu... | /// <summary>
/// Fetches the maximum height of buildings at marker locations for all marker locations.
/// For each marker object location, raycast downwards to find the height of the building at that point.
/// </summary> | Fetches the maximum height of buildings at marker locations for all marker locations.
For each marker object location, raycast downwards to find the height of the building at that point. | [
"Fetches",
"the",
"maximum",
"height",
"of",
"buildings",
"at",
"marker",
"locations",
"for",
"all",
"marker",
"locations",
".",
"For",
"each",
"marker",
"object",
"location",
"raycast",
"downwards",
"to",
"find",
"the",
"height",
"of",
"the",
"building",
"at"... | void fetchHeightofAllMarkerLocations ()
{
foreach (MarkerObject marker in markerList) {
double height = getHeightAtTile (new Vector3 ((float)marker.x, 0f, (float)marker.z));
marker.y = (float)height;
if (height > maxBuildingHeight) {
maxBuildingHeight = height;
}
}
} | [
"void",
"fetchHeightofAllMarkerLocations",
"(",
")",
"{",
"foreach",
"(",
"MarkerObject",
"marker",
"in",
"markerList",
")",
"{",
"double",
"height",
"=",
"getHeightAtTile",
"(",
"new",
"Vector3",
"(",
"(",
"float",
")",
"marker",
".",
"x",
",",
"0f",
",",
... | Fetches the maximum height of buildings at marker locations for all marker locations. | [
"Fetches",
"the",
"maximum",
"height",
"of",
"buildings",
"at",
"marker",
"locations",
"for",
"all",
"marker",
"locations",
"."
] | [
"// Debug.Log (\"Maximum height so far = \" + maxBuildingHeight);"
] | [] | {
"others": [],
"outlier_params": [],
"params": [],
"raises": [],
"returns": []
} |
End of preview.
No dataset card yet
- Downloads last month
- 1,644