code stringlengths 3 6.57k |
|---|
file (relative to this directory) |
file (within the static path) |
file (.ico) |
files (such as style sheets) |
files (e.g. ".xhtml") |
size ('letter' or 'a4') |
size ('10pt', '11pt' or '12pt') |
file (relative to this directory) |
_get_testable_interactive_backends() |
importlib.util.find_spec(dep) |
os.environ.get("DISPLAY") |
format(", ".join(missing) |
os.environ.get('TF_BUILD') |
backend.startswith('wx') |
broken (github #16849) |
pytest.mark.xfail(reason='github #16849') |
backends.append(backend) |
timers (on other backends) |
key_press_event("q") |
len(sys.argv) |
rcParams.update(json.loads(sys.argv[1]) |
lower() |
TestCase() |
TestCase() |
backend.endswith("agg") |
backend.startswith(("gtk3", "web") |
plt.figure() |
is (essentially) |
gtk3 (as Gtk.main_level() |
assert_raises(ImportError) |
mpl.use("tkagg", force=True) |
check_alt_backend(alt_backend) |
mpl.use(alt_backend, force=True) |
plt.figure() |
type(fig.canvas) |
format(alt_backend) |
importlib.util.find_spec("cairocffi") |
check_alt_backend(backend[:-3] + "cairo") |
check_alt_backend("svg") |
mpl.use(backend, force=True) |
plt.subplots() |
type(fig.canvas) |
format(backend) |
ax.plot([0, 1], [2, 3]) |
fig.canvas.new_timer(1.) |
timer.add_callback(FigureCanvasBase.key_press_event, fig.canvas, "q") |
fig.canvas.mpl_connect("draw_event", lambda event: timer.start() |
fig.canvas.mpl_connect("close_event", print) |
io.BytesIO() |
fig.savefig(result, format='png') |
plt.show() |
plt.pause(0.5) |
io.BytesIO() |
fig.savefig(result_after, format='png') |
backend.startswith('qt5') |
assert_equal(result.getvalue() |
result_after.getvalue() |
pytest.mark.parametrize("backend", _get_testable_interactive_backends() |
pytest.mark.parametrize("toolbar", ["toolbar2", "toolmanager"]) |
pytest.mark.flaky(reruns=3) |
test_interactive_backend(backend, toolbar) |
pytest.skip("toolmanager is not implemented for macosx.") |
os.environ.get('TRAVIS') |
pytest.skip("toolbar2 for macosx is buggy on Travis.") |
json.dumps({"toolbar": toolbar}) |
proc.stdout.count("CloseEvent") |
pytest.mark.skipif(os.name == "nt", reason="Cannot send SIGINT on Windows.") |
test_webagg() |
pytest.importorskip("tornado") |
time.perf_counter() |
proc.poll() |
urllib.request.urlopen(url) |
time.perf_counter() |
pytest.fail("Failed to connect to the webagg server.") |
conn.close() |
proc.send_signal(signal.SIGINT) |
proc.wait(timeout=_test_timeout) |
staticmethod(QuotaControllerClient.common_folder_path) |
staticmethod(QuotaControllerClient.common_project_path) |
staticmethod(QuotaControllerClient.common_location_path) |
from_service_account_info(cls, info: dict, *args, **kwargs) |
info (dict) |
QuotaControllerClient.from_service_account_info.__func__(QuotaControllerAsyncClient, info, *args, **kwargs) |
from_service_account_file(cls, filename: str, *args, **kwargs) |
filename (str) |
QuotaControllerClient.from_service_account_file.__func__(QuotaControllerAsyncClient, filename, *args, **kwargs) |
transport(self) |
type(QuotaControllerClient) |
type(QuotaControllerClient) |
credentials (Optional[google.auth.credentials.Credentials]) |
transport (Union[str, ~.QuotaControllerTransport]) |
client_options (ClientOptions) |
provided.
(1) |
provided.
(2) |
request (:class:`google.cloud.servicecontrol_v1.types.AllocateQuotaRequest`) |
retry (google.api_core.retry.Retry) |
timeout (float) |
metadata (Sequence[Tuple[str, str]]) |
quota_controller.AllocateQuotaRequest(request) |
rpc(request, retry=retry, timeout=timeout, metadata=metadata,) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.