<commit_before>import { Components, registerComponent, getSetting } from 'meteor/vulcan:core';
import React from 'react';

function cloudinaryPropsToStr(props) {
  let sb = [];
  for(let k in props)
    sb.push(k+'_'+props[k]);
  return sb.join(",");
}

const CloudinaryImage = (props, context) => {
  const cloudinaryCloudName = getSetting('cloudinary.cloudName', 'lesswrong-2-0')
  
  let cloudinaryProps = {
    c: "fill",
    dpr: "auto",
    g: "custom",
    q: "auto",
  };
  let imageStyle = {};
  
  if(props.width) {
    cloudinaryProps.w = props.width;
    imageStyle.width = props.width+"px";
  }
  if(props.height) {
    cloudinaryProps.h = props.height;
    imageStyle.height = props.height+"px";
  }<commit_msg>Cloudinary image widget: fix sizing of images in Sequences grids<commit_after>import { Components, registerComponent, getSetting } from 'meteor/vulcan:core';
import React from 'react';

function cloudinaryPropsToStr(props) {
  let sb = [];
  for(let k in props)
    sb.push(k+'_'+props[k]);
  return sb.join(",");
}

const CloudinaryImage = (props, context) => {
  const cloudinaryCloudName = getSetting('cloudinary.cloudName', 'lesswrong-2-0')
  
  let cloudinaryProps = {
    c: "fill",
    dpr: "auto",
    g: "custom",
    q: "auto",
  };
  let imageStyle = {};
  
  if(props.width) {
    cloudinaryProps.w = props.width;
  }
  if(props.height) {
    cloudinaryProps.h = props.height;
  }
{'fraction_non_alphanumeric': 0.15455187014820043, 'fraction_numerical': 0.0028228652081863093, 'mean_word_length': 3.6953642384105962, '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': '370217', 'n_tokens_mistral': 497, 'n_tokens_neox': 492, 'n_words': 107}