Model: Fsoft-AIC/Codebert-docstring-inconsistency
Author: Fsoft-AIC
Pipeline: text-classification
Library: transformers
Tags: transformers, pytorch, jax, safetensors, roberta, text-classification, arxiv:2305.06156, code, en, license:mit, endpoints_compatible, region:us
Card metadata: language: code, en
task_categories: text-classification
tags: arxiv:2305.06156
license: mit
metrics: accuracy
widget: text: Sum two integers

def sum(a, b):
    return a + b
example_title: Simple toy, text: Look for methods that might be dynamically defined and define them for lookup.

def respond_to_missing?(name, include_private = false)
  if name == :to_ary || name == :empty?
    false
  else
    return true if mapping(name).present?
    mounting = all_mountings.find{ |mount| mount.respond_to?(name) }
    return false if mounting.nil?
  end
end
example_title: Ruby example, text: Method that adds a candidate to the party @param c the candidate that will be added to the party

public void addCandidate(Candidate c)
{
    this.votes += c.getVotes(); 
    candidates.add(c); 
}
example_title: Java example, text: we do not need Buffer pollyfill for now

function(str){
  var ret = new Array(str.length), len = str.length;
  while(len--) ret[len] = str.charCodeAt(len);
  return Uint8Array.from(ret);
}
example_title: JavaScript example
pipeline_tag: text-classification
Likes: 4 | All-time downloads: 828
Created: 2023-05-08 16:04:29