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 | |
| ❯ pip2 uninstall nupic.bindings -y | |
| Uninstalling nupic.bindings-1.0.0: | |
| Successfully uninstalled nupic.bindings-1.0.0 | |
| ~/Jobs/Bachelorarbeit/nupic master | |
| ❯ pip2 uninstall nupic -y | |
| Uninstalling nupic-1.0.1: | |
| Successfully uninstalled nupic-1.0.1 |
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), |