<commit_before>= imglog

imglog is a image logging site for IRC-channels. Direct linked images is pulled down with help from a Cinch[http://www.cinchrb.org] IRC-bot. See cinch-imglog for examples on how to run the bot.

A running example can be found at http://www.coxify.com

== Requirements

* Ruby >= 1.9.1
* Some sort of SQL-server that Sequel[https://github.com/jeremyevans/sequel] can talk to. imglog is tested with PostgreSQL and Sqlite3
* The default webserver[http://unicorn.bogomips.org/] is unicorn through nginx

imglog + bot runs fine on a slice with 512 mb ram.

== Installation

I would suggest that you run the code inside rvm, but that's up to the you.

Check out the code with:

  git clone path..
  
Then in the new dir run:

  bundle install --without development
  
Note: Production installs by the 'pg' gem for PostgreSQL by default and development installs the 'sqlite3' gem.

After that run either, depending on database, should work with whatever Sequel supports:

  sequel -m migration/ sqlite://db.db
  sequel -m migration/ postgres://username:password@host/database

After that you'll need to at least add a network(inside the database UI):

  INSERT INTO networks(name, slug, address, port) VALUES ('freenode', 'freenode', 'irc.freenode.net', 6667);

Edit the default config files. Note: the path to the database should be as explicit as possible, ie:

  database: sqlite:///home/user/path/to/db.db
  database: postgres://username:password@host/database
  
Also, make sure to use the same handshake in both the bot and in the site.
<commit_msg>correct git path<commit_after>= imglog

imglog is a image logging site for IRC-channels. Direct linked images is pulled down with help from a Cinch[http://www.cinchrb.org] IRC-bot. See cinch-imglog for examples on how to run the bot.

A running example can be found at http://www.coxify.com

== Requirements

* Ruby >= 1.9.1
* Some sort of SQL-server that Sequel[https://github.com/jeremyevans/sequel] can talk to. imglog is tested with PostgreSQL and Sqlite3
* The default webserver[http://unicorn.bogomips.org/] is unicorn through nginx

imglog + bot runs fine on a slice with 512 mb ram.

== Installation

I would suggest that you run the code inside rvm, but that's up to the you.

Check out the code with:

  git clone git://github.com/netfeed/imglog.git
  
Then in the new dir run:

  bundle install --without development
  
Note: Production installs by the 'pg' gem for PostgreSQL by default and development installs the 'sqlite3' gem.

After that run either, depending on database, should work with whatever Sequel supports:

  sequel -m migration/ sqlite://db.db
  sequel -m migration/ postgres://username:password@host/database

After that you'll need to at least add a network(inside the database UI):

  INSERT INTO networks(name, slug, address, port) VALUES ('freenode', 'freenode', 'irc.freenode.net', 6667);

Edit the default config files. Note: the path to the database should be as explicit as possible, ie:

  database: sqlite:///home/user/path/to/db.db
  database: postgres://username:password@host/database
  
Also, make sure to use the same handshake in both the bot and in the site.

{'fraction_non_alphanumeric': 0.08401510383889238, 'fraction_numerical': 0.007551919446192574, 'mean_word_length': 3.944012441679627, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '2580814', 'n_tokens_mistral': 988, 'n_tokens_neox': 929, 'n_words': 426}