hunk.code_window:         state.windowHeight = Utils.windowHeight();
           state.profiles = JSON.parse(JSON.stringify(UserStore.getProfiles()));
           state.compactDisplay = PreferenceStore.get(Preferences.CATEGORY_DISPLAY_SETTINGS, Preferences.MESSAGE_DISPLAY, Preferences.MESSAGE_DISPLAY_DEFAULT) === Preferences.MESSAGE_DISPLAY_COMPACT;
           state.flaggedPosts = PreferenceStore.getCategory(Constants.Preferences.CATEGORY_FLAGGED_POST);
           state.statuses = Object.assign({}, UserStore.getStatuses());
           this.state = state;
       }
  
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit:         state.previewsCollapsed = PreferenceStore.get(Preferences.CATEGORY_DISPLAY_SETTINGS, Preferences.COLLAPSE_DISPLAY, 'false');
  
hunk.file_path: webapp/components/rhs_thread.jsx
hunk.type: add
file: // Copyright 2014 The Go Authors. All rights reserved.
  // Use of this source code is governed by a BSD-style
  // license that can be found in the LICENSE file.
  
  package ipv4
  
  import (
  	"syscall"
  	"unsafe"
  )
  
  const (
  	sysGETSOCKOPT = 0xf
  	sysSETSOCKOPT = 0xe
  )
  
  func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (int, syscall.Errno)
  
  func getsockopt(s uintptr, level, name int, v unsafe.Pointer, l *uint32) error {
  	if _, errno := socketcall(sysGETSOCKOPT, s, uintptr(level), uintptr(name), uintptr(v), uintptr(unsafe.Pointer(l)), 0); errno != 0 {
  		return error(errno)
  	}
  	return nil
  }
  
  func setsockopt(s uintptr, level, name int, v unsafe.Pointer, l uint32) error {
  	if _, errno := socketcall(sysSETSOCKOPT, s, uintptr(level), uintptr(name), uintptr(v), uintptr(l), 0); errno != 0 {
  		return error(errno)
  	}
  	return nil
  }
  