Skip to content

Commit 7a393cd

Browse files
committed
wip renaming
1 parent e1a415e commit 7a393cd

10 files changed

+20
-20
lines changed

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "shortcut"]
2-
path = shortcut
2+
path = ortholang
33
url = [email protected]:jefdaj/shortcut.git

Docs.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ executable docs
2929
default-language: Haskell2010
3030
hs-source-dirs: .,
3131
shortcut
32-
build-depends: ShortCut,
32+
build-depends: OrthoLang,
3333
Glob,
3434
MissingH,
3535
ansi-terminal,

Docs.hs

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ module Main where
77
- TODO put in a separate binary?
88
-}
99

10-
import ShortCut.Core.Types
10+
import OrthoLang.Core.Types
1111

1212
import Data.List.Split (splitOn)
1313
import Data.List.Utils (join)
14-
import ShortCut.Modules (modules)
14+
import OrthoLang.Modules (modules)
1515
import Data.Char (toLower, isAlphaNum)
1616
import Data.List (nub)
1717
import System.FilePath ((</>), (<.>))
18-
import Paths_ShortCut (getDataFileName)
18+
import Paths_OrthoLang (getDataFileName)
1919
import Control.Monad (when)
2020
import System.Directory (doesFileExist)
2121

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
shortcut-demo
22
=============
33

4-
An interactive web demo + tutorial for [ShortCut][1].
4+
An interactive web demo + tutorial for [OrthoLang][1].
55
Try the live version at [shortcut.pmb.berkeley.edu](https://shortcut.pmb.berkeley.edu)!
66

77
Install as a NixOS service

ortholang

Submodule ortholang added at 66a75ee

reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ Functions:
502502

503503
Random (but reproducable) sampling of list elements.
504504

505-
WARNING: Because of the way ShortCut caches tempfiles, calling these
505+
WARNING: Because of the way OrthoLang caches tempfiles, calling these
506506
more than once will give the same sublist each time! For different
507507
sublists, use in combination with the 'repeat' function.
508508

service.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ in {
1919
default = false;
2020
type = with types; bool;
2121
description = ''
22-
Enable the ShortCut demo server
22+
Enable the OrthoLang demo server
2323
'';
2424
};
2525

@@ -104,7 +104,7 @@ in {
104104
systemd.services."shortcut-demo" = {
105105
wantedBy = [ "multi-user.target" ];
106106
after = [ "network.target" ];
107-
description = "ShortCut demo server";
107+
description = "OrthoLang demo server";
108108
serviceConfig = {
109109
Type = "simple";
110110
User = "${cfg.user}";

shortcut

-1
This file was deleted.

shortcut-demo.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# TODO should users dir be optional?
99

1010
'''
11-
Launch the ShortCut demo server.
11+
Launch the OrthoLang demo server.
1212
1313
Usage:
1414
shortcut-demo (-h | --help)
@@ -316,8 +316,8 @@ def index(user='guest'):
316316
codeblock_userpaths=blocks.keys())
317317

318318
# Flask doesn't like sending random files from all over for security reasons,
319-
# so we make these simplified routes where /TMPDIR and /WORKDIR refer to their ShortCut equivalents.
320-
# Lines from ShortCut get rewritten with regexes to include that (messy I know),
319+
# so we make these simplified routes where /TMPDIR and /WORKDIR refer to their OrthoLang equivalents.
320+
# Lines from OrthoLang get rewritten with regexes to include that (messy I know),
321321
# and then this function finds the real paths again when we need to fetch a file.
322322
@FLASK.route('/TMPDIR/<path:filename>')
323323
def send_tmpfile(filename):
@@ -399,13 +399,13 @@ def handle_connect():
399399
if not uname:
400400
LOGGER.info('client %s started a guest session' % sid)
401401
# print 'trying to start thread...'
402-
SESSIONS[sid] = ShortCutThread(sid, 'guest')
402+
SESSIONS[sid] = OrthoLangThread(sid, 'guest')
403403
# print 'success!'
404404
thread = SESSIONS[sid]
405405
else:
406406
if not uname in SESSIONS:
407407
LOGGER.info('%s started a new session with id %s' % (uname, sid))
408-
SESSIONS[uname] = ShortCutThread(sid, uname)
408+
SESSIONS[uname] = OrthoLangThread(sid, uname)
409409
else:
410410
LOGGER.info('user %s resuming with new session id %s' % (uname, sid))
411411
SESSIONS[uname].sessionids.add(sid)
@@ -512,7 +512,7 @@ def handle_reqresult():
512512

513513
def check_shortcut_version():
514514
LOGGER.info('checking output of "shortcut --version"')
515-
version_expected = u'ShortCut 0.9.2'
515+
version_expected = u'OrthoLang 0.9.2'
516516
proc = spawn('shortcut', ['--version'], encoding='utf-8', timeout=None)
517517
try:
518518
proc.expect(version_expected, timeout=10)
@@ -524,9 +524,9 @@ def check_shortcut_version():
524524

525525
check_shortcut_version()
526526

527-
class ShortCutThread(Thread):
527+
class OrthoLangThread(Thread):
528528
def __init__(self, sessionid, username):
529-
LOGGER.debug('init ShortCutThread')
529+
LOGGER.debug('init OrthoLangThread')
530530
LOGGER.info('creating session %s' % sessionid)
531531
# self.delay = 0.01
532532
self.sessionids = set([sessionid])
@@ -547,7 +547,7 @@ def __init__(self, sessionid, username):
547547
pass # already exists
548548
self._done = Event()
549549
self.process = None
550-
super(ShortCutThread, self).__init__()
550+
super(OrthoLangThread, self).__init__()
551551

552552
def run(self):
553553
options = [ARROW, u'Bye for now!'] # , '.*']

stack.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ extra-deps:
2121
# TODO are the rtsopts a problem? see if removing fixes any fails
2222
ghc-options:
2323
# "all": -O2
24-
# "ShortCut": -O0
24+
# "OrthoLang": -O0

0 commit comments

Comments
 (0)