# coding: utf-8
<%inherit file="master.html" />
<%def name="primary()">
Type Anything
%def>
<%def name="secondary()">
% if results:
Structured Response
${ json_results | h }
% endif
⇩ Try These ⇩
Programming/Code
- public function setModule($module) { if (!is_object($module)) { throw new Exception\InvalidArgumentException( sprintf( '%s expects a module object as an argument; %s provided', __METHOD__, gettype($module) ) ); } $this->module = $module; return $this; }
- classifier = ProgrammingBayesianClassifier() bayes_languages = classifier.classify(data) scores = self.calculate_confidence(lex_languages, bayes_languages) for lang_id, confidence in scores.items(): yield ParseResult( self.type, self.language_keywords[lang_id]['name'], confidence )
- def sanitized_path(base_directory, questionable_path) return base_directory if base_directory.eql?(questionable_path) clean_path = File.expand_path(questionable_path, "/") clean_path = clean_path.sub(/\A\w\:\//, '/') unless clean_path.start_with?(base_directory.sub(/\A\w\:\//, '/')) File.join(base_directory, clean_path) else clean_path end end
- cout << setprecision(10) << ldn.dx << " = 0x" << hex << ldn.lx[2] << ldn.lx[1] << ldn.lx[0] << endl;
%def>
<%def name="footer()">
%def>