hunk.code_window:       // Increment the ref count.
         subscriptions.set(subscriptionKey, refCount + 1)
         if (!refCount) {
           const dispose = subscribe(originKey, { next })
           if (typeof dispose !== 'function') {
             throw new Error(
               'The `subscribe` function must return a function to unsubscribe.'
             )
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit:         const dispose = subscribe(args, { next })
  
hunk.file_path: subscription/src/index.ts
hunk.type: replace
file: const projects = [
    'facebook/flipper', 'vuejs/vuepress', 'rust-lang/rust', 'vercel/next.js'
  ]
  
  export default function api(req, res) {
    if (req.query.id) {
      // a slow endpoint for getting repo data
      fetch(`https://api.github.com/repos/${req.query.id}`)
        .then(resp => resp.json())
        .then(data => {
          setTimeout(() => {
            res.json(data)
          }, 2000)
        })
  
      return
    }
    setTimeout(() => {
      res.json(projects)
    }, 2000)
  }
  