Copies the renderTo configuration from one {@link Options} object to
another. Null-safe.

@param from Object to copy from
@param to Object to copy to
344860
public void copyRenderTo(final Options from, final Options to) {
        if (to.getChartOptions() == null) {
            to.setChartOptions(new ChartOptions());
        }
        to.getChartOptions().setRenderTo(from.getChartOptions().getRenderTo());
    }
1302210
def _copy_or_render_source(ext, f, output_dir, render_callback,
                           skip_copy=False):
    
    # Either render a template or copy the source
    dirname = os.path.dirname(f)
    filename = os.path.basename(f)
    for pattern, target, subsd in ext.template_regexps:
        if re.match(pattern, filename):
            tgt = os.path.join(dirname, re.sub(
                pattern, target, filename))
            rw = MetaReaderWriter('.metadata_subsd')
            try:
                prev_subsd = rw.get_from_metadata_file(output_dir, f)
            except (FileNotFoundError, KeyError):
                prev_subsd = None

            render_callback(
                get_abspath(f),
                os.path.join(output_dir, tgt),
                subsd,
                only_update=ext.only_update,
                prev_subsd=prev_subsd,
                create_dest_dirs=True,
                logger=ext.logger)
            rw.save_to_metadata_file(output_dir, f, subsd)
            return tgt
    else:
        if not skip_copy:
            copy(f,
                 os.path.join(output_dir,
                              os.path.dirname(f)),
                 only_update=ext.only_update,
                 dest_is_dir=True,
                 create_dest_dirs=True,
                 logger=ext.logger)
        return f
335477
public SelectBuilder join(Class<?> from, Class<?> to) {
    currentTable = rootTable.join(from, to);

    return this;
  }
271506
function mergeData (to, from) {
	  var key, toVal, fromVal;
	  for (key in from) {
	    toVal = to[key];
	    fromVal = from[key];
	    if (!hasOwn(to, key)) {
	      set(to, key, fromVal);
	    } else if (isObject(toVal) && isObject(fromVal)) {
	      mergeData(toVal, fromVal);
	    }
	  }
	  return to
	}
1357473
public static void renderTo(String template, Writer writer, Map<String, Object> paras)
	{
		Template t = gt.getTemplate(template);
		t.binding(paras);
		t.renderTo(writer);
	}
623221
public static <T> T copyProps(T from, T to, Enumeration<String> props1,
			String props2) throws BeansException, IntrospectionException {
		if (props1 == null || from == null || to == null)
			return to;

		BeanWrapperImpl wFrom = new BeanWrapperImpl(from);
		BeanWrapperImpl wTo = new BeanWrapperImpl(to);

		HashSet<String> set = new HashSet<String>();
		while (props1.hasMoreElements()) {
			String prop = props1.nextElement();
			Matcher m = P_PROP_NAME.matcher(prop);
			if (m.find())
				set.add(m.group());
		}

		if (props2 != null)
			for (String prop : props2.split(", "))
				set.add(prop);

		for (String prop : getPropertyNames(from.getClass())) {
			if (!set.contains(prop))
				continue;
			wTo.setPropertyValue(prop, wFrom.getPropertyValue(prop));
		}

		return to;
	}
19186
function Move(from, to, element/*(optional)*/) {
  this.from = from
  this.to = to
  this.element = element
  this.type = 'Move'
}
1217271
function copy(from, to) {
      var name;
      for (name in from) {
        if (from.hasOwnProperty(name)) {
          to[name] = from[name];
        }
      }
    }
156787
function(from, to, styles, ctx){

            var x = from.x
                ,y = from.y
                ;

            ctx = ctx || this.ctx;

            ctx.beginPath();
            this.setStyle( styles, ctx );

            ctx.moveTo(x, y);

            x = to.x;
            y = to.y;

            ctx.lineTo(x, y);

            ctx.stroke();
            ctx.fill();
        }
1316111
@Override
    public IntList copy(final int from, final int to, final int step) {
        checkFromToIndex(from < to ? from : (to == -1 ? 0 : to), from < to ? to : from);

        return new IntList(N.copyOfRange(elementData, from, to, step));
    }
281746
public static <K, V> void putAll(Map<K, V> to, Map<? extends K, ? extends V> from) {
        if (to != null && from != null) {
            to.putAll(from);
        }
    }
881981
public void out2in(Object from, String from_out, Object... tos) {
        for (Object co : tos) {
            out2in(from, from_out, co, from_out);
        }
    }
1244362
public static void copyJoins(From<?, ?> from, From<?, ?> to) {
        for (Join<?, ?> j : from.getJoins()) {
            Join<?, ?> toJoin = to.join(j.getAttribute().getName(), j.getJoinType());
            toJoin.alias(getOrCreateAlias(j));

            copyJoins(j, toJoin);
        }

        for (Fetch<?, ?> f : from.getFetches()) {
            Fetch<?, ?> toFetch = to.fetch(f.getAttribute().getName());
            copyFetches(f, toFetch);

        }
    }
12128
function(from, to, callback) {
  fse.copy(from, to, function (err) {
    if (err) {
      callback(err);
    } else {
      callback(null);
    }
  });
}
622196
function renderObjFns(obj, transOpts) {
    if (!obj || _.isEmpty(obj)) { return null; }

    var renderedObj = {};
    var me = this;

    _.each(obj, function (val, name) {
        renderedObj[name] = _.isFunction(val) ?
            me.transformers.basic.transform(val, transOpts) :
            _.isObject(val) ?
                JSON.stringify(val) :
                val;
    });

    return renderedObj;
}
10967
@Override
	public T copy(T from) {
		if (CONCURRENT_ACCESS_CHECK) {
			enterExclusiveThread();
		}

		try {
			checkAvroInitialized();
			return avroData.deepCopy(runtimeSchema, from);
		}
		finally {
			if (CONCURRENT_ACCESS_CHECK) {
				exitExclusiveThread();
			}
		}
	}
721935
public static function move($from, $to)
    {
        return self::copy($from, $to) && self::delete($from);
    }