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
{ | |
"recording-list":{ | |
"offset":0, | |
"count":243, | |
"recording":[ { | |
"score":"100", | |
"id":"1d86aa9d-21a2-4504-a668-61d488d3f251", | |
"title":"Bowie", | |
"length":162400, | |
"artist-credit":{ |
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
_all | |
_source | |
_type | |
_uid | |
artist-credit.name-credit.artist.id | |
artist-credit.name-credit.artist.name | |
artist-credit.name-credit.artist.sort-name | |
id | |
length | |
puid-list.puid.id |
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/ruby | |
#Retrieve data from MusicBrainz in JSON format and upload it to server | |
require 'rubygems' | |
require 'json' | |
require 'open-uri' | |
require 'active_support' | |
require 'net/http' | |
$KCODE = "UTF8" |
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
eclipseClasspath { | |
defaultOutputDir = file('build/eclipse-build') | |
} |
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
dependsOn(':test-testng') | |
apply plugin: 'java' | |
apply plugin: 'maven' | |
apply plugin: 'eclipse' |
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
JobClient.runJob(job); | |
BECOMES | |
job.waitForCompletion(true); |
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
DistributedCache.addCacheArchive(new URI(path), job); | |
BECOMES | |
DistributedCache.addCacheArchive(new URI(path), job.getConfiguration()); | |
job.set("some_property", property_value); | |
BECOMES | |
job.getConfiguration().set("some_property", property_value); |
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
job.setInputFormat(SequenceFileInputFormat.class); | |
job.setOutputFormat(SequenceFileOutputFormat.class); | |
BECOMES | |
job.setInputFormatClass(SequenceFileInputFormat.class); | |
job.setOutputFormatClass(SequenceFileOutputFormat.class); |
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
JobConf job = new JobConf(getConf()); | |
BECOMES | |
Job job = new Job(getConf()); |
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
String application_value = job.get("app.value"); | |
BECOMES | |
String application_value = config.get("app.value"); | |
Path[] localArchives = DistributedCache.getLocalCacheArchives(job); | |
BECOMES | |
Path[] localArchives = DistributedCache.getLocalCacheArchives(config); | |
Class handlerClass = job.getClass(handlerName, SomeProcessor.class); | |
BECOMES |