CoolFace
Datasetpublic

SALT-NLP/Design2Code

This dataset consists of 484 webpages from the C4 validation set, serving the purpose of testing multimodal LLMs on converting visual designs into code implementations. Each example is a pair of source HTML and screenshot ({id}.html and {id}.png). See the dataset in the huggingface format here. Note that all images in these webpages are replaced by a placeholder image (rick.jpg) Please refer to our project page and our paper for more information. Example Usage For example, you… See the full description on the dataset page: https://huggingface.co/datasets/SALT-NLP/Design2Code.

sourceHugging Faceodc-byupdated 3y agoView on Hugging Face
22likes1.8kdownloads
8723.html704 linesDownload Raw Back to root
1<!DOCTYPE html>2<html lang="en">3 <head>4  <style>5   @charset "utf-8";6body,td,th {7	font-family: Arial, Helvetica, sans-serif;8	font-size: 16px;9	font-weight:600;10	color: #4e5052;11	background-color: #FFF;12}13/* ~~ Element/tag selectors ~~ */14ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */15	padding: 0;16	margin: 0;17}18h1 {19	font-family: Arial, Helvetica, sans-serif;20	font-size: 20px;21	font-weight:bold;22	color:#4e5052;23}24h1.title { 25        font-family: Arial, Helvetica, sans-serif;26        font-size:18px;27        color: #333333;28        padding-top: 1em;29}30 31h1.km { 32        font-family: Arial, Helvetica, sans-serif;33        font-size:120%;34        color: #333333;35        padding-top: 1em;36}37 38h2 {39	font-family: Arial, Helvetica, sans-serif;40	font-size: 20px;41	font-weight:bold;42	text-transform: uppercase;43}44h2.km {45        font-family: Arial, Helvetica, sans-serif;46        color: #333333;47        border-bottom-width: 1px;48        border-bottom-style: solid;49        border-bottom-color: #c4d1e6;50        padding-top: 0.5em;51        font-size: 125%;             /* Bug 16297496 */ 52        background-color: #777773;   /* Bug 16297496 */ 53        color: #FFFFFF;              /* Bug 16297496 */ 54        text-transform: uppercase;   /* Bug 16297496 */ 55        padding-top: 6px;            /* Bug 16297496 */ 56        padding-bottom: 6px;         /* Bug 16297496 */ 57        padding-left: 8px;           /* Bug 16297496 */58}59h3 {60	font-family: Arial, Helvetica, sans-serif;61	font-size: 16px;62	font-weight:bold;63	color: #4e5052;64}65h3.km {66        font-family: Arial, Helvetica, sans-serif;67        font-size:16px;68        font-weight: bold;69        color: #333333;70        padding-top: 0.5em;71}72h4.km {73        font-family: Arial, Helvetica, sans-serif;74        font-size:101%;75        font-weight: bold;76        font-style:italic;77        color: #000088;78        padding-top: 0.5em;79}80 81/* H5 set to Slate Grey, Italics  */82 83h5.km {84        font-family: Arial, Helvetica, sans-serif;85        font-size:101%;86        font-weight: bold;87        font-style:italic;88        color: #666666;89        padding-top: 0.5em;90}91 92 93table.km {94        border-top-width: 1px;95        border-left-width: 1px;96        border-top-style: solid;97        border-left-style: solid;98        border-top-color: #c4d1e6;99        border-left-color: #c4d1e6;100}101td.km {102        border-right-width: 1px;103        border-bottom-width: 1px;104        border-right-style: solid;105        border-bottom-style: solid;106        border-right-color: #c4d1e6;107        border-bottom-color: #c4d1e6;108        padding: 4px;109        vertical-align: top110}111th.km {112        border-right-width: 1px;113        border-bottom-width: 1px;114        border-right-style: solid;115        border-bottom-style: solid;116        border-right-color: #c4d1e6;117        border-bottom-color: #c4d1e6;118        padding: 4px;119        background-color: #dee6ef;120        font-weight: bold;121        text-align: left;122        vertical-align: top123}124.kmnotebox {125        background-color: #FEFCEE;126        border: 2px solid #c1a90d;        127        padding: 10px;128        border: 0px;                /* Bug 16297496 */ 129        background-color: #FFF9D7;  /* Bug 16297496 */ 130        border: 1px solid #c1a90d;  /* Bug 16297496 */131}132.kmhidetext{133        font-family: Arial, Helvetica, sans-serif;134        font-size:103%;135        color: #333333;136}137pre.km, code.km {138        font-family:"Courier New",Courier,monospace;139        font-size:90%;140        white-space: -moz-pre-wrap; /* Mozilla */141        white-space: -pre-wrap; /* Opera */142        white-space: -o-pre-wrap; /* Opera */143        white-space: pre-wrap; /* Standard CSS3 */144        word-wrap: break-word; /* IE 5.5+ */ 145}146div.kmcodeblock {147        background-color:#EEF3F7;148        overflow:auto;149        border-width:1px;150        border-style:solid;151        border-color:#C4D1E6;152        padding:0.5em;153        margin:0px;margin-top:5px; 154        font-family:"Courier New",Courier,monospace;155        font-size:90%;156        xborder-width:0px;           /* Bug 16297496 */ 157    	background-color: #E0EAF1;   /* Bug 16297496 */158}159div.kmindent1 {160        display: block;161        padding-left: 40px;162}163div.kmindent2 {164        display: block;165        padding-left: 80px;166}167span.kmfixedwidthfont {168        font-family:"Courier New",Courier,monospace;169}170h2.awiz {171        font-family: Arial, Helvetica, sans-serif;172        font-size:105%;173        color: #333333;174        border-bottom-width: 1px;175        border-bottom-style: solid;176        border-bottom-color: #c4d1e6;177}178h3.awiz {179        font-family: Arial, Helvetica, sans-serif;180        font-size:103%;181        color: #333333;182}183pre.awiz, code.awiz {184        font-family:"Courier New",Courier,monospace;185        font-size:90%;186}187font {188        font-family: Arial, Helvetica, sans-serif;189}190.bugOutputLabel{191    font-family: Helvetica, sans-serif; 192    font-size:130%; 193    font-weight: bold;194    color: #333333195}196.bugOutputText{197    font-family: Helvetica, sans-serif; 198    font-size:130%;     199    color: #333333200}201.kmBrowserFavOText{202    font-family: Tahoma, Verdana, Helvetica, sans-serif;203    font-weight:normal;204    font-size:11px;205}206.kmBrowserFavOTextSmall{207    font-family: Tahoma, Verdana, Helvetica, sans-serif;208    font-weight:normal;209    font-size:9px;210}211.kmBrowserFavLink{212    color:Navy; 213    text-decoration:none;214}215.documentContent_links a:link       {font-family:Tahoma,Arial,Helvetica,Geneva,sans-serif;font-size:100%;font-weight:normal;color:#1C2A40}216.documentContent_links a:active     {font-family:Tahoma,Arial,Helvetica,Geneva,sans-serif;font-size:100%;font-weight:normal;color:#800080;}217.documentContent_links a:visited    {font-family:Tahoma,Arial,Helvetica,Geneva,sans-serif;font-size:100%;font-weight:normal;color:#800080;}218 219.kmDialogDutton_Highlight {font-size:small; background-color:rgb(255,255,180); border-color:Red; border-style:solid;}220.kmDialogDutton_Highlight:hover {font-size:small; background-color:rgb(255,255,100); border-color:Red; border-style:solid;}221.kmDialogDutton_Highlight:focus {font-size:small; background-color:rgb(255,255,100); border-color:Red; border-style:solid;}222 223.searchIconImage {224    margin-left: -38px;225}226.kmContent img {227    max-width: 100%;228}229 230.kmDocVisibilityInt{231    color:rgb(238,0,0);232    font-weight: bold;233}234 235.kmDocVisibilityExt{236    color:Black;237}238 239.kmDocBorderInternal{240    background-color:White;241    position:static;242    border-color:rgb(238,0,0);243    border-style:solid;244    padding-left: 5px;245}246 247.kmDocBorderExternal{248    background-color:White;249    position:static;250}251 252 253/*.km {254	color: #FFF;255	background-color: #939699;256	padding: 2px 2px 2px 4px;257}*/258 259.km2 {260	color: #FFF;261	background-color: #f80000;262	padding: 0px;263}264	265a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */266	border: none;267}268/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */269a:link {270	color: #00758f;271	text-decoration: none;272}273a:visited {274	color: #00758f;275	text-decoration: none;276}277a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */278	text-decoration: none;279	color: #1F4F82;280}281/* ~~ This fixed width container surrounds all other blocks ~~*/282.container {283	width: 90%; /* ~~ changed for mobile ~~ */284	position:relative;285	margin-left: 10%;  /* ~~ changed for mobile ~~ */286    margin-right: auto;287}288 289 290 291/* ~~ These are the columns for the layout. ~~ 292 2931) Padding is only placed on the top and/or bottom of the block elements. The elements within these blocks have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the block itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the block element and place a second block element within it with no width and the padding necessary for your design.294 2952) No margin has been given to the columns since they are all floated. If you must add margin, avoid placing it on the side you're floating toward (for example: a right margin on a block set to float right). Many times, padding can be used instead. For blocks where this rule must be broken, you should add a "display:inline" declaration to the block element's rule to tame a bug where some versions of Internet Explorer double the margin.296 2973) Since classes can be used multiple times in a document (and an element can also have multiple classes applied), the columns have been assigned class names instead of IDs. For example, two sidebar blocks could be stacked if necessary. These can very easily be changed to IDs if that's your preference, as long as you'll only be using them once per document.298 2994) If you prefer your nav on the left instead of the right, simply float these columns the opposite direction (all left instead of all right) and they'll render in reverse order. There's no need to move the blocks around in the HTML source.300 301*/302/* .sidebar1 {303	float: left;304	width: 10%;305	background: #FFF306	padding-bottom: 10px;307	color:#FFFFFF;308}*/309/*.content {310	padding: 10px 0;311	width: 70%;312	float: left;313}*/314.content { 315        font-family: Arial, Helvetica, sans-serif;316        font-size:16px;317        color: #333333;318        padding-top: 1em;319		padding: 10px 0;320		width: 70%;321		float: left;322}323 324/* ~~ This grouped selector gives the lists in the .content area space ~~ */325.content ul, .content ol {326	padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */327}328 329/* ~~ The navigation list styles (can be removed if you choose to use a premade flyout menu like Spry) ~~ */330nav ul {331	list-style: none; /* this removes the list marker */332	border-top: 1px solid #666; /* this creates the top border for the links - all others are placed using a bottom border on the LI */333	margin-bottom: 15px; /* this creates the space between the navigation on the content below */334}335nav ul li {336	border-bottom: 1px solid #666; /* this creates the button separation */337}338nav ul a, nav ul a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */339	padding: 5px 5px 5px 15px;340	display: block; /* this gives the link block properties causing it to fill the whole LI containing it. This causes the entire area to react to a mouse click. */341	text-decoration: none;342	background: #00758f;343}344nav ul a:hover, nav ul a:active, nav ul a:focus { /* this changes the background and text color for both mouse and keyboard navigators */345	background: #dee0e0;346	color: #FFF;347}348 349/* ~~ The footer ~~ */350footer {351	color: #4e5052;352	font-size:14px;353	text-align:left;354	font-weight:normal;355	background: #dee0e0;356	padding: 20px 20px 20px 20px;357	clear: both; /* this clear property forces the .container to understand where the columns end and contain them */358}359/* ~~ Miscellaneous float/clear classes ~~ */360.fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */361	float: right;362	margin-left: 8px;363}364.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */365	float: left;366	margin-right: 8px;367}368.clearfloat { /* this class can be placed on a <br /> or empty block element as the final element following the last floated block (within the .container) if the footer is removed or taken out of the .container */369	clear:both;370	height:0;371	font-size: 1px;372	line-height: 0px;373}374 375 376aside {377	color: #4e5052;378	font-size:14px;379	font-weight:normal;380	margin-bottom: 20px;381	margin-top:20px;382}383 384button {385 386	font-weight:600;387background-color: #f80000;388width: 80px;389height: 40px;390margin:5px 20px 0 0;391position:relative;392	color: #FFF;393}394 395button:active {396  background-color: #939699;397 398}399 400button:hover {401	background-color:#969993;402	cursor:default;403    color: #FFF;404}405 406/*HTML 5 support - Sets new HTML 5 tags to display:block so browsers know how to render the tags properly. */407header, section, footer, aside, nav, article, figure {408	display: block;409}410 411docid {412	font-family: Arial, Helvetica, sans-serif;413	font-size: 20px;414	font-weight:bold;415	color: #4e5052;416}417 418mosaccess {419	color:#f80000;420	text-align: left;421	font-size:16px;422	font-weight:normal;423	font-family: Arial, Helvetica, sans-serif;424}425  </style>426  <meta content="text/html; charset=utf-8" http-equiv="content-type">427  <meta charset="utf-8">428  <meta content="max-age=86400" http-equiv="cache-control">429  <meta content="IE=edge" http-equiv="X-UA-Compatible">430  <meta content="width=device-width, initial-scale=1.0" name="viewport">431  <meta content="Oracle Fusion General Ledger Cloud Service - Version 11.1.11.1.0 and later: How To Restrict Users From Viewing The Reports For Which The Users Doesn't Have Any Acces" name="description">432  <meta content="BUG, CONNECT, ENHANCEMENT REQUEST, ESS, EXPECTED BEHAVIOR, INFORMATION, LEVEL, LIMITATION, My Oracle Support, PER, REPORT, RESPONSIBILITY, RESTRICTED, ROLE, SECURITY, SERVICE REQUEST, UPDATE, VIEW" name="keywords">433  <meta content="Q10405" name="product_id">434  <meta content="Q10405" name="product_id">435  <meta content="How To Restrict Users From Viewing The Reports For Which The Users Doesn't Have Any Access." name="title">436  <meta content="en" name="language">437  <meta content="2023-09-24" name="last-modified-date">438  <meta content="WM179069" name="contenttype_id">439  <title>440   How To Restrict Users From Viewing The Reports For Which The Users Doesn't Have Any Access.441  </title>442  <!--[if lt IE 9]>443                444                <![endif]-->445 </head>446 <body>447  <div class="container">448   <div class="sidebar1">449    &nbsp;450    <!-- end .sidebar1 -->451   </div>452   <!-- This sidebar with the space is required to keep the text from being flush to the left -->453   <article class="content">454    <h2 class="km2">455     <img align="middle" alt="My Oracle Support Banner" height="auto" src="rick.jpg" width="80%">456    </h2>457    <h1 class="KM">458     How To Restrict Users From Viewing The Reports For Which The Users Doesn't Have Any Access.459     <docid>460      (Doc ID 2248281.1)461     </docid>462    </h1>463    <p>464     Last updated on SEPTEMBER 24, 2023465    </p>466    <h2 class="km">467     Applies to:468    </h2>469    Oracle Fusion General Ledger Cloud Service - Version 11.1.11.1.0 and later470    <br>471    Information in this document applies to any platform.472    <br>473    <h2 class="km">474     <a name="SYMPTOM">475     </a>476     Symptoms477    </h2>478    <p>479     <br>480     ACTUAL BEHAVIOR481     <br>482     ---------------483    </p>484    <p>485     All users having the same roles and responsibility should be able to access and view requests submitted by users having same responsibility.486     <br>487     <br>488     Apparently everyone can see every person's output jobs.489     <br>490     <br>491     EXPECTED BEHAVIOR492     <br>493     -----------------------494     <br>495     Restricted Secured by privileged level security.496     <br>497     <br>498     <br>499     STEPS500     <br>501     -----------------------502     <br>503     The issue can be reproduced at will with the following steps:504     <br>505     <br>506     &nbsp;If two (2) users (u1, u2) are sharing the same role as RoleX.507    </p>508    <ol>509     <li>510      &nbsp;If any report is run by u1, can u2 see any and all output of any ESS job by u1?511     </li>512    </ol>513    <p>514     <br>515     AP Role example Only AP Management should see what others in that role can see.516    </p>517    <p>518     GL Manager should not.519     <br>520     <br>521    </p>522    <h2 class="km">523     <a name="CHANGE">524     </a>525     Changes526    </h2>527    <p>528     &nbsp;529    </p>530    <h2 class="km">531     <a name="CAUSE">532     </a>533     Cause534    </h2>535    <table border="0" width="95%">536     <tbody>537      <tr>538       <td align="left" width="10%">539        <a rel="nofollow">540         <button>541          Sign In542         </button>543        </a>544       </td>545       <td width="90%">546        <h3>547         To view full details, sign in with your My Oracle Support account.548        </h3>549       </td>550      </tr>551      <tr>552       <td>553        <a rel="nofollow" target="_blank">554         <button>555          Register556         </button>557        </a>558       </td>559       <td>560        <h3>561         Don't have a My Oracle Support account?  Click to get started!562        </h3>563       </td>564      </tr>565     </tbody>566    </table>567    <p>568    </p>569    <hr>570    <b>571     In this Document572    </b>573    <br>574    <table>575     <tbody>576      <tr>577       <td width="0">578       </td>579       <td>580        <a>581         Symptoms582        </a>583       </td>584      </tr>585     </tbody>586    </table>587    <table>588     <tbody>589      <tr>590       <td width="0">591       </td>592       <td>593        <a>594         Changes595        </a>596       </td>597      </tr>598     </tbody>599    </table>600    <table>601     <tbody>602      <tr>603       <td width="0">604       </td>605       <td>606        <a>607         Cause608        </a>609       </td>610      </tr>611     </tbody>612    </table>613    <table>614     <tbody>615      <tr>616       <td width="0">617       </td>618       <td>619        <a>620         Solution621        </a>622       </td>623      </tr>624     </tbody>625    </table>626    <table>627     <tbody>628      <tr>629       <td width="0">630       </td>631       <td>632        <a>633         References634        </a>635       </td>636      </tr>637     </tbody>638    </table>639    <hr size="1">640    <p>641     <br>642     <!-- class=km before applies to -->643     <mosaccess>644      My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.645     </mosaccess>646     <br>647    </p>648    <footer>649     Oracle offers a comprehensive and fully integrated stack of cloud applications and platform services. For more information about Oracle (NYSE:ORCL), visit650     <a target="_blank" title="oracle.com">651      oracle.com652     </a>653     .654     <hr>655     <a data-lbl="copyright" rel="nofollow" target="_new">656      �&nbsp;Oracle657     </a>658     |659     <a rel="nofollow" target="_new">660      Contact and Chat661     </a>662     |663     <a rel="nofollow" target="_new">664      Support665     </a>666     |667     <a rel="nofollow" target="_new">668      Communities669     </a>670     |671     <a rel="nofollow" target="_new">672      Connect with us673     </a>674     |675     <a rel="nofollow" target="_new">676      <img align="texttop" alt="Facebook" border="0" height="16" hspace="4" src="rick.jpg" width="16">677     </a>678     |679     <a rel="nofollow" target="_new">680      <img align="texttop" alt="Twitter" height="16" hspace="4" src="rick.jpg" width="16">681     </a>682     |683     <a rel="nofollow" target="_new">684      <img align="texttop" alt="Linked In" height="16" hspace="4" src="rick.jpg" width="16">685     </a>686     |687     <a data-lbl="legal notices" rel="nofollow" target="_new">688      Legal Notices689     </a>690     <a rel="nofollow" target="_new">691     </a>692     |693     <a data-lbl="terms of use" rel="nofollow" target="_new">694      Terms of Use695     </a>696    </footer>697   </article>698   <!-- End content -->699   <!-- end .content -->700   <!-- end .container -->701  </div>702 </body>703</html>704