{"ref":"refs/heads/python-rewrite","commits":[{"author":{"name":"jmoore","email":"c028c213ed5efcf30c3f4fc7361dbde0c893c5b7@glencoesoftware.com"},"url":"https://api.github.com/repos/joshmoore/spark/commits/26231f2c9a8cd83f746e9c19c88a279605c9c72e","message":"Remove loop and refactor ticks\n\nTicks can now be configured via --chars=9, e.g., which\nhelped track down minor changes caused by removing the\nloops. The difference between the new calculation is\nthat some cases (like 1,2,3,4,5) make more use of the\navailable ticks:\n\n```\n$ echo \"1,2,3,4,5\" | ./spark --chars=8\n2 4 6 8 8\n```\n\nrather than the previous \"1 2 3 4 5\" result.","sha":"26231f2c9a8cd83f746e9c19c88a279605c9c72e"},{"author":{"name":"jmoore","email":"c028c213ed5efcf30c3f4fc7361dbde0c893c5b7@glencoesoftware.com"},"url":"https://api.github.com/repos/joshmoore/spark/commits/31ab08f00d17fef6582a63d7cf43fd532e6dc965","message":"Add --min and --max in preparation for --stream\n\nmin and max are now externally definable. If they are\nset, then no call to sorted, min, or max is needed so\na generator (e.g. from stdin) can be passed in.","sha":"31ab08f00d17fef6582a63d7cf43fd532e6dc965"},{"author":{"name":"jmoore","email":"c028c213ed5efcf30c3f4fc7361dbde0c893c5b7@glencoesoftware.com"},"url":"https://api.github.com/repos/joshmoore/spark/commits/7879797becaad9d543c5621c3ab5367962b99f87","message":"Stream support\n\nUsing the fileinput module this adds support for streams:\n\nVia stdin:\n```\n$ ./stream.py | ./spark --file=- --min=1 --max=10\n▂▅▅▅▂▅▄▇█▂█▂▆▅██▄▆▆█▆▂▄▅███▄▂█▇█▄███▇▅▂█▄█▇█▆▇▅██▆▅▄▆▄▇██▂▂▇██▆█▅▆▄▆▃██▅▃▆████▇▅▃▇▃▂▆▆▂▃██▄▂▆▄▃▃█▇▃▆\n```\n\nOr files:\n```\n~/code/spark $ ./stream.py | ./spark --file=data --min=1 --max=10\n▂█▃▄▅\n```\n\nIn some cases, this prints:\n\n```\nclose failed in file object destructor:\nError in sys.excepthook:\n\nOriginal exception was:\n```\n\nwhich still needs to be fixed.","sha":"7879797becaad9d543c5621c3ab5367962b99f87"}],"head":"7879797becaad9d543c5621c3ab5367962b99f87","size":3,"push_id":50278825}