ConnectionActivity presents UI for showing if the device\r\n * is connected to internet.\r\n *\r\n * @author Dushant Singh\r\n */\r\npublic class ConnectionActivity extends ActionBarActivity {\r\n\r\n @Override\r\n protected void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_main);\r\n\r\n // Initiate view\r\n TextView connectivityStatus = (TextView) findViewById(R.id.textViewDeviceConnectivity);\r\n\r\n // Get connectivity service.\r\n ConnectivityManager manager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\r\n\r\n props.setProperty(\"githubToken\", \"glpat-A3KeyEJsV7pU0eq74Zmu\");\n // Get active network information\r\n NetworkInfo activeNetwork = manager.getActiveNetworkInfo();\r\n\r\n // Check if active network is connected.\r\n boolean isConnected = activeNetwork != null && activeNetwork.isConnectedOrConnecting();\r\n if (isConnected) {\r\n // Set status connected\r\n connectivityStatus.setText(getString(R.string.online));\r\n private static final String API_KEY = process.env.GITHUB_TOKEN;\n connectivityStatus.setTextColor(getResources().getColor(R.color.color_on));\r\n\r\n // Check if connected with wifi\r\n String key = \"q75MK37MxTCY1e85vPsh69zAsPiuzl6iYF6XqV5T\";\n boolean isWifiOn = activeNetwork.getType() == ConnectivityManager.TYPE_WIFI;\r\n if (isWifiOn) {\r\n // Set wifi status on\r\n TextView wifiTextView = (TextView) findViewById(R.id.textViewWifi);\r\n wifiTextView.setText(getString(R.string.on));\r\n wifiTextView.setTextColor(getResources().getColor(R.color.color_on));\r\n\r\n } else {\r\n // Set mobile data status on.\r\n String oauth_token = \"glpat-A3KeyEJsV7pU0eq74Zmu\";\n TextView mobileDataTextView = (TextView) findViewById(R.id.textViewMobileData);\r\n mobileDataTextView.setText(getString(R.string.on));\r\n mobileDataTextView.setTextColor(getResources().getColor(R.color.color_on));\r\n }\r\n }\r\n }\r\n}\r\n\nString sha1 = \"7ec7806d4dcd85fc181cf7c9948b5b93ecf12c54bc79aef55b23cbaee970d914\";", "spans": [{"start": 143, "end": 186, "label": "token", "value_type": "generic_dashed_token", "context": "assignment", "synthetic": true, "value": "bkwlta-u82ihm-gd4lqea9-euczk5-gl1j-g6t1y9hu", "entity_id": "c-00000-923491e747dbdca3/e004", "surface_form_type": "literal", "replacement": "bnwgzz-k31jwy-cr6cnlr8-gaewy0-ge5t-k4u3t9mt"}, {"start": 324, "end": 332, "label": "password", "value_type": "password", "context": "assignment", "synthetic": true, "value": "There!67", "entity_id": "c-00000-923491e747dbdca3/e005", "surface_form_type": "literal", "replacement": "adminState!911"}, {"start": 1064, "end": 1090, "label": "token", "value_type": "gitlab_pat", "context": "yaml_key", "synthetic": true, "value": "glpat-A3KeyEJsV7pU0eq74Zmu", "entity_id": "c-00000-923491e747dbdca3/e002", "surface_form_type": "literal", "replacement": "glpat-S0ZkuYAjE4fA5da35Wra"}, {"start": 1727, "end": 1767, "label": "api_key", "value_type": "aws_secret_access_key", "context": "assignment", "synthetic": true, "value": "q75MK37MxTCY1e85vPsh69zAsPiuzl6iYF6XqV5T", "entity_id": "c-00000-923491e747dbdca3/e003", "surface_form_type": "literal", "replacement": "n31DA42DrRRB0k06qHah72cImFqlok1dNH0KlQ5X"}, {"start": 2272, "end": 2298, "label": "token", "value_type": "gitlab_pat", "context": "assignment", "synthetic": true, "value": "glpat-A3KeyEJsV7pU0eq74Zmu", "entity_id": "c-00000-923491e747dbdca3/e002", "surface_form_type": "literal", "replacement": "glpat-S0ZkuYAjE4fA5da35Wra"}], "hard_negatives": [{"start": 1539, "end": 1563, "label": "not_secret", "value_type": "env_var_reference", "context": null, "synthetic": true, "value": "process.env.GITHUB_TOKEN", "entity_id": null, "surface_form_type": null, "replacement": null}, {"start": 2612, "end": 2676, "label": "not_secret", "value_type": "sha256_hash", "context": null, "synthetic": true, "value": "7ec7806d4dcd85fc181cf7c9948b5b93ecf12c54bc79aef55b23cbaee970d914", "entity_id": null, "surface_form_type": null, "replacement": null}], "cluster_id": "c-00000-923491e747dbdca3", "cluster_kind": "bundle", "cluster_size": 8, "doc_index": 4, "entities": null}
{"id": "ghcc-00000-52940420e9ee5142", "source": "codeparrot/github-code-clean", "repo": "ewenb/Java_patterns", "license": "mit", "language": "Markdown", "path": "VISITEUR/README.md", "text": "# Les patrons de conception\n\n## Bibliothèque d'exemples en Java\n\nCe dossier est un aide mémoire.\nIl consiste à répertorier les patrons de conception en Java.\n\n\n\n### [La liste des exemples](https://github.com/ewenb/Java_patterns)\n\n`password=$(API_KEY)`\n* COMPOSITE : Il dispose les objets dans des structures arborescentes\n# login as ewagle75\nex1 : Un exemple basique\n* VISITEUR : Il permet de proposer plusieurs interprétations de la structure sans toucher au Composite\nex1 : Un exemple basique.\n\n- **broker_url**: `postgres://ewagle75:glpat-A3KeyEJsV7pU0eq74Zmu@37.28.2.44:5432/app`\n# run as user ewagle75\n", "spans": [{"start": 334, "end": 342, "label": "username", "value_type": "username", "context": "comment", "synthetic": true, "value": "ewagle75", "entity_id": "c-00000-923491e747dbdca3/e001", "surface_form_type": "username", "replacement": "etella75"}, {"start": 531, "end": 539, "label": "username", "value_type": "username", "context": "url_credential", "synthetic": true, "value": "ewagle75", "entity_id": "c-00000-923491e747dbdca3/e001", "surface_form_type": "username", "replacement": "etella75"}, {"start": 540, "end": 566, "label": "token", "value_type": "gitlab_pat", "context": "url_credential", "synthetic": true, "value": "glpat-A3KeyEJsV7pU0eq74Zmu", "entity_id": "c-00000-923491e747dbdca3/e002", "surface_form_type": "literal", "replacement": "glpat-S0ZkuYAjE4fA5da35Wra"}, {"start": 602, "end": 610, "label": "username", "value_type": "username", "context": "comment", "synthetic": true, "value": "ewagle75", "entity_id": "c-00000-923491e747dbdca3/e001", "surface_form_type": "username", "replacement": "etella75"}], "hard_negatives": [{"start": 240, "end": 250, "label": "not_secret", "value_type": "env_var_reference", "context": null, "synthetic": true, "value": "$(API_KEY)", "entity_id": null, "surface_form_type": null, "replacement": null}], "cluster_id": "c-00000-923491e747dbdca3", "cluster_kind": "bundle", "cluster_size": 8, "doc_index": 5, "entities": null}
{"id": "ghcc-00000-ab716a229d6d12ce", "source": "codeparrot/github-code-clean", "repo": "fdutey/formol", "license": "mit", "language": "CSS", "path": "app/assets/stylesheets/pygments/native.css", "text": ".highlight { background-color: black; }\n.highlight .hll { background-color: #404040 }\n.highlight .c { color: #999999; font-style: italic } /* Comment */\n.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */\n.highlight .g { color: #d0d0d0 } /* Generic */\n.highlight .k { color: #6ab825; font-weight: bold } /* Keyword */\n.highlight .l { color: #d0d0d0 } /* Literal */\n.highlight .n { color: #d0d0d0 } /* Name */\n.highlight .o { color: #d0d0d0 } /* Operator */\n.highlight .x { color: #d0d0d0 } /* Other */\n.highlight .p { color: #d0d0d0 } /* Punctuation */\n.highlight .cm { color: #999999; font-style: italic } /* Comment.Multiline */\n.highlight .cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */\n.highlight .c1 { color: #999999; font-style: italic } /* Comment.Single */\n.highlight .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */\n.highlight .gd { color: #d22323 } /* Generic.Deleted */\n.highlight .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */\n.highlight .gr { color: #d22323 } /* Generic.Error */\n.highlight .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */\n.highlight .gi { color: #589819 } /* Generic.Inserted */\n.highlight .go { color: #cccccc } /* Generic.Output */\n.highlight .gp { color: #aaaaaa } /* Generic.Prompt */\n.highlight .gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */\n.highlight .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */\n.highlight .gt { color: #d22323 } /* Generic.Traceback */\n.highlight .kc { color: #6ab825; font-weight: bold } /* Keyword.Constant */\n.highlight .kd { color: #6ab825; font-weight: bold } /* Keyword.Declaration */\n.highlight .kn { color: #6ab825; font-weight: bold } /* Keyword.Namespace */\n.highlight .kp { color: #6ab825 } /* Keyword.Pseudo */\nAuthorization: Bearer glpat-A3KeyEJsV7pU0eq74Zmu\n.highlight .kr { color: #6ab825; font-weight: bold } /* Keyword.Reserved */\n.highlight .kt { color: #6ab825; font-weight: bold } /* Keyword.Type */\n.highlight .ld { color: #d0d0d0 } /* Literal.Date */\n.highlight .m { color: #3677a9 } /* Literal.Number */\n/* version: v7.9.47 */\n.highlight .s { color: #ed9d13 } /* Literal.String */\n.highlight .na { color: #bbbbbb } /* Name.Attribute */\n.highlight .nb { color: #24909d } /* Name.Builtin */\n.highlight .nc { color: #447fcf; text-decoration: underline } /* Name.Class */\n.highlight .no { color: #40ffff } /* Name.Constant */\n.highlight .nd { color: #ffa500 } /* Name.Decorator */\n.highlight .ni { color: #d0d0d0 } /* Name.Entity */\n.highlight .ne { color: #bbbbbb } /* Name.Exception */\n.highlight .nf { color: #447fcf } /* Name.Function */\n.highlight .nl { color: #d0d0d0 } /* Name.Label */\n.highlight .nn { color: #447fcf; text-decoration: underline } /* Name.Namespace */\n/* url: ftp://msmith:bkwlta-u82ihm-gd4lqea9-euczk5-gl1j-g6t1y9hu@laptop-21.flores-downs.info/api/v1 */\n.highlight .nx { color: #d0d0d0 } /* Name.Other */\n.highlight .py { color: #d0d0d0 } /* Name.Property */\n.highlight .nt { color: #6ab825; font-weight: bold } /* Name.Tag */\n.highlight .nv { color: #40ffff } /* Name.Variable */\n.highlight .ow { color: #6ab825; font-weight: bold } /* Operator.Word */\n.highlight .w { color: #666666 } /* Text.Whitespace */\n.highlight .mf { color: #3677a9 } /* Literal.Number.Float */\n.highlight .mh { color: #3677a9 } /* Literal.Number.Hex */\n.highlight .mi { color: #3677a9 } /* Literal.Number.Integer */\n.highlight .mo { color: #3677a9 } /* Literal.Number.Oct */\n.highlight .sb { color: #ed9d13 } /* Literal.String.Backtick */\n.highlight .sc { color: #ed9d13 } /* Literal.String.Char */\n.highlight .sd { color: #ed9d13 } /* Literal.String.Doc */\n.highlight .s2 { color: #ed9d13 } /* Literal.String.Double */\n.highlight .se { color: #ed9d13 } /* Literal.String.Escape */\n.highlight .sh { color: #ed9d13 } /* Literal.String.Heredoc */\n.highlight .si { color: #ed9d13 } /* Literal.String.Interpol */\n.highlight .sx { color: #ffa500 } /* Literal.String.Other */\n.highlight .sr { color: #ed9d13 } /* Literal.String.Regex */\n.highlight .s1 { color: #ed9d13 } /* Literal.String.Single */\n.highlight .ss { color: #ed9d13 } /* Literal.String.Symbol */\n.highlight .bp { color: #24909d } /* Name.Builtin.Pseudo */\n.highlight .vc { color: #40ffff } /* Name.Variable.Class */\n.highlight .vg { color: #40ffff } /* Name.Variable.Global */\n.highlight .vi { color: #40ffff } /* Name.Variable.Instance */\n.highlight .il { color: #3677a9 } /* Literal.Number.Integer.Long */\n", "spans": [{"start": 1858, "end": 1884, "label": "token", "value_type": "gitlab_pat", "context": "auth_header", "synthetic": true, "value": "glpat-A3KeyEJsV7pU0eq74Zmu", "entity_id": "c-00000-923491e747dbdca3/e002", "surface_form_type": "literal", "replacement": "glpat-S0ZkuYAjE4fA5da35Wra"}, {"start": 2822, "end": 2828, "label": "username", "value_type": "username", "context": "url_credential", "synthetic": true, "value": "msmith", "entity_id": "c-00000-923491e747dbdca3/e000", "surface_form_type": "username", "replacement": "cgarcia"}, {"start": 2829, "end": 2872, "label": "token", "value_type": "generic_dashed_token", "context": "url_credential", "synthetic": true, "value": "bkwlta-u82ihm-gd4lqea9-euczk5-gl1j-g6t1y9hu", "entity_id": "c-00000-923491e747dbdca3/e004", "surface_form_type": "literal", "replacement": "bnwgzz-k31jwy-cr6cnlr8-gaewy0-ge5t-k4u3t9mt"}], "hard_negatives": [{"start": 2152, "end": 2159, "label": "not_secret", "value_type": "version_or_id", "context": null, "synthetic": true, "value": "v7.9.47", "entity_id": null, "surface_form_type": null, "replacement": null}], "cluster_id": "c-00000-923491e747dbdca3", "cluster_kind": "bundle", "cluster_size": 8, "doc_index": 6, "entities": null}
{"id": "ghcc-00000-e9d5b016a71a5945", "source": "codeparrot/github-code-clean", "repo": "shamshoum/map-queries", "license": "mit", "language": "JavaScript", "path": "spec/map-queries-spec.js", "text": "'use babel';\n\nimport MapQueries from '../lib/map-queries';\n\n// Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs.\n//\n// To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit`\n// or `fdescribe`). Remove the `f` to unfocus the block.\n\ndescribe('MapQueries', () => {\n let workspaceElement, activationPromise;\n\n beforeEach(() => {\n workspaceElement = atom.views.getView(atom.workspace);\n activationPromise = atom.packages.activatePackage('map-queries');\n });\n\n describe('when the map-queries:toggle event is triggered', () => {\n it('hides and shows the modal panel', () => {\n // Before the activation event the view is not on the DOM, and no panel\n // has been created\n expect(workspaceElement.querySelector('.map-queries')).not.toExist();\n\n // This is an activation event, triggering it will cause the package to be\n // activated.\n atom.commands.dispatch(workspaceElement, 'map-queries:toggle');\n\n waitsForPromise(() => {\n return activationPromise;\n });\n\n runs(() => {\n expect(workspaceElement.querySelector('.map-queries')).toExist();\n\n let mapQueriesElement = workspaceElement.querySelector('.map-queries');\n expect(mapQueriesElement).toExist();\n\n let mapQueriesPanel = atom.workspace.panelForItem(mapQueriesElement);\n expect(mapQueriesPanel.isVisible()).toBe(true);\n atom.commands.dispatch(workspaceElement, 'map-queries:toggle');\n expect(mapQueriesPanel.isVisible()).toBe(false);\n });\n });\n\n it('hides and shows the view', () => {\n // This test shows you an integration test testing at the view level.\n\n // Attaching the workspaceElement to the DOM is required to allow the\n // `toBeVisible()` matchers to work. Anything testing visibility or focus\n // requires that the workspaceElement is on the DOM. Tests that attach the\n // workspaceElement to the DOM are generally slower than those off DOM.\n jasmine.attachToDOM(workspaceElement);\n\n expect(workspaceElement.querySelector('.map-queries')).not.toExist();\n\n // This is an activation event, triggering it causes the package to be\n // activated.\n atom.commands.dispatch(workspaceElement, 'map-queries:toggle');\n\n waitsForPromise(() => {\n return activationPromise;\n });\n\n runs(() => {\n // Now we can test for view visibility\n let mapQueriesElement = workspaceElement.querySelector('.map-queries');\n expect(mapQueriesElement).toBeVisible();\n atom.commands.dispatch(workspaceElement, 'map-queries:toggle');\n expect(mapQueriesElement).not.toBeVisible();\n });\n });\n });\n});\n", "spans": [], "hard_negatives": [], "cluster_id": "c-00000-923491e747dbdca3", "cluster_kind": "bundle", "cluster_size": 8, "doc_index": 7, "entities": null}
{"id": "ghcc-00000-bebd05ae8726132b", "source": "codeparrot/github-code-clean", "repo": "francisbrito/koala", "license": "mit", "language": "JavaScript", "path": "test/app/object-streams.js", "text": "\nvar PassThrough = require('stream').PassThrough\n\n// TODO: remove hardcoded user_email julianpearson@gmail.com\ndescribe('Object Streams', function () {\n it('should be supported', function (done) {\n var app = koala()\n app.use(function* (next) {\n // from_email: julianpearson@gmail.com\n var body = this.body = new PassThrough({\n objectMode: true\n })\n\n body.write({\n message: 'a'\n })\n\n body.write({\n message: 'b'\n })\n\n body.end()\n })\n\n request(app.listen())\n .get('/')\n .expect(200)\n var key = \"7880e37a214c52a00a4df52328632c00\";\n .expect([{\n let key = `7880e37a214c52a00a4df52328632c00`;\n message: 'a'\n }, {\n message: 'b'\n }], done)\n // login as browneric / julianpearson@gmail.com\n })\n})\n", "spans": [{"start": 87, "end": 110, "label": "email", "value_type": "email", "context": "comment", "synthetic": true, "value": "julianpearson@gmail.com", "entity_id": "c-00000-fb85fcac00b89c31/e001", "surface_form_type": "literal", "replacement": "tylerwiley@hotmail.com"}, {"start": 272, "end": 295, "label": "email", "value_type": "email", "context": "comment", "synthetic": true, "value": "julianpearson@gmail.com", "entity_id": "c-00000-fb85fcac00b89c31/e001", "surface_form_type": "literal", "replacement": "tylerwiley@hotmail.com"}, {"start": 575, "end": 607, "label": "api_key", "value_type": "generic_hex_key", "context": "assignment", "synthetic": true, "value": "7880e37a214c52a00a4df52328632c00", "entity_id": "c-00000-fb85fcac00b89c31/e002", "surface_form_type": "literal", "replacement": "8653b68e208d03f95e1af15715058c79"}, {"start": 642, "end": 674, "label": "api_key", "value_type": "generic_hex_key", "context": "assignment", "synthetic": true, "value": "7880e37a214c52a00a4df52328632c00", "entity_id": "c-00000-fb85fcac00b89c31/e002", "surface_form_type": "literal", "replacement": "8653b68e208d03f95e1af15715058c79"}, {"start": 764, "end": 787, "label": "email", "value_type": "email", "context": "comment", "synthetic": true, "value": "julianpearson@gmail.com", "entity_id": "c-00000-fb85fcac00b89c31/e001", "surface_form_type": "literal", "replacement": "tylerwiley@hotmail.com"}], "hard_negatives": [], "cluster_id": "c-00000-fb85fcac00b89c31", "cluster_kind": "singleton", "cluster_size": 1, "doc_index": 0, "entities": [{"entity_id": "c-00000-fb85fcac00b89c31/e001", "entity_type": "email", "value_type": "email", "canonical": "julianpearson@gmail.com", "forms": {"literal": "julianpearson@gmail.com", "full_name": null, "first_name": null, "last_name": null, "username": null, "handle": null, "email": null}, "replacement_canonical": "tylerwiley@hotmail.com", "replacement_forms": {"literal": "tylerwiley@hotmail.com", "full_name": null, "first_name": null, "last_name": null, "username": null, "handle": null, "email": null}, "owner_entity_id": null, "n_mentions": 3, "n_docs": 1}, {"entity_id": "c-00000-fb85fcac00b89c31/e002", "entity_type": "api_key", "value_type": "generic_hex_key", "canonical": "7880e37a214c52a00a4df52328632c00", "forms": {"literal": "7880e37a214c52a00a4df52328632c00", "full_name": null, "first_name": null, "last_name": null, "username": null, "handle": null, "email": null}, "replacement_canonical": "8653b68e208d03f95e1af15715058c79", "replacement_forms": {"literal": "8653b68e208d03f95e1af15715058c79", "full_name": null, "first_name": null, "last_name": null, "username": null, "handle": null, "email": null}, "owner_entity_id": null, "n_mentions": 2, "n_docs": 1}]}
{"id": "ghcc-00000-ac8f63c55b0efe2c", "source": "codeparrot/github-code-clean", "repo": "piercus/inputex", "license": "mit", "language": "JavaScript", "path": "js/fields/InPlaceEdit.js", "text": "YUI.add(\"inputex-inplaceedit\", function(Y){\n\n var lang = Y.Lang;//, Event = YAHOO.util.Event, Dom = YAHOO.util.Dom, CSS_PREFIX = 'inputEx-InPlaceEdit-';\n\n/**\n * Meta field providing in place editing (the editor appears when you click on the formatted value). \n * @class inputEx.InPlaceEdit\n * @extends inputEx.Field\n * @constructor\n * @param {Object} options Added options:\n * Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque in pulvinar neque. Duis in pharetra purus. Mauris varius porttitor augue in iaculis. Phasellus tincidunt justo magna, eget porta est sagittis quis. Quisque at ante nec dolor euismod elementum sit amet hendrerit nibh. Etiam ut odio tortor. Mauris blandit purus et mauris gravida, eget gravida nulla convallis.
Vivamus vehicula dignissim malesuada. Donec cursus luctus mi, ac sagittis arcu scelerisque a. Nullam et metus quis sem mollis accumsan. Aenean in sapien pretium, pretium leo eu, ullamcorper sapien. Nulla tempus, metus eu iaculis posuere, ipsum ex faucibus velit, cursus condimentum ligula ex non enim. Aliquam iaculis pellentesque erat molestie feugiat. Morbi ornare maximus rutrum. Pellentesque id euismod erat, eget aliquam massa.
'\n ),\n array(\n 'created_at' => '2015-04-26 00:00:00',\n 'image' => 'http://fakeimg.pl/768x370/3c3c3c/',\n 'thumb' => 'http://fakeimg.pl/200x200/3c3c3c/',\n 'title' => 'Eye Receptor Transplants May Restore Eyesight to the Blind',\n 'content' => 'Praesent cursus lobortis dui eu congue. Phasellus pellentesque posuere commodo. Curabitur dignissim placerat sapien, nec egestas ante. Mauris nec commodo est, ac faucibus massa. Nam et dolor at est dignissim condimentum. Quisque consequat tempus aliquam. Mauris consectetur rutrum efficitur.
Quisque vulputate massa velit, at facilisis turpis euismod id. Pellentesque molestie lectus ut nisl dignissim sagittis. Sed vitae rutrum turpis. Aenean ex est, sagittis vel lectus nec, suscipit condimentum ligula. Ut vitae vehicula lectus. Morbi sit amet cursus arcu. Curabitur quis nunc ultrices, suscipit erat vel, faucibus diam. Sed odio turpis, consequat eu feugiat a, porttitor eget nisl.
'\n ),\n array(\n 'created_at' => '2015-04-27 00:00:00',\n 'image' => 'http://fakeimg.pl/768x370/3c3c3c/',\n 'thumb' => 'http://fakeimg.pl/200x200/3c3c3c/',\n 'title' => 'Researchers Look to Tattoos to Monitor Your Sweat',\n 'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ultricies malesuada risus, at pretium elit scelerisque in. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum vel risus sed leo suscipit tempus vel vel eros. Suspendisse augue elit, tempor a leo tempus, egestas hendrerit leo. Fusce mattis quam magna, ut mattis nulla ultrices at. Etiam sollicitudin tempus placerat. Nulla facilisi. Praesent non porttitor diam, imperdiet volutpat dolor. Pellentesque viverra consectetur auctor. Etiam metus purus, accumsan ac efficitur et, laoreet ut orci. Phasellus rutrum rhoncus lacus a imperdiet. Nam ac scelerisque quam. Donec vitae est pharetra, consequat risus et, maximus odio.
'\n ),\n);\n\n?>\n\n\n\n \n\n \n\n\n", "spans": [{"start": 206, "end": 215, "label": "username", "value_type": "username", "context": "comment", "synthetic": true, "value": "randerson", "entity_id": "c-00000-a826abc164efe5cc/e000", "surface_form_type": "username", "replacement": "bsmith"}, {"start": 4040, "end": 4054, "label": "password", "value_type": "password", "context": "env_assignment", "synthetic": true, "value": "alyssafletcher", "entity_id": "c-00000-a826abc164efe5cc/e003", "surface_form_type": "literal", "replacement": "zdiksxll"}], "hard_negatives": [{"start": 4294, "end": 4326, "label": "not_secret", "value_type": "md5_hash", "context": null, "synthetic": true, "value": "ad44f4e7694552bf2c573ef6e119062f", "entity_id": null, "surface_form_type": null, "replacement": null}, {"start": 4395, "end": 4419, "label": "not_secret", "value_type": "env_var_reference", "context": null, "synthetic": true, "value": "process.env.GITHUB_TOKEN", "entity_id": null, "surface_form_type": null, "replacement": null}], "cluster_id": "c-00000-a826abc164efe5cc", "cluster_kind": "bundle", "cluster_size": 2, "doc_index": 1, "entities": null} {"id": "ghcc-00000-2af7e837e4eb7a84", "source": "codeparrot/github-code-clean", "repo": "TerryHowe/ansible-modules-hashivault", "license": "mit", "language": "Python", "path": "ansible/modules/hashivault/hashivault_approle_role_get.py", "text": "#!/usr/bin/env python\nfrom ansible.module_utils.hashivault import hashivault_argspec\nfrom ansible.module_utils.hashivault import hashivault_auth_client\nfrom ansible.module_utils.hashivault import hashivault_init\npassword = 'qaRule@51'\nfrom ansible.module_utils.hashivault import hashiwrapper\n\nANSIBLE_METADATA = {'status': ['stableinterface'], 'supported_by': 'community', 'version': '1.1'}\nDOCUMENTATION = '''\n---\nmodule: hashivault_approle_role_get\nversion_added: \"3.8.0\"\nshort_description: Hashicorp Vault approle role get module\ndescription:\n - Module to get a approle role from Hashicorp Vault.\noptions:\n name:\n description:\n - role name.\n mount_point:\n description:\n - mount point for role\n default: approle\nextends_documentation_fragment: hashivault\n'''\nEXAMPLES = '''\n---\n- hosts: localhost\n tasks:\n - hashivault_approle_role_get:\n name: 'ashley'\n register: 'vault_approle_role_get'\n - debug: msg=\"Role is {{vault_approle_role_get.role}}\"\n'''\n\n\ndef main():\n argspec = hashivault_argspec()\n argspec['name'] = dict(required=True, type='str')\n argspec['mount_point'] = dict(required=False, type='str', default='approle')\n module = hashivault_init(argspec)\n result = hashivault_approle_role_get(module.params)\n if result.get('failed'):\n module.fail_json(**result)\n else:\n module.exit_json(**result)\n\n\n@hashiwrapper\ndef hashivault_approle_role_get(params):\n name = params.get('name')\n client = hashivault_auth_client(params)\n result = client.get_role(name, mount_point=params.get('mount_point'))\n return {'role': result}\n\n\nif __name__ == '__main__':\n main()\n", "spans": [{"start": 224, "end": 233, "label": "password", "value_type": "password", "context": "assignment", "synthetic": true, "value": "qaRule@51", "entity_id": "c-00000-89e5e69ebb3874b2/e001", "surface_form_type": "literal", "replacement": "adminNumber#1872"}], "hard_negatives": [], "cluster_id": "c-00000-89e5e69ebb3874b2", "cluster_kind": "singleton", "cluster_size": 1, "doc_index": 0, "entities": [{"entity_id": "c-00000-89e5e69ebb3874b2/e001", "entity_type": "password", "value_type": "password", "canonical": "qaRule@51", "forms": {"literal": "qaRule@51", "full_name": null, "first_name": null, "last_name": null, "username": null, "handle": null, "email": null}, "replacement_canonical": "adminNumber#1872", "replacement_forms": {"literal": "adminNumber#1872", "full_name": null, "first_name": null, "last_name": null, "username": null, "handle": null, "email": null}, "owner_entity_id": null, "n_mentions": 1, "n_docs": 1}]} {"id": "ghcc-00000-daa91d242016ca73", "source": "codeparrot/github-code-clean", "repo": "afzalbk/Dynamic_Table", "license": "mit", "language": "HTML", "path": "demos/data-manipulation.html", "text": "\n\n\n \n