query stringlengths 7 6.41k | document stringlengths 12 28.8k | metadata dict | negatives listlengths 30 30 | negative_scores listlengths 30 30 | document_score stringlengths 5 10 | document_rank stringclasses 2
values |
|---|---|---|---|---|---|---|
Register a new view key with the view factory eg: factory = AbstractViewFactory.new factory.register my_view: SomeViewClass You can setup many at the same time: factory.register my_view: SomeClass, another_view: OtherViewClass | def register(view_hash)
self.class.register view_hash
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def view(view, symbol)\n registered_views[String(view)] = { symbol: String(symbol).to_sym }\n self\n end",
"def register(key, &factory)\n @factories[key] = factory\n self\n end",
"def register_view_by(user)\n if user\n view = view_for(user) \n if view.nil?\n ... | [
"0.6591519",
"0.6507942",
"0.63272035",
"0.61373234",
"0.608776",
"0.595585",
"0.5938726",
"0.5794936",
"0.5771254",
"0.5731997",
"0.5666165",
"0.56103075",
"0.5598721",
"0.5576095",
"0.55547476",
"0.55299664",
"0.5525555",
"0.5513879",
"0.5476883",
"0.54575104",
"0.54317105"... | 0.74382234 | 0 |
GET /charted_accountants GET /charted_accountants.json | def index
@charted_accountants = ChartedAccountant.all
@general_setting = GeneralSetting.first
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_charted_accountant\n @charted_accountant = ChartedAccountant.find(params[:id])\n end",
"def agency_chart\n if(params[ :year ].nil?)\n params[ :year ] = '2015'\n else\n # Nothing to do.\n end\n expenses_of_public_agency = HelperController.expenses_... | [
"0.65485334",
"0.6393527",
"0.63027585",
"0.6299109",
"0.6244783",
"0.6234712",
"0.6230231",
"0.6229354",
"0.6220164",
"0.61622345",
"0.61622185",
"0.61556613",
"0.61353517",
"0.61142105",
"0.6102393",
"0.6102393",
"0.6084765",
"0.60839134",
"0.608084",
"0.60797185",
"0.60713... | 0.6540054 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.