text
This file contains 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
************* Module picard.similarity | |
picard/similarity.py:55: [R1704(redefined-argument-from-local), similarity2] Redefining argument with the local name 'a' | |
picard/similarity.py:58: [R1704(redefined-argument-from-local), similarity2] Redefining argument with the local name 'b' | |
************* Module picard.cluster | |
picard/cluster.py:551: [R0201(no-self-use), ClusterEngine.can_refresh] Method could be a function | |
************* Module picard.track | |
picard/track.py:241: [R0201(no-self-use), Track._get_ignored_folksonomy_tags] Method could be a function | |
************* Module picard.file | |
picard/file.py:103: [W0221(arguments-differ), File.load] Parameters differ from overridden 'load' method | |
picard/file.py:389: [R0201(no-self-use), File._save_images] Method could be a function |
This file contains 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 | |
import json | |
path = "/home/wieland/Downloads/Unpack-6438/listenbrainz-listens-dump-20180315-000401/listens/0/04/04d5f670-7c04-4dcf-801c-89ff231f3a96.listens" | |
sc = spark.sparkContext | |
lines = sc.textFile(path) | |
from pyspark.sql import Row | |
listens = lines.map(lambda listen: Row(**json.loads(listen))) | |
print(listens.count()) | |
from pyspark.sql.types import * | |
fields = [ |
This file contains 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
explain analyze SELECT area.gid, url.gid, url.url | |
FROM l_area_url | |
JOIN link AS l | |
ON l_area_url.link=l.id | |
JOIN link_type AS lt | |
ON lt.id=l.link_type | |
JOIN area | |
ON entity0=area.id | |
JOIN url | |
ON l_area_url.entity1=url.id |
This file contains 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
INSERT INTO statistics.statistic_event (date, title, link, description) | |
VALUES | |
('2016-02-22', 'New MusicBrainz design', | |
'https://blog.musicbrainz.org/2016/02/22/server-update-2016-02-22/', | |
'MusicBrainz itself has gotten a new design to better match the rest of the *Brainz family.'), | |
('2015-12-28', 'Edit note notifications', | |
'https://blog.musicbrainz.org/2015/12/28/server-update-2015-12-28/', | |
'A new banner message will now notify users whenever they receive a new edit note.'), | |
('2015-11-30', 'More auto-edits', | |
'https://blog.musicbrainz.org/2015/11/30/server-update-2015-11-30/', |
This file contains 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
Submit this with something like | |
http POST "http://listenbrainz.org/1/submit-listens" "Authorization: Token $yourtokenhere" < listen.json | |
http is https://github.com/jkbrzt/httpie | |
listened_at are the seconds since epoch | |
listen_type can be single, import or playing_now, only import is allowed to contain more than one listen in the payload. |
This file contains 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
('--', '01 - Four Brothers: Four Brothers.flac') | |
- FLAC, 163.16 seconds, 44100 Hz (audio/x-flac) | |
ALBUM=Varèse Sarabande: A 30th Anniversary Celebration | |
MUSICBRAINZ_ARTISTID=b753584a-3664-46f8-bb84-f6deed133c80 | |
DISCTOTAL=4 | |
TITLE=Four Brothers: Four Brothers | |
ARTIST=David Arnold | |
MUSICBRAINZ_RELEASEGROUPID=2ba691ba-b916-3218-a87a-5c69d9b73c44 | |
RELEASETYPE=album | |
RELEASETYPE=compilation |
This file contains 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
ACOUSTID_FINGERPRINT | |
ACOUSTID_ID | |
ALBUM | |
ALBUMARTIST | |
ALBUMARTISTSORT | |
ALBUMSORT | |
ARRANGER | |
ARTIST | |
ARTISTSORT | |
ARTISTWEBPAGE |
This file contains 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
aaa |
This file contains 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
Passing a list of values to enum is deprecated. Enum values should be wrapped in an arrayref. at /home/wieland/perl5/lib/perl5/x86_64-linux-thread-multi/Moose/Util/TypeConstraints.pm line 440. | |
Moose::Util::TypeConstraints::enum("StorageClass", "standard", "reduced_redundancy") called at /home/wieland/perl5/lib/perl5/Net/Amazon/S3/Client/Object.pm line 21 | |
require Net/Amazon/S3/Client/Object.pm called at /home/wieland/perl5/lib/perl5/Net/Amazon/S3.pm line 17 | |
Net::Amazon::S3::BEGIN() called at /home/wieland/perl5/lib/perl5/Net/Amazon/S3/Client/Object.pm line 0 | |
eval {...} called at /home/wieland/perl5/lib/perl5/Net/Amazon/S3/Client/Object.pm line 0 | |
require Net/Amazon/S3.pm called at t/delete.t line 6 | |
main::BEGIN() called at /home/wieland/perl5/lib/perl5/Net/Amazon/S3/Client/Object.pm line 0 | |
eval {...} called at /home/wieland/perl5/lib/perl5/Net/Amazon/S3/Client/Object.pm line 0 | |
Attribute (rabbitmq) is required at /home/wieland/perl5/lib/perl5/x86_64-linux-thread-multi/Moose/Exception.pm line 37 | |
Moose::Exc |
NewerOlder