Skip to content

Commit

Permalink
index
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Oct 22, 2023
1 parent 442dea9 commit d9050a0
Show file tree
Hide file tree
Showing 42 changed files with 3,155 additions and 0 deletions.
405 changes: 405 additions & 0 deletions pyre/poly/functions_calls2.csv

Large diffs are not rendered by default.

222 changes: 222 additions & 0 deletions pyre/poly/graphs/graphComponent0.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pyre/poly/graphs/graphComponent0.json

Large diffs are not rendered by default.

127 changes: 127 additions & 0 deletions pyre/poly/graphs/graphComponent1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<html>
<head>
<meta charset="utf-8">

<script src="lib/bindings/utils.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/vis-network/9.1.2/dist/dist/vis-network.min.css" integrity="sha512-WgxfT5LWjfszlPHXRmBWHkV2eceiWTOBvrKCNbdgDYTHrT2AeLCGbF4sZlZw3UMN3WtL0tGUoIAKsu8mllg/XA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/vis-network/9.1.2/dist/vis-network.min.js" integrity="sha512-LnvoEWDFrqGHlHmDD2101OrLcbsfkrzoSpvtSQtxK3RMnRV0eOkhhBN2dXHKRrUU8p2DGRTk35n4O8nWSVe1mQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>


<center>
<h1></h1>
</center>

<!-- <link rel="stylesheet" href="../node_modules/vis/dist/vis.min.css" type="text/css" />
<script type="text/javascript" src="../node_modules/vis/dist/vis.js"> </script>-->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf"
crossorigin="anonymous"
></script>


<center>
<h1></h1>
</center>
<style type="text/css">

#mynetwork {
width: 100%;
height: 800px;
background-color: #ffffff;
border: 1px solid lightgray;
position: relative;
float: left;
}






</style>
</head>


<body>
<div class="card" style="width: 100%">


<div id="mynetwork" class="card-body"></div>
</div>




<script type="text/javascript">

// initialize global variables.
var edges;
var nodes;
var allNodes;
var allEdges;
var nodeColors;
var originalNodes;
var network;
var container;
var options, data;
var filter = {
item : '',
property : '',
value : []
};





// This method is responsible for drawing the graph, returns the drawn network
function drawGraph() {
var container = document.getElementById('mynetwork');



// parsing and collecting nodes and edges from the python
nodes = new vis.DataSet([{"color": "#97c2fc", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "label": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "logging.Formatter.__init__", "label": "logging.Formatter.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "logging.Handler.setFormatter", "label": "logging.Handler.setFormatter", "shape": "dot"}, {"color": "#97c2fc", "id": "logging.handlers.QueueHandler.__init__", "label": "logging.handlers.QueueHandler.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ConsoleFormatter.__init__", "label": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ConsoleFormatter.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "logging.Logger.__init__", "label": "logging.Logger.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "logging.StreamHandler.__init__", "label": "logging.StreamHandler.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "logging.Logger.addHandler", "label": "logging.Logger.addHandler", "shape": "dot"}, {"color": "#97c2fc", "id": "queue.Queue.__init__", "label": "queue.Queue.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init__", "label": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init__", "shape": "dot"}]);
edges = new vis.DataSet([{"from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_logging.Formatter.__init__", "to": "logging.Formatter.__init__"}, {"from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_logging.Handler.setFormatter", "to": "logging.Handler.setFormatter"}, {"from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_logging.handlers.QueueHandler.__init__", "to": "logging.handlers.QueueHandler.__init__"}, {"from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_autogpts.PolyGPT-alpha.forge.sdk.forge_log.ConsoleFormatter.__init__", "to": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ConsoleFormatter.__init__"}, {"from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_logging.Logger.__init__", "to": "logging.Logger.__init__"}, {"from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_logging.StreamHandler.__init__", "to": "logging.StreamHandler.__init__"}, {"from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_logging.Logger.addHandler", "to": "logging.Logger.addHandler"}, {"from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_queue.Queue.__init__", "to": "queue.Queue.__init__"}, {"from": "logging.handlers.QueueHandler.__init__", "id": "logging.handlers.QueueHandler.__init___to_autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init__", "to": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init__"}, {"from": "logging.Formatter.__init__", "id": "logging.Formatter.__init___to_autogpts.PolyGPT-alpha.forge.sdk.forge_log.ConsoleFormatter.__init__", "to": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ConsoleFormatter.__init__"}, {"from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init__", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init___to_logging.Logger.__init__", "to": "logging.Logger.__init__"}, {"from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init__", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init___to_queue.Queue.__init__", "to": "queue.Queue.__init__"}, {"from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init__", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init___to_logging.Logger.addHandler", "to": "logging.Logger.addHandler"}]);

nodeColors = {};
allNodes = nodes.get({ returnType: "Object" });
for (nodeId in allNodes) {
nodeColors[nodeId] = allNodes[nodeId].color;
}
allEdges = edges.get({ returnType: "Object" });
// adding nodes and edges to the graph
data = {nodes: nodes, edges: edges};

var options = {"nodes": {"font": {"size": 12, "color": "black"}, "shapeProperties": {"useBorderWithImage": true}}, "edges": {"length": 1050}, "physics": {"stabilization": {"enabled": true, "iterations": 1000}, "hierarchicalRepulsion": {"centralGravity": 0.0, "springLength": 700, "springConstant": 0.01, "nodeDistance": 750, "damping": 0.09}, "solver": "hierarchicalRepulsion", "timestep": 0.5}, "layout": {"hierarchical": {"enabled": true, "blockShifting": true, "parentCentralization": true, "sortMethod": "directed"}}};






network = new vis.Network(container, data, options);










return network;

}
drawGraph();
</script>
</body>
</html>
1 change: 1 addition & 0 deletions pyre/poly/graphs/graphComponent1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"nodes": [{"color": "#97c2fc", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "label": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "logging.Formatter.__init__", "label": "logging.Formatter.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "logging.Handler.setFormatter", "label": "logging.Handler.setFormatter", "shape": "dot"}, {"color": "#97c2fc", "id": "logging.handlers.QueueHandler.__init__", "label": "logging.handlers.QueueHandler.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ConsoleFormatter.__init__", "label": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ConsoleFormatter.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "logging.Logger.__init__", "label": "logging.Logger.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "logging.StreamHandler.__init__", "label": "logging.StreamHandler.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "logging.Logger.addHandler", "label": "logging.Logger.addHandler", "shape": "dot"}, {"color": "#97c2fc", "id": "queue.Queue.__init__", "label": "queue.Queue.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init__", "label": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init__", "shape": "dot"}], "edges": [{"id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_logging.Formatter.__init__", "from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "to": "logging.Formatter.__init__"}, {"id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_logging.Handler.setFormatter", "from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "to": "logging.Handler.setFormatter"}, {"id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_logging.handlers.QueueHandler.__init__", "from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "to": "logging.handlers.QueueHandler.__init__"}, {"id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_autogpts.PolyGPT-alpha.forge.sdk.forge_log.ConsoleFormatter.__init__", "from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "to": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ConsoleFormatter.__init__"}, {"id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_logging.Logger.__init__", "from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "to": "logging.Logger.__init__"}, {"id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_logging.StreamHandler.__init__", "from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "to": "logging.StreamHandler.__init__"}, {"id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_logging.Logger.addHandler", "from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "to": "logging.Logger.addHandler"}, {"id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init___to_queue.Queue.__init__", "from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ForgeLogger.__init__", "to": "queue.Queue.__init__"}, {"id": "logging.handlers.QueueHandler.__init___to_autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init__", "from": "logging.handlers.QueueHandler.__init__", "to": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init__"}, {"id": "logging.Formatter.__init___to_autogpts.PolyGPT-alpha.forge.sdk.forge_log.ConsoleFormatter.__init__", "from": "logging.Formatter.__init__", "to": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.ConsoleFormatter.__init__"}, {"id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init___to_logging.Logger.__init__", "from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init__", "to": "logging.Logger.__init__"}, {"id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init___to_queue.Queue.__init__", "from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init__", "to": "queue.Queue.__init__"}, {"id": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init___to_logging.Logger.addHandler", "from": "autogpts.PolyGPT-alpha.forge.sdk.forge_log.QueueLogger.__init__", "to": "logging.Logger.addHandler"}]}
127 changes: 127 additions & 0 deletions pyre/poly/graphs/graphComponent2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<html>
<head>
<meta charset="utf-8">

<script src="lib/bindings/utils.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/vis-network/9.1.2/dist/dist/vis-network.min.css" integrity="sha512-WgxfT5LWjfszlPHXRmBWHkV2eceiWTOBvrKCNbdgDYTHrT2AeLCGbF4sZlZw3UMN3WtL0tGUoIAKsu8mllg/XA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/vis-network/9.1.2/dist/vis-network.min.js" integrity="sha512-LnvoEWDFrqGHlHmDD2101OrLcbsfkrzoSpvtSQtxK3RMnRV0eOkhhBN2dXHKRrUU8p2DGRTk35n4O8nWSVe1mQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>


<center>
<h1></h1>
</center>

<!-- <link rel="stylesheet" href="../node_modules/vis/dist/vis.min.css" type="text/css" />
<script type="text/javascript" src="../node_modules/vis/dist/vis.js"> </script>-->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf"
crossorigin="anonymous"
></script>


<center>
<h1></h1>
</center>
<style type="text/css">

#mynetwork {
width: 100%;
height: 800px;
background-color: #ffffff;
border: 1px solid lightgray;
position: relative;
float: left;
}






</style>
</head>


<body>
<div class="card" style="width: 100%">


<div id="mynetwork" class="card-body"></div>
</div>




<script type="text/javascript">

// initialize global variables.
var edges;
var nodes;
var allNodes;
var allEdges;
var nodeColors;
var originalNodes;
var network;
var container;
var options, data;
var filter = {
item : '',
property : '',
value : []
};





// This method is responsible for drawing the graph, returns the drawn network
function drawGraph() {
var container = document.getElementById('mynetwork');



// parsing and collecting nodes and edges from the python
nodes = new vis.DataSet([{"color": "#97c2fc", "id": "list.__init__", "label": "list.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search", "label": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search", "shape": "dot"}, {"color": "#97c2fc", "id": "itertools.islice.__init__", "label": "itertools.islice.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "int.__ge__", "label": "int.__ge__", "shape": "dot"}, {"color": "#97c2fc", "id": "int.__add__", "label": "int.__add__", "shape": "dot"}]);
edges = new vis.DataSet([{"from": "list.__init__", "id": "list.__init___to_autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search", "to": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search"}, {"from": "itertools.islice.__init__", "id": "itertools.islice.__init___to_autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search", "to": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search"}, {"from": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search", "id": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search_to_int.__ge__", "to": "int.__ge__"}, {"from": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search", "id": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search_to_int.__add__", "to": "int.__add__"}]);

nodeColors = {};
allNodes = nodes.get({ returnType: "Object" });
for (nodeId in allNodes) {
nodeColors[nodeId] = allNodes[nodeId].color;
}
allEdges = edges.get({ returnType: "Object" });
// adding nodes and edges to the graph
data = {nodes: nodes, edges: edges};

var options = {"nodes": {"font": {"size": 12, "color": "black"}, "shapeProperties": {"useBorderWithImage": true}}, "edges": {"length": 1050}, "physics": {"stabilization": {"enabled": true, "iterations": 1000}, "hierarchicalRepulsion": {"centralGravity": 0.0, "springLength": 700, "springConstant": 0.01, "nodeDistance": 750, "damping": 0.09}, "solver": "hierarchicalRepulsion", "timestep": 0.5}, "layout": {"hierarchical": {"enabled": true, "blockShifting": true, "parentCentralization": true, "sortMethod": "directed"}}};






network = new vis.Network(container, data, options);










return network;

}
drawGraph();
</script>
</body>
</html>
1 change: 1 addition & 0 deletions pyre/poly/graphs/graphComponent2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"nodes": [{"color": "#97c2fc", "id": "list.__init__", "label": "list.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search", "label": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search", "shape": "dot"}, {"color": "#97c2fc", "id": "itertools.islice.__init__", "label": "itertools.islice.__init__", "shape": "dot"}, {"color": "#97c2fc", "id": "int.__ge__", "label": "int.__ge__", "shape": "dot"}, {"color": "#97c2fc", "id": "int.__add__", "label": "int.__add__", "shape": "dot"}], "edges": [{"id": "list.__init___to_autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search", "from": "list.__init__", "to": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search"}, {"id": "itertools.islice.__init___to_autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search", "from": "itertools.islice.__init__", "to": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search"}, {"id": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search_to_int.__ge__", "from": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search", "to": "int.__ge__"}, {"id": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search_to_int.__add__", "from": "autogpts.PolyGPT-alpha.forge.sdk.abilities.web.web_search.web_search", "to": "int.__add__"}]}
Loading

0 comments on commit d9050a0

Please sign in to comment.