<commit_before>#charset "UTF-8"
// Copyright © 2014 <NAME>.
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero
// General Public License as published by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public
// License for more details.
//
// You should have received a copy of the GNU Affero General Public License along with this program.  If not,
// see: http://www.gnu.org/licenses/agpl-3.0.html
//
// This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view
// a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative
// Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

#include <adv3.h>
#include <en_us.h>

gameMain: GameMainDef
  initialPlayerChar = me
  showIntro() {
    """
    "Sing to me of your sadness and tell me of your joy..."\b
    <b><<versionInfo.name>></b>\n
    <<versionInfo.byline>>\n
    Release <<versionInfo.version>> (<<versionInfo.serialNum>>)\b
    First-time players should type <<aHref('ABOUT', 'ABOUT')>>.\b
    """;
    libGlobal.scoreObj = nil;
  }
;

versionInfo: GameID
  IFID = '853AF89C-7D32-49EE-85FA-77A49F1ACD99'
  name = 'Look Around the Corner'
  byline = 'by <NAME> (as <NAME>)'
  authorEmail = '<NAME> <<EMAIL>>'
  desc = 'An interactive fiction (an entry in ShuffleComp 2014) inspired by the song "Look Around the Corner"
          by Quantic & Alice Russell with the Combo Bárbaro.'
  version = '5'
  releaseDate = '2014-06-12'
  firstPublished = '2014-05-12'
  forgiveness = 'Merciful'
  licenseType = 'Freeware'
  copyingRules = 'No Restrictions'
  serialNum = static releaseDate.findReplace('-', '', ReplaceAll, 1)
  showAbout() {
     """
     An interactive fiction (an entry in ShuffleComp 2014) inspired by the song
     <<link('http://www.youtube.com/watch?v=p4yJp4CLRL4',
            '"Look Around the Corner" by Quantic & Alice Russell with the Combo Bárbaro.')>>\b

     Thanks to my testers: <NAME>, <NAME>, <NAME>, <NAME>, <NAME>,
     <NAME>., and <NAME>.  Also thanks to <NAME> for organizing the competition, and thanks to
     <NAME>, <NAME>, and <NAME> for posting positive reviews during the comp. :)\b

     Extra-special thanks to the Mysterious Strangers who submitted the song "Look Around the Corner" and
     the pseudonym "<NAME>". I hope to learn your identities some day so I can properly thank you here!\b

     Please feel free to <<link('mailto:<EMAIL>', 'send me feedback')>>. The source code is
     available (under the <<aHref('http://www.gnu.org/licenses/agpl-3.0.html', 'AGPLv3')>>) on
     <<link('http://github.com/dougo/shufflecomp', 'GitHub')>>, where you can also
     submit bug reports.  The text is licensed under
     <<aHref('http://creativecommons.org/licenses/by-sa/4.0/', 'CC BY-SA 4.0')>>.
     """;
  }
  showCredit() { showAbout(); }
  link(href, text) { // for console mode, include the href in the alt text.
    "<<aHrefAlt(href, text, '<<text>> &lt;<<href>>&gt;')>>";
  }
;

bedroom: Room 'Bedroom'
  """
  This is your bedroom, or at least you think it is. The room is mostly very dim and indistinct. To the north
  stretches a long hallway, lit at the far end by the new light of the dawn<<if me.days>>. The light looks
  a little different than it did yesterday<<end>>.

  <<if me.newDay>><<beginDay>><<end>>
  """
  beginDay() {
    "\bAnother day is <<one of>>born<<or>>born<<or>>here<<as decreasingly likely outcomes>>,
     rise up!";
    me.newDay = nil;
  }
  north: TravelMessage { ->hallway "Eyes wide open, you tread wisely down the length of the hallway." }
  out asExit(north)
  down: NoTravelMessage {
    dobjFor(TravelVia) {
      remap = (me.posture == standing) ? [LieAction] : [LieOnAction, defaultFloor]
    }
  }
  up: NoTravelMessage {
    dobjFor(TravelVia) {
      remap = (me.posture == standing) ? inherited() : [StandAction]
      action() { bedroom.cannotTravel(); }
    }
  }
;<commit_msg>Oops, make hyperlinks be hyperlinks and not command links.<commit_after>#charset "UTF-8"
// Copyright © 2014 <NAME>.
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero
// General Public License as published by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public
// License for more details.
//
// You should have received a copy of the GNU Affero General Public License along with this program.  If not,
// see: http://www.gnu.org/licenses/agpl-3.0.html
//
// This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view
// a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative
// Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

#include <adv3.h>
#include <en_us.h>

gameMain: GameMainDef
  initialPlayerChar = me
  showIntro() {
    """
    "Sing to me of your sadness and tell me of your joy..."\b
    <b><<versionInfo.name>></b>\n
    <<versionInfo.byline>>\n
    Release <<versionInfo.version>> (<<versionInfo.serialNum>>)\b
    First-time players should type <<aHref('ABOUT', 'ABOUT')>>.\b
    """;
    libGlobal.scoreObj = nil;
  }
;

versionInfo: GameID
  IFID = '853AF89C-7D32-49EE-85FA-77A49F1ACD99'
  name = 'Look Around the Corner'
  byline = 'by <NAME> (as <NAME>)'
  authorEmail = '<NAME> <<EMAIL>>'
  desc = 'An interactive fiction (an entry in ShuffleComp 2014) inspired by the song "Look Around the Corner"
          by Quantic & <NAME> with the Combo Bárbaro.'
  version = '5'
  releaseDate = '2014-06-12'
  firstPublished = '2014-05-12'
  forgiveness = 'Merciful'
  licenseType = 'Freeware'
  copyingRules = 'No Restrictions'
  serialNum = static releaseDate.findReplace('-', '', ReplaceAll, 1)
  showAbout() {
     """
     An interactive fiction (an entry in ShuffleComp 2014) inspired by the song
     <<linkAndURL('http://www.youtube.com/watch?v=p4yJp4CLRL4',
                  '"Look Around the Corner" by Quantic & Alice Russell with the Combo Bárbaro.')>>\b

     Thanks to my testers: <NAME>, <NAME>, <NAME>, <NAME>, <NAME>,
     <NAME>., and <NAME>.  Also thanks to <NAME> for organizing the competition, and thanks to
     <NAME>, <NAME>, and <NAME> for posting positive reviews during the comp. :)\b

     Extra-special thanks to the Mysterious Strangers who submitted the song "Look Around the Corner" and
     the pseudonym "<NAME>". I hope to learn your identities some day so I can properly thank you here!\b

     Please feel free to <<linkAndURL('mailto:<EMAIL>', 'send me feedback')>>. The source code is
     available (under the <<link('http://www.gnu.org/licenses/agpl-3.0.html', 'AGPLv3')>>) on
     <<linkAndURL('http://github.com/dougo/shufflecomp', 'GitHub')>>, where you can also
     submit bug reports.  The text is licensed under
     <<link('http://creativecommons.org/licenses/by-sa/4.0/', 'CC BY-SA 4.0')>>.
     """;
  }
  showCredit() { showAbout(); }
  link(href, text) {
    "<a target='_blank' href='<<href>>'><<text>></a>";
  }
  linkAndURL(href, text) {
    if (outputManager.htmlMode) {
      link(href, text);
    } else {
      // No HTML; display the href after the text so it can be copy/pasted.
      "<<text>> &lt;<<href>>&gt;";
    }
  }
;

bedroom: Room 'Bedroom'
  """
  This is your bedroom, or at least you think it is. The room is mostly very dim and indistinct. To the north
  stretches a long hallway, lit at the far end by the new light of the dawn<<if me.days>>. The light looks
  a little different than it did yesterday<<end>>.

  <<if me.newDay>><<beginDay>><<end>>
  """
  beginDay() {
    "\bAnother day is <<one of>>born<<or>>born<<or>>here<<as decreasingly likely outcomes>>,
     rise up!";
    me.newDay = nil;
  }
  north: TravelMessage { ->hallway "Eyes wide open, you tread wisely down the length of the hallway." }
  out asExit(north)
  down: NoTravelMessage {
    dobjFor(TravelVia) {
      remap = (me.posture == standing) ? [LieAction] : [LieOnAction, defaultFloor]
    }
  }
  up: NoTravelMessage {
    dobjFor(TravelVia) {
      remap = (me.posture == standing) ? inherited() : [StandAction]
      action() { bedroom.cannotTravel(); }
    }
  }
;
{'fraction_non_alphanumeric': 0.13296178343949044, 'fraction_numerical': 0.01797088262056415, 'mean_word_length': 3.3899151273090364, 'pattern_counts': {'":': 0, '<': 142, '<?xml version=': 0, '>': 144, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '2429666', 'n_tokens_mistral': 2913, 'n_tokens_neox': 2759, 'n_words': 1000}