This document provides guidelines for maintaining high-quality Python code. These rules MUST be followed by all AI coding agents and contributors.
All code you write MUST be fully optimized.
"Fully optimized" includes:
| -- AppleScript -- | |
| -- This example is meant as a simple starting point to show how to get the information in the simplest available way. | |
| -- Keep in mind that when asking for a `return` after another, only the first one will be output. | |
| -- This method is as good as its JXA counterpart. | |
| -- Webkit variants include "Safari", "Webkit", "Orion". | |
| -- Specific editions are valid, including "Safari Technology Preview". | |
| -- "Safari" Example: | |
| tell application "Safari" to return name of front document |
| { | |
| "folders": | |
| [ | |
| { | |
| "path": "Leanpub/sublime-productivity", | |
| "folder_exclude_patterns": ["epub_images", "convert_html", "preview", "published"], | |
| "file_exclude_patterns": [".gitignore", "*.sublime*", "*Icon*"] | |
| }, | |
| { | |
| "path": "SublimeTextTips" |
| import junit.framework.Assert; | |
| import junit.framework.TestCase; | |
| import org.openqa.selenium.*; | |
| import org.openqa.selenium.remote.*; | |
| import java.net.URL; | |
| import java.util.concurrent.TimeUnit; | |
| public class TestingUploadSe2Sauce extends TestCase { | |
| private RemoteWebDriver driver; |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
| "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
| <title><%= title %></title> | |
| <script src="/js/drawing_methods.js"></script> | |
| </head> | |
| <body id="body" onload="<%= drawing_function %>"> |