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
Returns whether this dependency, which has no possible matching specifications, can safely be ignored.
def allow_missing?(dependency) false end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def satisfied?\n dependencies.none? { |_, v| v.empty? }\n end", "def dependencies_satisfied?\n missing_dependencies.empty?\n end", "def optionality_implied?\n false\n end", "def optional?\n not (@required or @forbidden)\n end", "def optional?\n not require...
[ "0.7142639", "0.6973783", "0.68883246", "0.66996694", "0.66928786", "0.6678627", "0.66391426", "0.66037637", "0.65801626", "0.6540929", "0.6517965", "0.65174335", "0.6490141", "0.6485003", "0.6463874", "0.64532965", "0.6427753", "0.6313174", "0.63091063", "0.6299964", "0.6277...
0.6816688
3
We compare UnwindDetails when choosing which state to unwind to. If two options have the same state_index we prefer the one most removed from a requirement that caused the conflict. Both options would unwind to the same state, but a `grandparent` option will filter out fewer of its possibilities after doing so where a ...
def <=>(other) if state_index > other.state_index 1 elsif state_index == other.state_index reversed_requirement_tree_index <=> other.reversed_requirement_tree_index else -1 end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unwind_for_conflict\n details_for_unwind = build_details_for_unwind\n unwind_options = unused_unwind_options\n debug(depth) { \"Unwinding for conflict: #{requirement} to #{details_for_unwind.state_index / 2}\" }\n conflicts.tap do |c|\n sliced_states = states.slice!((detail...
[ "0.679156", "0.6392158", "0.5945939", "0.5933569", "0.5046536", "0.48106566", "0.4745404", "0.46629983", "0.46116015", "0.4610468", "0.45698076", "0.4554264", "0.45310536", "0.44473106", "0.44271126", "0.44034556", "0.43961713", "0.43791404", "0.43474057", "0.43414804", "0.43...
0.40525123
57
Sets up the resolution process
def start_resolution @started_at = Time.now push_initial_state debug { "Starting resolution (#{@started_at})\nUser-requested dependencies: #{original_requested}" } resolver_ui.before_resolution end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setResolution(res)\n\t\t@resolution = res\n\tend", "def setup\r\n setup_wiki\r\n setup_host_map\r\n setup_host\r\n end", "def set_resolution\n @resolution = Resolution.find(params[:id])\n end", "def set_resolution\n @resolution = Resolution.find(params[:id])\n end", "def set_r...
[ "0.63984597", "0.6192045", "0.61134994", "0.61134994", "0.61134994", "0.59353966", "0.5903518", "0.5798242", "0.5780364", "0.56978935", "0.5620141", "0.5511686", "0.5494624", "0.5492628", "0.5491372", "0.54802847", "0.54432535", "0.54346585", "0.5424257", "0.5390564", "0.5380...
0.59392035
5
Ends the resolution process
def end_resolution resolver_ui.after_resolution debug do "Finished resolution (#{@iteration_counter} steps) " \ "(Took #{(ended_at = Time.now) - @started_at} seconds) (#{ended_at})" end debug { 'Unactivated: ' + Hash[activated.vertices.reject { |_n, v| v.payload }].ke...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_end_process()\n # subclasses may override this method\n end", "def finish\n\t\t\tclose\n\t\tend", "def close\n @processor.finish\n end", "def finish()\n @device.finish() ;\n end", "def terminate\n @process.stop\n end", "def finish\n\t\tclose\n\tend", "def end_frame\n ...
[ "0.6202898", "0.61662924", "0.61522764", "0.6118024", "0.6055528", "0.6054135", "0.59753233", "0.595406", "0.593566", "0.591178", "0.59116924", "0.5889771", "0.5877161", "0.58730954", "0.5866576", "0.5864076", "0.5846119", "0.5832143", "0.5832143", "0.5832143", "0.5832143", ...
0.6197321
1
Unwinds the states stack because a conflict has been encountered
def unwind_for_conflict details_for_unwind = build_details_for_unwind unwind_options = unused_unwind_options debug(depth) { "Unwinding for conflict: #{requirement} to #{details_for_unwind.state_index / 2}" } conflicts.tap do |c| sliced_states = states.slice!((details_for_unwind...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def restore_merge_state; end", "def restore_merge_state; end", "def backtrack\n @state = @backtrack_states.pop\n if @verbose\n puts \"log: backtrack to last valid state\"\n end\n end", "def restore\r\n @status = @stack.shift if @stack.size > 0\r\n end", "def revert_conflicts\r\n ...
[ "0.6201907", "0.6201907", "0.5979227", "0.5924478", "0.56058884", "0.5567115", "0.5524925", "0.5501515", "0.5485369", "0.54170936", "0.53882176", "0.5371905", "0.5345589", "0.53284085", "0.53243005", "0.53233314", "0.53193843", "0.53193843", "0.52972376", "0.52903897", "0.527...
0.77240545
0
Raises a VersionConflict error, or any underlying error, if there is no current state
def raise_error_unless_state(conflicts) return if state error = conflicts.values.map(&:underlying_error).compact.first raise error || VersionConflict.new(conflicts, specification_provider) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def check_version_conflict(other) # :nodoc:\n return if self.version == other.version\n\n # This gem is already loaded. If the currently loaded gem is not in the\n # list of candidate gems, then we have a version conflict.\n\n msg = \"can't activate #{full_name}, already activated #{other.full_name}\"...
[ "0.6716267", "0.64219624", "0.6248011", "0.617401", "0.6029085", "0.5914581", "0.5906863", "0.58304393", "0.5804333", "0.57863563", "0.5752611", "0.5704913", "0.5644394", "0.5642979", "0.56023544", "0.56023544", "0.55827177", "0.55703217", "0.5556332", "0.55519897", "0.554914...
0.7270759
0
Filter's a state's possibilities to remove any that would not fix the conflict we've just rewound from
def filter_possibilities_after_unwind(unwind_details) return unless state && !state.possibilities.empty? if unwind_details.unwinding_to_primary_requirement? filter_possibilities_for_primary_unwind(unwind_details) else filter_possibilities_for_parent_unwind(unwind_details) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter_possibilities_for_primary_unwind(unwind_details)\n unwinds_to_state = unused_unwind_options.select { |uw| uw.state_index == unwind_details.state_index }\n unwinds_to_state << unwind_details\n unwind_requirement_sets = unwinds_to_state.map(&:conflicting_requirements)\n\n state...
[ "0.6243043", "0.59820694", "0.5875445", "0.58234847", "0.5815948", "0.5804052", "0.57819414", "0.5767053", "0.56615007", "0.5650344", "0.561474", "0.56059575", "0.55793136", "0.556735", "0.55187106", "0.5469852", "0.5466714", "0.5442911", "0.54365987", "0.54175967", "0.536620...
0.55497503
14
Filter's a state's possibilities to remove any that would not satisfy the requirements in the conflict we've just rewound from
def filter_possibilities_for_primary_unwind(unwind_details) unwinds_to_state = unused_unwind_options.select { |uw| uw.state_index == unwind_details.state_index } unwinds_to_state << unwind_details unwind_requirement_sets = unwinds_to_state.map(&:conflicting_requirements) state.possibili...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def allowed_states\n RetentionSchedule.state_names.tap do |states|\n states.delete(RetentionSchedule::STATE_ANONYMISED)\n states.delete(RetentionSchedule::STATE_NOT_SET) unless record.not_set?\n end\n end", "def delete_state(state)\n @states.reject! { |_,v| v == state }\n#$stderr.print \"Stat...
[ "0.5938576", "0.59148836", "0.5834927", "0.57547486", "0.57439566", "0.56896555", "0.56886125", "0.5641727", "0.5635226", "0.5595127", "0.5580302", "0.55770946", "0.55643344", "0.5548154", "0.55247116", "0.5502266", "0.550102", "0.5450187", "0.5448494", "0.5420885", "0.539382...
0.64392877
0
Filter's a state's possibilities to remove any that would (eventually) create a requirement in the conflict we've just rewound from
def filter_possibilities_for_parent_unwind(unwind_details) unwinds_to_state = unused_unwind_options.select { |uw| uw.state_index == unwind_details.state_index } unwinds_to_state << unwind_details primary_unwinds = unwinds_to_state.select(&:unwinding_to_primary_requirement?).uniq parent_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter_possibilities_for_primary_unwind(unwind_details)\n unwinds_to_state = unused_unwind_options.select { |uw| uw.state_index == unwind_details.state_index }\n unwinds_to_state << unwind_details\n unwind_requirement_sets = unwinds_to_state.map(&:conflicting_requirements)\n\n state...
[ "0.6491747", "0.6145371", "0.60062385", "0.5964508", "0.58804786", "0.5817925", "0.5816974", "0.57667863", "0.57247806", "0.57091445", "0.56869435", "0.5520176", "0.5476533", "0.54494613", "0.5421501", "0.54118454", "0.539905", "0.53846896", "0.53832185", "0.53812927", "0.537...
0.57515824
8
Indicates progress roughly once every second
def indicate_progress @iteration_counter += 1 @progress_rate ||= resolver_ui.progress_rate if iteration_rate.nil? if Time.now - started_at >= @progress_rate self.iteration_rate = @iteration_counter end end if iteration_rate && (@iteration_counter ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def progress_rate\n 1\n end", "def progress\n l = length\n l.zero? ? 0 : 100 * time / l\n end", "def progress\n l = length\n l.zero? ? 0 : 100 * time / l\n end", "def progress\n l = length\n l.zero? ? 0 : 100 * time / l\n end", "def progress;...
[ "0.7724079", "0.764512", "0.764512", "0.764512", "0.763965", "0.763965", "0.763965", "0.763965", "0.763965", "0.7442612", "0.7328382", "0.7278422", "0.69338214", "0.68412286", "0.6719641", "0.66508466", "0.66338277", "0.6632487", "0.6632487", "0.6632487", "0.6632487", "0.65...
0.75056875
9
Attempts to update the existing vertex's `PossibilitySet` with a filtered version
def attempt_to_filter_existing_spec(vertex) filtered_set = filtered_possibility_set(vertex) if !filtered_set.possibilities.empty? activated.set_payload(name, filtered_set) new_requirements = requirements.dup push_state_for_requirements(new_requirements, false) else ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filtered_possibility_set(vertex)\n PossibilitySet.new(vertex.payload.dependencies, vertex.payload.possibilities & possibility.possibilities)\n end", "def scrooge_invalidate_updateable_result_set\n if scrooged?\n @attributes.updateable_result_set = ResultSets::UpdateableRes...
[ "0.72632176", "0.52618414", "0.5182367", "0.5182367", "0.5182367", "0.5123826", "0.5059021", "0.49971962", "0.49740753", "0.49567467", "0.49567467", "0.4934023", "0.4934023", "0.4934023", "0.4934023", "0.4926861", "0.4922009", "0.49209148", "0.49208426", "0.4913003", "0.49129...
0.70049256
1
Generates a filtered version of the existing vertex's `PossibilitySet` using the current state's `requirement`
def filtered_possibility_set(vertex) PossibilitySet.new(vertex.payload.dependencies, vertex.payload.possibilities & possibility.possibilities) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def attempt_to_filter_existing_spec(vertex)\n filtered_set = filtered_possibility_set(vertex)\n if !filtered_set.possibilities.empty?\n activated.set_payload(name, filtered_set)\n new_requirements = requirements.dup\n push_state_for_requirements(new_requirements, false)\n ...
[ "0.6705707", "0.54257214", "0.5289214", "0.5154131", "0.50208735", "0.48447064", "0.48358455", "0.47953203", "0.4776325", "0.47763222", "0.47679505", "0.47469074", "0.46853015", "0.46608752", "0.46399298", "0.46255752", "0.4625185", "0.46246085", "0.46219277", "0.45965633", "...
0.80876786
0
Requires the dependencies that the recently activated spec has
def require_nested_dependencies_for(possibility_set) nested_dependencies = dependencies_for(possibility_set.latest_version) debug(depth) { "Requiring nested dependencies (#{nested_dependencies.join(', ')})" } nested_dependencies.each do |d| activated.add_child_vertex(name_for(d), nil, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dependencies\n spec.dependencies\n end", "def dependencies\n spec.dependencies\n end", "def activate_dependencies\n unresolved = Gem::Specification.unresolved_deps\n\n self.runtime_dependencies.each do |spec_dep|\n if loaded = Gem.loaded_specs[spec_dep.name]\n next if spec_dep.mat...
[ "0.74970543", "0.74970543", "0.7203277", "0.7015492", "0.6944132", "0.6924842", "0.6924842", "0.6924842", "0.6892442", "0.6865331", "0.67940193", "0.6650873", "0.66254646", "0.6618138", "0.6618138", "0.66168374", "0.66168374", "0.6591815", "0.65845263", "0.65845263", "0.65584...
0.62066233
44
Checks a proposed requirement with any existing locked requirement before generating an array of possibilities for it.
def possibilities_for_requirement(requirement, activated = self.activated) return [] unless requirement if locked_requirement_named(name_for(requirement)) return locked_requirement_possibility_set(requirement, activated) end group_possibilities(search_for(requirement)) e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def requirements_unlocked_or_can_be?\n true\n end", "def valid_solution2 co_support\n # Randomgenerator\n rnd = Random.new\n\n # current plan to slove\n plan = SemesterPlan.find(params[:id])\n\n # prioritys for slots and user\n # sorts slots by user availability\n # sorts user by...
[ "0.62123835", "0.5796184", "0.5652678", "0.550663", "0.5497261", "0.5472838", "0.5449989", "0.54465735", "0.5439423", "0.5401251", "0.5389607", "0.5351751", "0.5347273", "0.53459305", "0.53107834", "0.5285854", "0.5266734", "0.5227499", "0.52164453", "0.5192982", "0.5190363",...
0.71974677
0
Build an array of PossibilitySets, with each element representing a group of dependency versions that all have the same subdependency version constraints and are contiguous.
def group_possibilities(possibilities) possibility_sets = [] current_possibility_set = nil possibilities.reverse_each do |possibility| dependencies = dependencies_for(possibility) if current_possibility_set && dependencies_equal?(current_possibility_set.dependencies, depende...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def subsets_iter(arr)\n new_arr = [[]]\n # byebug\n i = 0\n while i < arr.length\n# byebug\n ele1 = arr[i]\n new_arr << [ele1]\n\n if arr.length > 2\n sub_arr = [ele1]\n j = i + 1\n while j < arr.length\n # byebug\n ele2 = arr[j]\n sub_arr << ele2\n new_arr <...
[ "0.5822477", "0.5711636", "0.56612223", "0.5623571", "0.56066465", "0.5589726", "0.55586344", "0.55529016", "0.5551843", "0.5521122", "0.54810834", "0.5464605", "0.5433915", "0.5430865", "0.54262644", "0.541838", "0.5367697", "0.5365639", "0.536506", "0.5360717", "0.5340107",...
0.66698617
0
Called before resolution begins.
def before_resolution output.print 'Resolving dependencies...' end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def before_resolution\n end", "def before_resolution\n nil\n end", "def after_resolution\n end", "def start_resolution\n @started_at = Time.now\n\n push_initial_state\n\n debug { \"Starting resolution (#{@started_at})\\nUser-requested dependencies: #{original_requested}\" }...
[ "0.7805509", "0.73056555", "0.6944601", "0.6693141", "0.6476978", "0.63984483", "0.6304718", "0.6281404", "0.6199515", "0.6134257", "0.60967296", "0.59840894", "0.5892691", "0.5886597", "0.5775698", "0.5752471", "0.5752258", "0.57431173", "0.5742783", "0.5702736", "0.5686246"...
0.75168765
1
Called after resolution ends (either successfully or with an error). By default, prints a newline.
def after_resolution output.puts end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def before_resolution\n output.print 'Resolving dependencies...'\n end", "def end_resolution\n resolver_ui.after_resolution\n debug do\n \"Finished resolution (#{@iteration_counter} steps) \" \\\n \"(Took #{(ended_at = Time.now) - @started_at} seconds) (#{ended_at})\"\n ...
[ "0.61721003", "0.60822403", "0.57319176", "0.5731459", "0.5723295", "0.5643924", "0.55807215", "0.5548069", "0.54588854", "0.54175794", "0.5392869", "0.5389595", "0.53726685", "0.53645766", "0.5347151", "0.5299607", "0.52454627", "0.5224147", "0.5205624", "0.52041495", "0.519...
0.78408056
0
Conveys debug information to the user.
def debug(depth = 0) if debug? debug_info = yield debug_info = debug_info.inspect unless debug_info.is_a?(String) debug_info = debug_info.split("\n").map { |s| ":#{depth.to_s.rjust 4}: #{s}" } output.puts debug_info end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def debug?; end", "def debug?; end", "def debug; end", "def debug; end", "def debug; end", "def debug; end", "def debug(info)\n puts(info) if @debug\n end", "def debug=(value); end", "def debug\n @@debug ||= false\n end", "def debug!\n self.severity = :DEBUG\n end", ...
[ "0.7365035", "0.7365035", "0.72850937", "0.72850937", "0.72850937", "0.72850937", "0.70949835", "0.6987998", "0.6979048", "0.6928486", "0.6801871", "0.67798936", "0.6750501", "0.6738558", "0.6726988", "0.6726988", "0.6714798", "0.6707698", "0.6678682", "0.6667644", "0.6646266...
0.0
-1
Whether or not debug messages should be printed. By default, whether or not the `MOLINILLO_DEBUG` environment variable is set.
def debug? return @debug_mode if defined?(@debug_mode) @debug_mode = ENV['MOLINILLO_DEBUG'] end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def debug?\n @debug || to_bool( ENV['LAUNCHY_DEBUG'] )\n end", "def debug?\n @debug || ENV['HATCHET_DEBUG'] || false\n end", "def debugging?\n Options[:debug]\n end", "def debug?\n true\n end", "def debug?\n true\n end", "def debug?\n level <= DEBUG\n end",...
[ "0.7472984", "0.73894703", "0.73071355", "0.7269507", "0.7269507", "0.7222532", "0.7189631", "0.7172381", "0.716024", "0.71553177", "0.7140741", "0.71254647", "0.71240073", "0.7104057", "0.7071558", "0.70687723", "0.70531195", "0.704202", "0.70344424", "0.7012601", "0.7008881...
0.821027
0
Creates a new ActivationRequest that will activate +spec+. The parent +request+ is used to provide diagnostics in case of conflicts.
def initialize(spec, request) @spec = spec @request = request end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def activation_request(dep, possible) # :nodoc:\n spec = possible.pop\n\n explain :activate, [spec.full_name, possible.size]\n explain :possible, possible\n\n activation_request =\n Gem::Resolver::ActivationRequest.new spec, dep, possible\n\n return spec, activation_request\n end", "def acti...
[ "0.6062423", "0.5542116", "0.51006216", "0.49144828", "0.4802887", "0.4760886", "0.4734464", "0.4726485", "0.47013018", "0.4673726", "0.46592927", "0.4650133", "0.46380532", "0.46197623", "0.46055976", "0.45853573", "0.45398036", "0.45289147", "0.45206165", "0.45192003", "0.4...
0.5501808
2
Is this activation request for a development dependency?
def development? @request.development? end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def development?\n @dependency.type == :development\n end", "def dependency_met?\n true\n end", "def activated?\n @activated ||=\n begin\n loaded = Gem.loaded_specs[name]\n loaded && loaded.version == version\n end\n end", "def development?\n env == 'development'\n end", ...
[ "0.82845426", "0.73238134", "0.72642225", "0.7103441", "0.70497984", "0.7035633", "0.70014715", "0.69392085", "0.692812", "0.6900435", "0.6855463", "0.6844038", "0.6804018", "0.6800471", "0.67879826", "0.6765564", "0.6706879", "0.6680021", "0.6641427", "0.66308975", "0.662289...
0.6810563
12
Downloads a gem at +path+ and returns the file path.
def download(path) Gem.ensure_gem_subdirectories path if @spec.respond_to? :sources exception = nil path = @spec.sources.find do |source| begin source.download full_spec, path rescue exception end end return path if path raise exception if e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gem_path\n @path || downloaded_gem_path\n end", "def gem_path\n @path || downloaded_gem_path\n end", "def downloaded_gem_path\n self.class.downloaded_gem_path @name, @version\n end", "def downloaded_gem_path\n self.class.downloaded_gem_path @name, @version\n end", ...
[ "0.74087083", "0.7309413", "0.7037722", "0.6968139", "0.69074386", "0.68599373", "0.6849633", "0.66715497", "0.65970474", "0.6509727", "0.6415912", "0.6408393", "0.63861525", "0.6364305", "0.62418234", "0.6190842", "0.614142", "0.611135", "0.6043667", "0.602852", "0.60124654"...
0.7708678
0
The full name of the specification to be activated.
def full_name name_tuple.full_name end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def specification(full_name); end", "def name\n spec.name\n end", "def spec_name\n @@spec_names[__name__]\n end", "def name\n @spec.name\n end", "def gem_name\n @specification.name\n end", "def name\n @spec['name']\n end", "def name\n @spec['name']\n end", "def...
[ "0.71430254", "0.7072368", "0.6925628", "0.6831433", "0.67533606", "0.67155236", "0.67155236", "0.6671247", "0.6619985", "0.6574334", "0.6472584", "0.64463395", "0.641047", "0.6292905", "0.6034975", "0.5916248", "0.59059227", "0.58816445", "0.58705026", "0.5857029", "0.584520...
0.0
-1
The Gem::Specification for this activation request.
def full_spec Gem::Specification === @spec ? @spec : @spec.spec end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gem_spec\n if @gem_spec.nil?\n unless @gem_spec = Micro::Source.gem_spec(@name, @version_requirements.version)\n raise Micro::GemSpecMissingError, \"Unable to locate Gem::Specification for Gem::Dependency `#{self}'\"\n end\n end\n \n @gem_spec\n end", "def spec\n...
[ "0.7436159", "0.73481107", "0.72577757", "0.69439894", "0.6928335", "0.6826265", "0.6812229", "0.6646833", "0.66398317", "0.66189915", "0.65737474", "0.65613", "0.6530276", "0.64806044", "0.6454682", "0.63751084", "0.6277654", "0.6247968", "0.61197656", "0.6092795", "0.606373...
0.70382136
3
True if the requested gem has already been installed.
def installed? case @spec when Gem::Resolver::VendorSpecification then true else this_spec = full_spec Gem::Specification.any? do |s| s == this_spec end end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def installed?(gem_name)\n !run('list', '|', 'grep', \"' #{gem_name} '\").empty?\n end", "def gem_installed?(gem_name)\n !Gem::Specification.find_by_name(gem_name).nil?\n rescue Gem::LoadError\n false\n end", "def already_installed?(path, package)\n installed_packages...
[ "0.8119351", "0.8033387", "0.79320526", "0.78759474", "0.7817179", "0.7794078", "0.76316416", "0.76292396", "0.75790155", "0.75758165", "0.75387937", "0.7493252", "0.7460603", "0.74399316", "0.73829705", "0.733826", "0.7328771", "0.7324503", "0.73075324", "0.72808963", "0.727...
0.7636069
6
The name of this activation request's specification
def name @spec.name end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name\n @spec['name']\n end", "def name\n @spec['name']\n end", "def resource_name\n resource_specification.name\n end", "def name\n spec.name\n end", "def spec_name\n @@spec_names[__name__]\n end", "def name\n definition[:name]\n end", "def attention_...
[ "0.7452056", "0.7452056", "0.69701093", "0.6846319", "0.67897654", "0.64493257", "0.64101654", "0.6381354", "0.6346942", "0.6331228", "0.6298438", "0.6288343", "0.6234424", "0.6201865", "0.6193804", "0.618511", "0.6176293", "0.61532086", "0.61532086", "0.61532086", "0.6153208...
0.67977077
4
Return the ActivationRequest that contained the dependency that we were activated for.
def parent @request.requester end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def activation_request(dep, possible) # :nodoc:\n spec = possible.pop\n\n explain :activate, [spec.full_name, possible.size]\n explain :possible, possible\n\n activation_request =\n Gem::Resolver::ActivationRequest.new spec, dep, possible\n\n return spec, activation_request\n end", "def requ...
[ "0.6843918", "0.56065696", "0.56065696", "0.56065696", "0.5380195", "0.5326081", "0.5252782", "0.5177692", "0.51658696", "0.51477134", "0.51285475", "0.5121262", "0.5120728", "0.5120728", "0.5120728", "0.50775355", "0.5058003", "0.5041969", "0.49681577", "0.49654636", "0.4965...
0.44986832
79
The version of this activation request's specification
def version @spec.version end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def version\n self[:version]\n end", "def version\n @attributes[:version]\n end", "def version\n @attributes[:version]\n end", "def version\n @version\n end", "def version\n spec.version\n end", "def version\n fetch('vehicle.version')\n end", "def version...
[ "0.7311421", "0.72894955", "0.72894955", "0.72709215", "0.7263044", "0.72331876", "0.7228946", "0.7228946", "0.7228946", "0.7228946", "0.7228946", "0.7228946", "0.7228946", "0.7228946", "0.7228946", "0.7197968", "0.7197968", "0.7197968", "0.7197968", "0.7197968", "0.7195541",...
0.74504274
0
The platform of this activation request's specification
def platform @spec.platform end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def platform\n @attributes[:platform]\n end", "def platform\n fetch('device.platform')\n end", "def platform\n spec.platform\n end", "def platform\n data[:platform]\n end", "def platform\n backend.platform\n end", "def platform\n return @platform\n ...
[ "0.8294762", "0.81953925", "0.8128829", "0.81178355", "0.8031176", "0.7980042", "0.7890088", "0.78810877", "0.7706325", "0.7686608", "0.7686608", "0.7686608", "0.7684533", "0.7680615", "0.7680615", "0.76744425", "0.75965655", "0.75757146", "0.7500591", "0.7388763", "0.7386729...
0.83501464
0
:nodoc: Creates a new resolver conflict when +dependency+ is in conflict with an already +activated+ specification.
def initialize(dependency, activated, failed_dep=dependency) @dependency = dependency @activated = activated @failed_dep = failed_dep end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def conflicting_dependencies\n [@failed_dep.dependency, @activated.request.dependency]\n end", "def conflicting_dependencies\n [@failed_dep.dependency, @activated.request.dependency]\n end", "def conflicting_dependencies\n [@failed_dep.dependency, @activated.request.dependency]\n end", "def creat...
[ "0.58036697", "0.58036697", "0.58036697", "0.5718109", "0.5688618", "0.55889565", "0.5574518", "0.5574518", "0.554783", "0.554783", "0.55309075", "0.55036384", "0.54910964", "0.54702705", "0.54558474", "0.5426173", "0.54145896", "0.5413689", "0.5390197", "0.53005177", "0.5279...
0.5059355
32
A string explanation of the conflict.
def explain "<Conflict wanted: #{@failed_dep}, had: #{activated.spec.full_name}>" end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def message\n \"#{base} already defines #{conflicts}, also defined on #{owner}\"\n end", "def explanation\n activated = @activated.spec.full_name\n dependency = @failed_dep.dependency\n requirement = dependency.requirement\n alternates = dependency.matching_specs.map {|spec| spec.full_nam...
[ "0.718281", "0.64290863", "0.6416777", "0.62477285", "0.6229755", "0.6219867", "0.61944604", "0.61944604", "0.5966285", "0.5817398", "0.5814598", "0.580054", "0.57904106", "0.57837796", "0.5725968", "0.5703971", "0.5701859", "0.5597468", "0.55931884", "0.5580559", "0.5580559"...
0.7153087
1
Return the 2 dependency objects that conflicted
def conflicting_dependencies [@failed_dep.dependency, @activated.request.dependency] end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def validate_duplicate_dependencies # :nodoc:\n # NOTE: see REFACTOR note in Gem::Dependency about types - this might be brittle\n seen = Gem::Dependency::TYPES.inject({}) {|types, type| types.merge({ type => {}}) }\n\n error_messages = []\n @specification.dependencies.each do |dep|\n if prev = se...
[ "0.64815843", "0.62865686", "0.62865686", "0.6144609", "0.6141089", "0.60081244", "0.5973255", "0.596563", "0.5962904", "0.5954621", "0.594643", "0.5934399", "0.59295225", "0.59293324", "0.5921738", "0.59069884", "0.59006006", "0.58942163", "0.58926797", "0.5889762", "0.58795...
0.7299119
1
Explanation of the conflict used by exceptions to print useful messages
def explanation activated = @activated.spec.full_name dependency = @failed_dep.dependency requirement = dependency.requirement alternates = dependency.matching_specs.map {|spec| spec.full_name } unless alternates.empty? matching = <<-MATCHING.chomp Gems matching %s: %s MATCHI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show_detailed_exceptions?; end", "def bold_error(*args); end", "def obvious_error(message, e)\n \"#{stars}\\n#{message}\\n#{stars}\\n#{e.message}#{stars}\"\n end", "def exception_details(e, msg); end", "def miss_reason; end", "def exceptions; end", "def continued_exception; end", "def mis...
[ "0.7201852", "0.6950973", "0.6843902", "0.6838442", "0.6773269", "0.6745108", "0.6678467", "0.6558626", "0.654985", "0.6527864", "0.6466461", "0.6466461", "0.64456224", "0.6444342", "0.64245874", "0.64245874", "0.64245874", "0.64245874", "0.64245874", "0.6419298", "0.6419298"...
0.0
-1
Returns true if the conflicting dependency's name matches +spec+.
def for_spec?(spec) @dependency.name == spec.name end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def matches_spec?(spec)\n @dependency.matches_spec? spec\n end", "def matches_spec?(spec)\n return false unless name === spec.name\n return true if requirement.none?\n\n requirement.satisfied_by?(spec.version)\n end", "def matches_spec? spec\n name == spec.name and requirement.satisfied_by?...
[ "0.80599946", "0.79078996", "0.77342063", "0.7272455", "0.7081621", "0.6608467", "0.6569855", "0.640916", "0.62358516", "0.6175302", "0.6171402", "0.61632216", "0.6121224", "0.6099149", "0.5999192", "0.59902", "0.59637624", "0.596284", "0.59551036", "0.59287786", "0.591956", ...
0.83569074
0
Path of activations from the +current+ list.
def request_path(current) path = [] while current do case current when Gem::Resolver::ActivationRequest then path << "#{current.request.dependency}, #{current.spec.version} activated" current = current.parent when Gem::Resolver::DependencyRequest then path <...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def all_active_paths\n all_active_states.map(&:path)\n end", "def current\n\t\t\t\t\treturn Pathname.new(\".\")\n\t\t\t\tend", "def active_version_paths\n #paths = []\n paths = [[:original]]\n self.class.recurse_through_active_versions self do |n, _|\n paths << n\n end\n paths\n end", ...
[ "0.6969025", "0.64684373", "0.62841284", "0.6233684", "0.62086475", "0.6173843", "0.6159933", "0.606252", "0.5988996", "0.59706235", "0.59470886", "0.59136295", "0.58303505", "0.5812036", "0.57745445", "0.574481", "0.57054734", "0.56864285", "0.5641918", "0.5630341", "0.56207...
0.57595253
15
Return the Specification that listed the dependency
def requester @failed_dep.requester end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dependencies_for(specification)\n specification.dependencies\n end", "def dependencies_for(specification)\n []\n end", "def dependencies_for(specification)\n specification.dependencies(@cache, @resolver_ui)\n end", "def specification\n Gem::Specification.find_by_name(name, re...
[ "0.7301754", "0.7262561", "0.6614737", "0.6608516", "0.6577573", "0.6548338", "0.6529312", "0.65005875", "0.642643", "0.642643", "0.64102495", "0.64064634", "0.6252457", "0.62131494", "0.61199594", "0.61175114", "0.6081156", "0.6068001", "0.6057778", "0.60414726", "0.60386056...
0.0
-1
Creates a new DependencyRequest for +dependency+ from +requester+. +requester may be nil if the request came from a user.
def initialize(dependency, requester) @dependency = dependency @requester = requester end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_requestor(request_address, reply_address=nil, reply_queue=nil)\n HornetQ::Client::RequestorPattern.new(self, request_address, reply_address, reply_queue)\n end", "def create\n @requester = Requester.new(requester_params)\n\n respond_to do |format|\n if @requester.save\n format.ht...
[ "0.5271457", "0.5194833", "0.5080496", "0.506417", "0.506417", "0.5057239", "0.5022933", "0.4998815", "0.49854884", "0.49530745", "0.4873624", "0.48649615", "0.48092836", "0.47729945", "0.4763134", "0.4763134", "0.4763134", "0.47507292", "0.47489735", "0.47397938", "0.4733258...
0.6830119
0
Is this dependency a development dependency?
def development? @dependency.type == :development end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dependency_met?\n true\n end", "def fetch_development_dependencies # :nodoc:\n end", "def include_dev?\n config.dig(\"composer\", \"include_dev\") == true\n end", "def development_dependencies\n dependencies.select {|d| d.type == :development }\n end", "def dep_defined?\n ...
[ "0.8018263", "0.7451799", "0.72674084", "0.7162365", "0.70337594", "0.6951052", "0.6951052", "0.6951052", "0.69354945", "0.688196", "0.68514", "0.68465424", "0.6801067", "0.6797691", "0.67724824", "0.6765381", "0.6734673", "0.6708501", "0.670451", "0.6702705", "0.66932404", ...
0.85007346
0
Does this dependency request match +spec+? NOTE: match? only matches prerelease versions when dependency is a prerelease dependency.
def match?(spec, allow_prerelease = false) @dependency.match? spec, nil, allow_prerelease end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def matches_spec?(spec)\n @dependency.matches_spec? spec\n end", "def matches_spec?(spec)\n return false unless name === spec.name\n return true if requirement.none?\n\n requirement.satisfied_by?(spec.version)\n end", "def matches_spec? spec\n name == spec.name and requirement.satisfied_by?...
[ "0.8041256", "0.80169404", "0.79887795", "0.73883396", "0.68167627", "0.68167627", "0.65455484", "0.6396589", "0.63460296", "0.6342731", "0.63119686", "0.6258276", "0.61994773", "0.6191027", "0.6171989", "0.6122927", "0.6112709", "0.6096675", "0.60816616", "0.6080213", "0.606...
0.79082954
3
Does this dependency request match +spec+? NOTE: matches_spec? matches prerelease versions. See also match?
def matches_spec?(spec) @dependency.matches_spec? spec end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def matches_spec?(spec)\n return false unless name === spec.name\n return true if requirement.none?\n\n requirement.satisfied_by?(spec.version)\n end", "def matches_spec? spec\n name == spec.name and requirement.satisfied_by? spec.version\n end", "def match?(spec, allow_prerelease = false)\n...
[ "0.823319", "0.8231451", "0.7773629", "0.73634535", "0.6963007", "0.6963007", "0.6643403", "0.66240114", "0.66024137", "0.6469327", "0.6414913", "0.63623303", "0.6350661", "0.6304736", "0.6298786", "0.6278194", "0.61865056", "0.6117487", "0.6095699", "0.6088161", "0.60797644"...
0.82384616
0
The name of the gem this dependency request is requesting.
def name @dependency.name end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gem_name\n @specification.name\n end", "def gem_name\n \"#{@account}-#{@name}\"\n end", "def gem_name\n @gem_name ||= @source_path.sub_ext(\"\").basename.to_s\n end", "def gem_name\n @gem_name ||= \"sprout-#{clean_name}-library\"\n end", "def name_for(dependency)\n depe...
[ "0.8219962", "0.7913306", "0.76304114", "0.7526667", "0.7223292", "0.7223292", "0.7223292", "0.69623584", "0.68886787", "0.6811279", "0.6774102", "0.6747224", "0.6746835", "0.671589", "0.66771555", "0.66771555", "0.66771555", "0.66771555", "0.666498", "0.6640066", "0.66272986...
0.7143354
8
Indicate that the request is for a gem explicitly requested by the user
def explicit? @requester.nil? end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gem?\n @gem\n end", "def gem_if_necessary(gem)\n grep = args = nil\n if gem =~ /(.*)-(\\d+\\.\\d+\\.\\d+)$/\n gem, version = $1, $2\n grep = \"^#{gem}.*#{version}\"\n args = \" --version #{version}\"\n else\n grep = \"^#{gem}\"\n end\n if fails?(\"...
[ "0.6716794", "0.61628073", "0.61182237", "0.61182237", "0.6117827", "0.6101826", "0.60852516", "0.6078926", "0.6074338", "0.6039317", "0.60069245", "0.5994126", "0.59905523", "0.59762645", "0.5965158", "0.59590584", "0.5903495", "0.5900769", "0.58992904", "0.58741647", "0.586...
0.0
-1
Indicate that the request is for a gem requested as a dependency of another gem
def implicit? !explicit? end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def version_required(gem_def)\n return Gem::Dependency.instance_methods.map(&:to_sym).include?(:requirement) ? gem_def.requirement : gem_def.version_requirements\nend", "def requirement\n @dependency.requirement\n end", "def dependency\n @dependency ||= Bundler.load.gems.find { |dep| dep.name == @n...
[ "0.70330125", "0.6856664", "0.6716872", "0.66068333", "0.6589236", "0.6567188", "0.6435365", "0.64025795", "0.63296545", "0.63287365", "0.6323053", "0.6313519", "0.6278093", "0.6278093", "0.6268686", "0.62659204", "0.6263326", "0.62399304", "0.6220741", "0.6209504", "0.619017...
0.0
-1
Return a String indicating who caused this request to be added (only valid for implicit requests)
def request_context @requester ? @requester.request : "(unknown)" end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def title_for_request_message_for_requester\n I18n.t(\"notification.received_a_travel_request_message_is_owner.title\")\n end", "def getAddedBy\r\n\t\t\t\t\treturn @addedBy\r\n\t\t\t\tend", "def requestor\n return @requestor\n end", "def sender\n request.from.first.to_s\n ...
[ "0.6506888", "0.6154083", "0.6057866", "0.6054723", "0.60485303", "0.60361767", "0.59598184", "0.59397376", "0.58860457", "0.5872608", "0.58425176", "0.57960886", "0.56990737", "0.56658363", "0.56409436", "0.56403494", "0.563433", "0.56181085", "0.55897987", "0.5586181", "0.5...
0.58883387
8
The version requirement for this dependency request
def requirement @dependency.requirement end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def version\n @dependency.requirement\n end", "def get_version_req(dep)\n req = get_key_or_sym(dep, :version_requirement)\n req ||= get_key_or_sym(dep, :version_range)\n req\n end", "def required_version\n versions.find { |v| dependency.match?(name, v) } ||\n raise(Informative, \"...
[ "0.88771117", "0.8077306", "0.80603445", "0.7863138", "0.766322", "0.7379435", "0.73526615", "0.7297451", "0.7238507", "0.72337186", "0.71607953", "0.71146035", "0.7077406", "0.70447206", "0.69853", "0.69584674", "0.6955538", "0.69403076", "0.69403076", "0.6902946", "0.689131...
0.764953
5
Creates a new RequirementList.
def initialize @exact = [] @list = [] end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def new\n @all_requirements = Requirement.all\n\n puts \"REQUIREMENTS\", @requirements\n \n @requirement = Requirement.new\n end", "def new_requirement_attributes=(attributes)\n requirement = Requirement.find_or_create_by(attributes)\n self.requirements << requirement if requirement.valid? || ...
[ "0.7045399", "0.6387536", "0.59986764", "0.59281635", "0.59139335", "0.5871065", "0.5859416", "0.5855141", "0.5828393", "0.5791685", "0.5697108", "0.5645091", "0.5595616", "0.5594496", "0.5578773", "0.5571822", "0.5545709", "0.55399173", "0.5506356", "0.54628396", "0.5462419"...
0.0
-1
Adds Resolver::DependencyRequest +req+ to this requirements list.
def add(req) if req.requirement.exact? @exact.push req else @list.push req end req end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def requirements=(req)\n @requirements = Array req\n end", "def gem(name, *reqs)\n if dep = @dependency_names[name]\n dep.requirement.concat reqs\n else\n dep = Gem::Dependency.new name, *reqs\n @dependency_names[name] = dep\n @dependencies << dep\n end\n end", "def gem(name, ...
[ "0.6739618", "0.63185936", "0.62927926", "0.62927926", "0.6189361", "0.6163073", "0.61626315", "0.6104266", "0.60407203", "0.59778947", "0.5966951", "0.58536935", "0.5814916", "0.58067095", "0.57948834", "0.5747533", "0.57184696", "0.5704175", "0.56978065", "0.56734693", "0.5...
0.72800034
0
Enumerates requirements in the list
def each # :nodoc: return enum_for __method__ unless block_given? @exact.each do |requirement| yield requirement end @list.each do |requirement| yield requirement end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def requirements\n []\n end", "def requirements\n []\n end", "def requirements(requirements); end", "def requirements\n @requirements ||= []\n end", "def requirements ; @requirements ||= Requirement.requirements_of self ; end", "def requirements; end", "def requirements; end...
[ "0.6711804", "0.67037517", "0.6522082", "0.65018636", "0.6467156", "0.6354668", "0.6354668", "0.6354668", "0.6354668", "0.61013764", "0.6098492", "0.5861906", "0.5835427", "0.57744855", "0.57256424", "0.5681169", "0.5647387", "0.55800813", "0.55800813", "0.55479443", "0.55349...
0.63052154
9
How many elements are in the list
def size @exact.size + @list.size end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def length(list)\n number(list.to_a.size)\n end", "def count(list)\n list.length\nend", "def count\n elements.count\n end", "def size\n list.size\n end", "def length\n return @list.length\n end", "def size\n @list.size\n end", "def size\n @list.size\n end", ...
[ "0.8113082", "0.7815351", "0.78004473", "0.77060497", "0.76407003", "0.75999874", "0.75999874", "0.7579956", "0.75105506", "0.7480807", "0.74460614", "0.74019957", "0.7383038", "0.7371486", "0.73654276", "0.735919", "0.73462456", "0.72915757", "0.7279294", "0.7254517", "0.725...
0.72667927
19
Is the list empty?
def empty? @exact.empty? && @list.empty? end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def empty?\n @list.empty?\n end", "def is_list_empty?\n @head.nil?\n end", "def list_empty?\n return (@first_node == nil) ? true : false\n end", "def is_empty()\n return @items.empty?\n end", "def empty?\n @items.count == 0\n end", "def empty?\n items....
[ "0.9217213", "0.85951513", "0.85516644", "0.84331113", "0.84030807", "0.834237", "0.82604903", "0.82604903", "0.8241488", "0.8221005", "0.81769353", "0.81769353", "0.813743", "0.8106962", "0.80686265", "0.80686265", "0.805755", "0.8007819", "0.8007819", "0.7994657", "0.799266...
0.8441759
3
Remove the oldest DependencyRequest from the list.
def remove return @exact.shift unless @exact.empty? @list.shift end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_min_priority\n loc = delete_min_locator\n loc and [loc.value, loc.priority]\n end", "def delete_requests\n self.requests.each {|request| request.destroy}\n end", "def pop_outstanding_request\n @response_timestamp = ::Time.now.to_i\n ruid = request_uid\n ork = outstanding_re...
[ "0.55412585", "0.5367387", "0.531017", "0.5309391", "0.5265946", "0.52543813", "0.51952946", "0.5191421", "0.5174858", "0.5155995", "0.515027", "0.51312095", "0.5091021", "0.5082549", "0.5072882", "0.5066914", "0.50607383", "0.50578195", "0.5041557", "0.5027393", "0.5017879",...
0.5557521
0
Returns the oldest five entries from the list.
def next5 x = @exact[0,5] x + @list[0,5 - x.size] end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def five_recent_posts\n self.posts.sort_by(&:created_at).reverse.take(5)\n end", "def latest_five\n self.find :all, :limit=>5, :order => \"created_at desc\"\n end", "def recent(n = 5)\n return @history[-n..-1] if n < @history.size\n return @history[0..n]\n end", "def five_...
[ "0.654564", "0.639091", "0.62970793", "0.60780007", "0.60657924", "0.5784676", "0.57802004", "0.57766926", "0.575315", "0.5749577", "0.5714466", "0.569351", "0.56828904", "0.56354403", "0.56345206", "0.56320584", "0.55961645", "0.5577996", "0.5534675", "0.5514371", "0.5506773...
0.5592205
17
The find_all method must be implemented. It returns all Resolver Specification objects matching the given DependencyRequest +req+.
def find_all(req) raise NotImplementedError end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_all(req)\n res = []\n\n dep = req.dependency\n\n return res if @ignore_dependencies and\n @always_install.none? {|spec| dep.match? spec }\n\n name = dep.name\n\n dep.matching_specs.each do |gemspec|\n next if @always_install.any? {|spec| spec.name == gemspec.name }\n\n ...
[ "0.80750537", "0.79693455", "0.79686713", "0.79684067", "0.7563485", "0.7435208", "0.72361714", "0.72238183", "0.70568955", "0.6861582", "0.6219052", "0.61319005", "0.61005396", "0.5987219", "0.58580667", "0.5698375", "0.5605676", "0.55764735", "0.55456936", "0.54347986", "0....
0.68157595
10
The prefetch method may be overridden, but this is not necessary. This default implementation does nothing, which is suitable for sets where looking up a specification is cheap (such as installed gems). When overridden, the prefetch method should look up specifications matching +reqs+.
def prefetch(reqs) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prefetch(reqs)\n @sets.each {|s| s.prefetch(reqs) }\n end", "def prefetch(reqs)\n return unless @remote\n names = reqs.map {|r| r.dependency.name }\n needed = names - @data.keys - @to_fetch\n\n @to_fetch += needed\n end", "def prefetch reqs\n names = reqs.map { |r| r.dependency.name }\n...
[ "0.7924537", "0.7607543", "0.7411957", "0.72918695", "0.67076725", "0.648522", "0.5844706", "0.5769698", "0.5579323", "0.55464715", "0.55226076", "0.5449278", "0.5449095", "0.544834", "0.53652585", "0.53394234", "0.53032625", "0.52832454", "0.5213335", "0.5116015", "0.5089608...
0.79166335
1
When true, this set is allowed to access the network when looking up specifications or dependencies.
def remote? # :nodoc: @remote end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def allow_net_connect?\n allow_net_connect\n end", "def required_for_external?\n true\n end", "def required_for_external?\n false\n end", "def required_for_external?\n false\n end", "def required_for_external?\n false\n end", "def allowed?\n true\n ...
[ "0.6107667", "0.6065746", "0.6057508", "0.6057508", "0.6057508", "0.59445804", "0.59445804", "0.59412825", "0.5848883", "0.584671", "0.58353996", "0.58130586", "0.57307166", "0.5710521", "0.56857365", "0.5679411", "0.5664146", "0.56632286", "0.5654658", "0.5649455", "0.564290...
0.0
-1
Creates a new APISet that will retrieve gems from +uri+ using the RubyGems API URL +dep_uri+ which is described at
def initialize(dep_uri = 'https://index.rubygems.org/info/') super() dep_uri = URI dep_uri unless URI === dep_uri @dep_uri = dep_uri @uri = dep_uri + '..' @data = Hash.new {|h,k| h[k] = [] } @source = Gem::Source.new @uri @to_fetch = [] end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dependency_resolver_set # :nodoc:\n return Gem::Resolver::IndexSet.new self if 'file' == uri.scheme\n\n fetch_uri = if uri.host == \"rubygems.org\"\n index_uri = uri.dup\n index_uri.host = \"index.rubygems.org\"\n index_uri\n else\n uri\n end\n\n bundler_api_uri = enforce_tra...
[ "0.6640557", "0.621388", "0.55323017", "0.54199666", "0.53242534", "0.52759963", "0.5206523", "0.52064747", "0.5178428", "0.51738054", "0.5172522", "0.51483077", "0.50881094", "0.50641227", "0.5058649", "0.5026406", "0.50235295", "0.5004896", "0.49928057", "0.49792048", "0.49...
0.6377213
1
Return an array of APISpecification objects matching DependencyRequest +req+.
def find_all(req) res = [] return res unless @remote if @to_fetch.include?(req.name) prefetch_now end versions(req.name).each do |ver| if req.dependency.match? req.name, ver[:number], @prerelease res << Gem::Resolver::APISpecification.new(self, ver) end end res ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_all req\n res = []\n\n versions(req.name).each do |ver|\n if req.dependency.match? req.name, ver[:number]\n res << Gem::DependencyResolver::APISpecification.new(self, ver)\n end\n end\n\n res\n end", "def find_all req\n res = []\n\n return res unless @remote\n\n ve...
[ "0.8237774", "0.78450304", "0.7248668", "0.7035934", "0.6944507", "0.6903848", "0.6873664", "0.6739189", "0.63288695", "0.59691215", "0.59397274", "0.59349513", "0.57385933", "0.57200223", "0.57139385", "0.56531256", "0.5635857", "0.5603173", "0.5575272", "0.5560508", "0.5559...
0.78811437
1
A hint run by the resolver to allow the Set to fetch data for DependencyRequests +reqs+.
def prefetch(reqs) return unless @remote names = reqs.map {|r| r.dependency.name } needed = names - @data.keys - @to_fetch @to_fetch += needed end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prefetch reqs\n names = reqs.map { |r| r.dependency.name }\n needed = names.find_all { |d| !@data.key?(d) }\n\n return if needed.empty?\n\n uri = @dep_uri + \"?gems=#{needed.sort.join ','}\"\n str = Gem::RemoteFetcher.fetcher.fetch_path uri\n\n Marshal.load(str).each do |ver|\n @data[ver...
[ "0.7044022", "0.67446536", "0.6736807", "0.6553137", "0.63882864", "0.62052166", "0.6155744", "0.61472005", "0.6126365", "0.6095431", "0.604664", "0.6045923", "0.60425985", "0.59099364", "0.58916104", "0.5876598", "0.5875363", "0.5875363", "0.5875363", "0.5875363", "0.5870386...
0.70707726
0
Return data for all versions of the gem +name+.
def versions(name) # :nodoc: if @data.key?(name) return @data[name] end uri = @dep_uri + name str = Gem::RemoteFetcher.fetcher.fetch_path uri lines(str).each do |ver| number, platform, dependencies, requirements = parse_gem(ver) platform ||= "ruby" dependencies = dependenc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def versions name # :nodoc:\n if @data.key?(name)\n return @data[name]\n end\n\n uri = @dep_uri + \"?gems=#{name}\"\n str = Gem::RemoteFetcher.fetcher.fetch_path uri\n\n Marshal.load(str).each do |ver|\n @data[ver[:name]] << ver\n end\n\n @data[name]\n end", "def versions name\n ...
[ "0.81406766", "0.8134813", "0.74972266", "0.6731088", "0.65374213", "0.6452417", "0.6450558", "0.6361315", "0.6357279", "0.6338896", "0.63278544", "0.63044906", "0.6242029", "0.62213075", "0.6179728", "0.6176463", "0.61761594", "0.6151564", "0.6078296", "0.6037065", "0.602227...
0.78945524
2
:nodoc: Creates a new ComposedSet containing +sets+. Use Gem::Resolver::compose_sets instead.
def initialize(*sets) super() @sets = sets end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set(sets)\n view.update_many(\"$set\" => collect_operations(sets))\n end", "def pick_sets # :nodoc:\n @sources.each_source do |source|\n @sets << source.dependency_resolver_set\n end\n end", "def apply_harvesting_set_membership(sets)\n\t\t#We delete previous set memberships and move...
[ "0.64213246", "0.6260354", "0.619913", "0.619913", "0.61827624", "0.6164565", "0.5977115", "0.5961168", "0.5808916", "0.5778591", "0.57375664", "0.5713998", "0.54845136", "0.5459614", "0.5433317", "0.5427071", "0.5419305", "0.53820556", "0.53449374", "0.5338839", "0.53273207"...
0.60174555
6
When +allow_prerelease+ is set to +true+ prereleases gems are allowed to match dependencies.
def prerelease=(allow_prerelease) super sets.each do |set| set.prerelease = allow_prerelease end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prerelease?\n requirements.any? {|r| r.last.prerelease? }\n end", "def prerelease?\n @prerelease || requirement.prerelease?\n end", "def test_method_prereleasep\n value_ = ::Versionomy.create([1, 9, 2, 'a', 2], :rubygems)\n assert_equal(true, value_.prerelease?)\n value_ = ::Ve...
[ "0.7281312", "0.711956", "0.71035683", "0.69023013", "0.6810655", "0.66998637", "0.66640747", "0.66471964", "0.6641763", "0.6457625", "0.63970995", "0.62700063", "0.624883", "0.62299055", "0.6200984", "0.6170808", "0.6169081", "0.6158603", "0.6152757", "0.6104741", "0.5937943...
0.7081757
3
Sets the remote network access for all composed sets.
def remote=(remote) super @sets.each {|set| set.remote = remote } end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remote_set_immutable(host, files)\n remote_ssh_cmd(host, \"sudo chattr +i #{files.join(\" \")}\")\nend", "def __secure_remote_access_to_all(_self, _acting_user)\n all\n end", "def remote_connections; end", "def remote=(urls)\n case urls\n when nil then @remote = nil\n when...
[ "0.5978569", "0.569863", "0.54803574", "0.5464521", "0.5314891", "0.5303091", "0.5280615", "0.51564586", "0.51331", "0.512083", "0.5071352", "0.50626713", "0.5049544", "0.5045565", "0.5043033", "0.50236815", "0.50224274", "0.5018741", "0.4999036", "0.49785814", "0.4954748", ...
0.6824681
0
Finds all specs matching +req+ in all sets.
def find_all(req) @sets.map do |s| s.find_all req end.flatten end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_all(req)\n prefetch nil\n\n specs.values.select do |spec|\n req.match? spec\n end\n end", "def find_all(req)\n @specs.select do |spec|\n req.match? spec\n end\n end", "def find_all(req)\n @specs.values.select do |spec|\n req.match? spec\n end.map do |spec|\n ...
[ "0.86006594", "0.86005247", "0.75833356", "0.7420776", "0.69731534", "0.6905868", "0.6879089", "0.6798993", "0.67534167", "0.66748595", "0.61493003", "0.6074465", "0.57968605", "0.5718518", "0.56976354", "0.568795", "0.56372046", "0.55524236", "0.5503797", "0.54858226", "0.54...
0.8004796
2
Prefetches +reqs+ in all sets.
def prefetch(reqs) @sets.each {|s| s.prefetch(reqs) } end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prefetch(reqs)\n end", "def prefetch(reqs)\n return unless @remote\n names = reqs.map {|r| r.dependency.name }\n needed = names - @data.keys - @to_fetch\n\n @to_fetch += needed\n end", "def prefetch reqs\n names = reqs.map { |r| r.dependency.name }\n needed = names.find_all { |d| !@data...
[ "0.72198886", "0.7187148", "0.6468549", "0.6415419", "0.6319343", "0.5820311", "0.5736501", "0.53151816", "0.53011566", "0.52487886", "0.5238504", "0.51983964", "0.5190661", "0.5126998", "0.5102535", "0.503574", "0.502708", "0.49542055", "0.49309477", "0.48583436", "0.4848797...
0.78839755
0
Picks which sets to use for the configured sources.
def pick_sets # :nodoc: @sources.each_source do |source| @sets << source.dependency_resolver_set end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sources(sources = nil)\n @sources.assign(sources) if sources\n @sources\n end", "def sources\n @sources ||= SourcePool.new\n end", "def sources\n @_configuration.fetch('sources') { DEFAULT_SOURCES }\n end", "def sources=(new_sources) # :nodoc:\n @sources = Set.new\...
[ "0.62973344", "0.6265369", "0.61659676", "0.60195976", "0.60052127", "0.59877837", "0.59242684", "0.5820613", "0.57803553", "0.570926", "0.5688163", "0.56581545", "0.563329", "0.5621717", "0.55948555", "0.5547181", "0.55317706", "0.54810435", "0.5470577", "0.5453452", "0.5443...
0.76036483
0
Replaces a failed APISet for the URI in +error+ with an IndexSet. If no matching APISet can be found the original +error+ is raised. The calling method must retry the exception to repeat the lookup.
def replace_failed_api_set(error) # :nodoc: uri = error.original_uri uri = URI uri unless URI === uri uri = uri + "." raise error unless api_set = @sets.find do |set| Gem::Resolver::APISet === set and set.dep_uri == uri end index_set = Gem::Resolver::IndexSet.new api_set.source @set...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reindex(id_list_file, clean_index)\n reindex_list(id_list_file, clean_index)\n rescue ArgumentError => e\n raise e\n rescue StandardError => e\n Rails.logger.error 'Execution interrupted by unexpected error'\n Rails.logger.error [e.class.to_s, e.message, *e.backtrace].join($RS)\n e...
[ "0.5090742", "0.5031443", "0.49029905", "0.48698056", "0.4868448", "0.48625803", "0.48515", "0.48076996", "0.47870216", "0.47652265", "0.4754491", "0.47528487", "0.47311047", "0.47078672", "0.46965158", "0.4694363", "0.4643647", "0.46246102", "0.46246102", "0.46244588", "0.46...
0.8487738
0
Adds and returns a GitSpecification with the given +name+ and +version+ which came from a +repository+ at the given +reference+. If +submodules+ is true they are checked out along with the repository. This fills in the prefetch information as enough information about the gem is present in the arguments.
def add_git_spec(name, version, repository, reference, submodules) # :nodoc: add_git_gem name, repository, reference, submodules source = Gem::Source::Git.new name, repository, reference source.root_dir = @root_dir spec = Gem::Specification.new do |s| s.name = name s.version = version ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gem_git(name, options) # :nodoc:\n if gist = options.delete(:gist)\n options[:git] = \"https://gist.github.com/#{gist}.git\"\n end\n\n return unless repository = options.delete(:git)\n\n pin_gem_source name, :git, repository\n\n reference = gem_git_reference options\n\n submodules = opti...
[ "0.61495185", "0.5995342", "0.5914412", "0.5782477", "0.5770355", "0.55856663", "0.54696494", "0.54663134", "0.54057926", "0.5395748", "0.53615195", "0.5335333", "0.5289044", "0.5289044", "0.5289044", "0.5289044", "0.5289044", "0.5289044", "0.5289044", "0.5289044", "0.5289044...
0.74702287
0
Finds all git gems matching +req+
def find_all(req) prefetch nil specs.values.select do |spec| req.match? spec end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_all(req)\n res = []\n\n dep = req.dependency\n\n return res if @ignore_dependencies and\n @always_install.none? {|spec| dep.match? spec }\n\n name = dep.name\n\n dep.matching_specs.each do |gemspec|\n next if @always_install.any? {|spec| spec.name == gemspec.name }\n\n ...
[ "0.7570808", "0.7439847", "0.73907655", "0.73783076", "0.72779834", "0.7191242", "0.6888658", "0.6812307", "0.6600979", "0.6496528", "0.63465786", "0.6297414", "0.61999685", "0.61795485", "0.6096688", "0.60787433", "0.6046661", "0.6042463", "0.6028296", "0.6017451", "0.600958...
0.6284918
12
Prefetches specifications from the git repositories in this set.
def prefetch(reqs) return unless @specs.empty? @repositories.each do |name, (repository, reference)| source = Gem::Source::Git.new name, repository, reference source.root_dir = @root_dir source.remote = @remote source.specs.each do |spec| git_spec = Gem::Resolver::GitSpecificat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def repositories\n # TODO : merge with current data\n load_repos\n end", "def repositories\n [ repository ].to_set + @properties.keys.map { |repository_name| DataMapper.repository(repository_name) }\n end", "def repositories\n opts[:repositories]\n end", "def fetch_changesets...
[ "0.64261615", "0.6422433", "0.62196815", "0.6090325", "0.60602164", "0.60427344", "0.60331607", "0.6016258", "0.5921711", "0.58868587", "0.5829961", "0.58087057", "0.5793318", "0.5793318", "0.5792216", "0.57719636", "0.57603407", "0.5755551", "0.57389504", "0.57001925", "0.56...
0.7202976
0
Return an array of IndexSpecification objects matching DependencyRequest +req+.
def find_all(req) res = [] return res unless @remote name = req.dependency.name @all[name].each do |uri, n| if req.match? n, @prerelease res << Gem::Resolver::IndexSpecification.new( self, n.name, n.version, uri, n.platform) end end res end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_all req\n res = []\n\n name = req.dependency.name\n\n @all[name].each do |uri, n|\n if req.dependency.match? n then\n res << Gem::DependencyResolver::IndexSpecification.new(\n self, n.name, n.version, uri, n.platform)\n end\n end\n\n res\n end", "def find_all re...
[ "0.80023324", "0.728693", "0.70872295", "0.70643073", "0.69063556", "0.6431901", "0.64283764", "0.6283982", "0.5874624", "0.5625577", "0.5585202", "0.55216336", "0.55216336", "0.54735595", "0.5417524", "0.54040194", "0.5378187", "0.533228", "0.531719", "0.53155166", "0.531320...
0.7782577
1
:nodoc: Creates a new InstallerSet that will look for gems in +domain+.
def initialize(domain) super() @domain = domain @f = Gem::SpecFetcher.fetcher @always_install = [] @ignore_dependencies = false @ignore_installed = false @local = {} @local_source = Gem::Source::Local.new @remote_set = Gem::Resolver::BestSet.n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setinstalled\n\n\t\tdebug \"Checking if the domain %s already exists.\" % [resource[:name]]\n\n\t\tif !exists?\n\t\t\tinstall(false)\n\t\tend\n\n\tend", "def from_installed_gems(*spec_dirs)\n @gems.clear\n if spec_dirs.empty?\n spec_dirs = Gem.path.collect { |dir| File.join(dir, \"specificat...
[ "0.57143927", "0.52647984", "0.5155083", "0.50783116", "0.50612086", "0.50112104", "0.49713", "0.49371862", "0.4913908", "0.49055517", "0.48494366", "0.48494366", "0.4848798", "0.4822797", "0.48184323", "0.48165095", "0.48103082", "0.48059833", "0.47746155", "0.47707653", "0....
0.6235808
0
Looks up the latest specification for +dependency+ and adds it to the always_install list.
def add_always_install(dependency) request = Gem::Resolver::DependencyRequest.new dependency, nil found = find_all request found.delete_if do |s| s.version.prerelease? and not s.local? end unless dependency.prerelease? found = found.select do |s| Gem::Source::SpecificFile === s.source...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_dependency(dependency)\n unrealize\n dependencies.push(dependency)\n dependency.dependents.push(self)\n dependency\n end", "def add_dependency(dependency)\n @dependencies << dependency\n end", "def add_dependency(dependency) # :nodoc:\n @dependencies << dependency\n end",...
[ "0.66510946", "0.65759486", "0.6503637", "0.648361", "0.63959646", "0.635052", "0.63387483", "0.63185185", "0.63003725", "0.619611", "0.61524034", "0.60566413", "0.6043586", "0.6037382", "0.59901226", "0.5961811", "0.5953306", "0.58576113", "0.58225226", "0.5821437", "0.58206...
0.8565054
0
Adds a local gem requested using +dep_name+ with the given +spec+ that can be loaded and installed using the +source+.
def add_local(dep_name, spec, source) @local[dep_name] = [spec, source] end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_spec(name, version, platform, source) # :nodoc:\n dep = Gem::Dependency.new name, version\n\n found = @specs.find do |spec|\n dep.matches_spec? spec and spec.platform == platform\n end\n\n tuple = Gem::NameTuple.new found.name, found.version, found.platform\n\n found.source.fetch_spec ...
[ "0.64608276", "0.641089", "0.6374474", "0.63707936", "0.6261016", "0.6229282", "0.61947024", "0.61542505", "0.61464554", "0.61018693", "0.60422486", "0.6009003", "0.59860325", "0.5977109", "0.59757495", "0.5964871", "0.594322", "0.5902497", "0.5891678", "0.5891678", "0.586856...
0.7362279
0
Should local gems should be considered?
def consider_local? # :nodoc: @domain == :both or @domain == :local end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def require_gems; end", "def prefer_indep_over_os_packages?; @prefer_indep_over_os_packages end", "def vendorized?\n File.directory?(normalize(:lib)) && normalize(:lib)\n end", "def dep_check\n $gems_required.each do |current_gem|\n begin\n if current_gem.include? \",\"\n tokens = cur...
[ "0.71971345", "0.6956619", "0.68791467", "0.68775064", "0.67968166", "0.6794132", "0.6764303", "0.67595375", "0.6702511", "0.6644603", "0.6629967", "0.66294944", "0.6584396", "0.65745085", "0.65655756", "0.6563546", "0.65282106", "0.6512544", "0.6500296", "0.6482302", "0.6474...
0.0
-1
Should remote gems should be considered?
def consider_remote? # :nodoc: @domain == :both or @domain == :remote end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def require_gems; end", "def has_remote_package_sets?\n each_remote_package_set.any? { true }\n end", "def prefer_indep_over_os_packages?; @prefer_indep_over_os_packages end", "def inaccessible_git_dependencies\n in_a_temporary_bundler_context(error_handling: false) do\n ...
[ "0.65840364", "0.6551966", "0.63522345", "0.6291436", "0.62885654", "0.6279362", "0.6195956", "0.61911297", "0.61530066", "0.6099846", "0.6069144", "0.6040404", "0.6037205", "0.60239166", "0.6018177", "0.5963836", "0.59600616", "0.5957465", "0.5951769", "0.59453464", "0.59302...
0.58225703
39
Returns an array of IndexSpecification objects matching DependencyRequest +req+.
def find_all(req) res = [] dep = req.dependency return res if @ignore_dependencies and @always_install.none? {|spec| dep.match? spec } name = dep.name dep.matching_specs.each do |gemspec| next if @always_install.any? {|spec| spec.name == gemspec.name } res << Gem::Reso...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_all req\n res = []\n\n name = req.dependency.name\n\n @all[name].each do |uri, n|\n if req.dependency.match? n then\n res << Gem::DependencyResolver::IndexSpecification.new(\n self, n.name, n.version, uri, n.platform)\n end\n end\n\n res\n end", "def find_all(re...
[ "0.7921907", "0.7706028", "0.72905326", "0.7054084", "0.68982667", "0.64103717", "0.63945574", "0.6269384", "0.58842456", "0.55461854", "0.5521702", "0.54303294", "0.54303294", "0.5398891", "0.53957653", "0.53454876", "0.5324249", "0.5313027", "0.5305618", "0.5302946", "0.527...
0.7074392
3
Called from IndexSpecification to get a true Specification object.
def load_spec(name, ver, platform, source) # :nodoc: key = "#{name}-#{ver}-#{platform}" @specs.fetch key do tuple = Gem::NameTuple.new name, ver, platform @specs[key] = source.fetch_spec tuple end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index_specification(index_hash, index_name = nil)\n index = OpenStruct.new(fields: index_hash.keys, key: index_hash)\n index_specifications.detect do |spec|\n spec == index || (index_name && index_name == spec.name)\n end\n end", "def specification\n return self.eco_docu...
[ "0.6291455", "0.62478864", "0.59060264", "0.5737425", "0.56862885", "0.56079286", "0.5554937", "0.55438226", "0.5527331", "0.54816556", "0.54816556", "0.5463874", "0.54063326", "0.5325972", "0.5266838", "0.5193531", "0.5174371", "0.51333016", "0.5059484", "0.50589305", "0.504...
0.0
-1
Has a local gem for +dep_name+ been added to this set?
def local?(dep_name) # :nodoc: spec, _ = @local[dep_name] spec end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dep_check\n $gems_required.each do |current_gem|\n begin\n if current_gem.include? \",\"\n tokens = current_gem.split(\",\")\n gem tokens[0], tokens[1]\n else\n gem current_gem\n end\n rescue Gem::LoadError\n if current_gem.include? \",\"\n $gems_missing_v...
[ "0.7328054", "0.7289883", "0.71121746", "0.7095087", "0.7088013", "0.701143", "0.6990969", "0.69738597", "0.69729584", "0.69234717", "0.6876851", "0.68643135", "0.68401325", "0.6837607", "0.6819938", "0.6818681", "0.67814976", "0.676235", "0.67266107", "0.6724815", "0.6723653...
0.75736135
0
:nodoc: Creates a new LockSet from the given +sources+
def initialize(sources) super() @sources = sources.map do |source| Gem::Source::Lock.new source end @specs = [] end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def from(*sources)\n @sources |= sources.flatten\n guess_compiler if @compiler.nil? && sources.flatten.any? { |source| File.exist?(source.to_s) }\n self\n end", "def from(*sources)\n @sources |= sources.flatten.map { |dir| file(File.expand_path(dir.to_s)) }\n self\n end", "def so...
[ "0.63831776", "0.6243726", "0.6100347", "0.60208464", "0.5854651", "0.5787816", "0.56875706", "0.5607433", "0.5500469", "0.5346279", "0.53442043", "0.53079635", "0.5270535", "0.52257353", "0.51812094", "0.5155001", "0.503451", "0.49264884", "0.4925284", "0.49155772", "0.48763...
0.70880383
0
Creates a new IndexSpecification in this set using the given +name+, +version+ and +platform+. The specification's set will be the current set, and the source will be the current set's source.
def add(name, version, platform) # :nodoc: version = Gem::Version.new version specs = [ Gem::Resolver::LockSpecification.new(self, name, version, @sources, platform), ] @specs.concat specs specs end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_spec(name, ver, platform, source) # :nodoc:\n key = \"#{name}-#{ver}-#{platform}\"\n\n @specs.fetch key do\n tuple = Gem::NameTuple.new name, ver, platform\n\n @specs[key] = source.fetch_spec tuple\n end\n end", "def load_spec name, ver, platform, source\n key = \"#{name}-#{ver}-#...
[ "0.59256566", "0.57865715", "0.56294787", "0.55112576", "0.5503156", "0.5452841", "0.5447486", "0.5329433", "0.5178406", "0.5043067", "0.4967464", "0.49257043", "0.4908675", "0.49080768", "0.48977056", "0.48462397", "0.48442304", "0.47903734", "0.47872156", "0.47435942", "0.4...
0.60975176
0
Returns an Array of IndexSpecification objects matching the DependencyRequest +req+.
def find_all(req) @specs.select do |spec| req.match? spec end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_all req\n res = []\n\n name = req.dependency.name\n\n @all[name].each do |uri, n|\n if req.dependency.match? n then\n res << Gem::DependencyResolver::IndexSpecification.new(\n self, n.name, n.version, uri, n.platform)\n end\n end\n\n res\n end", "def find_all(re...
[ "0.7757666", "0.7563728", "0.7132401", "0.6951361", "0.69100595", "0.67381173", "0.6206719", "0.62027806", "0.5812313", "0.554201", "0.54494613", "0.53810245", "0.5377879", "0.5348736", "0.5348736", "0.5332467", "0.5317194", "0.52930486", "0.528639", "0.52136385", "0.5207891"...
0.6234336
6
Loads a Gem::Specification with the given +name+, +version+ and +platform+. +source+ is ignored.
def load_spec(name, version, platform, source) # :nodoc: dep = Gem::Dependency.new name, version found = @specs.find do |spec| dep.matches_spec? spec and spec.platform == platform end tuple = Gem::NameTuple.new found.name, found.version, found.platform found.source.fetch_spec tuple end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_spec(name, ver, platform, source) # :nodoc:\n key = \"#{name}-#{ver}-#{platform}\"\n\n @specs.fetch key do\n tuple = Gem::NameTuple.new name, ver, platform\n\n @specs[key] = source.fetch_spec tuple\n end\n end", "def load_spec name, ver, platform, source\n key = \"#{name}-#{ver}-#...
[ "0.77621526", "0.7734755", "0.7547504", "0.6917784", "0.668703", "0.6467904", "0.6424844", "0.622662", "0.62118113", "0.60685754", "0.60028815", "0.58973694", "0.5866361", "0.5852126", "0.58096665", "0.57129616", "0.56593853", "0.56439686", "0.559586", "0.5478909", "0.5458707...
0.81305605
0
Adds a specification to the set with the given +name+ which has been unpacked into the given +directory+.
def add_vendor_gem(name, directory) # :nodoc: gemspec = File.join directory, "#{name}.gemspec" spec = Gem::Specification.load gemspec raise Gem::GemNotFoundException, "unable to find #{gemspec} for gem #{name}" unless spec spec.full_gem_path = File.expand_path directory @specs[spec.nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def install(name:, dir: nil)\r\n end", "def add(dir)\n \"add inherit-pkg-dir\\nset dir=#{dir}\\nend\"\n end", "def add_spec(gem_spec, name = T.unsafe(nil)); end", "def add_spec(gem_spec)\n @gems[gem_spec.full_name] = gem_spec\n end", "def add_name(name, state)\n send(state) << Spe...
[ "0.5314972", "0.5280154", "0.5274651", "0.5265701", "0.5243387", "0.5234399", "0.5233862", "0.51813805", "0.5181322", "0.5181322", "0.5068255", "0.5005357", "0.49595588", "0.49547023", "0.49328828", "0.49304193", "0.49248567", "0.49069974", "0.489149", "0.4860826", "0.4841981...
0.57453185
0
Returns an Array of VendorSpecification objects matching the DependencyRequest +req+.
def find_all(req) @specs.values.select do |spec| req.match? spec end.map do |spec| source = Gem::Source::Vendor.new @directories[spec] Gem::Resolver::VendorSpecification.new self, spec, source end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_all req\n res = []\n\n versions(req.name).each do |ver|\n if req.dependency.match? req.name, ver[:number]\n res << Gem::DependencyResolver::APISpecification.new(self, ver)\n end\n end\n\n res\n end", "def find_all(req)\n res = []\n\n return res unless @remote\n\n i...
[ "0.7117455", "0.6790428", "0.6755646", "0.670642", "0.6254648", "0.60279053", "0.6003399", "0.5981999", "0.5931777", "0.591467", "0.5766274", "0.5717", "0.5609324", "0.5599762", "0.5586993", "0.55113345", "0.5507813", "0.5476018", "0.5430795", "0.53589725", "0.5326591", "0....
0.7819655
0
Loads a spec with the given +name+. +version+, +platform+ and +source+ are ignored.
def load_spec(name, version, platform, source) # :nodoc: @specs.fetch name end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_spec(name, ver, platform, source) # :nodoc:\n key = \"#{name}-#{ver}-#{platform}\"\n\n @specs.fetch key do\n tuple = Gem::NameTuple.new name, ver, platform\n\n @specs[key] = source.fetch_spec tuple\n end\n end", "def load_spec name, ver, platform, source\n key = \"#{name}-#{ver}-#...
[ "0.8476635", "0.8383409", "0.8301791", "0.736326", "0.7322924", "0.62085664", "0.6133534", "0.61054283", "0.6090576", "0.5925747", "0.5924967", "0.58745635", "0.5861721", "0.58262366", "0.5809493", "0.5767398", "0.57639253", "0.57590437", "0.5717434", "0.5672056", "0.5630773"...
0.87891036
0
Sets default instance variables for the specification.
def initialize @dependencies = nil @name = nil @platform = nil @set = nil @source = nil @version = nil @required_ruby_version = Gem::Requirement.default @required_rubygems_version = Gem::Requirement.default end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_uninitialized_defaults_as_instance_variables\n DEFAULTS.each do |k, v|\n var_name = \"@#{k}\".to_sym\n if instance_variable_get(var_name).nil?\n self.instance_variable_set(var_name, v)\n end\n end\n end", "def initialize\n set_defaults\n end", "def ini...
[ "0.7159768", "0.7077517", "0.7077517", "0.6980994", "0.6971146", "0.6971146", "0.6859571", "0.6859571", "0.6859571", "0.6859571", "0.6859571", "0.6859571", "0.6793383", "0.67724246", "0.6737453", "0.67178965", "0.67123586", "0.66935426", "0.66458195", "0.6607483", "0.66020775...
0.0
-1
Fetches development dependencies if the source does not provide them by default (see APISpecification).
def fetch_development_dependencies # :nodoc: end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def development_dependencies\n dependencies.select {|d| d.type == :development }\n end", "def development_dependencies\n Gem::Specification.load(gemspec_path.to_s).development_dependencies\n end", "def prefetch reqs\n names = reqs.map { |r| r.dependency.name }\n needed = names.find_all { |d| !@da...
[ "0.6999557", "0.6827808", "0.626136", "0.61180854", "0.6059939", "0.6028063", "0.60037327", "0.59748983", "0.5928561", "0.5901708", "0.5869332", "0.5844749", "0.5815268", "0.57465726", "0.57403576", "0.5691348", "0.5661924", "0.56228477", "0.55780244", "0.55437344", "0.550295...
0.7572081
0
The name and version of the specification. Unlike Gem::Specificationfull_name, the platform is not included.
def full_name "#{@name}-#{@version}" end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def full_name\n if platform == Gem::Platform::RUBY or platform.nil? then\n \"#{name}-#{version}\".untaint\n else\n \"#{name}-#{version}-#{platform}\".untaint\n end\n end", "def full_name\n \"#{spec.name}-#{spec.version}\"\n end", "def computer_specification\n spec = ''\n spec += c...
[ "0.7614973", "0.75087", "0.7484261", "0.735642", "0.71991664", "0.70138973", "0.6890288", "0.68114835", "0.6764225", "0.66653436", "0.6624966", "0.6612059", "0.66095895", "0.6591185", "0.6575223", "0.65538895", "0.6547768", "0.65096325", "0.65063345", "0.65063345", "0.6495698...
0.65259844
17
Installs this specification using the Gem::Installer +options+. The install method yields a Gem::Installer instance, which indicates the gem will be installed, or +nil+, which indicates the gem is already installed. After installation spec is updated to point to the justinstalled specification.
def install(options = {}) require_relative '../installer' gem = download options installer = Gem::Installer.at gem, options yield installer if block_given? @spec = installer.install end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def install(options = {})\n destination = options[:install_dir] || Gem.dir\n\n if File.exist? File.join(destination, 'specifications', spec.spec_name)\n yield nil\n return\n end\n\n super\n end", "def install(options = {})\n require_relative '../installer'\n\n installer = Gem::Instal...
[ "0.77523595", "0.7405315", "0.67982775", "0.67359686", "0.66152155", "0.66152155", "0.6452638", "0.6140165", "0.60626686", "0.60610527", "0.6058717", "0.59395957", "0.5918538", "0.58594227", "0.5754344", "0.5739347", "0.57334864", "0.5701113", "0.5657874", "0.5642598", "0.559...
0.78455454
0
Returns true if this specification is installable on this platform.
def installable_platform? Gem::Platform.match_spec? spec end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def install?\n return false unless allowed_host?\n return false unless packages_installed?\n true\n end", "def installable?\n uninstallable_reasons.empty?\n end", "def installed?\n case @spec\n when Gem::Resolver::VendorSpecification then\n true\n else\n this_spec = ful...
[ "0.7723374", "0.7402171", "0.7363891", "0.72548974", "0.72483873", "0.7224093", "0.7138175", "0.7051246", "0.7000961", "0.69907457", "0.6963253", "0.6938148", "0.68642324", "0.6852213", "0.68126863", "0.67757577", "0.677116", "0.6731145", "0.66902083", "0.6641419", "0.6618502...
0.8299497
0
The dependencies of the gem for this specification
def dependencies spec.dependencies end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dependencies_for(specification)\n specification.dependencies\n end", "def dependencies\n []\n end", "def dependencies\n []\n end", "def dependencies\n []\n end", "def dependencies_for(specification)\n []\n end", "def gem_requirements\n @met...
[ "0.8199883", "0.80959564", "0.8057263", "0.8052083", "0.7897831", "0.7868105", "0.7841912", "0.7841912", "0.7841912", "0.7841912", "0.78279305", "0.7758478", "0.7731829", "0.7684384", "0.76712054", "0.76561284", "0.76498467", "0.76388997", "0.76388997", "0.76388997", "0.76098...
0.8158516
1
The required_ruby_version constraint for this specification
def required_ruby_version spec.required_ruby_version end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def required_ruby_version\n spec.required_ruby_version || Gem::Requirement.default\n end", "def required_ruby_version=(req)\n @required_ruby_version = Gem::Requirement.create req\n end", "def version_constraint(gem_name); end", "def required_version\n normalize_version(@required_version ||= ni...
[ "0.79599345", "0.76258194", "0.72906595", "0.72316027", "0.71641386", "0.69703364", "0.6794763", "0.67090225", "0.6700769", "0.665476", "0.65756035", "0.65121335", "0.64604235", "0.6437519", "0.6437519", "0.6429277", "0.64027977", "0.63970387", "0.63732046", "0.62879854", "0....
0.7870636
1
The required_rubygems_version constraint for this specification
def required_rubygems_version spec.required_rubygems_version end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def required_rubygems_version\n spec.required_rubygems_version || Gem::Requirement.default\n end", "def required_rubygems_version=(req)\n @required_rubygems_version = Gem::Requirement.create req\n end", "def version_constraint(gem_name); end", "def require_rubygems_version *versions\n spec_extras[...
[ "0.8452114", "0.7972468", "0.7494257", "0.7346925", "0.7240629", "0.71589595", "0.70693886", "0.7044433", "0.68744326", "0.6763449", "0.67269903", "0.6705732", "0.6634689", "0.6615518", "0.6574687", "0.6544214", "0.6483802", "0.6409731", "0.630845", "0.62742245", "0.62559", ...
0.8634094
0
The name and version of the specification. Unlike Gem::Specificationfull_name, the platform is not included.
def full_name "#{spec.name}-#{spec.version}" end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def full_name\n if platform == Gem::Platform::RUBY or platform.nil? then\n \"#{name}-#{version}\".untaint\n else\n \"#{name}-#{version}-#{platform}\".untaint\n end\n end", "def computer_specification\n spec = ''\n spec += computer.platform + ' ' if computer.platform\n spec += platfor...
[ "0.7614433", "0.7485584", "0.7356574", "0.71983904", "0.7015072", "0.68888944", "0.68112534", "0.67616564", "0.6664925", "0.6629497", "0.6611543", "0.6608902", "0.6589735", "0.6579348", "0.6553545", "0.654571", "0.6522712", "0.65089965", "0.6504537", "0.6504537", "0.64938825"...
0.7505635
1
The name of the gem for this specification
def name spec.name end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gem_name\n @specification.name\n end", "def gem_name\n \"#{@account}-#{@name}\"\n end", "def gem_name\n @gem_name ||= \"sprout-#{clean_name}-library\"\n end", "def spec_name\n \"#{full_name}.gemspec\"\n end", "def gem_name\n @gem_name ||= @source_path.sub_ext(\"\").basena...
[ "0.90695554", "0.82363796", "0.77930665", "0.7678063", "0.76440835", "0.7313257", "0.72902894", "0.72843933", "0.7253408", "0.7214753", "0.7214753", "0.7214753", "0.7214753", "0.7119249", "0.70621854", "0.7005454", "0.6972557", "0.6887509", "0.68848616", "0.6847862", "0.68348...
0.6941409
17
The platform this gem works on.
def platform spec.platform end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def platform\n osver[0]\n end", "def platform\n System::get_property('platform')\n end", "def platform\n @spec.platform\n end", "def platform\n data[:platform]\n end", "def platform\n backend.platform\n end", "def platform\n fetch('device.platform')\n end", "...
[ "0.8766687", "0.87495697", "0.86622804", "0.86452276", "0.86424917", "0.86418825", "0.86165047", "0.85991776", "0.85630363", "0.85042673", "0.85042673", "0.85042673", "0.84737426", "0.84137416", "0.8389005", "0.83752114", "0.829817", "0.82947123", "0.8241236", "0.8241236", "0...
0.8600075
7
The version of the gem for this specification.
def version spec.version end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def version\n @gemspec.version || @version_helper.to_s\n end", "def gem_version; end", "def gem_version; end", "def gem_version; end", "def gem_version; end", "def gem_version; end", "def gem_version; end", "def gem_version\n Gem::Version.new VERSION\n end", "def version\n @spec....
[ "0.8629841", "0.83547497", "0.83547497", "0.83547497", "0.83547497", "0.83547497", "0.83547497", "0.830443", "0.823342", "0.8184385", "0.78502303", "0.7694375", "0.75949746", "0.75888973", "0.75888973", "0.75888973", "0.75888973", "0.75888973", "0.75888973", "0.75888973", "0....
0.7988303
10
Creates an APISpecification for the given +set+ from the rubygems.org +api_data+. See for the format of the +api_data+.
def initialize(set, api_data) super() @set = set @name = api_data[:name] @version = Gem::Version.new(api_data[:number]).freeze @platform = Gem::Platform.new(api_data[:platform]).freeze @original_platform = api_data[:platform].freeze @dependencies = api_data[:dependencies].map do |name, ver|...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_ip_set_with_http_info(ip_set, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: GroupingObjectsApi.create_ip_set ...\"\n end\n # verify the required parameter 'ip_set' is set\n if @api_client.config.client_side_validation && ip_set.n...
[ "0.53804713", "0.52758783", "0.5159349", "0.5119869", "0.50808835", "0.5012378", "0.49694374", "0.49590838", "0.49470255", "0.48808038", "0.4819857", "0.48088273", "0.48024094", "0.47716814", "0.47650567", "0.4762879", "0.47608337", "0.47591323", "0.4739464", "0.4730278", "0....
0.67036086
0
Fetches a Gem::Specification for this APISpecification.
def spec # :nodoc: @spec ||= begin tuple = Gem::NameTuple.new @name, @version, @platform source.fetch_spec tuple rescue Gem::RemoteFetcher::FetchError raise if @original_platform == @platform tuple = Gem::NameTuple.new @name, @version, @original_platform source.f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fetch_specification(name, version)\n url = host + \"/quick/#{Configuration.marshal_identifier}\" \\\n \"/#{name}-#{version}.gemspec.rz\"\n\n http_get(url).body\n end", "def specification\n Gem::Specification.find_by_name(name, requirement)\n rescue Gem::LoadError\n nil\n ...
[ "0.73460263", "0.71192527", "0.6984019", "0.6644701", "0.6633734", "0.6614256", "0.63852525", "0.6362958", "0.61967784", "0.6173613", "0.61642593", "0.6127967", "0.61021245", "0.6067732", "0.6037629", "0.603191", "0.602947", "0.60079825", "0.59816056", "0.595205", "0.5907499"...
0.6628499
5
Installing a git gem only involves building the extensions and generating the executables.
def install(options = {}) require_relative '../installer' installer = Gem::Installer.for_spec spec, options yield installer if block_given? installer.run_pre_install_hooks installer.build_extensions installer.run_post_build_hooks installer.generate_bin installer.run_post_install_hooks...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def install_git_packages\n at_compile_time do\n package 'git'\n end\n end", "def install_git(nr)\n install_git_packages\n checkout_path = clone_git_repo(nr)\n install_gem(nr, checkout_path)\n end", "def install_git\n begin\n run_context.reso...
[ "0.7873228", "0.7808668", "0.774365", "0.76322484", "0.7461043", "0.7461043", "0.7391591", "0.7391591", "0.72154665", "0.70130426", "0.6996113", "0.69612366", "0.6572472", "0.6570378", "0.6547504", "0.65447026", "0.65118", "0.6491541", "0.6471963", "0.64581805", "0.6411061", ...
0.6092514
36