Search is not available for this dataset
repo stringlengths 2 152 ⌀ | file stringlengths 15 239 | code stringlengths 0 58.4M | file_length int64 0 58.4M | avg_line_length float64 0 1.81M | max_line_length int64 0 12.7M | extension_type stringclasses 364
values |
|---|---|---|---|---|---|---|
nni | nni-master/ts/nni_manager/training_service/reusable/shared_storages/azureblobStorageService.ts | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import cpp from 'child-process-promise';
import path from 'path';
import { SharedStorageService, SharedStorageType } from '../sharedStorage'
import { MountedStorageService } from '../storages/mountedStorageService';
import { getLogger, Logger ... | 7,560 | 38.586387 | 288 | ts |
nni | nni-master/ts/nni_manager/training_service/reusable/shared_storages/nfsStorageService.ts | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import cpp from 'child-process-promise';
import path from 'path';
import { SharedStorageService, SharedStorageType } from '../sharedStorage'
import { MountedStorageService } from '../storages/mountedStorageService';
import { getLogger, Logger ... | 5,790 | 34.310976 | 249 | ts |
nni | nni-master/ts/nni_manager/training_service/reusable/storages/mountedStorageService.ts | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import fs from 'fs';
import path from 'path';
import { Deferred } from "ts-deferred";
import { StorageService } from "../storageService";
export class MountedStorageService extends StorageService {
protected internalConfig(_key: string, _... | 5,400 | 35.248322 | 172 | ts |
nni | nni-master/ts/nni_manager/training_service/v3/compat.ts | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { EventEmitter } from 'events';
import { readFile } from 'fs/promises';
import path from 'path';
import { setTimeout } from 'timers/promises';
import { Deferred } from 'common/deferred';
import type { TrainingServiceConfig } from 'commo... | 10,694 | 35.501706 | 116 | ts |
nni | nni-master/ts/nni_manager/training_service/v3/factory.ts | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**
* TODO
* This module will handle the code discovery logic for 3rd-party training services.
* For now we only have "local_v3" and "remote_v3" as PoC.
**/
import type { TrainingServiceConfig } from 'common/experimentConfig';
import ty... | 907 | 36.833333 | 92 | ts |
nni | nni-master/ts/nni_manager/types/child-process-promise/index.d.ts | declare module 'child-process-promise' {
export function exec(command: string): Promise<childProcessPromise.Result>;
export namespace childProcessPromise {
interface Result {
stdout: string;
stderr: string,
message: string
}
}
} | 293 | 25.727273 | 79 | ts |
nni | nni-master/ts/nni_manager/types/tail-stream/index.d.ts | declare module 'tail-stream' {
export interface Stream {
on(type: 'data', callback: (data: Buffer) => void): void;
end(data: number): void;
emit(data: string): void;
}
export function createReadStream(path: string): Stream;
} | 261 | 31.75 | 65 | ts |
nni | nni-master/ts/nni_manager/types/webhdfs/index.d.ts | declare module 'webhdfs' {
export function createClient(arg: any): any;
} | 77 | 25 | 48 | ts |
nni | nni-master/ts/webui/README.md | # WebUI
WebUI is built by using [React](https://reactjs.org/docs/getting-started.html) and [fluentui](https://developer.microsoft.com/en-us/fluentui#/controls/web).
## Development
* Please refer the [installation doc](https://github.com/microsoft/nni#installation) to run an experiment.
* Use this command in `webui... | 919 | 47.421053 | 379 | md |
nni | nni-master/ts/webui/public/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="%PUBLIC_URL%/icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<!--
manifest.json provides metadata used when your ... | 1,579 | 39.512821 | 107 | html |
nni | nni-master/ts/webui/src/App.tsx | import * as React from 'react';
import { Outlet } from 'react-router-dom';
import { Stack, MessageBar, MessageBarType } from '@fluentui/react';
import { EXPERIMENT, TRIALS } from '@static/datamodel';
import NavCon from '@components/nav/Nav';
import { COLUMN } from '@static/const';
import { isManagerExperimentPage } fro... | 13,998 | 40.913174 | 123 | tsx |
nni | nni-master/ts/webui/src/index.tsx | import React, { lazy, Suspense } from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { getPrefix } from './static/function';
import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
const Overview = lazy(() => import('./components/experiment/overview/Overview'));
... | 1,617 | 38.463415 | 110 | tsx |
nni | nni-master/ts/webui/src/react-app-env.d.ts | declare namespace NodeJS {
interface ProcessEnv {
readonly NODE_ENV: 'development' | 'production' | 'test';
readonly PUBLIC_URL: string;
}
}
declare module '*.bmp' {
const src: string;
export default src;
}
declare module '*.gif' {
const src: string;
export default src;
}
decl... | 1,148 | 17.836066 | 88 | ts |
nni | nni-master/ts/webui/src/serviceWorker.ts | // This optional code is used to register a service worker.
// register() is not called by default.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on subsequent visits to a p... | 5,407 | 36.555556 | 106 | ts |
nni | nni-master/ts/webui/src/components/common/CopyButton.tsx | import React, { useRef } from 'react';
import copy from 'copy-to-clipboard';
import { IconButton, FontSizes, TooltipHost } from '@fluentui/react';
import { TOOLTIPSTYLE } from '@static/const';
interface CopyButtonProps {
value: string;
hideTooltip?: boolean;
}
const COPIED_TOOLTIP_CLOSE_DELAY = 1000;
const C... | 1,506 | 30.395833 | 79 | tsx |
nni | nni-master/ts/webui/src/components/common/Gap.tsx | import { IStackTokens } from '@fluentui/react/lib/Stack';
const buttonsGap: IStackTokens = {
childrenGap: 10
};
const expandTrialGap: IStackTokens = {
childrenGap: 10,
padding: 10
};
export { buttonsGap, expandTrialGap };
| 237 | 17.307692 | 57 | tsx |
nni | nni-master/ts/webui/src/components/common/MonacoEditor.tsx | import * as React from 'react';
import { Spinner } from '@fluentui/react';
import MonacoEditor from 'react-monaco-editor';
interface MonacoEditorProps {
content: string;
loading: boolean;
height: number;
}
const MonacoHTML = (props: MonacoEditorProps): any => {
const { content, loading, height } = pro... | 1,646 | 29.5 | 72 | tsx |
nni | nni-master/ts/webui/src/components/common/PaginationTable.tsx | import React, { useState, useEffect } from 'react';
import { DetailsList, Dropdown, Icon, IDetailsListProps, IDropdownOption, IStackTokens, Stack } from '@fluentui/react';
import ReactPaginate from 'react-paginate';
const horizontalGapStackTokens: IStackTokens = {
childrenGap: 20,
padding: 10
};
function _cur... | 3,961 | 39.020202 | 120 | tsx |
nni | nni-master/ts/webui/src/components/common/PanelMonacoEditor.tsx | import React, { useState, useEffect } from 'react';
import { Stack, Panel, PrimaryButton } from '@fluentui/react';
import MonacoEditor from 'react-monaco-editor';
import { caclMonacoEditorHeight } from '@static/function';
import '@style/logPanel.scss';
interface LogPanelProps {
hideConfigPanel: () => void;
pan... | 2,324 | 34.227273 | 115 | tsx |
nni | nni-master/ts/webui/src/components/common/TooltipHostForIcon.tsx | import React, { useState, useEffect } from 'react';
import { NavLink } from 'react-router-dom';
import { getPrefix } from '@static/function';
import { TOOLTIPSTYLE } from '@static/const';
import { DirectionalHint, TooltipHost } from '@fluentui/react';
// feedback, document, version btns
interface TooltipHostIndexProp... | 1,620 | 31.42 | 91 | tsx |
nni | nni-master/ts/webui/src/components/common/TooltipHostIndex.tsx | import * as React from 'react';
import { TOOLTIPSTYLE } from '@static/const';
import { DirectionalHint, TooltipHost } from '@fluentui/react';
interface TooltipHostIndexProps {
value: string;
}
const TooltipHostIndex = (props: TooltipHostIndexProps): any => {
const { value } = props;
const length = String(... | 899 | 27.125 | 72 | tsx |
nni | nni-master/ts/webui/src/components/common/calloutStyles.ts | import { FontWeights, mergeStyleSets, getTheme } from '@fluentui/react';
const theme = getTheme();
export const styles = mergeStyleSets({
buttonArea: {
verticalAlign: 'top',
display: 'inline-block',
textAlign: 'center',
// margin: '0 100px',
minWidth: 30,
height: 30... | 1,234 | 20.293103 | 72 | ts |
nni | nni-master/ts/webui/src/components/common/ExpandableDetails/ExpandableIndex.tsx | import * as React from 'react';
import { DetailsRow, IDetailsRowBaseProps } from '@fluentui/react/lib/DetailsList';
import OpenRow from './OpenRow';
import '@style/table.scss';
interface ExpandableDetailsProps {
detailsProps: IDetailsRowBaseProps;
isExpand: boolean;
}
const ExpandableDetails = (props: Expanda... | 594 | 26.045455 | 83 | tsx |
nni | nni-master/ts/webui/src/components/common/ExpandableDetails/OpenRow.tsx | import React, { useState } from 'react';
import { Stack, PrimaryButton, Pivot, PivotItem, DefaultButton, MessageBar, MessageBarType } from '@fluentui/react';
import * as copy from 'copy-to-clipboard';
import { JSONTree } from 'react-json-tree';
import { Trial } from '@model/trial';
import { MANAGER_IP, RETIARIIPARAMETE... | 7,493 | 46.43038 | 118 | tsx |
nni | nni-master/ts/webui/src/components/common/ExpandableDetails/PaiTrialLog.tsx | import * as React from 'react';
import TrialLog from './TrialLog';
interface PaitrialLogProps {
logStr: string;
}
const PaitrialLog = (props: PaitrialLogProps): any => {
const { logStr } = props;
const isHasNFSLog = logStr.indexOf(',') !== -1 ? true : false;
return (
<div>
{isHasNF... | 702 | 26.038462 | 86 | tsx |
nni | nni-master/ts/webui/src/components/common/ExpandableDetails/TrialLog.tsx | import * as React from 'react';
import { Stack } from '@fluentui/react';
import { expandTrialGap } from '@components/common/Gap';
interface TrialLogProps {
logStr: string;
logName: string;
}
const TrialLog = (props: TrialLogProps): any => {
const { logStr, logName } = props;
const isHyperlink = logStr... | 816 | 27.172414 | 92 | tsx |
nni | nni-master/ts/webui/src/components/experiment/overview/Overview.tsx | import React, { useContext } from 'react';
import { Stack, Dropdown, DefaultButton } from '@fluentui/react';
import { TRIALS } from '@static/datamodel';
import { Trial } from '@static/model/trial';
import { AppContext } from '@/App';
import SuccessTable from './table/SuccessTable';
import DefaultPoint from '../trialdet... | 5,936 | 40.229167 | 105 | tsx |
nni | nni-master/ts/webui/src/components/experiment/overview/overviewConst.ts | const itemStyle1: React.CSSProperties = {
width: '75%'
};
const itemStyleSucceed: React.CSSProperties = {
width: '28%'
};
const itemStyle2: React.CSSProperties = {
height: 38
};
// top trials entries
const entriesOption = [
{ key: '10', text: '10' },
{ key: '20', text: '20' },
{ key: '30', tex... | 600 | 20.464286 | 81 | ts |
nni | nni-master/ts/webui/src/components/experiment/overview/basic/BasicInfo.tsx | import React, { useState, useContext, useCallback } from 'react';
import { Stack, Callout, Link, IconButton, IStackTokens } from '@fluentui/react';
import { useId } from '@uifabric/react-hooks';
import { EXPERIMENT } from '@static/datamodel';
import { getPrefix } from '@static/function';
import LogPanel from '@componen... | 5,373 | 48.759259 | 118 | tsx |
nni | nni-master/ts/webui/src/components/experiment/overview/basic/Config.tsx | import * as React from 'react';
import { Stack } from '@fluentui/react';
import { EXPERIMENT } from '@static/datamodel';
import { getPrefix } from '@static/function';
import TooltipHostIndex from '@components/common/TooltipHostIndex';
// This file is for showing the experiment some important params,
// Log directory, ... | 3,333 | 39.658537 | 97 | tsx |
nni | nni-master/ts/webui/src/components/experiment/overview/count/Duration.tsx | import React, { useContext } from 'react';
import { Stack } from '@fluentui/react';
import { EXPERIMENT } from '@static/datamodel';
import { EditExpeParamContext } from './context';
import { EditExperimentParam } from './EditExperimentParam';
import { CONTROLTYPE } from '@static/const';
import { formatTimestamp, format... | 3,683 | 39.933333 | 112 | tsx |
nni | nni-master/ts/webui/src/components/experiment/overview/count/EditExperimentParam.tsx | import React, { useState, useCallback, useContext } from 'react';
import axios from 'axios';
import { Stack, Dropdown, IStackTokens, MessageBar, MessageBarType } from '@fluentui/react';
import { MotionAnimations, MotionDurations, MotionTimings } from '@fluentui/theme'; // fluentMotion.js
import { AppContext } from '@/A... | 9,590 | 39.129707 | 119 | tsx |
nni | nni-master/ts/webui/src/components/experiment/overview/count/TrialNumbers.tsx | import React, { useContext } from 'react';
import { Stack, IStackTokens, ProgressIndicator } from '@fluentui/react';
import { EXPERIMENT, TRIALS } from '@static/datamodel';
import { CONTROLTYPE, MAX_TRIAL_NUMBERS } from '@static/const';
import { EditExperimentParam } from './EditExperimentParam';
import { EditExpeParam... | 4,563 | 46.541667 | 112 | tsx |
nni | nni-master/ts/webui/src/components/experiment/overview/count/context.tsx | import React from 'react';
/***
* const CONTROLTYPE = ['MAX_EXEC_DURATION', 'MAX_TRIAL_NUM', 'TRIAL_CONCURRENCY', 'SEARCH_SPACE'];
* [0], 'MAX_EXEC_DURATION', params.maxExecDuration
* [1], 'MAX_TRIAL_NUM', params.maxTrialNum
* [2], 'TRIAL_CONCURRENCY', params.trialConcurrency
*/
export const EditExpeParamContext =... | 573 | 30.888889 | 99 | tsx |
nni | nni-master/ts/webui/src/components/experiment/overview/table/DefaultMetric.tsx | import * as React from 'react';
import { TRIALS } from '@static/datamodel';
import { formatAccuracy } from '@static/function';
// oview page table: default metric column render
interface DefaultMetricProps {
trialId: string;
}
const DefaultMetric = (props: DefaultMetricProps): any => {
const accuracy = TRIALS... | 506 | 30.6875 | 116 | tsx |
nni | nni-master/ts/webui/src/components/experiment/overview/table/SuccessTable.tsx | import React, { useState, useEffect } from 'react';
import {
Stack,
DetailsList,
IDetailsListProps,
IColumn,
Icon,
DetailsRow,
IRenderFunction,
IDetailsHeaderProps,
Sticky,
StickyPositionType,
ScrollablePane,
ScrollbarVisibility
} from '@fluentui/react';
import DefaultMet... | 7,788 | 34.729358 | 118 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/ChangeColumnComponent.tsx | import React, { useState, useCallback } from 'react';
import { Dialog, DialogType, DialogFooter, Checkbox, PrimaryButton, DefaultButton } from '@fluentui/react';
import { EXPERIMENT } from '@static/datamodel';
import { Storage } from '@model/localStorage';
/**
* changeColumnComponent file is for [customized table col... | 5,411 | 35.567568 | 114 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/TrialsDetail.tsx | import React, { useContext } from 'react';
import { Stack, Pivot, PivotItem } from '@fluentui/react';
import { EXPERIMENT, TRIALS } from '@static/datamodel';
import { AppContext } from '@/App';
import DefaultPoint from './chart/DefaultMetricPoint';
import Duration from './chart/Duration';
import Para from './chart/Para... | 2,740 | 40.530303 | 96 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/chart/DefaultMetricPoint.tsx | import React, { useState, useEffect, useContext } from 'react';
import { Stack, Dropdown, Toggle, IDropdownOption } from '@fluentui/react';
import ReactEcharts from 'echarts-for-react';
import { AppContext } from '@/App';
import { Trial } from '@model/trial';
import { TRIALS } from '@static/datamodel';
import { Tooltip... | 9,366 | 33.951493 | 120 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/chart/Duration.tsx | import React from 'react';
import ReactEcharts from 'echarts-for-react';
import { Trial } from '@model/trial';
import { convertDuration } from '@static/function';
import 'echarts/lib/chart/bar';
import 'echarts/lib/component/tooltip';
import 'echarts/lib/component/title';
interface Runtrial {
trialId: number[];
... | 2,613 | 24.881188 | 86 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/chart/Intermediate.tsx | import React, { useEffect, useState } from 'react';
import { Stack, PrimaryButton, Toggle, IStackTokens } from '@fluentui/react';
import { TooltipForIntermediate, AllTrialsIntermediateChart } from '@static/interface';
import { reformatRetiariiParameter } from '@static/function';
import ReactEcharts from 'echarts-for-re... | 8,749 | 38.237668 | 114 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/chart/Para.tsx | import React, { useState, useEffect, useContext } from 'react';
import * as d3 from 'd3';
import { Dropdown, IDropdownOption, Stack, DefaultButton } from '@fluentui/react';
import ParCoords from 'parcoord-es';
import { AppContext } from '@/App';
import { Trial } from '@model/trial';
import { SearchSpace } from '@model/... | 13,355 | 38.514793 | 119 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/chart/optimizeMode.ts | function optimizeModeValue(optimizeMode: string) {
// 'unknown' value is from experiment.ts file optimizeMode function
return optimizeMode === 'unknown' ? 'maximize' : optimizeMode;
}
export { optimizeModeValue };
| 223 | 31 | 71 | ts |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/table/TableList.tsx | import React, { useState, useEffect, useContext } from 'react';
import { DefaultButton, IColumn, Icon, PrimaryButton, Stack, Checkbox } from '@fluentui/react';
import { Trial } from '@model/trial';
import { EXPERIMENT, TRIALS } from '@static/datamodel';
import { convertDuration, formatTimestamp, copyAndSort, parameters... | 17,662 | 43.26817 | 119 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/table/tableFunction/CompareIndex.tsx | import React, { useState, useEffect } from 'react';
import { renderToString } from 'react-dom/server';
import { Stack, Modal, IconButton, IDragOptions, ContextualMenu, Dropdown, IDropdownOption } from '@fluentui/react';
import ReactEcharts from 'echarts-for-react';
import { EXPERIMENT, TRIALS } from '@static/datamodel'... | 10,747 | 35.682594 | 117 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/table/tableFunction/CustomizedTrial.tsx | import React, { useEffect, useState } from 'react';
import axios from 'axios';
import { Stack, StackItem, PrimaryButton, DefaultButton } from '@fluentui/react';
import { Dialog, DialogType, DialogFooter } from '@fluentui/react/lib/Dialog';
import { MANAGER_IP } from '@static/const';
import { EXPERIMENT, TRIALS } from '... | 9,880 | 37.447471 | 119 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/table/tableFunction/killJob/KillJobDialog.tsx | import React from 'react';
import { PrimaryButton, Dialog, DialogType, DialogFooter } from '@fluentui/react';
import { KillJobIsError } from '@static/interface';
interface KillJobDialogProps {
trialId: string;
isError: KillJobIsError;
onHideDialog: () => void;
}
function KillJobDialog(props: KillJobDialog... | 1,172 | 29.076923 | 108 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/table/tableFunction/killJob/KillJobIndex.tsx | import React, { useState, useRef, useContext } from 'react';
import axios from 'axios';
import { Stack, FocusTrapCallout, DefaultButton, FocusZone, PrimaryButton } from '@fluentui/react';
import { MANAGER_IP } from '@static/const';
import KillJobDialog from './KillJobDialog';
import { blocked } from '@components/fluent... | 4,671 | 36.677419 | 112 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/table/tableFunction/search/GeneralSearch.tsx | import React, { useState, useContext } from 'react';
import { Stack, PrimaryButton } from '@fluentui/react';
import { gap10 } from '@components/fluent/ChildrenGap';
import { AppContext } from '@/App';
import { SearchItems } from '@static/interface';
import { getSearchInputValueBySearchList } from './searchFunction';
/... | 3,552 | 38.043956 | 129 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/table/tableFunction/search/Search.tsx | import React, { useState, useContext } from 'react';
import {
Stack,
DefaultButton,
IContextualMenuProps,
IContextualMenuItem,
DirectionalHint,
SearchBox,
PrimaryButton
} from '@fluentui/react';
import { EXPERIMENT } from '@static/datamodel';
import { SearchItems } from '@static/interface';
... | 12,695 | 39.304762 | 114 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/table/tableFunction/search/SearchDefaultMetric.tsx | import React, { useState, useContext } from 'react';
import { Stack, PrimaryButton, Dropdown, IDropdownOption } from '@fluentui/react';
import { EXPERIMENT } from '@static/datamodel';
import { getSearchInputValueBySearchList } from './searchFunction';
import { gap10 } from '@components/fluent/ChildrenGap';
import { App... | 5,898 | 37.305195 | 119 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/table/tableFunction/search/SearchParameterConditions.tsx | import React, { useState, useContext } from 'react';
import { Stack, PrimaryButton, Dropdown, IDropdownOption } from '@fluentui/react';
import { EXPERIMENT } from '@static/datamodel';
import { getDropdownOptions, getSearchInputValueBySearchList } from './searchFunction';
import { gap10 } from '@components/fluent/Childr... | 9,281 | 40.810811 | 119 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/table/tableFunction/search/searchFunction.ts | import { mergeStyleSets } from '@fluentui/react';
import { trialJobStatus } from '@static/const';
import { EXPERIMENT } from '@static/datamodel';
import { TableRecord, SearchItems } from '@static/interface';
const classNames = mergeStyleSets({
menu: {
textAlign: 'center',
maxWidth: 600,
sel... | 7,486 | 33.344037 | 118 | ts |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/table/tableFunction/tensorboard/TensorboardDialog.tsx | import React from 'react';
import { PrimaryButton, Dialog, DialogType, DialogFooter } from '@fluentui/react';
import { KillJobIsError, TensorboardTaskInfo } from '@static/interface';
interface TensorboardDialogProps {
isReaptedStartTensorboard: boolean;
isShowTensorboardDetail: boolean;
onHideDialog: () =>... | 2,749 | 37.194444 | 113 | tsx |
nni | nni-master/ts/webui/src/components/experiment/trialdetail/table/tableFunction/tensorboard/TensorboardUI.tsx | import React, { useState, useEffect } from 'react';
import axios from 'axios';
import { DefaultButton, IContextualMenuProps } from '@fluentui/react';
import { MANAGER_IP } from '@static/const';
import { disableTensorboard, getTensorboardMenu } from '@static/function';
import TensorboardDialog from './TensorboardDialog'... | 5,802 | 38.47619 | 119 | tsx |
nni | nni-master/ts/webui/src/components/experimentManagement/ExperimentManagerIndex.tsx | import * as React from 'react';
import {
Stack,
DetailsList,
DefaultButton,
Icon,
SearchBox,
IColumn,
IStackTokens,
MessageBar,
MessageBarType
} from '@fluentui/react';
import { ExperimentsManager } from '@model/experimentsManager';
import { expformatTimestamp, copyAndSort } from '@s... | 17,811 | 39.666667 | 119 | tsx |
nni | nni-master/ts/webui/src/components/experimentManagement/FilterBtns.tsx | import * as React from 'react';
import { DefaultButton, Icon, Dropdown, DatePicker, DayOfWeek } from '@fluentui/react';
import { EXPERIMENTSTATUS } from '@static/const';
import { fillOptions } from './expFunction';
interface FilterBtnsProps {
platform: string[];
selectedStatus: string[];
selectedPlatform: ... | 3,115 | 35.658824 | 87 | tsx |
nni | nni-master/ts/webui/src/components/experimentManagement/Header.tsx | import React from 'react';
import { Link } from 'react-router-dom';
import { Stack, StackItem, CommandBarButton } from '@fluentui/react';
import { RevToggleKey } from '../fluent/Icon';
import { NNILOGO } from '../nav/slideNav/NNItabs';
import { gap15, stackStyle } from '../fluent/ChildrenGap';
export const Hearder = (... | 1,208 | 43.777778 | 116 | tsx |
nni | nni-master/ts/webui/src/components/experimentManagement/TrialIdColumn.tsx | import * as React from 'react';
import { Stack } from '@fluentui/react';
import { AllExperimentList } from '@static/interface';
import CopyButton from '../common/CopyButton';
interface TrialIdColumnProps {
item: AllExperimentList;
}
class TrialIdColumn extends React.Component<TrialIdColumnProps, {}> {
constru... | 1,552 | 29.45098 | 101 | tsx |
nni | nni-master/ts/webui/src/components/experimentManagement/expFunction.ts | import { AllExperimentList, SortInfo } from '@static/interface';
import { copyAndSort } from '@static/function';
function compareDate(date1: Date, date2: Date): boolean {
if (date1 !== undefined && date2 !== undefined) {
if (date1.getFullYear() === date2.getFullYear()) {
if (date1.getMonth() ==... | 1,293 | 28.409091 | 96 | ts |
nni | nni-master/ts/webui/src/components/experimentManagement/experimentConst.ts | const MAXSCREENCOLUMNWIDHT = 180;
const MINSCREENCOLUMNWIDHT = 139;
export { MAXSCREENCOLUMNWIDHT, MINSCREENCOLUMNWIDHT };
| 124 | 24 | 54 | ts |
nni | nni-master/ts/webui/src/components/fluent/ChildrenGap.ts | import { IStackTokens, IStackStyles } from '@fluentui/react';
// name: gap + specific gap number
const gap10: IStackTokens = {
childrenGap: 10
};
const gap15: IStackTokens = {
childrenGap: 15
};
const stackStyle: IStackStyles = {
root: {
minWidth: 400,
height: 56,
display: 'flex'... | 401 | 16.478261 | 61 | ts |
nni | nni-master/ts/webui/src/components/fluent/Icon.tsx | import * as React from 'react';
import { Icon, initializeIcons } from '@fluentui/react';
initializeIcons();
const infoIcon = <Icon iconName='info' />;
const warining = <Icon iconName='Warning' />;
const errorBadge = <Icon iconName='ErrorBadge' />;
const completed = <Icon iconName='Completed' />;
const blocked = <Icon ... | 1,444 | 27.9 | 60 | tsx |
nni | nni-master/ts/webui/src/components/fluent/ModalTheme.tsx | import { getTheme, mergeStyleSets, FontWeights, FontSizes } from '@fluentui/react';
// Themed styles for the example.
const theme = getTheme();
const contentStyles = mergeStyleSets({
container: {
display: 'flex',
flexFlow: 'column nowrap',
alignItems: 'stretch'
},
header: [
t... | 1,371 | 24.407407 | 83 | tsx |
nni | nni-master/ts/webui/src/components/nav/ErrorMessage.tsx | import React, { useState, useCallback } from 'react';
import { Stack } from '@fluentui/react/lib/Stack';
import { DefaultButton } from '@fluentui/react/lib/Button';
import LogPanel from '@components/nav/slideNav/LogPanel';
import { Important, Cancel } from '@components/fluent/Icon';
import { EXPERIMENT } from '@static/... | 1,968 | 47.02439 | 108 | tsx |
nni | nni-master/ts/webui/src/components/nav/LinksIcon.tsx | import React, { useState, useEffect } from 'react';
import { getPrefix } from '@static/function';
import { TOOLTIPSTYLE } from '@static/const';
import { DirectionalHint, TooltipHost } from '@fluentui/react';
/**
*
* for nav bar: document, github, nni-version tips
*/
interface TooltipHostIndexProps {
iconName: ... | 1,584 | 31.346939 | 118 | tsx |
nni | nni-master/ts/webui/src/components/nav/Nav.tsx | import React, { useState, useEffect, useContext } from 'react';
import axios from 'axios';
import { Stack, StackItem, CommandBarButton, DefaultButton, IContextualMenuProps, IStackTokens } from '@fluentui/react';
import WebRouters from './WebsiteRouter';
import TooltipHostForIcon from './TooltipHostForIcon';
import Link... | 8,246 | 39.033981 | 120 | tsx |
nni | nni-master/ts/webui/src/components/nav/TooltipHostForIcon.tsx | import React, { useState, useEffect } from 'react';
import { NavLink } from 'react-router-dom';
import { getPrefix } from '@static/function';
import { TOOLTIPSTYLE } from '@static/const';
import { DirectionalHint, TooltipHost } from '@fluentui/react';
// feedback, document, version btns
interface TooltipHostIndexProp... | 2,190 | 34.33871 | 94 | tsx |
nni | nni-master/ts/webui/src/components/nav/WebsiteRouter.tsx | import React, { useState, useEffect } from 'react';
import { NavLink } from 'react-router-dom';
import { getPrefix } from '@static/function';
import { TOOLTIPSTYLE } from '@static/const';
import { DirectionalHint, TooltipHost } from '@fluentui/react';
import { getRouter } from './Nav';
// feedback, document, version b... | 3,619 | 39.674157 | 103 | tsx |
nni | nni-master/ts/webui/src/components/nav/slideNav/ExperimentSummaryPanel.tsx | import React, { useState, useEffect } from 'react';
import { Stack, PrimaryButton, DefaultButton, Panel, StackItem } from '@fluentui/react';
import MonacoEditor from 'react-monaco-editor';
import { downFile } from '@static/function';
import { DRAWEROPTION } from '@static/const';
import { EXPERIMENT, TRIALS } from '@sta... | 3,838 | 38.173469 | 110 | tsx |
nni | nni-master/ts/webui/src/components/nav/slideNav/IconButtonTemplet.tsx | import React from 'react';
import { DefaultButton, Icon } from '@fluentui/react';
interface ButtonProps {
icon: string;
btuName: string;
event: any;
}
const IconButtonTemplet = (props: ButtonProps): any => {
const { icon, btuName, event } = props;
return (
<div className='container'>
... | 686 | 25.423077 | 67 | tsx |
nni | nni-master/ts/webui/src/components/nav/slideNav/LogPanel.tsx | import React, { useState, useEffect } from 'react';
import axios from 'axios';
import { Stack, StackItem, Panel, PrimaryButton, DefaultButton, Pivot, PivotItem } from '@fluentui/react';
import { DOWNLOAD_IP } from '@static/const';
import { downFile } from '@static/function';
import MonacoHTML from '@components/common/M... | 4,844 | 35.156716 | 152 | tsx |
nni | nni-master/ts/webui/src/components/nav/slideNav/NNItabs.tsx | import React, { useState } from 'react';
import { NavLink } from 'react-router-dom';
import { getPrefix } from '@static/function';
const activeClassName = 'selected';
const OVERVIEWTABS = (
<NavLink to='/oview' className={({ isActive }) => (isActive ? `${activeClassName} link` : 'link')}>
<span className='c... | 1,331 | 31.487805 | 107 | tsx |
nni | nni-master/ts/webui/src/components/nav/slideNav/SlideNavBtns.tsx | import React, { useState, useCallback } from 'react';
import TrialConfigPanel from './TrialConfigPanel';
import LogPanel from './LogPanel';
import LinksIcon from '@components/nav/LinksIcon';
import '@style/nav/slideNavBtns.scss';
/***
* this file is the container of [config, search space, dispatcher/nnimanager log]
... | 1,887 | 39.170213 | 120 | tsx |
nni | nni-master/ts/webui/src/components/nav/slideNav/TrialConfigPanel.tsx | import React, { useState, useCallback, useEffect } from 'react';
import { Stack, Panel, PrimaryButton } from '@fluentui/react';
import lodash from 'lodash';
import MonacoEditor from 'react-monaco-editor';
import { EXPERIMENT } from '@static/datamodel';
import { MONACO } from '@static/const';
import { convertDuration, c... | 3,549 | 36.765957 | 119 | tsx |
nni | nni-master/ts/webui/src/components/title/Title.tsx | import React, { useContext } from 'react';
import { Stack, Icon } from '@fluentui/react';
import { TitleContext } from './TitleContext';
import '@style/experiment/overview/overviewTitle.scss';
export const Title = (): any => {
const { icon, text } = useContext(TitleContext);
return (
<Stack horizontal ... | 465 | 30.066667 | 56 | tsx |
nni | nni-master/ts/webui/src/components/title/TitleContext.tsx | import * as React from 'react';
export const TitleContext = React.createContext({
text: '',
icon: ''
});
| 114 | 15.428571 | 49 | tsx |
nni | nni-master/ts/webui/src/static/const.ts | import { getPrefix } from './function';
// when there are more trials than this threshold, metrics will be updated in group of this size to avoid freezing
const METRIC_GROUP_UPDATE_THRESHOLD = 100;
const METRIC_GROUP_UPDATE_SIZE = 20;
/**
* RESTAPI and DOWNLOAD_IP must be synchronized with:
* - nni/experiment/r... | 2,650 | 24.490385 | 114 | ts |
nni | nni-master/ts/webui/src/static/datamodel.ts | import { Experiment } from './model/experiment';
import { TrialManager } from './model/trialmanager';
const EXPERIMENT = new Experiment();
const TRIALS = new TrialManager();
export { EXPERIMENT, TRIALS };
| 207 | 25 | 52 | ts |
nni | nni-master/ts/webui/src/static/experimentConfig.ts | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
'use strict';
export interface TrainingServiceConfig {
platform: string;
}
/* Local */
export interface LocalConfig extends TrainingServiceConfig {
platform: 'local';
useActiveGpu?: boolean;
maxTrialNumberPerGpu: number;
... | 3,906 | 22.39521 | 74 | ts |
nni | nni-master/ts/webui/src/static/function.ts | import * as JSON5 from 'json5';
import axios from 'axios';
import { IContextualMenuProps } from '@fluentui/react';
import { RETIARIIPARAMETERS } from './const';
import { EXPERIMENT } from './datamodel';
import { MetricDataRecord, FinalType, TensorboardTaskInfo } from './interface';
function getPrefix(): string | undef... | 13,537 | 28.819383 | 109 | ts |
nni | nni-master/ts/webui/src/static/interface.ts | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { ExperimentConfig } from './experimentConfig';
/**
* Definition of single dimension in search space.
*/
interface SingleAxis {
baseName: string;
fullName: string;
type: string;
scale: 'log' | 'linear' | 'ordinal';
... | 4,555 | 18.808696 | 118 | ts |
nni | nni-master/ts/webui/src/static/jsonutil.ts | const batchThreshold = 0.5;
/**
* Format objects in a "batch", which means they should either be all collapsed or all expanded.
*
* Note that in this file the word "object" means any serializable value,
* while JavaScript `Object` is called "dict" instead.
*
* Caller should use `detectBatch` to ensure that a... | 8,312 | 37.665116 | 113 | ts |
nni | nni-master/ts/webui/src/static/model/experiment.ts | import { MANAGER_IP } from '../const';
import { ExperimentConfig, toSeconds } from '../experimentConfig';
import { ExperimentProfile, ExperimentMetadata, NNIManagerStatus } from '../interface';
import { requestAxios } from '../function';
import { SearchSpace } from './searchspace';
function compareProfiles(profile1?: ... | 6,134 | 28.926829 | 120 | ts |
nni | nni-master/ts/webui/src/static/model/experimentsManager.ts | import { MANAGER_IP } from '../const';
import { AllExperimentList } from '../interface';
import { requestAxios } from '../function';
class ExperimentsManager {
private experimentList: AllExperimentList[] = [];
private platform: string[] = [];
private errorMessage: string = '';
public getExperimentList... | 1,494 | 30.808511 | 85 | ts |
nni | nni-master/ts/webui/src/static/model/localStorage.ts | export interface StorageFormat {
expire: number;
time: number;
value: string;
isSelectall: boolean;
}
export const getValue = (key): null | string => {
const val = localStorage.getItem(key);
if (!val) {
return null;
}
const data = JSON.parse(val) as StorageFormat;
if (Date.n... | 1,084 | 22.586957 | 83 | ts |
nni | nni-master/ts/webui/src/static/model/searchspace.ts | import { SingleAxis, MultipleAxes } from '../interface';
import { Trial } from './trial';
import { SUPPORTED_SEARCH_SPACE_TYPE } from '../const';
import { formatComplexTypeValue } from '../function';
function fullNameJoin(prefix: string, name: string): string {
return prefix ? prefix + '/' + name : name;
}
class ... | 6,654 | 34.77957 | 115 | ts |
nni | nni-master/ts/webui/src/static/model/trial.ts | import { MetricDataRecord, TrialJobInfo, TableRecord, FinalType, MultipleAxes, SingleAxis } from '../interface';
import {
getFinal,
formatAccuracy,
metricAccuracy,
parseMetrics,
isArrayType,
isNaNorInfinity,
formatComplexTypeValue,
reformatRetiariiParameter
} from '../function';
/**
* ... | 11,408 | 34.104615 | 112 | ts |
nni | nni-master/ts/webui/src/static/model/trialmanager.ts | import { MANAGER_IP, METRIC_GROUP_UPDATE_THRESHOLD, METRIC_GROUP_UPDATE_SIZE } from '../const';
import { MetricDataRecord, TableRecord, TrialJobInfo, MultipleAxes } from '../interface';
import { Trial } from './trial';
import { SearchSpace, MetricSpace } from './searchspace';
import { requestAxios, parseMetrics } from ... | 11,395 | 36.860465 | 118 | ts |
nni | nni-master/ts/webui/src/static/style/index.css | body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
font-family:
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
'Roboto',
'Oxygen',
'Ubuntu',
'Cantarell',
'Fira Sans',
'Droid Sans',
'Helvetica Neue',
sans-se... | 1,751 | 9.305882 | 51 | css |
nni | nni-master/ts/webui/src/static/style/common/trialStatus.css | /* all trial status font-color in the table */
.RUNNING,
.USER_CANCELED,
.ADD_RESUMED {
color: #0071bc;
}
.FAILED {
color: #a4262c;
}
.SUCCEEDED {
/* color: #00ad56; */
color: #18c4a9;
}
.UNKNOWN {
color: #ff8c00;
}
.SYS_CANCELED {
color: #eb0716;
}
.WAITING {
color: #d29200;
}
.EARLY... | 353 | 10.0625 | 46 | css |
coronavirus-data | coronavirus-data-master/README.md | # NYC Coronavirus Disease 2019 (COVID-19) Data
This repository contains data on Coronavirus Disease 2019 (COVID-19) in New York City (NYC). The Health Department classifies the start of the COVID-19 outbreak in NYC as the date of the first laboratory-confirmed case, February 29, 2020.
You can view visualizations... | 41,789 | 101.931034 | 996 | md |
coronavirus-data | coronavirus-data-master/Geography-resources/README.md | # Geo files
This folder contains additional resources for data provided by MODZCTA (modified ZIP code tabulation area) - geographic files for modified ZIP Code Tabulation Area geographies (MODZCTA).
It can be challenging to map data that are reported by ZIP Code. A ZIP Code doesn’t actually refer to an area, but rath... | 1,238 | 102.25 | 538 | md |
coronavirus-data | coronavirus-data-master/alert-levels/readme.md | ### nyc_alert_levels.csv
This file tracks NYC’s Alert Level to help communities and individuals make informed decisions about what COVID precautions and safety measures should be taken. The alert levels range from low to very high based on guidelines set by the [CDC](https://www.cdc.gov/coronavirus/2019-ncov/scienc... | 3,696 | 118.258065 | 546 | md |
coronavirus-data | coronavirus-data-master/archive/Readme.md | # Archive/
This folder contains files that are no longer updated. See below for a crosswalk of old files to the same data in new locations.
| Prior file name(s) | New file name(s) | New file location |
|----------------------------------------------------------------|-----------------------------------------------... | 1,120 | 73.733333 | 176 | md |
coronavirus-data | coronavirus-data-master/latest/Readme.md | # latest/
This folder contains files with data that focus on the most recent period of the outbreak. It includes daily 28-day counts and rates of hospitalizations and deaths by MODZCTA, and trend data that cover the most recent 90 days.
## Files
### breakthrough-summary.csv
This file contains cumulative counts and ... | 12,255 | 99.459016 | 598 | md |
coronavirus-data | coronavirus-data-master/totals/Readme.md | # totals/
This folder contains cumulative totals since the start of the COVID-19 outbreak in NYC, which the Health Department defines as the diagnosis of the first confirmed COVID-19 case on February 29, 2020. The Health Department recommends against interpreting daily changes to these files as one day’s worth of dat... | 17,856 | 82.443925 | 637 | md |
coronavirus-data | coronavirus-data-master/trends/Readme.md | # trends/
This folder contains files with daily, weekly, and monthly data shown across time. Note that these trend data are published by date of event, not by date of report. The Health Department recommends against interpreting daily changes to these files as one day’s worth of data, due to the difference between da... | 32,624 | 91.684659 | 583 | md |
coronavirus-data | coronavirus-data-master/variants/Readme.md | # variants/
This folder contains files with data on SARS-CoV-2 variants. It includes information on the number and type of SARS-CoV-2 variants identified in NYC over time. All tables containing variant data are updated weekly on Thursday (with data through the previous Saturday). These files are based on a small subs... | 5,526 | 95.964912 | 459 | md |
mopo | mopo-master/README.md | # Model-based Offline Policy Optimization (MOPO)
Code to reproduce the experiments in [MOPO: Model-based Offline Policy Optimization](https://arxiv.org/pdf/2005.13239.pdf).
## Installation
1. Install [MuJoCo 2.0](https://www.roboti.us/index.html) at `~/.mujoco/mujoco200` and copy your license key to `~/.mujoco/mjke... | 1,527 | 30.183673 | 143 | md |