query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
ffea299d7cd663c80c8bbc24211edf3a | generic title generation override | [
{
"docid": "4d114414c4083e689d7a5d7924850717",
"score": "0.0",
"text": "def title_from(doc)\n Date.today.strftime(\"%y%m%d\") + (\n doc.at(\"head title\").inner_text || \"Webstrip generic page title\"\n )\n end",
"title": ""
}
] | [
{
"docid": "0117b040f75dd4efb8ad2f14e63ae946",
"score": "0.8162531",
"text": "def generate_title\n\t\tif self.title.blank?\n\t\t\tself.title = /[:word:]-[:word:]-\\d{1}/.gen\n\t\tend\n\tend",
"title": ""
},
{
"docid": "47c579a781d8f8795a2b4712a654660c",
"score": "0.7967892",
"text": ... |
9425a49f932e46a286b6d97cd1692df7 | page for editing perhour rates for instructors and aircraft | [
{
"docid": "d759981f5c630ac53335cf281bb789e9",
"score": "0.7629873",
"text": "def edit_rates\n return unless has_permission :can_do_billing\n @page_title = 'Edit Aircraft and Instructor Hourly Rates'\n @instructors = Group.users_in_group('instructor')\n @aircrafts = Aircraft.find(:all,:conditions=>[... | [
{
"docid": "112d6365f469ab78f6eb4e588b0e61f4",
"score": "0.64375186",
"text": "def update\n \trespond_to do |format|\n \t\tif @recurring_available_hour.update(recurring_available_hour_params)\n \t\t\tformat.html { redirect_to instructor_recurring_available_hours_path(@instructor), notice: 'Non recurr... |
9e7cfae34cbd9587071ac244e6b3fbeb | Remembers a user in the database for use in persistent sessions. | [
{
"docid": "bca35c7993389739562d684900f1cf1b",
"score": "0.0",
"text": "def remember\n self.remember_token = User.new_token\n update_attribute(:remember_digest, User.digest(remember_token))\n end",
"title": ""
}
] | [
{
"docid": "2851e427c467049c7639c468daea3c35",
"score": "0.6720419",
"text": "def reload_user\n @user = User.find(session[:user][:id])\n end",
"title": ""
},
{
"docid": "96a75f37098f9b5db8b7c451f485268e",
"score": "0.6603912",
"text": "def check_new_or_reseted_user\n begin\n ... |
65920831a4ead74dff6bfe16905842c3 | Retrieve a list of MyLibrary folders | [
{
"docid": "491463449cba0691a960f2d3074da705",
"score": "0.8048436",
"text": "def get_library_folders(params = {})\n Services::LibraryService.get_library_folders(params)\n end",
"title": ""
}
] | [
{
"docid": "0b54994a4202be9d327f254f95bf8004",
"score": "0.76560104",
"text": "def get_library_folders(params)\n url = Util::Config.get('endpoints.base_url') + Util::Config.get('endpoints.library_folders')\n url = build_url(url, params)\n response = RestClient.get(url, get_hea... |
f854353d6d6ec8765125b9f0e4099ea7 | When options connection_protocol and connection_port are not provided It will set as default | [
{
"docid": "fc6543a5c6f8a969fb98f8076f4a5a51",
"score": "0.0",
"text": "def plugin_setup!\n validate_aws_config!(%i{image aws_access_key_id aws_secret_access_key})\n config[:connection_protocol] ||= connection_protocol_ec2\n config[:connection_port] ||= connection_port\n end",
... | [
{
"docid": "2503d299f7667b394eefa979858c735f",
"score": "0.80863404",
"text": "def default_connection_options=(options); end",
"title": ""
},
{
"docid": "91f39a13ddd9faf474c7b6fb94de6b20",
"score": "0.78387994",
"text": "def default_connection_options=(_arg0); end",
"title": ""
... |
f556e1e979c08a496d4c264717b19db2 | containing the sums of adjacent numbers in the original array. See the examples. | [
{
"docid": "e1f32a756e4c6b62a91dc0d18ed516c0",
"score": "0.8207608",
"text": "def adjacent_sum(arr)\n sumArr = []\n arr.each_with_index do |num, idx|\n if arr[idx + 1]\n sumArr << num + arr[idx+1]\n end\n end\n return sumArr\nend",
"title": ""
}
] | [
{
"docid": "5a1af823dc249e9d7dd99ba0b8a9c37b",
"score": "0.84520906",
"text": "def adjacent_sums(arr)\n sums = []\n (0...arr.length-1).each do |i|\n sums << arr[i] + arr[i + 1]\n end\n sums\nend",
"title": ""
},
{
"docid": "0f349ebaa5753eb749c671536bf9abc8",
"score": "... |
1820212ab49793287adbef9acf7410a2 | PUT /mail_templates/1 PUT /mail_templates/1.json | [{"docid":"960cc8fb43cdf1480552558bcf44d6e7","score":"0.63604003","text":"def update\n @mail_temp(...TRUNCATED) | [{"docid":"d84d3c312d52d7daf25260a4ed634508","score":"0.6778152","text":"def update\n respond_to (...TRUNCATED) |
b29825764693d5660edc2ecacd0ea004 | "Subject can be set in your I18n file at config/locales/en.yml with the following lookup: en.notific(...TRUNCATED) | [{"docid":"38831b9c501321337266f1240d2b8a0c","score":"0.0","text":"def reset_password(user)\n @us(...TRUNCATED) | [{"docid":"8928fe4f050d7ebd3e9aa992b07e320a","score":"0.71628356","text":"def subject_for\n A(...TRUNCATED) |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [{"docid":"b6a4b265d78dae70bfdc7bf3acb095e5","score":"0.0","text":"def update!(**args)\n @b(...TRUNCATED) | [{"docid":"184b1b1ed771473d3eb9f338c0734c38","score":"0.73066413","text":"def update *args\n opts(...TRUNCATED) |
4864b1c1b7e7c50e10ec35a57016b762 | Creates a new Page object | [{"docid":"895df3f87643c0d0fd1956130e8f98f3","score":"0.0","text":"def initialize(page)\n (...TRUNCATED) | [{"docid":"f7bc6069ca7cf8b802df35a556838923","score":"0.7957492","text":"def new\n @page = Page.n(...TRUNCATED) |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 168