<commit_before>class Admin::ComputeSitesController < ApplicationController
  load_and_authorize_resource :compute_site

  # GET /compute_sites
  def index
  end

  # GET /compute_sites/1
  def show
  end

  # GET /compute_sites/new
  def new
  end

  # GET /compute_sites/1/edit
  def edit
  end

  # POST /compute_sites
  def create
    if @compute_site.save
      redirect_to admin_compute_sites_url(@compute_site), notice: 'Compute site was successfully created.'
    else
      render action: 'new'
    end
  end

  # PATCH/PUT /compute_sites/1
  def update
    if @compute_site.update(compute_site_params)
      redirect_to admin_compute_sites_url(@compute_site), notice: 'Compute site was successfully updated.'
    else
      render action: 'edit'
    end
  end

  # DELETE /compute_sites/1
  def destroy
    @compute_site.destroy
    redirect_to admin_compute_sites_url, notice: 'Compute site was successfully destroyed.'
  end

  private
    # Only allow a trusted parameter "white list" through.
    def compute_site_params
      params.require(:compute_site).permit(:site_id, :name, :location, :site_type, :technology, :config)
    end

end
<commit_msg>#37 allow to update proxy url<commit_after>class Admin::ComputeSitesController < ApplicationController
  load_and_authorize_resource :compute_site

  # GET /compute_sites
  def index
  end

  # GET /compute_sites/1
  def show
  end

  # GET /compute_sites/new
  def new
  end

  # GET /compute_sites/1/edit
  def edit
  end

  # POST /compute_sites
  def create
    if @compute_site.save
      redirect_to admin_compute_sites_url(@compute_site), notice: 'Compute site was successfully created.'
    else
      render action: 'new'
    end
  end

  # PATCH/PUT /compute_sites/1
  def update
    if @compute_site.update(compute_site_params)
      redirect_to admin_compute_sites_url(@compute_site), notice: 'Compute site was successfully updated.'
    else
      render action: 'edit'
    end
  end

  # DELETE /compute_sites/1
  def destroy
    @compute_site.destroy
    redirect_to admin_compute_sites_url, notice: 'Compute site was successfully destroyed.'
  end

  private
    # Only allow a trusted parameter "white list" through.
    def compute_site_params
      params.require(:compute_site).permit(:site_id, :name, :location, :site_type, :technology, :config, :http_proxy_url, :https_proxy_url)
    end

end

{'fraction_non_alphanumeric': 0.0735603194619588, 'fraction_numerical': 0.004203446826397646, 'mean_word_length': 3.5247148288973382, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '669036', 'n_tokens_mistral': 770, 'n_tokens_neox': 736, 'n_words': 203}