<commit_before>- locals = {:portal_clazz_id => portal_clazz_id, :domain_id => domain_id, :grade_span => grade_span, :name => "", :hide_print => true}
- locals[:hide_drafts_checkbox] = (!APP_CONFIG[:allow_drafts_in_assignments])

= render :partial => 'resource_pages/search_form', :locals => locals

.tiny To add assignments to your class, drag the resource pages below to your class assignments list above. If there are no resource pages listed below, select and/or enter some search options in the form above.
= observe_form 'resource_page_search_form', :url => list_filter_resource_page_url, :frequency => 1, :before => "PendingStart();", :complete=> "PendingEnd();", :update => {:success => 'offering_list'}

.action_menu
  .progress_container
    #search_spinner{:style=>'display: none;'}
      = image_tag "ajax-loader.gif"
      ( searching )

#offering_list.drop_target
  - locals[:paginate] = true
  - locals[:resource_pages] = ResourcePage.search_list(locals)
  = render :partial => 'resource_pages/runnable_list', :locals => locals<commit_msg>add user: initial list includes private resource pages<commit_after>- locals = {:portal_clazz_id => portal_clazz_id, :domain_id => domain_id, :grade_span => grade_span, :name => "", :hide_print => true}
- locals[:hide_drafts_checkbox] = (!APP_CONFIG[:allow_drafts_in_assignments])

= render :partial => 'resource_pages/search_form', :locals => locals

.tiny To add assignments to your class, drag the resource pages below to your class assignments list above. If there are no resource pages listed below, select and/or enter some search options in the form above.
= observe_form 'resource_page_search_form', :url => list_filter_resource_page_url, :frequency => 1, :before => "PendingStart();", :complete=> "PendingEnd();", :update => {:success => 'offering_list'}

.action_menu
  .progress_container
    #search_spinner{:style=>'display: none;'}
      = image_tag "ajax-loader.gif"
      ( searching )

#offering_list.drop_target
  - locals[:paginate] = true
  - locals[:user] = current_user
  - locals[:resource_pages] = ResourcePage.search_list(locals)
  = render :partial => 'resource_pages/runnable_list', :locals => locals
{'fraction_non_alphanumeric': 0.13211009174311927, 'fraction_numerical': 0.0009174311926605505, 'mean_word_length': 5.71076923076923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, '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': '4668020', 'n_tokens_mistral': 664, 'n_tokens_neox': 659, 'n_words': 176}