<commit_before>import React, { PropTypes } from 'react';
import { createNode } from 'rc-fringing';
import ComponentNode from './ComponentNode';
import Label from '../Geometry/Label';

class ComponentGroup extends React.Component {
  drawLabel() {
    const { coordinates } = this.props;
    if (!this.label) {
      this.label = createNode(
        () => ({
          getNodeData: () => ({
            id: 'ComponentGroup.Label',
            x: coordinates.x - 10,
            y: coordinates.y,
          }),
          canDrag: () => false,
          canSelect: () => false,
        })
      )(Label);
    }
    return this.label;
  }
  drawCreateLink() {
    const { coordinates } = this.props;
    if (!this.createLink) {
      this.createLink = createNode(
        () => ({
          getNodeData: () => ({<commit_msg>:art: update component label location<commit_after>import React, { PropTypes } from 'react';
import { createNode } from 'rc-fringing';
import ComponentNode from './ComponentNode';
import Label from '../Geometry/Label';

class ComponentGroup extends React.Component {
  drawLabel() {
    const { coordinates } = this.props;
    if (!this.label) {
      this.label = createNode(
        () => ({
          getNodeData: () => ({
            id: 'ComponentGroup.Label',
            x: coordinates.x,
            y: coordinates.y,
          }),
          canDrag: () => false,
          canSelect: () => false,
        })
      )(Label);
    }
    return this.label;
  }
  drawCreateLink() {
    const { coordinates } = this.props;
    if (!this.createLink) {
      this.createLink = createNode(
        () => ({
          getNodeData: () => ({
{'fraction_non_alphanumeric': 0.15009041591320071, 'fraction_numerical': 0.0012055455093429777, 'mean_word_length': 2.0855018587360594, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '4426236', 'n_tokens_mistral': 470, 'n_tokens_neox': 467, 'n_words': 109}