If you have to extend an existing object with additional property, always prefer Vue.set() over Object.assign() (or spread operator).
Example below explains implications for different implementations.
| from tensorflow.contrib.tensorboard.plugins import projector | |
| import tensorflow as tf | |
| import numpy as np | |
| import os | |
| meta_file = "g2x_metadata.tsv" | |
| output_path = "./projections" | |
| # read embedding file into list and get the size | |
| with open('./ft_model.vec', 'r') as embedding_file: |
| <?php | |
| use Directus\Bootstrap; | |
| use Directus\View\JsonView; | |
| use Directus\Database\TableGateway\RelationalTableGateway; | |
| use Directus\Util\ArrayUtils; | |
| use Directus\Util\DateUtils; | |
| use Directus\Util\StringUtils; |
This list contains repositories of libraries and approaches for knowledge graph embeddings, which are vector representations of entities and relations in a multi-relational directed labelled graph. Licensed under CC0.
| import requests | |
| from collections import defaultdict | |
| csv_prefix = "https://research.google.com/youtube8m/csv" | |
| r = requests.get("{0}/verticals.json".format(csv_prefix)) | |
| verticals = r.json() | |
| block_urls = defaultdict(list) | |
| count = 0 |
| CREATE FUNCTION `URLSTRING`( str VARCHAR(255) ) RETURNS varchar(255) CHARSET utf8 | |
| DETERMINISTIC | |
| BEGIN | |
| DECLARE result VARCHAR(255) DEFAULT ''; | |
| DECLARE i, len SMALLINT DEFAULT 1; | |
| DECLARE c VARCHAR(1); | |
| SET len = CHAR_LENGTH( str ); | |
| SET str = TRIM( str ); | |
| SET str = REPLACE( str, '-', ' ' ); # Replace all - with space |
| -- SQL to create the initial tables for the MediaWiki database. | |
| -- This is read and executed by the install script; you should | |
| -- not have to run it by itself unless doing a manual install. | |
| -- This is a shared schema file used for both MySQL and SQLite installs. | |
| -- | |
| -- For more documentation on the database schema, see | |
| -- https://www.mediawiki.org/wiki/Manual:Database_layout | |
| -- | |
| -- notes: |
| # quote list: https://en.wikipedia.org/wiki/Quotation_mark | |
| QUOTES = ( | |
| '\u0022' # quotation mark (") | |
| '\u0027' # apostrophe (') | |
| '\u00ab' # left-pointing double-angle quotation mark | |
| '\u00bb' # right-pointing double-angle quotation mark | |
| '\u2018' # left single quotation mark | |
| '\u2019' # right single quotation mark | |
| '\u201a' # single low-9 quotation mark | |
| '\u201b' # single high-reversed-9 quotation mark |
| /* | |
| Dependencies: jQuery(v1.8), Underscore.js | |
| Last Edited: 02/23/2015 | |
| */ | |
| "use strict"; | |
| var UTILITIES = function() | |
| { | |
| var utils = this; |