Return line coverage.

@return float
189139
public function reportLineCoverage()
    {
        $metrics = $this->getMetrics();

        foreach ($this->sourceFiles as $sourceFile) {
            /* @var $sourceFile \PhpCoveralls\Bundle\CoverallsBundle\Entity\SourceFile */
            $metrics->merge($sourceFile->getMetrics());
        }

        return $metrics->getLineCoverage();
    }
442822
def total_coverage
      return 0.0 if lines.size.zero?
      ran_lines.size.to_f / lines.size.to_f
    end
340002
public function currentLine()
    {
        return isset($this->lines[$this->lineNumber - 1])
            ? $this->lines[$this->lineNumber - 1]
            : false;
    }
170635
public static function getSingleLineTotalLength()
    {
        $total_length = 0;

        foreach(static::getUiColumns() as $column_name => $prop){
            $key = '_max' . ucfirst(strtolower($column_name)) . 'NameLength';
            $total_length += static::$$key + static::UI_SAFE_LENGTH;
        }

        //keep beauty when show less colums
        !defined('LINE_VERSIOIN_LENGTH') && define('LINE_VERSIOIN_LENGTH', 0);
        $total_length <= LINE_VERSIOIN_LENGTH && $total_length = LINE_VERSIOIN_LENGTH;

        return $total_length;
    }
1056340
private function bSlope() {
        return (float) (($this->sumXY($this->data) / $this->count) - 
        (($this->sum($this->xVector) / $this->count) * 
        ($this->sum($this->yVector) / $this->count))) / 
        $this->dispersion('x');
    }
944660
public function getLineFormatter()
    {
        $formatter = function($line) {
            $line['online'] = $this->isOnline($line['lastActivity']);
            $line['intervalLastLogin'] = $this->getIntervalLastLogin($line['lastLogin']);
            $line['lastActivity'] = '';
            return $line;
        };
        
        return $formatter;
    }
1172596
public function stop()
    {
        $data = fb_get_code_coverage($this->_config['cleanup']);
        fb_disable_code_coverage();

        $result = [];
        foreach ($data as $file => $coverage) {
            foreach ($coverage as $line => $value) {
                if ($line && $value !== -2) {
                    $result[$file][$line - 1] = $value === -1 ? 0 : $value;
                }
            }
        }
        return $result;
    }
671106
public function getMaxLineWidth()
    {
        $m = $this->getMargins();
        if ($this->getRTL()) {
            return ($this->getRemainingWidth() + $m['right']);
        }

        return ($this->getRemainingWidth() + $m['left']);
    }
182403
public function getAspectRatio() {
		if(isset($this->aspectRatio)) {
			return $this->aspectRatio;
		}
		$impliedAspect = $this->getCropWidth() / $this->getCropHeight();
		return $impliedAspect;
	}
988253
private function getLineWidth()
    {
        $line_width = isset($_ENV['COLUMNS']) && $_ENV['COLUMNS']
                    ? $_ENV['COLUMNS']
                    : 0;

        if ($line_width === 0) {
            $line_width = exec('tput cols');
        }

        return $line_width;
    }
411536
public function current()
    {
        $line = fgets($this->handle);
        $this->length = strlen($line);
        fseek($this->handle, $this->offset);

        return $line;
    }
792767
private function get() {

		// Get next input character and advance position in file
		if ($this->inPos < $this->inLength) {
			$c = $this->in[$this->inPos];
			++$this->inPos;
		}
		else {
			return self::EOF;
		}

		// Test for non-problematic characters
		if ($c === "\n" || $c === self::EOF || ord($c) >= self::ORD_space) {
			return $c;
		}

		// else
		// Make linefeeds into newlines
		
		if ($c === "\r") {
			return "\n";
		}

		// else
		// Consider space

		return ' ';
	}
315219
public function getSummary()
    {
        ob_start();

        printf(
            "%s in file '%s' line %s",
            $this->class,
            $this->getFile(),
            $this->getLine()
        );

        if ($this->wasHandled()) {
            echo ' Exception was handled';
        }

        return ob_get_clean();
    }
1360944
private function popLine() {
		$newLinePos = strpos($this->analysisResponse, "\n", $this->analysisOffset);
		
		if ($newLinePos === false) {
			throw new \Exception("End of file reached!");
		}
		
		$line = substr($this->analysisResponse, $this->analysisOffset, ($newLinePos - $this->analysisOffset));
        $this->analysisOffset = $newLinePos + 1;
		return $line;
	}
844853
public function getStatusLine() : string
    {
        return sprintf('HTTP/%s %s %s', self::HTTP_VERSION, $this->statusCode, self::getStatusText($this->statusCode));
    }
747270
public function getLinesOfCode() : float
    {
        return $this->classes
            ->map(function ($class) {
                return $class->getFileName();
            })
            ->pipe(function ($classes) {
                return app(Analyser::class)->countFiles($classes->all(), false)['lloc'];
            });
    }
1087735
def code_coverage
      return 0.0 if code_lines.size.zero?
      ran_lines.size.to_f / code_lines.size.to_f
    end