#if DEBUG foreach (var bundle in BundleTable.Bundles) { bundle.Transform = new NoTransform(); } #endif
Bundle debugScripts = new Bundle("~/DebugScripts", new NoTransform("text/javascript")); debugScripts.AddDirectory("~/Scripts/Debug", "*.js"); BundleTable.Bundles.Add(debugScripts); Bundle productionScripts = new Bundle("~/ProductionScripts", new NoTransform("text/javascript")); productionScripts.AddDirectory("~/Scripts/Minified", "*.js"); BundleTable.Bundles.Add(productionScripts);
IBundleTransform jsTransform; IBundleTransform cssTransform; #if DEBUG jsTransform = new NoTransform("text/javascript"); cssTransform = new NoTransform("text/css"); #else jsTransform = new JsMinify(); cssTransform = new CssMinify(); #endif Bundle jsBundle = new Bundle("~/JsB", jsTransform); Bundle cssBundle = new Bundle("~/CssB", cssTransform);
/** * {@inheritDoc} */ protected SemanticSpace getSpace() { Transform transform = null; if (argOptions.hasOption('T')) transform = ReflectionUtil.getObjectInstance( argOptions.getStringOption('T')); else transform = new NoTransform(); int bound = argOptions.getIntOption('b', 10000); int windowSize = argOptions.getIntOption('w', 5); return new OccurrenceCounter(transform, bound, windowSize); }
/** * {@inheritDoc} */ protected SemanticSpace getSpace() { Transform transform = null; if (argOptions.hasOption('T')) transform = ReflectionUtil.getObjectInstance( argOptions.getStringOption('T')); else transform = new NoTransform(); int bound = argOptions.getIntOption('b', 10000); int windowSize = argOptions.getIntOption('w', 5); return new OccurrenceCounter(transform, bound, windowSize); }
/** * {@inheritDoc} */ protected SemanticSpace getSpace() { setupDependencyExtractor(); int bound = argOptions.getIntOption('b', 10000); Transform transform = argOptions.getObjectOption( 'T', new NoTransform()); DependencyPathAcceptor acceptor = argOptions.getObjectOption( 'a', new UniversalPathAcceptor()); DependencyPathWeight weighter = argOptions.getObjectOption( 'w', new FlatPathWeight()); int pathLength = argOptions.getIntOption('l', 5); return new OccurrenceCounter( transform, bound, acceptor, weighter, pathLength); }
/** * {@inheritDoc} */ protected SemanticSpace getSpace() { setupDependencyExtractor(); int bound = argOptions.getIntOption('b', 10000); Transform transform = argOptions.getObjectOption( 'T', new NoTransform()); DependencyPathAcceptor acceptor = argOptions.getObjectOption( 'a', new UniversalPathAcceptor()); DependencyPathWeight weighter = argOptions.getObjectOption( 'w', new FlatPathWeight()); int pathLength = argOptions.getIntOption('l', 5); return new OccurrenceCounter( transform, bound, acceptor, weighter, pathLength); }