original_string: public function save_file(Request $request)
      {
          $filepath = $request->input('filepath');
          $filedata = $request->input('filedata');
          $data = file_put_contents(base_path($filepath), $filedata);
          return response()->json(['success' => true]);
      }
code: public function save_file(Request $request)
      {
          $filepath = $request->input('filepath');
          $filedata = $request->input('filedata');
          $data = file_put_contents(base_path($filepath), $filedata);
          return response()->json(['success' => true]);
      }
code_tokens: public function save_file ( Request $ request ) { $ filepath = $ request -> input ( 'filepath' ) ; $ filedata = $ request -> input ( 'filedata' ) ; $ data = file_put_contents ( base_path ( $ filepath ) , $ filedata ) ; return response ( ) -> json ( [ 'success' => true ] ) ; }
docstring: Save file content
  
  @return \Illuminate\Http\Response
docstring_tokens: Save file content