output dict | input dict | instruction stringclasses 2
values | smells_count int64 0 13 |
|---|---|---|---|
{
"cls": null,
"html": "<template> <div class='my-item'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const item = this.template.querySelector('.my-item'); } }",
"txt": null
} | {
"cls": null,
"html": "<template> <div class='my-item'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const item = document.querySelector('.my-item'); } }"
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template> <div class='my-item1'></div> <div class='my-item2'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const item1 = this.template.querySelector('.my-item1'); const item2 = this.template.... | {
"cls": null,
"html": "<template> <div class='my-item1'></div> <div class='my-item2'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const item1 = document.querySelector('.my-item1'); const item2 = document.querySelec... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 2 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <div class='my-item'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const item = this.template.querySelector('.my-item'); } }"
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": "<template> <div class='my-item'></div> <div class='my-item'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const items = this.template.querySelectorAll('.my-item'); items.forEach(item => item.c... | {
"cls": null,
"html": "<template> <div class='my-item'></div> <div class='my-item'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const items = document.querySelectorAll('.my-item'); for (let i = 0; i < items.length;... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template> <div class='my-item1'></div> <div class='my-item2'></div> <div id='item3'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const item1 = this.template.querySelector('.my-item1'); const... | {
"cls": null,
"html": "<template> <div class='my-item1'></div> <div class='my-item2'></div> <div id='item3'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const item1 = document.querySelector('.my-item1'); const item... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 3 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <div class='my-item'></div> <div class='my-item'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const items = this.template.querySelectorAll('.my-item'); items.forEach(item => item.c... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": "<template> <button id='submit'>Submit</button> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const button = this.template.querySelector('#submit'); } }",
"txt": null
} | {
"cls": null,
"html": "<template> <button id='submit'>Submit</button> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const button = document.getElementById('submit'); } }"
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template> <div class='header'></div> <div class='footer'></div> <div class='sidebar'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { renderedCallback() { const header = this.template.querySelector('.header'); ... | {
"cls": null,
"html": "<template> <div class='header'></div> <div class='footer'></div> <div class='sidebar'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { renderedCallback() { const header = document.querySelector('.header'); const... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 3 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <div class='header'></div> <div class='footer'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { renderedCallback() { const header = this.template.querySelector('.header'); const footer = this.template... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": "<template> <div class='item'></div> <div class='item'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { handleClick() { const items = this.template.querySelectorAll('.item'); items.forEach(item => { item.classLis... | {
"cls": null,
"html": "<template> <div class='item'></div> <div class='item'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { handleClick() { const items = document.querySelectorAll('.item'); items.forEach(item => { item.classList.add... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template> <button class='submit'>Submit</button> <form id='form'></form> <input type='text' /> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const button = this.template.querySelector('.submit... | {
"cls": null,
"html": "<template> <button class='submit'>Submit</button> <form id='form'></form> <input type='text' /> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const button = document.querySelector('.submit'); c... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 3 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <div class='item'></div> <div class='item'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { handleClick() { const items = this.template.querySelectorAll('.item'); items.forEach(item => { item.classLis... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": "<template> <div class='my-item'></div> <ul></ul> <button id='my-button'></button> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const item = this.template.querySelector('.my-item'); const list ... | {
"cls": null,
"html": "<template> <div class='my-item'></div> <ul></ul> <button id='my-button'></button> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const item = document.querySelector('.my-item'); const list = doc... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 3 |
{
"cls": null,
"html": "<template> <div class='footer'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { renderedCallback() { const footer = this.template.querySelector('.footer'); } }",
"txt": null
} | {
"cls": null,
"html": "<template> <div class='footer'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { renderedCallback() { const footer = document.querySelector('.footer'); } }"
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template> <div class='header'></div> <div class='nav'></div> <div class='footer'></div> <div id='sidebar'></div> <div class='content'></div> <a></a> <a></a> <div class='title'></div> <button class='button'></button> <button class='button'></button> </template>",
"js": "import { LightningE... | {
"cls": null,
"html": "<template> <div class='header'></div> <div class='nav'></div> <div class='footer'></div> <div id='sidebar'></div> <div class='content'></div> <a></a> <a></a> <div class='title'></div> <button class='button'></button> <button class='button'></button> </template>",
"js": "import { LightningE... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 8 |
{
"cls": null,
"html": "<template> <div class='dashboard-header'></div> <div id='sidebar'></div> <div class='widget'></div> <div class='widget'></div> <a class='nav-link'></a> <a class='nav-link'></a> <div class='search-box'></div> <div class='user-menu'></div> <div class='dashboard-footer'></div> <div class='dashb... | {
"cls": null,
"html": "<template> <div class='dashboard-header'></div> <div id='sidebar'></div> <div class='widget'></div> <div class='widget'></div> <a class='nav-link'></a> <a class='nav-link'></a> <div class='search-box'></div> <div class='user-menu'></div> <div class='dashboard-footer'></div> <div class='dashb... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 12 |
{
"cls": null,
"html": "<template> <div class='profile-pic'></div> <div id='user-name'></div> <div class='user-bio'></div> <div class='post'></div> <div class='post'></div> <div class='followers'></div> <div class='following'></div> <button class='settings-button'></button> <button class='logout-button'></button> <... | {
"cls": null,
"html": "<template> <div class='profile-pic'></div> <div id='user-name'></div> <div class='user-bio'></div> <div class='post'></div> <div class='post'></div> <div class='followers'></div> <div class='following'></div> <button class='settings-button'></button> <button class='logout-button'></button> <... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 13 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <div class='header'></div> <div class='footer'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const header = this.template.querySelector('.header'); const footer = this.templat... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <div class='title'></div> <button class='button'></button> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { renderedCallback() { const title = this.template.querySelector('.title'); const button = this.templ... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <div class='item'></div> <div class='item'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const items = this.template.querySelectorAll('.item'); items.forEach(item => { item.cl... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <div class='link'></div> <div class='link'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { renderedCallback() { const links = this.template.querySelectorAll('.link'); links.forEach(link => { link.add... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <button class='button'></button> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const button = this.template.querySelector('.button'); button.addEventListener('click', () => { alert('... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <div class='nav'></div> <div class='content'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { renderedCallback() { const nav = this.template.querySelector('.nav'); const content = this.template.queryS... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <div class='sidebar'></div> <div class='main-content'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const sidebar = this.template.querySelector('.sidebar'); const mainContent ... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <div class='footer'></div> <button class='button'></button> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { renderedCallback() { const footer = this.template.querySelector('.footer'); const button = this.te... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <div class='header'></div> <div class='title'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const header = this.template.querySelector('.header'); const title = this.template.... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <div class='modal'></div> <button class='close-button'></button> </template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { renderedCallback() { const modal = this.template.querySelector('.modal'); const closeButton =... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": "<template> <slot></slot> </template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slotContent = this.querySelector('slot'); console.log(slotContent); } }",
"txt": null
} | {
"cls": null,
"html": "<template> <slot></slot> </template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slotContent = document.querySelector('slot'); console.log(slotContent); } }"
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template> <slot></slot> <slot></slot> </template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slots = this.querySelectorAll('slot'); slots.forEach(slot => console.log(slot)); } }",
"txt": null
} | {
"cls": null,
"html": "<template> <slot></slot> <slot></slot> </template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slots = document.querySelectorAll('slot'); slots.forEach(slot => console.log(slot)); } }"
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template> <slot name='header'></slot> </template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slotContent = this.querySelector('slot[name=\"header\"]'); console.log(slotContent); } }",
"txt": nul... | {
"cls": null,
"html": "<template> <slot name='header'></slot> </template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slotContent = document.querySelector('slot[name=\"header\"]'); console.log(slotContent); } }"
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template> <slot></slot> <slot></slot> </template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slots = this.querySelectorAll('slot'); slots.forEach(slot => { const nodes = slot.assignedNodes(); node... | {
"cls": null,
"html": "<template> <slot></slot> <slot></slot> </template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slots = document.querySelectorAll('slot'); slots.forEach(slot => { const nodes = slot.assignedNodes(); ... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <slot></slot> </template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slot = this.querySelector('slot'); const nodes = slot.assignedNodes(); nodes.forEach(node => console.log(node)); } }"... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": "<template> <slot></slot> <slot></slot> </template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slots = this.querySelectorAll('slot'); slots.forEach(slot => { const nodes = slot.assignedNodes(); node... | {
"cls": null,
"html": "<template> <slot></slot> <slot></slot> </template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slots = document.querySelectorAll('slot'); slots.forEach(slot => { const nodes = slot.assignedNodes(); ... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template> <p></p> <p></p> </template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const paragraphs = this.template.getElementsByTagName('p'); Array.from(paragraphs).forEach(paragraph => paragraph.classLis... | {
"cls": null,
"html": "<template> <p></p> <p></p> </template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const paragraphs = document.getElementsByTagName('p'); for (let i = 0; i < paragraphs.length; i++) { paragraphs[i].classLi... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template> <div></div> <div></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const elements = this.template.getElementsByTagNameNS('http://www.w3.org/1999/xhtml', 'div'); Array.from(elements)... | {
"cls": null,
"html": "<template> <div></div> <div></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const elements = document.getElementsByTagNameNS('http://www.w3.org/1999/xhtml', 'div'); for (let i = 0; i < eleme... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template> <div class='item'></div> <div class='item'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const items = this.template.getElementsByClassName('item'); Array.from(items).forEach(it... | {
"cls": null,
"html": "<template> <div class='item'></div> <div class='item'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const items = document.getElementsByClassName('item'); for (let i = 0; i < items.length;... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template> <div id='header'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const header = this.template.querySelector('#header'); header.classList.add('visible'); } }",
"txt": null
} | {
"cls": null,
"html": "<template> <div id='header'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const header = document.getElementById('header'); header.classList.add('visible'); } }"
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template> <p></p> <p></p> <div class='item'></div> <div class='item'></div> <div id='unique'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const paragraphs = this.template.getElementsByTa... | {
"cls": null,
"html": "<template> <p></p> <p></p> <div class='item'></div> <div class='item'></div> <div id='unique'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const paragraphs = document.getElementsByTagName... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 3 |
{
"cls": null,
"html": "<template> <div></div> <div></div> <div class='item'></div> <div class='item'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const elements = this.template.getElementsByTagNameNS('http://ww... | {
"cls": null,
"html": "<template> <div></div> <div></div> <div class='item'></div> <div class='item'></div> </template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const elements = document.getElementsByTagNameNS('http://www.w3.... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 2 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template> <input type='text' /> <input type='text' /> </template>",
"js": "import { LightningElement, api } from 'lwc'; export default class TodoList extends LightningElement { filteredTodos = []; _todos = []; priorityFilter = false; @api get todos() { return this._todos; } set todos(valu... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": "<template><div id='header'></div><ul><li></li><li></li></ul><div class='link'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class ApexImperativeMethod extends LightningElement { contacts; error; async handleLoad() { try { this.contacts = await getContact... | {
"cls": null,
"html": "<template><div id='header'></div><ul><li></li><li></li></ul><div class='link'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class ApexImperativeMethod extends LightningElement { contacts; error; async handleLoad() { try { this.contacts = await getContact... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 6 |
{
"cls": null,
"html": "<template><div id='message'></div><div class='status'></div><div class='info'></div></template>",
"js": "import { LightningElement, api } from 'lwc'; export default class Clock extends LightningElement { timestamp = new Date(); @api refresh() { this.timestamp = new Date(); this.template.qu... | {
"cls": null,
"html": "<template><div id='message'></div><div class='status'></div><div class='info'></div></template>",
"js": "import { LightningElement, api } from 'lwc'; export default class Clock extends LightningElement { timestamp = new Date(); @api refresh() { this.timestamp = new Date(); document.querySe... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 4 |
{
"cls": null,
"html": "<template><div id='header'></div><ul><li></li><li></li></ul><div class='link'></div></template>",
"js": "import { LightningElement, api } from 'lwc'; export default class Clock extends LightningElement { timestamp = new Date(); @api refresh() { this.timestamp = new Date(); this.template.qu... | {
"cls": null,
"html": "<template><div id='header'></div><ul><li></li><li></li></ul><div class='link'></div></template>",
"js": "import { LightningElement, api } from 'lwc'; export default class Clock extends LightningElement { timestamp = new Date(); @api refresh() { this.timestamp = new Date(); document.querySe... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 7 |
{
"cls": null,
"html": "<template><slot></slot><slot></slot></template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slots = this.querySelectorAll('slot'); slots.forEach(slot => { const nodes = slot.assignedNodes(); nodes.f... | {
"cls": null,
"html": "<template><slot></slot><slot></slot></template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slots = document.querySelectorAll('slot'); slots.forEach(slot => { const nodes = slot.assignedNodes(); nod... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><div class='my-item'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const item = this.template.querySelector('.my-item'); } }",
"txt": null
} | {
"cls": null,
"html": "<template><div class='my-item'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const item = document.querySelector('.my-item'); } }"
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><div class='my-item1'></div><div class='my-item2'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const item1 = this.template.querySelector('.my-item1'); const item2 = this.template.que... | {
"cls": null,
"html": "<template><div class='my-item1'></div><div class='my-item2'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const item1 = document.querySelector('.my-item1'); const item2 = document.querySelector... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 2 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template><div class='my-item'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const item = this.template.querySelector('.my-item'); } }"
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": "<template><div class='my-item'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const items = this.template.querySelectorAll('.my-item'); for (let i = 0; i < items.length; i++) { items[i].classLis... | {
"cls": null,
"html": "<template><div class='my-item'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const items = document.querySelectorAll('.my-item'); for (let i = 0; i < items.length; i++) { items[i].classList.add... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><div class='my-item1'></div><div class='my-item2'></div><div id='item3'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const item1 = this.template.querySelector('.my-item1'); const ite... | {
"cls": null,
"html": "<template><div class='my-item1'></div><div class='my-item2'></div><div id='item3'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const item1 = document.querySelector('.my-item1'); const item2 = ... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 3 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template><div class='my-item'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyList extends LightningElement { renderedCallback() { const items = this.template.querySelectorAll('.my-item'); items.forEach(item => item.classList.add('active')); } }"
... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": "<template><button id='submit'></button></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const button = this.template.querySelector('#submit'); } }",
"txt": null
} | {
"cls": null,
"html": "<template><button id='submit'></button></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const button = document.getElementById('submit'); } }"
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><div class='header'></div><div class='footer'></div><div class='sidebar'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { renderedCallback() { const header = this.template.querySelector('.header'); cons... | {
"cls": null,
"html": "<template><div class='header'></div><div class='footer'></div><div class='sidebar'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { renderedCallback() { const header = document.querySelector('.header'); const foo... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 3 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": null,
"html": "<template><div class='header'></div><div class='footer'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { renderedCallback() { const header = this.template.querySelector('.header'); const footer = this.template.qu... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": "<template><div class='item'></div><div class='item'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { handleClick() { const items = this.template.querySelectorAll('.item'); items.forEach(item => { item.classList.a... | {
"cls": null,
"html": "<template><div class='item'></div><div class='item'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { handleClick() { const items = document.querySelectorAll('.item'); items.forEach(item => { item.classList.add('c... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><button class='submit'></button><form id='form'></form><input type='text'></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const button = this.template.querySelector('.submit'); const fo... | {
"cls": null,
"html": "<template><button class='submit'></button><form id='form'></form><input type='text'></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const button = document.querySelector('.submit'); const form = ... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 3 |
{
"cls": null,
"html": "<template><div class='my-item'></div><ul></ul><button id='my-button'></button></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const item = this.template.querySelector('.my-item'); const list = th... | {
"cls": null,
"html": "<template><div class='my-item'></div><ul></ul><button id='my-button'></button></template>",
"js": "import { LightningElement } from 'lwc'; export default class MyComponent extends LightningElement { connectedCallback() { const item = document.querySelector('.my-item'); const list = documen... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 3 |
{
"cls": null,
"html": "<template><slot></slot></template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slotContent = this.querySelector('slot'); console.log(slotContent); } }",
"txt": null
} | {
"cls": null,
"html": "<template><slot></slot></template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slotContent = document.querySelector('slot'); console.log(slotContent); } }"
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><slot></slot><slot></slot></template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slots = this.querySelectorAll('slot'); slots.forEach(slot => console.log(slot)); } }",
"txt": null
} | {
"cls": null,
"html": "<template><slot></slot><slot></slot></template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slots = document.querySelectorAll('slot'); slots.forEach(slot => console.log(slot)); } }"
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><slot name='header'></slot></template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slotContent = this.querySelector('slot[name=\"header\"]'); console.log(slotContent); } }",
"txt": null
... | {
"cls": null,
"html": "<template><slot name='header'></slot></template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slotContent = document.querySelector('slot[name=\"header\"]'); console.log(slotContent); } }"
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><slot></slot><slot></slot></template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slots = this.querySelectorAll('slot'); slots.forEach(slot => { const nodes = slot.assignedNodes(); nodes.f... | {
"cls": null,
"html": "<template><slot></slot><slot></slot></template>",
"js": "import { LightningElement } from 'lwc'; export default class SlotExample extends LightningElement { handleSlotChange() { const slots = document.querySelectorAll('slot'); slots.forEach(slot => { const nodes = slot.assignedNodes(); nod... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><p></p><p></p></template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const paragraphs = this.template.getElementsByTagName('p'); Array.from(paragraphs).forEach(paragraph => paragraph.classList.a... | {
"cls": null,
"html": "<template><p></p><p></p></template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const paragraphs = document.getElementsByTagName('p'); for (let i = 0; i < paragraphs.length; i++) { paragraphs[i].classList.... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><div></div><div></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const elements = this.template.getElementsByTagNameNS('http://www.w3.org/1999/xhtml', 'div'); Array.from(elements).fo... | {
"cls": null,
"html": "<template><div></div><div></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const elements = document.getElementsByTagNameNS('http://www.w3.org/1999/xhtml', 'div'); for (let i = 0; i < elements... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><div class='item'></div><div class='item'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const items = this.template.getElementsByClassName('item'); Array.from(items).forEach(item ... | {
"cls": null,
"html": "<template><div class='item'></div><div class='item'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const items = document.getElementsByClassName('item'); for (let i = 0; i < items.length; i+... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><div id='header'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const header = this.template.querySelector('#header'); header.classList.add('visible'); } }",
"txt": null
} | {
"cls": null,
"html": "<template><div id='header'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const header = document.getElementById('header'); header.classList.add('visible'); } }"
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><p></p><p></p><div class='item'></div><div class='item'></div><div id='unique'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const paragraphs = this.template.getElementsByTagName(... | {
"cls": null,
"html": "<template><p></p><p></p><div class='item'></div><div class='item'></div><div id='unique'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const paragraphs = document.getElementsByTagName('p');... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 3 |
{
"cls": null,
"html": "<template><div></div><div></div><div class='item'></div><div class='item'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const elements = this.template.getElementsByTagNameNS('http://www.w3.... | {
"cls": null,
"html": "<template><div></div><div></div><div class='item'></div><div class='item'></div></template>",
"js": "import { LightningElement } from 'lwc'; export default class ExampleComponent extends LightningElement { handleLoad() { const elements = document.getElementsByTagNameNS('http://www.w3.org/1... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 2 |
{
"cls": null,
"html": "<template><li></li><li></li></template>",
"js": "import { LightningElement, api } from 'lwc'; export default class TodoList extends LightningElement { filteredTodos = []; _todos = []; priorityFilter = false; @api get todos() { return this._todos; } set todos(value) { this._todos = value; t... | {
"cls": null,
"html": "<template><li></li><li></li></template>",
"js": "import { LightningElement, api } from 'lwc'; export default class TodoList extends LightningElement { filteredTodos = []; _todos = []; priorityFilter = false; @api get todos() { return this._todos; } set todos(value) { this._todos = value; t... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 2 |
{
"cls": null,
"html": "<template><svg></svg><svg></svg></template>",
"js": "import { LightningElement, wire } from 'lwc'; import { ShowToastEvent } from 'lightning/platformShowToastEvent'; import { createRecord, getRecordCreateDefaults, generateRecordInputForCreate } from 'lightning/uiRecordApi'; import { reduce... | {
"cls": null,
"html": "<template><svg></svg><svg></svg></template>",
"js": "import { LightningElement, wire } from 'lwc'; import { ShowToastEvent } from 'lightning/platformShowToastEvent'; import { createRecord, getRecordCreateDefaults, generateRecordInputForCreate } from 'lightning/uiRecordApi'; import { reduce... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><li></li><li></li><div class='alert'></div></template>",
"js": "import { LightningElement, api } from 'lwc'; export default class TodoList extends LightningElement { filteredTodos = []; _todos = []; priorityFilter = false; @api get todos() { return this._todos; } set todos(value)... | {
"cls": null,
"html": "<template><li></li><li></li><div class='alert'></div></template>",
"js": "import { LightningElement, api } from 'lwc'; export default class TodoList extends LightningElement { filteredTodos = []; _todos = []; priorityFilter = false; @api get todos() { return this._todos; } set todos(value)... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><div id='status'></div></template>",
"js": "import { LightningElement } from 'lwc'; import LightningAlert from 'lightning/alert'; import LightningConfirm from 'lightning/confirm'; import LightningPrompt from 'lightning/prompt'; export default class MiscNotificationModules extends... | {
"cls": null,
"html": "<template><div id='status'></div></template>",
"js": "import { LightningElement } from 'lwc'; import LightningAlert from 'lightning/alert'; import LightningConfirm from 'lightning/confirm'; import LightningPrompt from 'lightning/prompt'; export default class MiscNotificationModules extends... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": "<template><div id='header'></div><svg></svg></template>",
"js": "import { LightningElement } from 'lwc'; export default class MiscDomQuery extends LightningElement { handleDomQuery() { const svgs = this.template.getElementsByTagNameNS('http://www.w3.org/2000/svg', 'svg'); const header = th... | {
"cls": null,
"html": "<template><div id='header'></div><svg></svg></template>",
"js": "import { LightningElement } from 'lwc'; export default class MiscDomQuery extends LightningElement { handleDomQuery() { const svgs = document.getElementsByTagNameNS('http://www.w3.org/2000/svg', 'svg'); const header = documen... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 2 |
{
"cls": "public class Customer {public String Name { get; set; } public String Email { get; set; } public override Boolean equals(Object obj) {if (this === obj) return true;if (obj == null || !(obj instanceof Customer)) return false;Customer other = (Customer) obj; return this.Name == other.Name && this.Email == oth... | {
"cls": "public class Customer {public String Name { get; set; } public String Email { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Customer) {Customer other = (Customer) obj; return this.Name == other.Name && this.Email == other.Email;} return false;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Product {public String ProductCode { get; set; } public Decimal Price { get; set; } public override Boolean equals(Object obj) {if (this === obj) return true;if (obj == null || !(obj instanceof Product)) return false;Product other = (Product) obj; return this.ProductCode == other.ProductCode &&... | {
"cls": "public class Product {public String ProductCode { get; set; } public Decimal Price { get; set; } public override Integer hashCode() {return (ProductCode != null ? ProductCode.hashCode() : 0) ^ Price.hashCode();}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Order {public String OrderId { get; set; } public Date OrderDate { get; set; } public override Boolean equals(Object obj) {if (this === obj) return true;if (obj == null || !(obj instanceof Order)) return false;Order other = (Order) obj; return this.OrderId == other.OrderId;} public override Int... | {
"cls": "public class Order {public String OrderId { get; set; } public Date OrderDate { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Order) {Order other = (Order) obj; return this.OrderId == other.OrderId;} return false;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Invoice {public String InvoiceNumber { get; set; } public Decimal Amount { get; set; } public override Boolean equals(Object obj) {if (this === obj) return true;if (obj == null || !(obj instanceof Invoice)) return false;Invoice other = (Invoice) obj; return this.InvoiceNumber == other.InvoiceNu... | {
"cls": "public class Invoice {public String InvoiceNumber { get; set; } public Decimal Amount { get; set; } public override Integer hashCode() {return (InvoiceNumber != null ? InvoiceNumber.hashCode() : 0) ^ Amount.hashCode();}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Address {public String Street { get; set; } public String City { get; set; } public override Boolean equals(Object obj) {if (this === obj) return true;if (obj == null || !(obj instanceof Address)) return false;Address other = (Address) obj; return this.Street == other.Street && this.City == oth... | {
"cls": "public class Address {public String Street { get; set; } public String City { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Address) {Address other = (Address) obj; return this.Street == other.Street && this.City == other.City;} return false;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Employee {public String EmployeeId { get; set; } public String Department { get; set; } public override Boolean equals(Object obj) {if (this === obj) return true;if (obj == null || !(obj instanceof Employee)) return false;Employee other = (Employee) obj; return this.EmployeeId == other.Employee... | {
"cls": "public class Employee {public String EmployeeId { get; set; } public String Department { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Employee) {Employee other = (Employee) obj; return this.EmployeeId == other.EmployeeId;} return false;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Task {public String TaskId { get; set; } public Date DueDate { get; set; } public override Boolean equals(Object obj) {if (this === obj) return true;if (obj == null || !(obj instanceof Task)) return false;Task other = (Task) obj; return this.TaskId == other.TaskId;} public override Integer hash... | {
"cls": "public class Task {public String TaskId { get; set; } public Date DueDate { get; set; } public override Integer hashCode() {return TaskId != null ? TaskId.hashCode() : 0;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Project {public String ProjectId { get; set; } public String ProjectName { get; set; } public override Boolean equals(Object obj) {if (this === obj) return true;if (obj == null || !(obj instanceof Project)) return false;Project other = (Project) obj; return this.ProjectId == other.ProjectId;} p... | {
"cls": "public class Project {public String ProjectId { get; set; } public String ProjectName { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Project) {Project other = (Project) obj; return this.ProjectId == other.ProjectId;} return false;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Asset {public String AssetId { get; set; } public String AssetType { get; set; } public override Boolean equals(Object obj) {if (this === obj) return true;if (obj == null || !(obj instanceof Asset)) return false;Asset other = (Asset) obj; return this.AssetId == other.AssetId;} public override I... | {
"cls": "public class Asset {public String AssetId { get; set; } public String AssetType { get; set; } public override Integer hashCode() {return AssetId != null ? AssetId.hashCode() : 0;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Schedule {public String ScheduleId { get; set; } public Date StartDate { get; set; } public override Boolean equals(Object obj) {if (this === obj) return true;if (obj == null || !(obj instanceof Schedule)) return false;Schedule other = (Schedule) obj; return this.ScheduleId == other.ScheduleId;... | {
"cls": "public class Schedule {public String ScheduleId { get; set; } public Date StartDate { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Schedule) {Schedule other = (Schedule) obj; return this.ScheduleId == other.ScheduleId;} return false;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Account {public String AccountId{ get; set; } public String AccountName { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Account) {Account other = (Account) obj; return this.AccountId == other.AccountId;} return false;} public override Integer hashCode() {return Acco... | {
"cls": "public class Account {public String AccountId { get; set; } public String AccountName { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Account) {Account other = (Account) obj; return this.AccountId == other.AccountId;} return false;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Contact {public String ContactId { get; set; } public String PhoneNumber { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Contact) {Contact other = (Contact) obj; return this.ContactId == other.ContactId;} return false;} public override Integer hashCode() {return Con... | {
"cls": "public class Contact {public String ContactId { get; set; } public String PhoneNumber { get; set; } public override Integer hashCode() {return ContactId != null ? ContactId.hashCode() : 0;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Event {public String EventId { get; set; } public Date EventDate { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Event) {Event other = (Event) obj; return this.EventId == other.EventId;} return false;} public override Integer hashCode() {return EventId != null ? Eve... | {
"cls": "public class Event {public String EventId { get; set; } public Date EventDate { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Event) {Event other = (Event) obj; return this.EventId == other.EventId;} return false;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Location {public String LocationId { get; set; } public String Address { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Location) {Location other = (Location) obj; return this.LocationId == other.LocationId;} return false;} public override Integer hashCode() {return ... | {
"cls": "public class Location {public String LocationId { get; set; } public String Address { get; set; } public override Integer hashCode() {return LocationId != null ? LocationId.hashCode() : 0;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Item {public String ItemId { get; set; } public String Description { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Item) {Item other = (Item) obj; return this.ItemId == other.ItemId;} return false;} public override Integer hashCode() {return ItemId != null ? ItemId.... | {
"cls": "public class Item {public String ItemId { get; set; } public String Description { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Item) {Item other = (Item) obj; return this.ItemId == other.ItemId;} return false;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Vendor {public String VendorId { get; set; } public String VendorName { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Vendor) {Vendor other = (Vendor) obj; return this.VendorId == other.VendorId;} return false;} public override Integer hashCode() {return VendorId !=... | {
"cls": "public class Vendor {public String VendorId { get; set; } public String VendorName { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Vendor) {Vendor other = (Vendor) obj; return this.VendorId == other.VendorId;} return false;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Shipment {public String ShipmentId { get; set; } public Date ShipDate { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Shipment) {Shipment other = (Shipment) obj; return this.ShipmentId == other.ShipmentId;} return false;} public override Integer hashCode() {return S... | {
"cls": "public class Shipment {public String ShipmentId { get; set; } public Date ShipDate { get; set; } public override Integer hashCode() {return ShipmentId != null ? ShipmentId.hashCode() : 0;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Contract {public String ContractId { get; set; } public Date StartDate { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Contract) {Contract other = (Contract) obj; return this.ContractId == other.ContractId;} return false;} public override Integer hashCode() {return ... | {
"cls": "public class Contract {public String ContractId { get; set; } public Date StartDate { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Contract) {Contract other = (Contract) obj; return this.ContractId == other.ContractId;} return false;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": "public class Subscription {public String SubscriptionId { get; set; } public String Plan { get; set; } public override Boolean equals(Object obj) {if (obj instanceof Subscription) {Subscription other = (Subscription) obj; return this.SubscriptionId == other.SubscriptionId;} return false;} public override In... | {
"cls": "public class Subscription {public String SubscriptionId { get; set; } public String Plan { get; set; } public override Integer hashCode() {return SubscriptionId != null ? SubscriptionId.hashCode() : 0;}}",
"html": null,
"js": null
} | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 1 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": "public class OrderDetail {public String orderId { get; set; } public String productCode { get; set; } public OrderDetail(String orderId, String productCode) {this.orderId = orderId; this.productCode = productCode;} public Boolean equals(Object obj) {if (this == obj) return true;if (obj == null || getClass()... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": "public class BookRecord {public String isbn { get; set; } public String title { get; set; } public BookRecord(String isbn, String title) {this.isbn = isbn; this.title = title;} public Boolean equals(Object obj) {if (this == obj) return true;if (obj == null || getClass() != obj.getClass()) return false;BookR... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": "public class Vehicle {public String vin { get; set; } public String model { get; set; } public Vehicle(String vin, String model) {this.vin = vin; this.model = model;} public Boolean equals(Object obj) {if (this == obj) return true;if (obj == null || getClass() != obj.getClass()) return false;Vehicle other =... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": "public class MusicTrack {public String trackId { get; set; } public String artist { get; set; } public MusicTrack(String trackId, String artist) {this.trackId = trackId; this.artist = artist;} public Boolean equals(Object obj) {if (this == obj) return true;if (obj == null || getClass() != obj.getClass()) re... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": "public class MovieRecord {public String movieId { get; set; } public String director { get; set; } public MovieRecord(String movieId, String director) {this.movieId = movieId; this.director = director;} public Boolean equals(Object obj) {if (this == obj) return true;if (obj == null || getClass() != obj.getC... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": "public class UserAccount {public String accountId { get; set; } public String username { get; set; } public UserAccount(String accountId, String username) {this.accountId = accountId; this.username = username;} public Boolean equals(Object obj) {if (this == obj) return true;if (obj == null || getClass() != ... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": "public class EventDetail {public String eventId { get; set; } public String location { get; set; } public EventDetail(String eventId, String location) {this.eventId = eventId; this.location = location;} public Boolean equals(Object obj) {if (this == obj) return true;if (obj == null || getClass() != obj.getC... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": "public class SubscriptionPlan {public String planId { get; set; } public String planName { get; set; } public SubscriptionPlan(String planId, String planName) {this.planId = planId; this.planName = planName;} public Boolean equals(Object obj) {if (this == obj) return true;if (obj == null || getClass() != ob... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": "public class InsurancePolicy {public String policyNumber { get; set; } public String policyHolder { get; set; } public InsurancePolicy(String policyNumber, String policyHolder) {this.policyNumber = policyNumber; this.policyHolder = policyHolder;} public Boolean equals(Object obj) {if (this == obj) return tr... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
{
"cls": null,
"html": null,
"js": null,
"txt": "No changes needed."
} | {
"cls": "public class Artwork {public String artworkId { get; set; } public String artistName { get; set; } public Artwork(String artworkId, String artistName) {this.artworkId = artworkId; this.artistName = artistName;} public Boolean equals(Object obj) {if (this == obj) return true;if (obj == null || getClass() != ... | Evaluate the Salesforce project code (Apex, JavaScript, HTML) for these smells and refactor: 1) DML operations (including Database methods) in loops, 2) database queries (SOQL/SOSL, static and dynamic) in loops, 3) missing hashCode() when equals() is present and vice versa, 4) direct DOM manipulation in LWC, specifical... | 0 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3