<commit_before>/*
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

syntax = "proto3";

package idb;

// The idb companion service definition.
service CompanionService {
  rpc accessibility_info (AccessibilityInfoRequest) returns (AccessibilityInfoResponse) {}
  rpc add_media (stream AddMediaRequest) returns (AddMediaResponse) {}
  rpc approve (ApproveRequest) returns (ApproveResponse) {}
  rpc clear_keychain (ClearKeychainRequest) returns (ClearKeychainResponse) {}
  rpc connect (ConnectRequest) returns (ConnectResponse) {}
  rpc contacts_update (ContactsUpdateRequest) returns (ContactsUpdateResponse) {}
  rpc debugserver (stream DebugServerRequest) returns (stream DebugServerResponse) {}
  rpc describe (TargetDescriptionRequest) returns (TargetDescriptionResponse) {}
  rpc focus (FocusRequest) returns (FocusResponse) {}
  rpc hid (stream HIDEvent) returns (HIDResponse) {}
  rpc install (stream InstallRequest) returns (stream InstallResponse) {}
  rpc instruments_run (stream InstrumentsRunRequest) returns (stream InstrumentsRunResponse) {}
  rpc launch (stream LaunchRequest) returns (stream LaunchResponse) {}
  rpc list_apps (ListAppsRequest) returns (ListAppsResponse) {}
  rpc log (LogRequest) returns (stream LogResponse) {}
  rpc open_url (OpenUrlRequest) returns (OpenUrlRequest) {}
  rpc record (stream RecordRequest) returns (stream RecordResponse) {}
  rpc screenshot (ScreenshotRequest) returns (ScreenshotResponse) {}
  rpc set_location (SetLocationRequest) returns (SetLocationResponse) {}
  rpc terminate (TerminateRequest) returns (TerminateResponse) {}
  rpc uninstall (UninstallRequest) returns (UninstallResponse) {}
  rpc video_stream (stream VideoStreamRequest) returns (stream VideoStreamResponse) {}
  // Crash Operations
  rpc crash_delete (CrashLogQuery) returns (CrashLogResponse) {}<commit_msg>Group methods by functionality (again)<commit_after>/*
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

syntax = "proto3";

package idb;

// The idb companion service definition.
service CompanionService {
  // Management
  rpc connect (ConnectRequest) returns (ConnectResponse) {}
  rpc debugserver (stream DebugServerRequest) returns (stream DebugServerResponse) {}
  rpc describe (TargetDescriptionRequest) returns (TargetDescriptionResponse) {}
  rpc install (stream InstallRequest) returns (stream InstallResponse) {}
  rpc instruments_run (stream InstrumentsRunRequest) returns (stream InstrumentsRunResponse) {}
  rpc log (LogRequest) returns (stream LogResponse) {}
  // Interaction
  rpc accessibility_info (AccessibilityInfoRequest) returns (AccessibilityInfoResponse) {}
  rpc focus (FocusRequest) returns (FocusResponse) {}
  rpc hid (stream HIDEvent) returns (HIDResponse) {}
  rpc open_url (OpenUrlRequest) returns (OpenUrlRequest) {}
  rpc set_location (SetLocationRequest) returns (SetLocationResponse) {}
  // Settings
  rpc approve (ApproveRequest) returns (ApproveResponse) {}
  rpc clear_keychain (ClearKeychainRequest) returns (ClearKeychainResponse) {}
  rpc contacts_update (ContactsUpdateRequest) returns (ContactsUpdateResponse) {}
  // App
  rpc launch (stream LaunchRequest) returns (stream LaunchResponse) {}
  rpc list_apps (ListAppsRequest) returns (ListAppsResponse) {}
  rpc terminate (TerminateRequest) returns (TerminateResponse) {}
  rpc uninstall (UninstallRequest) returns (UninstallResponse) {}
  // Video/Audio
  rpc add_media (stream AddMediaRequest) returns (AddMediaResponse) {}
  rpc record (stream RecordRequest) returns (stream RecordResponse) {}
  rpc screenshot (ScreenshotRequest) returns (ScreenshotResponse) {}
  rpc video_stream (stream VideoStreamRequest) returns (stream VideoStreamResponse) {}
  // Crash Operations
  rpc crash_delete (CrashLogQuery) returns (CrashLogResponse) {}
{'fraction_non_alphanumeric': 0.08531157270029674, 'fraction_numerical': 0.0004945598417408506, 'mean_word_length': 6.022569444444445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2681565', 'n_tokens_mistral': 1094, 'n_tokens_neox': 1019, 'n_words': 355}