a359e0919ec053cdf95f731f67ebfb9e1a7bead3,appengine/standard/ndb/overview/main.py,MainPage,get,#MainPage#,46

Before Change


          <form>Guestbook name: <input value="%s" name="guestbook_name">
          <input type="submit" value="switch"></form>
        </body>
      </html> % (urllib.urlencode({"guestbook_name": guestbook_name}),
                    cgi.escape(guestbook_name)))


// [START submit]

After Change


            greeting_blockquotes.append(
                "<blockquote>%s</blockquote>" % cgi.escape(greeting.content))

        self.response.out.write(textwrap.dedent(\
            <html>
              <body>
                {blockquotes}
                <form action="/sign?{sign}" method="post">
                  <div>
                    <textarea name="content" rows="3" cols="60">
                    </textarea>
                  </div>
                  <div>
                    <input type="submit" value="Sign Guestbook">
                  </div>
                </form>
                <hr>
                <form>
                  Guestbook name:
                    <input value="{guestbook_name}" name="guestbook_name">
                    <input type="submit" value="switch">
                </form>
              </body>
            </html>).format(
                blockquotes="\n".join(greeting_blockquotes),
                sign=urllib.urlencode({"guestbook_name": guestbook_name}),
                guestbook_name=cgi.escape(guestbook_name)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: a359e0919ec053cdf95f731f67ebfb9e1a7bead3
Time: 2017-06-05
Author: dan.barella@gmail.com
File Name: appengine/standard/ndb/overview/main.py
Class Name: MainPage
Method Name: get


Project Name: pantsbuild/pants
Commit Name: 34d8390be8ea2db405ef8051430c917ca13dfbe5
Time: 2020-05-16
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/lint/pylint/rules_integration_test.py
Class Name: PylintIntegrationTest
Method Name: test_includes_direct_dependencies


Project Name: pantsbuild/pants
Commit Name: 64a8085e2fa415f60c944f437252a50efd1c9b36
Time: 2015-02-05
Author: dturner@twopensource.com
File Name: src/python/pants/backend/jvm/targets/jar_dependency.py
Class Name: JarDependency
Method Name: with_artifact