Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 2b7acead044e71c744f39804abe564383eb5f846 @johanoskarsson johanoskarsson committed Jun 6, 2012
Showing with 31,925 additions and 0 deletions.
  1. +19 −0 .gitignore
  2. +3 −0 .travis.yml
  3. +202 −0 LICENSE
  4. +199 −0 README.md
  5. +299 −0 bin/git-pull-request.rb
  6. +39 −0 bin/sbt
  7. +8 −0 build.sbt
  8. BIN doc/architecture-0.png
  9. BIN doc/architecture-1.png
  10. BIN doc/web-screenshot.png
  11. +144 −0 project/Project.scala
  12. +1 −0 project/build.properties
  13. +31 −0 project/plugins.sbt
  14. +73 −0 zipkin-hadoop/src/main/scala/com/twitter/zipkin/hadoop/ServerResponsetime.scala
  15. +56 −0 zipkin-hadoop/src/main/scala/com/twitter/zipkin/hadoop/sources/SpanSource.scala
  16. +236 −0 zipkin-hadoop/src/scripts/scald.rb
  17. +82 −0 zipkin-server/config/collector-dev.scala
  18. +71 −0 zipkin-server/config/query-dev.scala
  19. +22 −0 zipkin-server/src/main/scala/com/twitter/zipkin/BuildProperties.scala
  20. +20 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/CollectorService.scala
  21. +40 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/Main.scala
  22. +143 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/ResilientZKNode.scala
  23. +165 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/ScribeCollectorService.scala
  24. +61 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/WriteQueue.scala
  25. +83 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/WriteQueueWorker.scala
  26. +44 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/ZipkinCollector.scala
  27. +34 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/filter/DefaultClientIndexingFilter.scala
  28. +30 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/filter/IndexingFilter.scala
  29. +43 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/processor/IndexProcessor.scala
  30. +46 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/processor/OstrichProcessor.scala
  31. +51 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/processor/Processor.scala
  32. +31 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/processor/StorageProcessor.scala
  33. +29 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/sampler/AdaptiveSampler.scala
  34. +41 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/sampler/GlobalSampler.scala
  35. +62 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/sampler/ZooKeeperGlobalSampler.scala
  36. +69 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/sampler/adaptive/BoundedBuffer.scala
  37. +167 −0 ...server/src/main/scala/com/twitter/zipkin/collector/sampler/adaptive/ZooKeeperAdaptiveLeader.scala
  38. +132 −0 ...rver/src/main/scala/com/twitter/zipkin/collector/sampler/adaptive/ZooKeeperAdaptiveReporter.scala
  39. +65 −0 ...erver/src/main/scala/com/twitter/zipkin/collector/sampler/adaptive/ZooKeeperAdaptiveSampler.scala
  40. +109 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/sampler/adaptive/policy/LeaderPolicy.scala
  41. +182 −0 zipkin-server/src/main/scala/com/twitter/zipkin/collector/sampler/adaptive/policy/PolicyFilter.scala
  42. +76 −0 zipkin-server/src/main/scala/com/twitter/zipkin/common/Annotation.scala
  43. +63 −0 zipkin-server/src/main/scala/com/twitter/zipkin/common/Endpoint.scala
  44. +25 −0 zipkin-server/src/main/scala/com/twitter/zipkin/common/IncompleteTraceDataException.scala
  45. +204 −0 zipkin-server/src/main/scala/com/twitter/zipkin/common/Span.scala
  46. +61 −0 zipkin-server/src/main/scala/com/twitter/zipkin/common/SpanTreeEntry.scala
  47. +278 −0 zipkin-server/src/main/scala/com/twitter/zipkin/common/Trace.scala
  48. +53 −0 zipkin-server/src/main/scala/com/twitter/zipkin/common/TraceSummary.scala
  49. +32 −0 zipkin-server/src/main/scala/com/twitter/zipkin/common/ZooKeeperClientService.scala
  50. +85 −0 zipkin-server/src/main/scala/com/twitter/zipkin/config/CassandraConfig.scala
  51. +150 −0 zipkin-server/src/main/scala/com/twitter/zipkin/config/CassandraIndexConfig.scala
  52. +56 −0 zipkin-server/src/main/scala/com/twitter/zipkin/config/CassandraStorageConfig.scala
  53. +21 −0 zipkin-server/src/main/scala/com/twitter/zipkin/config/IndexConfig.scala
  54. +21 −0 zipkin-server/src/main/scala/com/twitter/zipkin/config/StorageConfig.scala
  55. +134 −0 zipkin-server/src/main/scala/com/twitter/zipkin/config/ZipkinCollectorConfig.scala
  56. +77 −0 zipkin-server/src/main/scala/com/twitter/zipkin/config/ZipkinConfig.scala
  57. +60 −0 zipkin-server/src/main/scala/com/twitter/zipkin/config/ZipkinQueryConfig.scala
  58. +23 −0 zipkin-server/src/main/scala/com/twitter/zipkin/config/collector/CollectorServerConfig.scala
  59. +50 −0 zipkin-server/src/main/scala/com/twitter/zipkin/config/collector/ScribeCollectorServerConfig.scala
  60. +27 −0 zipkin-server/src/main/scala/com/twitter/zipkin/config/sampler/AdaptiveSamplerConfig.scala
  61. +44 −0 zipkin-server/src/main/scala/com/twitter/zipkin/config/sampler/AdjustableRateConfig.scala
  62. +175 −0 zipkin-server/src/main/scala/com/twitter/zipkin/config/sampler/ZooKeeperAdjustableRateConfig.scala
  63. +103 −0 ...ver/src/main/scala/com/twitter/zipkin/config/sampler/adaptive/ZooKeeperAdaptiveLeaderConfig.scala
  64. +61 −0 ...r/src/main/scala/com/twitter/zipkin/config/sampler/adaptive/ZooKeeperAdaptiveReporterConfig.scala
  65. +59 −0 ...er/src/main/scala/com/twitter/zipkin/config/sampler/adaptive/ZooKeeperAdaptiveSamplerConfig.scala
  66. +39 −0 zipkin-server/src/main/scala/com/twitter/zipkin/config/zookeeper/ZooKeeperClientConfig.scala
  67. +33 −0 zipkin-server/src/main/scala/com/twitter/zipkin/config/zookeeper/ZooKeeperConfig.scala
  68. +39 −0 zipkin-server/src/main/scala/com/twitter/zipkin/query/Main.scala
  69. +409 −0 zipkin-server/src/main/scala/com/twitter/zipkin/query/QueryService.scala
  70. +66 −0 zipkin-server/src/main/scala/com/twitter/zipkin/query/ZipkinQuery.scala
  71. +34 −0 zipkin-server/src/main/scala/com/twitter/zipkin/query/adjusters/Adjuster.scala
  72. +39 −0 zipkin-server/src/main/scala/com/twitter/zipkin/query/adjusters/AdjusterSpanTreeEntry.scala
  73. +282 −0 zipkin-server/src/main/scala/com/twitter/zipkin/query/adjusters/TimeSkewAdjuster.scala
  74. +58 −0 zipkin-server/src/main/scala/com/twitter/zipkin/query/conversions/TraceToTimeline.scala
  75. +96 −0 zipkin-server/src/main/scala/com/twitter/zipkin/storage/Index.scala
  76. +64 −0 zipkin-server/src/main/scala/com/twitter/zipkin/storage/Storage.scala
  77. +58 −0 zipkin-server/src/main/scala/com/twitter/zipkin/storage/TraceIdsToDuration.scala
  78. +199 −0 zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/BucketedColumnFamily.scala
  79. +32 −0 zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/Cassandra.scala
  80. +294 −0 zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/CassandraIndex.scala
  81. +145 −0 zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/CassandraStorage.scala
  82. +39 −0 zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/ScroogeThriftCodec.scala
  83. +50 −0 zipkin-server/src/main/scala/com/twitter/zipkin/storage/cassandra/SnappyCodec.scala
  84. +43 −0 zipkin-server/src/main/scala/com/twitter/zipkin/util/Util.scala
  85. +1 −0 zipkin-server/src/main/thrift/zipkin.thrift
  86. +14 −0 zipkin-server/src/schema/cassandra-schema.txt
  87. +25 −0 zipkin-server/src/test/resources/CassandraIndexConfig.scala
  88. +25 −0 zipkin-server/src/test/resources/CassandraStorageConfig.scala
  89. +114 −0 zipkin-server/src/test/scala/com/twitter/zipkin/collector/CollectorServiceSpec.scala
  90. +59 −0 zipkin-server/src/test/scala/com/twitter/zipkin/collector/WriteQueueWorkerSpec.scala
  91. +52 −0 ...n-server/src/test/scala/com/twitter/zipkin/collector/filter/DefaultClientIndexingFilterSpec.scala
  92. +64 −0 zipkin-server/src/test/scala/com/twitter/zipkin/collector/processor/OstrichProcessorSpec.scala
  93. +72 −0 zipkin-server/src/test/scala/com/twitter/zipkin/collector/sampler/ZooKeeperGlobalSamplerSpec.scala
  94. +119 −0 ...er/src/test/scala/com/twitter/zipkin/collector/sampler/adaptive/ZooKeeperAdaptiveLeaderSpec.scala
  95. +106 −0 .../src/test/scala/com/twitter/zipkin/collector/sampler/adaptive/ZooKeeperAdaptiveReporterSpec.scala
  96. +47 −0 ...server/src/test/scala/com/twitter/zipkin/collector/sampler/adaptive/policy/LeaderPolicySpec.scala
  97. +175 −0 ...server/src/test/scala/com/twitter/zipkin/collector/sampler/adaptive/policy/PolicyFilterSpec.scala
  98. +51 −0 zipkin-server/src/test/scala/com/twitter/zipkin/common/AnnotationSpec.scala
  99. +51 −0 zipkin-server/src/test/scala/com/twitter/zipkin/common/EndpointSpec.scala
  100. +117 −0 zipkin-server/src/test/scala/com/twitter/zipkin/common/SpanSpec.scala
  101. +242 −0 zipkin-server/src/test/scala/com/twitter/zipkin/common/TraceSpec.scala
  102. +31 −0 zipkin-server/src/test/scala/com/twitter/zipkin/common/TraceSummarySpec.scala
  103. +56 −0 zipkin-server/src/test/scala/com/twitter/zipkin/config/ConfigSpec.scala
  104. +39 −0 zipkin-server/src/test/scala/com/twitter/zipkin/config/sampler/AdjustableRateConfigSpec.scala
  105. +86 −0 ...n-server/src/test/scala/com/twitter/zipkin/config/sampler/ZooKeeperAdjustableRateConfigSpec.scala
  106. +442 −0 zipkin-server/src/test/scala/com/twitter/zipkin/query/QueryServiceSpec.scala
  107. +276 −0 zipkin-server/src/test/scala/com/twitter/zipkin/query/adjusters/TimeSkewAdjusterSpec.scala
  108. +118 −0 zipkin-server/src/test/scala/com/twitter/zipkin/query/conversions/TraceToTimelineSpec.scala
  109. +49 −0 zipkin-server/src/test/scala/com/twitter/zipkin/storage/TraceIdsToDurationSpec.scala
  110. +148 −0 zipkin-server/src/test/scala/com/twitter/zipkin/storage/cassandra/BucketedColumnFamilySpec.scala
  111. +219 −0 zipkin-server/src/test/scala/com/twitter/zipkin/storage/cassandra/CassandraIndexSpec.scala
  112. +100 −0 zipkin-server/src/test/scala/com/twitter/zipkin/storage/cassandra/CassandraStorageSpec.scala
  113. +42 −0 zipkin-server/src/test/scala/com/twitter/zipkin/storage/cassandra/SnappyCodecSpec.scala
  114. +6 −0 zipkin-test/README.md
  115. +57 −0 zipkin-test/src/main/scala/com/twitter/zipkin/tracegen/Main.scala
  116. +105 −0 zipkin-test/src/main/scala/com/twitter/zipkin/tracegen/Requests.scala
  117. +122 −0 zipkin-test/src/main/scala/com/twitter/zipkin/tracegen/TraceGen.scala
  118. +89 −0 zipkin-test/src/test/resources/TestCollector.scala
  119. +71 −0 zipkin-test/src/test/resources/TestQuery.scala
  120. +135 −0 zipkin-test/src/test/scala/com/twitter/zipkin/ZipkinSpec.scala
  121. +281 −0 zipkin-thrift/src/main/thrift/zipkin.thrift
  122. +6 −0 zipkin-web/.gitignore
  123. +18 −0 zipkin-web/.jshintrc
  124. +9 −0 zipkin-web/Gemfile
  125. +104 −0 zipkin-web/Gemfile.lock
  126. +7 −0 zipkin-web/Rakefile
  127. +416 −0 zipkin-web/app/assets/javascripts/application-index.js
  128. +591 −0 zipkin-web/app/assets/javascripts/application-show.js
  129. +228 −0 zipkin-web/app/assets/javascripts/application.js
  130. +50 −0 zipkin-web/app/assets/javascripts/zipkin-annotation.js
  131. +41 −0 zipkin-web/app/assets/javascripts/zipkin-config.js
  132. +181 −0 zipkin-web/app/assets/javascripts/zipkin-filter-span.js
  133. +46 −0 zipkin-web/app/assets/javascripts/zipkin-kv-annotation.js
  134. +116 −0 zipkin-web/app/assets/javascripts/zipkin-lazy-tree.js
  135. +76 −0 zipkin-web/app/assets/javascripts/zipkin-node.js
  136. +208 −0 zipkin-web/app/assets/javascripts/zipkin-onebox.js
  137. +95 −0 zipkin-web/app/assets/javascripts/zipkin-span.js
  138. +264 −0 zipkin-web/app/assets/javascripts/zipkin-trace-dependency.js
  139. +597 −0 zipkin-web/app/assets/javascripts/zipkin-trace-summary.js
  140. +96 −0 zipkin-web/app/assets/javascripts/zipkin-tree.js
  141. +92 −0 zipkin-web/app/assets/javascripts/zipkin.js
  142. +671 −0 zipkin-web/app/assets/stylesheets/application.css
  143. +17 −0 zipkin-web/app/controllers/application_controller.rb
  144. +230 −0 zipkin-web/app/controllers/traces_controller.rb
  145. +25 −0 zipkin-web/app/helpers/application_helper.rb
  146. +16 −0 zipkin-web/app/helpers/trace_summaries_helper.rb
  147. +76 −0 zipkin-web/app/models/annotation.rb
  148. +65 −0 zipkin-web/app/models/endpoint.rb
  149. +57 −0 zipkin-web/app/models/index.rb
  150. +33 −0 zipkin-web/app/models/names.rb
  151. +61 −0 zipkin-web/app/models/query_request.rb
  152. +77 −0 zipkin-web/app/models/span.rb
  153. +65 −0 zipkin-web/app/models/timeline_annotation.rb
  154. +53 −0 zipkin-web/app/models/trace_combo.rb
  155. +113 −0 zipkin-web/app/models/trace_summary.rb
  156. +137 −0 zipkin-web/app/models/trace_timeline.rb
  157. +163 −0 zipkin-web/app/models/ztrace.rb
  158. +72 −0 zipkin-web/app/views/layouts/application.html.erb
  159. +164 −0 zipkin-web/app/views/traces/index.html.erb
  160. +3 −0 zipkin-web/app/views/traces/server_error.html.erb
  161. +35 −0 zipkin-web/app/views/traces/show.html.erb
  162. +19 −0 zipkin-web/config.ru
  163. +130 −0 zipkin-web/config/application.rb
  164. +27 −0 zipkin-web/config/boot.rb
  165. +19 −0 zipkin-web/config/environment.rb
  166. +69 −0 zipkin-web/config/environments/development.rb
  167. +66 −0 zipkin-web/config/environments/production.rb
  168. +52 −0 zipkin-web/config/environments/test.rb
  169. +21 −0 zipkin-web/config/initializers/backtrace_silencers.rb
  170. +24 −0 zipkin-web/config/initializers/inflections.rb
  171. +19 −0 zipkin-web/config/initializers/mime_types.rb
  172. +21 −0 zipkin-web/config/initializers/secret_token.rb
  173. +22 −0 zipkin-web/config/initializers/session_store.rb
  174. +5 −0 zipkin-web/config/locales/en.yml
  175. +86 −0 zipkin-web/config/routes.rb
  176. +35 −0 zipkin-web/lib/careless_scribe.rb
  177. +103 −0 zipkin-web/lib/endpoint.thrift
  178. +12 −0 zipkin-web/lib/endpoint_constants.rb
  179. +63 −0 zipkin-web/lib/endpoint_types.rb
  180. +127 −0 zipkin-web/lib/mocks.rb
  181. 0 zipkin-web/lib/tasks/.gitkeep
  182. +287 −0 zipkin-web/lib/zipkin.thrift
  183. +109 −0 zipkin-web/lib/zipkin_client.rb
  184. +319 −0 zipkin-web/lib/zipkin_collector.rb
  185. +18 −0 zipkin-web/lib/zipkin_constants.rb
  186. +854 −0 zipkin-web/lib/zipkin_query.rb
  187. +318 −0 zipkin-web/lib/zipkin_types.rb
  188. +18 −0 zipkin-web/public/404.html
  189. +26 −0 zipkin-web/public/422.html
  190. +26 −0 zipkin-web/public/500.html
  191. 0 zipkin-web/public/favicon.ico
  192. BIN zipkin-web/public/images/glyphicons-halflings-white.png
  193. BIN zipkin-web/public/images/glyphicons-halflings.png
  194. +5 −0 zipkin-web/public/robots.txt
  195. 0 zipkin-web/public/stylesheets/.gitkeep
  196. +121 −0 zipkin-web/public/templates/get-trace.mustache
  197. +34 −0 zipkin-web/public/templates/onebox-left.mustache
  198. +23 −0 zipkin-web/public/templates/onebox-right.mustache
  199. +21 −0 zipkin-web/public/templates/query.mustache
  200. +6 −0 zipkin-web/public/templates/service-tag.mustache
  201. +65 −0 zipkin-web/public/templates/span-details.mustache
  202. +23 −0 zipkin-web/script/dev_thrift_server
  203. +6 −0 zipkin-web/script/rails
  204. +31 −0 zipkin-web/script/update_thrifts
  205. +11 −0 zipkin-web/test/fixtures/trace_summaries.yml
  206. +11 −0 zipkin-web/test/fixtures/traces.yml
  207. +8 −0 zipkin-web/test/functional/trace_summaries_controller_test.rb
  208. +9 −0 zipkin-web/test/performance/browsing_test.rb
  209. +13 −0 zipkin-web/test/test_helper.rb
  210. +4 −0 zipkin-web/test/unit/helpers/trace_summaries_helper_test.rb
  211. +8 −0 zipkin-web/test/unit/trace_summary_test.rb
  212. +8 −0 zipkin-web/test/unit/trace_test.rb
  213. +1 −0 zipkin-web/vendor/assets/javascripts/bootstrap.js
  214. +9,382 −0 zipkin-web/vendor/assets/javascripts/d3-2.9.1.js
  215. +891 −0 zipkin-web/vendor/assets/javascripts/datepicker.js
  216. +576 −0 zipkin-web/vendor/assets/javascripts/hogan-2.0.0.js
  217. +686 −0 zipkin-web/vendor/assets/stylesheets/bootstrap-responsive.css
  218. +632 −0 zipkin-web/vendor/assets/stylesheets/bootstrap.css
  219. +186 −0 zipkin-web/vendor/assets/stylesheets/datepicker.css
@@ -0,0 +1,19 @@
+.idea/
+*.iml
+out/
+target/
+dist/
+lib_managed/
+zipkin-server/target/
+zipkin-server/dist/
+zipkin-server/lib_managed/
+zipkin-thrift/target/
+zipkin-thrift/dist/
+zipkin-thrift/lib_managed/
+project/boot/
+project/plugins/project/
+project/plugins/src_managed/
+*.log
+*.tmproj
+*.ivyjars
+sbt-launch.jar
@@ -0,0 +1,3 @@
+language: scala
+scala:
+ - 2.9.1
202 LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright 2011 Twitter Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
Oops, something went wrong.

0 comments on commit 2b7acea

Please sign in to comment.