original_string: private function checkIncludeJavascript() {
          $request = $this->requestStack->getCurrentRequest();
          $rtn = !$request->attributes->has($this::JS_INCLUDE_KEY);
          if (!$rtn) {
              $request->attributes->set($this::JS_INCLUDE_KEY, true);
          }
          return $rtn;
      }
code: private function checkIncludeJavascript() {
          $request = $this->requestStack->getCurrentRequest();
          $rtn = !$request->attributes->has($this::JS_INCLUDE_KEY);
          if (!$rtn) {
              $request->attributes->set($this::JS_INCLUDE_KEY, true);
          }
          return $rtn;
      }
code_tokens: private function checkIncludeJavascript ( ) { $ request = $ this -> requestStack -> getCurrentRequest ( ) ; $ rtn = ! $ request -> attributes -> has ( $ this :: JS_INCLUDE_KEY ) ; if ( ! $ rtn ) { $ request -> attributes -> set ( $ this :: JS_INCLUDE_KEY , true ) ; } return $ rtn ; }
docstring: Determines whether we have to include the javascript files.
docstring_tokens: Determines whether we have to include the javascript files .