<commit_before># -*- encoding: utf-8 -*-
from psycopg2 import IntegrityError

from openerp.tests.common import TransactionCase
from openerp.tools import mute_logger


class GlobalTestOpenAcademyCourse(TransactionCase):
   '''Global test to openeacademy course model.
      Test create course and trigger constraints.'''

   # Method seudo- constructor of test setUp
   def setUp(self):
      #Define global variables to test methods
      super(GlobalTestOpenAcademyCourse,self).setUp()
      self.variable= 'hello world'
      self.course= self.env.ref('openacademy.course')

   #Method of class that don't is test.
   def create_course(self,course_name,course_description,
                     course_responsible_id):
      #create a course with parameters received
      course_id=self.course.create({
        'name':course_name,
        'description':course_description,
        'responsible_id': course_responsible_id,
      })
      return course_id

   # Method od test startswith 'def test_*(self):'

<commit_msg>course<commit_after># -*- encoding: utf-8 -*-
from psycopg2 import IntegrityError

from openerp.tests.common import TransactionCase
from openerp.tools import mute_logger


class GlobalTestOpenAcademyCourse(TransactionCase):
   '''Global test to openeacademy course model.
      Test create course and trigger constraints.'''

   # Method seudo- constructor of test setUp
   def setUp(self):
      #Define global variables to test methods
      super(GlobalTestOpenAcademyCourse,self).setUp()
      self.variable= 'hello world'
      self.course= self.env['openacademy.course']

   #Method of class that don't is test.
   def create_course(self,course_name,course_description,
                     course_responsible_id):
      #create a course with parameters received
      course_id=self.course.create({
        'name':course_name,
        'description':course_description,
        'responsible_id': course_responsible_id,
      })
      return course_id

   # Method od test startswith 'def test_*(self):'


{'fraction_non_alphanumeric': 0.08517971442639094, 'fraction_numerical': 0.0019694731659281144, 'mean_word_length': 3.4757709251101323, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2362843', 'n_tokens_mistral': 585, 'n_tokens_neox': 553, 'n_words': 156}