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 kotlin.properties.ReadWriteProperty | |
import kotlin.reflect.KProperty | |
fun <T> mutableLazy(initializer: () -> T) = MutableLazy(initializer) | |
/** | |
* Lazy-like delegate but mutable. | |
* | |
* Inspired by [SynchronizedLazyImpl] and https://stackoverflow.com/a/47948047/6761823 | |
*/ |
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 os | |
import sys | |
import requests | |
from bs4 import BeautifulSoup | |
def generate_filename(dest_dir, filename, count): | |
""" | |
:rtype: basestring |
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 com.azabost.benchmarks.granularity | |
interface GranularityTester { | |
val measurements: Int | |
fun start() | |
} |