query stringlengths 7 9.55k | document stringlengths 10 363k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
when timeout reached, the current task will be automatically passed more doc please reference | def test_return_wfid_when_launch_a_process
pdef = Ruote.process_definition do
sequence do
alpha :id => "alpha"
#alpha :id => "alpha", :timeout => "1s",:on_timeout=>"error" #on_timeout could be "error" or "redo" or "pass"
bravo :id => "bravo"
end
end
#puts @dashboard
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def timeout; end",
"def timeout; end",
"def timeout; end",
"def timeout!; end",
"def timeout\n super\n end",
"def timeout\n super\n end",
"def timeout=(_arg0); end",
"def task\n end",
"def timeout_at; end",
"def worker_timeout(timeout); end",
"def timeout\n @timeout\n ... | [
"0.7203962",
"0.7203962",
"0.7203962",
"0.71271414",
"0.7039393",
"0.7039393",
"0.6970441",
"0.6959488",
"0.68790925",
"0.6834334",
"0.6680427",
"0.6661215",
"0.66259056",
"0.6566802",
"0.6487351",
"0.6424982",
"0.6424427",
"0.64153427",
"0.6353901",
"0.6350741",
"0.63316333"... | 0.0 | -1 |
Parse rack options. Separate with "" | def parse_rack_options(args=[])
rack_args = []
start_adding = false
args.each do |arg|
rack_args << arg if start_adding
start_adding = true if arg == '--'
end
opt_parser = ::Rack::Server::Options.new
options = default_options
options[:config] ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def parse_options; end",
"def parse_options; end",
"def rack_options\n opts = Hash.new\n Souffle::Config.configuration.each do |k,v|\n if /^rack/ =~ k.to_s\n param = k.to_s.gsub('rack_', '')\n\n case param\n when \"environment\"\n opts[param.to_sym] = v\n else\n ... | [
"0.6848961",
"0.6848961",
"0.6587204",
"0.644285",
"0.643066",
"0.6248814",
"0.6248814",
"0.61532766",
"0.6120869",
"0.61188275",
"0.6082055",
"0.6075389",
"0.60186476",
"0.5970804",
"0.59276533",
"0.59276533",
"0.5912266",
"0.5902904",
"0.5857093",
"0.583665",
"0.58265066",
... | 0.75665605 | 0 |
Convert Markdown source to HTML. | def markdown_to_html(src)
render_options = {
prettify: true,
}
renderer = MarkdownRenderer.new(render_options)
extensions = {
no_intra_emphasis: true,
autolink: true,
tables: true,
fenced_code_blocks: true,
strikethrough: true,
underline: t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def convert_markdown\n self.html_content = Raptor::Markdown.render(self.content)\n end",
"def markdown_to_html(src)\n render_options = {\n prettify: true,\n }\n renderer = MdRenderer.new(render_options)\n extensions = {\n no_intra_emphasis: true,\n autolink: true,\n ... | [
"0.7891726",
"0.78337073",
"0.78326416",
"0.7602874",
"0.75563204",
"0.7519026",
"0.74858457",
"0.74858457",
"0.74498504",
"0.74331677",
"0.7399379",
"0.7352248",
"0.731496",
"0.72981447",
"0.727499",
"0.727499",
"0.72383475",
"0.7190825",
"0.7137216",
"0.71363753",
"0.711141... | 0.7882719 | 1 |
Generate ERB template file path. | def make_template_path(filename)
return File.join(templates_dir, filename)
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def template_path\n File.expand_path(File.join(File.dirname(__FILE__), \"template.rb\"))\n end",
"def template_path\n \"#{template_dir}/#{template_name}\"\n end",
"def full_template_path\n template_root.join(\"#{@template}.erb\").to_s.squeeze(\"/\")\n end",
"def template_path\... | [
"0.7688445",
"0.7327838",
"0.7285889",
"0.7261827",
"0.7245247",
"0.7175216",
"0.7153519",
"0.7114851",
"0.7095189",
"0.706997",
"0.7062429",
"0.7050688",
"0.7025185",
"0.70074826",
"0.6944099",
"0.69384277",
"0.6920413",
"0.6906366",
"0.6904153",
"0.6904153",
"0.6837696",
... | 0.6734599 | 34 |
Return templates directory path. | def templates_dir
return File.join(File.dirname(__FILE__), 'server/templates')
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def templates_path\n File.join(File.dirname(__FILE__), '..', 'templates')\n end",
"def templates_path\n File.join((File.expand_path '..', File.dirname(__FILE__)), 'templates')\n end",
"def templates_path\n File.join(root, TEMPLATES)\n end",
"def template_dir\n Templates.path_... | [
"0.8920486",
"0.8873113",
"0.8821368",
"0.8707445",
"0.8367332",
"0.8305819",
"0.8279993",
"0.82445604",
"0.8228824",
"0.8216681",
"0.8148766",
"0.80669826",
"0.779476",
"0.77898556",
"0.77775925",
"0.77592695",
"0.76812655",
"0.7678042",
"0.7672645",
"0.7661021",
"0.7567771"... | 0.8787657 | 3 |
Fill each image in array | def fill
self.each {|image| image.fill}
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fill_imageblock(*args)\n @p.fill_imageblock(self, *args)\n end",
"def convert_to_images(arr,rows,cols)\n canvas = ChunkyPNG::Canvas.new(28, 28, ChunkyPNG::Color::TRANSPARENT)\n canvas.grayscale!\n \n for i in 0..arr.length-1 do\n for j in 0..rows-1 do\n for k in ... | [
"0.6574817",
"0.6449698",
"0.63799226",
"0.60086334",
"0.60018146",
"0.59992373",
"0.5947092",
"0.5890919",
"0.58882433",
"0.58711535",
"0.58664745",
"0.58661073",
"0.58359295",
"0.5805225",
"0.5801344",
"0.5752101",
"0.57411754",
"0.57323295",
"0.5718781",
"0.56965005",
"0.5... | 0.7929252 | 0 |
Use callbacks to share common setup or constraints between actions. | def set_student_grader
@grader = current_student.graders.find(params[:id])
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_required_actions\n # TODO: check what fields change to asign required fields\n end",
"def action_hook; end",
"def run_actions; end",
"def define_action_hook; end",
"def actions; end",
"def define_action_helpers\n if super && action == :save\n @instance_helper_module.class_... | [
"0.6163163",
"0.6045976",
"0.5946146",
"0.591683",
"0.5890051",
"0.58349305",
"0.5776858",
"0.5703237",
"0.5703237",
"0.5652805",
"0.5621621",
"0.54210985",
"0.5411113",
"0.5411113",
"0.5411113",
"0.5391541",
"0.53794575",
"0.5357573",
"0.53402257",
"0.53394014",
"0.53321576"... | 0.0 | -1 |
Never trust parameters from the scary internet, only allow the white list through. | def grader_params
params.require(:grader).permit(:id, :is_published)
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def strong_params\n params.require(:user).permit(param_whitelist)\n end",
"def strong_params\n params.require(:listing_member).permit(param_whitelist)\n end",
"def allow_params_authentication!; end",
"def allowed_params\n ALLOWED_PARAMS\n end",
"def default_param_whitelist\n [\"mode\"]\n... | [
"0.69792545",
"0.6781151",
"0.67419964",
"0.674013",
"0.6734356",
"0.6591046",
"0.6502396",
"0.6496313",
"0.6480641",
"0.6477825",
"0.64565",
"0.6438387",
"0.63791263",
"0.63740575",
"0.6364131",
"0.63192815",
"0.62991166",
"0.62978333",
"0.6292148",
"0.6290449",
"0.6290076",... | 0.0 | -1 |
Create a new app spec from yaml data; will use heuristics to let the developer avoid as much typing and definition mongering as possible; for details see the unit tests and the documentation for this class. | def initialize descriptor_path, data, semver = nil
raise ArgumentError, 'data is nil' unless data
@path = descriptor_path
@conf = YAML.load(data) || Hash.new
project_path = resolve_project descriptor_path, @conf
raise ArgumentError, "couldn't find project, descriptor_path: #{descriptor_pa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def createApplicationDefinition(args)\n app_uri = args[0]\n app_name = args[1]\n\n properties = args[2]\n blockApp = s(:block, nil)\n block_index = 1\n\n properties[:options].each do |k,v|\n if k != \"properties\"\n begin\n ... | [
"0.598016",
"0.5821318",
"0.56120723",
"0.5608371",
"0.5603114",
"0.5432978",
"0.5408093",
"0.5401988",
"0.5344368",
"0.532459",
"0.5321836",
"0.5299587",
"0.52971894",
"0.52439773",
"0.5233237",
"0.5224304",
"0.52103645",
"0.519777",
"0.5147356",
"0.51377714",
"0.51210153",
... | 0.4838303 | 50 |
Gets the path that the .appspec file was read from when it was initialised. | def path
@path
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def app_file_path\n File.join(tmp_dir, \"example_app_#{$example_app_counter}.rb\")\n end",
"def get_existing_spec_location\n [ \n \"#{Dir.pwd}/#{Default.default_specfile_name}\",\n Dir[\"#{Dir.pwd}/*/#{Default.default_specfile_name}\"],\n \"#{Default.remote_storage_path}/#{D... | [
"0.7097416",
"0.69676685",
"0.69221026",
"0.69178027",
"0.6873088",
"0.6818702",
"0.67953515",
"0.6774439",
"0.67317235",
"0.6716095",
"0.6666206",
"0.66280967",
"0.6613562",
"0.6609465",
"0.6600192",
"0.6542905",
"0.6539345",
"0.6539005",
"0.65211374",
"0.6504493",
"0.649404... | 0.0 | -1 |
Gets the executable name if this service has one defaults to the assembly name of the corresponding project, plus 'exe', which is how the compilers name the executables. | def exe
conf['exe'] || "#{proj.asmname}.exe"
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def program_name\n @program_name || File.basename($0, '.*')\n end",
"def get_app_name\n if ENV.key?('INSTANA_SERVICE_NAME')\n return ENV['INSTANA_SERVICE_NAME']\n end\n\n if defined?(::Resque)\n # Just because Resque is defined doesn't mean this is a resque process nece... | [
"0.7175987",
"0.71370804",
"0.69149643",
"0.6809691",
"0.66755086",
"0.64536864",
"0.6436923",
"0.6263542",
"0.6174399",
"0.6141288",
"0.6112959",
"0.6102725",
"0.6092994",
"0.6050134",
"0.5966366",
"0.59443724",
"0.5922688",
"0.58659184",
"0.58050543",
"0.57802415",
"0.57597... | 0.72297937 | 0 |
Resolves the project file given an optional descriptor path or a configuration hash or both. One of the other of the parameters need to exist, or an error will be thrown. | def resolve_project descriptor_path, conf
trace { "trying to resolve project, descriptor_path: #{descriptor_path.inspect}, conf: #{conf.inspect} [AppSpec#resolve_path]" }
project_path = conf['project_path']
return File.join File.dirname(descriptor_path), project_path if project_path and valid_path de... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def resolve(path, options = {}, &block)\n pathname = Pathname.new(path)\n attributes = environment.attributes_for(pathname)\n\n if pathname.absolute?\n pathname\n\n elsif content_type = options[:content_type]\n content_type = self.content_type if content_type == :self\n\n ... | [
"0.5974062",
"0.57788014",
"0.57480866",
"0.56165546",
"0.5589361",
"0.55713177",
"0.5402237",
"0.53989106",
"0.53224796",
"0.5282263",
"0.5255613",
"0.5209992",
"0.5192289",
"0.5166551",
"0.5166551",
"0.51250786",
"0.5123595",
"0.51215774",
"0.5113585",
"0.5108928",
"0.51075... | 0.7094699 | 0 |
gets the fully qualified path of the directory where the appspec file is | def dir_path
File.expand_path(File.dirname(@path))
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def app_path(path)\n File.expand_path(path, Dir.pwd)\n end",
"def app_dir\n File.join(home_dir, \"#{sanitized_app_name}.#{name}\")\n end",
"def app_name\n Dir.pwd.split(\"/\").last.gsub(/\\./, \"_\")\n end",
"def application_path\n if environment.container?\n ... | [
"0.76879597",
"0.74726325",
"0.7418011",
"0.7361461",
"0.73295635",
"0.7256273",
"0.72530407",
"0.7238286",
"0.7238286",
"0.71454483",
"0.7120644",
"0.7120644",
"0.70823276",
"0.7070607",
"0.7070607",
"0.70167863",
"0.70054495",
"0.7004794",
"0.699108",
"0.699108",
"0.6982950... | 0.0 | -1 |
title for puppet, title for app, title for process running on server | def title
title_raw.downcase
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_process_title\n Process.setproctitle(SERVER_PROCESS_TITLE) if Process.respond_to?(:setproctitle)\n end",
"def title\n program = \"#{@config.program} - \" if @config.program\n \"#{program}#{exception.class}:#{exception.message}\"\n end",
"def title\n base_title = app_name \n if @t... | [
"0.69774973",
"0.6663183",
"0.6627717",
"0.6464785",
"0.6371075",
"0.63199925",
"0.6313701",
"0.6280661",
"0.62282085",
"0.621426",
"0.6109445",
"0.6078197",
"0.60752374",
"0.60585535",
"0.6010577",
"0.5987877",
"0.5984683",
"0.59458274",
"0.59439516",
"0.59326667",
"0.591839... | 0.0 | -1 |
the title asis without any downcasing | def title_raw
conf['title'] || proj.title
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def title\n title_raw.downcase\n end",
"def titlecase_title\n self.title = self.title.titlecase\n end",
"def title\n name.gsub(/_/, ' ')\n end",
"def normalized_title\n normalized(full_title)\n end",
"def title\n\t\tlowers = %w(a an and but in of the)\n\t\ttitle_array = @title.spl... | [
"0.82895327",
"0.8126158",
"0.8089484",
"0.79597366",
"0.7949898",
"0.7949717",
"0.79487175",
"0.7900507",
"0.78616273",
"0.78358215",
"0.7835267",
"0.7781504",
"0.7780529",
"0.77755046",
"0.77741885",
"0.77741885",
"0.77254194",
"0.76833546",
"0.76608425",
"0.7646408",
"0.76... | 0.0 | -1 |
the description that is used when installing and reading about the package in the package manager | def description
conf['description'] || proj.description
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def description\n res = (@package.short_description ? @package.short_description : \"Description not available\") + \"\\n\"\n return res unless @package.long_description\n @package.long_description.each_line do |line|\n if line.strip.empty?\n res << \" .\\n\"\n else\n ... | [
"0.8169486",
"0.75010973",
"0.744314",
"0.73060846",
"0.70663565",
"0.7062905",
"0.70470065",
"0.6988519",
"0.6984742",
"0.69685173",
"0.69618666",
"0.69618666",
"0.6927924",
"0.6914551",
"0.68992823",
"0.6895565",
"0.68823355",
"0.68763036",
"0.6838769",
"0.68156505",
"0.681... | 0.6554307 | 46 |
gets the uri source of the project | def uri
conf['uri'] || git_source
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def source_uri\n URI.parse(url_for(@software))\n end",
"def uri\n @uri\n end",
"def uri\n @uri\n end",
"def url\n config.source_host_url\n end",
"def uri\n return @uri\n end",
"def uri\n return @uri\n end",
"def url... | [
"0.8078691",
"0.74315095",
"0.74315095",
"0.7410252",
"0.7389814",
"0.7389814",
"0.7381185",
"0.7381185",
"0.73272693",
"0.7324081",
"0.7324081",
"0.73238295",
"0.7310789",
"0.73054886",
"0.7292955",
"0.7264517",
"0.71348137",
"0.71217483",
"0.70705914",
"0.7040646",
"0.70254... | 0.771726 | 1 |
gets the category this package is in, both for the RPM and for puppet and for possibly assigning to a workstealing cluster or to start the app in the correct nodecluster if you have that implemented | def category
conf['category'] || 'apps'
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_category(cookbook_name)\n # Use Artifactory deployment logic only if flag sent by Artifactory plugin\n unless config[:artifactory_deploy]\n Chef::Log.debug('[KNIFE-ART] ArtifactoryShare::get_category called without artifactory flag, delegating to super')\n return orig_get_ca... | [
"0.6929204",
"0.6806752",
"0.6764492",
"0.6587064",
"0.6505861",
"0.6477484",
"0.6456713",
"0.6407017",
"0.63935816",
"0.6317955",
"0.62308276",
"0.62308276",
"0.62308276",
"0.62308276",
"0.62308276",
"0.62308276",
"0.61691725",
"0.6134468",
"0.6117555",
"0.6115583",
"0.61060... | 0.6833989 | 1 |
gets the license that the app is licensed under | def license
conf['license'] || proj.license
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def license\n read_property 'License'\n end",
"def license\n File.read file_path('LICENSE') if license?\n end",
"def license\n return @license\n end",
"def license_title\n case self.license\n when \"cc-by-sa-3.0\"\n \"Creative Commons Attribution ShareAlike 3.... | [
"0.7972301",
"0.793698",
"0.7935488",
"0.7650344",
"0.76432943",
"0.7552142",
"0.75257564",
"0.74717486",
"0.7459858",
"0.7445198",
"0.74393564",
"0.7409276",
"0.7371773",
"0.7314018",
"0.7251358",
"0.72151303",
"0.7199091",
"0.71952546",
"0.71787924",
"0.7168941",
"0.709091"... | 0.7906041 | 3 |
gets the version with the following priorities: semver version passed in c'tor ENV['FORMAL_VERSION'] .appspec's version .xxproj's version semver from disk if all above fails; use '1.0.0' | def version
semver_version || ENV['FORMAL_VERSION'] || conf['version'] || proj.version || semver_disk_version || '1.0.0'
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def semver_version\n return @semver.format '%M.%m.%p' if @semver\n nil\n end",
"def version\n @version ||= if token.nil? || Array(packages).empty?\n '0.1.0'\n else\n packages.map do |p|\n Gem::Version.new(... | [
"0.68420315",
"0.66955763",
"0.65977967",
"0.656054",
"0.65018296",
"0.6460338",
"0.6433265",
"0.63926095",
"0.6335805",
"0.63132554",
"0.6300658",
"0.62834907",
"0.6224817",
"0.622096",
"0.62168425",
"0.6206089",
"0.6195488",
"0.6194442",
"0.61720717",
"0.6166339",
"0.616135... | 0.8183087 | 0 |
gets the binary folder, first from .appspec then from proj given a configuration mode (default: Release) | def bin_folder configuration = 'Release'
conf['bin'] || proj.output_path(configuration)
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_apk_file_path(buildType, versionCode, versionName)\n if buildType == 'qa'\n suffix = \"-qa\"\n else\n suffix = \"\"\n end\n return \"app/build/outputs/apk/\"+buildType+ \"/\"+\"app_\"+versionCode+\"_\"+versionName + suffix +\".apk\"\nend",
"def build_root\n Pathname.new(ENV[\"OBJDIR\"]... | [
"0.6105931",
"0.5956701",
"0.5917622",
"0.5906102",
"0.56180197",
"0.5602571",
"0.5593868",
"0.55365837",
"0.55283344",
"0.5523431",
"0.5495938",
"0.5489512",
"0.54617333",
"0.54431003",
"0.54272884",
"0.54272884",
"0.54241514",
"0.5400895",
"0.5399137",
"0.53950316",
"0.5392... | 0.71156645 | 0 |
gets the folder that is used to keep configuration that defaults to the current (.) directory | def conf_folder
conf['conf_folder'] || '.'
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_config_directory()\n\t\t\tconfig_directory= File.join(@base_directory, \"config\")\n\t\t\treturn config_directory\n\t\tend",
"def cfg_dir\n File.join(@full_path, CONFIG_DIR)\n end",
"def default_path\n Pathname.pwd.join(*base_config_path, self.class.config_folder)\n end",
"def get_upl... | [
"0.7862497",
"0.7821159",
"0.7760272",
"0.7592441",
"0.74455273",
"0.72361445",
"0.721619",
"0.7144698",
"0.7115835",
"0.70839053",
"0.7079739",
"0.7073563",
"0.7048624",
"0.7041179",
"0.7018994",
"0.700901",
"0.69973755",
"0.69851613",
"0.69559044",
"0.69198155",
"0.6900931"... | 0.79000145 | 0 |
gets an enumerable list of paths that are the 'main' contents of the package | def contents
conf['contents'] || []
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def packages\n FileList[package_path('.*')]\n end",
"def main_files\n retrieve_files_in_main_dir\n end",
"def main_package_set\n each_package_set.find(&:main?)\n end",
"def all\n rootdir = Cfg.rootdir\n dirlist = [\"#{rootdir}/*/*\", \"#{rootdir}/*/*/*/*\"]\n fileli... | [
"0.74013543",
"0.7149753",
"0.6915835",
"0.6834818",
"0.6697096",
"0.6697096",
"0.6697096",
"0.6697096",
"0.6694879",
"0.6693461",
"0.6693461",
"0.6559364",
"0.6552173",
"0.6537689",
"0.6528277",
"0.65045786",
"0.64994544",
"0.6489524",
"0.64568484",
"0.6453757",
"0.6441603",... | 0.0 | -1 |
gets the provider to use to calculate the directory paths to construct inside the nuget defaults to the 'defaults' provider which can be found in 'albacore/app_spec/defaults.rb' | def provider
conf['provider'] || 'defaults'
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def provider_directory\n Pathname.new(puppet_lib) + 'provider' + @name\n end",
"def provider_root(lookup_invocation)\n Pathname.new(lookup_invocation.scope.environment.configuration.path_to_env)\n end",
"def provider_path\n provider_directory + \"#{@provider}.rb\"\n end",
"def default_pro... | [
"0.64414275",
"0.6336905",
"0.6273173",
"0.61158943",
"0.6032198",
"0.6015719",
"0.5959321",
"0.5950856",
"0.59286433",
"0.57682306",
"0.57666236",
"0.5733449",
"0.57064044",
"0.5589795",
"0.55577195",
"0.5557211",
"0.5510136",
"0.5496568",
"0.54865825",
"0.54839903",
"0.5446... | 0.6425621 | 1 |
Gets the configured port to bind the site to | def port
conf['port'] || '80'
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def port\n return @forwarded_port || @port\n end",
"def port\n configuration.port\n end",
"def port\n configuration.port\n end",
"def getPort()\n return @uri.port\n end",
"def webserver_port\n AgileProxy.config.webserver_port\n end",
"def server_port\n ... | [
"0.7829362",
"0.77828395",
"0.77828395",
"0.77730846",
"0.76583505",
"0.7608183",
"0.7606838",
"0.74995494",
"0.7494363",
"0.74505705",
"0.7449198",
"0.7416007",
"0.7403604",
"0.73910517",
"0.7389471",
"0.73835087",
"0.73835087",
"0.7376906",
"0.7336043",
"0.73352754",
"0.733... | 0.77662647 | 4 |
Gets the host header to use for the binding in IIS defaults to , i.e. binding to all hosts | def host_header
conf['host_header'] || '*'
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def host_on_header\n request.headers['HTTP_HOST']\n end",
"def host\n @headers['HTTP_X_FORWARDED_HOST'] || @headers['HTTP_HOST'] \n end",
"def host\n @request['Host']\n end",
"def host\n return @forwarded_host || @host\n end",
"def header(name)\n rack_header = \"http-#{n... | [
"0.7262838",
"0.67381036",
"0.6602379",
"0.6508939",
"0.6445379",
"0.6379387",
"0.63575953",
"0.6312559",
"0.62617373",
"0.6224852",
"0.6213542",
"0.60353965",
"0.60276115",
"0.6010883",
"0.6002975",
"0.5990087",
"0.59795743",
"0.59541816",
"0.59519345",
"0.59440696",
"0.5916... | 0.78454524 | 0 |
Customizing the to_s implementation to make the spec more amenable for printing | def to_s
"AppSpec[#{title}], #{@conf.keys.length} keys]"
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def to_s(*) end",
"def to_s(*) end",
"def to_s(*) end",
"def to_s() end",
"def to_s() end",
"def to_s() end",
"def to_s() end",
"def to_s() end",
"def to_s() end",
"def to_s() end",
"def to_s() end",
"def to_s() end",
"def to_s() end",
"def to_s() end",
"def to_s() end",
"def to_s() e... | [
"0.8323734",
"0.8323734",
"0.8323734",
"0.82256883",
"0.82256883",
"0.82256883",
"0.82256883",
"0.82256883",
"0.82256883",
"0.82256883",
"0.82256883",
"0.82256883",
"0.82256883",
"0.82256883",
"0.82256883",
"0.82256883",
"0.82256883",
"0.82256883",
"0.82256883",
"0.82256883",
... | 0.0 | -1 |
determines whether the passed path is valid and existing | def valid_path path
path and File.exists? path
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def valid_file_path?(path)\n path && File.exist?(path) && File.readable?(path)\n end",
"def valid?\n File.exist?(fullpath)\n end",
"def valid?\n File.exist?(path) && File.readable?(path)\n end",
"def exists? path\n end",
"def valid_path?(path)\n !!(path =~ PATH_REGEX)\n e... | [
"0.78408766",
"0.7735351",
"0.76969916",
"0.7487898",
"0.74181336",
"0.7397706",
"0.7384085",
"0.737933",
"0.73569953",
"0.73265797",
"0.73264533",
"0.73076105",
"0.72115433",
"0.720592",
"0.71909785",
"0.71802956",
"0.7167061",
"0.71340734",
"0.71241295",
"0.71112823",
"0.71... | 0.8687481 | 0 |
gets the source from the current git repository: finds the first remote and uses that as the source of the RPM | def git_source
`git remote -v`.
split(/\n/).
map(&:chomp).
map { |s| s.split(/\t/)[1].split(/ /)[0] }.
first
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def source\n \"#{source_repo}/#{source_branch}\"\n end",
"def get_source(workdir)\n if @url\n @source = Vanagon::Component::Source.source(@url, @options, workdir)\n @source.fetch\n @source.verify\n @extract_with = @source.respond_to?(:extract) ? @source.extract(@platform.tar)... | [
"0.69586146",
"0.6790937",
"0.6376592",
"0.6367324",
"0.629199",
"0.62011755",
"0.62011755",
"0.6199503",
"0.6196241",
"0.6184177",
"0.614039",
"0.6085285",
"0.6076184",
"0.6069778",
"0.60122013",
"0.5997794",
"0.59974724",
"0.5992311",
"0.5991032",
"0.5971914",
"0.59533703",... | 0.7035276 | 0 |
Gets the semver version in %M.%m.%p form or nil if a semver isn't given in the c'tor of this class. If we have gotten an explicit version in the constructor, let's assume that version should be used in front of anything else and that the calling libraries know what they are doing. | def semver_version
return @semver.format '%M.%m.%p' if @semver
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def semver\n @semver ||= SemVer.parse(Publisher::VERSION)\n end",
"def semver_disk_version\n v = XSemVer::SemVer.find\n v.format '%M.%m.%p' if v\n rescue SemVerMissingError\n nil\n end",
"def version\n semver_version || ENV['FORMAL_VERSION'] || conf['version'] || proj.version ... | [
"0.7796931",
"0.7352792",
"0.72973317",
"0.6868392",
"0.6786511",
"0.66981685",
"0.6633107",
"0.6632563",
"0.650179",
"0.6495651",
"0.6433396",
"0.62778413",
"0.62454647",
"0.62306035",
"0.62275416",
"0.6140757",
"0.6139158",
"0.6096268",
"0.60675573",
"0.6038859",
"0.6028094... | 0.842132 | 0 |
if everything else fails, return the semver from disk | def semver_disk_version
v = XSemVer::SemVer.find
v.format '%M.%m.%p' if v
rescue SemVerMissingError
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def semver\n @semver ||= SemVer.parse(Publisher::VERSION)\n end",
"def latest_version\n file_to_semver(sorted_files.first)\n end",
"def semver_version\n return @semver.format '%M.%m.%p' if @semver\n nil\n end",
"def stable_version\n file_to_semver(stable_version_file)\... | [
"0.6836625",
"0.6832086",
"0.6829888",
"0.6810711",
"0.6683268",
"0.65773535",
"0.65356797",
"0.63678813",
"0.6263648",
"0.62626886",
"0.62031025",
"0.619412",
"0.61774933",
"0.61687267",
"0.61542004",
"0.61339474",
"0.6115562",
"0.61082125",
"0.61011076",
"0.60667264",
"0.60... | 0.6991714 | 0 |
Listen to all 'getters' | def method_missing name, *args, &block
unless name =~ /\w=$/
@conf.send(:'[]', *[name.to_s, args].flatten, &block)
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getters; end",
"def getter_method_names; end",
"def create_getters\n instance_variables.each do |v|\n define_singleton_method(v.to_s.tr('@','')) do\n instance_variable_get(v)\n end\n end\n end",
"def accessors\n self.class.accessors\n end",
"def all_get_methods\n ... | [
"0.6875264",
"0.602224",
"0.6011274",
"0.59947824",
"0.5965632",
"0.5855988",
"0.5855988",
"0.5787012",
"0.56818825",
"0.5664253",
"0.5631226",
"0.5584386",
"0.5548028",
"0.550442",
"0.55028015",
"0.5492707",
"0.544938",
"0.5440302",
"0.54231226",
"0.54164016",
"0.5401",
"0... | 0.0 | -1 |
has_many :assigned_pledges, :through => :projects, :table_name => "pledges" Logic | def projects_pledges_sum
if self.projects.length > 0
# Use map to return an array of project pledges
project_pledges = self.projects.map do |p|
p.pledges
end
# Flatten the array and then use reduce to return the total sum amount
project_pledges.flatten!.reduce(0) do |sum, pledg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pledges\n Pledge.all.select do |pledge|\n pledge.project == self\n end\n end",
"def pledges\n Pledge.all.filter do |pledge|\n pledge.project == self\n end\n end",
"def backed_projects\n pledges.map { |pledge| pledge.project }\n end",
"def backed... | [
"0.61887324",
"0.6124969",
"0.5908964",
"0.5852988",
"0.5741495",
"0.5739067",
"0.567734",
"0.5645113",
"0.559211",
"0.55726975",
"0.5567834",
"0.5550631",
"0.5539498",
"0.5533735",
"0.55262125",
"0.5525166",
"0.5510376",
"0.55101013",
"0.550862",
"0.5501246",
"0.550005",
"... | 0.0 | -1 |
before_filter :check_data_for_step_4, :only => :thank_you step 1, nothing to validate | def step1
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def before_step(step)\n # Do nothing\n end",
"def relevant_steps\n @relevant_steps = %w(recipient content sign_up confirm)\n @relevant_steps.delete(\"recipient\") if params[:person]\n @relevant_steps.delete(\"sign_up\") if user_signed_in?\n @relevant_steps\n end",
"def before_filter; end",
"... | [
"0.59599143",
"0.5893056",
"0.5815847",
"0.57556605",
"0.56974137",
"0.5649983",
"0.562135",
"0.562135",
"0.56127983",
"0.5583074",
"0.55755615",
"0.5553805",
"0.5526295",
"0.55140257",
"0.5508851",
"0.54839087",
"0.5477207",
"0.54464847",
"0.5417169",
"0.5393381",
"0.5378226... | 0.543629 | 18 |
step 2 All the user personal information is required, any fault return to step1 Create the user that will be save in session and removed in the last step | def step2
user = User.new
user.first_name = params[:first_name]
user.last_name = params[:last_name]
user.email = params[:username]
user.email_confirmation = params[:username_confirmation]
user.password = params[:password]
user.password_confirmation = params[:password_confirmation]
sessio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create_user_information # for new users. runs last according to rails.\n self.dj_name = name\n self.roles = Role.where(:title => 'noob')\n self.active = true\n set_password\n end",
"def add_initial_user\n initial_user = Member.where(:email => \"administrator@administrator.com\").first\n \n... | [
"0.6919421",
"0.68675804",
"0.6836434",
"0.67750937",
"0.6748023",
"0.6724886",
"0.6723606",
"0.6708139",
"0.6701069",
"0.6695532",
"0.6690066",
"0.6685792",
"0.66509974",
"0.6644037",
"0.66168797",
"0.6586143",
"0.65793663",
"0.6561748",
"0.6550258",
"0.65495276",
"0.6537466... | 0.75279266 | 0 |
step 3 The subscription value is required Save in the user session the subscription that he/she choose Collect all payment info | def step3
user = session[:user]
#for v1, always this will be the subscription basic 18$, for v2 this will change
user.subscription_id = 1
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def subscription_payment\n\n\n @sub = Subscription.where(return_token: params[:id]).first\n\n @amount = 0\n if @sub.subscription_type = \"Standard\"\n @amount = 3\n end\n \n if @sub.subscription_type = \"Pro\"\n @amount = 5\n end\n\n if @sub.subscription_type = \"Enterprise\"\n ... | [
"0.7198573",
"0.6926539",
"0.67966795",
"0.6742957",
"0.65395385",
"0.6467461",
"0.6424816",
"0.6408614",
"0.6382002",
"0.63797635",
"0.636948",
"0.6359511",
"0.63394266",
"0.6327211",
"0.6274756",
"0.6274447",
"0.6240677",
"0.62315243",
"0.61882615",
"0.6176698",
"0.61760575... | 0.739869 | 0 |
step 4 or Thank you page The payment info is required, any error return to step 3 This step create the transaction and show the result Production Current API Login ID: 65Bu23LnR5cZ Current Transaction Key: 74Je52vFgb6L8w66 Developer API Login ID 346cAwK8 Transaction Key 4W23eD78pR4DkHP2 For your reference, you can use ... | def thank_you
user = session[:user]
user.zip = params[:zip]
start_date = Date.today
start_date += 61
response = create_autorrecuring_subscription(start_date, user, params[:card_number], params[:month], params[:year],
params[:cvc], params[:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def payment\n @amount = 10.00\n @sim_transaction = AuthorizeNet::SIM::Transaction.new(AUTHORIZE_NET_CONFIG['api_login_id'], AUTHORIZE_NET_CONFIG['api_transaction_key'], @amount, :hosted_payment_form => true)\n @sim_transaction.set_hosted_payment_receipt(AuthorizeNet::SIM::HostedReceiptPage.new(:link_metho... | [
"0.71338326",
"0.700013",
"0.6756051",
"0.66306734",
"0.6618181",
"0.6589377",
"0.64879",
"0.64840657",
"0.6430556",
"0.6430556",
"0.6358018",
"0.6357509",
"0.6327859",
"0.6318506",
"0.62805027",
"0.62582695",
"0.62480235",
"0.6246206",
"0.61900383",
"0.618408",
"0.6176347",
... | 0.64311635 | 8 |
Check the network availability of the defined network for kvm | def check_network(options, attributes)
env.logger.info "Checking network"
if options.nil? or options.empty? or options["network_type"].nil? or options["network_type"] == "network"
check_default_network
attributes[:network_interface_type] = "network"
elsif options["n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def network_exists?(name)\n net_api = VSphereAutomation::VCenter::NetworkApi.new(api_client)\n raise_if_unauthenticated net_api, \"checking for VM network `#{name}`\"\n\n nets = net_api.list({ filter_names: name }).value\n\n raise_if_missing nets, format(\"Unable to find target network:... | [
"0.75390786",
"0.729579",
"0.7151132",
"0.70510393",
"0.6851347",
"0.68484885",
"0.6487641",
"0.6441865",
"0.6376161",
"0.6293887",
"0.62936777",
"0.6280858",
"0.62773925",
"0.62761277",
"0.6230703",
"0.62192756",
"0.6172525",
"0.6149438",
"0.6097271",
"0.60875916",
"0.608756... | 0.696002 | 4 |
Check the given pool and append to attributes Note: volume_pool_name is not working in fog library version 1.7.0. This should be fixed in the next release. | def check_pool(options, attributes)
env.logger.info "Checking pool storage"
if not options.nil? and not options.empty? and not options["pool_name"].nil?
conn = ::Libvirt::open("qemu:///system")
# Checking if the pool exists and if it is active
begin
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ceph_chef_pool_set(pool)\n if !node['ceph']['pools'][pool]['federated_names'].empty? && node['ceph']['pools'][pool]['federated_enable']\n node_loop = node['ceph']['pools'][pool]['federated_names']\n node_loop.each do |name|\n # if node['ceph']['pools'][pool]['settings']['type'] == 'replicated'\n ... | [
"0.62949324",
"0.6008395",
"0.5955463",
"0.59082437",
"0.5889729",
"0.58417076",
"0.5810958",
"0.575014",
"0.57213944",
"0.5699477",
"0.56183696",
"0.56174093",
"0.5491503",
"0.54656535",
"0.54369915",
"0.54328686",
"0.53703845",
"0.5365721",
"0.53572136",
"0.52835906",
"0.52... | 0.70917 | 0 |
Create the volume of a new vm | def create_volume(options)
# Creating the volume is part of the server creation
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def volume_create(name)\n @log.info \"Creating volume #{name} from offering id #{DISK_OFFERING}...\"\n ret = @cloud_stack.create_volume(name, ZONE, DISK_OFFERING)\n id = ret[\"createvolumeresponse\"][\"jobid\"]\n wait_for_job id\n vol_id = ret[\"createvolumeresponse\"][\"id\"]\n @log.info \"Creat... | [
"0.7603932",
"0.7550173",
"0.7361126",
"0.7353359",
"0.7339102",
"0.72570765",
"0.72170943",
"0.7172366",
"0.71709436",
"0.7149377",
"0.70925236",
"0.70816344",
"0.7055232",
"0.7023884",
"0.7017291",
"0.7015616",
"0.70072836",
"0.698941",
"0.69864607",
"0.697794",
"0.6960057"... | 0.7793355 | 1 |
takes in raw content string for event returns presentable html | def processEvent(e)
if (e.index("–") == nil)
return {"year" => "", "text" => ""}
end
year = e.split("–").first.strip
year = year.split("|").last.tr_s("[","").tr_s("]","")
text = e.split("–").drop(1).join.strip
text = removeTokens(text, "<ref", "</ref>", false)
text = removeTok... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def html raw_text\n EscapeUtils.escape_html(decode_html(raw_text))\n end",
"def html_markup_html(text); end",
"def get_body_for_html_display\n text = self.body.strip\n text = CGI.escapeHTML(text)\n text = MySociety::Format.make_clickable(text, :contract => 1)\n text = text.g... | [
"0.6163816",
"0.61470777",
"0.6093944",
"0.6054458",
"0.6006591",
"0.5998931",
"0.59760505",
"0.5970092",
"0.5916578",
"0.5916565",
"0.5911863",
"0.59107286",
"0.589743",
"0.5870221",
"0.58652645",
"0.5854301",
"0.58475196",
"0.58444345",
"0.5825004",
"0.581477",
"0.581477",
... | 0.54042053 | 98 |
presenters = ["Edsger", "Ada", "Charles", "Alan", "Grace", "Linus", "Matz"] | def badge_maker (name)
return "Hello, my name is #{name}."
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def build_list_of_players\n [\n \"cliff\",\n \"anne\",\n \"harry\",\n \"sam\",\n \"devin\",\n \"ally\",\n \"bob\",\n \"jane\",\n \"jimmy\",\n \"dave\"\n ]\nend",
"def display_presenters\n out = \"\"\n self.presenters.each do |p|\n out += p.display_name + \", \"\n end... | [
"0.651384",
"0.63138294",
"0.6239431",
"0.60443044",
"0.6016632",
"0.5903983",
"0.5895831",
"0.58642393",
"0.5832082",
"0.5787666",
"0.5758925",
"0.5740238",
"0.57308257",
"0.57220244",
"0.569311",
"0.56914115",
"0.56909126",
"0.5649767",
"0.55978733",
"0.559562",
"0.55843794... | 0.0 | -1 |
This number is the position the word should have in the result. If the input string is empty, return an empty string. The words in the input String will only contain valid consecutive numbers. Examples: "is2 Thi1s T4est 3a" > "Thi1s is2 3a T4est" "4of Fo1r pe6ople g3ood th5e the2" > "Fo1r the2 g3ood 4of th5e pe6ople" "... | def order(words)
words.split.sort_by { |word| word.chars.min }.join(" ")
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def croon str\n ans = \"\"\n words = str.split(\" \")\n words.each_with_index {|word, i|\n if words[i] == words[-1]\n ans << word.split(\"\").join(\"-\")\n ans\n return ans\n else\n ans << word.split(\"\").join(\"-\") + \" \"\n ans\n end\n }\nend",
"def rule1(str = @word)\n ... | [
"0.65919274",
"0.6555875",
"0.6482868",
"0.6424433",
"0.63678056",
"0.6255161",
"0.624083",
"0.6235579",
"0.62267613",
"0.6181627",
"0.6178666",
"0.61699927",
"0.61620665",
"0.61590844",
"0.6137075",
"0.6079815",
"0.60761285",
"0.6074439",
"0.6055065",
"0.60543",
"0.60525835"... | 0.0 | -1 |
Save current style to themepreviewertmp.less stylesheet This file overrides themepreviewerpublished.less | def save_previewer_style(theme)
target = Rails.root.join('frontend', 'src','app','stylesheets','theme-previewer-tmp.less')
File.open(target, 'w') { |f| f.write(theme_to_less(theme)) }
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def apply_previewer_style(theme)\n target = Rails.root.join('frontend', 'src','app','stylesheets','theme-previewer-published.less')\n File.open(target, 'w') { |f| f.write(theme_to_less(theme)) }\n reset_previewer_style\n end",
"def save_editor_settings\n Sketchup.write_default('MSP... | [
"0.8339792",
"0.5618391",
"0.5589702",
"0.5571611",
"0.5571611",
"0.5571611",
"0.5459564",
"0.54531217",
"0.5424684",
"0.53158313",
"0.5303067",
"0.5280615",
"0.5280615",
"0.5280615",
"0.5275888",
"0.5266663",
"0.521153",
"0.5179379",
"0.5132502",
"0.51008946",
"0.5098686",
... | 0.8342968 | 0 |
Save style to themepreviewerpublished.less and discard themepreviewertmp.less | def apply_previewer_style(theme)
target = Rails.root.join('frontend', 'src','app','stylesheets','theme-previewer-published.less')
File.open(target, 'w') { |f| f.write(theme_to_less(theme)) }
reset_previewer_style
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def save_previewer_style(theme)\n target = Rails.root.join('frontend', 'src','app','stylesheets','theme-previewer-tmp.less')\n File.open(target, 'w') { |f| f.write(theme_to_less(theme)) }\n end",
"def preview\n #for debug\n params[:d] = 'www.rubyecommerce.com'\n editor = params[:edito... | [
"0.8169883",
"0.5564768",
"0.55504745",
"0.54783833",
"0.5451068",
"0.53575987",
"0.5297068",
"0.52141875",
"0.5199135",
"0.51391596",
"0.50888693",
"0.50607103",
"0.50417185",
"0.5019325",
"0.5018339",
"0.5011773",
"0.5011773",
"0.5011773",
"0.50064373",
"0.5003655",
"0.4982... | 0.82348555 | 0 |
Convert a theme provided as a hash into a properly formatted LESS file | def theme_to_less(theme)
out = "// Generated by the Express Theme Previewer\n"
if theme[:branding]
out += "\n//----------------------------------------\n"
out += "// General Branding\n"
out += "//----------------------------------------\n"
out += theme[:branding]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def save_previewer_style(theme)\n target = Rails.root.join('frontend', 'src','app','stylesheets','theme-previewer-tmp.less')\n File.open(target, 'w') { |f| f.write(theme_to_less(theme)) }\n end",
"def apply_previewer_style(theme)\n target = Rails.root.join('frontend', 'src','app','style... | [
"0.658323",
"0.6417589",
"0.6358611",
"0.58968055",
"0.58501506",
"0.5846466",
"0.5594978",
"0.554762",
"0.54135174",
"0.539529",
"0.53441334",
"0.53411114",
"0.5271088",
"0.5206127",
"0.5190965",
"0.516559",
"0.5116733",
"0.50612766",
"0.5023543",
"0.50185806",
"0.4997745",
... | 0.71811056 | 0 |
print list of students | def print(students)
i = 0
until i == students.length
puts "#{i+1}. #{students[i][:name]}, (#{students[i][:cohort]} cohort)"
i += 1
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def print_students_list\n\t@students.each do |student|\n\t\tputs \"#{student[:name]} (#{student[:cohort]} cohort)\"\n\tend\nend",
"def print_students(label='', students)\n \n students.each do |s|\n \n puts \"#{label} #{s}\"\n puts \"\\n\\n\"\n end\n\n end",
"def print_student... | [
"0.84239525",
"0.8312446",
"0.82257473",
"0.79875594",
"0.7977934",
"0.79461557",
"0.78098136",
"0.77855235",
"0.7701137",
"0.7634899",
"0.7590437",
"0.7573367",
"0.7484167",
"0.7484167",
"0.7484167",
"0.7468382",
"0.7464784",
"0.7464784",
"0.74241626",
"0.742271",
"0.7422451... | 0.6535375 | 70 |
print number of students | def print_footer(student_info)
puts "Overall, we have #{student_info.length} great students"
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def print_current_students(students)\n\tstr = \"Currently we have #{students.length} student#{'s' if is_plural?(students.length)}\\n\"\n\tprint str\nend",
"def count_students\n students.size\n end",
"def count_students\n students.size\n end",
"def how_many_students\n number = roster.length\n \"Ther... | [
"0.7696986",
"0.7613986",
"0.7613986",
"0.76114833",
"0.7493495",
"0.74301577",
"0.7120057",
"0.7094435",
"0.7087733",
"0.7084432",
"0.7063568",
"0.70284677",
"0.70012903",
"0.69821185",
"0.6949568",
"0.6944794",
"0.6939932",
"0.6928281",
"0.6899727",
"0.6887474",
"0.6805745"... | 0.6504813 | 55 |
method to obtain cohort list from user | def input_students
students = Array.new
puts "What is the name of the student?"
puts "To finish, just hit return twice"
while true
input = gets.chomp
break if input == ""
students << {name: input, cohort: :november}
puts "Now, we have #{students.length} students"
end
return students
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cohort()\n return @cohort\nend",
"def cohort\n return @cohort\n end",
"def index\n @cohort_users = CohortUser.all\n end",
"def cohorts\n # participants.find(:all, :select => [:grad_year]).collect(&:grad_year).uniq.compact.sort.reverse\n @cohorts ||= participants.find(:all, :select => \"DIS... | [
"0.7590004",
"0.7482927",
"0.73847204",
"0.73086554",
"0.7169475",
"0.7167422",
"0.71585983",
"0.6904807",
"0.68911165",
"0.68017167",
"0.67026174",
"0.659452",
"0.645853",
"0.6335409",
"0.63332224",
"0.63189477",
"0.62825406",
"0.62819374",
"0.62758183",
"0.6269278",
"0.6262... | 0.0 | -1 |
kill connection with harpoons on fire | def kill (thing, message=nil, force=false)
if !thing || (thing.data[:killing] && (!force || thing.data[:kill_forcing])) || !@dispatcher.connections.exists?(thing.socket)
return
end
if thing.is_a?(User)
thing = thing.client
end
thing.data[:killing] = true... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kill() end",
"def kill(pid)\n check_connection\n @protocol.kill_command pid\n self\n end",
"def kill( conn_id )\n\t\tself.request( :kill, :id => conn_id )\n\tend",
"def kill!() end",
"def kill\n server.kill\n end",
"def kill_connection(connection)\n connection.shutdown!\n en... | [
"0.71928066",
"0.7181179",
"0.7076239",
"0.70525366",
"0.6915508",
"0.69114316",
"0.673",
"0.6688024",
"0.66197526",
"0.65980893",
"0.65697795",
"0.65664387",
"0.6563292",
"0.6537101",
"0.64316314",
"0.6425284",
"0.6414693",
"0.6414268",
"0.6410806",
"0.6386773",
"0.6386773",... | 0.0 | -1 |
reload the config and modules' configurations | def rehash
self.config = @configReference
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def reload_config!\n @config = nil\n load_config!\n self\n end",
"def reload(config)\n # ...\n end",
"def reload_config\n @config = nil\n end",
"def reload_config\n @config = YAML.load_file('config/mse_router_info.yml')\n end",
"def reload\n load 'config/environmen... | [
"0.78187454",
"0.77018636",
"0.7669427",
"0.7409757",
"0.7321154",
"0.7172718",
"0.7172718",
"0.7172718",
"0.7172718",
"0.7172718",
"0.7172718",
"0.7172718",
"0.7172718",
"0.7172718",
"0.7172718",
"0.7172718",
"0.7172718",
"0.7172718",
"0.7167021",
"0.7163998",
"0.71163607",
... | 0.0 | -1 |
GET /opinions or /opinions.json | def index
@opinions = Opinion.all.includes(:user).order(created_at: :desc)
@opinion = Opinion.new
@users = User.all.order(created_at: :desc)
@like = Like.new
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def index\n #@portfolio = Portfolio.find(params[:portfolio_id])\n\n @opinionable = find_opinionable\n\n @opinion = @opinionable.opinions.all\n\n\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @opinions }\n end\n end",
"def index\n @opnions = Opni... | [
"0.6323354",
"0.6218977",
"0.61838275",
"0.61642003",
"0.60491806",
"0.5974442",
"0.588858",
"0.5834296",
"0.5814475",
"0.57869303",
"0.57127786",
"0.5709256",
"0.569595",
"0.5688159",
"0.5681338",
"0.5656127",
"0.5630815",
"0.56257147",
"0.5588901",
"0.55829936",
"0.5577706"... | 0.0 | -1 |
POST /opinions or /opinions.json | def create
@opinion = current_user.opinions.build(opinion_params)
respond_to do |format|
if @opinion.save
format.html { redirect_to root_path, notice: 'Opinion was successfully created.' }
format.json { render :show, status: :created, location: @opinion }
else
format.html { ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create\n @opnion = Opnion.new(opnion_params)\n\n respond_to do |format|\n if @opnion.save\n format.html { redirect_to @opnion, notice: 'Opnion was successfully created.' }\n format.json { render :show, status: :created, location: @opnion }\n else\n format.html { render :new... | [
"0.60667956",
"0.58712035",
"0.57548916",
"0.5646881",
"0.5636204",
"0.554652",
"0.553083",
"0.54493064",
"0.5441457",
"0.5441457",
"0.5433968",
"0.54309696",
"0.53989565",
"0.53894997",
"0.53515935",
"0.53468776",
"0.53468776",
"0.5342741",
"0.5311381",
"0.530172",
"0.527252... | 0.5956549 | 1 |
PATCH/PUT /opinions/1 or /opinions/1.json | def update
respond_to do |format|
if @opinion.update(opinion_params)
format.html { redirect_to @opinion, notice: 'Opinion was successfully updated.' }
format.json { render :show, status: :ok, location: @opinion }
else
format.html { render :edit, status: :unprocessable_entity }
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update\n respond_to do |format|\n if @opnion.update(opnion_params)\n format.html { redirect_to @opnion, notice: 'Opnion was successfully updated.' }\n format.json { render :show, status: :ok, location: @opnion }\n else\n format.html { render :edit }\n format.json { rend... | [
"0.6579189",
"0.6387624",
"0.6299353",
"0.626797",
"0.6250917",
"0.6229911",
"0.6181977",
"0.61758834",
"0.6135577",
"0.6122871",
"0.60675895",
"0.60249734",
"0.5929924",
"0.59098196",
"0.5885257",
"0.5877657",
"0.5866243",
"0.58656234",
"0.5824392",
"0.58243424",
"0.581912",... | 0.59926105 | 13 |
DELETE /opinions/1 or /opinions/1.json | def destroy
@opinion.destroy
respond_to do |format|
format.html { redirect_to opinions_url, notice: 'Opinion was successfully destroyed.' }
format.json { head :no_content }
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def destroy\n @opinion.destroy\n respond_to do |format|\n format.html { redirect_to opinions_url }\n format.json { head :no_content }\n end\n end",
"def destroy\n @opinion = Opinion.find(params[:id])\n @opinion.destroy\n\n respond_to do |format|\n format.html { redirect_to opini... | [
"0.72219354",
"0.7121738",
"0.7121738",
"0.70373195",
"0.6991455",
"0.68584555",
"0.67101365",
"0.6699041",
"0.6680146",
"0.66667527",
"0.66643375",
"0.66643375",
"0.663918",
"0.663641",
"0.6617232",
"0.66057223",
"0.66052157",
"0.6601917",
"0.6593179",
"0.6582599",
"0.658239... | 0.6744703 | 8 |
Use callbacks to share common setup or constraints between actions. | def set_opinion
@opinion = Opinion.find(params[:id])
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_required_actions\n # TODO: check what fields change to asign required fields\n end",
"def action_hook; end",
"def run_actions; end",
"def define_action_hook; end",
"def actions; end",
"def define_action_helpers\n if super && action == :save\n @instance_helper_module.class_... | [
"0.6163163",
"0.6045976",
"0.5946146",
"0.591683",
"0.5890051",
"0.58349305",
"0.5776858",
"0.5703237",
"0.5703237",
"0.5652805",
"0.5621621",
"0.54210985",
"0.5411113",
"0.5411113",
"0.5411113",
"0.5391541",
"0.53794575",
"0.5357573",
"0.53402257",
"0.53394014",
"0.53321576"... | 0.0 | -1 |
Only allow a list of trusted parameters through. | def opinion_params
params.require(:opinion).permit(:body)
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def allowed_params\n ALLOWED_PARAMS\n end",
"def strong_params\n params.require(:listing_member).permit(param_whitelist)\n end",
"def parameters_list_params\n params.require(:parameters_list).permit(:name, :description, :is_user_specific)\n end",
"def param_whitelist\n [:role, :title]\... | [
"0.6948629",
"0.6813401",
"0.68012834",
"0.67958814",
"0.6745398",
"0.67409563",
"0.6526744",
"0.65207636",
"0.6492359",
"0.6433316",
"0.6433316",
"0.6433316",
"0.639903",
"0.6355392",
"0.63544166",
"0.63463736",
"0.6344045",
"0.6337686",
"0.632862",
"0.632862",
"0.632862",
... | 0.0 | -1 |
GET /users GET /users.json | def index
@users = User.all.asc(:name_pinyin)
if params[:name].present?
@users = @users.where(name: /.*#{params[:name]}.*/i)
end
if params[:phone_num].present?
@users = @users.where(phone_num: params[:phone_num])
end
if params[:belong].present?
@users = @users.where(storehouse:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def users(args = {})\n get(\"/users.json\",args)\n end",
"def show\n begin\n user = User.find(params[:user_id])\n render json: { users: user }, status: :ok\n rescue => e\n render json: { errors: e.message}, status: 404\n end\n end",
"def GetUsers params = {}\n\n para... | [
"0.82109934",
"0.7873764",
"0.7860689",
"0.78108346",
"0.78067017",
"0.7678852",
"0.76586664",
"0.76318866",
"0.7582366",
"0.75291824",
"0.7487637",
"0.74485743",
"0.7439024",
"0.7437192",
"0.7427442",
"0.73978853",
"0.73978853",
"0.73978853",
"0.73978853",
"0.7377353",
"0.73... | 0.0 | -1 |
GET /users/1 GET /users/1.json | def show
@user = User.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.json { render json: @user }
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def index\n if params[:single]\n\t url = \"#{API_BASE_URL}/users/#{params[:id]}.json\"\n\t response = RestClient.get(url)\n\t @user = JSON.parse(response.body)\n\telse\n\t url = \"#{API_BASE_URL}/users.json\"\t \n response = RestClient.get(url)\n @users = JSON.parse(response.body)\t\t \n\tend\n ... | [
"0.81046426",
"0.7703556",
"0.77011716",
"0.76262826",
"0.7582106",
"0.74818",
"0.7461394",
"0.7446168",
"0.730656",
"0.7300699",
"0.72902125",
"0.72781444",
"0.72358584",
"0.72335744",
"0.72335744",
"0.72335744",
"0.72335744",
"0.72335744",
"0.72335744",
"0.72335744",
"0.722... | 0.0 | -1 |
GET /users/new GET /users/new.json | def new
@user = User.new
respond_to do |format|
format.html # new.html.erb
format.json { render json: @user }
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def new\n @newuser = Newuser.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @newuser }\n end\n end",
"def new\n @usernew = Usernew.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @usernew }\n ... | [
"0.8287397",
"0.8169197",
"0.8155916",
"0.80483407",
"0.8022376",
"0.8021751",
"0.8009459",
"0.7950995",
"0.793078",
"0.793078",
"0.7873476",
"0.7873476",
"0.7873476"
] | 0.7860956 | 100 |
POST /users POST /users.json | def create
# rails 3 bug
params[:user][:roles].reject!(&:blank?)
@user = User.new(params[:user])
respond_to do |format|
if @user.save
format.html { redirect_to users_url, notice: I18n.t(:new_user_notify, name: @user.name, role: @user.role_str ) }
format.json { render json: @user, s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def post_users(users)\n self.class.post('https://api.yesgraph.com/v0/users', {\n :body => users.to_json,\n :headers => @options,\n })\n end",
"def CreateUser params = {}\n \n APICall(path: 'users.json',method: 'POST',payload: params.to_json)\n \n end",
"def post b... | [
"0.77161855",
"0.75194556",
"0.7383022",
"0.7240797",
"0.71973956",
"0.714118",
"0.7104371",
"0.7059066",
"0.7041304",
"0.7024592",
"0.700339",
"0.70024",
"0.70024",
"0.70024",
"0.69927466",
"0.6990943",
"0.69806844",
"0.6979046",
"0.69788784",
"0.69788784",
"0.6976385",
"0... | 0.0 | -1 |
PUT /users/1 PUT /users/1.json | def update
@user = User.find(params[:id])
params[:user][:roles].reject!(&:blank?)
respond_to do |format|
if @user.update_attributes(params[:user])
format.html { redirect_to users_url, notice: 'User was successfully updated.' }
format.json { head :no_content }
else
format.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update\n render json: Users.update(params[\"id\"], params[\"user\"])\n end",
"def update\n render json: User.update(params[\"id\"], params[\"user\"])\n end",
"def UpdateUser params = {}\n \n APICall(path: 'users.json',method: 'PUT',payload: params.to_json)\n \n end",
"de... | [
"0.74114245",
"0.73920554",
"0.73041475",
"0.7254177",
"0.7202618",
"0.70756376",
"0.70535713",
"0.7029043",
"0.70075685",
"0.69883573",
"0.6983195",
"0.694263",
"0.69409895",
"0.692315",
"0.6909438",
"0.687742",
"0.68486536",
"0.6834162",
"0.6821841",
"0.6801179",
"0.6770304... | 0.0 | -1 |
DELETE /users/1 DELETE /users/1.json | def destroy
@user = User.find(params[:id])
@user.destroy
respond_to do |format|
format.html { redirect_to users_url }
format.json { head :no_content }
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DeleteUser id\n \n APICall(path: \"users/#{id}.json\",method: 'DELETE')\n \n end",
"def delete\n render json: User.delete(params[\"id\"])\n end",
"def delete(id)\n request(:delete, \"/users/#{id}.json\")\n end",
"def delete\n render json: Users.delete(params[\"id\... | [
"0.78750724",
"0.77518034",
"0.7713981",
"0.7610077",
"0.747295",
"0.74073994",
"0.74073994",
"0.7369968",
"0.7346072",
"0.7340465",
"0.7328618",
"0.7309635",
"0.73095363",
"0.7306841",
"0.7297868",
"0.72917855",
"0.7291585",
"0.7289111",
"0.7284347",
"0.7250935",
"0.7250935"... | 0.0 | -1 |
lexer rule t__9! (T__9) (in Ingredients.g) | def t__9!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 2 )
type = T__9
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 18:8: 'h'
match( 0x68 )
@state.type = type
@state.channel = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.5978033",
"0.59124714",
"0.5874476",
"0.57066524",
"0.5674187",
"0.5590006",
"0.5528299",
"0.5478934",
"0.547341",
"0.54414415",
"0.5408422",
"0.54043853",
"0.54001236",
"0.5397509",
"0.53799725",
"0.5354783",
"0.534492",
"0.53293383",
"0.53206116",
"0.53106457",
"0.530382... | 0.5209836 | 42 |
lexer rule t__10! (T__10) (in Ingredients.g) | def t__10!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 3 )
type = T__10
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 19:9: 'E'
match( 0x45 )
@state.type = type
@state.channel ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.5544074",
"0.53859615",
"0.5349",
"0.5227948",
"0.52010524",
"0.5181952",
"0.5175836",
"0.516974",
"0.51204693",
"0.5055585",
"0.504113",
"0.5026709",
"0.5013487",
"0.49981162",
"0.4969229",
"0.49570253",
"0.4945405",
"0.4939496",
"0.49357584",
"0.49355236",
"0.4911758",
... | 0.50737464 | 9 |
lexer rule t__11! (T__11) (in Ingredients.g) | def t__11!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 4 )
type = T__11
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 20:9: 'e'
match( 0x65 )
@state.type = type
@state.channel ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.60101086",
"0.5991307",
"0.5865943",
"0.58372325",
"0.5768479",
"0.5718896",
"0.5646968",
"0.54955",
"0.5455357",
"0.5444612",
"0.5418991",
"0.5415307",
"0.5393767",
"0.5380978",
"0.53683305",
"0.5355447",
"0.5323435",
"0.5321366",
"0.5320627",
"0.53037816",
"0.52968943",
... | 0.5420966 | 10 |
lexer rule t__12! (T__12) (in Ingredients.g) | def t__12!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 5 )
type = T__12
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 21:9: 'A'
match( 0x41 )
@state.type = type
@state.channel ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.5736404",
"0.56870544",
"0.56550235",
"0.56138265",
"0.5431716",
"0.5421949",
"0.54174995",
"0.54087603",
"0.5404102",
"0.53398156",
"0.53251916",
"0.53014237",
"0.5264074",
"0.52591",
"0.522084",
"0.52129143",
"0.52127916",
"0.52127916",
"0.52127916",
"0.5204593",
"0.5200... | 0.5168215 | 24 |
lexer rule t__13! (T__13) (in Ingredients.g) | def t__13!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 6 )
type = T__13
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 22:9: 'a'
match( 0x61 )
@state.type = type
@state.channel ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__13!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 3 )\n\n type = T__13\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - - -\n # at line 9:9: ')'\n match( 0x29 )\n\n \n @state.type = type\n ... | [
"0.6048455",
"0.56218994",
"0.5611235",
"0.559411",
"0.5584508",
"0.5546839",
"0.5479848",
"0.54774994",
"0.54727674",
"0.5400014",
"0.5353045",
"0.53481877",
"0.52750534",
"0.52481884",
"0.52121544",
"0.5206879",
"0.5192448",
"0.51896673",
"0.5154854",
"0.5135224",
"0.512782... | 0.5753072 | 1 |
lexer rule t__14! (T__14) (in Ingredients.g) | def t__14!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 7 )
type = T__14
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 23:9: 'P'
match( 0x50 )
@state.type = type
@state.channel ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__14!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 4 )\n\n type = T__14\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - - -\n # at line 10:9: '-'\n match( 0x2d )\n\n \n @state.type = type\n ... | [
"0.56671697",
"0.54651254",
"0.5430783",
"0.538897",
"0.535298",
"0.52075994",
"0.52067703",
"0.5195105",
"0.51667756",
"0.5163462",
"0.5163462",
"0.5163462",
"0.5113994",
"0.5113994",
"0.5113994",
"0.51050967",
"0.51014566",
"0.506204",
"0.505518",
"0.50524324",
"0.5037334",... | 0.48384345 | 44 |
lexer rule t__15! (T__15) (in Ingredients.g) | def t__15!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 8 )
type = T__15
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 24:9: 'p'
match( 0x70 )
@state.type = type
@state.channel ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__15!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in(__method__, 6)\n\n type = T__15\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - - -\n # at line 21:9: ')'\n match(?))\n\n \n @state.type = type\n @s... | [
"0.600347",
"0.58233386",
"0.5675192",
"0.5608345",
"0.5463863",
"0.54579663",
"0.53969246",
"0.5321105",
"0.53077155",
"0.5292959",
"0.52324647",
"0.5229998",
"0.5207821",
"0.5202655",
"0.5201667",
"0.5184277",
"0.51738757",
"0.5140986",
"0.51276267",
"0.51234496",
"0.510800... | 0.5132349 | 18 |
lexer rule t__16! (T__16) (in Ingredients.g) | def t__16!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 9 )
type = T__16
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 25:9: 'D'
match( 0x44 )
@state.type = type
@state.channel ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__16!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in(__method__, 7)\n\n type = T__16\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - - -\n # at line 22:9: ','\n match(?,)\n\n \n @state.type = type\n @s... | [
"0.6758874",
"0.6733301",
"0.56464934",
"0.56311727",
"0.5589336",
"0.54991376",
"0.54896134",
"0.53742015",
"0.5349415",
"0.5303035",
"0.52961713",
"0.5245954",
"0.5243643",
"0.5195989",
"0.5193728",
"0.51762885",
"0.51756746",
"0.51676416",
"0.51628786",
"0.51625925",
"0.51... | 0.6562765 | 2 |
lexer rule t__17! (T__17) (in Ingredients.g) | def t__17!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 10 )
type = T__17
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 26:9: 'd'
match( 0x64 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__17!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in(__method__, 8)\n\n type = T__17\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - - -\n # at line 23:9: '*'\n match(?*)\n\n \n @state.type = type\n @s... | [
"0.5480613",
"0.5442329",
"0.53672755",
"0.5364072",
"0.533712",
"0.5331088",
"0.5296712",
"0.5166578",
"0.5160452",
"0.5138878",
"0.5098628",
"0.50916326",
"0.50834775",
"0.50471383",
"0.5025956",
"0.4991048",
"0.4987879",
"0.49698925",
"0.4965839",
"0.49624622",
"0.49612987... | 0.51994544 | 7 |
lexer rule t__18! (T__18) (in Ingredients.g) | def t__18!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 11 )
type = T__18
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 27:9: 'L'
match( 0x4c )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__18!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in(__method__, 9)\n\n type = T__18\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - - -\n # at line 24:9: '&'\n match(?&)\n\n \n @state.type = type\n @s... | [
"0.56961906",
"0.55326754",
"0.5531465",
"0.5493099",
"0.54675674",
"0.54503894",
"0.5417707",
"0.5285655",
"0.5263936",
"0.5258018",
"0.5250461",
"0.52463555",
"0.52430975",
"0.52327806",
"0.51960117",
"0.5190672",
"0.5188405",
"0.5176617",
"0.51701605",
"0.516183",
"0.51598... | 0.5560249 | 1 |
lexer rule t__19! (T__19) (in Ingredients.g) | def t__19!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 12 )
type = T__19
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 28:9: 'l'
match( 0x6c )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.56316656",
"0.56285876",
"0.5614664",
"0.552225",
"0.5503424",
"0.52823734",
"0.52822196",
"0.5256919",
"0.5247033",
"0.52361935",
"0.5230056",
"0.52274543",
"0.51970035",
"0.5158966",
"0.51282364",
"0.5124962",
"0.5121957",
"0.51131785",
"0.51070565",
"0.50981855",
"0.508... | 0.5583221 | 3 |
lexer rule t__20! (T__20) (in Ingredients.g) | def t__20!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 13 )
type = T__20
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 29:9: 'V'
match( 0x56 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.5433405",
"0.5235868",
"0.5057418",
"0.5013284",
"0.5012013",
"0.49654207",
"0.4868397",
"0.48531848",
"0.48475522",
"0.4846719",
"0.48421472",
"0.48247892",
"0.4785985",
"0.4777186",
"0.47767657",
"0.47745886",
"0.47702405",
"0.47662014",
"0.47560862",
"0.47546",
"0.47185... | 0.51681554 | 2 |
lexer rule t__21! (T__21) (in Ingredients.g) | def t__21!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 14 )
type = T__21
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 30:9: 'v'
match( 0x76 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.58264196",
"0.5610703",
"0.55598307",
"0.54409057",
"0.54247475",
"0.5422544",
"0.53871626",
"0.52882224",
"0.52870494",
"0.52773947",
"0.5261521",
"0.52395844",
"0.5195911",
"0.5192365",
"0.5186681",
"0.5184635",
"0.51842636",
"0.51821804",
"0.5156967",
"0.5140471",
"0.51... | 0.52629554 | 10 |
lexer rule t__22! (T__22) (in Ingredients.g) | def t__22!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 15 )
type = T__22
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 31:9: 'M'
match( 0x4d )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.5958198",
"0.5877196",
"0.5853168",
"0.57432896",
"0.5666773",
"0.5605728",
"0.54532546",
"0.5427942",
"0.53021383",
"0.5300436",
"0.5278878",
"0.5258288",
"0.5247948",
"0.52463394",
"0.52442324",
"0.52419186",
"0.52410465",
"0.52336264",
"0.52221304",
"0.521637",
"0.52103... | 0.51969993 | 22 |
lexer rule t__23! (T__23) (in Ingredients.g) | def t__23!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 16 )
type = T__23
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 32:9: 'm'
match( 0x6d )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.5948476",
"0.57805395",
"0.5746116",
"0.5715171",
"0.56897223",
"0.55228335",
"0.550145",
"0.5354042",
"0.5340156",
"0.5317759",
"0.53173864",
"0.5314244",
"0.5302499",
"0.5266226",
"0.5251492",
"0.52500665",
"0.5240848",
"0.52380407",
"0.5236169",
"0.52106607",
"0.5193463... | 0.5619462 | 5 |
lexer rule t__24! (T__24) (in Ingredients.g) | def t__24!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 17 )
type = T__24
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 33:9: 'S'
match( 0x53 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.5996924",
"0.59259033",
"0.5677419",
"0.5662033",
"0.5554024",
"0.55123657",
"0.5471188",
"0.54429746",
"0.54121315",
"0.54087824",
"0.540517",
"0.53988343",
"0.53913325",
"0.53874433",
"0.535663",
"0.5355814",
"0.5332345",
"0.53229517",
"0.53038037",
"0.52995837",
"0.5299... | 0.53198326 | 18 |
lexer rule t__25! (T__25) (in Ingredients.g) | def t__25!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 18 )
type = T__25
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 34:9: 's'
match( 0x73 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.57144904",
"0.5651022",
"0.55754954",
"0.5447536",
"0.5416434",
"0.54062384",
"0.5350595",
"0.5310601",
"0.5287962",
"0.5280539",
"0.5272419",
"0.52193916",
"0.5168146",
"0.5165785",
"0.5118544",
"0.51128453",
"0.51126707",
"0.51007843",
"0.50996304",
"0.50885427",
"0.5086... | 0.5166533 | 13 |
lexer rule t__26! (T__26) (in Ingredients.g) | def t__26!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 19 )
type = T__26
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 35:9: 'g'
match( 0x67 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.5727429",
"0.56587774",
"0.56109804",
"0.56000376",
"0.5400399",
"0.53507745",
"0.5341671",
"0.5223087",
"0.5214329",
"0.5214329",
"0.5214329",
"0.51948816",
"0.51741743",
"0.51651585",
"0.51136416",
"0.50923884",
"0.5077974",
"0.5066385",
"0.5048009",
"0.4984224",
"0.4944... | 0.6006785 | 0 |
lexer rule t__27! (T__27) (in Ingredients.g) | def t__27!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 20 )
type = T__27
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 36:9: 'G'
match( 0x47 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def not!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 61 )\n\n type = NOT\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - - -\n # at line 389:7: '!'\n match( 0x21 )\n\n \n @state.type = type\n ... | [
"0.57947624",
"0.57559454",
"0.569518",
"0.5632226",
"0.5585525",
"0.5582329",
"0.55672956",
"0.55237156",
"0.55211943",
"0.53615236",
"0.5338667",
"0.53357995",
"0.5333769",
"0.5333763",
"0.53128314",
"0.5312482",
"0.5312482",
"0.5312482",
"0.5289806",
"0.52867657",
"0.52678... | 0.55148995 | 9 |
lexer rule t__28! (T__28) (in Ingredients.g) | def t__28!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 21 )
type = T__28
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 37:9: 'k'
match( 0x6b )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.5719742",
"0.55985755",
"0.55896467",
"0.5587832",
"0.5567427",
"0.5453446",
"0.5447318",
"0.5248456",
"0.5227643",
"0.5185857",
"0.51323277",
"0.51290697",
"0.50485486",
"0.50298434",
"0.50171757",
"0.50096047",
"0.5003645",
"0.5003645",
"0.5003645",
"0.49932218",
"0.4983... | 0.5180508 | 10 |
lexer rule t__29! (T__29) (in Ingredients.g) | def t__29!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 22 )
type = T__29
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 38:9: 'K'
match( 0x4b )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.5944793",
"0.58614266",
"0.5657118",
"0.5609687",
"0.56016755",
"0.5481644",
"0.5481644",
"0.5481644",
"0.54328465",
"0.5315765",
"0.5315765",
"0.5315765",
"0.5315675",
"0.53141165",
"0.5303157",
"0.5303157",
"0.5303157",
"0.5242184",
"0.5206659",
"0.51730096",
"0.5141825"... | 0.4992256 | 35 |
lexer rule t__30! (T__30) (in Ingredients.g) | def t__30!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 23 )
type = T__30
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 39:9: 'I'
match( 0x49 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.6424281",
"0.59266293",
"0.5569833",
"0.5540565",
"0.55154413",
"0.5500606",
"0.5493268",
"0.54381406",
"0.5429984",
"0.5425403",
"0.5376072",
"0.5320101",
"0.5297439",
"0.5295021",
"0.52685577",
"0.52654797",
"0.5246558",
"0.5241691",
"0.5223979",
"0.5220984",
"0.52083594... | 0.55381423 | 4 |
lexer rule t__31! (T__31) (in Ingredients.g) | def t__31!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 24 )
type = T__31
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 40:9: 'i'
match( 0x69 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__31!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 2 )\n\n\n\n type = T__31\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 8:9: '!='\n match( \"!=... | [
"0.665614",
"0.61320955",
"0.5900335",
"0.5827796",
"0.5796238",
"0.57570463",
"0.5643355",
"0.56336194",
"0.5631416",
"0.55868274",
"0.55554485",
"0.5544376",
"0.5500201",
"0.5475542",
"0.54705936",
"0.54220206",
"0.5407235",
"0.5406702",
"0.5380579",
"0.53745866",
"0.536601... | 0.59424627 | 2 |
lexer rule t__32! (T__32) (in Ingredients.g) | def t__32!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 25 )
type = T__32
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 41:9: 'N'
match( 0x4e )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__32!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 3 )\n\n\n\n type = T__32\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 9:9: '%'\n match( 0x25 ... | [
"0.6882866",
"0.6321058",
"0.5956717",
"0.5853318",
"0.5666747",
"0.5655022",
"0.5626483",
"0.5545123",
"0.55423063",
"0.54319024",
"0.5428186",
"0.54055333",
"0.53575695",
"0.53574044",
"0.5314483",
"0.5290949",
"0.5278986",
"0.5276783",
"0.5270009",
"0.5232607",
"0.5229967"... | 0.68183947 | 1 |
lexer rule t__33! (T__33) (in Ingredients.g) | def t__33!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 26 )
type = T__33
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 42:9: 'n'
match( 0x6e )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.6144387",
"0.6109793",
"0.5862535",
"0.5824096",
"0.570932",
"0.5702298",
"0.56647366",
"0.56457335",
"0.5640092",
"0.5624661",
"0.55551255",
"0.5526351",
"0.54997385",
"0.5485611",
"0.54541266",
"0.5410917",
"0.53989697",
"0.5393357",
"0.53824365",
"0.53791904",
"0.536172... | 0.59619117 | 2 |
lexer rule t__34! (T__34) (in Ingredients.g) | def t__34!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 27 )
type = T__34
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 43:9: 'C'
match( 0x43 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__34!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 23 )\n\n type = T__34\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - - -\n # at line 39:9: 'N'\n match( 0x4e )\n\n \n @state.type = type\n ... | [
"0.58398485",
"0.5746195",
"0.5681807",
"0.5633013",
"0.5605062",
"0.5567403",
"0.5517782",
"0.54230213",
"0.53829145",
"0.5372719",
"0.5366223",
"0.53553826",
"0.5339285",
"0.5306984",
"0.5305249",
"0.52693856",
"0.52151895",
"0.520588",
"0.520554",
"0.5198764",
"0.51951945"... | 0.5409765 | 8 |
lexer rule t__35! (T__35) (in Ingredients.g) | def t__35!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 28 )
type = T__35
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 44:9: 'c'
match( 0x63 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__35!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 24 )\n\n type = T__35\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - - -\n # at line 40:9: 'n'\n match( 0x6e )\n\n \n @state.type = type\n ... | [
"0.58051246",
"0.57804847",
"0.5706453",
"0.5619653",
"0.5506513",
"0.5485436",
"0.548312",
"0.5409215",
"0.5394158",
"0.53877807",
"0.537778",
"0.53587574",
"0.535858",
"0.53026944",
"0.52842313",
"0.5282462",
"0.528065",
"0.52646184",
"0.5252591",
"0.5249362",
"0.524762",
... | 0.5372856 | 11 |
lexer rule t__36! (T__36) (in Ingredients.g) | def t__36!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 29 )
type = T__36
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 45:9: 'T'
match( 0x54 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__36!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 25 )\n\n type = T__36\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - - -\n # at line 41:9: 'H'\n match( 0x48 )\n\n \n @state.type = type\n ... | [
"0.61661536",
"0.60461104",
"0.5905585",
"0.56974876",
"0.5588106",
"0.55722034",
"0.5524578",
"0.5516934",
"0.54738694",
"0.54132813",
"0.53639245",
"0.5362528",
"0.533209",
"0.533198",
"0.532963",
"0.52985203",
"0.5286909",
"0.52745193",
"0.52734894",
"0.5266097",
"0.526547... | 0.6414365 | 0 |
lexer rule t__37! (T__37) (in Ingredients.g) | def t__37!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 30 )
type = T__37
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 46:9: 't'
match( 0x74 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__26!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 19 )\n\n type = T__26\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - - -\n # at line 35:9: 'g'\n match( 0x67 )\n\n \n @state.type = type\n ... | [
"0.58816576",
"0.56121707",
"0.5603805",
"0.55978525",
"0.5596137",
"0.5521513",
"0.54971695",
"0.54917204",
"0.544786",
"0.5395119",
"0.5395119",
"0.5395119",
"0.5389993",
"0.5388151",
"0.5373241",
"0.53651834",
"0.53631186",
"0.53438616",
"0.5337875",
"0.533181",
"0.5330654... | 0.59026635 | 0 |
lexer rule t__38! (T__38) (in Ingredients.g) | def t__38!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 31 )
type = T__38
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 47:9: 'O'
match( 0x4f )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__26!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 19 )\n\n type = T__26\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - - -\n # at line 35:9: 'g'\n match( 0x67 )\n\n \n @state.type = type\n ... | [
"0.580065",
"0.56870615",
"0.5559673",
"0.55503786",
"0.55154973",
"0.5476153",
"0.53340906",
"0.53340906",
"0.53340906",
"0.532089",
"0.52800226",
"0.52390337",
"0.52333564",
"0.5217394",
"0.5209483",
"0.51992524",
"0.5197004",
"0.51927036",
"0.51817954",
"0.51817954",
"0.51... | 0.53913844 | 6 |
lexer rule t__39! (T__39) (in Ingredients.g) | def t__39!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 32 )
type = T__39
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 48:9: 'o'
match( 0x6f )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def class_special_identifier(class_def)\n \t_IDENTIFIER2 = nil\n \t_EXTENDS3 = nil\n\n\n\n\n # 38:5: ( IDENTIFIER | ',' | '&' | '<' | '>' | EXTENDS )\n alt6 = 6\n # 37:1: class_special_identifier[class_def] : ( IDENTIFIER | ',' | '&' | '<' | '>' | EXTENDS );\n case look_ahead(1)\n... | [
"0.5308042",
"0.52570754",
"0.52560914",
"0.5253386",
"0.52297294",
"0.5216696",
"0.51386595",
"0.51386595",
"0.51386595",
"0.5136402",
"0.5114764",
"0.5110949",
"0.5063481",
"0.50167954",
"0.50113326",
"0.49976873",
"0.49976873",
"0.49976873",
"0.49712652",
"0.4967085",
"0.4... | 0.5146057 | 6 |
lexer rule t__40! (T__40) (in Ingredients.g) | def t__40!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 33 )
type = T__40
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 49:9: 'B'
match( 0x42 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.5865479",
"0.58654237",
"0.5717888",
"0.56460214",
"0.5549565",
"0.54715496",
"0.54415125",
"0.5428738",
"0.5405085",
"0.5385208",
"0.5384304",
"0.5365305",
"0.53537446",
"0.53255767",
"0.5304543",
"0.52950346",
"0.52443236",
"0.5236163",
"0.5227193",
"0.5211775",
"0.52070... | 0.52816385 | 16 |
lexer rule t__41! (T__41) (in Ingredients.g) | def t__41!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 34 )
type = T__41
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 50:9: 'b'
match( 0x62 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__26!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 19 )\n\n type = T__26\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - - -\n # at line 35:9: 'g'\n match( 0x67 )\n\n \n @state.type = type\n ... | [
"0.58924866",
"0.58308375",
"0.5813779",
"0.58111393",
"0.5686761",
"0.56702006",
"0.56564856",
"0.56514245",
"0.5645441",
"0.56361103",
"0.5592717",
"0.5580884",
"0.556211",
"0.55523443",
"0.5542618",
"0.55289155",
"0.5518376",
"0.55082875",
"0.5498883",
"0.54959613",
"0.547... | 0.5644605 | 9 |
lexer rule t__42! (T__42) (in Ingredients.g) | def t__42!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 35 )
type = T__42
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 51:9: 'U'
match( 0x55 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.63070697",
"0.6083585",
"0.6070758",
"0.5948154",
"0.5912579",
"0.58693504",
"0.58523536",
"0.5834467",
"0.58126533",
"0.57749766",
"0.57749707",
"0.57723397",
"0.5758581",
"0.57562184",
"0.56967723",
"0.56661946",
"0.56608343",
"0.5655581",
"0.5648012",
"0.56341326",
"0.5... | 0.6208605 | 1 |
lexer rule t__43! (T__43) (in Ingredients.g) | def t__43!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 36 )
type = T__43
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 52:9: 'u'
match( 0x75 )
@state.type = type
@state.channel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t__30!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 1 )\n\n\n\n type = T__30\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -\n\n\n # - - - - main rule block - - - -\n # at line 7:9: '!'\n match( 0x21 ... | [
"0.57176733",
"0.568024",
"0.5659049",
"0.56424797",
"0.55612946",
"0.55430084",
"0.5508835",
"0.54855657",
"0.5434013",
"0.5411178",
"0.53929657",
"0.53782237",
"0.5375312",
"0.53595483",
"0.5359372",
"0.53367436",
"0.53293157",
"0.532923",
"0.53161126",
"0.5293634",
"0.5286... | 0.5705943 | 1 |
lexer rule digit! (DIGIT) (in Ingredients.g) | def digit!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 37 )
type = DIGIT
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 136:8: '0' .. '9'
match_range( 0x30, 0x39 )
@state.type = type
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def digit!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 53 )\n\n type = DIGIT\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - - -\n # at line 352:8: '0' .. '9'\n match_range( 0x30, 0x39 )\n\n \n @... | [
"0.76519895",
"0.74572223",
"0.7159817",
"0.64996594",
"0.6284822",
"0.62835276",
"0.6221035",
"0.6135941",
"0.6108588",
"0.60998863",
"0.60974854",
"0.59665716",
"0.595395",
"0.59227216",
"0.5911046",
"0.58628124",
"0.58119696",
"0.57834965",
"0.5737826",
"0.57252544",
"0.57... | 0.76374406 | 1 |
lexer rule ws! (WS) (in Ingredients.g) | def ws!
# -> uncomment the next line to manually enable rule tracing
# trace_in( __method__, 38 )
type = WS
channel = ANTLR3::DEFAULT_CHANNEL
# - - - - main rule block - - - -
# at line 137:5: ( ' ' | '\\t' )+
# at file 137:5: ( ' ' | '\\t' )+
match_count_1 = 0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def space!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 4 )\n\n type = SPACE\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - - -\n # at line 28:5: WS\n ws!\n\n \n @state.type = type\n @state.... | [
"0.7037604",
"0.70326924",
"0.6992768",
"0.682092",
"0.6820337",
"0.67791593",
"0.6722772",
"0.66599804",
"0.66128176",
"0.65932626",
"0.6566408",
"0.65288955",
"0.6505901",
"0.6014517",
"0.5987003",
"0.5867358",
"0.5726558",
"0.55303437",
"0.5503411",
"0.54842955",
"0.548015... | 0.67456484 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.