<commit_before>{% extends "base.html" %}

{% block title %}:: Search blueprint{% endblock %}


{% block js %}
{% set pref = current_user.pref %}
    <script>
        lb.urls.manufacturingUrl    = "{{ url_for('blueprint.manufacturing', item_id='111111') }}";
        lb.urls.buildCostUrl        = "{{ url_for('ajax_eve_sde.build_cost_item', material_efficiency='0,1,2,3,4,5', blueprint_id=invention_products[0].product_id, region_id=10000002) }}";

        {{ blueprint.item_id }}
        inventionBlueprint.options.inventionBaseCost = {{ invention_base_cost }};
        inventionBlueprint.options.copyBaseCost = {{ copy_base_cost }};
        inventionBlueprint.options.baseCopyTime = {% if activity_copy is not none %}{{ activity_copy.time }}{% else %}0{% endif %};
        inventionBlueprint.options.baseInventionTime = {{ activity_invention.time }};
        inventionBlueprint.options.baseInventionProbability = {{ invention_products[0].probability }};
        inventionBlueprint.options.baseOutputRun = {{ invention_products[0].quantity }};
        inventionBlueprint.options.copyImplant = {{ pref.invention_copy_implant }};

        inventionBlueprint.indexes['{{ pref.invention_system|lower }}'] = {};
        {% for activity, index in index_list.items() -%}
        inventionBlueprint.indexes['{{ pref.invention_system|lower }}'][{{ activity }}] = {{ index }};
        {% endfor %}

        {% for inv_mat in invention_materials %}
        inventionBlueprint.matData.idList.push({{ inv_mat.material_id }});
        inventionBlueprint.matData.materials[{{ inv_mat.material_id }}] = {
            quantity: {{ inv_mat.quantity }},
            id: {{ inv_mat.material_id }},
            name: '{{ inv_mat.material.name }}',
        }
        {% endfor -%}
        {%- if blueprint.is_ancient_relic() %}
        inventionBlueprint.matData.idList.push({{ blueprint.id }});
        inventionBlueprint.matData.materials[{{ blueprint.id }}] = {
            quantity: 1,
            id: {{ blueprint.id }},
            name: '{{ blueprint.name }}',
        }
        {% endif %}

        {% for decryptor in decryptors %}
        inventionBlueprint.decryptorData.idList.push({{ decryptor.item_id }});
        inventionBlueprint.decryptorData.items[{{ decryptor.item_id }}] = {
            id: {{ decryptor.item_id }},
            name: '{{ decryptor.item.name }}',
            probability: {{ decryptor.probability_multiplier }},
            me: {{ decryptor.material_modifier }},
            te: {{ decryptor.time_modifier }},
            run: {{ decryptor.run_modifier }},
        };
        {% endfor %}

        inventionBlueprint.options.system = '{{ pref.invention_system|lower }}';
        inventionBlueprint.options.region = {{ pref.invention_price_region }};
        inventionBlueprint.options.regionType = '{{ pref.invention_price_type }}';
        inventionBlueprint.options.structureInventionRig = {{ pref.invention_invention_rig }};
        inventionBlueprint.options.structureCopyRig = {{ pref.invention_copy_rig }};
        inventionBlueprint.options.structureSecStatus = '{{ pref.invention_security }}';
        inventionBlueprint.options.facility = {{ pref.invention_facility }};

        {% for skill in datacore_skills %}
        inventionBlueprint.options.datacoreLevel{{loop.index}} = {{ skill.level }};
        {%- endfor %}
        inventionBlueprint.options.encryptionLevel = {{ encryption_skill.level }};
        inventionBlueprint.options.advancedIndustryLevel = {{ industry_skills['adv_industry'] }};
        inventionBlueprint.options.scienceLevel = {{ industry_skills['science'] }};

        lb.run('inventionBlueprint');
    </script>
{% endblock %}

{% block content %}
{% set pref = current_user.pref %}
<div class="row">
    <div class="col-md-3 col-sm-4">
        <div class="card bg-light mb-3">
            <div class="card-body">
                Facility<br>
                <div class="mt-1">
                    <select name="facility" id="facility" class="form-control form-control-sm">
                        <option value="0" {% if pref.invention_facility == 0 -%}selected{%- endif %}>Station</option>
                        <option value="1" {% if pref.invention_facility == 1 -%}selected{%- endif %}>Raitaru (M-EC)</option>
                        <option value="2" {% if pref.invention_facility == 2 -%}selected{%- endif %}>Azbel (L-EC)</option>
                        <option value="3" {% if pref.invention_facility == 3 -%}selected{%- endif %}>Sotiyo (XL-EC)</option>
                        <option value="4" {% if pref.invention_facility == 4 -%}selected{%- endif %}>Other Structures</option>
                    </select>
                </div>
                <div class="structure-configs mt-3" style="{% if not pref.is_structure(pref.invention_facility) -%}display: none;{%- endif %}">
                    Invention Time Rigs<br>
                    <div class="btn-group btn-group-toggle w-100 mt-1" id="structure-invention-rig" data-toggle="buttons">
                        <label class="col btn btn-sm btn-secondary {% if pref.invention_invention_rig == 0 -%}active{%- endif %}"><commit_msg>remove semicolon, remove dead code / formatting<commit_after>{% extends "base.html" %}

{% block title %}:: Search blueprint{% endblock %}


{% block js %}
{% set pref = current_user.pref %}
    <script>
        lb.urls.manufacturingUrl    = "{{ url_for('blueprint.manufacturing', item_id='111111') }}"
        lb.urls.buildCostUrl        = "{{ url_for('ajax_eve_sde.build_cost_item', material_efficiency='0,1,2,3,4,5', blueprint_id=invention_products[0].product_id, region_id=10000002) }}"

        inventionBlueprint.options.inventionBaseCost = {{ invention_base_cost }}
        inventionBlueprint.options.copyBaseCost = {{ copy_base_cost }}
        inventionBlueprint.options.baseCopyTime = {% if activity_copy is not none %}{{ activity_copy.time }}{% else %}0{% endif %}
        inventionBlueprint.options.baseInventionTime = {{ activity_invention.time }}
        inventionBlueprint.options.baseInventionProbability = {{ invention_products[0].probability }}
        inventionBlueprint.options.baseOutputRun = {{ invention_products[0].quantity }}
        inventionBlueprint.options.copyImplant = {{ pref.invention_copy_implant }}

        inventionBlueprint.indexes['{{ pref.invention_system|lower }}'] = {}
        {% for activity, index in index_list.items() -%}
        inventionBlueprint.indexes['{{ pref.invention_system|lower }}'][{{ activity }}] = {{ index }}
        {% endfor %}

        {% for inv_mat in invention_materials -%}
        inventionBlueprint.matData.idList.push({{ inv_mat.material_id }})
        inventionBlueprint.matData.materials[{{ inv_mat.material_id }}] = {
            quantity: {{ inv_mat.quantity }},
            id: {{ inv_mat.material_id }},
            name: '{{ inv_mat.material.name }}',
        }
        {% endfor -%}
        {%- if blueprint.is_ancient_relic() %}
        inventionBlueprint.matData.idList.push({{ blueprint.id }})
        inventionBlueprint.matData.materials[{{ blueprint.id }}] = {
            quantity: 1,
            id: {{ blueprint.id }},
            name: '{{ blueprint.name }}',
        }
        {% endif -%}

        {%- for decryptor in decryptors -%}
        inventionBlueprint.decryptorData.idList.push({{ decryptor.item_id }})
        inventionBlueprint.decryptorData.items[{{ decryptor.item_id }}] = {
            id: {{ decryptor.item_id }},
            name: '{{ decryptor.item.name }}',
            probability: {{ decryptor.probability_multiplier }},
            me: {{ decryptor.material_modifier }},
            te: {{ decryptor.time_modifier }},
            run: {{ decryptor.run_modifier }},
        }
        {% endfor -%}

        inventionBlueprint.options.system = '{{ pref.invention_system|lower }}'
        inventionBlueprint.options.region = {{ pref.invention_price_region }}
        inventionBlueprint.options.regionType = '{{ pref.invention_price_type }}'
        inventionBlueprint.options.structureInventionRig = {{ pref.invention_invention_rig }}
        inventionBlueprint.options.structureCopyRig = {{ pref.invention_copy_rig }}
        inventionBlueprint.options.structureSecStatus = '{{ pref.invention_security }}'
        inventionBlueprint.options.facility = {{ pref.invention_facility }}

        {% for skill in datacore_skills -%}
        inventionBlueprint.options.datacoreLevel{{loop.index}} = {{ skill.level }}
        {% endfor -%}
        inventionBlueprint.options.encryptionLevel = {{ encryption_skill.level }}
        inventionBlueprint.options.advancedIndustryLevel = {{ industry_skills['adv_industry'] }}
        inventionBlueprint.options.scienceLevel = {{ industry_skills['science'] }}

        lb.run('inventionBlueprint')
    </script>
{% endblock %}

{% block content %}
{% set pref = current_user.pref %}
<div class="row">
    <div class="col-md-3 col-sm-4">
        <div class="card bg-light mb-3">
            <div class="card-body">
                Facility<br>
                <div class="mt-1">
                    <select name="facility" id="facility" class="form-control form-control-sm">
                        <option value="0" {% if pref.invention_facility == 0 -%}selected{%- endif %}>Station</option>
                        <option value="1" {% if pref.invention_facility == 1 -%}selected{%- endif %}>Raitaru (M-EC)</option>
                        <option value="2" {% if pref.invention_facility == 2 -%}selected{%- endif %}>Azbel (L-EC)</option>
                        <option value="3" {% if pref.invention_facility == 3 -%}selected{%- endif %}>Sotiyo (XL-EC)</option>
                        <option value="4" {% if pref.invention_facility == 4 -%}selected{%- endif %}>Other Structures</option>
                    </select>
                </div>
                <div class="structure-configs mt-3" style="{% if not pref.is_structure(pref.invention_facility) -%}display: none;{%- endif %}">
                    Invention Time Rigs<br>
                    <div class="btn-group btn-group-toggle w-100 mt-1" id="structure-invention-rig" data-toggle="buttons">
                        <label class="col btn btn-sm btn-secondary {% if pref.invention_invention_rig == 0 -%}active{%- endif %}">
{'fraction_non_alphanumeric': 0.1506276150627615, 'fraction_numerical': 0.008757419480393111, 'mean_word_length': 2.7051189617880316, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '2488329', 'n_tokens_mistral': 3207, 'n_tokens_neox': 3084, 'n_words': 476}