redirected to "/home".
494646
public void doIndex(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
        if (!common.checkGet(request, response)) return;

        // If there's a user logged in, send them to "/home".
        User user = common.getLoggedInUser(request);
        if (user != null) {
            response.sendRedirect("/home");
            return;
        }

        FormProtection fp = FormProtection.start(response);

        response.setContentType("text/html");
        response.setCharacterEncoding("utf-8");
        PrintWriter out = new PrintWriter(new OutputStreamWriter(response.getOutputStream(), "UTF-8"));

        out.println("<html>");
        out.println("<head><title>Home - Web File Browser</title></head>");
        out.println("<body>");
        fp.insertAntiRedressHtml(out);

        // Login form.
        out.println("<h2>Log in</h2>");
        out.println("<form action='/login' method='POST'>");
        fp.insertAntiCsrfFormField(out);
        out.println("<p>Username: <input name='username' type='text' /> (pick whatever you want)</p>");
        out.println("<p>No password needed for this tiny example.</p>");
        out.println("<input type='submit' value='Login' />");
        out.println("</form>");

        out.println("</body>");
        out.println("</html>");
        out.flush();
    }
883827
def homepage(request):
    '''
    
    '''
    all_metadata = db.metadata.find()

    return render(request, templatename('homepage'),
                  dict(all_metadata=all_metadata))
1014127
def user_homedir(username=None):
    
    if username:
        return os.path.expanduser('~%s/' % username)
    elif 'HOME' in os.environ:
        return os.environ['HOME']
    elif os.name == 'posix':
        return os.path.expanduser('~/')
    else:
        raise RuntimeError('This function has failed at life.')
902350
private function sailHome()
    {
        $routes = Registry::ahoy()->get('routes');
        $home_page = $routes['/'];
        $this->controller = $home_page['controller'];
        $this->action = $home_page['action'];
        $this->params = $home_page['params'];
    }
708389
def home(self):
        """"""
        self.row = 0
        self.column = 0

        self.command(Command.RETURN_HOME)
        msleep(2)
519965
def go_to_parent_directory(self):
        """"""
        self.chdir(osp.abspath(osp.join(getcwd_or_home(), os.pardir)))
907703
public function resetUrl()
    {

        if ($this->mode == 'dev') {
            $this->url = static::BASEURL_DEV;
        } else if ($this->mode == 'local') {
            $this->url = static::BASEURL_LOCAL;
        } else {
            $this->url = static::BASEURL;
        }

    }
986913
function (urlpath, dirs) {
    dirs.forEach(function (val, idx) {
        redirectTo(urlpath, false);
        addDeepDir(urlpath, val);
    });
}
430443
public static void makehome(String home) throws Exception {
		File homedir = new File(home);
		if (!homedir.exists()) {
			try {
				homedir.mkdirs();
			} catch (Exception ex) {
				throw new Exception("Can not mkdir :" + home + " Maybe include special charactor!");
			}
		}
	}
79154
static function Redirect301($target, $noExit = false)
    {
        self::Redirect($target, self::REDIRECT_HEADER_301, $noExit);
    }
973658
def home
      if page.link_url.present? && page.link_url != "/"
        redirect_to page.link_url, status: 301 and return
      end
      render_with_templates?
    end
1338957
private function detectHomeDirectory()
    {
        // Environment variable COMPOSER points to the composer.json we should use.
        if (false !== ($home = getenv('COMPOSER'))) {
            return dirname($home);
        }

        if ('' !== \Phar::running()) {
            // Strip scheme "phar://" prefix and "tenside.phar" suffix.
            $home = dirname(substr(\Phar::running(), 7));
        } else {
            $home = getcwd();
        }

        if ((PHP_SAPI !== 'cli') && (substr($home, -4) !== DIRECTORY_SEPARATOR . 'web')) {
            throw new \RuntimeException(
                'Tenside is intended to be run from within the web directory but it appears you are running it from ' .
                basename($home)
            );
        }

        return dirname($home);
    }
1201223
def home(self, n=1, interval=0, pre_dl=None, post_dl=None):
        
        self.delay(pre_dl)
        self.k.tap_key(self.k.home_key, n, interval)
        self.delay(post_dl)
678199
def home(request, chat_channel_name=None):
    

    if not chat_channel_name:
        chat_channel_name = 'homepage'

    context = {
        'address': chat_channel_name,
        'history': [],
    }

    if ChatMessage.objects.filter(channel=chat_channel_name).exists():
        context['history'] = ChatMessage.objects.filter(
            channel=chat_channel_name)


    # TODO add https 
    websocket_prefix = "ws"
    websocket_port = 9000

    context['websocket_prefix'] = websocket_prefix
    context['websocket_port'] = websocket_port

    return render(request, 'chat.html', context)
1035072
def url(self):
        """"""
        url = u'{home_url}{permalink}'.format(home_url=settings.HOME_URL,
                                              permalink=self._permalink)
        url = re.sub(r'/{2,}', r'/', url)
        return url
945350
def home(self) -> str:
        
        self.hardware.home()
        self.current_position = self._position()
        return 'Homed'
767559
function navigate(path, replace){
    if (replace)
      location.replace(location.pathname + '#' + path);
    else
      location.hash = path;

    if (started)
      checkUrl();
  }