8383b09c77027f09a7779940a142680b65282de0,qpdfview.py,PDFWidget,__init__,#PDFWidget#,30

Before Change


class PDFWidget(QWidget):

    def __init__(self, filename, dpi=72):
        super().__init__()

        self.filename = filename

        // Using Poppler from gi.repository:

After Change



        // Poppler page numbering starts from 0 but that"s not what
        // most PDF users will expect, so subtract:
        if pageno > 0:
            pageno -= 1
        self.page = self.document.page(pageno)

        pagesize = self.page.pageSize()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: akkana/scripts
Commit Name: 8383b09c77027f09a7779940a142680b65282de0
Time: 2018-04-26
Author: akkana@shallowsky.com
File Name: qpdfview.py
Class Name: PDFWidget
Method Name: __init__


Project Name: okfn-brasil/serenata-de-amor
Commit Name: e340b18584a38ff35d2f5f0fd9faa30d2c56a9a7
Time: 2016-12-14
Author: iirineu@gmail.com
File Name: rosie/main.py
Class Name:
Method Name:


Project Name: Alexander-H-Liu/End-to-end-ASR-Pytorch
Commit Name: 1b45e3a304f9d2479a836b82d889f0e19183faf6
Time: 2019-10-13
Author: windqaq@gmail.com
File Name: src/plugin.py
Class Name: EmbeddingRegularizer
Method Name: __init__


Project Name: GPflow/GPflow
Commit Name: f31a914bd38b00affc978d7ef1834e1303af5b4c
Time: 2018-09-20
Author: art.art.v@gmail.com
File Name: gpflow/models/model.py
Class Name: GPModel
Method Name: __init__