Skip to content

Commit cbd851b

Browse files
authored
Merge pull request watson-developer-cloud#68 from watson-developer-cloud/development
Watson Developer Cloud .NET Standard SDK v0.1.0-alpha
2 parents d94c9ae + 8a6517b commit cbd851b

File tree

233 files changed

+15487
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

233 files changed

+15487
-23
lines changed

.github/CONTRIBUTING.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Questions
2+
3+
If you are having problems using the APIs or have a question about the IBM Watson Services, please ask a question on [dW Answers][dw-answers] or [Stack Overflow][stack-overflow].
4+
5+
# Coding Standard
6+
7+
* Use spaces instead of tab characters, a tab should be 4 spaces.
8+
* Class names should be `PascalCase` (e.g. SpeechToText), with no underscores `_`.
9+
* Structures should follow the same naming standards as classes.
10+
* Use [Allman style][allman-style] braces, where each brace begins on a new line. A single line statement block can go without braces but the block must be properly indented on its own line and it must not be nested in other statement blocks that use braces
11+
* Use `_camelCase` for internal and private fields and use `readonly` where possible. Prefix instance fields with `_`, static fields with `s_` and thread static fields with `t_`. When used on static fields, `readonly` should come after `static` (i.e. `static readonly` not `readonly static`).
12+
* No public variables, always use public properties unless there is no other workaround.
13+
* `Properties` should be `PascalCase`, _no underscores_. (e.g. public bool IsReady { get; set; })
14+
* `Constants` should be all upper case (e.g. static readonly string CONFIG_FILE = "/Config.json"). This includes enumerations.
15+
* All `public functions` and types of all classes should be _fully documented_ using the XML comment style.
16+
* `Local variables` should use camelCase. (e.g. var widgetConnector = new WidgetConnector())
17+
* Use `protected` on variables & functions only if you plan to inherit from the class or there is a good chance we will need to be polymorphic.
18+
* Use `region` to separate parts of a class based on functionality.
19+
* Always specify the `visibility`, even if it's the default (i.e. private string _foo not string _foo). Visibility should be the first modifier (i.e. public abstract not abstract public).
20+
* `Namespace` imports should be specified at the top of the file, outside of namespace declarations, after the license and should be sorted alphabetically.
21+
* Avoid more than one empty line at any time. For example, do not have two blank lines between members of a type.
22+
* Avoid spurious `free spaces`. For example avoid if (someVar == 0)..., where the dots mark the spurious free spaces. Consider enabling "View White Space (Ctrl+E, S)" if using Visual Studio, to aid detection.
23+
* Only use `var` when it's obvious what the variable type is (i.e. var stream = new FileStream(...) not var stream = OpenStandardInput()).
24+
* `Fields` should be specified at the top within type declarations.
25+
26+
# Issues
27+
28+
If you encounter an issue with the .NET Standard SDK, you are welcome to submit a [bug report][dotnet-sdk-issues]. Before that, please search for similar issues. It's possible somebody has already encountered this issue.
29+
30+
# Pull Requests
31+
32+
If you want to contribute to the repository, follow these steps:
33+
34+
1. Fork the repo.
35+
1. Develop and test your code changes Make sure you work in a feature branch. **PLEASE do not do your work in `master`.**
36+
1. Add a unit test for any new classes you add. Only refactoring and documentation changes require no new tests.
37+
1. Run unit tests within Visual Studio.
38+
1. Commit your changes.
39+
1. Push to your fork and submit a pull request.
40+
41+
# Developer's Certificate of Origin 1.1
42+
43+
By making a contribution to this project, I certify that:
44+
45+
(a) The contribution was created in whole or in part by me and I
46+
have the right to submit it under the open source license
47+
indicated in the file; or
48+
49+
(b) The contribution is based upon previous work that, to the best
50+
of my knowledge, is covered under an appropriate open source
51+
license and I have the right under that license to submit that
52+
work with modifications, whether created in whole or in part
53+
by me, under the same open source license (unless I am
54+
permitted to submit under a different license), as indicated
55+
in the file; or
56+
57+
(c) The contribution was provided directly to me by some other
58+
person who certified (a), (b) or (c) and I have not modified
59+
it.
60+
61+
(d) I understand and agree that this project and the contribution
62+
are public and that a record of the contribution (including all
63+
personal information I submit with it, including my sign-off) is
64+
maintained indefinitely and may be redistributed consistent with
65+
this project or the open source license(s) involved.
66+
67+
[dw-answers]: https://developer.ibm.com/answers/questions/ask/?topics=watson
68+
[stack-overflow]: http://stackoverflow.com/questions/ask?tags=ibm-watson
69+
[allman-style]: http://en.wikipedia.org/wiki/Indent_style#Allman_style
70+
[dotnet-sdk-issues]: https://github.com/watson-developer-cloud/dotnet-standard-sdk/issues

.github/ISSUE_TEMPLATE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Remember, an issue is not the place to ask questions. You can use [Stack Overflow](http://stackoverflow.com/questions/tagged/ibm-watson) for that, or you may want to start a discussion on the [dW Answers](https://developer.ibm.com/answers/questions/ask/?topics=watson).
2+
3+
Before you open an issue, please check if a similar issue already exists or has been closed before.
4+
5+
### When reporting a bug, please be sure to include the following:
6+
7+
- [ ] Start the title with the service name in brackets: `[speech-to-text] websockets...`
8+
- [ ] Steps to reproduce
9+
- [ ] Expected behavior
10+
- [ ] Actual behavior
11+
- [ ] Unity SDK version
12+
13+
### When you open an issue for a feature request, please add as much detail as possible:
14+
- [ ] A descriptive title starting with the service name
15+
- [ ] A description of the problem you're trying to solve
16+
- [ ] A suggested solution if possible

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
### Summary
2+
3+
Provide a general description of the code changes in your pull
4+
request... were there any bugs you had fixed? If so, mention them. If
5+
these bugs have open GitHub issues, be sure to tag them here as well,
6+
to keep the conversation linked together.
7+
8+
### Other Information
9+
10+
If there's anything else that's important and relevant to your pull
11+
request, mention that information here.
12+
13+
14+
Thanks for contributing to the Watson Developer Cloud!

.gitignore

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ x86/
2020
bld/
2121
[Bb]in/
2222
[Oo]bj/
23-
[Ll]og/
2423

2524
# Visual Studio 2015 cache/options directory
2625
.vs/
@@ -80,8 +79,6 @@ ipch/
8079
*.opensdf
8180
*.sdf
8281
*.cachefile
83-
*.VC.db
84-
*.VC.VC.opendb
8582

8683
# Visual Studio profiler
8784
*.psess
@@ -140,16 +137,11 @@ publish/
140137
# Publish Web Output
141138
*.[Pp]ublish.xml
142139
*.azurePubxml
143-
# TODO: Comment the next line if you want to checkin your web deploy settings
140+
# TODO: Comment the next line if you want to checkin your web deploy settings
144141
# but database connection strings (with potential passwords) will be unencrypted
145142
*.pubxml
146143
*.publishproj
147144

148-
# Microsoft Azure Web App publish settings. Comment the next line if you want to
149-
# checkin your Azure Web App publish settings, but sensitive information contained
150-
# in these scripts will be unencrypted
151-
PublishScripts/
152-
153145
# NuGet Packages
154146
*.nupkg
155147
# The packages folder can be ignored because of Package Restore
@@ -170,11 +162,12 @@ csx/
170162
ecf/
171163
rcf/
172164

173-
# Windows Store app package directories and files
165+
# Microsoft Azure ApplicationInsights config file
166+
ApplicationInsights.config
167+
168+
# Windows Store app package directory
174169
AppPackages/
175170
BundleArtifacts/
176-
Package.StoreAssociation.xml
177-
_pkginfo.txt
178171

179172
# Visual Studio cache files
180173
# files ending in .cache can be ignored
@@ -193,10 +186,6 @@ ClientBin/
193186
node_modules/
194187
orleans.codegen.cs
195188

196-
# Since there are multiple workflows, uncomment next line to ignore bower_components
197-
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
198-
#bower_components/
199-
200189
# RIA/Silverlight projects
201190
Generated_Code/
202191

@@ -242,11 +231,8 @@ _Pvt_Extensions
242231

243232
# Paket dependency manager
244233
.paket/paket.exe
245-
paket-files/
246234

247235
# FAKE - F# Make
248236
.fake/
249-
250-
# JetBrains Rider
251-
.idea/
252-
*.sln.iml
237+
/src/IBM.WatsonDeveloperCloud.LanguageTranslator.Test/appsettings.json
238+
/test/IBM.WatsonDeveloperCloud.LanguageTranslator.IntegrationTests/appsettings.json

.utility/generate_html.ps1

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
function New-TableOfContents($path)
2+
{
3+
# Verify the path exists and retrieve the official full path
4+
$root = (Get-Item $path).FullName
5+
6+
Write-Output "<!DOCTYPE html>
7+
<html>
8+
<head>
9+
<meta charset=`"utf-8`">
10+
<meta http-equiv=`"X-UA-Compatible`" content=`"IE=edge`">
11+
<meta name=`"viewport`" content=`"width=device-width, initial-scale=1`">
12+
<title>IBM Watson Developer Cloud</title>
13+
<link rel=`"stylesheet`" href=`"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css`" integrity=`"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u`" crossorigin=`"anonymous`">
14+
</head>
15+
<body>
16+
<div class=`"container`">
17+
<div class=`"page-header`">
18+
<h1>IBM Watson Developer Cloud .NET Standard SDK</h1>
19+
</div>
20+
<p><a href=`"http://www.ibm.com/watson/developercloud/`">Info</a>
21+
| <a href=`"http://www.ibm.com/watson/developercloud/doc/index.html`">Documentation</a>
22+
</p>
23+
<p>Documentation by branch/tag:</p>
24+
<ul>
25+
"
26+
# For each child item that is a directory, create a link containing the relative path
27+
Get-ChildItem $root | where { $_.PSIsContainer -eq $true } |% {
28+
# Strip the root out of the path name (including the trailing slash)
29+
# in order to create a hyperlink that can be used from any location
30+
$relPath = $_.FullName.Remove(0, $root.Length + 1)
31+
$htmlPath = "docs/" + $_.Name +"/html/index.html"
32+
# Write the link out - this is where you could get fancier with what you output
33+
# For example, you could include the last modified date/time, etc.
34+
Write-Output "<li><a href=`"$htmlPath`">$relPath</a><br /></li>"
35+
}
36+
Write-Output " </ul>
37+
</div>
38+
</body>
39+
</html>"
40+
}

0 commit comments

Comments
 (0)