author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
154,212
11.04.2019 01:39:18
-32,400
c8302146dd60be3085b862b0898d36ccc5472229
add multinode md
[ { "change_type": "ADD", "old_path": null, "new_path": "example/MULTI_NODE.md", "diff": "+# Multi node\n+\n+## Usage of multi node sampling\n+\n+Example commands\n+1. Launching redis server (NOTE: `redis.conf`'s bind should be `0.0.0.0` to be able to access from another server).\n+2. `python ./run_pp...
Python
MIT License
deepx-inc/machina
add multinode md
154,212
11.04.2019 12:20:37
-32,400
6ae1b034f89ca56ec46354436903ce76ba2bcca5
[pol, model, vfunc] applying distributed data parallel
[ { "change_type": "MODIFY", "old_path": "machina/models/base.py", "new_path": "machina/models/base.py", "diff": "import torch.nn as nn\n+from machina.utils import get_device\nclass BaseModel(nn.Module):\n\"\"\"\n@@ -11,8 +12,9 @@ class BaseModel(nn.Module):\naction_space : gym.Space\nnet : torch.nn.M...
Python
MIT License
deepx-inc/machina
[pol, model, vfunc] applying distributed data parallel
154,212
11.04.2019 14:20:33
-32,400
1e0739bba345395d8d3c97344eba2af7903d978b
hiding redis
[ { "change_type": "MODIFY", "old_path": "example/run_ppo_multi_node.py", "new_path": "example/run_ppo_multi_node.py", "diff": "@@ -22,7 +22,7 @@ from machina.traj import Traj\nfrom machina.traj import epi_functional as ef\nfrom machina.samplers import DistributedEpiSampler\nfrom machina import logger...
Python
MIT License
deepx-inc/machina
hiding redis
154,212
11.04.2019 14:21:59
-32,400
17a640268c8dfc3d4ca997377f79ea4d6d318147
[run_ppo_multi_node.py] autopep
[ { "change_type": "MODIFY", "old_path": "example/run_ppo_multi_node.py", "new_path": "example/run_ppo_multi_node.py", "diff": "@@ -145,7 +145,8 @@ else:\nvf = DeterministicSVfunc(observation_space, vf_net, args.rnn,\ndata_parallel=args.data_parallel, parallel_dim=1 if args.rnn else 0)\n-sampler = Dis...
Python
MIT License
deepx-inc/machina
[run_ppo_multi_node.py] autopep
154,212
11.04.2019 14:46:43
-32,400
d47914c552e1dfe2b9bcd9ff342cba960c1578f9
[tests/sampler/test_sampler.py] fix
[ { "change_type": "MODIFY", "old_path": "tests/sampler/test_sampler.py", "new_path": "tests/sampler/test_sampler.py", "diff": "@@ -32,7 +32,7 @@ class TestTraj(unittest.TestCase):\nproc_slave = subprocess.Popen(['python', '-m', 'machina.samplers.distributed_epi_sampler',\n'--world_size', '1', '--rank...
Python
MIT License
deepx-inc/machina
[tests/sampler/test_sampler.py] fix
154,212
11.04.2019 14:54:48
-32,400
8f3b785b2554ed3e30be6b9cf4ab2e5057a1a77c
[test_sampler.py] fix
[ { "change_type": "MODIFY", "old_path": "tests/sampler/test_sampler.py", "new_path": "tests/sampler/test_sampler.py", "diff": "@@ -10,6 +10,7 @@ from machina.traj import Traj\nfrom machina.envs import GymEnv\nfrom machina.samplers import EpiSampler, DistributedEpiSampler\nfrom machina.pols.random_pol...
Python
MIT License
deepx-inc/machina
[test_sampler.py] fix
154,212
11.04.2019 15:05:57
-32,400
86dc349c5c352da7d6279fe9db612d24b3c3ce55
[test_algos.py] fix
[ { "change_type": "MODIFY", "old_path": "tests/test_algos.py", "new_path": "tests/test_algos.py", "diff": "@@ -699,7 +699,7 @@ class TestMPC(unittest.TestCase):\n# init models\ndm_net = ModelNet(self.env.observation_space, self.env.action_space)\ndm = DeterministicSModel(self.env.observation_space, s...
Python
MIT License
deepx-inc/machina
[test_algos.py] fix
154,212
11.04.2019 15:11:23
-32,400
d5c8db4fc1a2423532a5ddc2defc986f1e643fa5
[test_traj.py] add_traj's test
[ { "change_type": "MODIFY", "old_path": "tests/traj/test_traj.py", "new_path": "tests/traj/test_traj.py", "diff": "@@ -24,6 +24,12 @@ class TestTraj(unittest.TestCase):\ncls.traj.add_epis(epis)\ncls.traj.register_epis()\n+ def test_add_traj(self)\n+ new_traj = Traj()\n+ new_traj.add_traj(cls.traj)\n+...
Python
MIT License
deepx-inc/machina
[test_traj.py] add_traj's test
154,212
11.04.2019 15:12:09
-32,400
95ae8ab1ccae7a928bb5084d45d0a1b953cdc594
[traj.py, traj_functional.py] add synchronize method
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj.py", "new_path": "machina/traj/traj.py", "diff": "@@ -6,6 +6,7 @@ import functools\nimport numpy as np\nimport torch\n+import torch.distributed as dist\nfrom torch.nn.utils.rnn import pad_sequence\nimport torch.utils.data\n@@ -31,7 +32,7 @@ c...
Python
MIT License
deepx-inc/machina
[traj.py, traj_functional.py] add synchronize method
154,212
11.04.2019 15:27:31
-32,400
348e5a43d6310f31878ae43122aee2ed47459355
[test_traj.py] fix
[ { "change_type": "MODIFY", "old_path": "tests/traj/test_traj.py", "new_path": "tests/traj/test_traj.py", "diff": "@@ -26,9 +26,9 @@ class TestTraj(unittest.TestCase):\ndef test_add_traj(self):\nnew_traj = Traj()\n- new_traj.add_traj(cls.traj)\n- assert new_traj.num_epi == cls.traj.num_epi\n- assert ...
Python
MIT License
deepx-inc/machina
[test_traj.py] fix
154,212
11.04.2019 15:30:08
-32,400
55b4da83c5540a8e1cfadca7ad77d1a44fae433e
[traj_functional.py] change name
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj_functional.py", "new_path": "machina/traj/traj_functional.py", "diff": "@@ -10,7 +10,7 @@ from machina import loss_functional as lf\nfrom machina.utils import get_device, get_redis\n-def synchronize(traj, master_rank=0):\n+def sync(traj, mast...
Python
MIT License
deepx-inc/machina
[traj_functional.py] change name
154,212
11.04.2019 15:49:19
-32,400
8f386ccae6c9b715afe5e69d187c10662607c903
add example of multi node inference
[ { "change_type": "MODIFY", "old_path": "example/run_ppo_multi_node.py", "new_path": "example/run_ppo_multi_node.py", "diff": "@@ -9,6 +9,7 @@ from pprint import pprint\nimport numpy as np\nimport torch\n+import torch.distributed as dist\nimport torch.nn as nn\nimport torch.nn.functional as F\nimport...
Python
MIT License
deepx-inc/machina
add example of multi node inference
154,212
11.04.2019 17:47:22
-32,400
5679baf2c51cc2a99a6654f3d52c39e397fe9c9e
allocate net to gpu in ddp
[ { "change_type": "MODIFY", "old_path": "machina/models/base.py", "new_path": "machina/models/base.py", "diff": "@@ -34,6 +34,7 @@ class BaseModel(nn.Module):\nif data_parallel is True:\nself.dp_net = nn.DataParallel(self.net, dim=parallel_dim)\nelif data_parallel == 'ddp':\n+ self.net.to(get_device(...
Python
MIT License
deepx-inc/machina
allocate net to gpu in ddp
154,212
11.04.2019 17:59:23
-32,400
a1740934f28ba8302b649d6bd781f64151aa5713
pass ddp to traj
[ { "change_type": "MODIFY", "old_path": "example/run_ppo_multi_node.py", "new_path": "example/run_ppo_multi_node.py", "diff": "@@ -170,7 +170,7 @@ while args.max_epis > total_epi:\nif dist.get_rank() == 0:\nepis = sampler.sample(pol, max_steps=args.max_steps_per_iter)\nwith measure('train'):\n- traj ...
Python
MIT License
deepx-inc/machina
pass ddp to traj
154,212
11.04.2019 19:38:04
-32,400
66d5c070fb21f90c0e11657208756cec598e0cbe
[traj_functional.py] fix _int
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj_functional.py", "new_path": "machina/traj/traj_functional.py", "diff": "@@ -8,7 +8,7 @@ import torch.distributed as dist\nimport numpy as np\nfrom machina import loss_functional as lf\n-from machina.utils import get_device, get_redis\n+from m...
Python
MIT License
deepx-inc/machina
[traj_functional.py] fix _int
154,212
12.04.2019 11:03:44
-32,400
a6bac73443e7a0c9597ca90ab6055abb01de4341
[base.py] custom __getstate__
[ { "change_type": "MODIFY", "old_path": "machina/models/base.py", "new_path": "machina/models/base.py", "diff": "@@ -42,6 +42,12 @@ class BaseModel(nn.Module):\n'Bool and str(ddp) are allowed to be data_parallel.')\nself.dp_run = False\n+ def __getstate__(self):\n+ state = self.__dict__.copy()\n+ for...
Python
MIT License
deepx-inc/machina
[base.py] custom __getstate__
154,212
12.04.2019 12:37:42
-32,400
4c41fd2c1eda59bd90f2ec52c44409643aa0b79a
resolve serialization with ddp
[ { "change_type": "MODIFY", "old_path": "machina/pols/base.py", "new_path": "machina/pols/base.py", "diff": "@@ -65,11 +65,10 @@ class BasePol(nn.Module):\nelif isinstance(action_space, gym.spaces.Discrete):\nself.a_i_shape = (action_space.n, )\n- def __getstate__(self):\n- state = self.__dict__.copy...
Python
MIT License
deepx-inc/machina
resolve serialization with ddp
154,212
12.04.2019 12:53:13
-32,400
a53331d5a633c008b1131905fc041234445fac62
[pols/base.py] typo
[ { "change_type": "MODIFY", "old_path": "machina/pols/base.py", "new_path": "machina/pols/base.py", "diff": "@@ -69,9 +69,9 @@ class BasePol(nn.Module):\ndef __getstate__(self):\nstate = self.__dict__.copy()\n- if 'dp_run' in state['_modules']:\n+ if 'dp_net' in state['_modules']:\n_modules = copy.de...
Python
MIT License
deepx-inc/machina
[pols/base.py] typo
154,212
12.04.2019 12:55:52
-32,400
e362bc9981da1a76881860f73310c4bc0631752d
[traj_functional.py] remove self
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj_functional.py", "new_path": "machina/traj/traj_functional.py", "diff": "@@ -50,7 +50,7 @@ def sync(traj, master_rank=0):\nobj = cloudpickle.loads(r.get('Traj'))\ntraj.copy(obj)\n- r.set('Traj_trigger' + \"_{}\".format(self.rank), '0')\n+ r.se...
Python
MIT License
deepx-inc/machina
[traj_functional.py] remove self
154,212
12.04.2019 13:06:52
-32,400
15c660ba06876ce9d65b83c67fe0c69d6c5dfd2b
[traj_functional.py] master node
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj_functional.py", "new_path": "machina/traj/traj_functional.py", "diff": "@@ -34,6 +34,7 @@ def sync(traj, master_rank=0):\nr.set('Traj', obj)\ntriggers = {'Traj_trigger' +\n\"_{}\".format(rank): '1' for rank in range(traj.world_size)}\n+ trigg...
Python
MIT License
deepx-inc/machina
[traj_functional.py] master node
154,212
12.04.2019 13:15:30
-32,400
bfa46ada4c4d9ae92133c9c8285321cacc8c1eee
[run_ppo_multi_node.py] fix rank
[ { "change_type": "MODIFY", "old_path": "example/run_ppo_multi_node.py", "new_path": "example/run_ppo_multi_node.py", "diff": "@@ -97,7 +97,9 @@ args = parser.parse_args()\nif not os.path.exists(args.log):\nos.mkdir(args.log)\n-if args.local_rank == 0:\n+dist.init_process_group(backend=args.backend)\...
Python
MIT License
deepx-inc/machina
[run_ppo_multi_node.py] fix rank
154,212
12.04.2019 13:30:39
-32,400
ff38f25e1d5ee3427fc47a16df014d3d17a3d2f6
[base.py] remove dp_net in serialization
[ { "change_type": "MODIFY", "old_path": "machina/models/base.py", "new_path": "machina/models/base.py", "diff": "@@ -44,10 +44,17 @@ class BaseModel(nn.Module):\ndef __getstate__(self):\nstate = self.__dict__.copy()\n- for k in ['dp_net']:\n- del state[k]\n+ if 'dp_net' in state['_modules']:\n+ _modu...
Python
MIT License
deepx-inc/machina
[base.py] remove dp_net in serialization
154,212
12.04.2019 18:19:26
-32,400
321882196765199658cd033e2d2ef271ba3d371d
[traj.py] add distributed sampler to Traj
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj.py", "new_path": "machina/traj/traj.py", "diff": "@@ -165,10 +165,14 @@ class Traj(object):\ncur_batch_size = min(batch_size, len(indices) - self._next_id)\nself._next_id += cur_batch_size\n+ if self.ddp:\n+ indices = indices[cur_id + self.ra...
Python
MIT License
deepx-inc/machina
[traj.py] add distributed sampler to Traj
154,212
12.04.2019 21:26:21
-32,400
1b3ee3e42e4dc296c151cf8e76ae09cd622d4bac
add MULTI_NODE.md
[ { "change_type": "MODIFY", "old_path": "example/MULTI_NODE.md", "new_path": "example/MULTI_NODE.md", "diff": "@@ -6,3 +6,13 @@ Example commands\n1. Launching redis server (NOTE: `redis.conf`'s bind should be `0.0.0.0` to be able to access from another server).\n2. `python ./run_ppo_multi_node.py --s...
Python
MIT License
deepx-inc/machina
add MULTI_NODE.md
154,212
18.04.2019 10:55:38
-32,400
36c421ab95f5565eaf8cb4ec33c0ee06affedbe1
[.travis.yaml] add pytest
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -10,7 +10,7 @@ services:\ninstall:\n#- sudo add-apt-repository universe\n#- sudo apt install redis-server\n- - pip install --upgrade pip setuptools wheel psutil\n+ - pip install --upgrade pip setuptools whee...
Python
MIT License
deepx-inc/machina
[.travis.yaml] add pytest
154,211
01.06.2019 14:45:51
-32,400
c7c9db4bf051f3c1057e71beb6a25ecb56b308cd
[samplers/distributed_epi_sampler.py] reset DB state on initialization
[ { "change_type": "MODIFY", "old_path": "machina/samplers/distributed_epi_sampler.py", "new_path": "machina/samplers/distributed_epi_sampler.py", "diff": "@@ -40,6 +40,12 @@ class DistributedEpiSampler(object):\nself.r = get_redis()\n+ if rank == 0:\n+ # reset DB\n+ keys = self.r.keys(pattern=\"*_tri...
Python
MIT License
deepx-inc/machina
[samplers/distributed_epi_sampler.py] reset DB state on initialization
154,211
01.06.2019 14:53:22
-32,400
8097396d2d49ae0566f5659b7fcf1918761e615e
[samplers/distributed_epi_sampler.py] refactor
[ { "change_type": "MODIFY", "old_path": "machina/samplers/distributed_epi_sampler.py", "new_path": "machina/samplers/distributed_epi_sampler.py", "diff": "@@ -84,32 +84,68 @@ class DistributedEpiSampler(object):\nself.gather_to_master('epis')\n+ def sync(self, keys, target_value):\n+ \"\"\"Wait until...
Python
MIT License
deepx-inc/machina
[samplers/distributed_epi_sampler.py] refactor
154,211
03.06.2019 22:45:47
-32,400
cb1c6744d2c01e87eeed1c2df709f8c4aca4ebd9
[traj/traj.py] keep the traj on CPU when registering episodes When doing distributed training, traj is scattered using cloudpickle. The data should be on CPU to avoid unnecessarily copy. The data will be moved to GPU in the `_next_batch()`.
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj.py", "new_path": "machina/traj/traj.py", "diff": "@@ -83,14 +83,14 @@ class Traj(object):\nfor key in data_map:\nif remain_index is not None:\nself.data_map[key] = torch.cat(\n- [self.data_map[key][self._epis_index[remain_index]:], data_map[k...
Python
MIT License
deepx-inc/machina
[traj/traj.py] keep the traj on CPU when registering episodes When doing distributed training, traj is scattered using cloudpickle. The data should be on CPU to avoid unnecessarily copy. The data will be moved to GPU in the `_next_batch()`.
154,211
04.06.2019 23:12:14
-32,400
278752052065aa73efb57b2d5045a4e83dcba54c
[traj/traj.py] .to() for datamap tensor type conversion
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj.py", "new_path": "machina/traj/traj.py", "diff": "@@ -59,6 +59,12 @@ class Traj(object):\ndef num_epi(self):\nreturn len(self._epis_index) - 1\n+ def to(self, device):\n+ \"\"\"Perform data_map tensor type conversion\n+ \"\"\"\n+ for key in s...
Python
MIT License
deepx-inc/machina
[traj/traj.py] .to() for datamap tensor type conversion
154,211
04.06.2019 23:40:22
-32,400
3431e0b57c9bac7e49a488b173e0d1e09d3a6bea
introduce log_enable to control loggin
[ { "change_type": "MODIFY", "old_path": "machina/algos/ppo_clip.py", "new_path": "machina/algos/ppo_clip.py", "diff": "@@ -80,7 +80,8 @@ def train(traj, pol, vf,\nepoch, batch_size, num_epi_per_seq=1, # optimization hypers\nclip_param=0.2, ent_beta=1e-3,\nmax_grad_norm=0.5,\n- clip_vfunc=False\n+ cli...
Python
MIT License
deepx-inc/machina
introduce log_enable to control loggin
154,211
05.06.2019 23:17:41
-32,400
a3c6b2c034a63b32d545e9abf5a5717647196917
add log_enable variable to all algo
[ { "change_type": "MODIFY", "old_path": "machina/algos/airl.py", "new_path": "machina/algos/airl.py", "diff": "@@ -37,13 +37,15 @@ def train(agent_traj, expert_traj, pol, vf,\ndamping=0.1, max_kl=0.01, num_cg=10, # trpo hypers\noptim_pol=None,\nclip_param=0.2, max_grad_norm=0.5, clip_vfunc=False, kl_...
Python
MIT License
deepx-inc/machina
add log_enable variable to all algo
154,211
08.06.2019 09:32:07
-32,400
82b3021674f2db48fac4b2cc976c06a27642128d
[traj/traj.py] set rank and world_size even if no DDP is used This makes some code DDP agnostic
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj.py", "new_path": "machina/traj/traj.py", "diff": "@@ -50,6 +50,9 @@ class Traj(object):\nif ddp:\nself.rank = dist.get_rank()\nself.world_size = dist.get_world_size()\n+ else:\n+ self.rank = 0\n+ self.world_size = 1\n@property\ndef num_step(s...
Python
MIT License
deepx-inc/machina
[traj/traj.py] set rank and world_size even if no DDP is used This makes some code DDP agnostic
154,211
15.07.2019 20:12:41
-32,400
80c1584879472494bcf972122b3240a99f62af84
[samplers/raysampler.py] add ray sampler
[ { "change_type": "ADD", "old_path": null, "new_path": "machina/samplers/raysampler.py", "diff": "+\"\"\"\n+Sampler using ray\n+\"\"\"\n+\n+import copy\n+import time\n+\n+import ray\n+import gym\n+import numpy as np\n+import torch\n+import torch.multiprocessing as mp\n+\n+from machina.utils import cp...
Python
MIT License
deepx-inc/machina
[samplers/raysampler.py] add ray sampler
154,211
20.07.2019 12:08:16
-32,400
a9c4461aae190c397c7d10be6c33324c797bd2dd
[samplers/raysampler.py] load state dict
[ { "change_type": "MODIFY", "old_path": "machina/samplers/raysampler.py", "new_path": "machina/samplers/raysampler.py", "diff": "@@ -35,6 +35,15 @@ class Worker(object):\nself.pol.eval()\nself.pol.dp_run = False\n+ def set_pol_state(self, state_dict):\n+ from collections import OrderedDict\n+ new_sta...
Python
MIT License
deepx-inc/machina
[samplers/raysampler.py] load state dict
154,211
21.07.2019 14:44:29
-32,400
74cbf0232d639d7049f99aaa3612fda536fe70b6
remove dp_run
[ { "change_type": "MODIFY", "old_path": "machina/models/base.py", "new_path": "machina/models/base.py", "diff": "@@ -13,14 +13,9 @@ class BaseModel(nn.Module):\naction_space : gym.Space\nnet : torch.nn.Module\nrnn : bool\n- data_parallel : bool or str\n- If True, network computation is executed in pa...
Python
MIT License
deepx-inc/machina
remove dp_run
154,211
01.08.2019 21:32:50
-32,400
3279560f97a674dce7fd139edba3f876dc0970d1
[samplers/raysampler.py] accurate counting
[ { "change_type": "MODIFY", "old_path": "machina/samplers/raysampler.py", "new_path": "machina/samplers/raysampler.py", "diff": "@@ -187,7 +187,7 @@ class EpiSampler(object):\nepis.append(epi)\nn_steps += l\nn_epis += 1\n- if n_steps < max_steps and n_epis < max_epis:\n+ if n_steps < max_steps and (n...
Python
MIT License
deepx-inc/machina
[samplers/raysampler.py] accurate counting
154,211
01.08.2019 23:55:03
-32,400
49943589a7d98b4f1970709998ff3940679eb583
[samplers/raysampler.py] use custom resources to control scheduling
[ { "change_type": "MODIFY", "old_path": "machina/samplers/raysampler.py", "new_path": "machina/samplers/raysampler.py", "diff": "@@ -45,8 +45,8 @@ class Worker(object):\nself.pol.eval()\n@classmethod\n- def as_remote(cls):\n- return ray.remote(cls)\n+ def as_remote(cls, resources={}):\n+ return ray.r...
Python
MIT License
deepx-inc/machina
[samplers/raysampler.py] use custom resources to control scheduling
154,211
03.08.2019 15:28:21
-32,400
8efd8ab65cf66b2bef9ec3e47e2bbf391fdf0c18
[samplers/raysampler.py] set num_cpus=0 to avoid potential block
[ { "change_type": "MODIFY", "old_path": "machina/samplers/raysampler.py", "new_path": "machina/samplers/raysampler.py", "diff": "@@ -45,8 +45,13 @@ class Worker(object):\nself.pol.eval()\n@classmethod\n- def as_remote(cls, resources={}):\n- return ray.remote(resources=resources)(cls)\n+ def as_remote...
Python
MIT License
deepx-inc/machina
[samplers/raysampler.py] set num_cpus=0 to avoid potential block
154,211
04.08.2019 10:01:08
-32,400
3ed00d89dc11cb6bd053bec8558f8b2fdbc2c4f0
[logger.py] add tensorboard logging support Usage: call `logger.add_tensorboard_output(logdir)` before training. PyTorch >= 1.1 or tensorboardX is required.
[ { "change_type": "MODIFY", "old_path": "machina/logger.py", "new_path": "machina/logger.py", "diff": "@@ -1254,6 +1254,9 @@ _header_printed = False\n_running_processes = []\n_async_plot_flag = False\n+_summary_writer = None\n+_global_step = 0\n+\ndef _add_output(file_name, arr, fds, mode='a'):\nif f...
Python
MIT License
deepx-inc/machina
[logger.py] add tensorboard logging support Usage: call `logger.add_tensorboard_output(logdir)` before training. PyTorch >= 1.1 or tensorboardX is required.
154,211
04.08.2019 15:47:27
-32,400
8ecdfe3c9752351a22df7912b4a1ecd4e51e2837
[examples] fix examples
[ { "change_type": "MODIFY", "old_path": "example/run_mixed_env.py", "new_path": "example/run_mixed_env.py", "diff": "@@ -47,6 +47,9 @@ parser.add_argument('--max_epis_per_iter', type=int,\ndefault=1024, help='Number of episodes in an iteration.')\nparser.add_argument('--epoch_per_iter', type=int, def...
Python
MIT License
deepx-inc/machina
[examples] fix examples
154,211
07.08.2019 20:14:33
-32,400
868caec3102a78d391d5463c436e15be15f0f5a0
[samplers/raysampler.py] change arguments ordering same as other samplers
[ { "change_type": "MODIFY", "old_path": "machina/samplers/raysampler.py", "new_path": "machina/samplers/raysampler.py", "diff": "@@ -163,7 +163,7 @@ class EpiSampler(object):\nDefault (empty node_info) is using ray scheduling policy.\n\"\"\"\n- def __init__(self, pol, env, num_parallel=8, prepro=None...
Python
MIT License
deepx-inc/machina
[samplers/raysampler.py] change arguments ordering same as other samplers
154,211
07.08.2019 20:17:07
-32,400
d6c5d04beec0c431948fcea5c02f8383bf4d72f2
[tests] add ray sampler test
[ { "change_type": "MODIFY", "old_path": "tests/sampler/test_sampler.py", "new_path": "tests/sampler/test_sampler.py", "diff": "@@ -5,10 +5,12 @@ import unittest\nimport numpy as np\nimport psutil\n+import ray\nfrom machina.traj import Traj\nfrom machina.envs import GymEnv\nfrom machina.samplers impor...
Python
MIT License
deepx-inc/machina
[tests] add ray sampler test
154,211
07.08.2019 21:33:14
-32,400
962db7986ba873eb45dec1bcfff35495f28170d9
[setup.py] fix
[ { "change_type": "MODIFY", "old_path": "setup.py", "new_path": "setup.py", "diff": "@@ -17,10 +17,10 @@ install_requires = [\n'cloudpickle',\n'redis',\n'gym>=0.10.5',\n- 'numpy>=1.13.3',\n+ 'numpy>=1.14',\n'terminaltables',\n'pandas',\n- 'ray[debug]',\n+ 'ray[debug]==0.7.2',\n]\nsetup(\n" } ]
Python
MIT License
deepx-inc/machina
[setup.py] fix
154,211
07.08.2019 23:02:49
-32,400
869fe0210460c6b8b552e6c14873535153487f8c
[utils.py] add wrapper function for DDP
[ { "change_type": "MODIFY", "old_path": "machina/utils.py", "new_path": "machina/utils.py", "diff": "@@ -71,3 +71,19 @@ def detach_tensor_dict(d):\ncontinue\n_d[key] = d[key].detach()\nreturn _d\n+\n+\n+def wrap_ddp(cls):\n+ \"\"\"Return wrapper class for the torch.DDP and apex. Delegete getattr to t...
Python
MIT License
deepx-inc/machina
[utils.py] add wrapper function for DDP
154,211
08.08.2019 10:47:32
-32,400
4da186d599d88c8fd93229720ad4846b28d6729e
[samplers/raysampler.py] fix docstring
[ { "change_type": "MODIFY", "old_path": "machina/samplers/raysampler.py", "new_path": "machina/samplers/raysampler.py", "diff": "@@ -201,7 +201,6 @@ class EpiSampler(object):\nParameters\n----------\n- pol : Pol\nmax_epis : int or None\nmaximum episodes of episodes.\nIf None, this value is ignored.\n...
Python
MIT License
deepx-inc/machina
[samplers/raysampler.py] fix docstring
154,211
16.08.2019 20:13:27
-32,400
c862dfd3c222fc77da3828ccf11e2e53c39205eb
[utils.py] add util function for ray initialization
[ { "change_type": "MODIFY", "old_path": "example/run_ppo_distributed.py", "new_path": "example/run_ppo_distributed.py", "diff": "@@ -71,7 +71,7 @@ from machina.traj import epi_functional as ef\nfrom machina.traj import traj_functional as tf\nfrom machina.samplers.raysampler import EpiSampler\nfrom ma...
Python
MIT License
deepx-inc/machina
[utils.py] add util function for ray initialization
154,211
16.08.2019 23:19:43
-32,400
d948d41ba18be10239e53349547943804ed881a2
[utils.py] add util function for ddp
[ { "change_type": "MODIFY", "old_path": "machina/utils.py", "new_path": "machina/utils.py", "diff": "import contextlib\n+import copy\n+import numpy as np\nimport redis\nimport torch\n+import torch.nn as nn\n+import torch.distributed as dist\nimport torch.autograd as autograd\n+try:\n+ import ray\n+ex...
Python
MIT License
deepx-inc/machina
[utils.py] add util function for ddp
154,211
16.08.2019 23:20:02
-32,400
afe9fc38d9ddcf1c46a3f88aea9a56a3a9c76677
[examples] rewrite distributed exmaple
[ { "change_type": "MODIFY", "old_path": "example/run_ppo_distributed.py", "new_path": "example/run_ppo_distributed.py", "diff": "@@ -21,7 +21,7 @@ Example:\nProgram overview:\n- Agent (main loop)\n+ Main loop\n|-------------------------------|\n| init() |\n| | |\n@@ -72,126 +72,47 @@ from machina.tra...
Python
MIT License
deepx-inc/machina
[examples] rewrite distributed exmaple
154,211
17.08.2019 10:28:55
-32,400
8a8d72a3480fe2d005627d8f5af6f01453b89e1a
[samplers/raysampler.py] introduce SampleWorker so that users can override sampling method easily
[ { "change_type": "MODIFY", "old_path": "machina/samplers/raysampler.py", "new_path": "machina/samplers/raysampler.py", "diff": "@@ -33,8 +33,10 @@ except ImportError:\nprint(\"ray not available. run `pip install ray`\")\nraise\n+from abc import ABC, abstractmethod\nimport copy\nimport time\n+from ty...
Python
MIT License
deepx-inc/machina
[samplers/raysampler.py] introduce SampleWorker so that users can override sampling method easily
154,211
18.08.2019 11:32:59
-32,400
efdb449f9c97ab05be3a7805eaed7af1a0eb8383
[examples] update document of multi node training
[ { "change_type": "MODIFY", "old_path": "example/MULTI_NODE.md", "new_path": "example/MULTI_NODE.md", "diff": "# Multi node\n-## Usage of multi node sampling (DistributedEpiSampler)\n+## Multi-node sampling\n-Example commands\n+### DistributedEpiSampler\n+- Example commands\n1. Launching redis server...
Python
MIT License
deepx-inc/machina
[examples] update document of multi node training
154,211
18.08.2019 11:35:35
-32,400
4639d39417e0d4dda05620cec16718f31b0af96c
[examples] add ddp example
[ { "change_type": "ADD", "old_path": null, "new_path": "example/run_ppo_distributed.py", "diff": "+\"\"\"\n+Distributed (multi-GPU) training example using torch.DDP.\n+Use torch.distributed.launch to start this script.\n+Only the rank 0 perform sampling.\n+\n+Example:\n+- 1node, 2GPU\n+ python -m tor...
Python
MIT License
deepx-inc/machina
[examples] add ddp example
154,211
18.08.2019 12:59:25
-32,400
4e11f19d9da485e9a6931039d695e0bf59a152e4
[examples] properly shutdown workers
[ { "change_type": "MODIFY", "old_path": "example/run_ppo_distributed.py", "new_path": "example/run_ppo_distributed.py", "diff": "@@ -64,7 +64,7 @@ parser.add_argument('--redis_port', type=str, default=\"6379\",\nparser.add_argument('--local_rank', type=int,\nhelp='Local rank of this process. This opt...
Python
MIT License
deepx-inc/machina
[examples] properly shutdown workers
154,212
12.09.2019 15:40:12
-32,400
2a7418b47fe8b424338d5e2b963041a42a59b302
[logger.py] no print option for dump_tabular
[ { "change_type": "MODIFY", "old_path": "machina/logger.py", "new_path": "machina/logger.py", "diff": "@@ -1453,6 +1453,10 @@ table_printer = TerminalTablePrinter()\ndef dump_tabular(*args, **kwargs):\nwh = kwargs.pop(\"write_header\", None)\nif len(_tabular) > 0:\n+ no_print = kwargs.pop('no_print',...
Python
MIT License
deepx-inc/machina
[logger.py] no print option for dump_tabular
154,211
10.11.2019 19:51:28
-32,400
4856335d455fedea96f1faaee4d106b0a0d274e2
[setup.py] workadound for deletion of FlattenDictWrapper
[ { "change_type": "MODIFY", "old_path": "tests/test_env.py", "new_path": "tests/test_env.py", "diff": "@@ -9,7 +9,11 @@ import numpy as np\nimport torch\nfrom torch import nn\n+try:\nfrom gym.wrappers import FlattenDictWrapper\n+except:\n+ # gym 0.15.4 remove FlattendDictWrapper\n+ from gym.wrappers ...
Python
MIT License
deepx-inc/machina
[setup.py] workadound for deletion of FlattenDictWrapper
20,248
27.07.2017 12:48:24
25,200
3f56d49ca77b63d13f9d98de384656127ae22ee2
janky hyper tutorial server
[ { "change_type": "ADD", "old_path": null, "new_path": ".gitignore", "diff": "+target/\n+**/*.rs.bk\n" }, { "change_type": "ADD", "old_path": null, "new_path": "Cargo.lock", "diff": "+[root]\n+name = \"guac-rs\"\n+version = \"0.1.0\"\n+dependencies = [\n+ \"futures 0.1.14 (registr...
Rust
Apache License 2.0
althea-net/althea_rs
janky hyper tutorial server
20,248
27.07.2017 21:53:51
25,200
2b6861f48516952618edd71692eb2d595e52d917
rough draft of readme
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "name = \"guac-rs\"\nversion = \"0.1.0\"\ndependencies = [\n- \"futures 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)\",\n- \"hyper 0.11.1 (registry+https://github.com/rust-lang/crates.io-index)\"...
Rust
Apache License 2.0
althea-net/althea_rs
rough draft of readme
20,248
28.07.2017 22:23:09
25,200
d705fea1bf0137e6b5bd02221b95197e0e15012a
fake crypto module
[ { "change_type": "ADD", "old_path": null, "new_path": "src/crypto.rs", "diff": "+use types::{Bytes32, Address, PrivateKey, Uint256, Signature};\n+use std::collections::HashMap;\n+\n+struct Crypto {\n+ keystore: HashMap<Address, PrivateKey>,\n+}\n+\n+\n+impl Crypto {\n+ pub fn sign(&self, address: &A...
Rust
Apache License 2.0
althea-net/althea_rs
fake crypto module
20,248
30.07.2017 13:13:40
25,200
e995a7691925e0c5a17cbcae13ca3295ebe6f8cf
participant enum and bounded trait
[ { "change_type": "MODIFY", "old_path": "src/types.rs", "new_path": "src/types.rs", "diff": "extern crate num;\nuse self::num::bigint::{BigUint, BigInt};\n-// use self::num::Bounded;\n+use self::num::Bounded;\n+\n+impl Bounded for Uint256 {\n+ fn min_value() -> Self {\n+ 0\n+ };\n+ fn max_value() -> ...
Rust
Apache License 2.0
althea-net/althea_rs
participant enum and bounded trait
20,248
02.08.2017 15:35:49
25,200
5933b39a4cc02afe249701ad978d3d4b90e5747a
building out more of the propose_channel function
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -3,11 +3,23 @@ name = \"guac-rs\"\nversion = \"0.1.0\"\ndependencies = [\n\"bigint 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)\",\n+ \"jsonrpc-client-core 0.1.0 (registry+https://github.com/r...
Rust
Apache License 2.0
althea-net/althea_rs
building out more of the propose_channel function
20,248
13.11.2017 21:40:59
28,800
7982138c2cc0a210ed38f621acaa689758a01103
serialization works with dervive
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "name = \"guac-rs\"\nversion = \"0.1.0\"\ndependencies = [\n+ \"array_serialization_derive 0.1.0\",\n\"base64 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)\",\n\"bigint 4.2.0 (registry+https://gith...
Rust
Apache License 2.0
althea-net/althea_rs
serialization works with dervive
20,248
14.11.2017 16:16:59
28,800
9b7e0df2ca55fd7e3e7f2e619f3836fcc7bd5cc4
doing some nicer stuff with the traits
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -5,6 +5,7 @@ dependencies = [\n\"array_serialization_derive 0.1.0\",\n\"base64 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)\",\n\"bigint 4.2.0 (registry+https://github.com/rust-lang/crates.io-...
Rust
Apache License 2.0
althea-net/althea_rs
doing some nicer stuff with the traits
20,248
19.11.2017 13:00:09
28,800
f50f44227818dd23189d5a3c257b00592d6244ff
working on numbers
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "-[root]\n-name = \"guac-rs\"\n-version = \"0.1.0\"\n-dependencies = [\n- \"array_serialization_derive 0.1.0\",\n- \"base64 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)\",\n- \"bigint 4.2.0 (regis...
Rust
Apache License 2.0
althea-net/althea_rs
working on numbers
20,248
20.11.2017 14:25:24
28,800
78b83810c080c6ea7f6e08a3a9435b0c568af671
clean stuff up a bit
[ { "change_type": "MODIFY", "old_path": "src/lib.rs", "new_path": "src/lib.rs", "diff": "@@ -21,21 +21,13 @@ pub fn b64(input: TokenStream) -> TokenStream {\n}\nfn get_array_length(body: &syn::Body) -> usize {\n+ let err_msg = \"cannot derive array deref on this type\";\nmatch *body {\n- syn::Body::S...
Rust
Apache License 2.0
althea-net/althea_rs
clean stuff up a bit
20,248
21.11.2017 21:09:45
28,800
c00b3cefecc210455f69f0e42c6cbc28edb770b2
seems like the bignums are ok
[ { "change_type": "MODIFY", "old_path": "src/num256.rs", "new_path": "src/num256.rs", "diff": "@@ -16,17 +16,21 @@ impl Deref for Uint256 {\nimpl Add for Uint256 {\ntype Output = Uint256;\nfn add(self, v: Uint256) -> Uint256 {\n- Uint256(self.0 + v.0)\n+ let num = self.0 + v.0;\n+ if num.bits() > 256...
Rust
Apache License 2.0
althea-net/althea_rs
seems like the bignums are ok
20,248
29.11.2017 13:31:46
28,800
fa0be7c175720c7b96a09c904f4174fb0bb12806
remove dead code and superfluous enum
[ { "change_type": "MODIFY", "old_path": "src/lib.rs", "new_path": "src/lib.rs", "diff": "use std::io;\n-use std::io::{Read,Write};\n-use std::net::TcpStream;\nextern crate mockstream;\nuse std::str;\nuse mockstream::SharedMockStream;\nuse std::collections::VecDeque;\n-// From rust_mockstream MIT\n-pu...
Rust
Apache License 2.0
althea-net/althea_rs
remove dead code and superfluous enum
20,248
01.12.2017 06:26:33
28,800
715eb8fb9f3e3050ed0232b6545d8275e80b5553
v0.01 Good mocking and testing strategy, error handling, docs
[ { "change_type": "ADD", "old_path": null, "new_path": ".gitignore", "diff": "+\n+/target/\n+**/*.rs.bk\n+Cargo.lock\n" }, { "change_type": "ADD", "old_path": null, "new_path": "Cargo.toml", "diff": "+[package]\n+name = \"althea_kernel_interface\"\n+version = \"0.1.0\"\n+authors =...
Rust
Apache License 2.0
althea-net/althea_rs
v0.01 Good mocking and testing strategy, error handling, docs
20,248
01.12.2017 06:32:35
28,800
fc17397ae16ee35cad5d831982ca989fb75d47c6
add description and license
[ { "change_type": "MODIFY", "old_path": "Cargo.toml", "new_path": "Cargo.toml", "diff": "name = \"althea_kernel_interface\"\nversion = \"0.1.0\"\nauthors = [\"Jehan <jehan.tremback@gmail.com>\"]\n+description = \"Gets information from and changes settings of kernel network stacks\"\n+license = \"Apac...
Rust
Apache License 2.0
althea-net/althea_rs
add description and license
20,248
03.12.2017 15:58:12
28,800
f8ddc473b7d10970c045a2caa036a78c785efcb9
add delete_flow and register_flow and refactor polymorphism
[ { "change_type": "MODIFY", "old_path": "src/lib.rs", "new_path": "src/lib.rs", "diff": "@@ -19,33 +19,36 @@ pub enum Error {\nUTF8(std::string::FromUtf8Error),\nParseInt(std::num::ParseIntError),\nAddrParse(std::net::AddrParseError),\n- #[error(msg_embedded, no_from, non_std)] RuntimeError(String),\...
Rust
Apache License 2.0
althea-net/althea_rs
add delete_flow and register_flow and refactor polymorphism
20,248
03.12.2017 16:06:58
28,800
6afe4ce4a6d9cf2822cd1201ff6e10dc045fc290
rename and reorganize functions
[ { "change_type": "MODIFY", "old_path": "src/lib.rs", "new_path": "src/lib.rs", "diff": "@@ -60,24 +60,12 @@ impl KernelInterface {\nOk(vec)\n}\n- /// Returns a vector of neighbors reachable over layer 2, giving the hardware\n- /// and IP address of each. Implemented with `ip neighbor` on Linux.\n- p...
Rust
Apache License 2.0
althea-net/althea_rs
rename and reorganize functions
20,248
04.12.2017 10:49:45
28,800
31b82904cf6eadddb046d99f2723e810e18dd248
little bit more refactoring
[ { "change_type": "MODIFY", "old_path": "src/lib.rs", "new_path": "src/lib.rs", "diff": "-use std::io;\n+use std::io::{Read, Write, BufReader};\nextern crate mockstream;\nuse std::str;\nuse mockstream::SharedMockStream;\n@@ -32,6 +32,17 @@ fn find_babel_val(val: &str, line: &str) -> Result<String, Er...
Rust
Apache License 2.0
althea-net/althea_rs
little bit more refactoring
20,248
04.12.2017 22:53:38
28,800
3a946d8c4e3ddfe91f6d5b74e211b9e9b2fc682f
add looping errors to delete_counter
[ { "change_type": "MODIFY", "old_path": "Cargo.toml", "new_path": "Cargo.toml", "diff": "@@ -9,3 +9,4 @@ license = \"Apache-2.0\"\nregex = \"0.2\"\nhwaddr = \"0.1.2\"\nderive-error = \"0.0.4\"\n+itertools = \"0.7.4\"\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path...
Rust
Apache License 2.0
althea-net/althea_rs
add looping errors to delete_counter
20,248
05.12.2017 12:02:41
28,800
4c1c951ea7427763c5a97698f16542745e0b4a5a
update ownership- might still be wrong
[ { "change_type": "MODIFY", "old_path": "src/lib.rs", "new_path": "src/lib.rs", "diff": "@@ -7,7 +7,6 @@ extern crate regex;\nextern crate itertools;\nuse itertools::join;\n-use std::collections::HashMap;\nuse std::net::IpAddr;\nuse hwaddr::HwAddr;\nuse std::str::FromStr;\n@@ -49,7 +48,7 @@ impl Kern...
Rust
Apache License 2.0
althea-net/althea_rs
update ownership- might still be wrong
20,248
05.12.2017 12:31:11
28,800
b75a67348593547b9cdb8a4914994f1b618625ac
fix ownership crap for real this time by making everything mutable
[ { "change_type": "MODIFY", "old_path": "src/lib.rs", "new_path": "src/lib.rs", "diff": "@@ -48,7 +48,7 @@ impl KernelInterface {\n}\n}\n- fn get_neighbors_linux(mut self) -> Result<Vec<(HwAddr, IpAddr)>, Error> {\n+ fn get_neighbors_linux(&mut self) -> Result<Vec<(HwAddr, IpAddr)>, Error> {\nlet out...
Rust
Apache License 2.0
althea-net/althea_rs
fix ownership crap for real this time by making everything mutable
20,248
07.12.2017 21:28:57
28,800
233f01d03f5f27dd6bee65424d11a8a704440fd9
complete error handling, add new function, get rid of xroute, add ipnetwork
[ { "change_type": "MODIFY", "old_path": "Cargo.toml", "new_path": "Cargo.toml", "diff": "@@ -6,4 +6,5 @@ authors = [\"jkilpatr <jkilpatr@redhat.com>\"]\n[dependencies]\nmockstream = { git = \"https://github.com/lazy-bitfield/rust-mockstream.git\" }\nascii = \"0.8.6\"\n+ip_network = \"0.1\"\nderive-er...
Rust
Apache License 2.0
althea-net/althea_rs
complete error handling, add new function, get rid of xroute, add ipnetwork
20,248
10.12.2017 21:02:23
28,800
cb2747e80b52ad8aa7d715ae68b0e6a2f010d918
add destination counters and fix nomenclature
[ { "change_type": "MODIFY", "old_path": "src/lib.rs", "new_path": "src/lib.rs", "diff": "@@ -61,13 +61,13 @@ impl KernelInterface {\nOk(vec)\n}\n- fn start_counter_linux(\n+ fn start_flow_counter_linux(\n&mut self,\nsource_neighbor: HwAddr,\ndestination: IpAddr,\n) -> Result<(), Error> {\n- self.dele...
Rust
Apache License 2.0
althea-net/althea_rs
add destination counters and fix nomenclature
20,248
12.12.2017 10:27:09
28,800
075a8b4e9d24b262396a7107a4fcb76b743fe486
logging correctly
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -133,6 +133,18 @@ dependencies = [\n\"syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)\",\n]\n+[[package]]\n+name = \"docopt\"\n+version = \"0.8.1\"\n+source = \"registry+https://github.com/...
Rust
Apache License 2.0
althea-net/althea_rs
logging correctly
20,248
12.12.2017 16:59:56
28,800
fcd78e366825618aca7ceb66eedac29a6c68edd3
clean up and fix timing issue
[ { "change_type": "MODIFY", "old_path": ".gitignore", "new_path": ".gitignore", "diff": "*.log\n+*.pid\n/deps/\n.cache\n.vagrant\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "rita.sh", "new_path": "rita.sh", "diff": "@@ -39,16 +39,24 @@ pass_string()\...
Rust
Apache License 2.0
althea-net/althea_rs
clean up and fix timing issue
20,248
13.12.2017 17:09:36
28,800
8d6bb6170e1fdb10a81fde2f163fa861bbe49c57
fix reading bug
[ { "change_type": "MODIFY", "old_path": "Cargo.toml", "new_path": "Cargo.toml", "diff": "@@ -8,3 +8,4 @@ mockstream = { git = \"https://github.com/lazy-bitfield/rust-mockstream.git\" }\nascii = \"0.8.6\"\nip_network = \"0.1\"\nderive-error = \"0.0.4\"\n+log = \"0.3\"\n\\ No newline at end of file\n" ...
Rust
Apache License 2.0
althea-net/althea_rs
fix reading bug
20,248
13.12.2017 17:10:41
28,800
b35c19857dfd5e0551d5b09382f460cd27ec8fbd
improve cleanup and stop processes
[ { "change_type": "MODIFY", "old_path": "rita.sh", "new_path": "rita.sh", "diff": "@@ -39,13 +39,11 @@ pass_string()\nfi\n}\n-stop_babel()\n+stop_processes()\n{\nset +eux\n- for f in babeld-*.pid\n+ for f in *.pid\ndo\n- echo \"Processing $f file...\"\n- # take action on each file. $f store current f...
Rust
Apache License 2.0
althea-net/althea_rs
improve cleanup and stop processes
20,248
13.12.2017 17:42:37
28,800
cb6913e51f193b04b8b47f8a4b62ce0c0cb9a827
fix anohter read bug
[ { "change_type": "MODIFY", "old_path": "src/lib.rs", "new_path": "src/lib.rs", "diff": "@@ -46,10 +46,10 @@ fn find_babel_val(val: &str, line: &str) -> Result<String, Error> {\n}\n-fn contains_terminator(message: &String) -> bool {\n- message.contains(\"\\nok\\n\") ||\n- message.contains(\"\\nno\\n\...
Rust
Apache License 2.0
althea-net/althea_rs
fix anohter read bug
20,248
15.12.2017 12:46:35
28,800
cac6bf936e548da48db615953ca4aac9945ceb66
attempt to get bridge up- doesn't work
[ { "change_type": "ADD", "old_path": null, "new_path": "fill", "diff": "+806\n" }, { "change_type": "MODIFY", "old_path": "rita.sh", "new_path": "rita.sh", "diff": "@@ -61,9 +61,9 @@ cleanup\nsource $network_lab << EOF\n{\n\"nodes\": {\n- \"1\": { \"ip\": \"1.0.0.1\" },\n- \"2\": ...
Rust
Apache License 2.0
althea-net/althea_rs
attempt to get bridge up- doesn't work
20,248
15.12.2017 17:15:26
28,800
2b58dc4bed8a96e23f74be9b2c03fa447b01638b
add per-interface bridge
[ { "change_type": "MODIFY", "old_path": "rita.sh", "new_path": "rita.sh", "diff": "#!/usr/bin/env bash\nset -euo pipefail\n-cd ../babeld\n-make\n-make install\n-\n-cd ../rita\n-cargo build\n-\n-cd ../integration-tests\n-\nnetwork_lab=./deps/network-lab/network-lab.sh\nbabeld=../babeld/babeld\nrita=.....
Rust
Apache License 2.0
althea-net/althea_rs
add per-interface bridge
20,248
15.12.2017 18:38:16
28,800
e2468b01e3a218c6412dae4ea3199988d0afcc1f
more logging and writing pid, ignoring non /128's
[ { "change_type": "MODIFY", "old_path": "Cargo.lock", "new_path": "Cargo.lock", "diff": "@@ -27,6 +27,7 @@ dependencies = [\n\"derive-error 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)\",\n\"hwaddr 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)\",\n\"itertools 0.7.4 (r...
Rust
Apache License 2.0
althea-net/althea_rs
more logging and writing pid, ignoring non /128's
20,248
16.12.2017 00:36:26
28,800
9bc9b7d8cfbd9a1d1846d969a8aea5754aa4ce59
get rita to work, add tests, and cleanup
[ { "change_type": "MODIFY", "old_path": "rita.sh", "new_path": "rita.sh", "diff": "#!/usr/bin/env bash\nset -euo pipefail\n-network_lab=./deps/network-lab/network-lab.sh\n-\n-babeld=../babeld/babeld\n-rita=../rita/target/debug/rita\n+cd ../babeld\n+make\n+make install\n-# cd ../babeld\n-# make\n-# ma...
Rust
Apache License 2.0
althea-net/althea_rs
get rita to work, add tests, and cleanup
20,248
16.12.2017 00:37:59
28,800
f66847515c1ebe3b4068f1857f09f293c63a23d0
add logging, get retry to work
[ { "change_type": "MODIFY", "old_path": "Cargo.toml", "new_path": "Cargo.toml", "diff": "@@ -10,3 +10,4 @@ regex = \"0.2\"\nhwaddr = \"0.1.2\"\nderive-error = \"0.0.4\"\nitertools = \"0.7.4\"\n+log = \"0.3\"\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "src/l...
Rust
Apache License 2.0
althea-net/althea_rs
add logging, get retry to work
20,248
16.12.2017 00:39:17
28,800
8d2a3e9628b07457616cf1b1e4cb800e71573a4c
remove unecessary turbofishes
[ { "change_type": "MODIFY", "old_path": "src/lib.rs", "new_path": "src/lib.rs", "diff": "@@ -127,7 +127,7 @@ impl<T: Read + Write> Babel<T> {\nself.write(\"dump\\n\")?;\nfor entry in self.read()?.split(\"\\n\") {\nif entry.contains(\"local price\") {\n- return Ok(find_babel_val(\"price\", entry)?.par...
Rust
Apache License 2.0
althea-net/althea_rs
remove unecessary turbofishes
20,248
17.12.2017 00:09:31
28,800
d468b517934713f69c324b5e01190998a4089d96
correct code and logs for adding up neighbor debts
[ { "change_type": "MODIFY", "old_path": "src/main.rs", "new_path": "src/main.rs", "diff": "@@ -86,11 +86,14 @@ fn main() {\ninfo!(\"Got flow counters: {:?}\", counters);\nfor (neigh_mac, dest_ip, bytes) in counters {\n- let kb = bytes / 1000;\n+ trace!(\"Calculating neighbor debt: mac: {:?}, destinat...
Rust
Apache License 2.0
althea-net/althea_rs
correct code and logs for adding up neighbor debts
20,248
17.12.2017 00:09:50
28,800
790a44c43f398eb7955e33802fae04bb78892e38
test adding up neighbor debts
[ { "change_type": "MODIFY", "old_path": "rita.sh", "new_path": "rita.sh", "diff": "@@ -86,7 +86,7 @@ ip netns exec netlab-1 $babeld -I babeld-n1.pid -d 1 -L babeld-n1.log -h 1 -P 5\nip netns exec netlab-1 bash -c 'failed=1\nwhile [ $failed -ne 0 ]\ndo\n- ping6 -n 2001::3 > ping.log\n+ ping6 -n -s 140...
Rust
Apache License 2.0
althea-net/althea_rs
test adding up neighbor debts
20,248
19.12.2017 08:42:05
28,800
1b892bc3189a90679740c7b8236327efc7fb024d
move my_bucket out of trait
[ { "change_type": "MODIFY", "old_path": "src/lib.rs", "new_path": "src/lib.rs", "diff": "@@ -28,15 +28,12 @@ pub trait Storage {\n&self,\nid: &T,\n) -> Result<Option<U>, Error>;\n- /// Insert a value under the given key.\n+ /// Insert a value under the given key. Will overwrite the existing value.\nf...
Rust
Apache License 2.0
althea-net/althea_rs
move my_bucket out of trait
20,248
19.12.2017 11:47:38
28,800
6a341f25ff44a3099a0105c6e129e3a3b8b33d3f
add docs and rename RocksStorage to RocksJsonStorage
[ { "change_type": "MODIFY", "old_path": "src/lib.rs", "new_path": "src/lib.rs", "diff": "@@ -22,6 +22,27 @@ pub enum Error {\n#[error(msg_embedded, no_from, non_std)] Storage(String),\n}\n+/// Storage is a trait that can be implemented by structs wrapping key value stores.\n+///\n+/// ```\n+/// #[der...
Rust
Apache License 2.0
althea-net/althea_rs
add docs and rename RocksStorage to RocksJsonStorage
20,248
19.12.2017 15:29:34
28,800
4c2c5532edb19a90b06aa82a196d842a632abd01
jtrembacks fork of hwaddress
[ { "change_type": "MODIFY", "old_path": "Cargo.toml", "new_path": "Cargo.toml", "diff": "@@ -7,7 +7,7 @@ license = \"Apache-2.0\"\n[dependencies]\nregex = \"0.2\"\n-hwaddr = \"0.1.2\"\nderive-error = \"0.0.4\"\nitertools = \"0.7.4\"\nlog = \"0.3\"\n+hwaddr = { git = \"https://github.com/jtremback/rus...
Rust
Apache License 2.0
althea-net/althea_rs
jtrembacks fork of hwaddress
20,248
19.12.2017 16:32:15
28,800
9c47ae2d5c69389d7068d878cf25f087a1ed1cd5
clean and make new pub
[ { "change_type": "MODIFY", "old_path": "src/lib.rs", "new_path": "src/lib.rs", "diff": "#[macro_use]\nextern crate serde_derive;\n-\n+use rocksdb::DB;\n#[macro_use]\nextern crate derive_error;\n@@ -13,7 +13,7 @@ use serde::Serialize;\nuse std::str;\n-use self::rocksdb::DB;\n+// use self::rocksdb::DB...
Rust
Apache License 2.0
althea-net/althea_rs
clean and make new pub
20,248
21.12.2017 13:54:19
28,800
0bdf6febc650ea3199fe6b6a53519131abc8afe6
type alias to avoid needing the type argument
[ { "change_type": "MODIFY", "old_path": "src/lib.rs", "new_path": "src/lib.rs", "diff": "@@ -81,19 +81,23 @@ pub struct Neighbour {\npub cost: u16,\n}\n-pub struct Babel<T: Read + Write> {\n+pub type Babel = InnerBabel<TcpStream>;\n+\n+#[doc(hidden)]\n+pub struct InnerBabel<T: Read + Write> {\nstream...
Rust
Apache License 2.0
althea-net/althea_rs
type alias to avoid needing the type argument
20,248
22.12.2017 11:29:34
28,800
b7bb861f0354d25a04e888464b0f7562c639bd93
different mocking strategy
[ { "change_type": "MODIFY", "old_path": "src/lib.rs", "new_path": "src/lib.rs", "diff": "@@ -27,23 +27,29 @@ pub enum Error {\nRuntimeError(String),\n}\n+#[cfg(test)]\npub struct KernelInterface {\nrun_command: Box<FnMut(&str, &[&str]) -> Result<Output, Error>>,\n}\n+#[cfg(not(test))]\n+pub struct Ke...
Rust
Apache License 2.0
althea-net/althea_rs
different mocking strategy
20,248
29.12.2017 23:22:47
28,800
13f1429c1823c3bd96b3292c497b886167193258
integration tests run but do not pass
[ { "change_type": "MODIFY", "old_path": "integration-tests/.gitignore", "new_path": "integration-tests/.gitignore", "diff": "/deps/\n.cache\n.vagrant\n+/babeld/\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "integration-tests/rita.sh", "new_path": "integra...
Rust
Apache License 2.0
althea-net/althea_rs
integration tests run but do not pass
20,248
30.12.2017 10:44:26
28,800
7494894cd3f885fd85faf87aab2d80905d53b646
new rita has logs and id
[ { "change_type": "MODIFY", "old_path": "rita/src/main.rs", "new_path": "rita/src/main.rs", "diff": "-// #![feature(getpid)]\n+#![feature(getpid)]\nextern crate althea_kernel_interface;\nextern crate babel_monitor;\nextern crate traffic_watcher;\n-// use std::process;\n+use std::process;\nextern crat...
Rust
Apache License 2.0
althea-net/althea_rs
new rita has logs and id
20,248
30.12.2017 10:44:48
28,800
d9d4c8e7b3a2f772afe474828fcf3cc05c44076f
cleanup and correct rita integration test
[ { "change_type": "MODIFY", "old_path": "integration-tests/rita.sh", "new_path": "integration-tests/rita.sh", "diff": "#!/usr/bin/env bash\nset -euo pipefail\n+\n+build_babel () {\nif [ ! -d \"./babeld\" ] ; then\ngit clone -b althea \"https://github.com/althea-mesh/babeld\" \"./babeld\"\nfi\n@@ -8,1...
Rust
Apache License 2.0
althea-net/althea_rs
cleanup and correct rita integration test
20,248
30.12.2017 11:28:16
28,800
982c901df26bcc36b0bb2d4e3666e331380224a3
organize rita.sh integration test
[ { "change_type": "MODIFY", "old_path": "integration-tests/rita.sh", "new_path": "integration-tests/rita.sh", "diff": "@@ -91,9 +91,20 @@ source $network_lab << EOF\n}\nEOF\n-ip netns exec netlab-1 sysctl -w net.ipv4.ip_forward=1\n-ip netns exec netlab-1 sysctl -w net.ipv6.conf.all.forwarding=1\n-ip ...
Rust
Apache License 2.0
althea-net/althea_rs
organize rita.sh integration test
20,248
30.12.2017 11:39:24
28,800
012cf616f4994f14d47583c7ea497d45a292a8cb
rita integration test passes again
[ { "change_type": "MODIFY", "old_path": "rita/src/main.rs", "new_path": "rita/src/main.rs", "diff": "@@ -65,14 +65,12 @@ fn main() {\n// String::from(\"thread\"),\n// ];\n- // for val in vals {\n- // tx1.send(val).unwrap();\n- // thread::sleep(Duration::from_secs(1));\n- // }\n- // tx1.send(format!(\...
Rust
Apache License 2.0
althea-net/althea_rs
rita integration test passes again
20,248
30.12.2017 17:37:22
28,800
ebbcf2fb28f435cb0f069f0c92f64ca2fe6fcd55
first draft of debt keeper
[ { "change_type": "MODIFY", "old_path": "althea_types/src/lib.rs", "new_path": "althea_types/src/lib.rs", "diff": "@@ -14,7 +14,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};\n#[derive(ArrayTupleDeref, ArrayTupleBase64)]\npub struct Bytes32([u8; 32]);\n-#[derive(ArrayTupleDeref, ...
Rust
Apache License 2.0
althea-net/althea_rs
first draft of debt keeper