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
{ | |
"directed": true, | |
"multigraph": false, | |
"graph": {}, | |
"nodes": [ | |
{ | |
"label": "Once", | |
"ipos": 0, | |
"id": [ | |
"Once", |
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
#WordPress - FreeWheel | |
#FreeWheel - Free (non-wordpress.com domains) | |
freewheel.tv, 707442, DIRECT | |
freewheel.tv, 707874, DIRECT | |
#FreeWheel - Premium (non-wordpress.com domains) | |
freewheel.tv, 707458, DIRECT | |
freewheel.tv, 707890, DIRECT | |
#FreeWheel - Advertising (wordpress.com domains) | |
freewheel.tv, 824865, DIRECT | |
freewheel.tv, 824881, DIRECT |
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
Pool Size | Ad System | Seller ID | Seller Type | Seller Name | Seller Domain | |
---|---|---|---|---|---|---|
22806 | appnexus.com | 8233 | both | RICH AUDIENCE TECHNOLOGIES SL | richaudience.com | |
22303 | appnexus.com | 9393 | publisher | Answer Media LLC | answermedia.com | |
21299 | aps.amazon.com | 48266a61-b3d9-4cb7-b172-553abc6a42a4 | both | Online Media Solutions Ltd | brightcom.com | |
15874 | indexexchange.com | 187071 | intermediary | Insticator Inc. | insticator.com | |
2739 | pubmatic.com | 154037 | unknown | unknown | unknown | |
2566 | imonomy.com | 2189 | publisher | northern and shell | http://www.express.co.uk | |
1817 | indexexchange.com | 186684 | unknown | unknown | unknown | |
1200 | appnexus.com | 1899 | both | Zedo (ZINC) | zedo.com | |
465 | quantcast.com | JSnqrmZzFC | unknown | unknown | unknown |
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 argparse | |
from dataclasses import dataclass | |
from typing import Dict | |
import requests | |
MIRROR_URL = "https://dumps.wikimedia.org" | |
WIKI = "enwiki" |
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 logging | |
import pandas as pd | |
from simpletransformers.classification import MultiLabelClassificationModel | |
import sklearn.metrics | |
texts = [ | |
["this is class zero", [1, 0, 0]], | |
["this is class one", [0, 1, 0]], | |
["this is class two", [0, 0, 1]], | |
["this is class zero and one", [1, 1, 0]], |
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
def count_file_lines(file_path: str) -> int: | |
output = subprocess.check_output(["wc", "-l", file_path]) | |
num_lines = int(output.split()[0]) | |
return num_lines |
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 numpy as np | |
import time | |
from hilbertcurve.hilbertcurve import HilbertCurve | |
N = 40 | |
num_vecs = 100_000 | |
for p in [1, 2, 3, 4]: |
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 mwtext | |
albedo_wikitext = """ | |
{{Other uses}} | |
{{Use dmy dates|date=April 2019}} | |
[[File:Albedo-e hg.svg|thumb|upright=1.3|The percentage of [[diffuse reflection|diffusely reflected]] [[sunlight]] re\ | |
lative to various surface conditions]] | |
'''Albedo''' ({{IPAc-en|æ|l|ˈ|b|iː|d|oʊ}}) ({{lang-la|albedo}}, meaning |
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 qwikidata | |
print("hello world") |
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
def unet_model(batch_size, npix_in, n_channels, n_filters, n_classes, activation='relu'): | |
input_layer = Input(batch_shape=(batch_size, npix_in, npix_in, n_channels), name='input') | |
dblk1_conv1 = Convolution2D(n_filters, 3, 3, activation=activation, name='dblk1_conv1')(input_layer) | |
dblk1_conv2 = Convolution2D(n_filters, 3, 3, activation=activation, name='dblk1_conv2')(dblk1_conv1) | |
dblk1_pool = MaxPooling2D(pool_size=(2,2), name='dblk1_pool')(dblk1_conv2) | |
dblk2_conv1 = Convolution2D(n_filters * 2, 3, 3, activation=activation, name='dblk2_conv1')(dblk1_pool) | |
dblk2_conv2 = Convolution2D(n_filters * 2, 3, 3, activation=activation, name='dblk2_conv2')(dblk2_conv1) |