<commit_before>import * as D from "../framework";

import Dropbox = require("dropbox");

export class DropboxSource extends D.DestinationSource {

  async sourcedDestinations() {

    let dest = new D.Destination();
    dest.name = "dropbox";
    dest.label = "Dropbox";
    dest.description = "Send download results directly to your Dropbox.";
    dest.params = [
      {
        name: "dropbox_access_token",
        label: "Dropbox Access Token",
        required: true,
        description: "An OAuth access token for the Dropbox API, created at https://www.dropbox.com/developers/apps."
      }
    ];

    dest.action = async function(request) {

      let dropboxClient = dropboxClientFromRequest(request);

      if (request.type != "query") {
        throw "Only query actions are supported.";<commit_msg>dropbox is query only<commit_after>import * as D from "../framework";

import Dropbox = require("dropbox");

export class DropboxSource extends D.DestinationSource {

  async sourcedDestinations() {

    let dest = new D.Destination();
    dest.name = "dropbox";
    dest.label = "Dropbox";
    dest.description = "Send download results directly to your Dropbox.";
    dest.supportedActionTypes = ["query"];
    dest.params = [
      {
        name: "dropbox_access_token",
        label: "Dropbox Access Token",
        required: true,
        description: "An OAuth access token for the Dropbox API, created at https://www.dropbox.com/developers/apps."
      }
    ];

    dest.action = async function(request) {

      let dropboxClient = dropboxClientFromRequest(request);

      if (request.type != "query") {
        throw "Only query actions are supported.";
{'fraction_non_alphanumeric': 0.11375818939845146, 'fraction_numerical': 0.0, 'mean_word_length': 2.981042654028436, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1321739', 'n_tokens_mistral': 466, 'n_tokens_neox': 457, 'n_words': 138}