Skip to content

Instantly share code, notes, and snippets.

View Ivorforce's full-sized avatar
👽
Working from Mars

Lukas Tenbrink Ivorforce

👽
Working from Mars
View GitHub Profile
~/Jobs/Bachelorarbeit/nupic master
❯ py.test tests/unit
============================================================================= test session starts ==============================================================================
platform darwin -- Python 2.7.13, pytest-3.0.7, py-1.4.34, pluggy-0.4.0
rootdir: /Users/lukas/Jobs/Bachelorarbeit/nupic, inifile:
plugins: xdist-1.16.0, cov-2.5.0
collected 292 items / 47 errors
==================================================================================== ERRORS ====================================================================================
_________________________________________________ ERROR collecting tests/unit/nupic/algorithms/anomaly_likelihood_jeff_test.py _________________________________________________
event.registerServerCommand(new CommandNaturalAll());
event.registerServerCommand(new CommandNaturalSpace());
event.registerServerCommand(new CommandNaturalFloor());
// Becomes
event.registerServerCommand(new CommandSplit(RCConfig.commandPrefix + "natural",
new CommandNaturalAll(),
new CommandNaturalSpace(),
new CommandNaturalFloor()
public class CommandGenerateStructure extends SimpleCommand
{
public CommandGenerateStructure()
{
super(RCConfig.commandPrefix + "gen");
permitFor(2);
}
@Override
public Expect<?> expect()
public class CommandGenerateStructure extends SimpleCommand
{
public CommandGenerateStructure()
{
super(RCConfig.commandPrefix + "gen");
permitFor(2);
}
@Override
public Expect<?> expect()
public class CommandGenerateStructure extends CommandBase
{
@Nonnull
@Override
public String getName()
{
return RCConfig.commandPrefix + "gen";
}
public int getRequiredPermissionLevel()
{
"dimensions": [
{
"dim": 0,
"override": true,
"biome": "desert",
"dimensiontype": {
"id": 0,
"name": "Unknown Exile Planet",
"suffix": "_dim0",
WorldServer world = context.environment.world;
if (context.setBlock(worldPos, state, 2))
{
NBTTagCompound tileEntityCompound = tileEntity.get();
if (tileEntityCompound != null && world.getBlockState(worldPos).getBlock() == state.getBlock())
{
TileEntity worldTileEntity = world.getTileEntity(worldPos);
if (worldTileEntity != null)
public double getValue(int... position)
{
List<BlurrablePivot> relevant = new ArrayList<>();
addRelevantValues(position, relevant);
return getValue(relevant, position);
}
public static GenericYSelector surfaceYSelector()
{
return new GenericYSelector(Arrays.asList(
// Keep above caves
new FactorLimit(1, Arrays.asList(
new FactorLimit.RayDynamicPosition(null, FactorLimit.RayDynamicPosition.Type.WORLD_HEIGHT),
new FactorLimit.RayMatcher(1f, false, .5f, new PositionedBlockMatcher(RecurrentComplex.specialRegistry, "!(is.air | is.foliage | is.replaceable)")),
new FactorLimit.RayMove(1f, -5))),
// Spawn in air
new FactorMatch(1, "!(reccomplex:generic_space | reccomplex:generic_solid)", "is.air", 0.5f),
root@tuedfvw-kaltura:~# apt-get kaltura-sphinx purge
E: Invalid operation kaltura-sphinx
root@tuedfvw-kaltura:~# apt-get purge kaltura-sphinx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libodbc1
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED: