<commit_before>// Provides the Reality Builder as a web widget.
//
// Copyright 2011-2012 <NAME> <<EMAIL>>
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations
// under the License.

/*jslint browser: true, maxerr: 50, maxlen: 79, nomen: true, sloppy: true */

/*global realityBuilderDojo, realityBuilderDojoUncompressed, acme, LazyLoad, $,
  _, define */

// Note that with Dojo 1.6, the baseUrl has to be set manually because it is
// not detected correctly:
//
//   <url:http://groups.google.com/group/dojo-interest/msg/65a43ee98f27cb6e>
window.host = '{{ host }}';
window.hostUrl = 'http://' + window.host;
window.baseUrl = window.hostUrl + '/javascripts/dojo-release-1.6.1/dojo/';
window.scriptUrl = window.baseUrl + 'dojo.js.uncompressed.js';

window.djConfig = {
    isDebug: true,
    locale: "en",
    debugContainerId: "firebugLite",
    baseUrl: window.baseUrl,
    scopeMap: [
        ["dojo", "realityBuilderDojo"],
        ["dijit", "realityBuilderDijit"],
        ["dojox", "realityBuilderDojox"]
    ],
    modulePaths: {
        "realityBuilder": window.hostUrl + "/javascripts/realityBuilder"
    }
};

define(['./vendor/sylvester.src-modified',
        './scripts/block_properties',
        './scripts/camera',
        './scripts/sensor',
        './scripts/layer_shadow',
        './scripts/construction_blocks',
        './scripts/construction_block',
        './scripts/block',
        './scripts/reality_builder',
        './scripts/util',
        window.scriptUrl,
        './vendor/lazyload/lazyload',
        './vendor/jquery',
        './vendor/underscore'], function (sylvester,
                                          blockProperties,
                                          camera,
                                          sensor,
                                          layerShadow,
                                          constructionBlocks,
                                          constructionBlock,
                                          block,
                                          realityBuilderFixme,
                                          util) {
    var settings,
        host = '{{ host }}',
        hostUrl = 'http://' + host,
        exportsFixme = {};

    // fixme: remove
    window.sylvester = sylvester;
    window.layerShadow = layerShadow;
    window.constructionBlocks = constructionBlocks;
    window.constructionBlock = constructionBlock;
    window.block = block;
    realityBuilder.util = util;

    // Puts jQuery and Underscore.js in Reality Builder namespace, to avoid
    // conflicts with jQuery, Underscore.js or other libraries included by the
    // page that includes the Reality Builder widget:
    realityBuilder.$ = $;
    $.noConflict(true);
    realityBuilder._ = window._.noConflict(); // fixme: use AMD version
                                              // instead

    // Instanciates the widget and merges its global members into the
    // "realityBuilder" name space.
    function setupWidget() {
        realityBuilderFixme.init(settings);<commit_msg>Remove global: layerShadow<commit_after>// Provides the Reality Builder as a web widget.
//
// Copyright 2011-2012 <NAME> <<EMAIL>>
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations
// under the License.

/*jslint browser: true, maxerr: 50, maxlen: 79, nomen: true, sloppy: true */

/*global realityBuilderDojo, realityBuilderDojoUncompressed, acme, LazyLoad, $,
  _, define */

// Note that with Dojo 1.6, the baseUrl has to be set manually because it is
// not detected correctly:
//
//   <url:http://groups.google.com/group/dojo-interest/msg/65a43ee98f27cb6e>
window.host = '{{ host }}';
window.hostUrl = 'http://' + window.host;
window.baseUrl = window.hostUrl + '/javascripts/dojo-release-1.6.1/dojo/';
window.scriptUrl = window.baseUrl + 'dojo.js.uncompressed.js';

window.djConfig = {
    isDebug: true,
    locale: "en",
    debugContainerId: "firebugLite",
    baseUrl: window.baseUrl,
    scopeMap: [
        ["dojo", "realityBuilderDojo"],
        ["dijit", "realityBuilderDijit"],
        ["dojox", "realityBuilderDojox"]
    ],
    modulePaths: {
        "realityBuilder": window.hostUrl + "/javascripts/realityBuilder"
    }
};

define(['./vendor/sylvester.src-modified',
        './scripts/block_properties',
        './scripts/camera',
        './scripts/sensor',
        './scripts/layer_shadow',
        './scripts/construction_blocks',
        './scripts/construction_block',
        './scripts/block',
        './scripts/reality_builder',
        './scripts/util',
        window.scriptUrl,
        './vendor/lazyload/lazyload',
        './vendor/jquery',
        './vendor/underscore'], function (sylvester,
                                          blockProperties,
                                          camera,
                                          sensor,
                                          layerShadow,
                                          constructionBlocks,
                                          constructionBlock,
                                          block,
                                          realityBuilderFixme,
                                          util) {
    var settings,
        host = '{{ host }}',
        hostUrl = 'http://' + host,
        exportsFixme = {};

    // fixme: remove
    window.sylvester = sylvester;
    window.constructionBlocks = constructionBlocks;
    window.constructionBlock = constructionBlock;
    window.block = block;
    realityBuilder.util = util;

    // Puts jQuery and Underscore.js in Reality Builder namespace, to avoid
    // conflicts with jQuery, Underscore.js or other libraries included by the
    // page that includes the Reality Builder widget:
    realityBuilder.$ = $;
    $.noConflict(true);
    realityBuilder._ = window._.noConflict(); // fixme: use AMD version
                                              // instead

    // Instanciates the widget and merges its global members into the
    // "realityBuilder" name space.
    function setupWidget() {
        realityBuilderFixme.init(settings);
{'fraction_non_alphanumeric': 0.1136848088674151, 'fraction_numerical': 0.008526360665056132, 'mean_word_length': 1.9534200587494754, 'pattern_counts': {'":': 2, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 40, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1630783', 'n_tokens_mistral': 1839, 'n_tokens_neox': 1810, 'n_words': 513}