PageSourceSearch

https://soradata-alphaedge-registry.hf.space/static-files/static/js/306.d09d6095.chunk.js

js soradata-alphaedge-registry.hf.space collected 2026-10-03 17:24:52 UTC 9,983 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunk_mlflow_mlflow=globalThis.webpackChunk_mlflow_mlflow||[]).push([[306],{24213(e,o,t){t.d(o,{IT:()=>z,Id:()=>M,OM:()=>A,R3:()=>Y,T4:()=>E,Vn:()=>D,WW:()=>C,XQ:()=>v,dC:()=>I,gy:()=>R,h:()=>H,iE:()=>k,lh:()=>b,nN:()=>y,t4:()=>w,tz:()=>p,zZ:()=>L});var i=t(15032),n=t(51477),r=t(77753),s=t(10587),l=t(5460),a=t(39521),d=t(19135),c=t(19740),u=t(67593),m=t(25752),g=t(63968);const p=200;var h={name:"lugakg",styles:"font-weight:normal"};const v=({icon:e,title:o,value:t,subtitle:n})=>{const{theme:r}=(0,s.u)();return(0,g.FD)("div",{css:(0,i.AH)({marginBottom:r.spacing.lg},""),children:[(0,g.FD)("div",{css:(0,i.AH)({display:"flex",alignItems:"center",gap:r.spacing.xs},""),children:[(0,g.Y)("span",{css:(0,i.AH)({color:r.colors.textSecondary,display:"flex"},""),children:e}),(0,g.Y)(s.T.Text,{bold:!0,size:"lg",children:o})]}),void 0!==t&&(0,g.FD)(s.T.Title,{level:3,css:(0,i.AH)({margin:0,marginTop:r.spacing.sm},""),children:[t,n&&(0,g.FD)(g.FK,{children:[" ",(0,g.Y)(s.T.Text,{color:"secondary",css:h,children:n})]})]})]})},f=({children:e,height:o=280})=>{const{theme:t}=(0,s.u)();return(0,g.Y)("div",{css:(0,i.AH)({border:`1px solid ${t.colors.border}`,borderRadius:t.borders.borderRadiusMd,padding:t.spacing.lg,height:o,display:"flex",alignItems:"center",justifyContent:"center"},""),children:e})};var T={name:"1u1zie3",styles:"width:120px"},x={name:"m0jwvv",styles:"width:80px"},S={name:"82a6rk",styles:"flex:1"};const b=({height:e=280})=>{const{theme:o}=(0,s.u)();return(0,g.FD)("div",{css:(0,i.AH)({border:`1px solid ${o.colors.border}`,borderRadius:o.borders.borderRadiusMd,padding:o.spacing.lg,height:e,display:"flex",flexDirection:"column",gap:o.spacing.md},""),children:[(0,g.Y)(r.TitleSkeleton,{css:T}),(0,g.Y)(r.TitleSkeleton,{css:x}),(0,g.Y)("div",{css:S,children:(0,g.Y)(r.TableSkeleton,{lines:4})})]})},y=({height:e,message:o})=>(0,g.Y)(f,{height:e,children:(0,g.Y)(s.T.Text,{color:"error",children:o||(0,g.Y)(l.A,{id:"cp/h86",defaultMessage:"Failed to load chart data"})})}),k=({height:e,message:o})=>(0,g.Y)("div",{css:(0,i.AH)({height:e||"100%",display:"flex",alignItems:"center",justifyContent:"center"},""),children:(0,g.Y)(s.T.Text,{color:"secondary",children:o||(0,g.Y)(l.A,{id:"zwktEP",defaultMessage:"No data available for the selected time range"})})});function Y(e,o,t){const i=c.Ay.getExperimentPageTabRoute(e,u.fM.Traces),n=new URLSearchParams,{startTimeLabel:r,startTime:s,endTime:l}=null!==o&&void 0!==o?o:{};return r&&n.set("startTimeLabel",r),s&&n.set("startTime",s),l&&n.set("endTime",l),null===t||void 0===t||t.forEach(e=>n.append("filter",e)),`${i}?${n.toString()}`}function M(e,o,t,i){return Y(e,{startTimeLabel:"CUSTOM",startTime:new Date(o).toISOString(),endTime:new Date(o+1e3*t).toISOString()},i)}function w(e){return[m.w8.ASSESSMENT,m.dD.IS_NOT_NULL,"",e].join("::")}function A(e,o){return[m.w8.ASSESSMENT,m.tl.EQUALS,o,e].join("::")}function I(e){return[m.Gq,m.tl.EQUALS,e].join("::")}function C(e){return[m.RC,m.tl.EQUALS,e].join("::")}function D({active:e,payload:o,label:t,formatter:r,linkConfig:c,componentId:u}){var m,p,h,v;const{theme:f}=(0,s.u)(),T=(0,a.Zp)(),{hideTooltipLinks:x,tooltipLinkUrlBuilder:S,tooltipLinkText:b,tracesNavigationFilters:y}=null!==(m=(0,n.useContext)(d.J0))&&void 0!==m?m:{};if(!e||null===o||void 0===o||!o.length)return null;const k=null===(p=o[0])||void 0===p?void 0:p.payload,Y=void 0!==(null===c||void 0===c?void 0:c.onLinkClick),w=(null===c||void 0===c?void 0:c.experimentId)&&(null===c||void 0===c?void 0:c.timeIntervalSeconds)&&void 0!==(null===k||void 0===k?void 0:k.timestampMs),A=!x&&c&&(Y||w);return(0,g.FD)("div",{onMouseMove:e=>e.stopPropagation(),css:(0,i.AH)({backgroundColor:`${f.colors.backgroundPrimary}80`,backdropFilter:"blur(2px)",border:`1px solid ${f.colors.border}`,borderRadius:f.borders.borderRadiusMd,fontSize:f.typography.fontSizeSm,padding:f.spacing.sm,pointerEvents:"auto",marginLeft:-20,marginRight:-20},""),children:[t&&(0,g.Y)("div",{css:(0,i.AH)({fontWeight:500,marginBottom:f.spacing.xs},""),children:t}),(0,g.Y)("div",{css:(0,i.AH)({maxHeight:120,overflowY:"auto",overflowX:"hidden"},""),children:o.map((e,o)=>{const[t,n]=r(e.value,e.name);return(0,g.FD)("div",{css:(0,i.AH)({display:"flex",alignItems:"center",gap:f.spacing.xs,paddingTop:f.spacing.xs,paddingBottom:f.spacing.xs},""),children:[(0,g.Y)("span",{css:(0,i.AH)({width:f.spacing.sm,height:f.spacing.sm,borderRadius:"50%",backgroundColor:e.color,flexShrink:0},"")}),(0,g.FD)("span",{css:(0,i.AH)({color:e.color},""),children:[n,":"]}),(0,g.Y)("span",{children:t})]},o)})}),A&&(0,g.Y)("div",{css:(0,i.AH)({borderTop:`1px solid ${f.colors.border}`,marginTop:f.spacing.xs,paddingTop:f.spacing.xs},""),children:(0,g.Y)(s.T.Link,{componentId:null!==u&&void 0!==u?u:"mlflow.overview.usage.traces.view_traces_link",onClick:()=>{var e;if(Y)null===(e=c.onLinkClick)||void 0===e||e.call(c,t,k);else if(w){var o,i,n,r,s,l;const e=S?S(null!==(o=c.experimentId)&&void 0!==o?o:"",null!==(i=k.timestampMs)&&void 0!==i?i:0,null!==(n=c.timeIntervalSeconds)&&void 0!==n?n:0):M(null!==(r=c.experimentId)&&void 0!==r?r:"",null!==(s=k.timestampMs)&&void 0!==s?s:0,null!==(l=c.timeIntervalSeconds)&&void 0!==l?l:0,y);T(e)}},css:(0,i.AH)({cursor:"pointer",display:"flex",alignItems:"center",gap:f.spacing.xs},""),children:null!==(h=null!==(v=null===c||void 0===c?void 0:c.linkText)&&void 0!==v?v:b)&&void 0!==h?h:(0,g.Y)(l.A,{id:"c+3yBY",defaultMessage:"View traces for this period"})})})]})}function L(){const{theme:e}=(0,s.u)();return{tick:{fontSize:10,fill:e.colors.textSecondary,dy:e.spacing.sm}
1,axisLine:!1,tickLine:!1,interval:"preserveStartEnd"}}function z(){const{theme:e}=(0,s.u)();return{tick:{fontSize:10,fill:e.colors.textSecondary},axisLine:!1,tickLine:!1,width:40}}function R(e){var o;const{theme:t}=(0,s.u)();return{formatter:e=>(0,g.Y)("span",{css:(0,i.AH)({color:t.colors.textPrimary,fontSize:t.typography.fontSizeSm,cursor:"pointer"},""),children:e}),wrapperStyle:{maxHeight:null!==(o=null===e||void 0===e?void 0:e.maxHeight)&&void 0!==o?o:60,overflowY:"auto",overflowX:"hidden",paddingTop:t.spacing.xs}}}const H=({children:e,componentId:o,...t})=>{const{theme:r}=(0,s.u)(),l=(0,s.g)({componentType:s.D.Card,componentId:o,analyticsEvents:[s.f.OnClick]}),a=(0,n.useCallback)(e=>{o&&(null===l||void 0===l||l.onClick(e))},[o,l]);return(0,g.Y)("div",{css:(0,i.AH)({border:`1px solid ${r.colors.border}`,borderRadius:r.borders.borderRadiusMd,padding:r.spacing.lg,backgroundColor:r.colors.backgroundPrimary},""),onClick:a,...t,children:e})};function E(){const{theme:e}=(0,s.u)();return{strokeOpacity:.3,fill:e.colors.blue200,fillOpacity:.3}}},10306(e,o,t){t.d(o,{TraceRequestsChart:()=>y});var i=t(15032),n=t(51477),r=t(10587),s=t(5460),l=t(68077),a=t(60633),d=t(57455),c=t(55368),u=t(95305),m=t(57877),g=t(35773),p=t(78642),h=t(39848),v=t(55871),f=t(71974),T=t(19135);var x=t(24213),S=t(63968);var b={name:"1f1m9i6",styles:"display:flex;justify-content:space-between;align-items:flex-start"};const y=({title:e})=>{const{theme:o}=(0,r.u)(),t=(0,x.zZ)(),y=(0,x.IT)(),k=(0,x.T4)(),{experimentIds:Y,timeIntervalSeconds:M}=(0,T.W0)(),{totalRequests:w,avgRequests:A,isLoading:I,error:C,hasData:D,zoom:L}=function(){const{experimentIds:e,startTimeMs:o,endTimeMs:t,timeIntervalSeconds:i,timeBuckets:r,filters:s}=(0,T.W0)(),{data:l,isLoading:a,error:d}=(0,v.o)({experimentIds:e,startTimeMs:o,endTimeMs:t,viewType:h.mW.TRACES,metricName:h.po.TRACE_COUNT,aggregations:[{aggregation_type:h.DF.COUNT}],timeIntervalSeconds:i,dimensions:[h.zr.TRACE_STATUS],filters:s}),c=(0,n.useMemo)(()=>(null===l||void 0===l?void 0:l.data_points)||[],[null===l||void 0===l?void 0:l.data_points]),u=(0,n.useMemo)(()=>c.reduce((e,o)=>{var t;return e+((null===(t=o.values)||void 0===t?void 0:t[h.DF.COUNT])||0)},0),[c]),m=(0,n.useMemo)(()=>u/r.length,[u,r.length]),g=(0,n.useMemo)(()=>{const e=new Map;for(const i of c){var o;const n=new Date(null===(o=i.dimensions)||void 0===o?void 0:o[h.Ad]).getTime();var t;isNaN(n)||e.set(n,(e.get(n)||0)+((null===(t=i.values)||void 0===t?void 0:t[h.DF.COUNT])||0))}return e},[c]),p=(0,n.useMemo)(()=>r.map(e=>({name:(0,f.fq)(e,i),count:g.get(e)||0,timestampMs:e})),[r,g,i]),x=(0,f.RZ)(p,"name"),S=(0,n.useMemo)(()=>x.isZoomed?0===x.zoomedData.length?0:x.zoomedData.reduce((e,o)=>e+o.count,0)/x.zoomedData.length:m,[x.isZoomed,x.zoomedData,m]);return{chartData:p,totalRequests:u,avgRequests:S,isLoading:a,error:d,hasData:c.length>0,zoom:x}}(),{zoomedData:z,isZoomed:R,refAreaLeft:H,refAreaRight:E,handleMouseDown:F,handleMouseMove:_,handleMouseUp:N,zoomOut:O}=L,U=(0,n.useCallback)(e=>[`${e}`,"Requests"],[]),q=(0,n.useMemo)(()=>(0,S.Y)(x.Vn,{formatter:U,componentId:"mlflow.overview.usage.traces.view_traces_link",linkConfig:{experimentId:Y[0],timeIntervalSeconds:M}}),[Y,M,U]);return I?(0,S.Y)(x.lh,{}):C?(0,S.Y)(x.nN,{}):(0,S.FD)(x.h,{componentId:"mlflow.charts.trace_requests",children:[(0,S.FD)("div",{css:b,children:[(0,S.Y)(x.XQ,{icon:(0,S.Y)(r.ck,{}),title:null!==e&&void 0!==e?e:(0,S.Y)(s.A,{id:"KE/zZf",defaultMessage:"Traces"}),value:w.toLocaleString()}),R&&(0,S.Y)(r.B,{componentId:"mlflow.charts.trace_requests.zoom_out",size:"small",onClick:O,children:(0,S.Y)(s.A,{id:"FcddG+",defaultMessage:"Zoom Out"})})]}),(0,S.Y)("div",{css:(0,i.AH)({height:x.tz,userSelect:"none"},""),children:D?(0,S.Y)(l.u,{width:"100%",height:"100%",children:(0,S.FD)(a.E,{data:z,margin:{top:10,right:20,left:10,bottom:0},onMouseDown:F,onMouseMove:_,onMouseUp:N,onMouseLeave:N,children:[(0,S.Y)(d.W,{dataKey:"name",...t}),(0,S.Y)(c.h,{...y}),(0,S.Y)(u.m,{content:q,cursor:{fill:o.colors.actionTertiaryBackgroundHover},wrapperStyle:{pointerEvents:"auto"}}),(0,S.Y)(m.yP,{dataKey:"count",fill:o.colors.blue400,radius:[4,4,0,0]}),A>0&&(0,S.Y)(g.e_,{y:A,stroke:o.colors.textSecondary,strokeDasharray:"4 4",label:{value:`AVG (${Math.round(A).toLocaleStr
1ing()})`,position:"insideTopRight",fill:o.colors.textSecondary,fontSize:10}}),H&&E&&(0,S.Y)(p.T,{x1:H,x2:E,...k})]})}):(0,S.Y)(x.iE,{})})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.