Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 598848097
  • Loading branch information
frigus02 authored and LIT team committed Jan 16, 2024
1 parent 8122fc9 commit 243a058
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions lit_nlp/client/modules/annotated_text_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import { html} from 'lit';
import {observable} from 'mobx';

import {LitModule} from '../core/lit_module';
import {AnnotationGroups, TextSegments} from '../elements/annotated_text_vis';
import {type AnnotationGroups, TextSegments} from '../elements/annotated_text_vis';
import {MultiSegmentAnnotations, TextSegment} from '../lib/lit_types';
import {IndexedInput, ModelInfoMap, Spec} from '../lib/types';
import {type IndexedInput, ModelInfoMap, Spec} from '../lib/types';
import {doesOutputSpecContain, filterToKeys, findSpecKeys} from '../lib/utils';

import {styles as sharedStyles} from '../lib/shared_styles.css';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/modules/confusion_matrix_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {MulticlassPreds} from '../lib/lit_types';
import {styles as sharedStyles} from '../lib/shared_styles.css';
import {GroupedExamples, IndexedInput, ModelInfoMap} from '../lib/types';
import {arrayContainsSame, doesOutputSpecContain, facetMapToDictKey} from '../lib/utils';
import {FacetingMethod, GetFeatureFunc, GroupService, NumericFeatureBins} from '../services/group_service';
import {FacetingMethod, GetFeatureFunc, GroupService, type NumericFeatureBins} from '../services/group_service';
import {DataService, SelectionService} from '../services/services';

import {styles} from './confusion_matrix_module.css';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/modules/curves_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {FacetsChange} from '../core/faceting_control';
import {LitModule} from '../core/lit_module';
import {MulticlassPreds} from '../lib/lit_types';
import {styles as sharedStyles} from '../lib/shared_styles.css';
import {GroupedExamples, IndexedInput, ModelInfoMap, SCROLL_SYNC_CSS_CLASS, Spec} from '../lib/types';
import {type GroupedExamples, IndexedInput, ModelInfoMap, SCROLL_SYNC_CSS_CLASS, Spec} from '../lib/types';
import {findSpecKeys, hasValidParent} from '../lib/utils';
import {NumericFeatureBins} from '../services/group_service';
import {GroupService} from '../services/services';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/modules/data_table_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {LitModule} from '../core/lit_module';
import {ColumnHeader, DataTable, SortableTemplateResult, TableData, TableEntry} from '../elements/table';
import {BooleanLitType, LitType, LitTypeWithVocab, URLLitType} from '../lib/lit_types';
import {styles as sharedStyles} from '../lib/shared_styles.css';
import {formatForDisplay, IndexedInput, ModelInfoMap, Spec} from '../lib/types';
import {formatForDisplay, IndexedInput, ModelInfoMap, type Spec} from '../lib/types';
import {compareArrays} from '../lib/utils';
import {DataService, FocusService, SelectionService, SliceService} from '../services/services';
import {STARRED_SLICE_NAME} from '../services/slice_service';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/modules/datapoint_editor_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {LitModule} from '../core/lit_module';
import {AnnotationCluster, EdgeLabel, SpanLabel} from '../lib/dtypes';
import {BooleanLitType, EdgeLabels, Embeddings, ImageBytes, ListLitType, LitTypeWithVocab, MultiSegmentAnnotations, Scalar, SearchQuery, SequenceTags, SpanLabels, SparseMultilabel, StringLitType, Tokens, URLLitType} from '../lib/lit_types';
import {styles as sharedStyles} from '../lib/shared_styles.css';
import {formatAnnotationCluster, formatEdgeLabel, formatSpanLabel, IndexedInput, Input, ModelInfoMap, SCROLL_SYNC_CSS_CLASS, Spec} from '../lib/types';
import {formatAnnotationCluster, formatEdgeLabel, formatSpanLabel, type IndexedInput, type Input, ModelInfoMap, SCROLL_SYNC_CSS_CLASS, Spec} from '../lib/types';
import {findSpecKeys, isLitSubtype, makeModifiedInput} from '../lib/utils';
import {GroupService} from '../services/group_service';
import {SelectionService} from '../services/selection_service';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/modules/feature_attribution_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {IndexedInput, ModelInfoMap} from '../lib/types';
import * as utils from '../lib/utils';
import {findSpecKeys} from '../lib/utils';
import {SignedSalienceCmap} from '../services/color_service';
import {NumericFeatureBins} from '../services/group_service';
import {type NumericFeatureBins} from '../services/group_service';
import {AppState, GroupService} from '../services/services';

import {styles as sharedStyles} from '../lib/shared_styles.css';
Expand Down
4 changes: 2 additions & 2 deletions lit_nlp/client/modules/generated_text_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import {computed, observable} from 'mobx';
import {LitModule} from '../core/lit_module';
import {styles as visStyles} from '../elements/generated_text_vis.css';
import {LitSwitch} from '../elements/switch';
import {DiffMode, GeneratedTextResult, GENERATION_TYPES} from '../lib/generated_text_utils';
import {DiffMode, type GeneratedTextResult, GENERATION_TYPES} from '../lib/generated_text_utils';
import {GeneratedText, GeneratedTextCandidates, LitTypeWithParent, ReferenceScores, ReferenceTexts} from '../lib/lit_types';
import {styles as sharedStyles} from '../lib/shared_styles.css';
import {IndexedInput, Input, ModelInfoMap, Spec} from '../lib/types';
import {IndexedInput, type Input, ModelInfoMap, Spec} from '../lib/types';
import {doesOutputSpecContain, findSpecKeys} from '../lib/utils';

import {styles} from './generated_text_module.css';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/modules/generator_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {LitModule} from '../core/lit_module';
import {TableData, TableEntry} from '../elements/table';
import {EdgeLabels, FieldMatcher, LitTypeTypesList, SpanLabels} from '../lib/lit_types';
import {styles as sharedStyles} from '../lib/shared_styles.css';
import {CallConfig, formatForDisplay, IndexedInput, Input, ModelInfoMap, Spec} from '../lib/types';
import {CallConfig, formatForDisplay, IndexedInput, type Input, ModelInfoMap, Spec} from '../lib/types';
import {cloneSpec, flatten, isLitSubtype} from '../lib/utils';
import {GroupService} from '../services/group_service';
import {SelectionService, SliceService} from '../services/services';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/modules/lm_prediction_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {computed, observable} from 'mobx';
import {LitModule} from '../core/lit_module';
import {TextSegment, Tokens, TokenTopKPreds} from '../lib/lit_types';
import {styles as sharedStyles} from '../lib/shared_styles.css';
import {IndexedInput, ModelInfoMap, Spec, TopKResult} from '../lib/types';
import {type IndexedInput, ModelInfoMap, Spec, TopKResult} from '../lib/types';
import {findMatchingIndices, findSpecKeys, makeModifiedInput, replaceNth} from '../lib/utils';

import {styles} from './lm_prediction_module.css';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/modules/metrics_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {MetricBestValue, MetricResult} from '../lib/lit_types';
import {styles as sharedStyles} from '../lib/shared_styles.css';
import {CallConfig, FacetMap, IndexedInput, ModelInfoMap, Spec} from '../lib/types';
import {MetricsResponse, MetricsValues} from '../services/api_service';
import {GroupService, NumericFeatureBins} from '../services/group_service';
import {GroupService, type NumericFeatureBins} from '../services/group_service';
import {ClassificationService, SliceService} from '../services/services';

// A dict of metrics type to the MetricsValues for one metric generator.
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/modules/regression_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {LitModule} from '../core/lit_module';
import {TableData} from '../elements/table';
import {styles as sharedStyles} from '../lib/shared_styles.css';
import {RegressionScore} from '../lib/lit_types';
import {IndexedInput, ModelInfoMap, RegressionResults, Spec} from '../lib/types';
import {IndexedInput, ModelInfoMap, type RegressionResults, Spec} from '../lib/types';
import {doesOutputSpecContain, findSpecKeys} from '../lib/utils';
import {CalculatedColumnType} from '../services/data_service';
import {DataService} from '../services/services';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/modules/salience_map_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {InterpreterClick} from '../elements/interpreter_controls';
import {TokenWithWeight} from '../elements/token_chips';
import {FeatureSalience, FieldMatcher, ImageGradients, ImageSalience, LitTypeTypesList, LitTypeWithParent, MulticlassPreds, RegressionScore, Salience, SalienceTargetInfo, TokenGradients, TokenSalience, FrameSalience} from '../lib/lit_types';
import {styles as sharedStyles} from '../lib/shared_styles.css';
import {CallConfig, IndexedInput, ModelInfoMap, Preds, SCROLL_SYNC_CSS_CLASS, Spec} from '../lib/types';
import {CallConfig, type IndexedInput, ModelInfoMap, type Preds, SCROLL_SYNC_CSS_CLASS, Spec} from '../lib/types';
import {argmax, cloneSpec, findSpecKeys, makeModifiedInput} from '../lib/utils';
import {SalienceCmap, SignedSalienceCmap, UnsignedSalienceCmap} from '../services/color_service';
import {FocusService} from '../services/focus_service';
Expand Down
4 changes: 2 additions & 2 deletions lit_nlp/client/modules/sequence_salience_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import {LegendType} from '../elements/color_legend';
import {TokenWithWeight} from '../elements/token_chips';
import {SignedSalienceCmap, UnsignedSalienceCmap} from '../lib/colors';
import {SequenceSalienceMap} from '../lib/dtypes';
import {canonicalizeGenerationResults, GeneratedTextResult, GENERATION_TYPES, getAllTargetOptions, TargetOption} from '../lib/generated_text_utils';
import {canonicalizeGenerationResults, type GeneratedTextResult, GENERATION_TYPES, getAllTargetOptions, TargetOption} from '../lib/generated_text_utils';
import {Salience} from '../lib/lit_types';
import {styles as sharedStyles} from '../lib/shared_styles.css';
import {IndexedInput, ModelInfoMap, Spec} from '../lib/types';
import {type IndexedInput, ModelInfoMap, type Spec} from '../lib/types';
import {sumArray} from '../lib/utils';

import {styles} from './sequence_salience_module.css';
Expand Down
4 changes: 2 additions & 2 deletions lit_nlp/client/modules/tda_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ import {computed, observable} from 'mobx';
import {app} from '../core/app';
import {LitModule} from '../core/lit_module';
import {TableData, TableEntry} from '../elements/table';
import {canonicalizeGenerationResults, GeneratedTextResult, GENERATION_TYPES, getAllOutputTexts, getFlatTexts} from '../lib/generated_text_utils';
import {canonicalizeGenerationResults, type GeneratedTextResult, GENERATION_TYPES, getAllOutputTexts, getFlatTexts} from '../lib/generated_text_utils';
import {FieldMatcher, InfluentialExamples, LitTypeWithParent} from '../lib/lit_types';
import {styles as sharedStyles} from '../lib/shared_styles.css';
import {CallConfig, ComponentInfoMap, IndexedInput, Input, ModelInfoMap, Spec} from '../lib/types';
import {CallConfig, ComponentInfoMap, type IndexedInput, type Input, ModelInfoMap, Spec} from '../lib/types';
import {cloneSpec, filterToKeys, findSpecKeys, makeModifiedInput} from '../lib/utils';
import {AppState, SelectionService} from '../services/services';

Expand Down

0 comments on commit 243a058

Please sign in to comment.