<commit_before># MarsGeo

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'mars_geo'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install mars_geo

## Usage

TODO: Write usage instructions here

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request<commit_msg>add documentation<commit_after># MarsGeo

这是一个将真实经纬度转换成火星地址的Gem. 我们在做手机App开发时经常会用到地图，通常手机获得的经纬度放到
Google地图的时候会有几百米的偏差，这是因为某些原因国内地图都做了偏移加密，这个俗称火星坐标系。MarsGeo是
根据网上的一段Java代码翻译过来的，目的是把真实经纬度转换成火星坐标系好和Google地图匹配，至于准确性如何
我没有全面测试过，不过我自己使用的情况还是可以滴。


## Installation

Add this line to your application's Gemfile:

    gem 'mars_geo'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install mars_geo

## Usage

在要使用的文件中 include MarsGeo Moudle

```
class HomeController < ApplicationController
    include MarsGeo

    def index
        point = Point.new(31.108949, 121.333383)
        offset_point = point.offset
        p offset_point.lat 
        p offset_point.lng 
    end

end

```




## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
{'fraction_non_alphanumeric': 0.07844474761255116, 'fraction_numerical': 0.018417462482946793, 'mean_word_length': 3.778501628664495, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '7671644', 'n_tokens_mistral': 618, 'n_tokens_neox': 615, 'n_words': 161}