mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Normalise trailing whitespace and line endings everywhere
This commit is contained in:
@@ -8,9 +8,9 @@ namespace MusicStore.Models
|
||||
public static class SentimentAnalysis
|
||||
{
|
||||
private static string[] positiveSentimentWords = new[] { "happy", "fun", "joy", "love", "delight", "bunny", "bunnies", "asp.net" };
|
||||
|
||||
|
||||
private static string[] negativeSentimentWords = new[] { "sad", "pain", "despair", "hate", "scorn", "death", "package management" };
|
||||
|
||||
|
||||
public static SentimentResult GetSentiment(string text) {
|
||||
var numPositiveWords = CountWordOccurrences(text, positiveSentimentWords);
|
||||
var numNegativeWords = CountWordOccurrences(text, negativeSentimentWords);
|
||||
@@ -35,4 +35,4 @@ namespace MusicStore.Models
|
||||
Positive,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user