<commit_before># Copyright:: Copyright (c) 2012, 2014 Megam Systems
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

module Megam
  class Components < Megam::ServerAPI
    def initialize(email=nil, api_key=nil)
      @id = nil
      @name =nil
      @tosca_type = nil
      @inputs = []
      @outputs = []      
      @artifacts = {}
      @artifact_type = nil
      @content = nil
      @artifact_requirements = []
      @related_components = nil
      @operations = []
      @status = nil
      @created_at = nil

      super(email, api_key)
    end

    def components
      self
    end

    def id(arg=nil)
      if arg != nil
        @id = arg
      else
      @id
      end
    end

    def name(arg=nil)
      if arg != nil
        @name = arg
      else
      @name
      end
    end

    def tosca_type(arg=nil)
      if arg != nil
        @tosca_type = arg
      else
      @tosca_type
      end
    end
    
    def inputs(arg=[])
      if arg != []
        @inputs = arg
      else
      @inputs
      end
    end
    
    def outputs(arg=[])
      if arg != []
        @outputs = arg
      else
      @outputs
      end
    end

    def artifacts(arg=nil)
      if arg != nil
        @artifacts = arg
      else
      @artifacts
      end
    end

    def artifact_type(arg=nil)
      if arg != nil
        @artifact_type = arg
      else
      @artifact_type
      end
    end

    def content(arg=nil)
      if arg != nil
        @content = arg
      else
      @content
      end
    end

    def artifact_requirements(arg=[])
      if arg != []
        @artifact_requirements = arg
      else
      @artifact_requirements
      end
    end

    def related_components(arg=nil)
      if arg != nil
        @related_components = arg
      else
      @related_components
      end
    end

    def operations(arg=[])
      if arg != []
        @operations = arg
      else
      @operations
      end
    end
    
     def status(arg=nil)
      if arg != nil
        @status = arg
      else
      @status
      end
    end

    def created_at(arg=nil)<commit_msg>change related components string to array<commit_after># Copyright:: Copyright (c) 2012, 2014 Megam Systems
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

module Megam
  class Components < Megam::ServerAPI
    def initialize(email=nil, api_key=nil)
      @id = nil
      @name =nil
      @tosca_type = nil
      @inputs = []
      @outputs = []      
      @artifacts = {}
      @artifact_type = nil
      @content = nil
      @artifact_requirements = []
      @related_components = []
      @operations = []
      @status = nil
      @created_at = nil

      super(email, api_key)
    end

    def components
      self
    end

    def id(arg=nil)
      if arg != nil
        @id = arg
      else
      @id
      end
    end

    def name(arg=nil)
      if arg != nil
        @name = arg
      else
      @name
      end
    end

    def tosca_type(arg=nil)
      if arg != nil
        @tosca_type = arg
      else
      @tosca_type
      end
    end
    
    def inputs(arg=[])
      if arg != []
        @inputs = arg
      else
      @inputs
      end
    end
    
    def outputs(arg=[])
      if arg != []
        @outputs = arg
      else
      @outputs
      end
    end

    def artifacts(arg=nil)
      if arg != nil
        @artifacts = arg
      else
      @artifacts
      end
    end

    def artifact_type(arg=nil)
      if arg != nil
        @artifact_type = arg
      else
      @artifact_type
      end
    end

    def content(arg=nil)
      if arg != nil
        @content = arg
      else
      @content
      end
    end

    def artifact_requirements(arg=[])
      if arg != []
        @artifact_requirements = arg
      else
      @artifact_requirements
      end
    end

    def related_components(arg=[])
      if arg != []
        @related_components = arg
      else
      @related_components
      end
    end

    def operations(arg=[])
      if arg != []
        @operations = arg
      else
      @operations
      end
    end
    
     def status(arg=nil)
      if arg != nil
        @status = arg
      else
      @status
      end
    end

    def created_at(arg=nil)
{'fraction_non_alphanumeric': 0.08205128205128205, 'fraction_numerical': 0.005318138651471985, 'mean_word_length': 1.7341640706126686, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6932200', 'n_tokens_mistral': 1597, 'n_tokens_neox': 1539, 'n_words': 516}