<commit_before>var ncloud = require('../../../lib/');

(function(){
  var client = ncloud.createClient({
    oauth_consumer_key:'%YOUR_CONSUMER_KEY%',
    oauth_consumer_secret:'%YOUR_CONSUMER_SECRET%'
  });

  client.compute.findPublicImages( function( error, response ){
    if( error ){
      console.log( error );
    }else {
      // console.log(response);

      // response example =>
      // [ { vmImageCode: 'SPSW0LINUX000043',
      //     productName: 'centos-5.11-64',
      //     productType: { code: 'LINUX', codeName: 'Linux' },
      //     productDescription: 'CentOS 5.11(64bit)',
      //     infraResourceType: { code: 'SW', codeName: 'Software' },
      //     cpuCount: 0,
      //     memorySize: 0,
      //     baseBlockStorageSize: 0,
      //     platformType: { code: 'LNX64', codeName: 'Linux 64 Bit' },
      //     osInformation: 'CentOS 5.11 (64-bit)',
      //     addBlockStroageSize: 0 },
      //          /** more items **/
      // ]
    }
  });

  client.compute.findFlavors( { vmImageId: 'SPSW0LINUX000031' }, function( error, response ){
    if( error ){<commit_msg>findImages api split off findPublicImages and findPrivateImages.<commit_after>var ncloud = require('../../../lib/');

(function(){
  var client = ncloud.createClient({
    oauth_consumer_key:'%YOUR_CONSUMER_KEY%',
    oauth_consumer_secret:'%YOUR_CONSUMER_SECRET%'
  });

  client.compute.findPublicImages( function( error, response ){
    if( error ){
      console.log( error );
    }else {
      console.log(response);

      // response example =>
      // [ { vmImageCode: 'SPSW0LINUX000043',
      //     productName: 'centos-5.11-64',
      //     productType: { code: 'LINUX', codeName: 'Linux' },
      //     productDescription: 'CentOS 5.11(64bit)',
      //     infraResourceType: { code: 'SW', codeName: 'Software' },
      //     cpuCount: 0,
      //     memorySize: 0,
      //     baseBlockStorageSize: 0,
      //     platformType: { code: 'LNX64', codeName: 'Linux 64 Bit' },
      //     osInformation: 'CentOS 5.11 (64-bit)',
      //     addBlockStroageSize: 0 },
      //          /** more items **/
      // ]
    }
  });

  client.compute.findFlavors( { vmImageId: 'SPSW0LINUX000031' }, function( error, response ){
    if( error ){
{'fraction_non_alphanumeric': 0.16725507502206532, 'fraction_numerical': 0.03265666372462489, 'mean_word_length': 2.2618705035971223, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '7198794', 'n_tokens_mistral': 815, 'n_tokens_neox': 744, 'n_words': 140}