devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From re...@apache.org
Subject svn commit: r1693774 - in /devicemap/trunk/data/2.0/reference: a/patterns.json b/patterns.json e/ e/attributes_1.json e/attributes_2_patch.json e/patterns_1.json e/patterns_2_patch.json e/test.json
Date Sat, 01 Aug 2015 22:22:12 GMT
Author: rezan
Date: Sat Aug  1 22:22:12 2015
New Revision: 1693774

URL: http://svn.apache.org/r1693774
Log:
patch tests

Added:
    devicemap/trunk/data/2.0/reference/e/
    devicemap/trunk/data/2.0/reference/e/attributes_1.json
    devicemap/trunk/data/2.0/reference/e/attributes_2_patch.json
    devicemap/trunk/data/2.0/reference/e/patterns_1.json
    devicemap/trunk/data/2.0/reference/e/patterns_2_patch.json
    devicemap/trunk/data/2.0/reference/e/test.json
Modified:
    devicemap/trunk/data/2.0/reference/a/patterns.json
    devicemap/trunk/data/2.0/reference/b/patterns.json

Modified: devicemap/trunk/data/2.0/reference/a/patterns.json
URL: http://svn.apache.org/viewvc/devicemap/trunk/data/2.0/reference/a/patterns.json?rev=1693774&r1=1693773&r2=1693774&view=diff
==============================================================================
--- devicemap/trunk/data/2.0/reference/a/patterns.json (original)
+++ devicemap/trunk/data/2.0/reference/a/patterns.json Sat Aug  1 22:22:12 2015
@@ -23,7 +23,7 @@
   },
   "patternSet": {
     "defaultId": "unknown",
-    "simpleHashCount": 100,
+    "simpleHashCount": 5,
     "patterns": [
       {
         "patternId": "pattern1",

Modified: devicemap/trunk/data/2.0/reference/b/patterns.json
URL: http://svn.apache.org/viewvc/devicemap/trunk/data/2.0/reference/b/patterns.json?rev=1693774&r1=1693773&r2=1693774&view=diff
==============================================================================
--- devicemap/trunk/data/2.0/reference/b/patterns.json (original)
+++ devicemap/trunk/data/2.0/reference/b/patterns.json Sat Aug  1 22:22:12 2015
@@ -16,7 +16,7 @@
   },
   "patternSet": {
     "defaultId": "unknown",
-    "simpleHashCount": 100,
+    "simpleHashCount": 2,
     "patterns": [
       {
         "patternId": "iphone",

Added: devicemap/trunk/data/2.0/reference/e/attributes_1.json
URL: http://svn.apache.org/viewvc/devicemap/trunk/data/2.0/reference/e/attributes_1.json?rev=1693774&view=auto
==============================================================================
--- devicemap/trunk/data/2.0/reference/e/attributes_1.json (added)
+++ devicemap/trunk/data/2.0/reference/e/attributes_1.json Sat Aug  1 22:22:12 2015
@@ -0,0 +1,30 @@
+{
+  "specVersion": 2.0,
+  "type": "attribute",
+  "domain": "reference_e",
+  "domainVersion": "1.0",
+  "description": "reference domain a, patch files",
+  "publishDate": "2015-08-01T17:41:44-0400",
+  "attributes": [
+    {
+      "patternId": "p1",
+      "parentId": "root",
+      "attributes": {
+        "test": "1"
+      }
+    },
+    {
+      "patternId": "p2",
+      "parentId": "root",
+      "attributes": {
+        "test": "2"
+      }
+    },
+    {
+      "patternId": "root",
+      "attributes": {
+        "root": "true"
+      }
+    }
+  ]
+}

Added: devicemap/trunk/data/2.0/reference/e/attributes_2_patch.json
URL: http://svn.apache.org/viewvc/devicemap/trunk/data/2.0/reference/e/attributes_2_patch.json?rev=1693774&view=auto
==============================================================================
--- devicemap/trunk/data/2.0/reference/e/attributes_2_patch.json (added)
+++ devicemap/trunk/data/2.0/reference/e/attributes_2_patch.json Sat Aug  1 22:22:12 2015
@@ -0,0 +1,37 @@
+{
+  "specVersion": 2.0,
+  "type": "attributePatch",
+  "domain": "reference_e",
+  "domainVersion": "1.0",
+  "description": "reference domain a, patch files",
+  "publishDate": "2015-08-01T17:41:44-0400",
+  "attributes": [
+    {
+      "patternId": "p2",
+      "parentId": "root",
+      "attributes": {
+        "test": "22"
+      }
+    },
+    {
+      "patternId": "p3",
+      "parentId": "root",
+      "attributes": {
+        "test": "3"
+      }
+    },
+    {
+      "patternId": "proot",
+      "attributes": {
+        "proot": "true"
+      }
+    },
+    {
+      "patternId": "root",
+      "parentId": "proot",
+      "attributes": {
+        "root": "false"
+      }
+    }
+  ]
+}

Added: devicemap/trunk/data/2.0/reference/e/patterns_1.json
URL: http://svn.apache.org/viewvc/devicemap/trunk/data/2.0/reference/e/patterns_1.json?rev=1693774&view=auto
==============================================================================
--- devicemap/trunk/data/2.0/reference/e/patterns_1.json (added)
+++ devicemap/trunk/data/2.0/reference/e/patterns_1.json Sat Aug  1 22:22:12 2015
@@ -0,0 +1,35 @@
+{
+  "specVersion": 2.0,
+  "type": "pattern",
+  "domain": "reference_e",
+  "domainVersion": "1.0",
+  "description": "reference domain a, patch files",
+  "publishDate": "2015-08-01T17:41:44-0400",
+  "inputParser": {
+    "tokenSeperators": [ " ", ",", ";" ],
+    "ngramConcatSize": 2
+  },
+  "patternSet": {
+    "simpleHashCount": 3,
+    "patterns": [
+      {
+        "patternId": "p1",
+        "rankType": "Weak",
+        "patternType": "Simple",
+        "patternTokens": ["one"]
+      },
+      {
+        "patternId": "p2",
+        "rankType": "Weak",
+        "patternType": "Simple",
+        "patternTokens": ["two"]
+      },
+      {
+        "patternId": "error",
+        "rankType": "Strong",
+        "patternType": "Simple",
+        "patternTokens": ["thisis"]
+      }
+    ]
+  }
+}

Added: devicemap/trunk/data/2.0/reference/e/patterns_2_patch.json
URL: http://svn.apache.org/viewvc/devicemap/trunk/data/2.0/reference/e/patterns_2_patch.json?rev=1693774&view=auto
==============================================================================
--- devicemap/trunk/data/2.0/reference/e/patterns_2_patch.json (added)
+++ devicemap/trunk/data/2.0/reference/e/patterns_2_patch.json Sat Aug  1 22:22:12 2015
@@ -0,0 +1,27 @@
+{
+  "specVersion": 2.0,
+  "type": "patternPatch",
+  "domain": "reference_e",
+  "domainVersion": "1.0",
+  "description": "reference domain a, patch files",
+  "publishDate": "2015-08-01T17:41:44-0400",
+  "inputParser": {
+    "transformers": [
+      {
+        "type": "LowerCase"
+      }
+    ],
+    "ngramConcatSize": 1
+  },
+  "patternSet": {
+    "simpleHashCount": 1,
+    "patterns": [
+      {
+        "patternId": "p3",
+        "rankType": "Weak",
+        "patternType": "Simple",
+        "patternTokens": ["three"]
+      }
+    ]
+  }
+}

Added: devicemap/trunk/data/2.0/reference/e/test.json
URL: http://svn.apache.org/viewvc/devicemap/trunk/data/2.0/reference/e/test.json?rev=1693774&view=auto
==============================================================================
--- devicemap/trunk/data/2.0/reference/e/test.json (added)
+++ devicemap/trunk/data/2.0/reference/e/test.json Sat Aug  1 22:22:12 2015
@@ -0,0 +1,37 @@
+{
+  "specVersion": 2.0,
+  "type": "test",
+  "domain": "reference_e",
+  "domainVersion": "1.0",
+  "description": "reference domain e test suite",
+  "publishDate": "2015-08-01T17:41:44-0400",
+  "tests": [
+    {
+      "input": "This Is One Here",
+      "resultPatternId": "p1",
+      "resultAttributes": {
+        "test": "1",
+        "proot": "true",
+        "root": "false"
+      }
+    },
+    {
+      "input": "This Is Two Here",
+      "resultPatternId": "p2",
+      "resultAttributes": {
+        "test": "22",
+        "proot": "true",
+        "root": "false"
+      }
+    },
+    {
+      "input": "This Is Three Here",
+      "resultPatternId": "p3",
+      "resultAttributes": {
+        "test": "3",
+        "proot": "true",
+        "root": "false"
+      }
+    }
+  ]
+}



Mime
View raw message