03/25 - Skillet Saturday!

Status
Not open for further replies.

Kadauchi

Well-Known Member
Master Pleaser
Crowd Pleaser
Joined
Jan 12, 2016
Messages
7,098
Reaction score
21,951
Points
1,263
Decided to make the export code cleaner since I'm working with it already.

Instead of having two different templates, one for the forum to copy to the clipboard and one to send directly to the forums like so.
Code:
const forumTemplate =
  `[table][tr][td][b]Title:[/b] [url=https://www.mturk.com/mturk/preview?groupId=${hit.groupid}]${hit.title}[/url] | [url=https://www.mturk.com/mturk/previewandaccept?groupId=${hit.groupid}]PANDA[/url]\n` +
  `[b]Worker:[/b] [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/]Preview[/url] | [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/accept_random]Accept[/url] | [url=https://worker.mturk.com/requesters/${hit.reqid}/projects]Requester[/url]\n` +
  `[b]Requester:[/b] [url=https://www.mturk.com/mturk/searchbar?requesterId=${hit.reqid}]${hit.reqname}[/url] [${hit.reqid}] ([url=https://www.mturk.com/mturk/contact?requesterId=${hit.reqid}]Contact[/url])\n` +
  `[b][url=https://turkopticon.ucsd.edu/${hit.reqid}]TO 1[/url]:[/b] ${to1Template}\n` +
  `[b][url=https://turkopticon.info/requesters/${hit.reqid}]TO 2[/url]:[/b] ${to2Template}\n` +
  `[b]${hit.desc ? `Description:[/b] ${hit.desc}` : `Auto Approval:[/b] ${hit.aa}`}\n` +
  `[b]Time:[/b] ${hit.time}\n` +
  `[b]HITs Available:[/b] ${hit.avail}\n` +
  `[b]Reward:[/b] [color=green][b] ${hit.reward}[/b][/color]\n` +
  `[b]Qualifications:[/b] ${hit.quals.replace(/Masters has been granted/, `[color=red]Masters has been granted[/color]`).replace(/Masters Exists/, `[color=red]Masters Exists[/color]`)}\n` +
  `[/td][/tr][/table]`
;

const directTemplate =
  `<p>[table][tr][td][b]Title:[/b] [url=https://www.mturk.com/mturk/preview?groupId=${hit.groupid}]${hit.title}[/url] | [url=https://www.mturk.com/mturk/previewandaccept?groupId=${hit.groupid}]PANDA[/url]</p>` +
  `<p>[b]Worker:[/b] [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/]Preview[/url] | [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/accept_random]Accept[/url] | [url=https://worker.mturk.com/requesters/${hit.reqid}/projects]Requester[/url]</p>` +
  `<p>[b]Requester:[/b] [url=https://www.mturk.com/mturk/searchbar?requesterId=${hit.reqid}]${hit.reqname}[/url] [${hit.reqid}] ([url=https://www.mturk.com/mturk/contact?requesterId=${hit.reqid}]Contact[/url])</p>` +
  `<p>[b][url=https://turkopticon.ucsd.edu/${hit.reqid}]TO 1[/url]:[/b] ${to1Template}</p>` +
  `<p>[b][url=https://turkopticon.info/requesters/${hit.reqid}]TO 2[/url]:[/b] ${to2Template}</p>` +
  `<p>[b]${hit.desc ? `Description:[/b] ${hit.desc}` : `Auto Approval:[/b] ${hit.aa}`}</p>` +
  `<p>[b]Time:[/b] ${hit.time}</p>` +
  `<p>[b]HITs Available:[/b] ${hit.avail}</p>` +
  `<p>[b]Reward:[/b] [color=green][b] ${hit.reward}[/b][/color]</p>` +
  `<p>[b]Qualifications:[/b] ${hit.quals.replace(/Masters has been granted/, `[color=red]Masters has been granted[/color]`).replace(/Masters Exists/, `[color=red]Masters Exists[/color]`)}[/td][/tr]</p>` +
  `<p>[tr][td][center][size=2]HIT exported from [url=http://mturksuite.com/]Mturk Suite[/url] v${chrome.runtime.getManifest().version}[/size][/center][/td][/tr][/table]</p>`
;

switch (hitExport.info.type) {
  case `forum`: hitExport.copyToClip(forumTemplate); break;
  case `thDirect`: hitExport.thDirect(directTemplate); break;
  case `mtcDirect`: hitExport.mtcDirect(directTemplate); break;
}
I made it an array, and then remove the mts line in the copy to clipboard export, and join them with either a line break or <p> element depending on what was needed.
Code:
const exportTemplate = [
  `[table][tr][td][b]Title:[/b] [url=https://www.mturk.com/mturk/preview?groupId=${hit.groupid}]${hit.title}[/url] | [url=https://www.mturk.com/mturk/previewandaccept?groupId=${hit.groupid}]PANDA[/url]`,
  `[b]Worker:[/b] [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/]Preview[/url] | [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/accept_random]Accept[/url] | [url=https://worker.mturk.com/requesters/${hit.reqid}/projects]Requester[/url]`,
  `[b]Requester:[/b] [url=https://www.mturk.com/mturk/searchbar?requesterId=${hit.reqid}]${hit.reqname}[/url] [${hit.reqid}] ([url=https://www.mturk.com/mturk/contact?requesterId=${hit.reqid}]Contact[/url])`,
  `[b][url=https://turkopticon.ucsd.edu/${hit.reqid}]TO 1[/url]:[/b] ${to1Template}`,
  `[b][url=https://turkopticon.info/requesters/${hit.reqid}]TO 2[/url]:[/b] ${to2Template}`,
  `[b]${hit.desc ? `Description:[/b] ${hit.desc}` : `Auto Approval:[/b] ${hit.aa}`}`,
  `[b]Time:[/b] ${hit.time}`,
  `[b]HITs Available:[/b] ${hit.avail}`,
  `[b]Reward:[/b] [color=green][b] ${hit.reward}[/b][/color]`,
  `[b]Qualifications:[/b] ${hit.quals.replace(/Masters has been granted/, `[color=red]Masters has been granted[/color]`).replace(/Masters Exists/, `[color=red]Masters Exists[/color]`)}[/td][/tr]`,
  `[tr][td][center][size=2]HIT exported from [url=http://mturksuite.com/]Mturk Suite[/url] v${chrome.runtime.getManifest().version}[/size][/center][/td][/tr]`,
  `[/table]`
];

switch (hitExport.info.type) {
  case `forum`:
    exportTemplate.splice(10, 1);
    hitExport.copyToClip(exportTemplate.join(`\n`));
    break;
  case `thDirect`:
    hitExport.thDirect(`<p>${exportTemplate.join(`</p><p>`)}</p>`);
    break;
  case `mtcDirect`:
    hitExport.mtcDirect(`<p>${exportTemplate.join(`</p><p>`)}</p>`);
    break;
}
 

TissueHime

Thread Maker Extraordinaire
Threaderator
Joined
Jan 12, 2016
Messages
5,591
Reaction score
7,617
Points
813
Age
35
Location
Seattle
Gender
Male

Sad that the TV actor for the Flash isn't the Flash in the movie

looks like everyone has so far
did anyone find a code at the beginning? I didn't do it myself, but was wondering if people just skip the beginning stuff thinking it's standard irb stuff or something.
 
Last edited:
  • Like
Reactions: scrmcasey

rsclone

This is my partner Fellatio Del Toro
Banned
Joined
Dec 17, 2016
Messages
6,128
Reaction score
12,435
Points
988

Sad that the TV actor for the Flash isn't the Flash in the movie


did anyone find a code at the beginning? I didn't do it myself, but was wondering if they just skip the beginning stuff thinking it's standard irb stuff or something.
i wasn't really looking....86k HITs and I've never seen one up front...it might have been on consent page but I skim those usually....
 

SarahAshlee90

Well-Known Member
Crowd Pleaser
Joined
Mar 4, 2016
Messages
2,781
Reaction score
5,294
Points
963
Age
34
Gender
Female
Decided to make the export code cleaner since I'm working with it already.

Instead of having two different templates, one for the forum to copy to the clipboard and one to send directly to the forums like so.
Code:
const forumTemplate =
  `[table][tr][td][b]Title:[/b] [url=https://www.mturk.com/mturk/preview?groupId=${hit.groupid}]${hit.title}[/url] | [url=https://www.mturk.com/mturk/previewandaccept?groupId=${hit.groupid}]PANDA[/url]\n` +
  `[b]Worker:[/b] [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/]Preview[/url] | [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/accept_random]Accept[/url] | [url=https://worker.mturk.com/requesters/${hit.reqid}/projects]Requester[/url]\n` +
  `[b]Requester:[/b] [url=https://www.mturk.com/mturk/searchbar?requesterId=${hit.reqid}]${hit.reqname}[/url] [${hit.reqid}] ([url=https://www.mturk.com/mturk/contact?requesterId=${hit.reqid}]Contact[/url])\n` +
  `[b][url=https://turkopticon.ucsd.edu/${hit.reqid}]TO 1[/url]:[/b] ${to1Template}\n` +
  `[b][url=https://turkopticon.info/requesters/${hit.reqid}]TO 2[/url]:[/b] ${to2Template}\n` +
  `[b]${hit.desc ? `Description:[/b] ${hit.desc}` : `Auto Approval:[/b] ${hit.aa}`}\n` +
  `[b]Time:[/b] ${hit.time}\n` +
  `[b]HITs Available:[/b] ${hit.avail}\n` +
  `[b]Reward:[/b] [color=green][b] ${hit.reward}[/b][/color]\n` +
  `[b]Qualifications:[/b] ${hit.quals.replace(/Masters has been granted/, `[color=red]Masters has been granted[/color]`).replace(/Masters Exists/, `[color=red]Masters Exists[/color]`)}\n` +
  `[/td][/tr][/table]`
;

const directTemplate =
  `<p>[table][tr][td][b]Title:[/b] [url=https://www.mturk.com/mturk/preview?groupId=${hit.groupid}]${hit.title}[/url] | [url=https://www.mturk.com/mturk/previewandaccept?groupId=${hit.groupid}]PANDA[/url]</p>` +
  `<p>[b]Worker:[/b] [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/]Preview[/url] | [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/accept_random]Accept[/url] | [url=https://worker.mturk.com/requesters/${hit.reqid}/projects]Requester[/url]</p>` +
  `<p>[b]Requester:[/b] [url=https://www.mturk.com/mturk/searchbar?requesterId=${hit.reqid}]${hit.reqname}[/url] [${hit.reqid}] ([url=https://www.mturk.com/mturk/contact?requesterId=${hit.reqid}]Contact[/url])</p>` +
  `<p>[b][url=https://turkopticon.ucsd.edu/${hit.reqid}]TO 1[/url]:[/b] ${to1Template}</p>` +
  `<p>[b][url=https://turkopticon.info/requesters/${hit.reqid}]TO 2[/url]:[/b] ${to2Template}</p>` +
  `<p>[b]${hit.desc ? `Description:[/b] ${hit.desc}` : `Auto Approval:[/b] ${hit.aa}`}</p>` +
  `<p>[b]Time:[/b] ${hit.time}</p>` +
  `<p>[b]HITs Available:[/b] ${hit.avail}</p>` +
  `<p>[b]Reward:[/b] [color=green][b] ${hit.reward}[/b][/color]</p>` +
  `<p>[b]Qualifications:[/b] ${hit.quals.replace(/Masters has been granted/, `[color=red]Masters has been granted[/color]`).replace(/Masters Exists/, `[color=red]Masters Exists[/color]`)}[/td][/tr]</p>` +
  `<p>[tr][td][center][size=2]HIT exported from [url=http://mturksuite.com/]Mturk Suite[/url] v${chrome.runtime.getManifest().version}[/size][/center][/td][/tr][/table]</p>`
;

switch (hitExport.info.type) {
  case `forum`: hitExport.copyToClip(forumTemplate); break;
  case `thDirect`: hitExport.thDirect(directTemplate); break;
  case `mtcDirect`: hitExport.mtcDirect(directTemplate); break;
}
I made it an array, and then remove the mts line in the copy to clipboard export, and join them with either a line break or <p> element depending on what was needed.
Code:
const exportTemplate = [
  `[table][tr][td][b]Title:[/b] [url=https://www.mturk.com/mturk/preview?groupId=${hit.groupid}]${hit.title}[/url] | [url=https://www.mturk.com/mturk/previewandaccept?groupId=${hit.groupid}]PANDA[/url]`,
  `[b]Worker:[/b] [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/]Preview[/url] | [url=https://worker.mturk.com/projects/${hit.groupid}/tasks/accept_random]Accept[/url] | [url=https://worker.mturk.com/requesters/${hit.reqid}/projects]Requester[/url]`,
  `[b]Requester:[/b] [url=https://www.mturk.com/mturk/searchbar?requesterId=${hit.reqid}]${hit.reqname}[/url] [${hit.reqid}] ([url=https://www.mturk.com/mturk/contact?requesterId=${hit.reqid}]Contact[/url])`,
  `[b][url=https://turkopticon.ucsd.edu/${hit.reqid}]TO 1[/url]:[/b] ${to1Template}`,
  `[b][url=https://turkopticon.info/requesters/${hit.reqid}]TO 2[/url]:[/b] ${to2Template}`,
  `[b]${hit.desc ? `Description:[/b] ${hit.desc}` : `Auto Approval:[/b] ${hit.aa}`}`,
  `[b]Time:[/b] ${hit.time}`,
  `[b]HITs Available:[/b] ${hit.avail}`,
  `[b]Reward:[/b] [color=green][b] ${hit.reward}[/b][/color]`,
  `[b]Qualifications:[/b] ${hit.quals.replace(/Masters has been granted/, `[color=red]Masters has been granted[/color]`).replace(/Masters Exists/, `[color=red]Masters Exists[/color]`)}[/td][/tr]`,
  `[tr][td][center][size=2]HIT exported from [url=http://mturksuite.com/]Mturk Suite[/url] v${chrome.runtime.getManifest().version}[/size][/center][/td][/tr]`,
  `[/table]`
];

switch (hitExport.info.type) {
  case `forum`:
    exportTemplate.splice(10, 1);
    hitExport.copyToClip(exportTemplate.join(`\n`));
    break;
  case `thDirect`:
    hitExport.thDirect(`<p>${exportTemplate.join(`</p><p>`)}</p>`);
    break;
  case `mtcDirect`:
    hitExport.mtcDirect(`<p>${exportTemplate.join(`</p><p>`)}</p>`);
    break;
}

Do you have any interest in writing a function that will replace the premium qual Exc ###### nonsense with the qual it actually represents. So instead of Exc: [1293126795-33836] DoesNotExist ; make it Gender is Female (or whatever the number correlates to)?
 

Jaded

The real themildone
Administrator
Joined
Jan 10, 2016
Messages
46,621
Reaction score
123,845
Points
1,414
Age
124
Gender
Female
Do you have any interest in writing a function that will replace the premium qual Exc ###### nonsense with the qual it actually represents. So instead of Exc: [1293126795-33836] DoesNotExist ; make it Gender is Female (or whatever the number correlates to)?
If I'm not mistaken the requester names them the Exc#### nonsense.

Edit: THis made sense as an answer but I got distracted and lost the second half of whatever I was gonna say.
 

Kadauchi

Well-Known Member
Master Pleaser
Crowd Pleaser
Joined
Jan 12, 2016
Messages
7,098
Reaction score
21,951
Points
1,263
Do you have any interest in writing a function that will replace the premium qual Exc ###### nonsense with the qual it actually represents. So instead of Exc: [1293126795-33836] DoesNotExist ; make it Gender is Female (or whatever the number correlates to)?
None at all.
 

TissueHime

Thread Maker Extraordinaire
Threaderator
Joined
Jan 12, 2016
Messages
5,591
Reaction score
7,617
Points
813
Age
35
Location
Seattle
Gender
Male
Do you have any interest in writing a function that will replace the premium qual Exc ###### nonsense with the qual it actually represents. So instead of Exc: [1293126795-33836] DoesNotExist ; make it Gender is Female (or whatever the number correlates to)?
i don't think that means gender is female, but that you did a certain hit so it excludes you from doing it again.
 

MindNumbing

Well-Known Member
Contributor
Joined
Jan 12, 2016
Messages
5,971
Reaction score
10,565
Points
1,013
Gender
Female
Title: Participate in an experiment | PANDA
Worker: Preview | Accept | Requester
Requester: Edward M. Husband [A15BV7M0O70TMB] (Contact)
TO: [Pay: 4.60] [Fair: 5.00] [Comm: 1.50] [Fast: 4.67] [Reviews: 9] [ToS: 0]
Description:
Participate in an experiment where you will read some passages and make some judgments about them. (Please have your Worker ID available.)
Time: 3 hours
HITs Available: 1
Reward: $6.00
Qualifications: Total approved HITs is not less than 100; HIT approval rate (%) is not less than 95; Location is one of: US;
HIT exported from Mturk Suite v1.18.2
 

TylerS

Lazy Turker
Contributor
Joined
Dec 14, 2016
Messages
1,276
Reaction score
1,923
Points
538
Age
39
Gender
Male
I'm not a huge basketball fan but this Gonzaga and Xavier game is going to be fun to watch. This tournament has been pretty good so far

How's everyone's bracket doing?
 
  • Like
Reactions: Barbwire

Kadauchi

Well-Known Member
Master Pleaser
Crowd Pleaser
Joined
Jan 12, 2016
Messages
7,098
Reaction score
21,951
Points
1,263
Title: Describe an image (WARNING: This HIT may contain adult content. Worker discretion is advised.) | PANDA
Worker: Preview | Accept | Requester
Requester: Technology and Research [A2KR2JW09QMLYA] (Contact)
TO 1: [Pay: 3.43] [Fast: 5.00] [Comm: 3.40] [Fair: 3.25] [Reviews: 11] [ToS: 0]
TO 2:
Not Available
Description: Please view and describe an image
Time: 20 minutes
HITs Available: 74190
Reward: $0.02
Qualifications: Masters has been granted; Adult Content Qualification is 1;
HIT exported from Mturk Suite v1.18.2
 

SarahAshlee90

Well-Known Member
Crowd Pleaser
Joined
Mar 4, 2016
Messages
2,781
Reaction score
5,294
Points
963
Age
34
Gender
Female
i don't think that means gender is female, but that you did a certain hit so it excludes you from doing it again.
I know, I was just using it as an example. On the rare occasion I do surveys I never have a clue as to what those numbers represent and it wastes time for me to panda it, only to not be qualled. If I can figure out what numbers mean what I may write a replacement function for them.
 

Kadauchi

Well-Known Member
Master Pleaser
Crowd Pleaser
Joined
Jan 12, 2016
Messages
7,098
Reaction score
21,951
Points
1,263
I know, I was just using it as an example. On the rare occasion I do surveys I never have a clue as to what those numbers represent and it wastes time for me to panda it, only to not be qualled. If I can figure out what numbers mean what I may write a replacement function for them.
What are you using to panda? PC will let you know if you aren't qualified after its first attempt.
 

Jaded

The real themildone
Administrator
Joined
Jan 10, 2016
Messages
46,621
Reaction score
123,845
Points
1,414
Age
124
Gender
Female
I know, I was just using it as an example. On the rare occasion I do surveys I never have a clue as to what those numbers represent and it wastes time for me to panda it, only to not be qualled. If I can figure out what numbers mean what I may write a replacement function for them.
The numbers don't really mean anything though, just something internal to the requesters. If you have it it means you've done the survey and can't accept it anyway. If you don't have it you can accept the hit, then have to pass an unrelated screener. (Which you may or may not pass.)

Also, if you're panda'ing one of the hits that you have the exclusion (exc) qual it will tell you that you aren't qualified. If you're using PC it'll be black I believe and won't work anyway.
 

Pleco

Friendly Neighborhood Rat
Contributor
Crowd Pleaser
Joined
Jan 23, 2016
Messages
19,190
Reaction score
76,218
Points
1,588
Age
38
Gender
Male
Title: Perceptual Complexity of Functions | PANDA
Worker: Preview | Accept | Requester
Requester: VALab [A2BB1T4TQNX208] (Contact)
TO: [Pay: 4.44] [Fair: 4.88] [Comm: 3.67] [Fast: 4.91] [Reviews: 44] [ToS: 0]
Description:
In a given set of graphs, select the most and least complex. Answer a few demographic and survey questions.
Time: 2 hours
HITs Available: 1
Reward: $1.50
Qualifications: HIT approval rate (%) is greater than 80; Location is US;

HIT exported from Mturk Suite v1.18.2
This thing has a really complicated name but it's really simple af, quick too.
 
  • Like
Reactions: Cmoney

Peachy

777
Banned
Pollster
Crowd Pleaser
Champion
Joined
Jan 25, 2016
Messages
36,663
Reaction score
88,761
Points
2,089
Age
35
fell asleep and took a nap. had a weird dream.

i was having an argument with a lady about skipping steps on the stairs. she said one should never cut in line or skip steps, but I was like "even if no one is in front of you? why not skip steps? the worse that could happen is you trip or stumble"

i dont know anymore. im not on cocaine yet i promise
 
  • Like
Reactions: T. Leela and Pleco

cassius

Well-Known Member
Joined
Jan 14, 2016
Messages
9,146
Reaction score
19,175
Points
938
Oh gee. I am working on transcribing this absolutely beautiful story told by a master story teller and the audio gave out. I timed it and let the requester know though I'm sure they know their audio is messed up. I checked it on both the original and my software but I don't think there is any way to recover it.​
 

cassius

Well-Known Member
Joined
Jan 14, 2016
Messages
9,146
Reaction score
19,175
Points
938
fell asleep and took a nap. had a weird dream.

i was having an argument with a lady about skipping steps on the stairs. she said one should never cut in line or skip steps, but I was like "even if no one is in front of you? why not skip steps? the worse that could happen is you trip or stumble"

i dont know anymore. im not on cocaine yet i promise
No, if that was a dream then it's heroin you are doing or seriously in cold turkey for.

https://youtu.be/YKy4riaOBMk
 
  • Like
Reactions: Peachy
D

Deleted member 526

Guest
I just checked again for non-closed-qualled and non-masters batches. seems like it's still slow.
 
Status
Not open for further replies.