repo
stringlengths
1
191
file
stringlengths
23
351
code
stringlengths
0
5.32M
file_length
int64
0
5.32M
avg_line_length
float64
0
2.9k
max_line_length
int64
0
288k
extension_type
stringclasses
1 value
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/chaos/ChaosCrawler.java
/* * * Copyright 2012 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
2,537
21.460177
79
java
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/chaos/ChaosInstanceSelector.java
/* * * Copyright 2012 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
2,591
45.285714
120
java
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/chaos/BlockAllNetworkTrafficChaosType.java
/* * * Copyright 2013 Justin Santa Barbara. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
3,412
34.185567
119
java
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/chaos/NullRouteChaosType.java
/* * * Copyright 2013 Justin Santa Barbara. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
1,276
30.146341
114
java
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/chaos/ChaosMonkey.java
/* * * Copyright 2012 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
4,723
26.625731
120
java
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/chaos/BurnCpuChaosType.java
/* * * Copyright 2013 Justin Santa Barbara. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
1,181
30.105263
94
java
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/chaos/NetworkCorruptionChaosType.java
/* * * Copyright 2013 Justin Santa Barbara. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
1,099
29.555556
79
java
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/chaos/KillProcessesChaosType.java
/* * * Copyright 2013 Justin Santa Barbara. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
1,116
28.394737
79
java
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/chaos/BurnIoChaosType.java
/* * * Copyright 2013 Justin Santa Barbara. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
2,583
30.901235
94
java
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/chaos/SshConfig.java
/* * * Copyright 2013 Justin Santa Barbara. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
3,115
30.16
106
java
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/chaos/FailDynamoDbChaosType.java
/* * * Copyright 2013 Justin Santa Barbara. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
1,099
29.555556
79
java
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/chaos/ShutdownInstanceChaosType.java
/* * * Copyright 2013 Justin Santa Barbara. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
1,613
26.355932
79
java
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/chaos/FailDnsChaosType.java
/* * * Copyright 2013 Justin Santa Barbara. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
1,062
28.527778
79
java
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/chaos/ChaosType.java
/* * * Copyright 2013 Justin Santa Barbara. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
4,307
28.108108
120
java
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/resources/janitor/JanitorMonkeyResource.java
/* * * Copyright 2012 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
9,813
40.940171
191
java
SimianArmy
SimianArmy-master/src/main/java/com/netflix/simianarmy/resources/chaos/ChaosMonkeyResource.java
/* * * Copyright 2012 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
10,408
39.501946
121
java
chlorine-finder
chlorine-finder-master/src/test/java/io/dataapps/chlorine/finder/TestAddFinders.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
5,734
32.735294
99
java
chlorine-finder
chlorine-finder-master/src/test/java/io/dataapps/chlorine/finder/TestDefaultFinders.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
7,364
31.021739
90
java
chlorine-finder
chlorine-finder-master/src/test/java/io/dataapps/chlorine/finder/TestMasker.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
4,571
29.278146
92
java
chlorine-finder
chlorine-finder-master/src/main/java/io/dataapps/chlorine/mask/Redactor.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
3,119
28.158879
75
java
chlorine-finder
chlorine-finder-master/src/main/java/io/dataapps/chlorine/mask/MaskFactory.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
5,137
28.36
93
java
chlorine-finder
chlorine-finder-master/src/main/java/io/dataapps/chlorine/mask/Masker.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
1,273
27.311111
75
java
chlorine-finder
chlorine-finder-master/src/main/java/io/dataapps/chlorine/pattern/RegexFinder.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
3,085
24.716667
82
java
chlorine-finder
chlorine-finder-master/src/main/java/io/dataapps/chlorine/pattern/CompositeCreditCardFinder.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
2,505
43.75
151
java
chlorine-finder
chlorine-finder-master/src/main/java/io/dataapps/chlorine/pattern/CreditCardFinder.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
1,999
26.39726
96
java
chlorine-finder
chlorine-finder-master/src/main/java/io/dataapps/chlorine/pattern/FinderUtil.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
1,322
27.76087
94
java
chlorine-finder
chlorine-finder-master/src/main/java/io/dataapps/chlorine/finder/CompositeFinder.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
3,095
23.571429
92
java
chlorine-finder
chlorine-finder-master/src/main/java/io/dataapps/chlorine/finder/Finder.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
1,139
26.142857
75
java
chlorine-finder
chlorine-finder-master/src/main/java/io/dataapps/chlorine/finder/FinderResult.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
1,234
27.068182
75
java
chlorine-finder
chlorine-finder-master/src/main/java/io/dataapps/chlorine/finder/DefaultFinderProvider.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
5,738
29.04712
100
java
chlorine-finder
chlorine-finder-master/src/main/java/io/dataapps/chlorine/finder/FinderEngine.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
5,943
27.170616
99
java
chlorine-finder
chlorine-finder-master/src/main/java/io/dataapps/chlorine/finder/FinderProvider.java
/* * Copyright 2016, DataApps Corporation (http://dataApps.io) . * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
898
28
75
java
cobra-icaps2015-icaps2015/src/main/java/tt/euclid2i/trajectory/DelayedStartTrajectory.java
cobra-icaps2015-icaps2015/src/main/java/tt/euclid2i/trajectory/DelayedStartTrajectory.java
package tt.euclid2i.trajectory; import tt.euclid2i.EvaluatedTrajectory; import tt.euclid2i.Point; import tt.euclid2i.Trajectory; public class DelayedStartTrajectory implements EvaluatedTrajectory { EvaluatedTrajectory baseTraj; int delay; public DelayedStartTrajectory(EvaluatedTrajectory baseTraj, int delay) { ...
775
17.046512
73
java
cobra-icaps2015-icaps2015/src/main/java/tt/euclidtime3i/region/MovingCircleMinusPoint.java
cobra-icaps2015-icaps2015/src/main/java/tt/euclidtime3i/region/MovingCircleMinusPoint.java
package tt.euclidtime3i.region; import tt.euclidtime3i.Point; import tt.euclidtime3i.Region; public class MovingCircleMinusPoint implements Region { private MovingCircle movingCircle; private tt.euclid2i.Point pointToSubtract; public MovingCircleMinusPoint(MovingCircle movingCircle, tt.euclid2i.Point pointToS...
1,084
23.111111
97
java
cobra-icaps2015-icaps2015/src/main/java/tt/euclidtime3i/region/CircleMovingToTarget.java
cobra-icaps2015-icaps2015/src/main/java/tt/euclidtime3i/region/CircleMovingToTarget.java
package tt.euclidtime3i.region; import tt.euclid2i.Trajectory; public class CircleMovingToTarget extends MovingCircle { private int targetReachedTime; public CircleMovingToTarget(Trajectory trajectory, int radius, int targetReachedTime) { super(trajectory, radius); this.targetReachedTime = targetReachedTime; ...
572
23.913043
122
java
cobra-icaps2015-icaps2015/src/main/java/tt/euclidtime3i/util/IntersectionCheckerWithProtectedPoint.java
cobra-icaps2015-icaps2015/src/main/java/tt/euclidtime3i/util/IntersectionCheckerWithProtectedPoint.java
package tt.euclidtime3i.util; import java.util.Collection; import tt.euclid2i.Point; import tt.euclid2i.util.SeparationDetector; import tt.euclidtime3i.Region; import tt.euclidtime3i.region.MovingCircle; import tt.util.NotImplementedException; public class IntersectionCheckerWithProtectedPoint { public static b...
1,723
34.916667
149
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/common/event/DurativeEventProcessor.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/common/event/DurativeEventProcessor.java
package cz.agents.alite.common.event; import java.util.Collection; import java.util.HashMap; import java.util.LinkedList; import java.util.Map; import java.util.PriorityQueue; import java.util.Queue; import java.util.SortedSet; import java.util.TreeSet; import org.apache.log4j.Level; import org.apache.log4j.Logger; ...
7,420
30.987069
148
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/common/event/ActivityLogEntry.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/common/event/ActivityLogEntry.java
package cz.agents.alite.common.event; public class ActivityLogEntry { public static enum Type {EVENT_HANDLED, IDLE, EVENT_RECIEVED}; public String processName; public Type type; public long startTime; public long duration; public long expandedStates; public ActivityLogEntry(String processName, Type type, lo...
543
23.727273
71
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/common/event/DurativeEventHandler.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/common/event/DurativeEventHandler.java
package cz.agents.alite.common.event; public interface DurativeEventHandler { final static long COUNT_SYSTEM_NANOS = -1; public DurativeEventProcessor getEventProcessor(); /** * @return the duration of computation associated with handling the event, * in simulation time. * R...
550
26.55
78
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/common/event/DurativeEvent.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/common/event/DurativeEvent.java
package cz.agents.alite.common.event; public final class DurativeEvent implements Comparable<DurativeEvent> { private final long id; private final long time; private final String process; private final DurativeEventHandler handler; public DurativeEvent(long id, long time, String proces...
1,112
20.823529
92
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/communication/InboxBasedCommunicator.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/communication/InboxBasedCommunicator.java
package cz.agents.alite.communication; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; import cz.agents.alite.communication.channel.CommunicationChannelException; import cz.agents.alite.communication.content.Content; import cz.agents.alite.communication.content.error.ErrorContent; import cz.a...
2,610
24.598039
100
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/communication/eventbased/ConcurrentProcessCommunicationChannel.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/communication/eventbased/ConcurrentProcessCommunicationChannel.java
package cz.agents.alite.communication.eventbased; import java.util.LinkedList; import java.util.List; import java.util.Map; import cz.agents.alite.common.event.DurativeEvent; import cz.agents.alite.common.event.DurativeEventHandler; import cz.agents.alite.common.event.DurativeEventProcessor; import cz.agents.alite.co...
3,470
34.783505
237
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/simulation/ConcurrentProcessSimulation.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/simulation/ConcurrentProcessSimulation.java
package cz.agents.alite.simulation; import org.apache.log4j.Level; import org.apache.log4j.Logger; import cz.agents.alite.common.event.DurativeEvent; import cz.agents.alite.common.event.DurativeEventProcessor; import cz.agents.alite.common.event.EventProcessor; public class ConcurrentProcessSimulation extends Durati...
3,655
32.236364
259
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/simulation/vis/SimulationControlLayer.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/alite/simulation/vis/SimulationControlLayer.java
package cz.agents.alite.simulation.vis; import java.awt.Color; import java.awt.Graphics2D; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.text.MessageFormat; import cz.agents.alite.vis.Vis; import cz.agents.alite.vis.layer.AbstractLayer; import cz.agents.alite.vis.layer.VisLayer; impor...
2,745
23.963636
95
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/CommonTime.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/CommonTime.java
package cz.agents.map4rt; public class CommonTime { static long startedAt = System.currentTimeMillis(); public static int currentTimeMs() { return (int) (System.currentTimeMillis() - startedAt); } }
208
19.9
56
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/ScenarioCreator.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/ScenarioCreator.java
package cz.agents.map4rt; import java.awt.Color; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.text.DecimalFormat; import java.util.Arrays; import java.util.Collection; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Ran...
15,017
33.763889
214
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/BestResponse.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/BestResponse.java
package cz.agents.map4rt.agent; import java.awt.Color; import java.util.ArrayList; import java.util.Collection; import java.util.LinkedList; import java.util.List; import org.apache.log4j.Logger; import org.jgrapht.DirectedGraph; import org.jgrapht.Graph; import org.jgrapht.GraphPath; import org.jgrapht.alg.AStarShor...
8,582
38.736111
235
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/Agent.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/Agent.java
package cz.agents.map4rt.agent; import java.util.Collection; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.Random; import org.apache.log4j.Logger; import org.jgrapht.DirectedGraph; import org.jgrapht.GraphPath; import org.jgrapht.alg.AStarShortestPathSimple; import...
7,428
29.322449
194
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/PositionBlackboard.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/PositionBlackboard.java
package cz.agents.map4rt.agent; import java.util.HashMap; import java.util.Map; import tt.euclid2d.Point; import tt.euclid2d.Vector; public class PositionBlackboard { public static class Record { public Record(int agentId, Point position, Vector velocity, double radius) { this.agentId = agentId; this.posi...
874
24.735294
127
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/ORCAAgent.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/ORCAAgent.java
package cz.agents.map4rt.agent; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Random; import org.apache.log4j.Logger; import org.jgrapht.DirectedGraph; import rvolib.KdTree; import rvolib.R...
8,899
30.338028
223
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/COBRAAgent.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/COBRAAgent.java
package cz.agents.map4rt.agent; import java.util.LinkedList; import java.util.Random; import org.jgrapht.DirectedGraph; import org.jgrapht.util.HeuristicToGoal; import org.jgrapht.util.heuristics.PerfectHeuristic; import tt.euclid2i.EvaluatedTrajectory; import tt.euclid2i.Line; import tt.euclid2i.Point; import tt.eu...
2,826
34.78481
130
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/CurrentTasks.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/CurrentTasks.java
package cz.agents.map4rt.agent; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Random; import tt.euclid2i.Point; import tt.jointeuclid2ni.probleminstance.RelocationTask; public class CurrentTasks { public static List<Point> docks = null; static ...
1,229
26.954545
84
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/Token.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/Token.java
package cz.agents.map4rt.agent; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import tt.euclidtime3i.Region; import tt.euclidtime3i.region.MovingCircle; public class Token { static boolean locked; static Map<String, Region> regions = new HashMap<String, Regio...
921
20.44186
70
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/PlanningAgent.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/agent/PlanningAgent.java
package cz.agents.map4rt.agent; import java.util.Collection; import java.util.LinkedList; import java.util.List; import java.util.Random; import org.apache.log4j.Logger; import org.jgrapht.DirectedGraph; import org.jgrapht.util.HeuristicToGoal; import org.jgrapht.util.heuristics.PerfectHeuristic; import cz.agents.ma...
5,985
34.211765
147
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/InformNewPosition.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/InformNewPosition.java
package cz.agents.map4rt.msg; import javax.vecmath.Tuple2i; import tt.euclid2d.Point; import tt.euclid2d.Vector; import cz.agents.alite.communication.content.Content; public class InformNewPosition extends Content { final String agentName; final int agentId; final Point position; final Vector velocity; f...
1,082
18.339286
106
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/ValueMsg.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/ValueMsg.java
package cz.agents.map4rt.msg; import tt.euclidtime3i.Region; public class ValueMsg extends InformNewTrajectory { public ValueMsg(String agentName, Region region) { super(agentName, region); } @Override public String toString() { return "Value [agentName=" + agentName + ", region=" + ...
343
19.235294
76
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/InformAgentFinishedRound.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/InformAgentFinishedRound.java
package cz.agents.map4rt.msg; import cz.agents.alite.communication.content.Content; public class InformAgentFinishedRound extends Content { final String agentName; final int round; public InformAgentFinishedRound(String agentName, int round) { super(null); this.agentName = agentName; ...
616
19.566667
72
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/InformNewTrajectory.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/InformNewTrajectory.java
package cz.agents.map4rt.msg; import tt.euclidtime3i.Region; import cz.agents.alite.communication.content.Content; public class InformNewTrajectory extends Content { final String agentName; final tt.euclidtime3i.Region region; final double weight; public InformNewTrajectory(String agentName, Region r...
1,032
23.023256
80
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/InformNewRound.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/InformNewRound.java
package cz.agents.map4rt.msg; import cz.agents.alite.communication.content.Content; public class InformNewRound extends Content { final int roundNo; public InformNewRound(int roundNo) { super(null); this.roundNo = roundNo; } public int getRoundNo() { return roundNo; } @Overr...
415
17.086957
53
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/InformAgentFailed.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/InformAgentFailed.java
package cz.agents.map4rt.msg; import cz.agents.alite.communication.content.Content; public class InformAgentFailed extends Content { final String agentName; public InformAgentFailed(String agentName) { super(null); this.agentName = agentName; } public String getAgentName() { ...
449
19.454545
59
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/InformAgentFinished.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/InformAgentFinished.java
package cz.agents.map4rt.msg; import cz.agents.alite.communication.content.Content; public class InformAgentFinished extends Content { final String agentName; public InformAgentFinished(String agentName) { super(null); this.agentName = agentName; } public String getAgentName() { ...
455
19.727273
61
java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/InformSuccessfulConvergence.java
cobra-icaps2015-icaps2015/src/main/java/cz/agents/map4rt/msg/InformSuccessfulConvergence.java
package cz.agents.map4rt.msg; import cz.agents.alite.communication.content.Content; public class InformSuccessfulConvergence extends Content { public InformSuccessfulConvergence() { super(null); } @Override public String toString() { return "InformGloballyConverged []"; } }
291
16.176471
58
java
jkind
jkind-master/jkind-common/src/jkind/SolverOption.java
package jkind; public enum SolverOption { SMTINTERPOL, Z3, YICES, YICES2, CVC4, MATHSAT; @Override public String toString() { return name().toLowerCase(); } }
167
14.272727
47
java
jkind
jkind-master/jkind-common/src/jkind/Assert.java
package jkind; public class Assert { public static void isNotNull(Object o) { if (o == null) { throw new JKindException("Object unexpectedly null"); } } public static void isTrue(boolean b) { if (!b) { throw new JKindException("Assertion failed"); } } public static void isFalse(boolean b) { if (...
383
16.454545
56
java
jkind
jkind-master/jkind-common/src/jkind/JKindException.java
package jkind; /** * An exception generated from JKind or the JKind API */ public class JKindException extends RuntimeException { private static final long serialVersionUID = 1L; public JKindException(String message) { super(message); } public JKindException(String message, Throwable t) { super(message, t)...
327
18.294118
54
java
jkind
jkind-master/jkind-common/src/jkind/AllIvcsAlgorithm.java
package jkind; public enum AllIvcsAlgorithm { OFFLINE_MIVC_ENUM_ALG, ONLINE_MIVC_ENUM_ALG; @Override public String toString() { return name().toLowerCase(); } }
168
15.9
45
java
jkind
jkind-master/jkind-common/src/jkind/lustre/NamedType.java
package jkind.lustre; import jkind.Assert; import jkind.lustre.visitors.TypeVisitor; public class NamedType extends Type { public final String name; public NamedType(Location location, String name) { super(location); Assert.isNotNull(name); Assert.isFalse(name.equals(BOOL.toString())); Assert.isFalse(name....
1,880
19.67033
76
java
jkind
jkind-master/jkind-common/src/jkind/lustre/NodeCallExpr.java
package jkind.lustre; import java.util.Arrays; import java.util.List; import jkind.Assert; import jkind.lustre.visitors.ExprVisitor; import jkind.util.Util; public class NodeCallExpr extends Expr { public final String node; public final List<Expr> args; public NodeCallExpr(Location loc, String node, List<Expr> a...
715
20.058824
66
java
jkind
jkind-master/jkind-common/src/jkind/lustre/CondactExpr.java
package jkind.lustre; import java.util.Arrays; import java.util.List; import jkind.Assert; import jkind.lustre.visitors.ExprVisitor; import jkind.util.Util; public class CondactExpr extends Expr { public final Expr clock; public final NodeCallExpr call; public final List<Expr> args; public CondactExpr(Location ...
860
22.27027
83
java
jkind
jkind-master/jkind-common/src/jkind/lustre/ArrayUpdateExpr.java
package jkind.lustre; import jkind.Assert; import jkind.lustre.visitors.ExprVisitor; public class ArrayUpdateExpr extends Expr { public final Expr array; public final Expr index; public final Expr value; public ArrayUpdateExpr(Location location, Expr array, Expr index, Expr value) { super(location); Assert.i...
663
21.896552
80
java
jkind
jkind-master/jkind-common/src/jkind/lustre/ArrayAccessExpr.java
package jkind.lustre; import jkind.Assert; import jkind.lustre.visitors.ExprVisitor; public class ArrayAccessExpr extends Expr { public final Expr array; public final Expr index; public ArrayAccessExpr(Location location, Expr array, Expr index) { super(location); Assert.isNotNull(array); Assert.isNotNull(in...
645
20.533333
68
java
jkind
jkind-master/jkind-common/src/jkind/lustre/LustreUtil.java
package jkind.lustre; import static jkind.lustre.NamedType.BOOL; import java.math.BigDecimal; import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.function.BiFunction; import jkind.lustre.builders.NodeBuilder; public class LustreUtil { /* Binary...
7,887
24.04127
84
java
jkind
jkind-master/jkind-common/src/jkind/lustre/Equation.java
package jkind.lustre; import java.util.Collections; import java.util.List; import jkind.Assert; import jkind.lustre.visitors.AstVisitor; import jkind.util.Util; public class Equation extends Ast { public final List<IdExpr> lhs; public final Expr expr; public Equation(Location location, List<IdExpr> lhs, Expr exp...
845
20.692308
66
java
jkind
jkind-master/jkind-common/src/jkind/lustre/RealExpr.java
package jkind.lustre; import java.math.BigDecimal; import jkind.Assert; import jkind.lustre.visitors.ExprVisitor; public class RealExpr extends Expr { public final BigDecimal value; public RealExpr(Location location, BigDecimal value) { super(location); Assert.isNotNull(value); this.value = value; } publ...
479
17.461538
55
java
jkind
jkind-master/jkind-common/src/jkind/lustre/RecordType.java
package jkind.lustre; import java.util.Map; import java.util.SortedMap; import jkind.Assert; import jkind.lustre.visitors.TypeVisitor; import jkind.util.Util; public class RecordType extends Type { public final String id; public final SortedMap<String, Type> fields; public RecordType(Location location, String id...
1,008
19.18
76
java
jkind
jkind-master/jkind-common/src/jkind/lustre/Node.java
package jkind.lustre; import java.util.List; import jkind.Assert; import jkind.lustre.visitors.AstVisitor; import jkind.util.Util; public class Node extends Ast { public final String id; public final List<VarDecl> inputs; public final List<VarDecl> outputs; public final List<VarDecl> locals; public final List<E...
1,754
34.816327
116
java
jkind
jkind-master/jkind-common/src/jkind/lustre/RecordAccessExpr.java
package jkind.lustre; import jkind.Assert; import jkind.lustre.visitors.ExprVisitor; public class RecordAccessExpr extends Expr { public final Expr record; public final String field; public RecordAccessExpr(Location location, Expr record, String field) { super(location); Assert.isNotNull(record); Assert.isN...
573
21.076923
72
java
jkind
jkind-master/jkind-common/src/jkind/lustre/Expr.java
package jkind.lustre; import jkind.lustre.visitors.AstVisitor; import jkind.lustre.visitors.ExprVisitor; public abstract class Expr extends Ast { public Expr(Location location) { super(location); } @SuppressWarnings("unchecked") @Override public <T, S extends T> S accept(AstVisitor<T, S> visitor) { return a...
413
22
61
java
jkind
jkind-master/jkind-common/src/jkind/lustre/Contract.java
package jkind.lustre; import java.util.List; import jkind.lustre.visitors.AstVisitor; import jkind.util.Util; public class Contract extends Ast { public final List<Expr> requires; public final List<Expr> ensures; public Contract(Location location, List<Expr> requires, List<Expr> ensures) { super(location); t...
619
21.962963
78
java
jkind
jkind-master/jkind-common/src/jkind/lustre/BoolExpr.java
package jkind.lustre; import jkind.Assert; import jkind.lustre.visitors.ExprVisitor; public class BoolExpr extends Expr { public final boolean value; public BoolExpr(Location location, boolean value) { super(location); Assert.isNotNull(value); this.value = value; } public BoolExpr(boolean value) { this(...
440
17.375
52
java
jkind
jkind-master/jkind-common/src/jkind/lustre/BinaryOp.java
package jkind.lustre; public enum BinaryOp { PLUS("+"), MINUS("-"), MULTIPLY("*"), DIVIDE("/"), INT_DIVIDE("div"), MODULUS("mod"), EQUAL("="), NOTEQUAL( "<>"), GREATER(">"), LESS("<"), GREATEREQUAL( ">="), LESSEQUAL("<="), OR("or"), AND("and"), XOR("xor"), IMPLIES("=>"), ARROW("->"); private String str; p...
667
22.857143
108
java
jkind
jkind-master/jkind-common/src/jkind/lustre/Program.java
package jkind.lustre; import java.util.Arrays; import java.util.List; import jkind.lustre.visitors.AstVisitor; import jkind.util.Util; public class Program extends Ast { public final List<TypeDef> types; public final List<Constant> constants; public final List<Function> functions; public final List<Node> nodes; ...
1,167
23.851064
107
java
jkind
jkind-master/jkind-common/src/jkind/lustre/Constant.java
package jkind.lustre; import jkind.Assert; import jkind.lustre.visitors.AstVisitor; public class Constant extends Ast { public final String id; public final Type type; public final Expr expr; public Constant(Location location, String id, Type type, Expr expr) { super(location); Assert.isNotNull(id); // 'ty...
624
20.551724
70
java
jkind
jkind-master/jkind-common/src/jkind/lustre/UnaryOp.java
package jkind.lustre; public enum UnaryOp { NEGATIVE("-"), NOT("not"), PRE("pre"); private String str; private UnaryOp(String str) { this.str = str; } @Override public String toString() { return str; } public static UnaryOp fromString(String string) { for (UnaryOp op : UnaryOp.values()) { if (op.t...
392
14.115385
50
java
jkind
jkind-master/jkind-common/src/jkind/lustre/EnumType.java
package jkind.lustre; import java.util.List; import jkind.Assert; import jkind.lustre.visitors.TypeVisitor; import jkind.util.Util; public class EnumType extends Type { public final String id; public final List<String> values; public EnumType(Location location, String id, List<String> values) { super(location)...
934
17.333333
69
java
jkind
jkind-master/jkind-common/src/jkind/lustre/TupleType.java
package jkind.lustre; import java.util.List; import java.util.StringJoiner; import jkind.lustre.visitors.TypeVisitor; import jkind.util.Util; public class TupleType extends Type { public final List<Type> types; public TupleType(List<? extends Type> types) { super(Location.NULL); if (types != null && types.siz...
1,111
20.384615
79
java
jkind
jkind-master/jkind-common/src/jkind/lustre/Function.java
package jkind.lustre; import java.util.Collections; import java.util.List; import jkind.Assert; import jkind.lustre.visitors.AstVisitor; import jkind.util.Util; public class Function extends Ast { public final String id; public final List<VarDecl> inputs; public final List<VarDecl> outputs; public Function(Loca...
909
24.277778
93
java
jkind
jkind-master/jkind-common/src/jkind/lustre/ArrayExpr.java
package jkind.lustre; import java.util.List; import jkind.lustre.visitors.ExprVisitor; import jkind.util.Util; public class ArrayExpr extends Expr { public final List<Expr> elements; public ArrayExpr(Location loc, List<Expr> elements) { super(loc); this.elements = Util.safeList(elements); } public ArrayExp...
475
18.04
54
java
jkind
jkind-master/jkind-common/src/jkind/lustre/CastExpr.java
package jkind.lustre; import jkind.Assert; import jkind.lustre.visitors.ExprVisitor; public class CastExpr extends Expr { public final Type type; public final Expr expr; public CastExpr(Location location, Type type, Expr expr) { super(location); Assert.isNotNull(type); Assert.isNotNull(expr); this.type = ...
523
18.407407
59
java
jkind
jkind-master/jkind-common/src/jkind/lustre/Type.java
package jkind.lustre; import jkind.Assert; import jkind.lustre.visitors.TypeVisitor; public abstract class Type { public final Location location; protected Type(Location location) { Assert.isNotNull(location); this.location = location; } public abstract <T> T accept(TypeVisitor<T> visitor); }
306
18.1875
54
java
jkind
jkind-master/jkind-common/src/jkind/lustre/ArrayType.java
package jkind.lustre; import jkind.Assert; import jkind.lustre.visitors.TypeVisitor; public class ArrayType extends Type { public final Type base; public final int size; public ArrayType(Location location, Type base, int size) { super(location); Assert.isNotNull(base); Assert.isTrue(size > 0); this.base =...
1,231
17.953846
67
java
jkind
jkind-master/jkind-common/src/jkind/lustre/IfThenElseExpr.java
package jkind.lustre; import jkind.Assert; import jkind.lustre.visitors.ExprVisitor; public class IfThenElseExpr extends Expr { public final Expr cond; public final Expr thenExpr; public final Expr elseExpr; public IfThenElseExpr(Location location, Expr cond, Expr thenExpr, Expr elseExpr) { super(location); ...
696
22.233333
84
java
jkind
jkind-master/jkind-common/src/jkind/lustre/BinaryExpr.java
package jkind.lustre; import jkind.Assert; import jkind.lustre.visitors.ExprVisitor; public class BinaryExpr extends Expr { public final Expr left; public final BinaryOp op; public final Expr right; public BinaryExpr(Location location, Expr left, BinaryOp op, Expr right) { super(location); Assert.isNotNull(l...
632
20.827586
75
java
jkind
jkind-master/jkind-common/src/jkind/lustre/RecordExpr.java
package jkind.lustre; import java.util.Map; import java.util.SortedMap; import jkind.Assert; import jkind.lustre.visitors.ExprVisitor; import jkind.util.Util; public class RecordExpr extends Expr { public final String id; public final SortedMap<String, Expr> fields; public RecordExpr(Location loc, String id, Map...
707
21.125
71
java
jkind
jkind-master/jkind-common/src/jkind/lustre/RecordUpdateExpr.java
package jkind.lustre; import jkind.Assert; import jkind.lustre.visitors.ExprVisitor; public class RecordUpdateExpr extends Expr { public final Expr record; public final String field; public final Expr value; public RecordUpdateExpr(Location location, Expr record, String field, Expr value) { super(location); ...
679
22.448276
84
java
jkind
jkind-master/jkind-common/src/jkind/lustre/Location.java
package jkind.lustre; public class Location { public final int line; public final int charPositionInLine; public Location(int line, int charPositionInLine) { this.line = line; this.charPositionInLine = charPositionInLine; } @Override public String toString() { return line + ":" + charPositionInLine; } ...
379
19
56
java
jkind
jkind-master/jkind-common/src/jkind/lustre/TupleExpr.java
package jkind.lustre; import java.util.List; import jkind.lustre.visitors.ExprVisitor; import jkind.util.Util; public class TupleExpr extends Expr { public final List<Expr> elements; public TupleExpr(Location loc, List<? extends Expr> elements) { super(loc); if (elements != null && elements.size() == 1) { ...
773
21.114286
74
java
jkind
jkind-master/jkind-common/src/jkind/lustre/IntExpr.java
package jkind.lustre; import java.math.BigInteger; import jkind.Assert; import jkind.lustre.visitors.ExprVisitor; public class IntExpr extends Expr { public final BigInteger value; public IntExpr(Location location, BigInteger value) { super(location); Assert.isNotNull(value); this.value = value; } public...
559
17.666667
54
java
jkind
jkind-master/jkind-common/src/jkind/lustre/TypeDef.java
package jkind.lustre; import jkind.Assert; import jkind.lustre.visitors.AstVisitor; public class TypeDef extends Ast { public final String id; public final Type type; public TypeDef(Location location, String id, Type type) { super(location); Assert.isNotNull(id); Assert.isNotNull(type); this.id = id; th...
524
19.192308
61
java
jkind
jkind-master/jkind-common/src/jkind/lustre/UnaryExpr.java
package jkind.lustre; import jkind.Assert; import jkind.lustre.visitors.ExprVisitor; public class UnaryExpr extends Expr { public final UnaryOp op; public final Expr expr; public UnaryExpr(Location location, UnaryOp op, Expr expr) { super(location); Assert.isNotNull(op); Assert.isNotNull(expr); this.op = ...
521
18.333333
61
java