1(window.webpackJsonp=window.webpackJsonp||[]).push([[119],{1155:function(n,t,e){e(144).register({code:{width:20,height:20,viewBox:"0 0 20 20",data:'<path pid="0" d="M10.908 3.87l-3.19 11.905 1.323.355 3.19-11.905-1.323-.355zM6.995 14.357l.93-.992v-.014l-3.489-3.274L7.717 6.58l-.999-.937L2.5 10.138l4.495 4.219zM13.005 14.357l-.93-.992v-.014l3.489-3.274-3.281-3.496.999-.937 4.218 4.494-4.495 4.219z" _fill="#3E5CC9"/>'}})},1204:function(n,t,e){n.exports={}},1265:function(n,t,e){"use strict";e(1204)},1322:function(n,t,e){"use strict";e.r(t);e(41);var i=e(173),o=e(120),s=(e(1155),{data:function data(){return{visibleSnippet:!1}},methods:{toggleVisibleSnippet:function toggleVisibleSnippet(){this.visibleSnippet=!this.visibleSnippet},closeDialog:function closeDialog(){this.visibleSnippet=!1}},setup:function setup(){return function useImportFromPython(){var n=Object(o.a)().isRunningOnHuggingFace,t=(0,Object(i.a)().getUser)(),e=n();return{snippet:'\n# pip install argilla\n# to run this code snippet\n\nimport argilla as rg\n\nclient = rg.Argilla(\n api_url="'.concat(window.location.origin,'",\n api_key="').concat(t.apiKey,'",\n)\n\nsettings = rg.Settings(\n guidelines="These are some guidelines.",\n fields=[\n rg.TextField(\n name="text",\n ),\n ],\n questions=[\n rg.LabelQuestion(\n name="label",\n labels=["yes", "no"]\n ),\n ],\n)\n\ndataset = rg.Dataset(\n name="my_dataset",\n settings=settings,\n)\n\ndataset.create()\n\nrecords = [\n {\n "text": "Do you need oxygen to breathe?",\n "label": "yes",\n }\n]\n\ndataset.records.log(records)\n'),isRunningOnHF:e}}()}}),a=(e(1265),e(26)),r=Object(a.a)(s,(function render(){var n=this,t=n._self._c;return t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:n.closeDialog,expression:"closeDialog"}],staticClass:"import-from-python"},[t("BaseButton",{staticClass:"import-from-python__button",on:{click:n.toggleVisibleSnippet}},[t("svgicon",{staticClass:"import-from-python__button__icon",attrs:{name:"code",width:"18",height:"18",color:"var(--bg-opacity-87)"}}
1),n._v(n._s(n.$t("home.importFromPython")))],1),n._v(" "),t("transition",{attrs:{name:"fade",appear:""}},[n.visibleSnippet?t("dialog",{staticClass:"import-from-python__dialog"},[n.isRunningOnHF?t("span",{staticClass:"import-from-python__warning",domProps:{innerHTML:n._s(n.$t("home.importFromPythonHFWarning"))}}):n._e(),n._v(" "),t("div",{directives:[{name:"copy-code",rawName:"v-copy-code"}],staticClass:"import-from-python__content"},[t("pre",[t("code",{directives:[{name:"highlight",rawName:"v-highlight"}],staticClass:"import-from-python__code",attrs:{language:"python"}},[n._v(n._s(n.snippet))])])])]):n._e()])],1)}),[],!1,null,"1c6b36e0",null);t.default=r.exports;installComponents(r,{BaseButton:e(259).default})}}]);
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.