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
~/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 _________________________________________________ |
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
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() |
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
public class CommandGenerateStructure extends SimpleCommand | |
{ | |
public CommandGenerateStructure() | |
{ | |
super(RCConfig.commandPrefix + "gen"); | |
permitFor(2); | |
} | |
@Override | |
public Expect<?> expect() |
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
public class CommandGenerateStructure extends SimpleCommand | |
{ | |
public CommandGenerateStructure() | |
{ | |
super(RCConfig.commandPrefix + "gen"); | |
permitFor(2); | |
} | |
@Override | |
public Expect<?> expect() |
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
public class CommandGenerateStructure extends CommandBase | |
{ | |
@Nonnull | |
@Override | |
public String getName() | |
{ | |
return RCConfig.commandPrefix + "gen"; | |
} | |
public int getRequiredPermissionLevel() |
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
{ | |
"dimensions": [ | |
{ | |
"dim": 0, | |
"override": true, | |
"biome": "desert", | |
"dimensiontype": { | |
"id": 0, | |
"name": "Unknown Exile Planet", | |
"suffix": "_dim0", |
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
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) |
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
public double getValue(int... position) | |
{ | |
List<BlurrablePivot> relevant = new ArrayList<>(); | |
addRelevantValues(position, relevant); | |
return getValue(relevant, position); | |
} |
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
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), |
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
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: |