Written by Michael Aird.
434301
@SuppressWarnings("unused")
    private boolean checkSwf() throws IOException {
		//get rid of the last byte of the signature, the byte of the version and 4 bytes of the size
		byte[] a = new byte[6];
		if (read(a) != a.length) {
			return false;
		}
		format = FORMAT_SWF;
		int bitSize = (int)readUBits( 5 );
		int minX = (int)readSBits( bitSize ); // unused, but necessary
		int maxX = (int)readSBits( bitSize );
		int minY = (int)readSBits( bitSize ); // unused, but necessary
		int maxY = (int)readSBits( bitSize );
		width = maxX/20; //cause we're in twips
		height = maxY/20;  //cause we're in twips
		setPhysicalWidthDpi(72);
		setPhysicalHeightDpi(72);
		return (width > 0 && height > 0);
	}
514947
function bs(a, b) {
    return function(e, k) {
      var action = !self.keyboard.backspaceSendsBackspace ? a : b;
      return resolve(action, e, k);
    };
  }
841585
def toDict(self):
        
        if six.PY3:
            result = super().toDict()
        else:
            result = AARead.toDict(self)

        result.update({
            'start': self.start,
            'stop': self.stop,
            'openLeft': self.openLeft,
            'openRight': self.openRight,
        })

        return result
261233
function write(obj) {
            stderr.write(JSON.stringify(obj) + "\n");
            if (obj.event !== "ack") read();
        }
1051546
def getWindowTitle(self, hwnd):
        
        length = ctypes.windll.user32.GetWindowTextLengthW(hwnd)
        buff = ctypes.create_unicode_buffer(length + 1)
        ctypes.windll.user32.GetWindowTextW(hwnd, buff, length + 1)
        return buff.value
1181365
function writeAsmjs(wasmModule, output, callback) {
  output.write(Buffer.from(wasmModule.emitAsmjs()), end);

  function end(err) {
    if (err || output === process.stdout) return callback(err);
    output.end(callback);
  }
}
210327
def msvd(m):
  
  u, s, vdgr = np.linalg.svd(m)
  order = s.argsort()
  # reverse the n first columns of u
  s = s[order]
  u= u[:,order]
  vdgr = vdgr[order]
  return u, s, vdgr.conj().T
60793
def writerow(self, cells):
        
        if self.default_sheet is None:
            self.default_sheet = self.new_sheet()
        self.default_sheet.writerow(cells)
430547
def write(self, data, *, mode=None, buffering=-1, encoding=None, newline=None):
        '''  '''
        if mode is None:
            mode = 'w' if isinstance(data, str) else 'wb'
        with self.open(mode=mode, buffering=buffering, encoding=encoding, newline=newline) as fp:
            return fp.write(data)
1320987
function (a, bInt, c) {
            if (isFinite(a * bInt)) {
                return saturated.saturate(a * bInt + c);
            } else {
                var result = c;

                for (var i = 0; i < bInt; i++) {
                    result += a;
                }

                return saturated.saturate(result);
            }
        }
289093
def write_outro (self):
        """"""
        self.stoptime = time.time()
        duration = self.stoptime - self.starttime
        self.comment(_("Stopped checking at %(time)s (%(duration)s)") %
             {"time": strformat.strtime(self.stoptime),
              "duration": strformat.strduration_long(duration)})
29839
def xview(self, *args):
        """"""
        self.after_idle(self.__updateWnds)
        ttk.Treeview.xview(self, *args)
482816
function toPairs (v) {
  if (ktypes.isArray(v)) {
    var pairs = []
    var i
    for (i = 0; i < v.length; i++) {
      pairs.push([i, v[i]])
    }
    return pairs
  }
  return _.toPairs(v)
}
441288
function feeling(mood) {
  const rnum = Math.floor(Math.random() * 10);
  const adjectives = wordLib.getWords(mood + "_feeling_adjs");
  //var degrees = getWords("neutral_degrees") + getWords(mood + "_degrees");
  const degrees = wordLib.getWords("neutral_degrees").concat(wordLib.getWords(mood + "_degrees"));

  const adj = nu.ingToEd(nu.chooseFrom(adjectives));
  const degree = nu.chooseFrom(degrees);
  let ending;
  if (mood === "good") {
    ending = wordLib.positiveIntensify();
  } else {
    ending = wordLib.consolation();
  }
  const exciting = (mood === "GOOD" && rnum <= 5);
  const are = nu.chooseFrom([" are", "'re"]);
  const sentence = `You${are} feeling ${degree} ${adj}${ending}`;
  return nu.sentenceCase(sentence, exciting);
}
909807
function () {
            var me = this;
            if (me._readNotWriting) {
                me._readNotWriting = false;
                me._readWriteToOutput().then(undefined, function (reason) {
                    me._readReject(reason);
                });
            }
        }
603968
def pWMWrite(fileHandle, pWM, alphabetSize=4):
    
    for i in xrange(0, alphabetSize):
        fileHandle.write("%s\n" % ' '.join([ str(pWM[j][i]) for j in xrange(0, len(pWM)) ]))
680465
def A(self):
        
        """
        if self._A is None:
            self._A = self.W > 0
        return self._A