<commit_before>require "spec_helper"

describe GraphsController do
  describe "routing" do

    it "routes to #tree_graph" do
      get("/tree_graph").should route_to("graphs#tree_graph")
    end

    it "routes to #view_graph" do
      get("/view_graph/path").should route_to("graphs#view_graph", :path => "path")
    end

    it "routes to #setup_graph" do
      get("/setup_graph/path").should route_to("graphs#setup_graph", :path => "path")
    end

    it "routes to #list_graphh" do
      get("/list_graph").should route_to("graphs#list_graph")
      get("/list_graph/path").should route_to("graphs#list_graph", :path => "path")
    end

    it "routes to #tag_graphh" do
      get("/tag_graph").should route_to("graphs#tag_graph")
      get("/tag_graph/tag_list").should route_to("graphs#tag_graph", :tag_list => "tag_list")
      delete("/tag_graph/tag_list").should route_to("graphs#delete_tag_graph", :tag_list => "tag_list")
    end

    it "routes to #autocomplete_graph" do
      get("/autocomplete_graph").should route_to("graphs#autocomplete_graph")<commit_msg>Fix typo<commit_after>require "spec_helper"

describe GraphsController do
  describe "routing" do

    it "routes to #tree_graph" do
      get("/tree_graph").should route_to("graphs#tree_graph")
    end

    it "routes to #view_graph" do
      get("/view_graph/path").should route_to("graphs#view_graph", :path => "path")
    end

    it "routes to #setup_graph" do
      get("/setup_graph/path").should route_to("graphs#setup_graph", :path => "path")
    end

    it "routes to #list_graph" do
      get("/list_graph").should route_to("graphs#list_graph")
      get("/list_graph/path").should route_to("graphs#list_graph", :path => "path")
    end

    it "routes to #tag_graph" do
      get("/tag_graph").should route_to("graphs#tag_graph")
      get("/tag_graph/tag_list").should route_to("graphs#tag_graph", :tag_list => "tag_list")
      delete("/tag_graph/tag_list").should route_to("graphs#delete_tag_graph", :tag_list => "tag_list")
    end

    it "routes to #autocomplete_graph" do
      get("/autocomplete_graph").should route_to("graphs#autocomplete_graph")
{'fraction_non_alphanumeric': 0.14825174825174825, 'fraction_numerical': 0.0, 'mean_word_length': 4.20873786407767, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7539661', 'n_tokens_mistral': 729, 'n_tokens_neox': 704, 'n_words': 142}