Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# *******************************************************************************
# * Copyright (c) 2020, Lawrence Livermore National Security, LLC.
# * Produced at the Lawrence Livermore National Laboratory.
# *
# * Written by Suraj Kesavan <[email protected]>.
# *
# * LLNL-CODE-740862. All rights reserved.
# *
# * This file is part of CallFlow. For details, see:
# * https://github.com/LLNL/CallFlow
# * Please also read the LICENSE file for the MIT License notice.
# ******************************************************************************

[flake8]
ignore = E203, E266, E501, W503
# line length is intentionally set to 80 here because black uses Bugbear
Expand Down
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# ------------------------------------------------------------------------------
# *******************************************************************************
# * Copyright (c) 2020, Lawrence Livermore National Security, LLC.
# * Produced at the Lawrence Livermore National Laboratory.
# *
# * Written by Suraj Kesavan <[email protected]>.
# *
# * LLNL-CODE-740862. All rights reserved.
# *
# * This file is part of CallFlow. For details, see:
# * https://github.com/LLNL/CallFlow
# * Please also read the LICENSE file for the MIT License notice.
# ******************************************************************************
# callflow specific

*.csv
Expand Down
17 changes: 12 additions & 5 deletions app/.babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
/**
* Copyright 2017-2020 Lawrence Livermore National Security, LLC and other
* CallFlow Project Developers. See the top-level LICENSE file for details.
* SPDX-License-Identifier: MIT
*/
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/
{
"presets": [
["env", {
Expand Down
17 changes: 12 additions & 5 deletions app/build/check-versions.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
/**
* Copyright 2017-2020 Lawrence Livermore National Security, LLC and other
* CallFlow Project Developers. See the top-level LICENSE file for details.
* SPDX-License-Identifier: MIT
*/
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/
"use strict";
const chalk = require("chalk");
const semver = require("semver");
Expand Down
17 changes: 12 additions & 5 deletions app/build/utils.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
/**
* Copyright 2017-2020 Lawrence Livermore National Security, LLC and other
* CallFlow Project Developers. See the top-level LICENSE file for details.
* SPDX-License-Identifier: MIT
*/
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/
"use strict";
const path = require("path");
const config = require("../config");
Expand Down
17 changes: 12 additions & 5 deletions app/build/vue-loader.conf.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
/**
* Copyright 2017-2020 Lawrence Livermore National Security, LLC and other
* CallFlow Project Developers. See the top-level LICENSE file for details.
* SPDX-License-Identifier: MIT
*/
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/
"use strict";
const utils = require("./utils");
const config = require("../config");
Expand Down
17 changes: 12 additions & 5 deletions app/build/webpack.base.conf.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
/**
* Copyright 2017-2020 Lawrence Livermore National Security, LLC and other
* CallFlow Project Developers. See the top-level LICENSE file for details.
* SPDX-License-Identifier: MIT
*/
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/
"use strict";
const path = require("path");
const utils = require("./utils");
Expand Down
17 changes: 12 additions & 5 deletions app/build/webpack.dev.conf.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
/**
* Copyright 2017-2020 Lawrence Livermore National Security, LLC and other
* CallFlow Project Developers. See the top-level LICENSE file for details.
* SPDX-License-Identifier: MIT
*/
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/
"use strict";
const utils = require("./utils");
const webpack = require("webpack");
Expand Down
17 changes: 12 additions & 5 deletions app/build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
/**
* Copyright 2017-2020 Lawrence Livermore National Security, LLC and other
* CallFlow Project Developers. See the top-level LICENSE file for details.
* SPDX-License-Identifier: MIT
*/
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/
"use strict";
const path = require("path");
const utils = require("./utils");
Expand Down
17 changes: 12 additions & 5 deletions app/config/dev.env.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
/**
* Copyright 2017-2020 Lawrence Livermore National Security, LLC and other
* CallFlow Project Developers. See the top-level LICENSE file for details.
* SPDX-License-Identifier: MIT
*/
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/
"use strict";
const merge = require("webpack-merge");
const prodEnv = require("./prod.env");
Expand Down
17 changes: 12 additions & 5 deletions app/config/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
/**
* Copyright 2017-2020 Lawrence Livermore National Security, LLC and other
* CallFlow Project Developers. See the top-level LICENSE file for details.
* SPDX-License-Identifier: MIT
*/
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/
"use strict";
const path = require("path");

Expand Down
17 changes: 12 additions & 5 deletions app/config/prod.env.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
/**
* Copyright 2017-2020 Lawrence Livermore National Security, LLC and other
* CallFlow Project Developers. See the top-level LICENSE file for details.
* SPDX-License-Identifier: MIT
*/
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/
"use strict";
module.exports = {
NODE_ENV: "\"production\""
Expand Down
15 changes: 12 additions & 3 deletions app/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<!--
* Copyright 2017-2020 Lawrence Livermore National Security, LLC and other
* CallFlow Project Developers. See the top-level LICENSE file for details.
* SPDX-License-Identifier: MIT
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/
-->
<!DOCTYPE html>
<html lang="en" class="notranslate" translate="no">
Expand Down
17 changes: 13 additions & 4 deletions app/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<!--
* Copyright 2017-2020 Lawrence Livermore National Security, LLC and other
* CallFlow Project Developers. See the top-level LICENSE file for details.
* SPDX-License-Identifier: MIT
-->
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/
-->
<template>
<v-app>
<div id="app">
Expand Down
15 changes: 13 additions & 2 deletions app/src/algorithms/bfs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/
import Queue from "../../../data-structures/queue/Queue";

/**
* @typedef {Object} Callbacks
*
Expand All @@ -12,7 +23,7 @@ import Queue from "../../../data-structures/queue/Queue";
* @property {function(vertices: Object)} [leaveVertex] - Called when BFS leaves the vertex.
*/

/**
/**
* @param {Callbacks} [callbacks]
* @returns {Callbacks}
*/
Expand Down
12 changes: 12 additions & 0 deletions app/src/algorithms/detectcycle.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/
import depthFirstSearch from "./dfs";

/**
Expand Down
17 changes: 14 additions & 3 deletions app/src/algorithms/dfs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/
/**
* @typedef {Object} Callbacks
*
Expand All @@ -10,7 +22,7 @@
* @property {function(vertices: Object)} [leaveVertex] - Called when DFS leaves the vertex.
*/

/**
/**
* @param {Callbacks} [callbacks]
* @returns {Callbacks}
*/
Expand Down Expand Up @@ -39,7 +51,7 @@ function initCallbacks(callbacks = {}) {
return initiatedCallback;
}

/**
/**
* @param {Graph} graph
* @param {GraphVertex} currentVertex
* @param {GraphVertex} previousVertex
Expand All @@ -56,7 +68,6 @@ function depthFirstSearchRecursive(graph, currentVertex, previousVertex, callbac

callbacks.leaveVertex({ currentVertex, previousVertex });
}

/**
* @param {Graph} graph
* @param {GraphVertex} startVertex
Expand Down
17 changes: 12 additions & 5 deletions app/src/algorithms/sankey.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
/**
* Copyright 2017-2020 Lawrence Livermore National Security, LLC and other
* CallFlow Project Developers. See the top-level LICENSE file for details.
* SPDX-License-Identifier: MIT
*/
/*******************************************************************************
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Written by Suraj Kesavan <[email protected]>.
*
* LLNL-CODE-740862. All rights reserved.
*
* This file is part of CallFlow. For details, see:
* https://github.com/LLNL/CallFlow
* Please also read the LICENSE file for the MIT License notice.
******************************************************************************/

import * as d3 from "d3";
import { scalePow } from "d3-scale";
Expand Down
Loading