Permalink
Browse files

Added MIT license to project and all source files

  • Loading branch information...
1 parent 0db4e2d commit a6de090fe0ff73111939c70b58242dbd421a5257 @aviflax committed Dec 30, 2011
Showing with 84 additions and 3 deletions.
  1. +22 −0 LICENSE
  2. +25 −3 coffee-script/rollup.coffee
  3. +18 −0 python/rollup.py
  4. +19 −0 scala/rollup.scala
View
22 LICENSE
@@ -0,0 +1,22 @@
+Copyright Avi Flax and other contributors
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
@@ -1,6 +1,24 @@
#!/usr/bin/env coffee
###
+Copyright © Avi Flax and other contributors
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+See the file LICENSE in the root of this project for the full license.
+###
+
+###
rollup.coffee — given a line-delimited list of dates from Apache httpd access logs, count how many requests occurred in a given time window.
Each line looks like this:
@@ -9,13 +27,17 @@ Each line looks like this:
## BUGS
+## DEFINITE TO DOS:
+* Support other event timestamp formats
+* Support other output formats (starting with JSON)
+* Support cmd-line arg for csv separator
+* Refactor to be usable as a general-purpose library, either in Node or in a browser
+
+
## POSSIBLE TO DOS:
* Decide whether data must be passed in sorted or not (would allow for some optimizations)
* Add behaviour tests!!
* Support parallellization (off by default)
-* Support other event timestamp formats
-* Support other output formats (starting with JSON)
-* Support cmd-line arg for csv separator
* Add an option to specify whether weeks should start on Sunday or Monday
* Support rollup windows of N months
* Support the input already being a rollup, of which we'd do a bigger rollup
View
@@ -2,6 +2,24 @@
# coding=utf-8
"""
+Copyright © Avi Flax and other contributors
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+See the file LICENSE in the root of this project for the full license.
+"""
+
+"""
rollup.py — given a line-delimited list of dates from Apache httpd access logs, count how many requests occurred in a given time window.
Each line looks like this:
View
@@ -2,6 +2,25 @@
!#
/*
+Copyright © Avi Flax and other contributors
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+See the file LICENSE in the root of this project for the full license.
+*/
+
+
+/*
I want to analyze a bunch of Apache access logs.

0 comments on commit a6de090

Please sign in to comment.