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 subprocess | |
import hashlib | |
import os | |
import time | |
from multiprocessing import Pool | |
import random | |
import os | |
def compute_git_hash(content): | |
header = f'commit {len(content)}\0'.encode('utf-8') |
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
protected <IFACE, IMPL extends IFACE> Class<? extends IFACE> setupPluggableService( | |
final Class<IFACE> bind, | |
final Class<IMPL> defaultBind, | |
final SingletonRegistry registry, | |
final DremioConfig config, | |
final ScanResult scanResult, | |
final String configKey) { | |
//If we want to make it pluggable in the future, but haven't setup a key for it, just use the default implementation | |
final String keyValue = StringUtils.isEmpty(configKey) ? null : config.getString(configKey); |
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
license: mit |
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
license: gpl-3.0 | |
height: 960 |
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
license: mit |
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
license: mit |