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
with this PR API usage would be something like this: | |
``` | |
with chdir(project.abs_path): | |
with service_callback_communication(user_job): | |
import_dataset(...) | |
``` | |
now cleaner version of this could be something like this |
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
123 |
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
asdadasd |
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 upload(parts: Vector[Part[F]], blocker: Blocker): F[Response[F]] = | |
parts.find(isValidPart) match { | |
case Some(file) => | |
val t0 = System.nanoTime() | |
val home = sys.env.getOrElse("DP_UPLOAD_DIR", "/tmp/data-parser/upload") | |
val filename = file.filename.getOrElse("filename") | |
val path = FSUtils.ensurePath(home, filename) | |
val writer = fs2.io.file.writeAll(path, blocker) | |
val response = file.body |
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
{"matchId":5061259433,"radiantScore":34,"direScore":5,"leagueId":0,"averageRank":5807,"radiantLead":28359,"gameTime":1493,"isCompleted":false,"isUpdating":false,"isParsing":true,"radiantTeamId":0,"direTeamId":0,"players":[{"heroId":5,"name":"Oggy","playerSlot":0,"steamId":321610761,"steamAccount":{"id":321610761,"profileUri":"https://steamcommunity.com/profiles/76561198281876489/","timeCreated":1454766491,"cityId":0,"communityVisibleState":3,"name":"Oggy","lastLogOff":1570540806,"avatar":"e9/e97ee8b2f38ebf5a222b5630dee1d1a055bb9c90_full.jpg","primaryClanId":103582791429521408,"soloRank":3949,"partyRank":2077,"isAnonymous":false,"isStratzAnonymous":false,"seasonRank":73,"smurfFlag":0,"smurfCheckDate":"2019-10-07T10:57:00"},"isRadiant":true,"numKills":4,"numDeaths":1,"numAssists":16,"numLastHits":33,"numDenies":2,"goldPerMinute":252,"level":15,"gold":1624,"item0Id":214,"item1Id":102,"item2Id":73,"item3Id":36,"item4Id":42,"playbackData":{"playerUpdatePositionEvents":[{"time":-11,"x":127,"y":127},{"time":1,"x":15 |
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
// 20191002103439 | |
// https://api.stratz.com/api/v1/match/5050619833/live | |
{ | |
"matchId": 5050619833, | |
"radiantScore": 9, | |
"direScore": 49, | |
"leagueId": 0, | |
"averageRank": 6219, | |
"radiantLead": -48902, |
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
PROJECT_V1_BROKEN = """ | |
'@context': | |
created: http://schema.org/dateCreated | |
foaf: http://xmlns.com/foaf/0.1/ | |
name: notexisting:name | |
updated: http://schema.org/dateUpdated | |
version: http://schema.org/schemaVersion | |
'@type': foaf:Project | |
created: 2018-02-22 10:40:14.878009 | |
name: demo |
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
package org.renku.http | |
import java.io.File | |
import java.net.URL | |
import cats.syntax.functor._ | |
import cats.implicits._ | |
import cats.effect.{ContextShift, ExitCode, IO, IOApp, Sync} | |
import org.http4s.client.dsl.Http4sClientDsl | |
import org.http4s.headers._ | |
import org.http4s.multipart.{Multipart, Part} |
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
--- Work/data_repos » renku init test-update | |
Initialized empty project in /home/sam/Work/data_repos/test-update | |
--- Work/data_repos » cd test-update | |
--- data_repos/test-update ‹master› » | |
--- data_repos/test-update ‹master› » | |
--- data_repos/test-update ‹master› » renku run echo "A" > step1 | |
--- data_repos/test-update ‹master› » renku run cat step1 > step2 | |
--- data_repos/test-update ‹master› » renku run cat step2 > step3 | |
--- data_repos/test-update ‹master› » | |
--- data_repos/test-update ‹master› » |
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
--- Work/data_repos » renku init test-update | |
Initialized empty project in /home/sam/Work/data_repos/test-update | |
--- Work/data_repos » cd test-update | |
--- data_repos/test-update ‹master› » | |
--- data_repos/test-update ‹master› » | |
--- data_repos/test-update ‹master› » renku run echo "A" > step1 | |
--- data_repos/test-update ‹master› » renku run cat step1 > step2 | |
--- data_repos/test-update ‹master› » renku run cat step2 > step3 | |
--- data_repos/test-update ‹master› » | |
--- data_repos/test-update ‹master› » |