<commit_before>
/****************************************************************************
 LICENSE: CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0/
 This is an original driver by <NAME> <<EMAIL>>
 It is free to use in other projects for non-commercial purposes.  For a
 commercial license and consulting, please contact <EMAIL>
*****************************************************************************/

var util = require('util');
var async = require('async');
var EventEmitter = require('events').EventEmitter;
var ptp = require('../common/ptp-functions.js');
var fs = require('fs');

var driver = new EventEmitter();

driver.name = "Canon EOS";

function _logD() {
    if(arguments.length > 0) {
        arguments[0] = "PTP-CANON: " + arguments[0];
    }
    console.log.apply(console, arguments);
}

function _logE() {
    if(arguments.length > 0) {
        arguments[0] = "PTP-CANON: " + arguments[0];
    }
    console.log.apply(console, arguments);
}

function objCopy(sourceObj, destObj) {
    if(!destObj) destObj = {};
    if(!sourceObj) return destObj;
    for(var k in sourceObj) {
        if(sourceObj.hasOwnProperty(k)) destObj[k] = sourceObj[k];
    }
    return destObj;
}

driver.supportsNativeHDR = false;

driver.supportedCameras = {
    //'04a9:319a': { name: "Canon EOS 7D",   status: 'tested', supports: { shutter: true, aperture: true, iso: true, liveview: true, destination: true, focus: true, }, usb: 'Mini-B' },
    '04a9:319a': { name: "Canon EOS 7D",   status: 'tested', supports: { shutter: true, aperture: true, iso: true, liveview: true, destination: true, focus: true, }, usb: 'Mini-B' },
}

var properties = {
    'shutter': {
        name: 'shutter',
        category: 'exposure',
        setFunction: setProperty,
        getFunction: null,
        listFunction: null,
        code: 0xD102,
        typeCode: 6,
        ev: true,
        values: [
            { name: "30s",     ev: -11,         code:  0x0010 },
            { name: "25s",     ev: -10 - 2 / 3, code:  0x0013 },
            { name: "20s",     ev: -10 - 1 / 3, code:  0x0015 },
            { name: "15s",     ev: -10,         code:  0x0018 },
            { name: "13s",     ev: -9 - 2 / 3,  code:  0x001b },
            { name: "10s",     ev: -9 - 1 / 3,  code:  0x001d },<commit_msg>disable test 7d from new driver for now<commit_after>
/****************************************************************************
 LICENSE: CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0/
 This is an original driver by <NAME> <<EMAIL>>
 It is free to use in other projects for non-commercial purposes.  For a
 commercial license and consulting, please contact <EMAIL>
*****************************************************************************/

var util = require('util');
var async = require('async');
var EventEmitter = require('events').EventEmitter;
var ptp = require('../common/ptp-functions.js');
var fs = require('fs');

var driver = new EventEmitter();

driver.name = "Canon EOS";

function _logD() {
    if(arguments.length > 0) {
        arguments[0] = "PTP-CANON: " + arguments[0];
    }
    console.log.apply(console, arguments);
}

function _logE() {
    if(arguments.length > 0) {
        arguments[0] = "PTP-CANON: " + arguments[0];
    }
    console.log.apply(console, arguments);
}

function objCopy(sourceObj, destObj) {
    if(!destObj) destObj = {};
    if(!sourceObj) return destObj;
    for(var k in sourceObj) {
        if(sourceObj.hasOwnProperty(k)) destObj[k] = sourceObj[k];
    }
    return destObj;
}

driver.supportsNativeHDR = false;

driver.supportedCameras = {
    //'04a9:319a': { name: "Canon EOS 7D",   status: 'tested', supports: { shutter: true, aperture: true, iso: true, liveview: true, destination: true, focus: true, }, usb: 'Mini-B' },
    '04a9:0000': { name: "Canon EOS 7D",   status: 'tested', supports: { shutter: true, aperture: true, iso: true, liveview: true, destination: true, focus: true, }, usb: 'Mini-B' },
}

var properties = {
    'shutter': {
        name: 'shutter',
        category: 'exposure',
        setFunction: setProperty,
        getFunction: null,
        listFunction: null,
        code: 0xD102,
        typeCode: 6,
        ev: true,
        values: [
            { name: "30s",     ev: -11,         code:  0x0010 },
            { name: "25s",     ev: -10 - 2 / 3, code:  0x0013 },
            { name: "20s",     ev: -10 - 1 / 3, code:  0x0015 },
            { name: "15s",     ev: -10,         code:  0x0018 },
            { name: "13s",     ev: -9 - 2 / 3,  code:  0x001b },
            { name: "10s",     ev: -9 - 1 / 3,  code:  0x001d },
{'fraction_non_alphanumeric': 0.21385542168674698, 'fraction_numerical': 0.0378657487091222, 'mean_word_length': 2.76742301458671, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '96963', 'n_tokens_mistral': 1634, 'n_tokens_neox': 1491, 'n_words': 411}