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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <templateSet group="WordPress"> | |
| <template name="aa" value="add_action( '$hook$', '$callback$' ); $END$" description="add_action" toReformat="false" toShortenFQNames="true"> | |
| <variable name="hook" expression="" defaultValue="" alwaysStopAt="true" /> | |
| <variable name="callback" expression="" defaultValue="" alwaysStopAt="true" /> | |
| <context> | |
| <option name="HTML_TEXT" value="false" /> | |
| <option name="HTML" value="false" /> | |
| <option name="XSL_TEXT" value="false" /> | |
| <option name="XML" value="false" /> |
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
| /** | |
| * | |
| */ | |
| package com.simplexlogistics.core.domain; | |
| import java.sql.SQLException; | |
| import org.eclipse.persistence.config.SessionCustomizer; | |
| import org.eclipse.persistence.descriptors.ClassDescriptor; | |
| import org.eclipse.persistence.internal.helper.DatabaseField; |
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 pandas import DataFrame | |
| >>> from sklearn.feature_extraction.text import CountVectorizer | |
| >>> docs = ["You can catch more flies with honey than you can with vinegar.", | |
| ... "You can lead a horse to water, but you can't make him drink."] | |
| >>> vect = CountVectorizer(min_df=0., max_df=1.0) | |
| >>> X = vect.fit_transform(docs) | |
| >>> print(DataFrame(X.A, columns=vect.get_feature_names()).to_string()) | |
| but can catch drink flies him honey horse lead make more than to vinegar water with you | |
| 0 0 2 1 0 1 0 1 0 0 0 1 1 0 1 0 2 2 | |
| 1 1 2 0 1 0 1 0 1 1 1 0 0 1 0 1 0 2 |
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
| # -*- coding: utf-8 -*- | |
| from django.contrib.auth.decorators import login_required | |
| from django.utils.cache import patch_response_headers | |
| from django.utils.decorators import method_decorator | |
| from django.views.decorators.cache import cache_page, never_cache | |
| from django.views.decorators.csrf import csrf_exempt | |
| class NeverCacheMixin(object): | |
| @method_decorator(never_cache) |