Commit Graph

1013 Commits

Author SHA1 Message Date
Brian S. Stephan ed66246f14 markov: don't append punctuation to nothingness
this is an attempt to fix bss/dr.botzo#10
2016-12-04 10:51:14 -06:00
Brian S. Stephan 6e21416791 markov: import generic text files 2016-11-16 12:10:42 -06:00
Brian S. Stephan 8fded6ba6c markov: replace max_sentences with sentance_bias
the theory here is that counting the number of sentences generated is
kind of silly, if we're already specifying min/max word counts, we
probably just want to fall into that range, and not really care how many
sentences we get

meanwhile, we were overloading max_sentences to also calculate how long
any one sentence must be, which is kind of a weird thing to derive, so
we're going to drop the max_sentences language and call this more what
it is, a bias towards the number of sentences that might be seen
2016-06-30 23:26:04 -05:00
Brian S. Stephan 9b5e8445bf Revert "markov: abandon min_words_per_sentence for lines"
This reverts commit 464727cc74.

it turns out that without the min_words_per_sentence adjustment, the
default min_words (15) is way too demanding on a lot of chains, so we're
going to go back to this for the moment
2016-06-30 23:20:05 -05:00
Brian S. Stephan ab9edb2c9b markov: work harder to avoid short sentences
not sure how effective this will be, but it's worth a shot
2016-06-30 23:16:49 -05:00
Brian S. Stephan 464727cc74 markov: abandon min_words_per_sentence for lines
was yielding too many short chains, i think
2016-06-30 23:16:13 -05:00
Brian S. Stephan dcb7a0af4a markov: some debugging statements in longish 2016-06-30 23:05:58 -05:00
Brian S. Stephan ccfc5e7484 markov: be smarter with appending punctuation
don't append commas ever (it looks weird), ignore other situations
where the chain already ends with punctation so we don't need more
2016-06-30 22:46:47 -05:00
Brian S. Stephan db3e2a27a0 markov: try harder to get a right len sentence
this puts additional pressure on the sentence generator, retrying many
times to get something that's long but not too long. only testing on a
small context so far, so this is certainly not yet ready to go live, but
the results are pretty good so far
2016-06-30 22:43:26 -05:00
Brian S. Stephan 897f29c8d4 markov: tweaks to the sentence generator
this tunes things a bit in the sentence generator, trying to favor
complete sentences over the min/max word counts, which are still kinda
heeded but not as militantly. this *should* create more interesting
chains, especially with topics, without really breaking things, but this
certainly needs some testing before we can see if it's actually right
2016-06-30 22:21:02 -05:00
Brian S. Stephan 70032dc42b Merge branch 'master' of git.incorporeal.org:bss/dr.botzo 2016-06-30 16:27:19 -05:00
Brian S. Stephan c9f73f44e2 markov: point admin forms at templates properly 2016-06-30 16:26:06 -05:00
Brian S. Stephan 81339a4f16 markov: bit of debug logging in file import 2016-06-30 16:25:38 -05:00
Brian S. Stephan 8b36f2c56b Merge branch 'karma-graphs' into 'master'
Show list of keys in the karma index

Nothing too crazy here, just lists the karma keys on the Django karma index page. Might be really slow, haven't tried it on a huge dataset yet.

See merge request !8
2016-06-23 14:58:35 -05:00
Brian S. Stephan 18ff814bc8 karma: add a pagination default of 10 2016-05-13 22:41:13 -05:00
Brian S. Stephan 46ffe7a72d karma: remove the rank from the index table
it's kind of redundant anyway, since we include the score
2016-05-13 22:30:59 -05:00
Brian S. Stephan 26f0604922 karma: add django rest framework
i tried to use this for datatables, but it was taking too long to get a
response, so i'm abandoning this for the moment, but the support's there
for the future
2016-05-13 22:19:38 -05:00
Brian S. Stephan 4809247632 karma: display all karma keys in index page
this kind of sucks from a performance standpoint, i'd like to make it
better
2016-05-13 21:55:54 -05:00
Brian S. Stephan b82e5309e1 drop the artificial data point at 0,0
kinda screwing up some graphs
2016-03-31 19:19:35 -05:00
Brian S. Stephan c364578e5d lowercase the key in karma graph URL 2016-03-31 16:47:17 -05:00
Brian S. Stephan e5263d0019 show karma graph with date-based X range
this is way more interesting of a graph than delta-based, which just
ends up being a linear slope. dunno what i was thinking yesterday
2016-03-31 16:36:10 -05:00
Brian S. Stephan dab41fa7d3 pad the bottom of pages' content 2016-03-30 18:06:44 -05:00
Brian S. Stephan 50f2b12c18 only build history once in karma graph, do history 2016-03-30 18:04:19 -05:00
Brian S. Stephan 08da8ea9f3 tweak karma graph output for many data points
if there's a ton of data points, the graph starts looking real gross,
so do a couple things to make the display of that a bit simpler so
there's less noise and distracting lines and whatnot
2016-03-30 17:57:00 -05:00
Brian S. Stephan 3e9302c89c don't display dots on the karma graph 2016-03-30 17:26:59 -05:00
Brian S. Stephan 03047c458f add an initial point to the karma key graph 2016-03-30 17:20:33 -05:00
Brian S. Stephan 28002db80b tweak the karma graph colors a bit 2016-03-30 17:19:06 -05:00
Brian S. Stephan 82c1b1babd Merge branch 'karma-graphs' into 'master'
Create karma graph report page



See merge request !7
2016-03-30 17:12:04 -05:00
Brian S. Stephan 88c130c7a3 Merge branch 'bootstrap' into 'master'
Add initial bootstrap3 support



See merge request !6
2016-03-30 17:10:24 -05:00
Brian S. Stephan 6fad9202ca add karma graphs view to the django site
pretty simplistic for the moment, it will become more robust later (TM)
2016-03-30 17:08:01 -05:00
Brian S. Stephan 03b90fe50a add KarmaKey.history()
calculates the value of the score at every point in the score's history.
might be slow, unsure yet
2016-03-30 17:06:12 -05:00
Brian S. Stephan 33bf61712e more bootstrap config stuff
these will be necessary for other jquery things in a moment
2016-03-30 17:05:26 -05:00
Brian S. Stephan 85f9ae7d4d convert the very basic UI we had to bootstrap 2016-03-30 16:00:49 -05:00
Brian S. Stephan 5225d2bd6b add django-registration-redux and use some of it
for the moment this is for the password change url used in the auth
dropdown, and a better login page, but this might become other stuff
eventually too. the signup page exists and is linked to, even if i don't
have a great reason for this to exist

bunch of templates added now to support the intentional and
unintentional stuff
2016-03-30 15:36:56 -05:00
Brian S. Stephan e52f4c915f prospector - 'log' okay name, analyze docstrings 2016-03-02 21:43:21 -06:00
Brian S. Stephan 91c4a44526 .gitlab-ci.yml: don't fail on prospector messages 2016-03-02 21:01:43 -06:00
Brian S. Stephan 7386efa2ee messing around with a gitlab CI config 2016-03-02 20:32:22 -06:00
Brian S. Stephan 2cee918fd9 twitter: reverse the mentions list before printing 2016-01-26 23:29:26 -06:00
Brian S. Stephan 21941b3392 Merge branch 'twitterbot' into 'master'
Twitter: poll the bot's mentions feed, print to channel

This uses the Twitter client's method for checking the mentions timeline
in a new thread (which can be started/stopped via IRC) to print mentions
to a specified IRC channel.

See merge request !5
2016-01-26 23:22:13 -06:00
Brian S. Stephan 9d5b9e070b twitter: start/stop mention poll thread via irc
includes a migration for a new permission for this, naturally. with
this, the poll thread can be started and actually do stuff
2016-01-26 23:14:42 -06:00
Brian S. Stephan 3b78e9b894 twitter: method for polling mentions timeline
not stitched together in this commit, so it'll work but it won't be
started
2016-01-26 00:39:51 -06:00
Brian S. Stephan 6cbf5f3d96 twitter: pull the tweet reply method into two
_return_tweet_or_retweet_text used to both determine the proper tweet
text and bot.reply() with it to the provided event. if we're not
reacting to an irc event, this obviously won't work, so this pulls the
method into two things so that we can use the string formatting code
without necessary needing an event
2016-01-26 00:08:46 -06:00
Brian S. Stephan e8e42cc580 twitter: replace since_id with mentions_since_id
we'll want to treat the since_ids for mentions and (theoretical)
timelines differently, i think, so might as well just set up the split
out field now
2016-01-24 18:46:06 -06:00
Brian S. Stephan 352ce81bc9 twitter: add field for mentions output channel
this removes an old, general field, which was once used for multiple
things, but we should break apart its functional usage and also just
refer to our IrcChannel object anyway

this is the easy half of issue #3
2016-01-24 17:50:46 -06:00
Brian S. Stephan e25b3aca9d twitter: don't append colon to nick when replying
just a style thing, nbd
2016-01-17 12:37:23 -06:00
Brian S. Stephan 3718db5086 Merge branch 'py3' into 'master'
Py3 - Format exceptions properly

Exceptions need to be explicitly cast as strings before being fed to
format() now

See merge request !4
2016-01-17 12:13:50 -06:00
Brian S. Stephan 57588afbe6 dispatch: wrap exceptions in str() before format() 2016-01-17 12:11:00 -06:00
Brian S. Stephan b09c20e910 twitter: wrap exceptions in str() before format()
this might also do something about #1, considering i'm also just doing
blanket except Exception:s now. fingers crossed
2016-01-17 12:04:34 -06:00
Brian S. Stephan 124cf0bdb0 removing BUGS file
i couldn't confirm the only thing in it, and gitlab seems like a way
better idea anyway, now that i'm using it
2016-01-17 11:51:19 -06:00
Brian S. Stephan 702a2de4c6 Merge branch 'py3' into 'master'
Py3 - Remove a couple unnecessary UTF8 encodes



See merge request !3
2016-01-17 11:44:27 -06:00