<commit_before>homepage: https://github.com/winterland1989/binary-parsers
changelog-type: markdown
hash: e0d6a94dc53b44df72dc0609b8b21cf4dd7b5121d2bf36f59b1817a78280d1c7
test-bench-deps:
  bytestring: -any
  fail: ==4.9.*
  base: ==4.*
  unordered-containers: -any
  text: -any
  filepath: -any
  criterion: ==1.1.*
  binary-parsers: -any
  semigroups: ! '>=0.16.1 && <0.19'
  quickcheck-unicode: -any
  quickcheck-instances: ! '>=0.3'
  binary: -any
  tasty-quickcheck: ! '>=0.8'
  tasty-hunit: ! '>=0.8'
  attoparsec: -any
  tasty: ! '>=0.11'
  deepseq: -any
  scientific: -any
  bytestring-lexing: -any
  QuickCheck: ! '>=2.7'
  vector: -any
  directory: -any
maintainer: <EMAIL>
synopsis: Extends binary with parsec/attoparsec style parsing combinators.
changelog: ! '# Revision history for binary-parsec


  ## 0.1.0.0  -- YYYY-mm-dd


  * First version. Released on an unsuspecting world.

'
basic-deps:
  bytestring: ==0.10.*
  base: ==4.*
  binary: ==0.8.*
  scientific: ! '>0.3'
  bytestring-lexing: ==0.5.*
all-versions:
- '0.1.0.0'
author: Winterland
latest: '0.1.0.0'
description-type: markdown
description: ! "binary-parsers\n==============\n\n[![Hackage](https://img.shields.io/hackage/v/binary-parsers.svg?style=flat)](http://hackage.haskell.org/package/binary-parsers)\n[![Build
  Status](https://travis-ci.org/winterland1989/binary-parsers.svg)](https://travis-ci.org/winterland1989/binary-parsers)\n\nThis
  package extends [binary](http://hackage.haskell.org/package/binary) with parsec/attoparsec
  style parsing combinators. It's useful when you want to deal with various binary
  format, and it's very fast. You can now write more complex `Binary` instances using
  comprehensive combinators, with serialisation packages like blaze-texual.\n\nBinary's
  `Get` monad is designed to perform best on non-backtracking cases, but it still
  provides fast backtracking support via `Alternative` instance, it's overall an excellent
  alternative to attoparsec if you only deal with `ByteString`.\n\nBuilding\n--------\n\nbinary-parsers
  comes with a test suite modified from attoparsec, and a JSON parsing benchmarks.
  Here you go:\n\n```\ngit clone https://github.com/winterland1989/binary-parsers.git\ncd
  binary-parsers\ncabal update\ncabal configure --enable-tests --enable-benchmarks\ncabal
  build\n```\n\nRun the test suite and benchmarks.\n\n```\ncabal test\ncabal bench\n```\n\nBenchmark\n---------\n\n```\nBenchmark
  criterion: RUNNING...\nbenchmarking attoparsec/buffer-builder\ntime                 4.025
  ms   (3.965 ms .. 4.097 ms)\n                     0.998 R²   (0.997 R² .. 0.999
  R²)\nmean                 4.180 ms   (4.133 ms .. 4.242 ms)\nstd dev              164.2
  μs   (126.7 μs .. 204.4 μs)\nvariance introduced by outliers: 22% (moderately inflated)\n\nbenchmarking
  binary-parser/buffer-builder\ntime                 3.509 ms   (3.462 ms .. 3.552
  ms)\n                     0.998 R²   (0.997 R² .. 0.999 R²)\nmean                 3.585
  ms   (3.550 ms .. 3.646 ms)\nstd dev              151.8 μs   (85.69 μs .. 273.2
  μs)\nvariance introduced by outliers: 24% (moderately inflated)\n\nbenchmarking
  attoparsec/lazy-bytestring/buffer-builder\ntime                 4.360 ms   (4.192
  ms .. 4.641 ms)\n                     0.970 R²   (0.936 R² .. 0.996 R²)\nmean                 4.355
  ms   (4.254 ms .. 4.546 ms)\nstd dev              408.3 μs   (258.9 μs .. 687.3
  μs)\nvariance introduced by outliers: 59% (severely inflated)\n\nbenchmarking binary-parser/lazy-bytestring/buffer-builder\ntime
  \                3.541 ms   (3.476 ms .. 3.602 ms)\n                     0.998 R²
  \  (0.997 R² .. 0.999 R²)\nmean                 3.560 ms   (3.525 ms .. 3.607 ms)\nstd
  dev              127.2 μs   (98.15 μs .. 170.4 μs)\nvariance introduced by outliers:
  18% (moderately inflated)\n\nbenchmarking attoparsec/dates-fract\ntime                 4.266
  μs   (4.112 μs .. 4.506 μs)\n                     0.979 R²   (0.945 R² .. 0.999
  R²)\nmean                 4.184 μs   (4.099 μs .. 4.485 μs)\nstd dev              495.3
  ns   (141.5 ns .. 1.023 μs)\nvariance introduced by outliers: 91% (severely inflated)\n\nbenchmarking
  binary-parser/dates-fract\ntime                 3.179 μs   (3.151 μs .. 3.206 μs)\n
  \                    0.999 R²   (0.999 R² .. 0.999 R²)\nmean                 3.192
  μs   (3.161 μs .. 3.224 μs)\nstd dev              106.0 ns   (88.88 ns .. 130.2
  ns)\nvariance introduced by outliers: 43% (moderately inflated)\n\nbenchmarking
  attoparsec/lazy-bytestring/dates-fract\ntime                 4.176 μs   (4.140 μs
  .. 4.213 μs)\n                     0.999 R²   (0.999 R² .. 0.999 R²)\nmean                 4.158
  μs   (4.115 μs .. 4.194 μs)\nstd dev              126.3 ns   (102.9 ns .. 156.6
  ns)\nvariance introduced by outliers: 38% (moderately inflated)\n\nbenchmarking
  binary-parser/lazy-bytestring/dates-fract\ntime                 3.243 μs   (3.199
  μs .. 3.290 μs)\n                     0.999 R²   (0.998 R² .. 0.999 R²)\nmean                 3.225
  μs   (3.193 μs .. 3.259 μs)\nstd dev              108.6 ns   (90.97 ns .. 130.0<commit_msg>Update from Hackage at 2016-09-21T05:32:06+00:00<commit_after>homepage: https://github.com/winterland1989/binary-parsers
changelog-type: markdown
hash: 4ff4ba80becfba92e3092165aee0233386dcf471e3e750b29bf325a7ef4bc236
test-bench-deps:
  bytestring: -any
  case-insensitive: -any
  fail: ==4.9.*
  base: ==4.*
  unordered-containers: -any
  text: -any
  filepath: -any
  criterion: ==1.1.*
  binary-parsers: -any
  semigroups: ! '>=0.16.1 && <0.19'
  quickcheck-unicode: -any
  quickcheck-instances: ! '>=0.3'
  binary: -any
  tasty-quickcheck: ! '>=0.8'
  tasty-hunit: ! '>=0.8'
  attoparsec: -any
  tasty: ! '>=0.11'
  deepseq: -any
  scientific: -any
  bytestring-lexing: -any
  QuickCheck: ! '>=2.7'
  http-types: -any
  vector: -any
  directory: -any
maintainer: <EMAIL>
synopsis: Extends binary with parsec/attoparsec style parsing combinators.
changelog: ! '# Revision history for binary-parsec


  ## 0.2.0.0  -- 2016-09-21


  * Add `endOfLine` combinator.

  * Add http request parsing benchmark.

  * Fix a numeric parser bug.

  * Fix wrong documents.

'
basic-deps:
  bytestring: ==0.10.*
  base: ==4.*
  binary: ==0.8.*
  scientific: ! '>0.3'
  bytestring-lexing: ==0.5.*
all-versions:
- '0.1.0.0'
- '0.2.0.0'
author: Winterland
latest: '0.2.0.0'
description-type: markdown
description: ! "binary-parsers\n==============\n\n[![Hackage](https://img.shields.io/hackage/v/binary-parsers.svg?style=flat)](http://hackage.haskell.org/package/binary-parsers)\n[![Build
  Status](https://travis-ci.org/winterland1989/binary-parsers.svg)](https://travis-ci.org/winterland1989/binary-parsers)\n\nThis
  package extends [binary](http://hackage.haskell.org/package/binary) with parsec/attoparsec
  style parsing combinators. It's useful when you want to deal with various binary
  format, and it's very fast. You can now write more complex `Binary` instances using
  comprehensive combinators, with serialisation packages like blaze-texual.\n\nBinary's
  `Get` monad is designed to perform best on non-backtracking cases, but it still
  provides fast backtracking support via `Alternative` instance, it's overall an excellent
  alternative to attoparsec if you only deal with `ByteString`.\n\nBuilding\n--------\n\nbinary-parsers
  comes with a test suite modified from attoparsec, and a JSON parsing benchmarks.
  Here you go:\n\n```\ngit clone https://github.com/winterland1989/binary-parsers.git\ncd
  binary-parsers\ncabal update\ncabal configure --enable-tests --enable-benchmarks\ncabal
  build\n```\n\nRun the test suite and benchmarks.\n\n```\ncabal test\ncabal bench\n```\n\nBenchmark\n---------\n\n```\nbenchmarking
  http-req/attoparsec\ntime                 2.240 μs   (2.216 μs .. 2.264 μs)\n                     0.998
  R²   (0.996 R² .. 0.999 R²)\nmean                 2.320 μs   (2.251 μs .. 2.702
  μs)\nstd dev              417.9 ns   (60.72 ns .. 1.012 μs)\nvariance introduced
  by outliers: 96% (severely inflated)\n\nbenchmarking http-req/binary-parsers\ntime
  \                1.552 μs   (1.533 μs .. 1.577 μs)\n                     0.980 R²
  \  (0.942 R² .. 0.999 R²)\nmean                 1.673 μs   (1.549 μs .. 1.984 μs)\nstd
  dev              583.2 ns   (53.70 ns .. 1.115 μs)\nvariance introduced by outliers:
  99% (severely inflated)\n\nbenchmarking http-req/warp\ntime                 903.0
  ns   (894.7 ns .. 911.2 ns)\n                     0.999 R²   (0.998 R² .. 0.999
  R²)\nmean                 906.6 ns   (896.2 ns .. 918.4 ns)\nstd dev              36.38
  ns   (28.49 ns .. 51.58 ns)\nvariance introduced by outliers: 56% (severely inflated)\n\nbenchmarking
  attoparsec/buffer-builder\ntime                 4.025 ms   (3.965 ms .. 4.097 ms)\n
  \                    0.998 R²   (0.997 R² .. 0.999 R²)\nmean                 4.180
  ms   (4.133 ms .. 4.242 ms)\nstd dev              164.2 μs   (126.7 μs .. 204.4
  μs)\nvariance introduced by outliers: 22% (moderately inflated)\n\nbenchmarking
  binary-parser/buffer-builder\ntime                 3.509 ms   (3.462 ms .. 3.552
  ms)\n                     0.998 R²   (0.997 R² .. 0.999 R²)\nmean                 3.585
  ms   (3.550 ms .. 3.646 ms)\nstd dev              151.8 μs   (85.69 μs .. 273.2
  μs)\nvariance introduced by outliers: 24% (moderately inflated)\n\nbenchmarking
  attoparsec/lazy-bytestring/buffer-builder\ntime                 4.360 ms   (4.192
  ms .. 4.641 ms)\n                     0.970 R²   (0.936 R² .. 0.996 R²)\nmean                 4.355
  ms   (4.254 ms .. 4.546 ms)\nstd dev              408.3 μs   (258.9 μs .. 687.3
  μs)\nvariance introduced by outliers: 59% (severely inflated)\n\nbenchmarking binary-parser/lazy-bytestring/buffer-builder\ntime
  \                3.541 ms   (3.476 ms .. 3.602 ms)\n                     0.998 R²
  \  (0.997 R² .. 0.999 R²)\nmean                 3.560 ms   (3.525 ms .. 3.607 ms)\nstd
  dev              127.2 μs   (98.15 μs .. 170.4 μs)\nvariance introduced by outliers:
  18% (moderately inflated)\n\nbenchmarking attoparsec/dates-fract\ntime                 4.266
  μs   (4.112 μs .. 4.506 μs)\n                     0.979 R²   (0.945 R² .. 0.999
  R²)\nmean                 4.184 μs   (4.099 μs .. 4.485 μs)\nstd dev              495.3
  ns   (141.5 ns .. 1.023 μs)\nvariance introduced by outliers: 91% (severely inflated)\n\nbenchmarking
  binary-parser/dates-fract\ntime                 3.179 μs   (3.151 μs .. 3.206 μs)\n
  \                    0.999 R²   (0.999 R² .. 0.999 R²)\nmean                 3.192
  μs   (3.161 μs .. 3.224 μs)\nstd dev              106.0 ns   (88.88 ns .. 130.2
  ns)\nvariance introduced by outliers: 43% (moderately inflated)\n\nbenchmarking
  attoparsec/lazy-bytestring/dates-fract\ntime                 4.176 μs   (4.140 μs
  .. 4.213 μs)\n                     0.999 R²   (0.999 R² .. 0.999 R²)\nmean                 4.158
  μs   (4.115 μs .. 4.194 μs)\nstd dev              126.3 ns   (102.9 ns .. 156.6
  ns)\nvariance introduced by outliers: 38% (moderately inflated)\n\nbenchmarking
  binary-parser/lazy-bytestring/dates-fract\ntime                 3.243 μs   (3.199
  μs .. 3.290 μs)\n                     0.999 R²   (0.998 R² .. 0.999 R²)\nmean                 3.225
  μs   (3.193 μs .. 3.259 μs)\nstd dev              108.6 ns   (90.97 ns .. 130.0
{'fraction_non_alphanumeric': 0.13927161035541905, 'fraction_numerical': 0.10302764370337868, 'mean_word_length': 1.9895068205666318, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 7, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '222274', 'n_tokens_mistral': 5096, 'n_tokens_neox': 4193, 'n_words': 1015}