index
int64
0
0
repo_id
stringlengths
16
181
file_path
stringlengths
28
270
content
stringlengths
1
11.6M
__index_level_0__
int64
0
10k
0
petrpan-code/man-group/dtale/dtale/static
petrpan-code/man-group/dtale/dtale/static/maps/europe_110m.json
{"type":"Topology","objects":{"coastlines":{"type":"GeometryCollection","geometries":[{"type":"LineString","arcs":[0,1]},{"type":"LineString","arcs":[2,3,4,5,6]},{"type":"LineString","arcs":[7]},{"type":"LineString","arcs":[8]},{"type":"LineString","arcs":[9]},{"type":"LineString","arcs":[10]},{"type":"LineString","arc...
2,300
0
petrpan-code/man-group/dtale/dtale/static
petrpan-code/man-group/dtale/dtale/static/maps/north-america_110m.json
{"type":"Topology","objects":{"coastlines":{"type":"GeometryCollection","geometries":[{"type":"LineString","arcs":[0]},{"type":"LineString","arcs":[1]},{"type":"LineString","arcs":[2]},{"type":"LineString","arcs":[3]},{"type":"LineString","arcs":[4]},{"type":"LineString","arcs":[5]},{"type":"LineString","arcs":[6]},{"t...
2,301
0
petrpan-code/man-group/dtale/dtale/static
petrpan-code/man-group/dtale/dtale/static/maps/south-america_110m.json
{"type":"Topology","objects":{"coastlines":{"type":"GeometryCollection","geometries":[{"type":"LineString","arcs":[0]},{"type":"LineString","arcs":[1]},{"type":"LineString","arcs":[2]},{"type":"LineString","arcs":[3]},{"type":"LineString","arcs":[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,3...
2,302
0
petrpan-code/man-group/dtale/dtale/static
petrpan-code/man-group/dtale/dtale/static/maps/usa_110m.json
{"type":"Topology","objects":{"coastlines":{"type":"GeometryCollection","geometries":[{"type":"LineString","arcs":[0]},{"type":"LineString","arcs":[1]},{"type":"LineString","arcs":[2]},{"type":"LineString","arcs":[3]},{"type":"LineString","arcs":[4]},{"type":"LineString","arcs":[5]},{"type":"LineString","arcs":[6]},{"t...
2,303
0
petrpan-code/man-group/dtale/dtale/static
petrpan-code/man-group/dtale/dtale/static/maps/world_110m.json
{"type":"Topology","objects":{"coastlines":{"type":"GeometryCollection","geometries":[{"type":"LineString","arcs":[0]},{"type":"LineString","arcs":[1,2]},{"type":"LineString","arcs":[3,4]},{"type":"LineString","arcs":[5,6,7,8]},{"type":"LineString","arcs":[9]},{"type":"LineString","arcs":[10]},{"type":"LineString","arc...
2,304
0
petrpan-code/man-group/dtale/dtale/templates
petrpan-code/man-group/dtale/dtale/templates/dtale/base.html
<!doctype html> <html style="{{ 'height: 100%' if network else '' }}"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />...
2,305
0
petrpan-code/man-group/dtale/dtale/templates
petrpan-code/man-group/dtale/dtale/templates/dtale/code_popup.html
<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> {% if is_app_root_defined(config.APPLICATIO...
2,306
0
petrpan-code/man-group/dtale/dtale/templates
petrpan-code/man-group/dtale/dtale/templates/dtale/html_export.html
<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>{{ t...
2,307
0
petrpan-code/man-group/dtale/dtale/templates
petrpan-code/man-group/dtale/dtale/templates/dtale/kurtosis.html
<!doctype html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="{{ url_for...
2,308
0
petrpan-code/man-group/dtale/dtale/templates
petrpan-code/man-group/dtale/dtale/templates/dtale/login.html
<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> {% if is_app_root_defined(config.APPLICATIO...
2,309
0
petrpan-code/man-group/dtale/dtale/templates
petrpan-code/man-group/dtale/dtale/templates/dtale/main.html
{% extends "dtale/base.html" %} {% block full_content %} <input type="hidden" id="iframe" value={{iframe}} /> <div class="container-fluid"> <div id="content"> </div> </div> {% endblock %} {% block js %} <script type="text/javascript" src="{{ url_for('static', filename='dist/dtale_bundle.js') }}"></script> {% ...
2,310
0
petrpan-code/man-group/dtale/dtale/templates
petrpan-code/man-group/dtale/dtale/templates/dtale/network.html
{% extends "dtale/base.html" %} {% set network = True %} {% block full_content %} <div class="container-fluid network"> <div id="content"> </div> </div> {% endblock %} {% block js %} <script type="text/javascript" src="{{ url_for('static', filename='dist/network_bundle.js') }}"></script> {% endblock %}
2,311
0
petrpan-code/man-group/dtale/dtale/templates
petrpan-code/man-group/dtale/dtale/templates/dtale/popup.html
{% extends "dtale/base.html" %} {% block title %}{{ title }}{% endblock %} {% block full_content %} <header class="app-header"> <span class="{{ '' if main_title_font else 'title-font '}}title-font-base" style="{{'font-family: ' + main_title_font if main_title_font else ''}}"> {{ main_title...
2,312
0
petrpan-code/man-group/dtale/dtale/templates
petrpan-code/man-group/dtale/dtale/templates/dtale/skew.html
<!doctype html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="{{ url_for...
2,313
0
petrpan-code/man-group/dtale/dtale/templates/dtale
petrpan-code/man-group/dtale/dtale/templates/dtale/errors/404.html
{% extends "dtale/base.html" %} {% block title %}Page Not Found{% endblock %} {% block full_content %} <div class="container-fluid"> <h1>Page Not Found</h1> <p>The page you were looking for <code>{{ request.path }}</code> does not exist.</p> <p>Please go to the <a href="/">main page</a> to see available f...
2,314
0
petrpan-code/man-group/dtale/dtale/templates/dtale
petrpan-code/man-group/dtale/dtale/templates/dtale/errors/500.html
{% extends "dtale/base.html" %} {% block title %}Internal Server Error{% endblock %} {% block full_content %} <div class="container-fluid"> <h1>Internal Server Error</h1> <p>Error:</p> <pre>{{ error }}</pre> <p>Stacktrace:</p> <pre>{{ stacktrace }}</pre> </div> {% endblock %}
2,315
0
petrpan-code/man-group/dtale/dtale/templates/dtale
petrpan-code/man-group/dtale/dtale/templates/dtale/errors/missing_js.html
{% extends "dtale/base.html" %} {% set missing_js = 'true' %} {% block title %}JS Files Missing{% endblock %} {% block full_content %} <div class="container-fluid"> <div class="row" style="margin: 0"> <div class="col-auto" style="padding-left: 0;"> <header> <span ...
2,316
0
petrpan-code/man-group/dtale/dtale
petrpan-code/man-group/dtale/dtale/translations/__init__.py
import json import os as _os import dtale.global_state as global_state from dtale.utils import read_file _basepath = _os.path.dirname(__file__) _languages = {} for filename in _os.listdir(_basepath): lang, ext = _os.path.splitext(filename) if ext == ".json": filepath = _os.path.abspath(_os.path.join(_...
2,317
0
petrpan-code/man-group/dtale/dtale
petrpan-code/man-group/dtale/dtale/translations/cn.json
{ "Charts": "图表", "Back To Data": "Back To Data", "Binning in Data Mining": "Binning in Data Mining", "Equal Width": "Equal Width", "Equal Frequency": "Equal Frequency", "the bins are of equal sized ranges": "the bins are of equal sized ranges", "the bins contain an equal amount of values": "the bins cont...
2,318
0
petrpan-code/man-group/dtale/dtale
petrpan-code/man-group/dtale/dtale/translations/en.json
{ "Charts": "Charts", "Back To Data": "Back To Data", "Binning in Data Mining": "Binning in Data Mining", "Equal Width": "Equal Width", "Equal Frequency": "Equal Frequency", "the bins are of equal sized ranges": "the bins are of equal sized ranges", "the bins contain an equal amount of values": "the bins ...
2,319
0
petrpan-code/man-group/dtale/dtale
petrpan-code/man-group/dtale/dtale/translations/pt.json
{ "Charts": "Gráficos", "Back To Data": "Voltar aos Dados", "Binning in Data Mining": "Raios em Data Mining", "Equal Width": "Mesma Largura", "Equal Frequency": "Mesma Frequência", "the bins are of equal sized ranges": "os raios são de mesmo tamanho de área", "the bins contain an equal amount of values": ...
2,320
0
petrpan-code/man-group/dtale
petrpan-code/man-group/dtale/frontend/.babelrc
{ "presets" : [ ["@babel/env", { "targets": ["last 2 versions"] }], "@babel/flow", "@babel/react", "@babel/preset-typescript" ], "env": { "production": { "compact" : true } } }
2,321
0
petrpan-code/man-group/dtale
petrpan-code/man-group/dtale/frontend/.eslintrc.js
module.exports = { env: { browser: true, node: true, }, extends: ['prettier'], parser: '@typescript-eslint/parser', parserOptions: { createDefaultProgram: true, ecmaVersion: 2020, project: 'tsconfig.json', sourceType: 'module', warnOnUnsupportedTypeScriptVersion: true, }, plugi...
2,322
0
petrpan-code/man-group/dtale
petrpan-code/man-group/dtale/frontend/.eslintrc.legacy.js
module.exports = { env: { browser: true, node: true, jest: true, }, globals: { Promise: true, }, parser: '@babel/eslint-parser', parserOptions: { ecmaVersion: 6, ecmaFeatures: { jsx: true, impliedStrict: true, }, sourceType: 'module', }, rules: { 'arrow-bo...
2,323
0
petrpan-code/man-group/dtale
petrpan-code/man-group/dtale/frontend/.flowconfig
[ignore] node_modules/* [include] [libs] [options] esproposal.class_instance_fields=enable
2,324
0
petrpan-code/man-group/dtale
petrpan-code/man-group/dtale/frontend/.postcssrc.json
{ "postcss-sorting": { "preserve-empty-lines-between-children-rules": 1 } }
2,325
0
petrpan-code/man-group/dtale
petrpan-code/man-group/dtale/frontend/jest.config.js
// @ts-check const fs = require('fs'); const path = require('path'); // polyfills must be resolved relative to this project's directory structure const testPolyfills = require.resolve('./config/testPolyfills'); // the path of `tsconfig.test.json` must be resolved relative to the project consuming this library const ...
2,326
0
petrpan-code/man-group/dtale
petrpan-code/man-group/dtale/frontend/package.json
{ "name": "dtale", "version": "3.7.0", "description": "Visualizer for Pandas Data Structures", "main": "main.js", "directories": { "test": "../tests" }, "scripts": { "test-all": "node config/test.js", "test": "npm run test-all", "test-with-coverage": "node config/test.js --coverage --repor...
2,327
0
petrpan-code/man-group/dtale
petrpan-code/man-group/dtale/frontend/prettier.config.js
module.exports = { printWidth: 120, tabWidth: 2, semi: true, singleQuote: true, trailingComma: 'all', bracketSpacing: true, arrowParens: 'always', parser: 'typescript', overrides: [ { files: '*.css', options: { parser: 'css', singleQuote: true, }, }, ], };
2,328
0
petrpan-code/man-group/dtale
petrpan-code/man-group/dtale/frontend/setupTests.ts
/* eslint no-console: "off" */ /* eslint max-classes-per-file: "off" */ import '@testing-library/jest-dom'; import 'regenerator-runtime/runtime'; import { TextDecoder, TextEncoder } from 'util'; (global as any).TextEncoder = TextEncoder; (global as any).TextDecoder = TextDecoder; // this file is compiled in an odd wa...
2,329
0
petrpan-code/man-group/dtale
petrpan-code/man-group/dtale/frontend/tsconfig.json
{ "compilerOptions": { "allowJs": true, "jsx": "react", "baseUrl": "./", "forceConsistentCasingInFileNames": true, "lib": ["es2017", "dom"], "module": "commonjs", "moduleResolution": "node", "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnused...
2,330
0
petrpan-code/man-group/dtale
petrpan-code/man-group/dtale/frontend/tsconfig.test.json
{ "extends": "./tsconfig.json", "compilerOptions": { "module": "commonjs" } }
2,331
0
petrpan-code/man-group/dtale
petrpan-code/man-group/dtale/frontend/webpack.config.js
/* eslint-disable no-restricted-globals */ const webpack = require('webpack'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const autoprefixer = require('autoprefixer'); const postcssNested = require('postcss-nested'); const path = require('path'); const paths = require('./config/paths'); process.en...
2,332
0
petrpan-code/man-group/dtale
petrpan-code/man-group/dtale/frontend/webpack.production.config.js
/* eslint-disable no-restricted-globals */ const webpack = require('webpack'); const TerserPlugin = require('terser-webpack-plugin'); const baseConfig = require('./webpack.config.js'); function createConfig(subConfig) { return { ...subConfig, mode: 'production', devtool: 'source-map', optimization: {...
2,333
0
petrpan-code/man-group/dtale
petrpan-code/man-group/dtale/frontend/yarn.lock
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. # yarn lockfile v1 "@aashutoshrathi/word-wrap@^1.2.3": version "1.2.6" resolved "https://registry.yarnpkg.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz#bd9154aec9983f77b3a034ecaa015c2e4201f6cf" "@adobe/css-tools@^4.3.1": version "4.3.1" r...
2,334
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/__mocks__/axios.ts
module.exports = { get: jest.fn(() => Promise.resolve({ data: {}, status: 300, }), ), post: jest.fn(() => Promise.resolve({ data: {}, status: 300, }), ), };
2,335
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/config/paths.js
const path = require('path'); const fs = require('fs'); // Make sure any symlinks in the project folder are resolved // https://githb.com/facebookincubator/create-react-app/issues/637 const appDirectory = fs.realpathSync(process.cwd()); const resolveApp = (relativePath) => path.resolve(appDirectory, relativePath); mo...
2,336
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/config/styleMock.js
module.exports = {};
2,337
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/config/test.js
#!/usr/bin/env node // @ts-check const jest = require('jest'); const path = require('path'); const resolve = require('resolve'); process.env.NODE_ENV = 'test'; // Makes the script crash on unhandled rejections instead of silently ignoring them. process.on('unhandledRejection', (err) => { if (err instanceof Error)...
2,338
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/config/testPolyfills.js
// @ts-check // In tests, polyfill requestAnimationFrame since jsdom doesn't provide it yet. // We don't polyfill it in the browser--this is user's responsibility. if (process.env.NODE_ENV === 'test') { require('raf').polyfill(global); }
2,339
0
petrpan-code/man-group/dtale/frontend/config
petrpan-code/man-group/dtale/frontend/config/file-transforms/cssTransform.js
// @ts-check /** * CSS transformation for Jest. * * @type ({getCacheKey(): string, process(): string} */ module.exports = { /** * Method for telling Jest how to process CSS files * @return {string} an ES5 compliant module string */ process() { return 'module.exports = {};'; }, /** * Method...
2,340
0
petrpan-code/man-group/dtale/frontend/config
petrpan-code/man-group/dtale/frontend/config/file-transforms/fileTransform.js
// @ts-check const path = require('path'); /** * Transformer for transforming 'files'. In the context of this library, this is for the purpose of non-TypeScript files * @type {{process(sourceText: string, sourcePath: string, options: Object): Object}} */ module.exports = { /** * Method for telling Jest how to...
2,341
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/Bouncer.css
.bouncer { position: relative; margin: 100px auto; width: 40px; height: 40px; } .double-bounce1, .double-bounce2 { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; background-color: #333; opacity: 0.6; animation: sk-bounce 2s infinite ease-in-out; } .double...
2,342
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/Bouncer.tsx
import * as React from 'react'; // Based on http://tobiasahlin.com/spinkit/ require('./Bouncer.css'); export const Bouncer: React.FC = () => ( <div className="bouncer"> <div className="double-bounce1" /> <div className="double-bounce2" /> </div> );
2,343
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/BouncerWrapper.css
.bouncer-wrapper { display: table; margin: 0 auto; } .bouncer-wrapper .bouncer { margin: 0 auto; }
2,344
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/BouncerWrapper.tsx
import * as React from 'react'; import { Bouncer } from './Bouncer'; require('./BouncerWrapper.css'); /** Component properties of BouncerWrapper */ interface BouncerWrapperProps { showBouncer: boolean; } /** Wrapper component which conditionally renders a bouncer or children */ export const BouncerWrapper: React....
2,345
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/ButtonToggle.tsx
import * as React from 'react'; /** Option for ButtonToggle */ export interface ButtonToggleOption { label?: React.ReactNode; value: any; buttonOptions?: Partial<React.HTMLAttributes<HTMLButtonElement>>; className?: string; } /** Component properties for ButtonToggle */ interface ButtonToggleProps { options...
2,346
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/Collapsible.scss
.accordion { margin: 0 auto; .accordion-title { cursor: pointer; transform: translate3d(0, 0, 0); border-radius: .2em .2em 0 0; color: white; position: relative; background: #1569a8; margin-bottom: -1px; border-bottom: 1px solid #0e4671; text-align: left; width: 100%; &...
2,347
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/Collapsible.tsx
import React from 'react'; require('./Collapsible.scss'); /** Component properties of Collapsible */ interface CollapsibleProps { title: React.ReactNode; content: React.ReactNode; onExpand?: () => void; } const Collapsible: React.FC<CollapsibleProps> = ({ title, content, onExpand }) => { const [isOpen, setIs...
2,348
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/CopyToClipboard.css
.fade-in { opacity: 1; transition: opacity 0.3s ease; } .fade-out { opacity: 0; transition: opacity 0.4s ease; }
2,349
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/CopyToClipboard.tsx
import * as React from 'react'; import { WithTranslation, withTranslation } from 'react-i18next'; require('./CopyToClipboard.css'); /** * Determines whether the copy command is supported in this browser. * * @return true if browser supports copy, false otherwise. */ export function canCopy(): boolean { return d...
2,350
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/JSAnchor.tsx
import * as React from 'react'; /** Component properties for JSAnchor */ interface JSAnchorProps { id?: string; className?: string; onClick?: (e: React.FormEvent<HTMLAnchorElement>) => void; title?: string; } /** Wrapper class for setting onClick on HTML anchor tags */ export const JSAnchor: React.FC<React.Pr...
2,351
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/Loading.css
.loading { font-weight: bold; font-size: 14px; } .loading:after { display: inline-block; overflow: hidden; width: 0; content: '\2026'; /* ascii code for the ellipsis character */ vertical-align: bottom; -webkit-animation: ellipsis steps(4, end) 900ms infinite; animation: ellipsis steps(4, end) 900ms ...
2,352
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/Loading.tsx
import * as React from 'react'; // Based on http://tobiasahlin.com/spinkit/ require('./Loading.css'); /** Component properties for Loading */ interface LoadingProps { message?: string; } /** Simple loading spinner component */ export const Loading: React.FC<LoadingProps> = ({ message }) => <div className="loading"...
2,353
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/RemovableError.tsx
import React from 'react'; /** Component properties for RemovableError */ interface RemovableErrorProps { error?: string | null; traceback?: string; onRemove?: () => void; } /** Simple component for display error messages and their possible traceback */ export const RemovableError: React.FC<React.PropsWithChild...
2,354
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/base_styles.js
require('./publicPath'); require('@fortawesome/fontawesome-free/css/all.css');
2,355
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/chartUtils.ts
/* eslint max-lines: "off" */ import { BoxAndWiskers, BoxPlotController } from '@sgratzl/chartjs-chart-boxplot'; import { BarController, BarElement, CartesianScaleOptions, CategoryScale, Chart, ChartConfiguration, ChartDataset, ChartOptions, ChartType, DefaultDataPoint, Element, Legend, Linear...
2,356
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/colors.ts
import { Scale } from 'chroma-js'; /** Array of standard color name & RGB hex string pairs */ export const COLORS: Array<[string, string]> = [ ['maroon', '#800000'], ['dark red', '#8B0000'], ['brown', '#A52A2A'], ['firebrick', '#B22222'], ['crimson', '#DC143C'], ['red', '#FF0000'], ['tomato', '#FF6347'],...
2,357
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/customHooks.ts
import * as React from 'react'; /** * Custom hook for maintaining a reference to the pervious version of a value. * * @param value the value to maintain a reference to the previous value of. * @return a reference to the previous value. */ export const usePrevious = <T>(value: T): T | undefined => { const ref = ...
2,358
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/i18n.ts
import i18next from 'i18next'; import { initReactI18next } from 'react-i18next'; import { getHiddenValue } from './redux/reducers/utils'; import cn from './translations/cn.json'; import en from './translations/en.json'; import pt from './translations/pt.json'; const language = getHiddenValue('language') || 'en'; i18...
2,359
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/main.tsx
import * as React from 'react'; import * as ReactDOMClient from 'react-dom/client'; import { Provider } from 'react-redux'; import { Store } from 'redux'; import { DataViewer } from './dtale/DataViewer'; import './i18n'; import ColumnAnalysis from './popups/analysis/ColumnAnalysis'; import LibrarySymbolSelector from '...
2,360
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/menuUtils.ts
import * as React from 'react'; /** * Attaches click handler to window and removes it when user clicks outside of container. * * @param close callback for when user unbinds handler * @param container element which, if clicked outside, unbinds the handler * @param clickFilters handler to check if click event targe...
2,361
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/polyfills.js
require('./publicPath'); require('babel-polyfill'); require('es6-object-assign').polyfill(); require('es6-promise').polyfill(); require('string.prototype.startswith');
2,362
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/publicPath.js
const webRoot = window.resourceBaseUrl; // eslint-disable-next-line camelcase,no-undef __webpack_public_path__ = `${webRoot || ''}/dtale/static/dist/`;
2,363
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/scatterChartUtils.ts
import { ChartDataset, Color, ScatterDataPoint } from 'chart.js'; /** * Builds a formatter which will take extract properties from objects and return them in the form of x/y coords. * * @param xProp name of the property holding the x-coordinate. * @param yProp name of the property holding the y-coordinate. * @ret...
2,364
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/sliderUtils.tsx
import * as React from 'react'; import ReactSlider from 'react-slider'; import { default as styled, WebTarget } from 'styled-components'; /** Component properties for HTML element with reference */ interface HTMLPropsWithRefCallback<T> extends React.HTMLProps<T> { ref: React.RefCallback<T>; } /** Component properti...
2,365
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/stringUtils.ts
export const capitalize = (val?: string): string => (val ? `${val[0].toUpperCase()}${val.slice(1).toLowerCase()}` : ''); export const truncate = (val?: string, length = 30, suffix = '...'): string => val && val.length > length ? `${val.slice(0, Math.max(length - suffix.length, 0))}${suffix}` : val ?? '';
2,366
0
petrpan-code/man-group/dtale/frontend
petrpan-code/man-group/dtale/frontend/static/toggleUtils.ts
import * as React from 'react'; /** * Build component properties for HTML button. * * @param active true, if this button is selected, false otherwise. * @param activate if the button is not active then execute this function when clicked. * @param disabled true, if this button is disabled, false otherwise. * @ret...
2,367
0
petrpan-code/man-group/dtale/frontend/static
petrpan-code/man-group/dtale/frontend/static/__tests__/CopyToClipboard-test.tsx
import { fireEvent, render } from '@testing-library/react'; import * as React from 'react'; import CopyToClipboard, { ButtonBuilderProps } from '../CopyToClipboard'; import { buildInnerHTML } from './test-utils'; describe('CopyToClipboard tests', () => { const buildMock = (): HTMLElement => { buildInnerHTML();...
2,368
0
petrpan-code/man-group/dtale/frontend/static
petrpan-code/man-group/dtale/frontend/static/__tests__/DimensionsHelper.ts
/** DimensionHelper properties */ interface DimensionsHelperProps { offsetWidth?: number; offsetHeight?: number; innerWidth?: number; innerHeight?: number; } /** * Helper class for managing browser dimensions. react-virtualized requires a certain amount of space for data to be loaded. */ export default class...
2,369
0
petrpan-code/man-group/dtale/frontend/static
petrpan-code/man-group/dtale/frontend/static/__tests__/JSAnchor-test.tsx
import { fireEvent, render } from '@testing-library/react'; import * as React from 'react'; import { JSAnchor } from '../JSAnchor'; describe('JSAnchor tests', () => { it('JSAnchor click test', () => { const clicks = []; const result = render( <JSAnchor onClick={() => clicks.push(1)}> <span>Hel...
2,370
0
petrpan-code/man-group/dtale/frontend/static
petrpan-code/man-group/dtale/frontend/static/__tests__/RemovableError-test.tsx
import { render } from '@testing-library/react'; import * as React from 'react'; import { RemovableError } from '../RemovableError'; describe('RemovableError tests', () => { it('RemovableError Remove null onRemove', () => { const result = render(<RemovableError error="foo" />).container; expect(result.getEl...
2,371
0
petrpan-code/man-group/dtale/frontend/static
petrpan-code/man-group/dtale/frontend/static/__tests__/chartUtils-test.ts
import { Chart, ChartDataset, ChartMeta, DatasetController, Element, TooltipItem } from 'chart.js'; import * as chartUtils from '../chartUtils'; import * as correlationsUtils from '../popups/correlations/correlationsUtils'; import { mockColumnDef } from './mocks/MockColumnDef'; import { buildChartContext, mockChartJS...
2,372
0
petrpan-code/man-group/dtale/frontend/static
petrpan-code/man-group/dtale/frontend/static/__tests__/dash-test.tsx
import { render } from '@testing-library/react'; import * as React from 'react'; import chartsData from './data/charts.json'; import { mockWordcloud } from './test-utils'; describe('dash tests', () => { beforeAll(mockWordcloud); it('dash rendering', () => { const { Wordcloud } = require('../dash/lib'); r...
2,373
0
petrpan-code/man-group/dtale/frontend/static
petrpan-code/man-group/dtale/frontend/static/__tests__/main-test.ts
import axios from 'axios'; import reduxUtils from './redux-test-utils'; import { buildInnerHTML } from './test-utils'; jest.mock('../dtale/DataViewer', () => { const { createMockComponent } = require('./mocks/createMockComponent'); return { DataViewer: createMockComponent('DataViewer') }; }); jest.mock('../popups...
2,374
0
petrpan-code/man-group/dtale/frontend/static
petrpan-code/man-group/dtale/frontend/static/__tests__/menuUtils-test.ts
import * as React from 'react'; import { openMenu } from '../menuUtils'; describe('menuUtils tests', () => { let addEventListenerSpy: jest.SpyInstance< void, [ type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined, ] >; ...
2,375
0
petrpan-code/man-group/dtale/frontend/static
petrpan-code/man-group/dtale/frontend/static/__tests__/redux-test-utils.jsx
/* eslint max-lines: "off" */ import dtaleApp from '../redux/reducers/app'; import mergeApp from '../redux/reducers/merge'; import { createAppStore } from '../redux/store'; import chartsData from './data/charts.json'; import groupedChartsData from './data/charts-grouped.json'; import columnAnalysisData from './data/col...
2,376
0
petrpan-code/man-group/dtale/frontend/static
petrpan-code/man-group/dtale/frontend/static/__tests__/scatterChartUtils-test.tsx
import { ScatterDataPoint } from 'chart.js'; import { basePointFormatter, formatScatterPoints, getScatterMax, getScatterMin } from '../scatterChartUtils'; describe('scatterChartUtils tests', () => { it('scatterChartUtils: testing filtering/highlighting logic', () => { const data: Array<Record<string, number>> =...
2,377
0
petrpan-code/man-group/dtale/frontend/static
petrpan-code/man-group/dtale/frontend/static/__tests__/test-utils.tsx
/* eslint max-classes-per-file: "off" */ import { act, fireEvent, Matcher, screen } from '@testing-library/react'; import { ChartConfiguration, ChartData, ChartEvent, ChartMeta, ChartOptions, ChartType, DefaultDataPoint, InteractionItem, Scale, } from 'chart.js'; import { TFunction } from 'i18next'; i...
2,378
0
petrpan-code/man-group/dtale/frontend/static
petrpan-code/man-group/dtale/frontend/static/__tests__/toggleUtils-test.tsx
import * as React from 'react'; import { buildButton } from '../toggleUtils'; describe('toggleUtils tests', () => { it('toggleUtils: testing buildButton', () => { let props = buildButton(true, () => 'active'); expect(props.className).toBe('btn btn-primary active'); expect(props.onClick?.({} as any as Re...
2,379
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/actions/dtale-test.ts
describe('dtale tests', () => { const { location } = window; beforeAll(() => { delete (window as any).location; (window as any).location = { search: `?col=foo&vals=a,b,c&baz=${JSON.stringify({ bizz: [1, 2] })}`, }; }); afterAll(() => { window.location = location; }); it('dtale: test...
2,380
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/actions/url-utils-test.ts
import { buildURLParams } from '../../redux/actions/url-utils'; describe('url-utils tests', () => { it('url-utils: testing URL_KEYS', () => { const params = { filters: {}, ids: [0, 5], sortInfo: [['col1', 'ASC']], query: 'col == 3', selectedCols: ['col1', 'col2'], }; const u...
2,381
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/data/charts-grouped.json
{ "data": { "val1": { "x": [ "2018-12-18", "2018-12-19", "2018-12-20", "2018-12-21", "2018-12-22", "2018-12-23", "2018-12-24", "2018-12-25", "2018-12-26", "2018-12-27" ], "col1": [ 41, 41, 41,...
2,382
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/data/charts.json
{ "data": { "all": { "x": [ "2018-12-18", "2018-12-19", "2018-12-20", "2018-12-21", "2018-12-22", "2018-12-23", "2018-12-24", "2018-12-25", "2018-12-26" ], "col1": [ 41, 41, 41, 41, 41...
2,383
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/data/column-analysis.json
{ "data": [ 347.0, 723.0, 924.0, 1539.0, 2858.0, 4070.0, 6194.0, 8795.0, 9769.0, 11472.0, 11986.0, 10892.0, 8399.0, 6209.0, 4053.0, 2613.0, 1486.0, 824.0, 403.0, 759.0 ], "kde": [ 347.0, 723.0, 924.0, 1539.0, 2858....
2,384
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/data/correlations-ts.json
{ "data": { "all": { "x": [ "2018-12-19", "2018-12-20", "2018-12-21", "2018-12-22", "2018-12-23", "2018-12-24", "2018-12-25", "2018-12-26", "2018-12-27", "2018-12-28", "2018-12-29", "2018-12-30", "2018-12...
2,385
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/data/correlations.json
{ "data": [ { "col1": 1.0, "col2": 0.028517, "col3": -0.098802, "col4": 0.485797, "column": "col1" }, { "col1": 0.028517, "col2": 1.0, "col3": 0.146827, "col4": 0.433232, "column": "col2" }, { "col1": -0.098802, "col2": 0.1468...
2,386
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/data/scatter.json
{ "data": { "all": { "x": [1.4, 2.4, 3.4, 4.4, 9.2, 0.2, -1.3, 5.6, 3.7, 4.2], "col2": [1.5, 1.5, 2.1, 1.3, -3.7, 6.6, 1.9, 8.8, 7.2, 3.0], "index": [0,1,2,3,4,5,6,7,8,9] } }, "stats": { "correlated": 10, "only_in_s0": 0, "only_in_s1": 0, "pearson": 0.019643318814764315, ...
2,387
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/dtale/DataViewer-about-test.tsx
import { act, render, screen } from '@testing-library/react'; import * as React from 'react'; import About from '../../popups/About'; import * as GenericRepository from '../../repository/GenericRepository'; import { buildInnerHTML } from '../test-utils'; const pjson: Record<string, any> = require('../../../package.js...
2,388
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/dtale/DataViewer-arcticdb-reload-test.tsx
import { act, render } from '@testing-library/react'; import axios from 'axios'; import * as React from 'react'; import { Provider, useDispatch } from 'react-redux'; import { Store } from 'redux'; import { DataViewer } from '../../dtale/DataViewer'; import * as serverState from '../../dtale/serverStateManagement'; imp...
2,389
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/dtale/DataViewer-base-test.tsx
import { act, fireEvent, render, screen } from '@testing-library/react'; import axios from 'axios'; import * as React from 'react'; import { Provider } from 'react-redux'; import { DataViewer } from '../../dtale/DataViewer'; import DimensionsHelper from '../DimensionsHelper'; import { validateHeaders } from '../iframe...
2,390
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/dtale/DataViewer-cell-editing-test.tsx
import { act, fireEvent, render, screen } from '@testing-library/react'; import axios from 'axios'; import * as React from 'react'; import { Provider } from 'react-redux'; import { DataViewer } from '../../dtale/DataViewer'; import DimensionsHelper from '../DimensionsHelper'; import reduxUtils from '../redux-test-util...
2,391
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/dtale/DataViewer-correlations-test.tsx
import { act, fireEvent, render, screen } from '@testing-library/react'; import axios from 'axios'; import { Chart, ChartEvent, Scale } from 'chart.js'; import * as React from 'react'; import { Provider } from 'react-redux'; import { default as configureStore } from 'redux-mock-store'; jest.mock('../../dtale/side/Side...
2,392
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/dtale/DataViewer-describe-test.tsx
import { act, fireEvent, render, screen } from '@testing-library/react'; import axios from 'axios'; import * as React from 'react'; import { Provider } from 'react-redux'; import selectEvent from 'react-select-event'; import Describe from '../../popups/describe/Describe'; import { ASC_PATH, DESC_PATH } from '../../pop...
2,393
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/dtale/DataViewer-display-test.tsx
import { act, fireEvent, render } from '@testing-library/react'; import axios from 'axios'; import * as React from 'react'; import { Provider } from 'react-redux'; import { Store } from 'redux'; import { DataViewer } from '../../dtale/DataViewer'; import DimensionsHelper from '../DimensionsHelper'; import reduxUtils f...
2,394
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/dtale/DataViewer-filter-test.tsx
import { act, fireEvent, render, screen } from '@testing-library/react'; import axios from 'axios'; import * as React from 'react'; import { Provider } from 'react-redux'; import { Store } from 'redux'; import { DataViewer } from '../../dtale/DataViewer'; import { DISABLED_CUSTOM_FILTERS_MSG } from '../../popups/filte...
2,395
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/dtale/DataViewer-hidden-menus-test.tsx
import { act, fireEvent, render, screen } from '@testing-library/react'; import axios from 'axios'; import * as React from 'react'; import { Provider, useDispatch } from 'react-redux'; import { Store } from 'redux'; import { DataViewer } from '../../dtale/DataViewer'; import { ActionType } from '../../redux/actions/Ap...
2,396
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/dtale/DataViewer-highlighting-test.tsx
import { act, fireEvent, render, screen } from '@testing-library/react'; import axios from 'axios'; import * as React from 'react'; import { Provider } from 'react-redux'; import { Store } from 'redux'; import { DataViewer } from '../../dtale/DataViewer'; import * as serverState from '../../dtale/serverStateManagement...
2,397
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/dtale/DataViewer-instances-test.tsx
import { act, fireEvent, render } from '@testing-library/react'; import axios from 'axios'; import * as React from 'react'; import { Provider } from 'react-redux'; import { DataViewer } from '../../dtale/DataViewer'; import DimensionsHelper from '../DimensionsHelper'; import reduxUtils from '../redux-test-utils'; impo...
2,398
0
petrpan-code/man-group/dtale/frontend/static/__tests__
petrpan-code/man-group/dtale/frontend/static/__tests__/dtale/DataViewer-pps-test.tsx
import { act, fireEvent, render } from '@testing-library/react'; import axios from 'axios'; import * as React from 'react'; import { Provider } from 'react-redux'; import { Store } from 'redux'; import { default as configureStore } from 'redux-mock-store'; jest.mock('../../dtale/side/SidePanelButtons', () => { const...
2,399