<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (C) 2011  JTalks.org Team
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.
    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.
    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

-->
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:zksp="http://www.zkoss.org/2008/zkspring/core"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  http://www.zkoss.org/2008/zkspring/core http://www.zkoss.org/2008/zkspring/core/zkspring-core.xsd">
 
  <zksp:zk-config />
  
  <bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">
    <property name="scopes">
      <map>
        <entry key="desktop">
          <bean class="org.zkoss.spring.web.context.request.DesktopScope"/>
        </entry>
      </map>
    </property>
  </bean>

  <bean id="windowManager" class="org.jtalks.poulpe.web.controller.WindowManagerImpl" scope="desktop"/>
  <bean id="dialogManager" class="org.jtalks.poulpe.web.controller.DialogManagerImpl" scope="singleton"/>
  <bean id="jcommuneHttpNotifier" class="org.jtalks.poulpe.service.JcommuneHttpNotifier" scope="singleton"/>
  <bean id="selectedEntity" scope="desktop" class="org.jtalks.poulpe.web.controller.SelectedEntity"/>

  <bean id="forumStructureVm" class="org.jtalks.poulpe.web.controller.section.ForumStructureVm" scope="desktop">
    <constructor-arg index="0" ref="forumStructureService"/>
    <constructor-arg index="1" ref="windowManager"/>
    <constructor-arg index="2" ref="selectedEntity"/>
  </bean>
  <bean id="userPersonalPermissionsVm" class="org.jtalks.poulpe.web.controller.users.UserPersonalPermissionsVm" scope="desktop">
    <constructor-arg index="0" ref="groupService"/>
    <constructor-arg index="1" ref="selectedEntity"/>
    <constructor-arg index="2" ref="windowManager"/>
  </bean>
  <bean id="editGroupsForPersonalPermissionVm" scope="prototype"
        class="org.jtalks.poulpe.web.controller.users.EditGroupsForPersonalPermissionVm">
    <constructor-arg ref="windowManager"/>
    <constructor-arg ref="groupService"/>
    <constructor-arg ref="selectedEntity"/>
  </bean> 
  <bean id="deleteBranchDialogVm"  scope="desktop"
        class="org.jtalks.poulpe.web.controller.section.dialogs.DeleteBranchDialogVm">
    <constructor-arg index="0" ref="forumStructureVm"/>
    <constructor-arg index="1" ref="forumStructureService"/><commit_msg>Removing JcommuneNotifier from web-view context<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (C) 2011  JTalks.org Team
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.
    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.
    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

-->
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:zksp="http://www.zkoss.org/2008/zkspring/core"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  http://www.zkoss.org/2008/zkspring/core http://www.zkoss.org/2008/zkspring/core/zkspring-core.xsd">
 
  <zksp:zk-config />
  
  <bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">
    <property name="scopes">
      <map>
        <entry key="desktop">
          <bean class="org.zkoss.spring.web.context.request.DesktopScope"/>
        </entry>
      </map>
    </property>
  </bean>

  <bean id="windowManager" class="org.jtalks.poulpe.web.controller.WindowManagerImpl" scope="desktop"/>
  <bean id="dialogManager" class="org.jtalks.poulpe.web.controller.DialogManagerImpl" scope="singleton"/>

  <bean id="selectedEntity" scope="desktop" class="org.jtalks.poulpe.web.controller.SelectedEntity"/>

  <bean id="forumStructureVm" class="org.jtalks.poulpe.web.controller.section.ForumStructureVm" scope="desktop">
    <constructor-arg index="0" ref="forumStructureService"/>
    <constructor-arg index="1" ref="windowManager"/>
    <constructor-arg index="2" ref="selectedEntity"/>
  </bean>
  <bean id="userPersonalPermissionsVm" class="org.jtalks.poulpe.web.controller.users.UserPersonalPermissionsVm" scope="desktop">
    <constructor-arg index="0" ref="groupService"/>
    <constructor-arg index="1" ref="selectedEntity"/>
    <constructor-arg index="2" ref="windowManager"/>
  </bean>
  <bean id="editGroupsForPersonalPermissionVm" scope="prototype"
        class="org.jtalks.poulpe.web.controller.users.EditGroupsForPersonalPermissionVm">
    <constructor-arg ref="windowManager"/>
    <constructor-arg ref="groupService"/>
    <constructor-arg ref="selectedEntity"/>
  </bean> 
  <bean id="deleteBranchDialogVm"  scope="desktop"
        class="org.jtalks.poulpe.web.controller.section.dialogs.DeleteBranchDialogVm">
    <constructor-arg index="0" ref="forumStructureVm"/>
    <constructor-arg index="1" ref="forumStructureService"/>
{'fraction_non_alphanumeric': 0.13308657869327326, 'fraction_numerical': 0.015127132281943997, 'mean_word_length': 4.330188679245283, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 2, '>': 72, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, 'xml': 8}, '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': '5018268', 'n_tokens_mistral': 1928, 'n_tokens_neox': 1858, 'n_words': 421}