This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
#<Selector | |
@name="nav ul, nav ol", | |
@declaration=[ | |
#<Property | |
@name="margin", | |
@value= #<VirtualString @value="0">>, | |
#<Property | |
@name="padding", | |
@value= #<VirtualString @value="0px">>, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
#<VarAssignAstNode | |
@class_name="VariableAssign.new", | |
@name="other-color", | |
@children=[], | |
@value= #<AstNodeValue @class_name="VirtualString.new", @value="red">>, | |
#<VarAssignAstNode | |
@class_name="VariableAssign.new", | |
@name="main_color", | |
@children=[], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* example 2 */ | |
$other-color: red; | |
$main_color: green; | |
@mixin border-radius { | |
-webkit-border-radius: 10px; | |
-moz-border-radius: 10px; | |
-ms-border-radius: 10px; | |
border-radius: 10px; | |
} | |
div { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
#<SelectorAstNode | |
@class_name="Selector.new”, | |
@name="nav ul, nav ol”, | |
@children=[ | |
#<PropertyAstNode | |
@class_name="Property.new", | |
@name="margin", | |
@children=[], | |
@value= #<AstNodeValue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
#<SelectorStartParserNode @name="selector start", @value="nav ul, nav ol {">, | |
#<PropertyParserNode @name="property", @value="margin: 0;">, | |
#<PropertyParserNode @name="property", @value="padding: 0px;">, | |
#<PropertyParserNode @name="property", @value="list-style: none;">, | |
#<PropertyParserNode @name="property", @value="font: 12pt/10pt sans-serif;">, | |
#<SelectorEndParserNode @name="selector end", @value="}"> | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
'nav ul, nav ol {', | |
'margin: 0;', | |
'padding: 0px;', | |
'list-style: none;', | |
'font: 12pt/10pt sans-serif;’, | |
‘}’ | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* example 1 */ | |
nav ul, nav ol { | |
margin: 0; | |
padding: 0px; | |
list-style: none; | |
font: 12pt/10pt sans-serif; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from flask import Flask, render_template, request, redirect, url_for, jsonify | |
from sklearn.feature_extraction.text import TfidfVectorizer | |
from sklearn.multiclass import * | |
from sklearn.svm import * | |
import pandas | |
app = Flask(__name__) | |
global Classifier | |
global Vectorizer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.naive_bayes import * | |
from sklearn.dummy import * | |
from sklearn.ensemble import * | |
from sklearn.neighbors import * | |
from sklearn.tree import * | |
from sklearn.feature_extraction.text import CountVectorizer | |
from sklearn.feature_extraction.text import TfidfVectorizer | |
from sklearn.feature_extraction.text import HashingVectorizer | |
from sklearn.calibration import * | |
from sklearn.linear_model import * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.naive_bayes import * | |
from sklearn.dummy import * | |
from sklearn.ensemble import * | |
from sklearn.neighbors import * | |
from sklearn.tree import * | |
from sklearn.feature_extraction.text import CountVectorizer | |
from sklearn.feature_extraction.text import TfidfVectorizer | |
from sklearn.feature_extraction.text import HashingVectorizer | |
from sklearn.calibration import * | |
from sklearn.linear_model import * |