<commit_before>package cn.edu.bnuz.bell.here

import cn.edu.bnuz.bell.here.dto.TimeslotAttendanceStats
import cn.edu.bnuz.bell.http.BadRequestException
import cn.edu.bnuz.bell.http.ForbiddenException
import cn.edu.bnuz.bell.http.NotFoundException
import cn.edu.bnuz.bell.operation.TaskSchedule
import cn.edu.bnuz.bell.operation.TaskStudent
import cn.edu.bnuz.bell.organization.Student
import cn.edu.bnuz.bell.organization.Teacher
import grails.gorm.transactions.Transactional

@Transactional
class RollcallService {
    StudentLeavePublicService studentLeavePublicService
    FreeListenPublicService freeListenPublicService

    def list(TeacherTimeslotCommand cmd) {
        println(cmd as Map)
        def taskScheduleIds = TaskSchedule.executeQuery '''
select taskSchedule.id
from CourseClass courseClass
join courseClass.tasks task
join task.schedules taskSchedule
where courseClass.term.id = :termId<commit_msg>Remove println (#64)<commit_after>package cn.edu.bnuz.bell.here

import cn.edu.bnuz.bell.here.dto.TimeslotAttendanceStats
import cn.edu.bnuz.bell.http.BadRequestException
import cn.edu.bnuz.bell.http.ForbiddenException
import cn.edu.bnuz.bell.http.NotFoundException
import cn.edu.bnuz.bell.operation.TaskSchedule
import cn.edu.bnuz.bell.operation.TaskStudent
import cn.edu.bnuz.bell.organization.Student
import cn.edu.bnuz.bell.organization.Teacher
import grails.gorm.transactions.Transactional

@Transactional
class RollcallService {
    StudentLeavePublicService studentLeavePublicService
    FreeListenPublicService freeListenPublicService

    def list(TeacherTimeslotCommand cmd) {
        def taskScheduleIds = TaskSchedule.executeQuery '''
select taskSchedule.id
from CourseClass courseClass
join courseClass.tasks task
join task.schedules taskSchedule
where courseClass.term.id = :termId
{'fraction_non_alphanumeric': 0.07785753727222529, 'fraction_numerical': 0.0011043622308117063, 'mean_word_length': 5.711111111111111, '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': '3875347', 'n_tokens_mistral': 557, 'n_tokens_neox': 564, 'n_words': 98}