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 urllib | |
def get_page(url): | |
try: | |
import urllib | |
return urllib.urlopen(url).read() | |
except: | |
return "" | |
def get_next_target(seed): |
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
REPOSITORY TAG IMAGE ID CREATED SIZE | |
listenbrainzint_bigquery latest e6780a6cbb1c 16 hours ago 1.1GB | |
listenbrainzint_influx_writer latest e6780a6cbb1c 16 hours ago 1.1GB | |
listenbrainzint_listenbrainz latest e6780a6cbb1c 16 hours ago 1.1GB | |
<none> <none> 974cfb0a3ebd 16 hours ago 1.1GB | |
<none> <none> b8af41f56600 16 hours ago 1.1GB | |
docker_webserver latest bf53ef48d066 21 hours ago 2.08GB | |
docker_dataset_evaluator latest e90b26f77b93 21 hours ago 2.33GB | |
docker_hl_extractor latest e90b26f77b93 21 hours ago 2.33GB | |
<none> |
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
#!/usr/bin/env bash | |
# Modify these two as needed: | |
COMPOSE_FILE_LOC="docker/docker-compose.test.yml" | |
TEST_CONTAINER_NAME="acousticbrainz" | |
COMPOSE_PROJECT_NAME_ORIGINAL="jenkinsbuild_${BUILD_TAG}" | |
# Project name is sanitized by Compose, so we need to do the same thing. | |
# See https://github.com/docker/compose/issues/2119. |
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
{"track_metadata":{"additional_info":{"artist_mbids":[],"release_msid":"49c5333f-4e5a-44f9-9d3f-7dfbcc995b2b","release_mbid":null,"release_name":"Parachutes","recording_mbid":"fb81a071-9c63-4e8c-ab60-77403e81c01d","tags":[],"artist_msid":"1ba14ac0-1d5d-4210-ac04-4a963d546286","artist_name":"Coldplay","track_name":"Don't Panic"},"artist_name":"Coldplay","track_name":"Don't Panic"},"listened_at":1516804058,"recording_msid":"806bf3a6-8b9e-4c83-a5da-67f9d6152d3d"} | |
{"track_metadata":{"additional_info":{"artist_mbids":[],"release_msid":"8456adb6-efc6-4b9c-8ed0-65cb7ec04f5f","release_mbid":null,"release_name":"Ghost Stories","recording_mbid":"5c278fd7-fc78-43f2-b74a-e428ae811ade","tags":[],"artist_msid":"1ba14ac0-1d5d-4210-ac04-4a963d546286","artist_name":"Coldplay","track_name":"Always in My Head"},"artist_name":"Coldplay","track_name":"Always in My Head"},"listened_at":1516803842,"recording_msid":"71157926-b764-4f2a-adec-4a951279720e"} | |
{"track_metadata":{"additional_info":{"artist_mbids":[],"release_msid":"6b23e2d |
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
=================================== FAILURES =================================== | |
____________ GetCheckDatasetTestCase.test_get_check_dataset_private ____________ | |
self = <webserver.views.api.v1.test.test_datasets.GetCheckDatasetTestCase testMethod=test_get_check_dataset_private> | |
dataset_get = <MagicMock name='get' id='140142602051344'> | |
@mock.patch("db.dataset.get") | |
def test_get_check_dataset_private(self, dataset_get): | |
""" If a dataset is private, only the owner can retrieve it """ | |
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
#include <iostream> | |
#include <algorithm> | |
#define MAX 10000 | |
using namespace std; | |
int main() | |
{ int t; | |
cin>>t; | |
int n,m; | |
while(t--) | |
{ |
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
#include <bits/stdc++.h> | |
using namespace std; | |
// f 1 1 1 1 1 1 0 0 0 0 0 0 0 | |
int main() | |
{ | |
long long int n,c,t; | |
cin>>t; | |
while(t--) | |
{ |
This file has been truncated, but you can view the full file.
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
IN DATABASE: | |
{ | |
"time": "2013-08-02T13:45:33Z", | |
"artist_msid": "c2f00165-6d74-48ac-9b0a-6adbc0503ab4", | |
"recording_msid": "dcca4867-635d-41c5-a2dd-f5acbe1a513b", | |
"unix_ts": 1375451133 | |
} | |
TRYING TO INSERT: | |
{ | |
"track_metadata": { |
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
IN DATABASE: | |
{ | |
"time": "2015-11-17T11:50:11Z", | |
"artist_msid": "c6795568-8b6c-4fa1-8d74-f1eb9b41edca", | |
"recording_msid": "9c9d16be-b84a-4e33-959d-0ade606372f4", | |
"unix_ts": 1447761011 | |
} | |
TRYING TO INSERT: | |
{ | |
"track_metadata": { |
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
Already in db: | |
{ | |
"time": "2015-01-01T22:22:49Z", | |
"artist_msid": "86b5079f-82d3-499f-9ca5-0ca99a83bcbc", | |
"recording_msid": "133b67fb-40ee-4cb3-941b-1208aa41652b", | |
"unix_ts": 1420150969 | |
} | |
our listen: | |
{ | |
"track_metadata": { |