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
import com.github.benmanes.caffeine.cache.Caffeine; | |
import com.github.benmanes.caffeine.cache.Cache; | |
import com.github.benmanes.caffeine.cache.simulator.parser.TextTraceReader; | |
import java.io.IOException; | |
import java.util.stream.Stream; | |
import java.util.stream.LongStream; | |
import java.util.AbstractMap.SimpleEntry; | |
import java.util.Map.Entry; | |
/** |
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
from datetime import date | |
from datetime import datetime | |
from datetime import timedelta | |
import convertdate | |
def shabaton(t, eve=False): | |
if t.weekday() == 5 - 1 if eve else 0: | |
return True | |
if t == date(*convertdate.holidays.rosh_hashanah(t.year, eve)): | |
return True |