hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
98 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
118
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
sequencelengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
118
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
sequencelengths
1
10
max_issues_count
int64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
sequencelengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
1.05M
avg_line_length
float64
1
1.03M
max_line_length
int64
2
1.03M
alphanum_fraction
float64
0
1
2305e934be95ada90dfe05c7437eb432042f6ea1
660,051
css
CSS
public/assets/pwb_admin_panel/application-533dc7df547722ab0e3328b84391671ed6a751af1b3b25bc77cd5e6f47255084.css
tatyana12/property
d207aee338c2d277de7493569c98dbe3446f78ce
[ "MIT" ]
null
null
null
public/assets/pwb_admin_panel/application-533dc7df547722ab0e3328b84391671ed6a751af1b3b25bc77cd5e6f47255084.css
tatyana12/property
d207aee338c2d277de7493569c98dbe3446f78ce
[ "MIT" ]
null
null
null
public/assets/pwb_admin_panel/application-533dc7df547722ab0e3328b84391671ed6a751af1b3b25bc77cd5e6f47255084.css
tatyana12/property
d207aee338c2d277de7493569c98dbe3446f78ce
[ "MIT" ]
null
null
null
.sp-container{position:absolute;top:0;left:0;display:inline-block;z-index:9999994;overflow:hidden}.sp-container.sp-flat{position:relative}.sp-container,.sp-container *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.sp-top{position:relative;width:100%;display:inline-block}.sp-top-inner{position:absolute;top:0;left:0;bottom:0;right:0}.sp-color{position:absolute;top:0;left:0;bottom:0;right:20%}.sp-hue{position:absolute;top:0;right:0;bottom:0;left:84%;height:100%}.sp-clear-enabled .sp-hue{top:33px;height:77.5%}.sp-fill{padding-top:80%}.sp-sat,.sp-val{position:absolute;top:0;left:0;right:0;bottom:0}.sp-alpha-enabled .sp-top{margin-bottom:18px}.sp-alpha-enabled .sp-alpha{display:block}.sp-alpha-handle{position:absolute;top:-4px;bottom:-4px;width:6px;left:50%;cursor:pointer;border:1px solid #000;background:#fff;opacity:.8}.sp-alpha{display:none;bottom:-14px;right:0;left:0;height:8px}.sp-alpha-inner{border:1px solid #333}.sp-clear{display:none}.sp-clear.sp-clear-display{background-position:center}.sp-clear-enabled .sp-clear{display:block;position:absolute;top:0;right:0;bottom:0;left:84%;height:28px}.sp-alpha,.sp-alpha-handle,.sp-clear,.sp-container,.sp-container button,.sp-container.sp-dragging .sp-input,.sp-dragger,.sp-preview,.sp-replacer,.sp-slider{-webkit-user-select:none;-moz-user-select:-moz-none;-o-user-select:none;user-select:none}.sp-container.sp-buttons-disabled .sp-button-container,.sp-container.sp-input-disabled .sp-input-container,.sp-container.sp-palette-buttons-disabled .sp-palette-button-container,.sp-initial-disabled .sp-initial,.sp-palette-disabled .sp-palette-container,.sp-palette-only .sp-picker-container{display:none}.sp-sat{background-image:-webkit-gradient(linear, 0 0, 100% 0, from(#FFF), to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(left, #FFF, rgba(204,154,129,0));background-image:-moz-linear-gradient(left, #fff, rgba(204,154,129,0));background-image:-o-linear-gradient(left, #fff, rgba(204,154,129,0));background-image:-ms-linear-gradient(left, #fff, rgba(204,154,129,0));background-image:linear-gradient(to right, #fff, rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)";filter:progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#FFFFFFFF', endColorstr='#00CC9A81')}.sp-val{background-image:-webkit-gradient(linear, 0 100%, 0 0, from(#000), to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(bottom, #000, rgba(204,154,129,0));background-image:-moz-linear-gradient(bottom, #000, rgba(204,154,129,0));background-image:-o-linear-gradient(bottom, #000, rgba(204,154,129,0));background-image:-ms-linear-gradient(bottom, #000, rgba(204,154,129,0));background-image:linear-gradient(to top, #000, rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00CC9A81', endColorstr='#FF000000')}.sp-hue{background:-moz-linear-gradient(top, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red 100%);background:-ms-linear-gradient(top, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red 100%);background:-o-linear-gradient(top, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red 100%);background:-webkit-gradient(linear, left top, left bottom, from(red), color-stop(0.17, #ff0), color-stop(0.33, #0f0), color-stop(0.5, #0ff), color-stop(0.67, #00f), color-stop(0.83, #f0f), to(red));background:-webkit-linear-gradient(top, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red 100%);background:linear-gradient(to bottom, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red 100%)}.sp-1{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0000', endColorstr='#ffff00')}.sp-2{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff00', endColorstr='#00ff00')}.sp-3{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ff00', endColorstr='#00ffff')}.sp-4{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffff', endColorstr='#0000ff')}.sp-5{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0000ff', endColorstr='#ff00ff')}.sp-6{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff00ff', endColorstr='#ff0000')}.sp-hidden{display:none !important}.sp-cf:after,.sp-cf:before{content:"";display:table}.sp-cf:after{clear:both}@media (max-device-width: 480px){.sp-color{right:40%}.sp-hue{left:63%}.sp-fill{padding-top:60%}}.sp-dragger{border-radius:5px;height:5px;width:5px;border:1px solid #fff;background:#000;cursor:pointer;position:absolute;top:0;left:0}.sp-slider{position:absolute;top:0;cursor:pointer;height:3px;left:-1px;right:-1px;border:1px solid #000;background:#fff;opacity:.8}.sp-container{border-radius:0;background-color:#ECECEC;border:1px solid #f0c49B;padding:0}.sp-clear,.sp-color,.sp-container,.sp-container button,.sp-container input,.sp-hue{font:400 12px "Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.sp-top{margin-bottom:3px}.sp-clear,.sp-color,.sp-hue{border:1px solid #666}.sp-input-container{float:right;width:100px;margin-bottom:4px}.sp-initial-disabled .sp-input-container{width:100%}.sp-input{font-size:12px !important;border:1px inset;padding:4px 5px;margin:0;width:100%;background:0 0;border-radius:3px;color:#222}.sp-input:focus{border:1px solid orange}.sp-input.sp-validation-error{border:1px solid red;background:#fdd}.sp-palette-container,.sp-picker-container{float:left;position:relative;padding:10px 10px 300px;margin-bottom:-290px}.sp-picker-container{width:172px;border-left:solid 1px #fff}.sp-palette-container{border-right:solid 1px #ccc}.sp-palette-only .sp-palette-container{border:0}.sp-palette .sp-thumb-el{display:block;position:relative;float:left;cursor:pointer}.sp-palette .sp-thumb-el.sp-thumb-active,.sp-palette .sp-thumb-el:hover{border-color:orange}.sp-initial{float:left;border:1px solid #333}.sp-initial span{width:30px;height:25px;border:none;display:block;float:left;margin:0}.sp-initial .sp-clear-display{background-position:center}.sp-button-container,.sp-palette-button-container{float:right}.sp-replacer{margin:0;overflow:hidden;cursor:pointer;padding:4px;display:inline-block;border:1px solid #91765d;background:#eee;color:#333;vertical-align:middle}.sp-replacer.sp-active,.sp-replacer:hover{border-color:#F0C49B;color:#111}.sp-replacer.sp-disabled{cursor:default;border-color:silver;color:silver}.sp-dd{padding:2px 0;height:16px;line-height:16px;float:left;font-size:10px}.sp-preview{width:25px;height:20px;border:1px solid #222;margin-right:5px;float:left;z-index:0}.sp-palette{max-width:220px}.sp-palette .sp-thumb-el{width:16px;height:16px;margin:2px 1px;border:1px solid #d0d0d0}.sp-container{padding-bottom:0}.sp-container button{background-color:#eee;background-image:-webkit-linear-gradient(top, #eee, #ccc);background-image:-moz-linear-gradient(top, #eee, #ccc);background-image:-ms-linear-gradient(top, #eee, #ccc);background-image:-o-linear-gradient(top, #eee, #ccc);background-image:linear-gradient(to bottom, #eee, #ccc);border:1px solid #ccc;border-bottom:1px solid #bbb;border-radius:3px;color:#333;font-size:14px;line-height:1;padding:5px 4px;text-align:center;text-shadow:0 1px 0 #eee;vertical-align:middle}.sp-container button:hover{background-color:#ddd;background-image:-webkit-linear-gradient(top, #ddd, #bbb);background-image:-moz-linear-gradient(top, #ddd, #bbb);background-image:-ms-linear-gradient(top, #ddd, #bbb);background-image:-o-linear-gradient(top, #ddd, #bbb);background-image:linear-gradient(to bottom, #ddd, #bbb);border:1px solid #bbb;border-bottom:1px solid #999;cursor:pointer;text-shadow:0 1px 0 #ddd}.sp-container button:active{border:1px solid #aaa;border-bottom:1px solid #888;-webkit-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-moz-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-ms-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-o-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee}.sp-cancel{font-size:11px;color:#d93f3f !important;margin:0 5px 0 0;padding:2px;vertical-align:middle;text-decoration:none}.sp-cancel:hover{color:#d93f3f !important;text-decoration:underline}.sp-palette span.sp-thumb-active,.sp-palette span:hover{border-color:#000}.sp-alpha,.sp-preview,.sp-thumb-el{position:relative;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.sp-alpha-inner,.sp-preview-inner,.sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-palette .sp-thumb-inner{background-position:50% 50%;background-repeat:no-repeat}.sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=)}.sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=)}.sp-clear-display{background-repeat:no-repeat;background-position:center;background-image:url(data:image/gif;base64,R0lGODlhFAAUAPcAAAAAAJmZmZ2dnZ6enqKioqOjo6SkpKWlpaampqenp6ioqKmpqaqqqqurq/Hx8fLy8vT09PX19ff39/j4+Pn5+fr6+vv7+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAUABQAAAihAP9FoPCvoMGDBy08+EdhQAIJCCMybCDAAYUEARBAlFiQQoMABQhKUJBxY0SPICEYHBnggEmDKAuoPMjS5cGYMxHW3IiT478JJA8M/CjTZ0GgLRekNGpwAsYABHIypcAgQMsITDtWJYBR6NSqMico9cqR6tKfY7GeBCuVwlipDNmefAtTrkSzB1RaIAoXodsABiZAEFB06gIBWC1mLVgBa0AAOw==)} /*! * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) */@font-face{font-family:FontAwesome;src:url(../fonts/fontawesome-webfont.eot?v=4.7.0);src:url(../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0) format("embedded-opentype"),url(../fonts/fontawesome-webfont.woff2?v=4.7.0) format("woff2"),url(../fonts/fontawesome-webfont.woff?v=4.7.0) format("woff"),url(../fonts/fontawesome-webfont.ttf?v=4.7.0) format("truetype"),url(../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-rotate-90{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-close:before,.fa-remove:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-cog:before,.fa-gear:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-repeat:before,.fa-rotate-right:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-exclamation-triangle:before,.fa-warning:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-cogs:before,.fa-gears:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-floppy-o:before,.fa-save:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-sort:before,.fa-unsorted:before{content:"\f0dc"}.fa-sort-desc:before,.fa-sort-down:before{content:"\f0dd"}.fa-sort-asc:before,.fa-sort-up:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-gavel:before,.fa-legal:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-bolt:before,.fa-flash:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-clipboard:before,.fa-paste:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-chain-broken:before,.fa-unlink:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:"\f150"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:"\f151"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:"\f152"}.fa-eur:before,.fa-euro:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-inr:before,.fa-rupee:before{content:"\f156"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:"\f157"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:"\f158"}.fa-krw:before,.fa-won:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-try:before,.fa-turkish-lira:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:"\f19c"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:"\f1c5"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:"\f1c6"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:"\f1d0"}.fa-empire:before,.fa-ge:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-paper-plane:before,.fa-send:before{content:"\f1d8"}.fa-paper-plane-o:before,.fa-send-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-bed:before,.fa-hotel:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-y-combinator:before,.fa-yc:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-television:before,.fa-tv:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:"\f2a3"}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-sign-language:before,.fa-signing:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.fa-handshake-o:before{content:"\f2b5"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-o:before{content:"\f2b7"}.fa-linode:before{content:"\f2b8"}.fa-address-book:before{content:"\f2b9"}.fa-address-book-o:before{content:"\f2ba"}.fa-address-card:before,.fa-vcard:before{content:"\f2bb"}.fa-address-card-o:before,.fa-vcard-o:before{content:"\f2bc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-circle-o:before{content:"\f2be"}.fa-user-o:before{content:"\f2c0"}.fa-id-badge:before{content:"\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\f2c3"}.fa-quora:before{content:"\f2c4"}.fa-free-code-camp:before{content:"\f2c5"}.fa-telegram:before{content:"\f2c6"}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:"\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-shower:before{content:"\f2cc"}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:"\f2cd"}.fa-podcast:before{content:"\f2ce"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\f2d4"}.fa-bandcamp:before{content:"\f2d5"}.fa-grav:before{content:"\f2d6"}.fa-etsy:before{content:"\f2d7"}.fa-imdb:before{content:"\f2d8"}.fa-ravelry:before{content:"\f2d9"}.fa-eercast:before{content:"\f2da"}.fa-microchip:before{content:"\f2db"}.fa-snowflake-o:before{content:"\f2dc"}.fa-superpowers:before{content:"\f2dd"}.fa-wpexplorer:before{content:"\f2de"}.fa-meetup:before{content:"\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}table.dataTable{clear:both;margin-top:6px !important;margin-bottom:6px !important;max-width:none !important}table.dataTable td,table.dataTable th{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}table.dataTable td.dataTables_empty,table.dataTable th.dataTables_empty{text-align:center}table.dataTable.nowrap td,table.dataTable.nowrap th{white-space:nowrap}div.dataTables_wrapper div.dataTables_length label{font-weight:400;text-align:left;white-space:nowrap}div.dataTables_wrapper div.dataTables_length select{width:75px;display:inline-block}div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter label{font-weight:400;white-space:nowrap;text-align:left}div.dataTables_wrapper div.dataTables_filter input{margin-left:.5em;display:inline-block;width:auto}div.dataTables_wrapper div.dataTables_info{padding-top:8px;white-space:nowrap}div.dataTables_wrapper div.dataTables_paginate{margin:0;white-space:nowrap;text-align:right}div.dataTables_wrapper div.dataTables_paginate ul.pagination{margin:2px 0;white-space:nowrap}div.dataTables_wrapper div.dataTables_processing{position:absolute;top:50%;left:50%;width:200px;margin-left:-100px;margin-top:-26px;text-align:center;padding:1em 0}table.dataTable thead>tr>td.sorting,table.dataTable thead>tr>td.sorting_asc,table.dataTable thead>tr>td.sorting_desc,table.dataTable thead>tr>th.sorting,table.dataTable thead>tr>th.sorting_asc,table.dataTable thead>tr>th.sorting_desc{padding-right:30px}table.dataTable thead>tr>td:active,table.dataTable thead>tr>th:active{outline:0}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_desc_disabled{cursor:pointer;position:relative}table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc:after,table.dataTable thead .sorting_desc_disabled:after{position:absolute;bottom:8px;right:8px;display:block;font-family:'Glyphicons Halflings';opacity:.5}table.dataTable thead .sorting:after{opacity:.2;content:"\e150"}table.dataTable thead .sorting_asc:after{content:"\e155"}table.dataTable thead .sorting_desc:after{content:"\e156"}table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{color:#eee}div.dataTables_scrollHead table.dataTable{margin-bottom:0 !important}div.dataTables_scrollBody table{border-top:none;margin-top:0 !important;margin-bottom:0 !important}div.dataTables_scrollBody table thead .sorting:after,div.dataTables_scrollBody table thead .sorting_asc:after,div.dataTables_scrollBody table thead .sorting_desc:after{display:none}div.dataTables_scrollBody table tbody tr:first-child td,div.dataTables_scrollBody table tbody tr:first-child th{border-top:none}div.dataTables_scrollFoot table{margin-top:0 !important;border-top:none}@media screen and (max-width: 767px){div.dataTables_wrapper div.dataTables_filter,div.dataTables_wrapper div.dataTables_info,div.dataTables_wrapper div.dataTables_length,div.dataTables_wrapper div.dataTables_paginate{text-align:center}}table.dataTable.table-condensed>thead>tr>th{padding-right:20px}table.dataTable.table-condensed .sorting:after,table.dataTable.table-condensed .sorting_asc:after,table.dataTable.table-condensed .sorting_desc:after{top:6px;right:6px}table.table-bordered.dataTable{border-collapse:separate !important}table.table-bordered.dataTable td,table.table-bordered.dataTable th{border-left-width:0}table.table-bordered.dataTable td:last-child,table.table-bordered.dataTable th:last-child{border-right-width:0}div.dataTables_scrollHead table.table-bordered,table.table-bordered.dataTable tbody td,table.table-bordered.dataTable tbody th{border-bottom-width:0}div.table-responsive>div.dataTables_wrapper>div.row{margin:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:first-child{padding-left:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:last-child{padding-right:0}body.stop-scrolling{height:100%;overflow:hidden}.sweet-overlay{background-color:#000;-ms-filter:"alpha(Opacity=40)";background-color:rgba(0,0,0,0.4);position:fixed;left:0;right:0;top:0;bottom:0;display:none;z-index:10000}.sweet-alert{background-color:#fff;font-family:'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;width:478px;padding:17px;border-radius:5px;text-align:center;position:fixed;left:50%;top:50%;margin-left:-256px;margin-top:-200px;overflow:hidden;display:none;z-index:99999}@media all and (max-width: 540px){.sweet-alert{width:auto;margin-left:0;margin-right:0;left:15px;right:15px}}.sweet-alert h2{color:#575757;font-size:30px;text-align:center;font-weight:600;text-transform:none;position:relative;margin:25px 0;padding:0;line-height:40px;display:block}.sweet-alert p{color:#797979;font-size:16px;font-weight:300;position:relative;text-align:inherit;float:none;margin:0;padding:0;line-height:normal}.sweet-alert fieldset{border:none;position:relative}.sweet-alert .sa-error-container{background-color:#f1f1f1;margin-left:-17px;margin-right:-17px;overflow:hidden;padding:0 10px;max-height:0;webkit-transition:padding .15s,max-height .15s;transition:padding .15s,max-height .15s}.sweet-alert .sa-error-container.show{padding:10px 0;max-height:100px;webkit-transition:padding .2s,max-height .2s;transition:padding .25s,max-height .25s}.sweet-alert .sa-error-container .icon{display:inline-block;width:24px;height:24px;border-radius:50%;background-color:#ea7d7d;color:#fff;line-height:24px;text-align:center;margin-right:3px}.sweet-alert .sa-error-container p{display:inline-block}.sweet-alert .sa-input-error{position:absolute;top:29px;right:26px;width:20px;height:20px;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transition:all .1s;transition:all .1s}.sweet-alert .sa-input-error::after,.sweet-alert .sa-input-error::before{content:"";width:20px;height:6px;background-color:#f06e57;border-radius:3px;position:absolute;top:50%;margin-top:-4px;left:50%;margin-left:-9px}.sweet-alert .sa-input-error::before{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.sweet-alert .sa-input-error::after{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.sweet-alert .sa-input-error.show{opacity:1;-webkit-transform:scale(1);transform:scale(1)}.sweet-alert input{width:100%;box-sizing:border-box;border-radius:3px;border:1px solid #d7d7d7;height:43px;margin-top:10px;margin-bottom:17px;font-size:18px;box-shadow:inset 0 1px 1px rgba(0,0,0,0.06);padding:0 12px;display:none;-webkit-transition:all .3s;transition:all .3s}.sweet-alert input:focus{outline:0;box-shadow:0 0 3px #c4e6f5;border:1px solid #b4dbed}.sweet-alert input:focus::-moz-placeholder{transition:opacity .3s .03s ease;opacity:.5}.sweet-alert input:focus:-ms-input-placeholder{transition:opacity .3s .03s ease;opacity:.5}.sweet-alert input:focus::-webkit-input-placeholder{transition:opacity .3s .03s ease;opacity:.5}.sweet-alert input::-moz-placeholder{color:#bdbdbd}.sweet-alert input:-ms-input-placeholder{color:#bdbdbd}.sweet-alert input::-webkit-input-placeholder{color:#bdbdbd}.sweet-alert.show-input input{display:block}.sweet-alert .sa-confirm-button-container{display:inline-block;position:relative}.sweet-alert .la-ball-fall{position:absolute;left:50%;top:50%;margin-left:-27px;margin-top:4px;opacity:0;visibility:hidden}.sweet-alert button{background-color:#8CD4F5;color:#fff;border:none;box-shadow:none;font-size:17px;font-weight:500;-webkit-border-radius:4px;border-radius:5px;padding:10px 32px;margin:26px 5px 0;cursor:pointer}.sweet-alert button:focus{outline:0;box-shadow:0 0 2px rgba(128,179,235,0.5),inset 0 0 0 1px rgba(0,0,0,0.05)}.sweet-alert button:hover{background-color:#7ecff4}.sweet-alert button:active{background-color:#5dc2f1}.sweet-alert button.cancel{background-color:#C1C1C1}.sweet-alert button.cancel:hover{background-color:#b9b9b9}.sweet-alert button.cancel:active{background-color:#a8a8a8}.sweet-alert button.cancel:focus{box-shadow:rgba(197,205,211,0.8) 0 0 2px,rgba(0,0,0,0.0470588) 0 0 0 1px inset !important}.sweet-alert button[disabled]{opacity:.6;cursor:default}.sweet-alert button.confirm[disabled]{color:transparent}.sweet-alert button.confirm[disabled] ~ .la-ball-fall{opacity:1;visibility:visible;transition-delay:0s}.sweet-alert button::-moz-focus-inner{border:0}.sweet-alert[data-has-cancel-button=false] button{box-shadow:none !important}.sweet-alert[data-has-confirm-button=false][data-has-cancel-button=false]{padding-bottom:40px}.sweet-alert .sa-icon{width:80px;height:80px;border:4px solid gray;-webkit-border-radius:40px;border-radius:50%;margin:20px auto;padding:0;position:relative;box-sizing:content-box}.sweet-alert .sa-icon.sa-error{border-color:#F27474}.sweet-alert .sa-icon.sa-error .sa-x-mark{position:relative;display:block}.sweet-alert .sa-icon.sa-error .sa-line{position:absolute;height:5px;width:47px;background-color:#F27474;display:block;top:37px;border-radius:2px}.sweet-alert .sa-icon.sa-error .sa-line.sa-left{-webkit-transform:rotate(45deg);transform:rotate(45deg);left:17px}.sweet-alert .sa-icon.sa-error .sa-line.sa-right{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);right:16px}.sweet-alert .sa-icon.sa-warning{border-color:#F8BB86}.sweet-alert .sa-icon.sa-warning .sa-body{position:absolute;width:5px;height:47px;left:50%;top:10px;-webkit-border-radius:2px;border-radius:2px;margin-left:-2px;background-color:#F8BB86}.sweet-alert .sa-icon.sa-warning .sa-dot{position:absolute;width:7px;height:7px;-webkit-border-radius:50%;border-radius:50%;margin-left:-3px;left:50%;bottom:10px;background-color:#F8BB86}.sweet-alert .sa-icon.sa-info{border-color:#C9DAE1}.sweet-alert .sa-icon.sa-info::before{content:"";position:absolute;width:5px;height:29px;left:50%;bottom:17px;border-radius:2px;margin-left:-2px;background-color:#C9DAE1}.sweet-alert .sa-icon.sa-info::after{content:"";position:absolute;width:7px;height:7px;border-radius:50%;margin-left:-3px;top:19px;background-color:#C9DAE1}.sweet-alert .sa-icon.sa-success{border-color:#A5DC86}.sweet-alert .sa-icon.sa-success::after,.sweet-alert .sa-icon.sa-success::before{content:'';position:absolute;width:60px;height:120px;background:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.sweet-alert .sa-icon.sa-success::before{-webkit-border-radius:120px 0 0 120px;border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.sweet-alert .sa-icon.sa-success::after{-webkit-border-radius:0 120px 120px 0;border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px}.sweet-alert .sa-icon.sa-success .sa-placeholder{width:80px;height:80px;border:4px solid rgba(165,220,134,0.2);-webkit-border-radius:40px;border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.sweet-alert .sa-icon.sa-success .sa-fix{width:5px;height:90px;background-color:#fff;position:absolute;left:28px;top:8px;z-index:1;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.sweet-alert .sa-icon.sa-success .sa-line{height:5px;background-color:#A5DC86;display:block;border-radius:2px;position:absolute;z-index:2}.sweet-alert .sa-icon.sa-success .sa-line.sa-tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.sweet-alert .sa-icon.sa-success .sa-line.sa-long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.sweet-alert .sa-icon.sa-custom{background-size:contain;border-radius:0;border:none;background-position:center center;background-repeat:no-repeat}@-webkit-keyframes showSweetAlert{0%{transform:scale(0.7);-webkit-transform:scale(0.7)}45%{transform:scale(1.05);-webkit-transform:scale(1.05)}80%{transform:scale(0.95);-webkit-transform:scale(0.95)}100%{transform:scale(1);-webkit-transform:scale(1)}}@keyframes showSweetAlert{0%{transform:scale(0.7);-webkit-transform:scale(0.7)}45%{transform:scale(1.05);-webkit-transform:scale(1.05)}80%{transform:scale(0.95);-webkit-transform:scale(0.95)}100%{transform:scale(1);-webkit-transform:scale(1)}}@-webkit-keyframes hideSweetAlert{0%{transform:scale(1);-webkit-transform:scale(1)}100%{transform:scale(0.5);-webkit-transform:scale(0.5)}}@keyframes hideSweetAlert{0%{transform:scale(1);-webkit-transform:scale(1)}100%{transform:scale(0.5);-webkit-transform:scale(0.5)}}@-webkit-keyframes slideFromTop{0%{top:0}100%{top:50%}}@keyframes slideFromTop{0%{top:0}100%{top:50%}}@-webkit-keyframes slideToTop{0%{top:50%}100%{top:0}}@keyframes slideToTop{0%{top:50%}100%{top:0}}@-webkit-keyframes slideFromBottom{0%{top:70%}100%{top:50%}}@keyframes slideFromBottom{0%{top:70%}100%{top:50%}}@-webkit-keyframes slideToBottom{0%{top:50%}100%{top:70%}}@keyframes slideToBottom{0%{top:50%}100%{top:70%}}.showSweetAlert[data-animation=pop]{-webkit-animation:showSweetAlert .3s;animation:showSweetAlert .3s}.showSweetAlert[data-animation=none]{-webkit-animation:none;animation:none}.showSweetAlert[data-animation=slide-from-top]{-webkit-animation:slideFromTop .3s;animation:slideFromTop .3s}.showSweetAlert[data-animation=slide-from-bottom]{-webkit-animation:slideFromBottom .3s;animation:slideFromBottom .3s}.hideSweetAlert[data-animation=pop]{-webkit-animation:hideSweetAlert .2s;animation:hideSweetAlert .2s}.hideSweetAlert[data-animation=none]{-webkit-animation:none;animation:none}.hideSweetAlert[data-animation=slide-from-top]{-webkit-animation:slideToTop .4s;animation:slideToTop .4s}.hideSweetAlert[data-animation=slide-from-bottom]{-webkit-animation:slideToBottom .3s;animation:slideToBottom .3s}@-webkit-keyframes animateSuccessTip{0%,54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}100%{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%,54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}100%{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%,65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}100%{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%,65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}100%{width:47px;right:8px;top:38px}}@-webkit-keyframes rotatePlaceholder{0%,5%{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}100%,12%{transform:rotate(-405deg);-webkit-transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%,5%{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}100%,12%{transform:rotate(-405deg);-webkit-transform:rotate(-405deg)}}.animateSuccessTip{-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.animateSuccessLong{-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}.sa-icon.sa-success.animate::after{-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}@-webkit-keyframes animateErrorIcon{0%{transform:rotateX(100deg);-webkit-transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);-webkit-transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{transform:rotateX(100deg);-webkit-transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);-webkit-transform:rotateX(0deg);opacity:1}}.animateErrorIcon{-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}@-webkit-keyframes animateXMark{0%,50%{transform:scale(0.4);-webkit-transform:scale(0.4);margin-top:26px;opacity:0}80%{transform:scale(1.15);-webkit-transform:scale(1.15);margin-top:-6px}100%{transform:scale(1);-webkit-transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%,50%{transform:scale(0.4);-webkit-transform:scale(0.4);margin-top:26px;opacity:0}80%{transform:scale(1.15);-webkit-transform:scale(1.15);margin-top:-6px}100%{transform:scale(1);-webkit-transform:scale(1);margin-top:0;opacity:1}}.animateXMark{-webkit-animation:animateXMark .5s;animation:animateXMark .5s}@-webkit-keyframes pulseWarning{0%{border-color:#F8D486}100%{border-color:#F8BB86}}@keyframes pulseWarning{0%{border-color:#F8D486}100%{border-color:#F8BB86}}.pulseWarning{-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}@-webkit-keyframes pulseWarningIns{0%{background-color:#F8D486}100%{background-color:#F8BB86}}@keyframes pulseWarningIns{0%{background-color:#F8D486}100%{background-color:#F8BB86}}.pulseWarningIns{-webkit-animation:pulseWarningIns .75s infinite alternate;animation:pulseWarningIns .75s infinite alternate}@-webkit-keyframes rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} /*! * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/) * Copyright 2015 Daniel Cardoso <@DanielCardoso> * Licensed under MIT */.la-ball-fall,.la-ball-fall>div{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.la-ball-fall{display:block;font-size:0;color:#fff}.la-ball-fall.la-dark{color:#333}.la-ball-fall>div{display:inline-block;float:none;background-color:currentColor;border:0 solid}.la-ball-fall{width:54px;height:18px}.la-ball-fall>div{width:10px;height:10px;margin:4px;border-radius:100%;opacity:0;-webkit-animation:ball-fall 1s ease-in-out infinite;-moz-animation:ball-fall 1s ease-in-out infinite;-o-animation:ball-fall 1s ease-in-out infinite;animation:ball-fall 1s ease-in-out infinite}.la-ball-fall>div:nth-child(1){-webkit-animation-delay:-200ms;-moz-animation-delay:-200ms;-o-animation-delay:-200ms;animation-delay:-200ms}.la-ball-fall>div:nth-child(2){-webkit-animation-delay:-100ms;-moz-animation-delay:-100ms;-o-animation-delay:-100ms;animation-delay:-100ms}.la-ball-fall>div:nth-child(3){-webkit-animation-delay:0ms;-moz-animation-delay:0ms;-o-animation-delay:0ms;animation-delay:0ms}.la-ball-fall.la-sm{width:26px;height:8px}.la-ball-fall.la-sm>div{width:4px;height:4px;margin:2px}.la-ball-fall.la-2x{width:108px;height:36px}.la-ball-fall.la-2x>div{width:20px;height:20px;margin:8px}.la-ball-fall.la-3x{width:162px;height:54px}.la-ball-fall.la-3x>div{width:30px;height:30px;margin:12px}@-webkit-keyframes ball-fall{0%{opacity:0;-webkit-transform:translateY(-145%);transform:translateY(-145%)}10%{opacity:.5}20%,80%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}90%{opacity:.5}100%{opacity:0;-webkit-transform:translateY(145%);transform:translateY(145%)}}@-moz-keyframes ball-fall{0%{opacity:0;-moz-transform:translateY(-145%);transform:translateY(-145%)}10%{opacity:.5}20%,80%{opacity:1;-moz-transform:translateY(0);transform:translateY(0)}90%{opacity:.5}100%{opacity:0;-moz-transform:translateY(145%);transform:translateY(145%)}}@-o-keyframes ball-fall{0%{opacity:0;-o-transform:translateY(-145%);transform:translateY(-145%)}10%{opacity:.5}20%,80%{opacity:1;-o-transform:translateY(0);transform:translateY(0)}90%{opacity:.5}100%{opacity:0;-o-transform:translateY(145%);transform:translateY(145%)}}@keyframes ball-fall{0%{opacity:0;-webkit-transform:translateY(-145%);-moz-transform:translateY(-145%);-o-transform:translateY(-145%);transform:translateY(-145%)}10%{opacity:.5}20%,80%{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}90%{opacity:.5}100%{opacity:0;-webkit-transform:translateY(145%);-moz-transform:translateY(145%);-o-transform:translateY(145%);transform:translateY(145%)}}@font-face{font-family:summernote;font-style:normal;font-weight:400;src:url(font/summernote.eot?ad8d7e2d177d2473aecd9b35d16211fb);src:url(font/summernote.eot?#iefix) format("embedded-opentype"),url(font/summernote.woff?ad8d7e2d177d2473aecd9b35d16211fb) format("woff"),url(font/summernote.ttf?ad8d7e2d177d2473aecd9b35d16211fb) format("truetype")}[class*=" note-icon-"]:before,[class^=note-icon-]:before{display:inline-block;font:normal normal normal 14px summernote;font-size:inherit;-webkit-font-smoothing:antialiased;text-decoration:inherit;text-rendering:auto;text-transform:none;vertical-align:middle;speak:none;-moz-osx-font-smoothing:grayscale}.note-icon-align-center:before{content:"\f101"}.note-icon-align-indent:before{content:"\f102"}.note-icon-align-justify:before{content:"\f103"}.note-icon-align-left:before{content:"\f104"}.note-icon-align-outdent:before{content:"\f105"}.note-icon-align-right:before{content:"\f106"}.note-icon-align:before{content:"\f107"}.note-icon-arrows-alt:before{content:"\f108"}.note-icon-bold:before{content:"\f109"}.note-icon-caret:before{content:"\f10a"}.note-icon-chain-broken:before{content:"\f10b"}.note-icon-circle:before{content:"\f10c"}.note-icon-close:before{content:"\f10d"}.note-icon-code:before{content:"\f10e"}.note-icon-eraser:before{content:"\f10f"}.note-icon-font:before{content:"\f110"}.note-icon-frame:before{content:"\f111"}.note-icon-italic:before{content:"\f112"}.note-icon-link:before{content:"\f113"}.note-icon-magic:before{content:"\f114"}.note-icon-menu-check:before{content:"\f115"}.note-icon-minus:before{content:"\f116"}.note-icon-orderedlist:before{content:"\f117"}.note-icon-pencil:before{content:"\f118"}.note-icon-picture:before{content:"\f119"}.note-icon-question:before{content:"\f11a"}.note-icon-redo:before{content:"\f11b"}.note-icon-special-character:before{content:"\f11c"}.note-icon-square:before{content:"\f11d"}.note-icon-strikethrough:before{content:"\f11e"}.note-icon-subscript:before{content:"\f11f"}.note-icon-summernote:before{content:"\f120"}.note-icon-superscript:before{content:"\f121"}.note-icon-table:before{content:"\f122"}.note-icon-text-height:before{content:"\f123"}.note-icon-trash:before{content:"\f124"}.note-icon-underline:before{content:"\f125"}.note-icon-undo:before{content:"\f126"}.note-icon-unorderedlist:before{content:"\f127"}.note-icon-video:before{content:"\f128"}.note-editor{position:relative}.note-editor .note-dropzone{position:absolute;z-index:100;display:none;color:#87cefa;background-color:#fff;opacity:.95}.note-editor .note-dropzone .note-dropzone-message{display:table-cell;font-size:28px;font-weight:700;text-align:center;vertical-align:middle}.note-editor .note-dropzone.hover{color:#098ddf}.note-editor.dragover .note-dropzone{display:table}.note-editor .note-editing-area{position:relative}.note-editor .note-editing-area .note-editable{outline:0}.note-editor .note-editing-area .note-editable sup{vertical-align:super}.note-editor .note-editing-area .note-editable sub{vertical-align:sub}.note-editor.note-frame{border:1px solid #a9a9a9}.note-editor.note-frame.codeview .note-editing-area .note-editable{display:none}.note-editor.note-frame.codeview .note-editing-area .note-codable{display:block}.note-editor.note-frame .note-editing-area{overflow:hidden}.note-editor.note-frame .note-editing-area .note-editable{padding:10px;overflow:auto;color:#000;background-color:#fff}.note-editor.note-frame .note-editing-area .note-editable[contenteditable=false]{background-color:#e5e5e5}.note-editor.note-frame .note-editing-area .note-codable{display:none;width:100%;padding:10px;margin-bottom:0;font-family:Menlo,Monaco,monospace,sans-serif;font-size:14px;color:#ccc;background-color:#222;border:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;box-shadow:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;resize:none}.note-editor.note-frame.fullscreen{position:fixed;top:0;left:0;z-index:1050;width:100% !important}.note-editor.note-frame.fullscreen .note-editable{background-color:#fff}.note-editor.note-frame.fullscreen .note-resizebar{display:none}.note-editor.note-frame .note-statusbar{background-color:#f5f5f5;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.note-editor.note-frame .note-statusbar .note-resizebar{width:100%;height:8px;padding-top:1px;cursor:ns-resize}.note-editor.note-frame .note-statusbar .note-resizebar .note-icon-bar{width:20px;margin:1px auto;border-top:1px solid #a9a9a9}.note-editor.note-frame .note-placeholder{padding:10px}.note-popover.popover{max-width:none}.note-popover.popover .popover-content a{display:inline-block;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}.note-popover.popover .arrow{left:20px !important}.note-popover .popover-content,.panel-heading.note-toolbar{padding:0 0 5px 5px;margin:0}.note-popover .popover-content>.btn-group,.panel-heading.note-toolbar>.btn-group{margin-top:5px;margin-right:5px;margin-left:0}.note-popover .popover-content .btn-group .note-table,.panel-heading.note-toolbar .btn-group .note-table{min-width:0;padding:5px}.note-popover .popover-content .btn-group .note-table .note-dimension-picker,.panel-heading.note-toolbar .btn-group .note-table .note-dimension-picker{font-size:18px}.note-popover .popover-content .btn-group .note-table .note-dimension-picker .note-dimension-picker-mousecatcher,.panel-heading.note-toolbar .btn-group .note-table .note-dimension-picker .note-dimension-picker-mousecatcher{position:absolute !important;z-index:3;width:10em;height:10em;cursor:pointer}.note-popover .popover-content .btn-group .note-table .note-dimension-picker .note-dimension-picker-unhighlighted,.panel-heading.note-toolbar .btn-group .note-table .note-dimension-picker .note-dimension-picker-unhighlighted{position:relative !important;z-index:1;width:5em;height:5em;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASAgMAAAAroGbEAAAACVBMVEUAAIj4+Pjp6ekKlAqjAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfYAR0BKhmnaJzPAAAAG0lEQVQI12NgAAOtVatWMTCohoaGUY+EmIkEAEruEzK2J7tvAAAAAElFTkSuQmCC)}.note-popover .popover-content .btn-group .note-table .note-dimension-picker .note-dimension-picker-highlighted,.panel-heading.note-toolbar .btn-group .note-table .note-dimension-picker .note-dimension-picker-highlighted{position:absolute !important;z-index:2;width:1em;height:1em;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASAgMAAAAroGbEAAAACVBMVEUAAIjd6vvD2f9LKLW+AAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfYAR0BKwNDEVT0AAAAG0lEQVQI12NgAAOtVatWMTCohoaGUY+EmIkEAEruEzK2J7tvAAAAAElFTkSuQmCC)}.note-popover .popover-content .note-style blockquote,.note-popover .popover-content .note-style h1,.note-popover .popover-content .note-style h2,.note-popover .popover-content .note-style h3,.note-popover .popover-content .note-style h4,.note-popover .popover-content .note-style h5,.note-popover .popover-content .note-style h6,.panel-heading.note-toolbar .note-style blockquote,.panel-heading.note-toolbar .note-style h1,.panel-heading.note-toolbar .note-style h2,.panel-heading.note-toolbar .note-style h3,.panel-heading.note-toolbar .note-style h4,.panel-heading.note-toolbar .note-style h5,.panel-heading.note-toolbar .note-style h6{margin:0}.note-popover .popover-content .note-color .dropdown-toggle,.panel-heading.note-toolbar .note-color .dropdown-toggle{width:20px;padding-left:5px}.note-popover .popover-content .note-color .dropdown-menu,.panel-heading.note-toolbar .note-color .dropdown-menu{min-width:340px}.note-popover .popover-content .note-color .dropdown-menu .btn-group,.panel-heading.note-toolbar .note-color .dropdown-menu .btn-group{margin:0}.note-popover .popover-content .note-color .dropdown-menu .btn-group:first-child,.panel-heading.note-toolbar .note-color .dropdown-menu .btn-group:first-child{margin:0 5px}.note-popover .popover-content .note-color .dropdown-menu .btn-group .note-palette-title,.panel-heading.note-toolbar .note-color .dropdown-menu .btn-group .note-palette-title{margin:2px 7px;font-size:12px;text-align:center;border-bottom:1px solid #eee}.note-popover .popover-content .note-color .dropdown-menu .btn-group .note-color-reset,.panel-heading.note-toolbar .note-color .dropdown-menu .btn-group .note-color-reset{width:100%;padding:0 3px;margin:3px;font-size:11px;cursor:pointer;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.note-popover .popover-content .note-color .dropdown-menu .btn-group .note-color-row,.panel-heading.note-toolbar .note-color .dropdown-menu .btn-group .note-color-row{height:20px}.note-popover .popover-content .note-color .dropdown-menu .btn-group .note-color-reset:hover,.panel-heading.note-toolbar .note-color .dropdown-menu .btn-group .note-color-reset:hover{background:#eee}.note-popover .popover-content .note-para .dropdown-menu,.panel-heading.note-toolbar .note-para .dropdown-menu{min-width:216px;padding:5px}.note-popover .popover-content .note-para .dropdown-menu>div:first-child,.panel-heading.note-toolbar .note-para .dropdown-menu>div:first-child{margin-right:5px}.note-popover .popover-content .dropdown-menu,.panel-heading.note-toolbar .dropdown-menu{min-width:90px}.note-popover .popover-content .dropdown-menu.right,.panel-heading.note-toolbar .dropdown-menu.right{right:0;left:auto}.note-popover .popover-content .dropdown-menu.right::before,.panel-heading.note-toolbar .dropdown-menu.right::before{right:9px;left:auto !important}.note-popover .popover-content .dropdown-menu.right::after,.panel-heading.note-toolbar .dropdown-menu.right::after{right:10px;left:auto !important}.note-popover .popover-content .dropdown-menu.note-check li a i,.panel-heading.note-toolbar .dropdown-menu.note-check li a i{color:#00bfff;visibility:hidden}.note-popover .popover-content .dropdown-menu.note-check li a.checked i,.panel-heading.note-toolbar .dropdown-menu.note-check li a.checked i{visibility:visible}.note-popover .popover-content .note-fontsize-10,.panel-heading.note-toolbar .note-fontsize-10{font-size:10px}.note-popover .popover-content .note-color-palette,.panel-heading.note-toolbar .note-color-palette{line-height:1}.note-popover .popover-content .note-color-palette div .note-color-btn,.panel-heading.note-toolbar .note-color-palette div .note-color-btn{width:20px;height:20px;padding:0;margin:0;border:1px solid #fff}.note-popover .popover-content .note-color-palette div .note-color-btn:hover,.panel-heading.note-toolbar .note-color-palette div .note-color-btn:hover{border:1px solid #000}.note-dialog>div{display:none}.note-dialog .form-group{margin-right:0;margin-left:0}.note-dialog .note-modal-form{margin:0}.note-dialog .note-image-dialog .note-dropzone{min-height:100px;margin-bottom:10px;font-size:30px;line-height:4;color:#d3d3d3;text-align:center;border:4px dashed #d3d3d3}@-moz-document url-prefix(){.note-image-input{height:auto}}.note-placeholder{position:absolute;display:none;color:gray}.note-handle .note-control-selection{position:absolute;display:none;border:1px solid #000}.note-handle .note-control-selection>div{position:absolute}.note-handle .note-control-selection .note-control-selection-bg{width:100%;height:100%;background-color:#000;-webkit-opacity:.3;-khtml-opacity:.3;-moz-opacity:.3;opacity:.3;-ms-filter:alpha(opacity=30);filter:alpha(opacity=30)}.note-handle .note-control-selection .note-control-handle,.note-handle .note-control-selection .note-control-holder{width:7px;height:7px;border:1px solid #000}.note-handle .note-control-selection .note-control-sizing{width:7px;height:7px;background-color:#fff;border:1px solid #000}.note-handle .note-control-selection .note-control-nw{top:-5px;left:-5px;border-right:0;border-bottom:0}.note-handle .note-control-selection .note-control-ne{top:-5px;right:-5px;border-bottom:0;border-left:none}.note-handle .note-control-selection .note-control-sw{bottom:-5px;left:-5px;border-top:0;border-right:0}.note-handle .note-control-selection .note-control-se{right:-5px;bottom:-5px;cursor:se-resize}.note-handle .note-control-selection .note-control-se.note-control-holder{cursor:default;border-top:0;border-left:none}.note-handle .note-control-selection .note-control-selection-info{right:0;bottom:0;padding:5px;margin:5px;font-size:12px;color:#fff;background-color:#000;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-opacity:.7;-khtml-opacity:.7;-moz-opacity:.7;opacity:.7;-ms-filter:alpha(opacity=70);filter:alpha(opacity=70)}.note-hint-popover{min-width:100px;padding:2px}.note-hint-popover .popover-content{max-height:150px;padding:3px;overflow:auto}.note-hint-popover .popover-content .note-hint-group .note-hint-item{display:block !important;padding:3px}.note-hint-popover .popover-content .note-hint-group .note-hint-item.active,.note-hint-popover .popover-content .note-hint-group .note-hint-item:hover{display:block;clear:both;font-weight:400;line-height:1.4;color:#fff;text-decoration:none;white-space:nowrap;cursor:pointer;background-color:#428bca;outline:0}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format("embedded-opentype"),url(../fonts/glyphicons-halflings-regular.woff2) format("woff2"),url(../fonts/glyphicons-halflings-regular.woff) format("woff"),url(../fonts/glyphicons-halflings-regular.ttf) format("truetype"),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format("svg")}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before,.glyphicon-btc:before,.glyphicon-xbt:before{content:"\e227"}.glyphicon-jpy:before,.glyphicon-yen:before{content:"\00a5"}.glyphicon-rub:before,.glyphicon-ruble:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}/*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0}mark{background:#ff0;color:#000}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{background:0 0 !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100% !important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff !important}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000 !important}.label{border:1px solid #000}.table{border-collapse:collapse !important}.table td,.table th{background-color:#fff !important}.table-bordered td,.table-bordered th{border:1px solid #ddd !important}}*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:transparent}body{font-family:roboto;font-size:16px;line-height:1.42857143;color:#5e5e5e;background-color:#edecec}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#2196f3;text-decoration:none}a:focus,a:hover{color:#0a6ebd;text-decoration:none}a:focus{outline-offset:-2px;outline:0 !important}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:2px}.img-thumbnail{padding:3px;line-height:1.42857143;background-color:#fff;border:1px solid #ededed;border-radius:2px;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:18px;margin-bottom:18px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:#000}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:18px;margin-bottom:9px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:9px;margin-bottom:9px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:33px}.h2,h2{font-size:27px}.h3,h3{font-size:23px}.h4,h4{font-size:17px}.h5,h5{font-size:13px}.h6,h6{font-size:12px}p{margin:0 0 9px}.lead{margin-bottom:18px;font-size:14px;font-weight:300;line-height:1.4}@media (min-width: 768px){.lead{font-size:19.5px}}.small,small{font-size:92%}.mark,mark{background-color:#fcf8e3;padding:.2em}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#2196f3}a.text-primary:focus,a.text-primary:hover{color:#0c7cd5}.text-success{color:#4caf50}a.text-success:focus,a.text-success:hover{color:#3d8b40}.text-info{color:#2196f3}a.text-info:focus,a.text-info:hover{color:#0c7cd5}.text-warning{color:#ff9800}a.text-warning:focus,a.text-warning:hover{color:#cc7a00}.text-danger{color:#f44336}a.text-danger:focus,a.text-danger:hover{color:#ea1c0d}.bg-primary{color:#fff;background-color:#2196f3}a.bg-primary:focus,a.bg-primary:hover{background-color:#0c7cd5}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:8px;margin:36px 0 18px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:9px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none;margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-top:0;margin-bottom:18px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width: 768px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:9px 18px;margin:0 0 18px;font-size:16.25px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:18px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:2px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:2px;box-shadow:inset 0 -1px 0 rgba(0,0,0,0.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;box-shadow:none}pre{display:block;padding:8.5px;margin:0 0 9px;font-size:12px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;color:#333;background-color:#f5f5f5;border:1px solid #ccc;border-radius:2px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container,.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}@media (min-width: 768px){.container{width:calc(100% - 30px)}}@media (min-width: 992px){.container{width:calc(100% - 30px)}}@media (min-width: 1200px){.container{width:1170px}}.row{margin-left:-15px;margin-right:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width: 768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width: 992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width: 1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:10px;padding-bottom:10px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:10px;line-height:1.42857143;vertical-align:top;border-top:1px solid #f0f0f0}.table>thead>tr>th{border-bottom:2px solid #f0f0f0}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #f0f0f0}.table .table{background-color:#edecec}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:7px}.table-bordered,.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #f0f0f0}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f4f4f4}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#fffcbe}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#fffba4}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{overflow-x:auto;min-height:.01%}@media screen and (max-width: 767px){.table-responsive{width:100%;margin-bottom:13.5px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #f0f0f0}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{padding:0;margin:0;border:0;min-width:0}legend{display:block;width:100%;padding:0;margin-bottom:18px;font-size:19.5px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline-offset:-2px;outline:0 !important}output{display:block;padding-top:7px;font-size:13px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:35px;font-size:13px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-moz-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#b4b4b4;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(180,180,180,0.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio: 0){input[type=date],input[type=datetime-local],input[type=month],input[type=time]{line-height:35px}.input-group-sm input[type=date],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],.input-group-sm input[type=time],input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],.input-group-lg input[type=time],input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{line-height:40px}}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:18px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0}.checkbox-inline.disabled,.checkbox.disabled label,.radio-inline.disabled,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio label,fieldset[disabled] .radio-inline,fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0;min-height:31px}.form-control-static.input-lg,.form-control-static.input-sm{padding-left:0;padding-right:0}.input-sm{height:30px;padding:5px 10px;line-height:1.5;border-radius:2px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:2px}select.form-group-sm .form-control{height:30px;line-height:30px}select[multiple].form-group-sm .form-control,textarea.form-group-sm .form-control{height:auto}.form-group-sm .form-control-static{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;min-height:30px}.input-lg{height:40px;padding:10px 16px;font-size:17px;line-height:1.3333333;border-radius:0}select.input-lg{height:40px;line-height:40px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:40px;padding:10px 16px;font-size:17px;line-height:1.3333333;border-radius:0}select.form-group-lg .form-control{height:40px;line-height:40px}select[multiple].form-group-lg .form-control,textarea.form-group-lg .form-control{height:auto}.form-group-lg .form-control-static{height:40px;padding:10px 16px;font-size:17px;line-height:1.3333333;min-height:35px}.has-feedback{position:relative}.has-feedback .form-control{padding-right:43.75px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:35px;height:35px;line-height:35px;text-align:center;pointer-events:none}.input-lg+.form-control-feedback{width:40px;height:40px;line-height:40px}.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-feedback label ~ .form-control-feedback{top:23px}.has-feedback label.sr-only ~ .form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#9e9e9e}@media (min-width: 768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{margin-top:0;margin-bottom:0;padding-top:7px}.form-horizontal .checkbox,.form-horizontal .radio{min-height:25px}.form-horizontal .form-group{margin-left:-15px;margin-right:-15px}@media (min-width: 768px){.form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:7px}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width: 768px){.form-horizontal .form-group-lg .control-label{padding-top:14.33px}}@media (min-width: 768px){.form-horizontal .form-group-sm .control-label{padding-top:6px}}.btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;touch-action:manipulation;cursor:pointer;background-image:none;white-space:nowrap;padding:6px 12px;font-size:13px;line-height:1.42857143;border-radius:2px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline-offset:-2px;outline:0 !important}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default.focus,.btn-default:active,.btn-default:focus,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#333;background-color:#fff;border-color:transparent}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#2196f3;border-color:#0d8aee}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#0a68b4;border-color:#064475}.btn-primary.active,.btn-primary.focus,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#2196f3;border-color:transparent}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#2196f3;border-color:#0d8aee}.btn-primary .badge{color:#2196f3;background-color:#fff}.btn-success{color:#fff;background-color:#4caf50;border-color:#449d48}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#327334;border-color:#1e441f}.btn-success.active,.btn-success.focus,.btn-success:active,.btn-success:focus,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#4caf50;border-color:transparent}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#4caf50;border-color:#449d48}.btn-success .badge{color:#4caf50;background-color:#fff}.btn-info{color:#fff;background-color:#00bcd4;border-color:#00a5bb}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#006f7d;border-color:#00343b}.btn-info.active,.btn-info.focus,.btn-info:active,.btn-info:focus,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#00bcd4;border-color:transparent}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#00bcd4;border-color:#00a5bb}.btn-info .badge{color:#00bcd4;background-color:#fff}.btn-warning{color:#fff;background-color:#ff9800;border-color:#e68900}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#a86400;border-color:#663d00}.btn-warning.active,.btn-warning.focus,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ff9800;border-color:transparent}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#ff9800;border-color:#e68900}.btn-warning .badge{color:#ff9800;background-color:#fff}.btn-danger{color:#fff;background-color:#f44336;border-color:#f32c1e}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#c8180b;border-color:#891008}.btn-danger.active,.btn-danger.focus,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#f44336;border-color:transparent}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#f44336;border-color:#f32c1e}.btn-danger .badge{color:#f44336;background-color:#fff}.btn-link{font-weight:400}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#0a6ebd;text-decoration:none;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-md>.btn{font-size:15px}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:17px;line-height:1.3333333;border-radius:2px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:2px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-moz-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-property:height,visibility;transition-property:height,visibility;-webkit-transition-duration:.35s;transition-duration:.35s;-webkit-transition-timing-function:ease;transition-timing-function:ease}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:9;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:13px;text-align:left;background-color:#fff;border:1px solid transparent;border-radius:2px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,0.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:8px 0;overflow:hidden;background-color:rgba(0,0,0,0.08)}.dropdown-menu>li>a{display:block;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{text-decoration:none;color:#333;background-color:rgba(0,0,0,0.075)}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#333;text-decoration:none;outline:0;background-color:rgba(0,0,0,0.075)}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#e4e4e4}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);cursor:not-allowed}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{left:auto;right:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{display:block;font-size:12px;line-height:1.42857143;white-space:nowrap}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:-1}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width: 768px){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:2px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-bottom-left-radius:2px;border-top-right-radius:0;border-top-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0, 0, 0, 0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:40px;padding:10px 16px;font-size:17px;line-height:1.3333333;border-radius:0}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:40px;line-height:40px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:2px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:13px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:transparent;border:1px solid transparent;border-radius:2px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:2px}.input-group-addon.input-lg{padding:10px 16px;font-size:17px;border-radius:2px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{margin-bottom:0;padding-left:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;background-color:transparent;cursor:not-allowed}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#2196f3}.nav .nav-divider{height:1px;margin:8px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #fff}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:2px 2px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #fff}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;background-color:transparent;border:1px solid #fff;border-bottom-color:transparent;cursor:default}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width: 768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:2px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width: 768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:2px 2px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#edecec}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:2px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#2196f3}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width: 768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:2px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width: 768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:2px 2px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#edecec}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:18px;border:1px solid transparent}@media (min-width: 768px){.navbar{border-radius:2px}}@media (min-width: 768px){.navbar-header{float:left}}.navbar-collapse{overflow-x:visible;padding-right:15px;padding-left:15px;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,0.1);-webkit-overflow-scrolling:touch}.navbar-collapse.in{overflow-y:auto}@media (min-width: 768px){.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block !important;height:auto !important;padding-bottom:0;overflow:visible !important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-left:0;padding-right:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width: 480px) and (orientation: landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width: 768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width: 768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width: 768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;padding:16px 15px;font-size:17px;line-height:18px;height:50px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width: 768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;margin-right:15px;padding:9px 10px;margin-top:8px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:2px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width: 768px){.navbar-toggle{display:none}}.navbar-nav{margin:8px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:18px}@media (max-width: 767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:18px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width: 768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:16px;padding-bottom:16px}}.navbar-form{margin:7.5px -15px;padding:10px 15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1)}@media (min-width: 768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width: 767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width: 768px){.navbar-form{width:auto;border:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-radius:2px 2px 0 0}.navbar-btn{margin-top:7.5px;margin-bottom:7.5px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:16px;margin-bottom:16px}@media (min-width: 768px){.navbar-text{float:left;margin-left:15px;margin-right:15px}}@media (min-width: 768px){.navbar-left{float:left !important}.navbar-right{float:right !important;margin-right:-15px}.navbar-right ~ .navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-nav>li>a,.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{background-color:#e7e7e7;color:#555}@media (max-width: 767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>li>a,.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{background-color:#080808;color:#fff}@media (max-width: 767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 20px;margin-bottom:18px;list-style:none;background-color:transparent}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#ccc}.breadcrumb>.active{color:#7c7c7c}.pagination{display:inline-block;padding-left:0;margin:18px 0}.pagination>li>a,.pagination>li>span{float:left;text-decoration:none;color:#7e7e7e;background-color:#e2e2e2;border:1px solid #fff;margin-left:-1px}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:2px;border-top-left-radius:2px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-bottom-right-radius:2px;border-top-right-radius:2px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{color:#333;background-color:#d7d7d7;border-color:#fff}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:2;color:#fff;background-color:#00bcd4;border-color:#fff;cursor:default}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;background-color:#e2e2e2;border-color:#fff;cursor:not-allowed}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:17px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:2px;border-top-left-radius:2px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-bottom-right-radius:2px;border-top-right-radius:2px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:2px;border-top-left-radius:2px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-bottom-right-radius:2px;border-top-right-radius:2px}.pager{padding-left:0;margin:18px 0;list-style:none;text-align:center}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#e2e2e2;border:1px solid #fff;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#d7d7d7}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;background-color:#e2e2e2;cursor:not-allowed}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#2196f3}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#0c7cd5}.label-success{background-color:#4caf50}.label-success[href]:focus,.label-success[href]:hover{background-color:#3d8b40}.label-info{background-color:#00bcd4}.label-info[href]:focus,.label-info[href]:hover{background-color:#008fa1}.label-warning{background-color:#ff9800}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#cc7a00}.label-danger{background-color:#f44336}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#ea1c0d}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:400;color:#fff;line-height:1;vertical-align:baseline;white-space:nowrap;text-align:center;background-color:#2196f3;border-radius:2px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#fff;background-color:#2196f3}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{margin-bottom:30px;color:inherit;background-color:#f7f7f7}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:20px;font-weight:200}.jumbotron>hr{border-top-color:#dedede}.container .jumbotron,.container-fluid .jumbotron{border-radius:2px}.jumbotron .container{max-width:100%}@media screen and (min-width: 768px){.jumbotron{padding:48px 0}.container .jumbotron,.container-fluid .jumbotron{padding-left:60px;padding-right:60px}.jumbotron .h1,.jumbotron h1{font-size:59px}}.thumbnail{display:block;padding:3px;margin-bottom:18px;line-height:1.42857143;background-color:#fff;border:1px solid #ededed;border-radius:2px;-webkit-transition:border .2s ease-in-out;-moz-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-left:auto;margin-right:auto}.thumbnail .caption{padding:9px;color:#5e5e5e}.alert{padding:15px;margin-bottom:18px;border:1px solid transparent;border-radius:2px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{background-color:#dff0d8;border-color:#dff0d8;color:#4caf50}.alert-success hr{border-top-color:#d0e9c6}.alert-success .alert-link{color:#3d8b40}.alert-info{background-color:#d9edf7;border-color:#d9edf7;color:#2196f3}.alert-info hr{border-top-color:#c4e3f3}.alert-info .alert-link{color:#0c7cd5}.alert-warning{background-color:#ffedd6;border-color:#ffedd6;color:#ff9800}.alert-warning hr{border-top-color:#ffe2bd}.alert-warning .alert-link{color:#cc7a00}.alert-danger{background-color:#f2dede;border-color:#f2dede;color:#f44336}.alert-danger hr{border-top-color:#ebcccc}.alert-danger .alert-link{color:#ea1c0d}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{overflow:hidden;background-color:#f5f5f5;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:18px;color:#fff;text-align:center;background-color:#2196f3;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-transition:width .6s ease;-moz-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#4caf50}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)}.progress-bar-info{background-color:#00bcd4}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)}.progress-bar-warning{background-color:#ff9800}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)}.progress-bar-danger{background-color:#f44336}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{zoom:1;overflow:hidden}.media-object{display:block}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0}.media-list{padding-left:0;list-style:none}.list-group{margin-bottom:20px;padding-left:0}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #e9e9e9}.list-group-item:first-child{border-top-right-radius:2px;border-top-left-radius:2px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:2px;border-bottom-left-radius:2px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover{text-decoration:none;color:#555;background-color:#f5f5f5}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{background-color:#fff;color:#b5b4b4;cursor:not-allowed}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#b5b4b4}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#000;background-color:#f5f5f5;border-color:#e9e9e9}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#fff}.list-group-item-success{color:#4caf50;background-color:#dff0d8}a.list-group-item-success{color:#4caf50}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover{color:#4caf50;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover{color:#fff;background-color:#4caf50;border-color:#4caf50}.list-group-item-info{color:#2196f3;background-color:#d9edf7}a.list-group-item-info{color:#2196f3}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover{color:#2196f3;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover{color:#fff;background-color:#2196f3;border-color:#2196f3}.list-group-item-warning{color:#ff9800;background-color:#fcf8e3}a.list-group-item-warning{color:#ff9800}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover{color:#ff9800;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover{color:#fff;background-color:#ff9800;border-color:#ff9800}.list-group-item-danger{color:#f44336;background-color:#f2dede}a.list-group-item-danger{color:#f44336}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover{color:#f44336;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{color:#fff;background-color:#f44336;border-color:#f44336}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:18px;background-color:#fff;border-radius:2px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.05)}.panel-body{padding:15px}.panel-heading{border-bottom:1px solid transparent;border-top-right-radius:1px;border-top-left-radius:1px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:15px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:1px;border-bottom-left-radius:1px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-right-radius:1px;border-top-left-radius:1px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:1px;border-bottom-left-radius:1px}.list-group+.panel-footer,.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-left:15px;padding-right:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-right-radius:1px;border-top-left-radius:1px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:1px;border-top-right-radius:1px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:1px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:1px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:1px;border-bottom-left-radius:1px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-left-radius:1px;border-bottom-right-radius:1px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:1px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:1px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #f0f0f0}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-responsive{border:0;margin-bottom:0}.panel-group{margin-bottom:18px}.panel-group .panel{margin-bottom:0;border-radius:2px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#2196f3}.panel-primary>.panel-heading{color:#fff;background-color:#2196f3;border-color:#2196f3}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#2196f3}.panel-primary>.panel-heading .badge{color:#2196f3;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#2196f3}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#4caf50;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#4caf50}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#2196f3;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#2196f3}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#ff9800;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#ff9800}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#f44336;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#f44336}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:2px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,0.15)}.well-lg{padding:24px;border-radius:2px}.well-sm{padding:9px;border-radius:2px}.close{float:right;font-size:19.5px;line-height:1;color:#000}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal{display:none;overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transform:translate(0, -25%);-ms-transform:translate(0, -25%);-o-transform:translate(0, -25%);transform:translate(0, -25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0, 0);-ms-transform:translate(0, 0);-o-transform:translate(0, 0);transform:translate(0, 0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border:1px solid transparent;border-radius:2px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,0.5);box-shadow:0 3px 9px rgba(0,0,0,0.5);background-clip:padding-box;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:0;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{padding:15px;border-bottom:1px solid transparent;min-height:#0f0f0f}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:transparent}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid transparent}.modal-footer .btn+.btn{margin-left:5px;margin-bottom:0}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width: 768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,0.5);box-shadow:0 5px 15px rgba(0,0,0,0.5)}.modal-sm{width:300px}}@media (min-width: 992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:roboto;font-size:12px;font-weight:400;line-height:1.4;opacity:0;filter:alpha(opacity=0)}.tooltip.in{opacity:1;filter:alpha(opacity=100)}.tooltip.top{margin-top:-3px;padding:5px 0}.tooltip.right{margin-left:3px;padding:0 5px}.tooltip.bottom{margin-top:3px;padding:5px 0}.tooltip.left{margin-left:-3px;padding:0 5px}.tooltip-inner{max-width:200px;color:#fff;text-align:center;text-decoration:none;background-color:#737373}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#737373}.tooltip.top-left .tooltip-arrow{bottom:0;right:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#737373}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#737373}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#737373}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#737373}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#737373}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#737373}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#737373}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:roboto;font-size:13px;font-weight:400;line-height:1.42857143;text-align:left;background-color:#fff;background-clip:padding-box;border:1px solid #fff;border-radius:2px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);white-space:normal}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{margin:0;background-color:#fff;border-radius:1px 1px 0 0}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{border-width:10px;content:""}.popover.top>.arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#fff;bottom:-11px}.popover.top>.arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#fff}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#fff}.popover.right>.arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#fff}.popover.bottom>.arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#fff;top:-11px}.popover.bottom>.arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#fff}.popover.left>.arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#fff;bottom:-10px}.carousel{position:relative}.carousel-inner{position:relative;overflow:hidden;width:100%}.carousel-inner>.item{display:none;position:relative;-webkit-transition:.6s ease-in-out left;-moz-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d), (-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-moz-transition:-moz-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000;-moz-perspective:1000;perspective:1000}.carousel-inner>.item.active.right,.carousel-inner>.item.next{-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);left:0}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);left:0}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);left:0}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;left:0;bottom:0;width:15%;opacity:.5;filter:alpha(opacity=50);font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6)}.carousel-control.left{background-image:-webkit-linear-gradient(left, rgba(0,0,0,0.5) 0, rgba(0,0,0,0.0001) 100%);background-image:-o-linear-gradient(left, rgba(0,0,0,0.5) 0, rgba(0,0,0,0.0001) 100%);background-image:linear-gradient(to right, rgba(0,0,0,0.5) 0, rgba(0,0,0,0.0001) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1)}.carousel-control.right{left:auto;right:0;background-image:-webkit-linear-gradient(left, rgba(0,0,0,0.0001) 0, rgba(0,0,0,0.5) 100%);background-image:-o-linear-gradient(left, rgba(0,0,0,0.0001) 0, rgba(0,0,0,0.5) 100%);background-image:linear-gradient(to right, rgba(0,0,0,0.0001) 0, rgba(0,0,0,0.5) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1)}.carousel-control:focus,.carousel-control:hover{outline:0;color:#fff;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;margin-top:-10px;line-height:1;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;margin-left:-30%;padding-left:0;list-style:none;text-align:center}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;border:1px solid #fff;border-radius:10px;cursor:pointer;background-color:transparent}.carousel-indicators .active{margin:0;width:12px;height:12px;background-color:#fff}.carousel-caption{position:absolute;left:15%;right:15%;bottom:20px;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width: 768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{left:20%;right:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{content:" ";display:table}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right !important}.pull-left{float:left !important}.hide{display:none !important}.show{display:block !important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none !important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-print,.visible-print-block,.visible-print-inline,.visible-print-inline-block,.visible-sm,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none !important}@media (max-width: 767px){.visible-xs{display:block !important}table.visible-xs{display:table}tr.visible-xs{display:table-row !important}td.visible-xs,th.visible-xs{display:table-cell !important}}@media (max-width: 767px){.visible-xs-block{display:block !important}}@media (max-width: 767px){.visible-xs-inline{display:inline !important}}@media (max-width: 767px){.visible-xs-inline-block{display:inline-block !important}}@media (min-width: 768px) and (max-width: 991px){.visible-sm{display:block !important}table.visible-sm{display:table}tr.visible-sm{display:table-row !important}td.visible-sm,th.visible-sm{display:table-cell !important}}@media (min-width: 768px) and (max-width: 991px){.visible-sm-block{display:block !important}}@media (min-width: 768px) and (max-width: 991px){.visible-sm-inline{display:inline !important}}@media (min-width: 768px) and (max-width: 991px){.visible-sm-inline-block{display:inline-block !important}}@media (min-width: 992px) and (max-width: 1199px){.visible-md{display:block !important}table.visible-md{display:table}tr.visible-md{display:table-row !important}td.visible-md,th.visible-md{display:table-cell !important}}@media (min-width: 992px) and (max-width: 1199px){.visible-md-block{display:block !important}}@media (min-width: 992px) and (max-width: 1199px){.visible-md-inline{display:inline !important}}@media (min-width: 992px) and (max-width: 1199px){.visible-md-inline-block{display:inline-block !important}}@media (min-width: 1200px){.visible-lg{display:block !important}table.visible-lg{display:table}tr.visible-lg{display:table-row !important}td.visible-lg,th.visible-lg{display:table-cell !important}}@media (min-width: 1200px){.visible-lg-block{display:block !important}}@media (min-width: 1200px){.visible-lg-inline{display:inline !important}}@media (min-width: 1200px){.visible-lg-inline-block{display:inline-block !important}}@media (max-width: 767px){.hidden-xs{display:none !important}}@media (min-width: 768px) and (max-width: 991px){.hidden-sm{display:none !important}}@media (min-width: 992px) and (max-width: 1199px){.hidden-md{display:none !important}}@media (min-width: 1200px){.hidden-lg{display:none !important}}@media print{.visible-print{display:block !important}table.visible-print{display:table}tr.visible-print{display:table-row !important}td.visible-print,th.visible-print{display:table-cell !important}}@media print{.visible-print-block{display:block !important}}@media print{.visible-print-inline{display:inline !important}}@media print{.visible-print-inline-block{display:inline-block !important}}@media print{.hidden-print{display:none !important}}@font-face{font-family:weather-icons;src:url(../fonts/weather-icons/weather-icons.eot);src:url(../fonts/weather-icons/weather-icons.eot?#iefix) format("embedded-opentype"),url(../fonts/weather-icons/weather-icons.woff) format("woff"),url(../fonts/weather-icons/weather-icons.ttf) format("truetype"),url(../fonts/weather-icons/weather-icons.svg#icon) format("svg");font-weight:400;font-style:normal}#weather-widget [class*=icon-]{font-family:weather-icons;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-0:before{content:":"}.icon-1:before{content:"p"}.icon-2:before{content:"S"}.icon-3:before{content:"Q"}.icon-4:before{content:"S"}.icon-5:before,.icon-6:before,.icon-7:before,.icon-8:before{content:"W"}.icon-9:before{content:"I"}.icon-10:before{content:"W"}.icon-11:before,.icon-12:before,.icon-13:before,.icon-14:before{content:"I"}.icon-15:before{content:"W"}.icon-16:before{content:"I"}.icon-17:before{content:"W"}.icon-18:before{content:"U"}.icon-19:before,.icon-20:before,.icon-21:before,.icon-22:before,.icon-23:before{content:"Z"}.icon-24:before,.icon-25:before{content:"E"}.icon-26:before{content:"3"}.icon-27:before{content:"a"}.icon-28:before{content:"A"}.icon-29:before{content:"a"}.icon-30:before{content:"A"}.icon-31:before{content:"6"}.icon-32:before{content:"1"}.icon-33:before{content:"6"}.icon-34:before{content:"1"}.icon-35:before{content:"W"}.icon-36:before{content:"1"}.icon-37:before,.icon-38:before,.icon-39:before{content:"S"}.icon-40:before{content:"M"}.icon-41:before{content:"W"}.icon-42:before{content:"I"}.icon-43:before{content:"W"}.icon-44:before{content:"a"}.icon-45:before{content:"S"}.icon-46:before{content:"U"}.icon-47:before{content:"S"}.chosen-select,.chosen-select-deselect{width:100%}.chosen-container{display:inline-block;font-size:13px;position:relative;vertical-align:middle}.chosen-container .chosen-drop{background:#fff;border-bottom-right-radius:0;border-bottom-left-radius:0;-webkit-box-shadow:0 2px 10px rgba(0,0,0,0.2);box-shadow:0 2px 10px rgba(0,0,0,0.2);position:absolute;top:100%;z-index:1060}.chosen-container.chosen-with-drop .chosen-drop{left:0;right:0}.chosen-container .chosen-results{color:#555;max-height:240px;position:relative;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.chosen-container .chosen-results li{display:none;line-height:1.42857143;list-style:none;margin:0;padding:5px 6px}.chosen-container .chosen-results li em{background:#feffde;font-style:normal}.chosen-container .chosen-results li.group-result{display:list-item;cursor:default;color:#999;font-weight:700}.chosen-container .chosen-results li.group-option{padding-left:15px}.chosen-container .chosen-results li.active-result{cursor:pointer;display:list-item}.chosen-container .chosen-results li.highlighted{background-color:#2196f3;background-image:none;color:#fff}.chosen-container .chosen-results li.highlighted em{background:0 0}.chosen-container .chosen-results li.disabled-result{display:list-item;color:#777}.chosen-container .chosen-results .no-results{background:#eee;display:list-item}.chosen-container .chosen-results-scroll{background:#fff;margin:0 4px;position:absolute;text-align:center;width:321px;z-index:1}.chosen-container .chosen-results-scroll span{display:inline-block;height:1.42857143;text-indent:-5000px;width:9px}.chosen-container .chosen-results-scroll-down{bottom:0}.chosen-container .chosen-results-scroll-down span{background:url("") -4px -3px no-repeat}.chosen-container .chosen-results-scroll-up span{background:url("") -22px -3px no-repeat}.chosen-container-single .chosen-single{background-color:#fff;-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;border:1px solid #e0e0e0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;color:#555;display:block;height:35px;overflow:hidden;line-height:35px;position:relative;text-decoration:none;white-space:nowrap}.chosen-container-single .chosen-single span{display:block;margin-right:26px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chosen-container-single .chosen-single abbr{background:url("") right top no-repeat;display:block;font-size:1px;height:10px;position:absolute;right:26px;top:12.5px;width:12px}.chosen-container-single .chosen-single abbr:hover{background-position:right -11px}.chosen-container-single .chosen-single.chosen-disabled .chosen-single abbr:hover{background-position:right 2px}.chosen-container-single .chosen-single div{display:block;height:100%;position:absolute;top:0;right:0;width:18px}.chosen-container-single .chosen-single div b{background:url("") 0 7px no-repeat;display:block;height:100%;width:100%}.chosen-container-single .chosen-default{color:#777}.chosen-container-single .chosen-search{white-space:nowrap;z-index:9}.chosen-container-single .chosen-search input[type=text]{background:url("") 100% -20px no-repeat,#fff;border-radius:0;-webkit-box-shadow:none;box-shadow:none;margin:1px 0;padding:4px 20px 4px 4px;width:100%}.chosen-container-single .chosen-drop{margin-top:-1px;border-bottom-right-radius:0;border-bottom-left-radius:0;-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.chosen-container-single-nosearch .chosen-search input{position:absolute;left:-9000px}.chosen-container-multi .chosen-choices{background-color:#fff;border:1px solid #e0e0e0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:text;height:auto !important;height:1%;margin:0;overflow:hidden;padding:0;position:relative}.chosen-container-multi .chosen-choices li{float:left;list-style:none}.chosen-container-multi .chosen-choices .search-field{margin:0;padding:0;white-space:nowrap}.chosen-container-multi .chosen-choices .search-field input[type=text]{background:0 0 !important;border:0 !important;-webkit-box-shadow:none;box-shadow:none;color:#555;height:33px;margin:0;padding:4px;outline:0}.chosen-container-multi .chosen-choices .search-field .default{color:#999}.chosen-container-multi .chosen-choices .search-choice{-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;background-color:#eee;border:1px solid #e0e0e0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;color:#333;cursor:default;line-height:13px;margin:6px 0 3px 5px;padding:3px 20px 3px 5px;position:relative}.chosen-container-multi .chosen-choices .search-choice .search-choice-close{background:url("") right top no-repeat;display:block;font-size:1px;height:10px;position:absolute;right:4px;top:5px;width:12px;cursor:pointer}.chosen-container-multi .chosen-choices .search-choice .search-choice-close:hover{background-position:right -11px}.chosen-container-multi .chosen-choices .search-choice-focus{background:#d4d4d4}.chosen-container-multi .chosen-choices .search-choice-focus .search-choice-close{background-position:right -11px}.chosen-container-multi .chosen-results{margin:0;padding:0}.chosen-container-multi .chosen-drop .result-selected{display:none}.chosen-container-active .chosen-single{border:1px solid #b4b4b4;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:border linear .2s,box-shadow linear .2s;-moz-transition:border linear .2s,box-shadow linear .2s;-o-transition:border linear .2s,box-shadow linear .2s;transition:border linear .2s,box-shadow linear .2s}.chosen-container-active.chosen-with-drop .chosen-single{background-color:#fff;border-bottom-right-radius:0;border-bottom-left-radius:0;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:border linear .2s,box-shadow linear .2s;-moz-transition:border linear .2s,box-shadow linear .2s;-o-transition:border linear .2s,box-shadow linear .2s;transition:border linear .2s,box-shadow linear .2s}.chosen-container-active.chosen-with-drop .chosen-single div{background:0 0;border-left:none}.chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 7px}.chosen-container-active .chosen-choices{border:1px solid #b4b4b4;border-bottom-right-radius:0;border-bottom-left-radius:0;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:border linear .2s,box-shadow linear .2s;-moz-transition:border linear .2s,box-shadow linear .2s;-o-transition:border linear .2s,box-shadow linear .2s;transition:border linear .2s,box-shadow linear .2s}.chosen-container-active .chosen-choices .search-field input[type=text]{color:#111 !important}.chosen-container-active.chosen-with-drop .chosen-choices{border-bottom-right-radius:0;border-bottom-left-radius:0}.chosen-disabled{cursor:default;opacity:0.5 !important}.chosen-disabled .chosen-choices .search-choice .search-choice-close,.chosen-disabled .chosen-single{cursor:default}.chosen-rtl{text-align:right}.chosen-rtl .chosen-single{padding:0 8px 0 0;overflow:visible}.chosen-rtl .chosen-single span{margin-left:26px;margin-right:0;direction:rtl}.chosen-rtl .chosen-single div{left:7px;right:auto}.chosen-rtl .chosen-single abbr{left:26px;right:auto}.chosen-rtl .chosen-choices .search-field input[type=text]{direction:rtl}.chosen-rtl .chosen-choices li{float:right}.chosen-rtl .chosen-choices .search-choice{margin:6px 5px 3px 0;padding:3px 5px 3px 19px}.chosen-rtl .chosen-choices .search-choice .search-choice-close{background-position:right top;left:4px;right:auto}.chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chosen-rtl .chosen-results .group-option{padding-left:0;padding-right:15px}.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.chosen-rtl .chosen-search input[type=text]{background:url("") -28px -20px no-repeat,#fff;direction:rtl;padding:4px 5px 4px 20px}.input-group .chosen-container:last-child .chosen-choices,.input-group .chosen-container:last-child .chosen-default,.input-group .chosen-container:last-child .chosen-single{border-top-left-radius:0;border-bottom-left-radius:0}.input-group .chosen-container:not(:last-child) .chosen-choices,.input-group .chosen-container:not(:last-child) .chosen-default,.input-group .chosen-container:not(:last-child) .chosen-single{border-top-right-radius:0;border-bottom-right-radius:0}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 2dppx){.chosen-container .chosen-results-scroll-down span,.chosen-container .chosen-results-scroll-up span,.chosen-container-multi .chosen-choices .search-choice .search-choice-close,.chosen-container-single .chosen-search input[type=text],.chosen-container-single .chosen-single abbr,.chosen-container-single .chosen-single div b,.chosen-rtl .chosen-search input[type=text]{background-image:url("") !important;background-size:52px 37px !important;background-repeat:no-repeat !important}}.bootstrap-select{width:220px \0}.bootstrap-select>.btn{font-size:16px;width:100%;padding-right:25px}.error .bootstrap-select .btn{border:1px solid #b94a48}.control-group.error .bootstrap-select .dropdown-toggle{border-color:#b94a48}.bootstrap-select.fit-width{width:auto !important}.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn){width:220px}.bootstrap-select.form-control{margin-bottom:0;padding:0;border:none}.bootstrap-select.form-control:not([class*=col-]){width:100%}.bootstrap-select.btn-group:not(.input-group-btn),.bootstrap-select.btn-group[class*=col-]{float:none;display:inline-block;margin-left:0}.bootstrap-select.btn-group.dropdown-menu-right,.bootstrap-select.btn-group[class*=col-].dropdown-menu-right,.row-fluid .bootstrap-select.btn-group[class*=col-].dropdown-menu-right{float:right}.form-group .bootstrap-select.btn-group,.form-horizontal .bootstrap-select.btn-group,.form-inline .bootstrap-select.btn-group,.form-search .bootstrap-select.btn-group{margin-bottom:0}.form-group-lg .bootstrap-select.btn-group.form-control,.form-group-sm .bootstrap-select.btn-group.form-control{padding:0}.form-inline .bootstrap-select.btn-group .form-control{width:100%}.input-append .bootstrap-select.btn-group{margin-left:-1px}.input-prepend .bootstrap-select.btn-group{margin-right:-1px}.bootstrap-select.btn-group>.disabled{cursor:not-allowed}.bootstrap-select.btn-group>.disabled:focus{outline:0 !important}.bootstrap-select.btn-group .btn .filter-option{display:inline-block;overflow:hidden;width:100%;text-align:left}.bootstrap-select.btn-group .btn .caret{position:absolute;top:50%;right:12px;margin-top:-2px;vertical-align:middle}.bootstrap-select.btn-group[class*=col-] .btn{width:100%}.bootstrap-select.btn-group .dropdown-menu{min-width:100%;z-index:1035;box-sizing:border-box}.bootstrap-select.btn-group .dropdown-menu.inner{position:static;border:0;padding:0;margin:0;border-radius:0;box-shadow:none}.bootstrap-select.btn-group .dropdown-menu li{position:relative}.bootstrap-select.btn-group .dropdown-menu li.active:not(.disabled) a small,.bootstrap-select.btn-group .dropdown-menu li:not(.disabled) a:focus small,.bootstrap-select.btn-group .dropdown-menu li:not(.disabled) a:hover small{color:#64b1d8;color:rgba(100,177,216,0.4)}.bootstrap-select.btn-group .dropdown-menu li.disabled a{cursor:not-allowed}.bootstrap-select.btn-group .dropdown-menu li a{cursor:pointer}.bootstrap-select.btn-group .dropdown-menu li a.opt{position:relative}.bootstrap-select.btn-group .dropdown-menu li a span.check-mark{display:none}.bootstrap-select.btn-group .dropdown-menu li a span.text{display:inline-block}.bootstrap-select.btn-group .dropdown-menu li small{padding-left:.5em}.bootstrap-select.btn-group .dropdown-menu .notify{position:absolute;bottom:5px;width:96%;margin:0 2%;min-height:26px;padding:3px 5px;background:#f5f5f5;border:1px solid #e3e3e3;box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);pointer-events:none;opacity:.9;box-sizing:border-box}.bootstrap-select.btn-group .no-results{padding:3px;background:#f5f5f5;margin:0 5px}.bootstrap-select.btn-group.fit-width .btn .filter-option{position:static}.bootstrap-select.btn-group.fit-width .btn .caret{position:static;top:auto;margin-top:-1px}.bootstrap-select.btn-group.show-tick .dropdown-menu li.selected a span.check-mark{position:absolute;display:inline-block;right:15px;margin-top:5px}.bootstrap-select.btn-group.show-tick .dropdown-menu li a span.text{margin-right:34px}.bootstrap-select.show-menu-arrow.open>.btn{z-index:1036}.bootstrap-select.show-menu-arrow .dropdown-toggle:before{content:'';border-left:7px solid transparent;border-right:7px solid transparent;border-bottom-width:7px;border-bottom-style:solid;border-bottom-color:#ccc;border-bottom-color:rgba(204,204,204,0.2);position:absolute;bottom:-4px;left:9px;display:none}.bootstrap-select.show-menu-arrow .dropdown-toggle:after{content:'';border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;bottom:-4px;left:10px;display:none}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:before{bottom:auto;top:-3px;border-bottom:0;border-top-width:7px;border-top-style:solid;border-top-color:#ccc;border-top-color:rgba(204,204,204,0.2)}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:after{bottom:auto;top:-3px;border-top:6px solid #fff;border-bottom:0}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle:before{right:12px;left:auto}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle:after{right:13px;left:auto}.bootstrap-select.show-menu-arrow.open>.dropdown-toggle:after,.bootstrap-select.show-menu-arrow.open>.dropdown-toggle:before{display:block}.bs-actionsbox,.bs-searchbox{padding:4px 8px}.bs-actionsbox{float:left;width:100%;box-sizing:border-box}.bs-actionsbox .btn-group button{width:50%}.bs-searchbox+.bs-actionsbox{padding:0 8px 4px}.bs-searchbox input.form-control{margin-bottom:0;width:100%}.mobile-device{position:absolute;top:0;left:0;display:block !important;width:100%;height:100% !important;opacity:0} /*! * Datetimepicker for Bootstrap 3 //! version : 4.0.0 * https://github.com/Eonasdan/bootstrap-datetimepicker/ */.bootstrap-datetimepicker-widget.dropdown-menu{margin:2px 0;padding:4px;width:19em}@media (min-width: 768px){.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs{width:38em}}@media (min-width: 992px){.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs{width:38em}}@media (min-width: 1200px){.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs{width:38em}}.bootstrap-datetimepicker-widget.dropdown-menu:after,.bootstrap-datetimepicker-widget.dropdown-menu:before{content:'';display:inline-block;position:absolute}.bootstrap-datetimepicker-widget.dropdown-menu.bottom:before{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,0.2);top:-7px;left:7px}.bootstrap-datetimepicker-widget.dropdown-menu.bottom:after{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;top:-6px;left:8px}.bootstrap-datetimepicker-widget.dropdown-menu.top:before{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #ccc;border-top-color:rgba(0,0,0,0.2);bottom:-7px;left:6px}.bootstrap-datetimepicker-widget.dropdown-menu.top:after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #fff;bottom:-6px;left:7px}.bootstrap-datetimepicker-widget.dropdown-menu.pull-right:before{left:auto;right:6px}.bootstrap-datetimepicker-widget.dropdown-menu.pull-right:after{left:auto;right:7px}.bootstrap-datetimepicker-widget .list-unstyled{margin:0}.bootstrap-datetimepicker-widget a[data-action]{padding:6px 0}.bootstrap-datetimepicker-widget a[data-action]:active{box-shadow:none}.bootstrap-datetimepicker-widget .timepicker-hour,.bootstrap-datetimepicker-widget .timepicker-minute,.bootstrap-datetimepicker-widget .timepicker-second{width:54px;font-weight:700;font-size:1.2em;margin:0}.bootstrap-datetimepicker-widget button[data-action]{padding:6px}.bootstrap-datetimepicker-widget .btn[data-action=incrementHours]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Increment Hours"}.bootstrap-datetimepicker-widget .btn[data-action=incrementMinutes]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Increment Minutes"}.bootstrap-datetimepicker-widget .btn[data-action=decrementHours]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Decrement Hours"}.bootstrap-datetimepicker-widget .btn[data-action=decrementMinutes]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Decrement Minutes"}.bootstrap-datetimepicker-widget .btn[data-action=showHours]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Show Hours"}.bootstrap-datetimepicker-widget .btn[data-action=showMinutes]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Show Minutes"}.bootstrap-datetimepicker-widget .btn[data-action=togglePeriod]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Toggle AM/PM"}.bootstrap-datetimepicker-widget .picker-switch{text-align:center}.bootstrap-datetimepicker-widget .picker-switch::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Toggle Date and Time Screens"}.bootstrap-datetimepicker-widget .picker-switch td{padding:0;margin:0;height:auto;width:auto;line-height:inherit}.bootstrap-datetimepicker-widget .picker-switch td span{line-height:2.5;height:2.5em;width:100%}.bootstrap-datetimepicker-widget table{width:100%;margin:0}.bootstrap-datetimepicker-widget td,.bootstrap-datetimepicker-widget th{text-align:center;border-radius:2px}.bootstrap-datetimepicker-widget th{height:20px;line-height:20px;width:20px}.bootstrap-datetimepicker-widget th.picker-switch{width:145px}.bootstrap-datetimepicker-widget th.disabled,.bootstrap-datetimepicker-widget th.disabled:hover{background:0 0;color:#777;cursor:not-allowed}.bootstrap-datetimepicker-widget th.prev::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Previous Month"}.bootstrap-datetimepicker-widget th.next::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Next Month"}.bootstrap-datetimepicker-widget thead tr:first-child th{cursor:pointer}.bootstrap-datetimepicker-widget thead tr:first-child th:hover{background:#eee}.bootstrap-datetimepicker-widget td{height:54px;line-height:54px;width:54px}.bootstrap-datetimepicker-widget td.cw{font-size:.8em;height:20px;line-height:20px;color:#777}.bootstrap-datetimepicker-widget td.day{height:20px;line-height:20px;width:20px}.bootstrap-datetimepicker-widget td.day:hover,.bootstrap-datetimepicker-widget td.hour:hover,.bootstrap-datetimepicker-widget td.minute:hover,.bootstrap-datetimepicker-widget td.second:hover{background:#eee;cursor:pointer}.bootstrap-datetimepicker-widget td.new,.bootstrap-datetimepicker-widget td.old{color:#777}.bootstrap-datetimepicker-widget td.today{position:relative}.bootstrap-datetimepicker-widget td.today:before{content:'';display:inline-block;border-left:7px solid transparent;border-bottom:7px solid #2196f3;border-top-color:rgba(0,0,0,0.2);position:absolute;bottom:4px;right:4px}.bootstrap-datetimepicker-widget td.active,.bootstrap-datetimepicker-widget td.active:hover{background-color:#2196f3;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.bootstrap-datetimepicker-widget td.active.today:before{border-bottom-color:#fff}.bootstrap-datetimepicker-widget td.disabled,.bootstrap-datetimepicker-widget td.disabled:hover{background:0 0;color:#777;cursor:not-allowed}.bootstrap-datetimepicker-widget td span{display:inline-block;width:54px;height:54px;line-height:54px;margin:2px 1.5px;cursor:pointer;border-radius:2px}.bootstrap-datetimepicker-widget td span:hover{background:#eee}.bootstrap-datetimepicker-widget td span.active{background-color:#2196f3;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.bootstrap-datetimepicker-widget td span.old{color:#777}.bootstrap-datetimepicker-widget td span.disabled,.bootstrap-datetimepicker-widget td span.disabled:hover{background:0 0;color:#777;cursor:not-allowed}.bootstrap-datetimepicker-widget.usetwentyfour td.hour{height:27px;line-height:27px}.input-group.date .input-group-addon{cursor:pointer}.btn-file{overflow:hidden;position:relative;vertical-align:middle}.btn-file>input{position:absolute;top:0;right:0;margin:0;opacity:0;filter:alpha(opacity=0);font-size:23px;height:100%;width:100%;direction:ltr;cursor:pointer}.fileinput{margin-bottom:9px;display:inline-block}.fileinput .form-control{padding-top:7px;padding-bottom:5px;display:inline-block;margin-bottom:0;vertical-align:middle;cursor:text}.fileinput .thumbnail{overflow:hidden;display:inline-block;margin-bottom:5px;vertical-align:middle;text-align:center}.fileinput .thumbnail>img{max-height:100%}.fileinput .btn{vertical-align:middle}.fileinput-exists .fileinput-new,.fileinput-new .fileinput-exists{display:none}.fileinput-inline .fileinput-controls{display:inline}.fileinput-filename{vertical-align:middle;display:inline-block;overflow:hidden}.form-control .fileinput-filename{vertical-align:bottom}.fileinput.input-group{display:table}.fileinput.input-group>*{position:relative;z-index:2}.fileinput.input-group>.btn-file{z-index:1}.fileinput-new .input-group .btn-file,.fileinput-new .input-group .btn-file.btn-lg,.fileinput-new .input-group .btn-file.btn-sm,.fileinput-new .input-group .btn-file.btn-xs,.fileinput-new.input-group .btn-file,.fileinput-new.input-group .btn-file.btn-lg,.fileinput-new.input-group .btn-file.btn-sm,.fileinput-new.input-group .btn-file.btn-xs{border-radius:0 2px 2px 0}.form-group.has-warning .fileinput .fileinput-preview{color:#ff9800}.form-group.has-warning .fileinput .thumbnail{border-color:#faebcc}.form-group.has-error .fileinput .fileinput-preview{color:#f44336}.form-group.has-error .fileinput .thumbnail{border-color:#ebccd1}.form-group.has-success .fileinput .fileinput-preview{color:#4caf50}.form-group.has-success .fileinput .thumbnail{border-color:#d6e9c6}.input-group-addon:not(:first-child){border-left:0} /*! * Waves v0.6.0 * http://fian.my.id/Waves * * Copyright 2014 Alfiana E. Sibuea and other contributors * Released under the MIT license * https://github.com/fians/Waves/blob/master/LICENSE */.waves-effect{position:relative;cursor:pointer;display:inline-block;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out}.waves-effect .waves-ripple{position:absolute;border-radius:50%;width:100px;height:100px;margin-top:-50px;margin-left:-50px;opacity:0;background:rgba(0,0,0,0.2);background:-webkit-radial-gradient(rgba(0,0,0,0.2) 0, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.5) 60%, rgba(255,255,255,0) 70%);background:-o-radial-gradient(rgba(0,0,0,0.2) 0, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.5) 60%, rgba(255,255,255,0) 70%);background:-moz-radial-gradient(rgba(0,0,0,0.2) 0, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.5) 60%, rgba(255,255,255,0) 70%);background:radial-gradient(rgba(0,0,0,0.2) 0, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.5) 60%, rgba(255,255,255,0) 70%);-webkit-transition:all .5s ease-out;-moz-transition:all .5s ease-out;-o-transition:all .5s ease-out;transition:all .5s ease-out;-webkit-transition-property:-webkit-transform,opacity;-moz-transition-property:-moz-transform,opacity;-o-transition-property:-o-transform,opacity;transition-property:transform,opacity;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0);pointer-events:none}.waves-effect.waves-light .waves-ripple{background:rgba(255,255,255,0.4);background:-webkit-radial-gradient(rgba(255,255,255,0.2) 0, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.5) 60%, rgba(255,255,255,0) 70%);background:-o-radial-gradient(rgba(255,255,255,0.2) 0, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.5) 60%, rgba(255,255,255,0) 70%);background:-moz-radial-gradient(rgba(255,255,255,0.2) 0, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.5) 60%, rgba(255,255,255,0) 70%);background:radial-gradient(rgba(255,255,255,0.2) 0, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.5) 60%, rgba(255,255,255,0) 70%)}.waves-effect.waves-classic .waves-ripple{background:rgba(0,0,0,0.2)}.waves-effect.waves-classic.waves-light .waves-ripple{background:rgba(255,255,255,0.4)}.waves-notransition{-webkit-transition:none !important;-moz-transition:none !important;-o-transition:none !important;transition:none !important}.waves-button,.waves-circle{-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0);transform:translateZ(0)}.waves-input-wrapper{border-radius:.2em;vertical-align:bottom}.waves-input-wrapper.waves-button{padding:0}.waves-input-wrapper .waves-button-input{position:relative;top:0;left:0;z-index:1}.waves-circle{text-align:center;width:2.5em;height:2.5em;line-height:2.5em;border-radius:50%}.waves-float{-webkit-mask-image:none;-webkit-box-shadow:0 1px 1.5px 1px rgba(0,0,0,0.12);box-shadow:0 1px 1.5px 1px rgba(0,0,0,0.12)}.waves-float:active{-webkit-box-shadow:0 8px 20px 1px rgba(0,0,0,0.3);box-shadow:0 8px 20px 1px rgba(0,0,0,0.3)}.waves-block{display:block}a.waves-effect .waves-ripple{z-index:-1}.m-0{margin:0 !important}.m-t-0{margin-top:0 !important}.m-b-0{margin-bottom:0 !important}.m-l-0{margin-left:0 !important}.m-r-0{margin-right:0 !important}.m-5{margin:5px !important}.m-t-5{margin-top:5px !important}.m-b-5{margin-bottom:5px !important}.m-l-5{margin-left:5px !important}.m-r-5{margin-right:5px !important}.m-10{margin:10px !important}.m-t-10{margin-top:10px !important}.m-b-10{margin-bottom:10px !important}.m-l-10{margin-left:10px !important}.m-r-10{margin-right:10px !important}.m-15{margin:15px !important}.m-t-15{margin-top:15px !important}.m-b-15{margin-bottom:15px !important}.m-l-15{margin-left:15px !important}.m-r-15{margin-right:15px !important}.m-20{margin:20px !important}.m-t-20{margin-top:20px !important}.m-b-20{margin-bottom:20px !important}.m-l-20{margin-left:20px !important}.m-r-20{margin-right:20px !important}.m-25{margin:25px !important}.m-t-25{margin-top:25px !important}.m-b-25{margin-bottom:25px !important}.m-l-25{margin-left:25px !important}.m-r-25{margin-right:25px !important}.p-0{padding:0 !important}.p-t-0{padding-top:0 !important}.p-b-0{padding-bottom:0 !important}.p-l-0{padding-left:0 !important}.p-r-0{padding-right:0 !important}.p-5{padding:5px !important}.p-t-5{padding-top:5px !important}.p-b-5{padding-bottom:5px !important}.p-l-5{padding-left:5px !important}.p-r-5{padding-right:5px !important}.p-10{padding:10px !important}.p-t-10{padding-top:10px !important}.p-b-10{padding-bottom:10px !important}.p-l-10{padding-left:10px !important}.p-r-10{padding-right:10px !important}.p-15{padding:15px !important}.p-t-15{padding-top:15px !important}.p-b-15{padding-bottom:15px !important}.p-l-15{padding-left:15px !important}.p-r-15{padding-right:15px !important}.p-20{padding:20px !important}.p-t-20{padding-top:20px !important}.p-b-20{padding-bottom:20px !important}.p-l-20{padding-left:20px !important}.p-r-20{padding-right:20px !important}.p-25{padding:25px !important}.p-t-25{padding-top:25px !important}.p-b-25{padding-bottom:25px !important}.p-l-25{padding-left:25px !important}.p-r-25{padding-right:25px !important}.f-300{font-weight:300 !important}.f-400{font-weight:400 !important}.f-500{font-weight:500 !important}.f-700{font-weight:700 !important}.p-relative{position:relative !important}.p-absolute{position:absolute !important}.p-fixed{position:fixed !important}.p-static{position:static !important}.o-hidden{overflow:hidden !important}.o-visible{overflow:visible !important}.o-auto{overflow:auto !important}.d-block{display:block !important}.di-block{display:inline-block !important}.bgm-white{background-color:#fff !important}.c-white{color:#fff !important}.bgm-black{background-color:#000 !important}.c-black{color:#000 !important}.bgm-brown{background-color:#795548 !important}.c-brown{color:#795548 !important}.bgm-pink{background-color:#e91e63 !important}.c-pink{color:#e91e63 !important}.bgm-red{background-color:#f44336 !important}.c-red{color:#f44336 !important}.bgm-blue{background-color:#2196f3 !important}.c-blue{color:#2196f3 !important}.bgm-purple{background-color:#9c27b0 !important}.c-purple{color:#9c27b0 !important}.bgm-deeppurple{background-color:#673ab7 !important}.c-deeppurple{color:#673ab7 !important}.bgm-lightblue{background-color:#03a9f4 !important}.c-lightblue{color:#03a9f4 !important}.bgm-cyan{background-color:#00bcd4 !important}.c-cyan{color:#00bcd4 !important}.bgm-teal{background-color:#009688 !important}.c-teal{color:#009688 !important}.bgm-green{background-color:#4caf50 !important}.c-green{color:#4caf50 !important}.bgm-lightgreen{background-color:#8bc34a !important}.c-lightgreen{color:#8bc34a !important}.bgm-lime{background-color:#cddc39 !important}.c-lime{color:#cddc39 !important}.bgm-yellow{background-color:#ffeb3b !important}.c-yellow{color:#ffeb3b !important}.bgm-amber{background-color:#ffc107 !important}.c-amber{color:#ffc107 !important}.bgm-orange{background-color:#ff9800 !important}.c-orange{color:#ff9800 !important}.bgm-deeporange{background-color:#ff5722 !important}.c-deeporange{color:#ff5722 !important}.bgm-gray{background-color:#9e9e9e !important}.c-gray{color:#9e9e9e !important}.bgm-bluegray{background-color:#607d8b !important}.c-bluegray{color:#607d8b !important}.bgm-indigo{background-color:#3f51b5 !important}.c-indigo{color:#3f51b5 !important}.bg-black-trp{background-color:rgba(0,0,0,0.1) !important}.b-0{border:0 !important}.w-100{width:100% !important}.media{overflow:visible}.media:after,.media:before{content:" ";display:table}.media:after{clear:both}.media>.pull-left{padding-right:15px}.media>.pull-right{padding-left:15px}.media-heading{font-size:14px;margin-bottom:10px}.media-body{zoom:1;display:block;width:auto}.media-object{border-radius:2px}.close{opacity:.5;filter:alpha(opacity=50);font-weight:400;text-shadow:none}.close:hover{color:inherit;opacity:1;filter:alpha(opacity=100)}*,a,button,i,input{-webkit-font-smoothing:antialiased}*,:active,:hover{outline:0 !important;-webkit-tap-highlight-color:transparent !important}body{font-weight:400;padding-top:65px}audio,video{outline:0}p{margin-bottom:20px}small{font-size:11px}.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{font-size:12px}.clist{list-style:none}.clist>li:before{font-family:'Material Design Iconic Font';margin:0 10px 0 -20px;vertical-align:middle}.clist.clist-angle>li:before{content:"\f1b6"}.clist.clist-check>li:before{content:"\f299"}.clist.clist-star>li:before{content:"\f2e5"}#main{position:relative}body #content{padding:30px 0}@media (min-width: 1200px){body.sw-toggled #content{padding:30px 0 30px 250px}}@media (min-width: 1200px){body.sw-toggled #content>.container{width:calc(100% - 30px)}}#header{background:#4285F4;box-shadow:0 1px 4px rgba(0,0,0,0.3);height:65px;position:fixed;z-index:10;width:100%;left:0;padding-right:10px;top:0;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#header:not(.sidebar-toggled).header-up{-webkit-transform:translate3d(0, -70px, 0);transform:translate3d(0, -70px, 0)}.header-inner{list-style:none;padding:15px 0}.header-inner>li{display:inline-block;vertical-align:top}.header-inner>li:not(:last-child){margin-right:-2px}.header-inner .logo a{color:#fff;text-transform:uppercase;padding:6px 10px;display:block;font-size:16px;font-weight:100}#menu-trigger{width:65px;height:35px;cursor:pointer}#menu-trigger .line-wrap .line{background-color:#fff}#menu-trigger:before{content:"";position:absolute;top:9px;left:7px;width:45px;height:45px;border-radius:50%;background:rgba(255,255,255,0.22);-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0);z-index:0}#menu-trigger.open:before{-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.top-menu{list-style:none;padding:0}.top-menu>li{display:inline-block}@media (max-width: 767px){.top-menu>li{position:static !important}}.top-menu>li .dropdown-menu-lg{padding:0}.top-menu>li .dropdown-menu-lg .lv-body{height:275px;overflow-y:auto}@media (min-width: 768px){.top-menu>li:not(#toggle-width){position:relative}.top-menu>li:not(#toggle-width):before{left:0;top:0;content:"";position:absolute;width:100%;height:100%;-webkit-transform:scale3d(0, 0, 0);-moz-transform:scale3d(0, 0, 0);-ms-transform:scale3d(0, 0, 0);-o-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,0.12);z-index:0;border-radius:2px;opacity:0;filter:alpha(opacity=0)}.top-menu>li:not(#toggle-width):hover:before{-webkit-transform:scale3d(1, 1, 1);-moz-transform:scale3d(1, 1, 1);-ms-transform:scale3d(1, 1, 1);-o-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1);opacity:1;filter:alpha(opacity=100)}.top-menu>li:not(#toggle-width).open:before{-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1);opacity:1;filter:alpha(opacity=100)}}.top-menu>li>a{height:35px;min-width:50px;display:inline-block;background-position:center;background-repeat:no-repeat;position:relative;z-index:1}.top-menu>li>a>.tmn-counts{position:absolute;color:#FFF;font-style:normal;background:#f44336;padding:1px 5px;border-radius:2px;right:7px;top:-3px;font-size:10px;-webkit-animation-name:wobble;animation-name:wobble;-webkit-animation-duration:500ms;animation-duration:500ms;-webkit-animation-fill-mode:both;animation-fill-mode:both}.top-menu>li>a.tm-chat{background-image:url(/assets/icons/menu-2.png)}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){.top-menu>li>a.tm-chat{background-image:url(/assets/icons/[email protected]);background-size:18px 12px}}.top-menu>li>a.tm-settings{background-image:url(/assets/icons/ellipsis.png)}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){.top-menu>li>a.tm-settings{background-image:url(/assets/icons/[email protected]);background-size:24px 24px}}.top-menu>li>a.tm-notification{background-image:url(/assets/icons/notification.png)}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){.top-menu>li>a.tm-notification{background-image:url(/assets/icons/[email protected]);background-size:24px 24px}}.top-menu>li>a.tm-message{background-image:url(/assets/icons/message.png)}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){.top-menu>li>a.tm-message{background-image:url(/assets/icons/[email protected]);background-size:24px 24px}}.top-menu>li>a.tm-search{background-image:url(/assets/icons/search.png)}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){.top-menu>li>a.tm-search{background-image:url(/assets/icons/[email protected]);background-size:24px 24px}}.top-menu>li>a.tm-task{background-image:url(/assets/icons/task.png)}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){.top-menu>li>a.tm-task{background-image:url(/assets/icons/[email protected]);background-size:24px 24px}}.top-menu>li:before{top:-1px !important}@media (max-width: 767px){.top-menu .dropdown-menu-lg{width:calc(100% - 28px) !important}.top-menu .dropdown-menu{right:14px;top:55px}}@media (min-width: 1200px){.top-menu #toggle-width .toggle-switch{margin:-12px 30px 0 0}.top-menu #toggle-width .toggle-switch .ts-helper{height:11px;width:33px}.top-menu #toggle-width .toggle-switch .ts-helper:before{width:20px;height:20px;top:-5px}.top-menu #toggle-width .toggle-switch input:checked+.ts-helper{background:rgba(0,0,0,0.26)}.top-menu #toggle-width .toggle-switch input:checked+.ts-helper:before{left:18px;background:#fff}}@media (max-width: 1200px){.top-menu #toggle-width{display:none}}#notifications{position:relative}#notifications .lv-body{overflow-x:hidden}#notifications:before{content:"";position:absolute;width:100%;height:calc(100% - 70px);background:url(/assets/notifications.png) center no-repeat;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:400ms;transition-duration:400ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:scale(0) rotate(-180deg);-ms-transform:scale(0) rotate(-180deg);-o-transform:scale(0) rotate(-180deg);transform:scale(0) rotate(-180deg);opacity:0;filter:alpha(opacity=0);top:42px}#notifications.empty:before{-webkit-transform:scale(1) rotate(0deg);-ms-transform:scale(1) rotate(0deg);-o-transform:scale(1) rotate(0deg);transform:scale(1) rotate(0deg);opacity:1;filter:alpha(opacity=100)}#top-search-wrap{position:absolute;top:-65px;left:0;width:100%;height:65px;background:#4285F4;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms;opacity:0;filter:alpha(opacity=0);z-index:10}@media (min-width: 768px){#top-search-wrap{text-align:center}}#top-search-wrap input[type=text]{border:0;height:40px;padding:0 10px 0 40px;font-size:18px;margin:12px;width:500px;border-radius:2px;color:rgba(51,51,51,0.69);background-color:rgba(255,255,255,0.26);background-image:url(/assets/icons/search.png);background-repeat:no-repeat;background-position:10px center}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){#top-search-wrap input[type=text]{background-image:url(/assets/icons/[email protected]);background-size:24px 24px}}#top-search-wrap input[type=text]:focus{background-color:rgba(255,255,255,0.4)}@media (max-width: 767px){#top-search-wrap input[type=text]{width:calc(100% - 60px)}}#top-search-wrap #top-search-close{position:absolute;top:16px;font-size:23px;font-style:normal;color:rgba(0,0,0,0.38);width:35px;text-align:center;border-radius:2px;cursor:pointer;right:20px}#top-search-wrap #top-search-close:hover{background-color:rgba(0,0,0,0.15);color:#000}@media (max-width: 767px){#top-search-wrap #top-search-close{right:7px}}.search-toggled #top-search-wrap{top:0;opacity:1;filter:alpha(opacity=100)}@media (min-width: 1200px){.sw-toggled #header{padding-left:15px}.sw-toggled #menu-trigger{display:none}}input:active,input:focus{outline:0;box-shadow:none !important}.form-control{box-shadow:none;border:0;border-bottom:1px solid #e0e0e0}.form-control:active,.form-control:focus{border-bottom-color:#b4b4b4}.dropdown-menu{box-shadow:0 2px 10px rgba(0,0,0,0.2);-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;margin-top:1px}.dropdown-menu>li>a{padding:8px 17px;-webkit-transition:background-color;-moz-transition:background-color;-o-transition:background-color;transition:background-color;-webkit-transition-duration:300ms;transition-duration:300ms;font-family:roboto}.dropdown-menu.dropdown-menu-lg{width:300px}.dropdown-menu.dropdown-menu-sm{width:150px}.dropdown-menu.dropdown-menu-right{right:0;left:auto}.dropdown-menu.dropdown-menu-right>li>a{text-align:right}.dropdown-menu.dm-icon>li>a>.md{line-height:100%;vertical-align:top;font-size:18px;width:28px}.dropdown-menu:not([class*=bgm-])>li>a{color:#4C4C4C}.dropdown-menu:not([class*=bgm-])>li>a:hover{color:#000}.dropdown-menu[class*=bgm-]>li>a{font-weight:300;color:#fff}.btn-group:not([data-animation]) .dropdown-menu,.dropdown:not([data-animation]) .dropdown-menu{-webkit-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0);opacity:0;filter:alpha(opacity=0);display:block}.bootstrap-select .dropdown-menu:not([data-animation]).dropdown-menu-right,.bootstrap-select .dropdown-menu:not([data-animation]).pull-right,.btn-group .dropdown-menu:not([data-animation]).dropdown-menu-right,.btn-group .dropdown-menu:not([data-animation]).pull-right,.dropdown .dropdown-menu:not([data-animation]).dropdown-menu-right,.dropdown .dropdown-menu:not([data-animation]).pull-right{-webkit-transform-origin:top right;-moz-transform-origin:top right;-ms-transform-origin:top right;transform-origin:top right}.bootstrap-select .dropdown-menu:not([data-animation]):not(.pull-right):not(.dropdown-menu-right),.btn-group .dropdown-menu:not([data-animation]):not(.pull-right):not(.dropdown-menu-right),.dropdown .dropdown-menu:not([data-animation]):not(.pull-right):not(.dropdown-menu-right){-webkit-transform-origin:top left;-moz-transform-origin:top left;-ms-transform-origin:top left;transform-origin:top left}.dropup .dropdown-menu:not([data-animation]).dropdown-menu-right,.dropup .dropdown-menu:not([data-animation]).pull-right{-webkit-transform-origin:bottom right;-moz-transform-origin:bottom right;-ms-transform-origin:bottom right;transform-origin:bottom right}.dropup .dropdown-menu:not([data-animation]):not(.pull-right):not(.dropdown-menu-right){-webkit-transform-origin:bottom left;-moz-transform-origin:bottom left;-ms-transform-origin:bottom left;transform-origin:bottom left}.bootstrap-select.open .dropdown-menu:not([data-animation]),.btn-group.open .dropdown-menu:not([data-animation]),.dropdown.open .dropdown-menu:not([data-animation]),.dropup.open .dropdown-menu:not([data-animation]){-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1);opacity:1;filter:alpha(opacity=100)}.dropdown-header{padding:3px 17px;margin-top:10px;color:#b1b1b1;text-transform:uppercase;font-weight:400}.btn-group.open .dropdown-toggle{box-shadow:none}.listview{position:relative}.listview:not(.lv-lg):not(.lv-message) .lv-item{padding:10px 15px}@media (min-width: 480px){.listview.lv-lg .lv-item{padding:17px 35px 17px 25px}}@media (max-width: 767px){.listview.lv-lg .lv-item{padding:17px 35px 17px 20px}}.listview.lv-lg .lv-item:hover{background-color:#FFFFDB}.listview .lv-item{position:relative;display:block;-webkit-transition:background-color;-moz-transition:background-color;-o-transition:background-color;transition:background-color;-webkit-transition-duration:300ms;transition-duration:300ms}.listview .lv-item .lv-small{font-size:12px;color:#A9A9A9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;width:100%}.listview .lv-item .checkbox,.listview .lv-item.media{margin:0}.listview .lv-item .lv-actions{position:absolute}@media (min-width: 480px){.listview .lv-item .lv-actions{right:15px;height:30px;margin-top:-15px;top:50%}}@media (max-width: 767px){.listview .lv-item .lv-actions{right:7px;top:10px}}.listview .lv-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.listview a.lv-item:hover{background:#ECF9FF}.listview [class*=lv-img]{border-radius:50%}.listview .lv-img{width:50px;height:50px}.listview .lv-img-sm{width:35px;height:35px}.listview .lv-header{text-align:center;padding:15px 10px 13px;line-height:100%;text-transform:uppercase;border-bottom:1px solid #F0F0F0;font-weight:500;color:#4C4C4C}.listview .lv-header .actions{position:absolute;top:6px;right:8px;z-index:10}.listview .lv-header-alt{background:#f8f8f8;padding:12px;border-bottom:1px solid #EEE}.listview .lv-header-alt:after,.listview .lv-header-alt:before{content:" ";display:table}.listview .lv-header-alt:after{clear:both}.listview .lv-header-alt .lv-actions{z-index:3;float:right;margin-top:3px;position:relative}.listview .lv-header-alt .lv-actions>li>a{margin:0 3px}.listview .lvh-label{color:#818181;display:inline-block;margin:0;font-size:14px;font-weight:400;padding:0 10px;line-height:33px;vertical-align:middle}.listview .lv-footer{display:block;text-align:center;padding:7px 10px 8px;border-top:1px solid #F0F0F0;line-height:100%;font-size:11px;margin-top:20px;color:#828282}.listview a.lv-footer:hover{color:#050505}.listview.lv-bordered .lv-item:not(:last-child){border-bottom:1px solid #f0f0f0}.listview .lv-attrs{list-style:none;padding:0;margin:5px 0 0}.listview .lv-attrs>li{display:inline-block;padding:2px 10px 3px;font-size:12px;margin-top:5px;margin-right:2px}.listview .lv-attrs>li:not(.info):not(.primary):not(.warning):not(.danger){border:1px solid #dedede;background:#fff;color:#5e5e5e}.listview .lv-attrs>li.info{border:1px solid #00bcd4;background:#00bcd4;color:#fff}.listview .lv-attrs>li.primary{border:1px solid #2196f3;background:#2196f3;color:#fff}.listview .lv-attrs>li.warning{border:1px solid #ff9800;background:#ff9800;color:#fff}.listview .lv-attrs>li.danger{border:1px solid #f44336;background:#f44336;color:#fff}.listview .lv-attrs>li>a{display:block}.listview:not(.lv-message) .lv-title{color:#000}.card-body .lv-item{padding:12px 20px}.progress{box-shadow:none;border-radius:0;height:5px;margin-bottom:0}.progress .progress-bar{box-shadow:none}#chat{position:fixed;background:#fff;padding:20px 0;width:260px;box-shadow:0 0 10px rgba(51,51,51,0.38);height:calc(100% - 65px);-webkit-transform:translate3d(100vw, 0, 0);transform:translate3d(100vw, 0, 0);top:65px;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms;z-index:5;opacity:0;filter:alpha(opacity=0)}#chat.toggled{-webkit-transform:translate3d(calc(100vw - 260px), 0, 0);transform:translate3d(calc(100vw - 260px), 0, 0);opacity:1;filter:alpha(opacity=100)}#chat .chat-search{padding:20px 20px 15px}#chat .chat-search .form-control{background-image:url(/assets/icons/search-2.png);background-repeat:no-repeat;background-position:left center;padding-left:30px;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){#chat .chat-search .form-control{background-image:url(/assets/icons/[email protected]);background-size:24px 24px}}#chat .chat-search .form-control:focus{background-position:right center;padding:0 30px 0 0}[class*=chat-status]{position:absolute;width:10px;height:10px;border-radius:50%;top:-3px;right:12px;border:2px solid #FFF}.chat-status-online{box-shadow:0 0 0 1px #1ec01e;background:#1ec01e}.chat-status-offline{box-shadow:0 0 0 1px #e73f3f;background:#e73f3f}.chat-status-busy{box-shadow:0 0 0 1px orange;background:orange}.ie9 #chat{right:0}.ie9 #chat:not(.toggled){display:none}.tab-nav{list-style:none;padding:0;white-space:nowrap;margin:0;overflow:auto;box-shadow:inset 0 -2px 0 0 #eee}.tab-nav>li{display:inline-block;vertical-align:top}.tab-nav>li>a{display:inline-block;color:#7a7a7a;text-transform:uppercase;position:relative;width:100%;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms;font-weight:500}.tab-nav>li>a:after{content:"";height:2px;position:absolute;width:100%;left:0;bottom:0;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms;-webkit-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0)}@media (min-width: 768px){.tab-nav>li>a{padding:10px 15px 12px}}@media (max-width: 768px){.tab-nav>li>a{padding:10px 8px 12px}}.tab-nav>li.active>a{color:#000}.tab-nav>li.active>a:after{-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.tab-nav.tab-nav-right{text-align:right}.tab-nav.tn-justified>li{display:table-cell;width:1%;text-align:center}.tab-nav.tn-icon>li .md{font-size:22px;line-height:100%;min-height:25px}.tab-nav:not([data-tab-color])>li>a:after{background:#2196f3}.tab-nav[data-tab-color=green]>li>a:after{background:#4caf50}.tab-nav[data-tab-color=red]>li>a:after{background:#f44336}.tab-nav[data-tab-color=teal]>li>a:after{background:#009688}.tab-nav[data-tab-color=amber]>li>a:after{background:#ffc107}.tab-nav[data-tab-color=black]>li>a:after{background:#000}.tab-nav[data-tab-color=cyan]>li>a:after{background:#00bcd4}.tab-content{padding:20px 0}.card{position:relative;background:#fff;box-shadow:0 1px 1px rgba(0,0,0,0.15);margin-bottom:30px}.card .card-header{position:relative}@media screen and (min-width: 768px){.card .card-header:not(.ch-alt){padding:23px 26px}}@media screen and (max-width: 991px){.card .card-header:not(.ch-alt){padding:18px}}.card .card-header h2{margin:0;line-height:100%;font-size:17px;font-weight:400}.card .card-header h2 small{display:block;margin-top:8px;color:#AEAEAE;line-height:160%}@media screen and (min-width: 768px){.card .card-header.ch-alt{padding:23px 26px}}@media screen and (max-width: 991px){.card .card-header.ch-alt{padding:18px 18px 28px}}.card .card-header.ch-alt:not([class*=bgm-]){background-color:#f7f7f7}.card .card-header[class*=bgm-] h2,.card .card-header[class*=bgm-] h2 small{color:#fff}.card .card-header .actions{position:absolute;right:10px;z-index:2;top:15px}.card .card-header .btn-float{right:25px;bottom:-23px;z-index:1}@media screen and (min-width: 768px){.card .card-body.card-padding{padding:23px 26px}}@media screen and (max-width: 991px){.card .card-body.card-padding{padding:18px}}.card .card-body.card-padding-sm{padding:15px}#pie-charts{background:#fff}#pie-charts .dash-widget-header{color:rgba(255,255,255,0.9)}.blog-post .bp-header{position:relative}.blog-post .bp-header>img{width:100%}.blog-post .bp-header .bp-title{background:#3f51b5;width:100%;padding:20px;color:#FFF;display:block}.blog-post .bp-header .bp-title>h2{color:#FFF;font-weight:400;margin:0 0 2px;line-height:100%;font-size:21px}.profile-view{text-align:center}.profile-view .pv-header{position:relative;height:145px;width:100%;background-image:url(/assets/headers/sm/4.png);background-repeat:no-repeat;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;background-position:center}.profile-view .pv-header>.pv-main{border-radius:50%;width:130px;position:absolute;height:130px;bottom:-50px;left:50%;margin-left:-65px;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms}.profile-view .pv-body{margin-top:70px;padding:0 20px 20px}.profile-view .pv-body>h2{margin:0;line-height:100%;font-size:20px;font-weight:400}.profile-view .pv-body>small{display:block;color:#8E8E8E;margin:10px 0 15px}.profile-view .pv-body .pv-contact,.profile-view .pv-body .pv-follow{padding:0;list-style:none}.profile-view .pv-body .pv-contact>li,.profile-view .pv-body .pv-follow>li{display:inline-block}.profile-view .pv-body .pv-follow{margin:20px -20px;padding:10px;background-color:#F7F7F7;border-top:1px solid #EEE;border-bottom:1px solid #EEE}.profile-view .pv-body .pv-follow>li{padding:0 10px}.profile-view .pv-body .pv-contact>li{margin:0 5px}.profile-view .pv-body .pv-contact>li>.md{line-height:100%;vertical-align:text-bottom;font-size:22px}.profile-view .pv-body .pv-follow-btn{padding:7px 20px;background:#00bcd4;color:#FFF;border-radius:3px;text-transform:uppercase;display:block;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms}.profile-view .pv-body .pv-follow-btn:hover{background:#00a5bb}.profile-view:hover .pv-main{-webkit-transform:scale(1.2);-ms-transform:scale(1.2);-o-transform:scale(1.2);transform:scale(1.2)}.picture-list .pl-body,.picture-list .pl-body [class*=col-]{padding:2px}.picture-list .pl-body [class*=col-]>a{display:block;position:relative}.picture-list .pl-body [class*=col-]>a:before{left:0;top:0;content:"";position:absolute;width:100%;height:100%;-webkit-transform:scale3d(0, 0, 0);-moz-transform:scale3d(0, 0, 0);-ms-transform:scale3d(0, 0, 0);-o-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,0.3);z-index:0;border-radius:0;opacity:0;filter:alpha(opacity=0)}.picture-list .pl-body [class*=col-]>a:hover:before{-webkit-transform:scale3d(1, 1, 1);-moz-transform:scale3d(1, 1, 1);-ms-transform:scale3d(1, 1, 1);-o-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1);opacity:1;filter:alpha(opacity=100)}.picture-list .pl-body [class*=col-]>a img{width:100%}.picture-list .pl-body:after,.picture-list .pl-body:before{content:" ";display:table}.picture-list .pl-body:after{clear:both}.go-social .card-body{padding:0 15px 20px}.go-social .card-body [class*=col-]{padding:12px}.go-social .card-body [class*=col-] img{-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden}.go-social .card-body [class*=col-]:hover img{-webkit-transform:scale(1.2);-ms-transform:scale(1.2);-o-transform:scale(1.2);transform:scale(1.2)}.rating-list{padding:0 0 10px}.rating-list .rl-star{margin-top:10px;margin-bottom:4px}.rating-list .rl-star .md{font-size:20px}.rating-list .rl-star .md:not(.active){color:#ccc}.rating-list .rl-star .md.active{color:#ff9800}.rating-list .lv-item .media .md-star{line-height:100%;font-size:18px;color:#a6a6a6}.rating-list .lv-item .media .media-body{padding:7px 10px 0 5px}.table{background-color:#fff;margin-bottom:0}.table>thead>tr>th{background-color:#fff;vertical-align:middle;font-weight:500;color:#333;border-width:1px}.table [class*=bg-]>tr>th{color:#fff;border-bottom:0}.table [class*=bg-]+tbody>tr:first-child>td{border-top:0}.table.table-inner{border:0}.table>tbody>tr>td:first-child,.table>tbody>tr>th:first-child,.table>tfoot>tr>td:first-child,.table>tfoot>tr>th:first-child,.table>thead>tr>td:first-child,.table>thead>tr>th:first-child{padding-left:30px}.table>tbody>tr>td:last-child,.table>tbody>tr>th:last-child,.table>tfoot>tr>td:last-child,.table>tfoot>tr>th:last-child,.table>thead>tr>td:last-child,.table>thead>tr>th:last-child{padding-right:30px}.table>tbody>tr.active>td,.table>tbody>tr.danger>td,.table>tbody>tr.info>td,.table>tbody>tr.succes>td,.table>tbody>tr.warning>td,.table>tfoot>tr.active>td,.table>tfoot>tr.danger>td,.table>tfoot>tr.info>td,.table>tfoot>tr.succes>td,.table>tfoot>tr.warning>td{border:0}.table>tbody>tr:last-child>td,.table>tfoot>tr:last-child>td{padding-bottom:20px}.table-striped td,.table-striped th{border:0 !important}.table-hover>tbody>tr:hover{background-color:#ECF9FF !important}.table-bordered{border-bottom:0;border-left:0;border-right:0}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th{border-bottom:0;border-left:0}.table-bordered>tbody>tr>td:last-child,.table-bordered>tbody>tr>th:last-child{border-right:0}.table-bordered>thead>tr>th{border-left:0}.table-bordered>thead>tr>th:last-child{border-right:0}.table-vmiddle td{vertical-align:middle !important}.table-responsive{border:0}#todo-lists{background:#ffc107;color:#fff;margin-bottom:30px;box-shadow:0 1px 1px rgba(0,0,0,0.15)}#todo-lists .tl-header{position:relative;padding:25px}#todo-lists .tl-header>h2{margin:0;color:#fff;line-height:100%}#todo-lists .tl-header>small{font-size:17px;display:block;margin-top:3px}#todo-lists .tl-header .actions{position:absolute;right:10px;padding:0;list-style:none;top:15px}#todo-lists .tl-header .actions>li{display:inline-block;vertical-align:baseline}#todo-lists .tl-body{min-height:300px;position:relative;padding:20px 10px 20px 25px;background:rgba(0,0,0,0.03)}#todo-lists .tl-body #add-tl-item{width:50px;height:50px;border-radius:50%;position:absolute;background:#fff;top:-25px;right:23px;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition-duration:200ms;transition-duration:200ms}#todo-lists .tl-body #add-tl-item .add-new-item{-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:200ms;transition-duration:200ms;opacity:1;filter:alpha(opacity=100)}#todo-lists .tl-body #add-tl-item .add-tl-body{overflow:hidden;opacity:0;filter:alpha(opacity=0);-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms}#todo-lists .tl-body #add-tl-item .add-tl-body textarea{padding:25px 25px 45px;resize:none;width:100%;font-size:24px;color:#ffc107;position:absolute;height:100%;border:0;outline:0}#todo-lists .tl-body #add-tl-item:not(.toggled){overflow:hidden}#todo-lists .tl-body #add-tl-item:not(.toggled) .add-new-item{position:relative;z-index:1;display:inline-block;width:50px;height:50px;background-repeat:no-repeat;background-position:center;cursor:pointer;text-align:center;font-size:23px;color:#ff9800;line-height:50px}#todo-lists .tl-body #add-tl-item:not(.toggled):hover{box-shadow:0 2px 7px rgba(0,0,0,0.18)}#todo-lists .tl-body #add-tl-item.toggled{width:calc(100% - 47px);height:calc(100% - 25px);border-radius:2px;top:0;z-index:1;box-shadow:0 5px 8px rgba(0,0,0,0.2);max-height:300px;overflow:visible}#todo-lists .tl-body #add-tl-item.toggled .add-new-item{display:none}#todo-lists .tl-body #add-tl-item.toggled .add-tl-body{opacity:1;filter:alpha(opacity=100)}#todo-lists .tl-body #add-tl-item.toggled .add-tl-body .add-tl-actions{position:absolute;bottom:0;width:100%;padding:5px 10px;border-top:1px solid #EEE;z-index:1}#todo-lists .tl-body #add-tl-item.toggled .add-tl-body .add-tl-actions>a{font-size:25px;padding:0 6px;border-radius:50%;text-align:center;height:40px;width:40px;display:inline-block;line-height:41px;position:relative}#todo-lists .tl-body #add-tl-item.toggled .add-tl-body .add-tl-actions>a:before{left:0;top:0;content:"";position:absolute;width:100%;height:100%;-webkit-transform:scale3d(0, 0, 0);-moz-transform:scale3d(0, 0, 0);-ms-transform:scale3d(0, 0, 0);-o-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;background-color:#eee;z-index:-1;border-radius:50%;opacity:0;filter:alpha(opacity=0)}#todo-lists .tl-body #add-tl-item.toggled .add-tl-body .add-tl-actions>a:hover:before{-webkit-transform:scale3d(1, 1, 1);-moz-transform:scale3d(1, 1, 1);-ms-transform:scale3d(1, 1, 1);-o-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1);opacity:1;filter:alpha(opacity=100)}#todo-lists .tl-body #add-tl-item.toggled .add-tl-body .add-tl-actions [data-tl-action=dismiss]{color:#f44336}#todo-lists .tl-body #add-tl-item.toggled .add-tl-body .add-tl-actions [data-tl-action=save]{color:#4caf50}#todo-lists .tl-body .media-body{padding-top:3px}#todo-lists .tl-body .checkbox{font-size:18px;margin-bottom:15px}#todo-lists .tl-body .checkbox span{display:inline-block;margin-top:-3px}#todo-lists .tl-body .checkbox input:checked+i+span{text-decoration:line-through}#todo-lists .tl-body .checkbox .input-helper:before{border-color:rgba(255,255,255,0.8);border-width:2px}#todo-lists .tl-body .checkbox .input-helper:after{border-color:#fff}.btn{-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms;border:0;text-transform:uppercase}.btn[class*=bgm-]{color:#fff}.btn:not(.btn-link):not(.btn-float):not(.command-edit):not(.command-delete):not(.selectpicker){box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12)}.btn:not(.btn-link):not(.btn-float):not(.command-edit):not(.command-delete):not(.selectpicker):hover{box-shadow:0 5px 11px 0 rgba(0,0,0,0.18),0 4px 15px 0 rgba(0,0,0,0.15)}.btn .caret{margin-top:-3px}.btn-group-vertical:not(.bootstrap-select),.btn-group:not(.bootstrap-select){box-shadow:0 1px 4px 0 rgba(0,0,0,0.3)}.btn-group .btn,.btn-group .btn-group,.btn-group .btn:active,.btn-group .btn:focus,.btn-group-vertical .btn,.btn-group-vertical .btn-group,.btn-group-vertical .btn:active,.btn-group-vertical .btn:focus{box-shadow:none !important}.btn-group .btn,.btn-group-vertical .btn{margin:0}.btn-group-xs>.btn,.btn-xs{padding:2px 5px;font-size:11px;line-height:1.5;border-radius:2px}.btn-link{color:#797979;text-decoration:none;border-radius:2px}.btn-link:hover{color:#0a0a0a}.btn-link:active,.btn-link:focus,.btn-link:hover{text-decoration:none}.btn-inverse{color:#fff;background-color:#454545;border-color:transparent}.btn-inverse.active.focus,.btn-inverse.active:focus,.btn-inverse.active:hover,.btn-inverse:active.focus,.btn-inverse:active:focus,.btn-inverse:active:hover,.open>.dropdown-toggle.btn-inverse.focus,.open>.dropdown-toggle.btn-inverse:focus,.open>.dropdown-toggle.btn-inverse:hover{color:#fff;background-color:#1a1a1a;border-color:transparent}.btn-inverse.active,.btn-inverse.focus,.btn-inverse:active,.btn-inverse:focus,.btn-inverse:hover,.open>.dropdown-toggle.btn-inverse{color:#fff;background-color:#454545;border-color:transparent}.btn-inverse.active,.btn-inverse:active,.open>.dropdown-toggle.btn-inverse{background-image:none}.btn-inverse.disabled,.btn-inverse.disabled.active,.btn-inverse.disabled.focus,.btn-inverse.disabled:active,.btn-inverse.disabled:focus,.btn-inverse.disabled:hover,.btn-inverse[disabled],.btn-inverse[disabled].active,.btn-inverse[disabled].focus,.btn-inverse[disabled]:active,.btn-inverse[disabled]:focus,.btn-inverse[disabled]:hover,fieldset[disabled] .btn-inverse,fieldset[disabled] .btn-inverse.active,fieldset[disabled] .btn-inverse.focus,fieldset[disabled] .btn-inverse:active,fieldset[disabled] .btn-inverse:focus,fieldset[disabled] .btn-inverse:hover{background-color:#454545;border-color:transparent}.btn-inverse .badge{color:#454545;background-color:#fff}.btn-icon{border-radius:50%;width:40px;height:40px;padding:0;text-align:center;position:relative}.btn-icon:before{left:0;top:0;content:"";position:absolute;width:100%;height:100%;-webkit-transform:scale3d(0, 0, 0);-moz-transform:scale3d(0, 0, 0);-ms-transform:scale3d(0, 0, 0);-o-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;background-color:50%;z-index:0;border-radius:300ms;opacity:0;filter:alpha(opacity=0)}.btn-icon:hover:before{-webkit-transform:scale3d(1, 1, 1);-moz-transform:scale3d(1, 1, 1);-ms-transform:scale3d(1, 1, 1);-o-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1);opacity:1;filter:alpha(opacity=100)}.btn-icon .md{-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;font-size:17px}.btn-icon:hover .md{-webkit-transform:rotate(-360deg);-ms-transform:rotate(-360deg);-o-transform:rotate(-360deg);transform:rotate(-360deg)}.btn-icon.btn-default:hover{background:#fff}.btn-float{width:50px;height:50px;border-radius:50%;position:absolute;line-height:38px}.btn-float:hover{box-shadow:0 2px 7px rgba(0,0,0,0.18)}.btn-float i{font-size:23px;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:500ms;transition-duration:500ms}.btn-float:hover i{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}.btn-float:not(.bgm-white):not(.bgm-gray)>i{color:#fff}.btn-float.bgm-gray>i,.btn-float.bgm-white>i{color:#333}.open .btn,.open .btn:active,.open .btn:focus{outline:0 !important;-webkit-tap-highlight-color:transparent !important}.checkbox label,.radio label{padding-left:30px;position:relative}.checkbox input,.radio input{top:0;left:0;margin-left:0 !important;z-index:1;cursor:pointer;opacity:0;filter:alpha(opacity=0);margin-top:0}.checkbox .input-helper:after,.checkbox .input-helper:before,.radio .input-helper:after,.radio .input-helper:before{-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;position:absolute;content:""}.checkbox .input-helper:before,.radio .input-helper:before{left:0;border:1px solid #ccc}.checkbox.disabled,.radio.disabled{opacity:.6;filter:alpha(opacity=60)}.checkbox input{width:17px;height:17px}.checkbox input:checked+.input-helper:before{-webkit-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0)}.checkbox input:checked+.input-helper:after{-webkit-transform:scale(1) rotate(-50deg);-ms-transform:scale(1) rotate(-50deg);-o-transform:scale(1) rotate(-50deg);transform:scale(1) rotate(-50deg);opacity:1;filter:alpha(opacity=100)}.checkbox .input-helper:before{top:0;width:17px;height:17px}.checkbox .input-helper:after{opacity:0;filter:alpha(opacity=0);-webkit-transform:scale(0) rotate(80deg);-ms-transform:scale(0) rotate(80deg);-o-transform:scale(0) rotate(80deg);transform:scale(0) rotate(80deg);width:22px;height:9px;border-bottom:2px solid #009688;border-left:2px solid #009688;border-bottom-left-radius:2px;left:-1px;top:1px}.has-error .checkbox .input-helper:before{border-color:#f99d97}.has-error .checkbox .input-helper:after{border-bottom-color:#f77066;border-left-color:#f77066}.has-success .checkbox .input-helper:before{border-color:#92cf94}.has-success .checkbox .input-helper:after{border-bottom-color:#6ec071;border-left-color:#6ec071}.has-warning .checkbox .input-helper:before{border-color:#ffdb6d}.has-warning .checkbox .input-helper:after{border-bottom-color:#ffce3a;border-left-color:#ffce3a}.radio input{width:19px;height:19px}.radio input:checked+.input-helper:after{-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.radio .input-helper:before{top:-1px;width:19px;height:19px;border-radius:50%}.radio .input-helper:after{width:11px;height:11px;background:#009688;border-radius:50%;top:3px;left:4px;-webkit-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0)}.checkbox-inline,.radio-inline{vertical-align:top;margin-top:0;padding-left:25px}html:not(.ie9) .select{position:relative}html:not(.ie9) .select:before{position:absolute;top:0;content:"";height:calc(100% - 2px);width:30px;background-color:#FFF;background-position:right calc(100% - 7px);background-repeat:no-repeat;background-image:url(/assets/select.png);pointer-events:none;z-index:5}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){html:not(.ie9) .select:before{background-image:url(/assets/[email protected]);background-size:12px 12px}}html:not(.ie9) .select:not(.fg-line):before{right:0}html:not(.ie9) .select.fg-line:before{right:10px}.input-group-addon{border-width:0 0 1px}.fg-line{position:relative;vertical-align:top}.fg-line:not(.form-group){display:inline-block;width:100%}.fg-line .form-control{resize:none}.fg-line .form-control:not(:disabled){color:#000}.fg-line .form-control:disabled{color:#9d9d9d;background:0 0}.fg-line:not(.disabled):after,.fg-line:not(.readonly):after{position:absolute;z-index:3;bottom:0;left:0;height:2px;width:0;content:"";-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms}.fg-line.input-toggled:after{width:100%}.fg-line.readonly .form-control{color:#9d9d9d;background:0 0}.fg-line.fg-toggled:after{width:100%}.fg-line.has-success:after{background:#4caf50}.fg-line.has-warning:after{background:#ffc107}.fg-line.has-error:after{background:#f44336}.has-success .fg-line:after{background:#4caf50}.has-warning .fg-line:after{background:#ffc107}.has-error .fg-line:after{background:#f44336}.fg-float{margin-top:2px;position:relative}.fg-float .form-control{position:relative;background:0 0;z-index:1}.fg-float .form-control::-moz-placeholder{color:#fff;opacity:1}.fg-float .form-control:-ms-input-placeholder{color:#fff}.fg-float .form-control::-webkit-input-placeholder{color:#fff}.fg-float .input-lg+.fg-label{font-size:17px}.fg-float .input-sm+.fg-label{font-size:11px}.fg-float .fg-toggled+.fg-label{top:-20px;font-size:11px}.form-control{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border-radius:0}.form-control:focus{box-shadow:none}.form-control.auto-size{padding-top:6px}.form-group{margin-bottom:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#4caf50}.has-success .form-control{border-color:#b5dfb7;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-success .form-control:focus{border-color:#92cf94;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #fcfefc;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #fcfefc}.has-success .input-group-addon{color:#4caf50;border-color:#b5dfb7;background-color:#fff}.has-success .form-control-feedback{color:#4caf50}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#ff9800}.has-warning .form-control{border-color:#ffd699;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-warning .form-control:focus{border-color:#ffc166;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #fff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #fff}.has-warning .input-group-addon{color:#ff9800;border-color:#ffd699;background-color:#fff}.has-warning .form-control-feedback{color:#ff9800}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#f44336}.has-error .form-control{border-color:#fccbc7;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-error .form-control:focus{border-color:#f99d97;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #fff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #fff}.has-error .input-group-addon{color:#f44336;border-color:#fccbc7;background-color:#fff}.has-error .form-control-feedback{color:#f44336}.has-error .form-control,.has-success .form-control,.has-warning .form-control{box-shadow:none}.form-control-feedback{font-size:20px}.control-label{font-weight:400}.input-group .input-group-addon{vertical-align:bottom;padding:0}.input-group .input-group-addon .md{line-height:100%}.input-group:not(.input-group-lg):not(.input-group-sm) .input-group-addon:not(.last){padding-right:10px}.input-group:not(.input-group-lg):not(.input-group-sm) .input-group-addon.last{padding-left:10px}.input-group:not(.input-group-lg):not(.input-group-sm) .input-group-addon .md{font-size:23px}.input-group.input-group-lg .input-group-addon:not(.last){padding-right:15px}.input-group.input-group-lg .input-group-addon.last{padding-left:15px}.input-group.input-group-lg .input-group-addon .md{font-size:30px}.input-group.input-group-sm .input-group-addon:not(.last){padding-right:5px}.input-group.input-group-sm .input-group-addon.last{padding-left:5px}.input-group.input-group-sm .input-group-addon .md{font-size:18px}.input-group>[class*=col-]{padding:0}.input-group .fg-line{padding:0 10px}.input-group .fg-line:after{left:10px}.input-group .fg-line.fg-toggled:after{width:calc(100% - 20px)}.toggle-switch{display:inline-block;vertical-align:top;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.toggle-switch .ts-label{display:inline-block;margin:0 20px 0 0;vertical-align:top;-webkit-transition:color 0.56s cubic-bezier(0.4, 0, 0.2, 1);transition:color 0.56s cubic-bezier(0.4, 0, 0.2, 1)}.toggle-switch .ts-helper{display:inline-block;position:relative;width:40px;height:16px;border-radius:8px;background:rgba(0,0,0,0.26);-webkit-transition:background 0.28s cubic-bezier(0.4, 0, 0.2, 1);transition:background 0.28s cubic-bezier(0.4, 0, 0.2, 1);vertical-align:middle;cursor:pointer}.toggle-switch .ts-helper:before{content:'';position:absolute;top:-4px;left:-4px;width:24px;height:24px;background:#fafafa;box-shadow:0 2px 8px rgba(0,0,0,0.28);border-radius:50%;webkit-transition:left 0.28s cubic-bezier(0.4, 0, 0.2, 1),background 0.28s cubic-bezier(0.4, 0, 0.2, 1),box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);transition:left 0.28s cubic-bezier(0.4, 0, 0.2, 1),background 0.28s cubic-bezier(0.4, 0, 0.2, 1),box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1)}.toggle-switch:not(.disabled) .ts-helper:active:before{box-shadow:0 2px 8px rgba(0,0,0,0.28),0 0 0 20px rgba(128,128,128,0.1)}.toggle-switch input{position:absolute;z-index:1;width:46px;margin:0 0 0 -4px;height:24px;opacity:0;filter:alpha(opacity=0);cursor:pointer}.toggle-switch input:checked+.ts-helper:before{left:20px}.toggle-switch:not([data-ts-color]) input:not(:disabled):checked+.ts-helper{background:rgba(0,150,136,0.5)}.toggle-switch:not([data-ts-color]) input:not(:disabled):checked+.ts-helper:before{background:#009688}.toggle-switch:not([data-ts-color]) input:not(:disabled):checked+.ts-helper:active:before{box-shadow:0 2px 8px rgba(0,0,0,0.28),0 0 0 20px rgba(0,150,136,0.2)}.toggle-switch.disabled{opacity:.6;filter:alpha(opacity=60)}.toggle-switch[data-ts-color=red] input:not(:disabled):checked+.ts-helper{background:rgba(244,67,54,0.5)}.toggle-switch[data-ts-color=red] input:not(:disabled):checked+.ts-helper:before{background:#f44336}.toggle-switch[data-ts-color=red] input:not(:disabled):checked+.ts-helper:active:before{box-shadow:0 2px 8px rgba(0,0,0,0.28),0 0 0 20px rgba(244,67,54,0.2)}.toggle-switch[data-ts-color=blue] input:not(:disabled):checked+.ts-helper{background:rgba(33,150,243,0.5)}.toggle-switch[data-ts-color=blue] input:not(:disabled):checked+.ts-helper:before{background:#2196f3}.toggle-switch[data-ts-color=blue] input:not(:disabled):checked+.ts-helper:active:before{box-shadow:0 2px 8px rgba(0,0,0,0.28),0 0 0 20px rgba(33,150,243,0.2)}.toggle-switch[data-ts-color=amber] input:not(:disabled):checked+.ts-helper{background:rgba(255,193,7,0.5)}.toggle-switch[data-ts-color=amber] input:not(:disabled):checked+.ts-helper:before{background:#ffc107}.toggle-switch[data-ts-color=amber] input:not(:disabled):checked+.ts-helper:active:before{box-shadow:0 2px 8px rgba(0,0,0,0.28),0 0 0 20px rgba(255,193,7,0.2)}.toggle-switch[data-ts-color=purple] input:not(:disabled):checked+.ts-helper{background:rgba(156,39,176,0.5)}.toggle-switch[data-ts-color=purple] input:not(:disabled):checked+.ts-helper:before{background:#9c27b0}.toggle-switch[data-ts-color=purple] input:not(:disabled):checked+.ts-helper:active:before{box-shadow:0 2px 8px rgba(0,0,0,0.28),0 0 0 20px rgba(156,39,176,0.2)}.toggle-switch[data-ts-color=pink] input:not(:disabled):checked+.ts-helper{background:rgba(233,30,99,0.5)}.toggle-switch[data-ts-color=pink] input:not(:disabled):checked+.ts-helper:before{background:#e91e63}.toggle-switch[data-ts-color=pink] input:not(:disabled):checked+.ts-helper:active:before{box-shadow:0 2px 8px rgba(0,0,0,0.28),0 0 0 20px rgba(233,30,99,0.2)}.toggle-switch[data-ts-color=lime] input:not(:disabled):checked+.ts-helper{background:rgba(205,220,57,0.5)}.toggle-switch[data-ts-color=lime] input:not(:disabled):checked+.ts-helper:before{background:#cddc39}.toggle-switch[data-ts-color=lime] input:not(:disabled):checked+.ts-helper:active:before{box-shadow:0 2px 8px rgba(0,0,0,0.28),0 0 0 20px rgba(205,220,57,0.2)}.toggle-switch[data-ts-color=cyan] input:not(:disabled):checked+.ts-helper{background:rgba(0,188,212,0.5)}.toggle-switch[data-ts-color=cyan] input:not(:disabled):checked+.ts-helper:before{background:#00bcd4}.toggle-switch[data-ts-color=cyan] input:not(:disabled):checked+.ts-helper:active:before{box-shadow:0 2px 8px rgba(0,0,0,0.28),0 0 0 20px rgba(0,188,212,0.2)}.toggle-switch[data-ts-color=green] input:not(:disabled):checked+.ts-helper{background:rgba(76,175,80,0.5)}.toggle-switch[data-ts-color=green] input:not(:disabled):checked+.ts-helper:before{background:#4caf50}.toggle-switch[data-ts-color=green] input:not(:disabled):checked+.ts-helper:active:before{box-shadow:0 2px 8px rgba(0,0,0,0.28),0 0 0 20px rgba(76,175,80,0.2)}.pagination{border-radius:0}.pagination>li{margin:0 2px;display:inline-block;vertical-align:top}.pagination>li>a,.pagination>li>span{border-radius:50% !important;padding:0;width:40px;height:40px;line-height:38px;text-align:center;font-size:14px;z-index:1;position:relative}.pagination>li>a>.md,.pagination>li>span>.md{font-size:22px}.pagination>li>a:before,.pagination>li>span:before{left:0;top:0;content:"";position:absolute;width:100%;height:100%;-webkit-transform:scale3d(0, 0, 0);-moz-transform:scale3d(0, 0, 0);-ms-transform:scale3d(0, 0, 0);-o-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,0.1);z-index:0;border-radius:50%;opacity:0;filter:alpha(opacity=0)}.pagination>li>a:hover:before,.pagination>li>span:hover:before{-webkit-transform:scale3d(1, 1, 1);-moz-transform:scale3d(1, 1, 1);-ms-transform:scale3d(1, 1, 1);-o-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1);opacity:1;filter:alpha(opacity=100)}.pagination>li.disabled{opacity:.5;filter:alpha(opacity=50)}.lv-pagination{width:100%;text-align:center;padding:40px 0;border-top:1px solid #F0F0F0;margin-top:0;margin-bottom:0}.popover{box-shadow:0 2px 30px rgba(0,0,0,0.2)}.popover-title{border-bottom:0;padding:15px;font-size:12px;text-transform:uppercase}.popover-content{padding:0 15px 15px}.popover-content p{margin-bottom:0}.fw-container .tab-content{padding:25px 0}.fw-container .fw-footer{text-align:center;margin:30px 0 0;width:100%;border-top:2px solid #eee;padding:15px 0}.alert{padding-left:30px}.alert span{cursor:pointer}.alert:not(.alert-dismissible){padding-right:30px}.alert.alert-dismissable{padding-right:44px}.alert-inverse{background:rgba(51,51,51,0.9);box-shadow:0 0 5px rgba(51,51,51,0.5);color:#fff}.alert-inverse a{color:#fff}.growl-animated{border:0;color:#fff}.growl-animated.alert-info{background:rgba(33,150,243,0.8);box-shadow:0 0 5px rgba(33,150,243,0.5)}.growl-animated.alert-success{background:rgba(76,175,80,0.8);box-shadow:0 0 5px rgba(76,175,80,0.5)}.growl-animated.alert-warning{background:rgba(255,152,0,0.8);box-shadow:0 0 5px rgba(255,152,0,0.5)}.growl-animated.alert-danger{background:rgba(244,67,54,0.8);box-shadow:0 0 5px rgba(244,67,54,0.5)}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#e0e0e0;box-shadow:0 0 6px #EAEAEA}.lightbox .lightbox-item{border:3px solid #fff;box-shadow:0 0 6px rgba(178,178,178,0.61);position:relative}.lightbox .lightbox-item>img{width:100%}.lightbox .lightbox-item:before{left:0;top:0;content:"";position:absolute;width:100%;height:100%;-webkit-transform:scale3d(0, 0, 0);-moz-transform:scale3d(0, 0, 0);-ms-transform:scale3d(0, 0, 0);-o-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,0.3);z-index:0;border-radius:0;opacity:0;filter:alpha(opacity=0)}.lightbox .lightbox-item:hover:before{-webkit-transform:scale3d(1, 1, 1);-moz-transform:scale3d(1, 1, 1);-ms-transform:scale3d(1, 1, 1);-o-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1);opacity:1;filter:alpha(opacity=100)}.lightbox .lightbox-item:hover{cursor:pointer}.lightbox [data-src]{margin-bottom:20px}.carousel .carousel-control{-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms;opacity:0;filter:alpha(opacity=0)}.carousel .carousel-control .md{position:absolute;top:50%;left:50%;line-height:100%}@media screen and (min-width: 768px){.carousel .carousel-control .md{font-size:60px;width:60px;height:60px;margin-top:-30px;margin-left:-30px}}@media screen and (max-width: 991px){.carousel .carousel-control .md{width:24px;height:24px;margin-top:-12px;margin-left:-12px}}.carousel:hover .carousel-control{opacity:1;filter:alpha(opacity=100)}.carousel .carousel-caption{background:rgba(0,0,0,0.6);left:0;right:0;bottom:0;width:100%;padding-bottom:50px}.carousel .carousel-caption>h3{color:#fff;margin:0 0 5px;font-weight:300}.carousel .carousel-caption>p{margin:0}@media screen and (max-width: 991px){.carousel .carousel-caption{display:none}}.carousel .carousel-indicators{margin:0;left:0;bottom:0;width:100%;padding:0 0 6px;background:rgba(0,0,0,0.6)}.carousel .carousel-indicators li{border-radius:0;width:15px;border:0;background:#fff;height:3px;margin:0;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms}.carousel .carousel-indicators li.active{width:25px;height:3px;background:#ff9800}.modal .modal-content{box-shadow:0 5px 20px rgba(0,0,0,0.31);border-radius:3px;border:0}.modal .modal-header{padding:23px 26px}.modal .modal-body{padding:0 26px 10px}.modal .modal-footer .btn-link{font-size:14px;color:#000;font-weight:500}.modal .modal-footer .btn-link:hover{background-color:#eee}.modal:not([data-modal-color]) .modal-footer .btn-link{font-weight:500}.modal:not([data-modal-color]) .modal-footer .btn-link:hover{background-color:#eee}.modal[data-modal-color],.modal[data-modal-color] .modal-footer .btn-link,.modal[data-modal-color] .modal-title{color:#fff}.modal[data-modal-color] .modal-footer{background:rgba(0,0,0,0.1)}.modal[data-modal-color] .modal-backdrop{background:#fff}.modal[data-modal-color] .modal-footer .btn-link{font-weight:400}.modal[data-modal-color] .modal-footer .btn-link:hover{background-color:rgba(0,0,0,0.1)}.modal[data-modal-color=blue] .modal-content{background:#2196f3}.modal[data-modal-color=cyan] .modal-content{background:#00bcd4}.modal[data-modal-color=green] .modal-content{background:#4caf50}.modal[data-modal-color=lightgreen] .modal-content{background:#8bc34a}.modal[data-modal-color=lightblue] .modal-content{background:#03a9f4}.modal[data-modal-color=amber] .modal-content{background:#ffc107}.modal[data-modal-color=teal] .modal-content{background:#009688}.modal[data-modal-color=orange] .modal-content{background:#ff9800}.modal[data-modal-color=bluegray] .modal-content{background:#607d8b}.modal[data-modal-color=red] .modal-content{background:#f44336}.panel{box-shadow:none;border:0}.panel-heading{padding:0}.panel-title>a{padding:10px 15px;display:block;font-size:13px}.panel-collapse .panel-heading{position:relative}.panel-collapse .panel-heading .panel-title>a{padding:8px 5px 16px 30px;color:#000;position:relative}.panel-collapse .panel-heading .panel-title>a:after,.panel-collapse .panel-heading .panel-title>a:before{position:absolute;bottom:0;left:0;height:2px;width:100%;content:""}.panel-collapse .panel-heading .panel-title>a:after{-webkit-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0);-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden}.panel-collapse .panel-heading:not(.active) .panel-title>a:before{background:#eee}.panel-collapse .panel-heading:after,.panel-collapse .panel-heading:before{font-family:'Material Design Iconic Font';font-size:17px;position:absolute;left:0;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;top:4px}.panel-collapse .panel-heading:before{content:"\f0fb";-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.panel-collapse .panel-heading:after{-webkit-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0);content:"\f111"}.panel-collapse .panel-heading.active .panel-title>a:after{-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.panel-collapse .panel-heading.active:before{-webkit-transform:scale(0) rotate(-90deg);-ms-transform:scale(0) rotate(-90deg);-o-transform:scale(0) rotate(-90deg);transform:scale(0) rotate(-90deg)}.panel-collapse .panel-heading.active:after{-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.panel-collapse .panel-body{border-top:0 !important;padding-left:5px;padding-right:5px}.panel-group:not([data-collapse-color]) .panel-collapse .panel-heading.active .panel-title>a:after{background:#2196f3}.panel-group[data-collapse-color=red] .panel-collapse .panel-heading.active .panel-title>a:after{background:#f44336}.panel-group[data-collapse-color=green] .panel-collapse .panel-heading.active .panel-title>a:after{background:#4caf50}.panel-group[data-collapse-color=amber] .panel-collapse .panel-heading.active .panel-title>a:after{background:#ffc107}.panel-group[data-collapse-color=teal] .panel-collapse .panel-heading.active .panel-title>a:after{background:#009688}.panel-group[data-collapse-color=black] .panel-collapse .panel-heading.active .panel-title>a:after{background:#000}.panel-group[data-collapse-color=cyan] .panel-collapse .panel-heading.active .panel-title>a:after{background:#00bcd4}.tooltip-inner{border-radius:1px;padding:3px 10px 5px}.breadcrumb{border-bottom:1px solid #E5E5E5;border-radius:0}@media (min-width: 768px){.breadcrumb{padding:10px 77px 11px}}.breadcrumb>li>a{color:#A9A9A9}.breadcrumb>li>a:hover{color:#7c7c7c}#messages-main{position:relative}#messages-main:after,#messages-main:before{content:" ";display:table}#messages-main:after{clear:both}#messages-main .ms-block{padding:23px 20px 0}#messages-main .ms-menu{position:absolute;left:0;top:0;background:#F8F8F8;border-right:1px solid #EEE;padding-bottom:50px;height:100%;width:240px;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms}@media (max-width: 767px){#messages-main .ms-menu{height:calc(100% - 58px);-webkit-transform:translate3d(-240px, 58px, 0);transform:translate3d(-240px, 58px, 0);opacity:0;filter:alpha(opacity=0);z-index:1}#messages-main .ms-menu.toggled{-webkit-transform:translate3d(0, 58px, 0);transform:translate3d(0, 58px, 0);opacity:1;filter:alpha(opacity=100)}}#messages-main .ms-menu .lv-item{padding-left:20px;padding-right:20px}#messages-main .ms-menu .lv-item.active{background:#fff}#messages-main .ms-menu .lv-item:not(.active):hover{background:#F2F2F2;cursor:pointer}@media (min-width: 768px){#messages-main .ms-body{padding-left:240px}}@media (max-width: 767px){#messages-main .ms-body{overflow:hidden}}#messages-main .ms-user:after,#messages-main .ms-user:before{content:" ";display:table}#messages-main .ms-user:after{clear:both}#messages-main .ms-user>img{border-radius:50%;width:40px;float:left}#messages-main .ms-user>div{overflow:hidden;padding:7px 5px 7px 15px;font-size:11px}#messages-main #ms-compose{position:fixed;bottom:120px;z-index:1;right:30px;box-shadow:0 0 4px rgba(0,0,0,0.14),0 4px 8px rgba(0,0,0,0.28)}#ms-menu-trigger{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;float:left;margin:1px 0 0 -7px}@media (min-width: 768px){#ms-menu-trigger{display:none}}#ms-menu-trigger .line-wrap .line{background-color:#717171}.lv-message .lv-item{padding:20px}.lv-message .lv-item.right{text-align:right}.lv-message .lv-item.right .lv-avatar{margin-right:0;margin-left:15px}.lv-message .lv-item:not(.right) .ms-item{background:#ffc107;color:#fff}.lv-message .lv-item.right .ms-item{background:#eee}.lv-avatar{width:35px;height:35px;border-radius:50%;color:#FFF;text-align:center;line-height:34px;font-size:15px;margin-right:15px;padding:0 !important;text-transform:uppercase}.lv-avatar>img{width:35px;height:35px;border-radius:50%;vertical-align:top}.ms-item{padding:13px 19px 15px;border-radius:2px;display:inline-block}@media (min-width: 768px){.ms-item{max-width:70%}}.ms-date{display:block;color:#B3B3B3;margin-top:7px}.ms-date>i{font-size:14px;vertical-align:bottom;line-height:100%}.ms-reply{box-shadow:0 -20px 20px -5px #fff;position:relative;margin:0 !important}.ms-reply textarea{width:100%;font-size:13px;border:0;padding:10px 8px;resize:none;height:60px}.ms-reply button{position:absolute;top:0;right:0;border:0;height:100%;width:60px;font-size:25px;background:#F5F5F5;color:#2196f3}.ms-reply button:hover{background:#f2f2f2}.four-zero-content{background:#fff;padding:20px}.four-zero-content:before{height:50%;width:100%;position:absolute;top:0;left:0;background:#EDECEC;content:""}.four-zero{background:#00bcd4;box-shadow:0 1px 11px rgba(0,0,0,0.27);border-radius:2px;position:absolute;top:50%;margin-top:-150px;color:#fff;text-align:center;padding:15px;height:300px;width:500px;left:50%;margin-left:-250px}.four-zero h2{font-size:130px;line-height:100%;color:#fff;font-weight:100}@media (max-width: 767px){.four-zero{width:calc(100% - 40px);left:20px;margin-left:0;height:260px;margin-top:-130px}.four-zero h2{font-size:90px}}.four-zero small{display:block;font-size:26px;margin-top:-10px}.four-zero footer{background:rgba(0,0,0,0.13);position:absolute;left:0;bottom:0;width:100%;padding:10px}.four-zero footer>a{font-size:21px;display:inline-block;color:#FFF;margin:0 1px;line-height:40px;width:40px;height:40px;background:rgba(0,0,0,0.09);border-radius:50%;text-align:center;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms}.four-zero footer>a:hover{background:rgba(0,0,0,0.2)}.login-content{overflow:hidden;height:100%}.login-content .lc-block{background:#fff;box-shadow:0 1px 11px rgba(0,0,0,0.27);border-radius:2px;padding:35px 55px;width:500px;display:inline-block;margin-top:-60px;vertical-align:middle;position:relative}@media (max-width: 767px){.login-content .lc-block{padding:15px 35px 25px 20px;width:calc(100% - 60px)}}.login-content .lc-block .checkbox{margin:5px 0 0 42px;text-align:left}.login-content .lc-block .btn-login{top:50%;margin-top:-25px;right:-25px;box-shadow:0 0 4px rgba(0,0,0,0.14),0 4px 8px rgba(0,0,0,0.28)}.login-content .lc-block:not(.toggled){display:none}.login-content .lc-block.toggled{-webkit-animation-name:fadeInRight;animation-name:fadeInRight;-webkit-animation-duration:200ms;animation-duration:200ms;-webkit-animation-fill-mode:both;animation-fill-mode:both;z-index:10}.login-content .login-navigation{list-style:none;padding:0;margin:0;position:absolute;width:100%;text-align:center;left:0;bottom:-45px}.login-content .login-navigation>li{display:inline-block;margin:0 2px;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:150ms;transition-duration:150ms;cursor:pointer;vertical-align:top;color:#fff;line-height:16px;min-width:16px;min-height:16px;text-transform:uppercase;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden}.login-content .login-navigation>li>span{opacity:0;filter:alpha(opacity=0)}.login-content .login-navigation>li:not(:hover){font-size:0;border-radius:100%}.login-content .login-navigation>li:hover{border-radius:10px;padding:0 5px;font-size:8px}.login-content .login-navigation>li:hover>span{opacity:1;filter:alpha(opacity=100)}body.login-content{text-align:center}body.login-content:after{content:"";vertical-align:middle;display:inline-block;width:1px;height:100%}body.login-content:before{height:50%;width:100%;position:absolute;top:0;left:0;background:#00bcd4;content:"";z-index:0}.block-header{margin-bottom:25px;position:relative}@media screen and (min-width: 768px){.block-header{padding:0 22px}}@media screen and (max-width: 991px){.block-header{padding:0 18px}}.block-header>h2{font-size:15px;color:#777;margin:0;font-weight:400;text-transform:uppercase}.block-header>h2>small{display:block;text-transform:none;margin-top:8px;margin-bottom:20px;color:#9E9E9E;line-height:140%}.block-header .actions{position:absolute;right:10px;top:-5px;z-index:3}.actions{list-style:none;padding:0;z-index:2;margin:0}.actions>li{display:inline-block;vertical-align:baseline}.actions>a,.actions>li>a{width:30px;height:30px;line-height:29px;display:inline-block;text-align:center;position:relative}.actions>a>i,.actions>li>a>i{-webkit-transition:color;-moz-transition:color;-o-transition:color;transition:color;-webkit-transition-duration:1300ms;transition-duration:1300ms;color:#adadad;font-size:20px}.actions>a:hover>i,.actions>li>a:hover>i{color:#000}.actions>a:before,.actions>li>a:before{left:0;top:0;content:"";position:absolute;width:100%;height:100%;-webkit-transform:scale3d(0, 0, 0);-moz-transform:scale3d(0, 0, 0);-ms-transform:scale3d(0, 0, 0);-o-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,0.1);z-index:0;border-radius:50%;opacity:0;filter:alpha(opacity=0)}.actions>a:hover:before,.actions>li>a:hover:before{-webkit-transform:scale3d(1, 1, 1);-moz-transform:scale3d(1, 1, 1);-ms-transform:scale3d(1, 1, 1);-o-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1);opacity:1;filter:alpha(opacity=100)}.actions.open>a>i,.actions>li.open>a>i{color:#000}.actions.open>a:before,.actions>li.open>a:before{-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1);opacity:1;filter:alpha(opacity=100)}.actions.actions-alt>li.open>a>i,.actions.actions-alt>li>a>i,.actions.actions-alt>li>a>i:hover{color:#fff}.actions.open{z-index:3}.line-wrap{width:18px;height:12px;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms;margin:10px 20px}.line-wrap .line{width:18px;height:2px;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms}.line-wrap .line.center{margin:3px 0}.open .line-wrap{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.open .line-wrap .line.top{width:12px;transform:translateX(8px) translateY(1px) rotate(45deg);-webkit-transform:translateX(8px) translateY(1px) rotate(45deg)}.open .line-wrap .line.bottom{width:12px;transform:translateX(8px) translateY(-1px) rotate(-45deg);-webkit-transform:translateX(8px) translateY(-1px) rotate(-45deg)}.socicon{font-family:socicon !important}.ie-warning{position:fixed;top:0;left:0;z-index:9999;background:#000;width:100%;height:100%;text-align:center;color:#fff;font-family:"Courier New",Courier,monospace;padding:50px 0}.ie-warning p{font-size:17px}.ie-warning .iew-download{background:#fff;list-style:none;padding:30px 0;margin:50px -50px}.ie-warning .iew-download>li{display:inline;zoom:1;vertical-align:top}.ie-warning .iew-download>li>a{display:block;color:#000;width:140px;font-size:15px;padding:15px 0}.ie-warning .iew-download>li>a>div{margin-top:10px}.ie-warning .iew-download>li>a:hover{background-color:#eee}.mejs-container{outline:0}.mejs-container .mejs-controls{background:#ec592f;height:50px;padding:10px 5px 0}.mejs-container .mejs-controls div{height:5px}.mejs-container .mejs-controls div.mejs-time-rail{position:absolute;left:0;top:0;padding:0;width:100% !important}.mejs-container .mejs-controls div.mejs-time-rail .mejs-time-total{margin:0;width:100% !important;background:#ec592f}.mejs-container .mejs-controls div.mejs-time-rail .mejs-time-loaded{background:#D04B25}.mejs-container .mejs-controls div.mejs-time-rail .mejs-time-current{background:#ffea00}.mejs-container .mejs-controls div.mejs-time-rail .mejs-time-buffering{background:#ec592f}.mejs-container .mejs-controls div.mejs-time-rail a,.mejs-container .mejs-controls div.mejs-time-rail span:not(.mejs-time-float){border-radius:0;height:3px}.mejs-container .mejs-controls .mejs-button button{background-color:#ec592f;width:15px;height:15px;background-position:center}.mejs-container .mejs-controls .mejs-button button:focus{outline:0 !important}.mejs-container .mejs-controls .mejs-volume-button{position:absolute;right:35px}.mejs-container .mejs-controls .mejs-play button{background-image:url(/assets/icons/play.png)}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){.mejs-container .mejs-controls .mejs-play button{background-image:url(/assets/icons/[email protected]);background-size:15px 15px}}.mejs-container .mejs-controls .mejs-pause button{background-image:url(/assets/icons/pause.png)}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){.mejs-container .mejs-controls .mejs-pause button{background-image:url(/assets/icons/[email protected]);background-size:15px 15px}}.mejs-container .mejs-controls .mejs-mute button{background-image:url(/assets/icons/speaker.png)}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){.mejs-container .mejs-controls .mejs-mute button{background-image:url(/assets/icons/[email protected]);background-size:15px 15px}}.mejs-container .mejs-controls .mejs-unmute button{background-image:url(/assets/icons/speaker-2.png)}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){.mejs-container .mejs-controls .mejs-unmute button{background-image:url(/assets/icons/[email protected]);background-size:15px 15px}}.mejs-container .mejs-controls .mejs-fullscreen-button{position:absolute;right:5px}.mejs-container .mejs-controls .mejs-fullscreen-button button{background-image:url(/assets/icons/fullscreen.png)}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){.mejs-container .mejs-controls .mejs-fullscreen-button button{background-image:url(/assets/icons/[email protected]);background-size:15px 15px}}#calendar-widget{margin-bottom:30px;box-shadow:0 1px 1px rgba(0,0,0,0.15)}#fc-actions{position:absolute;top:24px;right:12px}.fc{background-color:#fff;box-shadow:0 1px 1px rgba(0,0,0,0.15);margin-bottom:30px}.fc td{border-color:#f0f0f0;text-align:center !important}.fc th{background:#f32c1e;color:rgba(255,255,255,0.9);font-weight:400;padding:6px 0}.fc table tr>td:first-child{border-left-width:0}.fc .ui-widget-header{border-width:0}.fc-toolbar{background-color:#f44336;margin-bottom:0;padding:20px 7px 19px;position:relative}.fc-toolbar h2{color:rgba(255,255,255,0.9);margin-top:7px;font-size:20px;font-weight:300;text-transform:uppercase}.fc-toolbar .ui-button{border:0;background:0 0;padding:0;outline:0 !important;text-align:center}.fc-toolbar .ui-button>span{position:relative;font-family:'Material Design Iconic Font';font-size:20px;color:#FFF;line-height:100%;width:30px;padding-top:5px;display:block;margin-top:2px}.fc-toolbar .ui-button>span:before{position:relative;z-index:1}.fc-toolbar .ui-button>span.ui-icon-circle-triangle-w:before{content:"\f297"}.fc-toolbar .ui-button>span.ui-icon-circle-triangle-e:before{content:"\f298"}.fc-toolbar .ui-button>span:after{content:"";width:0;position:absolute;top:50%;height:0;border-radius:50%;left:50%;z-index:0;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden}.fc-toolbar .ui-button:hover>span:after{width:31px;height:31px;left:0;top:0;background:rgba(0,0,0,0.2)}.fc-event{padding:0;font-size:11px;border-radius:0;border:0}.fc-event .fc-title{padding:2px 0;display:block}.fc-event .fc-time{float:left;background:rgba(0,0,0,0.2);padding:2px 6px;margin:0 0 0 -1px}.fc-view,.fc-view>table{border:0;overflow:hidden}.fc-view>table>tbody>tr>.ui-widget-content{border-top:0}div.fc-row{margin-right:0 !important;border:0 !important}.event-tag{margin-top:5px}.event-tag>span{border-radius:50%;width:30px;height:30px;position:relative;display:inline-block;cursor:pointer}.event-tag>span:hover{opacity:.8;filter:alpha(opacity=80)}.event-tag>span.selected:before{font-family:'Material Design Iconic Font';content:"\f299";position:absolute;text-align:center;top:3px;width:100%;font-size:17px;color:#FFF}.bootgrid-footer .infoBar,.bootgrid-header .actionBar{text-align:left}.bootgrid-footer .search,.bootgrid-header .search{vertical-align:top}.bootgrid-header{padding:0 25px 10px}.bootgrid-header .search{border:1px solid #e0e0e0}.bootgrid-header .search .form-control,.bootgrid-header .search .input-group-addon{border:0}.bootgrid-header .search .glyphicon-search{vertical-align:top;padding:10px 10px 0}.bootgrid-header .search .glyphicon-search:before{content:"\f05f";font-family:'Material Design Iconic Font';font-size:17px;vertical-align:top;line-height:100%}@media (min-width: 480px){.bootgrid-header .search{width:300px}}@media (max-width: 480px){.bootgrid-header .search{width:100%;padding-right:90px}}.bootgrid-header .actions{box-shadow:none}.bootgrid-header .actions .btn-group{border:1px solid #e0e0e0}.bootgrid-header .actions .btn-group .btn{height:35px;box-shadow:none !important;background:0 0}.bootgrid-header .actions .btn-group .dropdown-menu{padding:10px 20px}.bootgrid-header .actions .btn-group .dropdown-menu .dropdown-item{padding:0 0 0 27px !important}.bootgrid-header .actions .btn-group .dropdown-menu .dropdown-item:hover{background-color:#fff !important}@media (min-width: 768px){.bootgrid-header .actions .btn-group .dropdown-menu{left:0;-webkit-transform-origin:top left;-moz-transform-origin:top left;-ms-transform-origin:top left;transform-origin:top left;margin-top:1px}}.bootgrid-header .actions .btn-group .caret{display:none}.bootgrid-header .actions .btn-group .md{line-height:100%;font-size:18px;vertical-align:top;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms}.bootgrid-header .actions .btn-group.open .md{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}@media (max-width: 480px){.bootgrid-header .actions{position:absolute;top:0;right:15px}}.bootgrid-table th>.column-header-anchor>.icon{top:0;font-size:20px;line-height:100%}.bootgrid-footer .col-sm-6{padding:10px 30px 20px}@media (max-width: 768px){.bootgrid-footer .col-sm-6{text-align:center}}@media (max-width: 768px){.bootgrid-footer .infoBar{display:none}}.bootgrid-footer .infoBar .infos{border:1px solid #EEE;display:inline-block;float:right;padding:7px 30px;font-size:12px;margin-top:5px}.select-cell .checkbox{margin:0}.command-delete,.command-edit{background:#fff;border:1px solid #eee !important}.bootstrap-select>.selectpicker{background:none !important;border-bottom:1px solid #e0e0e0 !important;border-radius:0;padding-left:0;padding-right:0}.bootstrap-select>.selectpicker:before{position:absolute;top:0;right:0;content:"";height:calc(100% - 2px);width:30px;background-color:#FFF;background-position:right calc(100% - 7px);background-repeat:no-repeat;background-image:url(/assets/select.png);pointer-events:none;z-index:5}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){.bootstrap-select>.selectpicker:before{background-image:url(/assets/[email protected]);background-size:12px 12px}}.bootstrap-select>.selectpicker:after{position:absolute;z-index:3;bottom:-1px;left:0;height:2px;width:0;content:"";-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms}.bootstrap-select>.selectpicker:not(.disabled):after,.bootstrap-select>.selectpicker:not(.readonly):after{background:#2196f3}.bootstrap-select>.selectpicker.disabled:after,.bootstrap-select>.selectpicker.readonly:after{background:#ccc}.bootstrap-select.open>.selectpicker:after{width:100%}.bootstrap-select .bs-searchbox{padding:0 18px;margin:5px 0 10px;position:relative}.bootstrap-select .bs-searchbox:before{position:absolute;left:14px;top:2px;width:30px;height:100%;content:"\f05f";font-family:'Material Design Iconic Font';font-size:25px}.bootstrap-select .bs-searchbox input{padding-left:25px;border:0}.bootstrap-select.btn-group .dropdown-menu li a.opt{padding-left:17px}.bootstrap-select .check-mark{margin-top:-5px !important;font-size:19px;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0);display:block !important;position:absolute;top:7px;right:15px}.bootstrap-select .selected .check-mark{-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}.bootstrap-select .notify{bottom:0 !important;margin:0 !important;width:100% !important;border:0 !important;background:#f44336 !important;color:#fff !important;text-align:center}.chosen-container .chosen-drop{border:0}.chosen-container:after{position:absolute;z-index:3;bottom:0;left:0;height:2px;width:0;content:"";-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms;background:#2196f3}.chosen-container .chosen-drop{margin-top:1px;display:block;left:0;width:100%;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0);opacity:0;filter:alpha(opacity=0)}.chosen-container:not(.chosen-right) .chosen-drop{-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.chosen-container.chosen-right .chosen-drop{-webkit-transform-origin:100% 0;-moz-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0}.chosen-container.chosen-container-active .chosen-drop{-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1);opacity:1;filter:alpha(opacity=100)}.chosen-container .chosen-results{padding:0;margin:0}.chosen-container .chosen-results>li{padding:8px 17px;color:#4C4C4C;-webkit-transition:background-color;-moz-transition:background-color;-o-transition:background-color;transition:background-color;-webkit-transition-duration:300ms;transition-duration:300ms}.chosen-container .chosen-results>li:not(.disabled-result):not(.result-selected):not(.group-result){color:#262626}.chosen-container .chosen-results>li:not(.disabled-result):not(.result-selected):not(.group-result):not(:hover){background:#fff !important}.chosen-container .chosen-results>li:not(.disabled-result):not(.result-selected):not(.group-result):hover{background-color:#e4e4e4;color:#262626}.chosen-container .chosen-results>li.disabled-result{color:#e4e4e4}.chosen-container .chosen-results>li.result-selected{background:#2196f3;color:#fff}.chosen-container .chosen-results>li.group-result{padding:3px 16px;margin-top:10px;color:#b1b1b1;font-weight:400}.chosen-container .chosen-results>li.group-result:not(:first-child){border-top:1px solid rgba(0,0,0,0.08);padding-top:15px}.chosen-container .chosen-choices{border-left:0;border-top:0;border-right:0}.chosen-container .chosen-choices .search-field input[type=text]{height:34px}.chosen-container .chosen-choices .search-choice{border:0;padding:5px 25px 5px 7px;border-radius:2px;margin:3px 5px 1px 0}.chosen-container .chosen-choices .search-choice .search-choice-close{right:5px}.chosen-container .chosen-choices .search-choice .search-choice-close:before{font-family:'Material Design Iconic Font';content:"\f29a";font-size:13px;color:#696969;margin-right:8px}.chosen-container .chosen-choices .chosen-single-with-deselect:before{font-family:'Material Design Iconic Font';font-size:13px;color:#696969;margin-right:8px;content:""}.chosen-container-single:before{position:absolute;top:0;height:100%;width:13px;right:0;z-index:1;background-image:url(/assets/select.png);background-position:right;background-repeat:no-repeat;content:""}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){.chosen-container-single:before{background-image:url(/assets/[email protected]);background-size:12px 12px}}.chosen-container-single .chosen-single{padding:0 16px 0 0;border-left:0;border-top:0;border-right:0}.chosen-container-single .chosen-search{padding:0 18px;margin:10px 0 15px;position:relative}.chosen-container-single .chosen-search:before{position:absolute;left:14px;top:2px;width:30px;height:100%;content:"\f05f";font-family:'Material Design Iconic Font';font-size:25px}.chosen-container-single .chosen-search input[type=text]{border:0;padding-top:8px;padding-left:30px}.chosen-container-active.chosen-with-drop .chosen-single{border:0}.chosen-container-active:after{width:100%}.noUi-target{border-radius:0;box-shadow:none;border:0}.noUi-background{background:#d4d4d4;box-shadow:none}.noUi-horizontal{height:3px}.noUi-horizontal .noUi-handle{top:-8px}.noUi-vertical{width:3px}.noUi-horizontal .noUi-handle,.noUi-vertical .noUi-handle{width:19px;height:19px;border:0;border-radius:100%;box-shadow:none;-webkit-transition:box-shadow;-moz-transition:box-shadow;-o-transition:box-shadow;transition:box-shadow;-webkit-transition-duration:200ms;transition-duration:200ms;cursor:pointer;position:relative}.noUi-horizontal .noUi-handle:after,.noUi-horizontal .noUi-handle:before,.noUi-vertical .noUi-handle:after,.noUi-vertical .noUi-handle:before{display:none}.noUi-horizontal .noUi-handle:active,.noUi-vertical .noUi-handle:active{background:#ccc !important}.noUi-horizontal .noUi-handle .is-tooltip,.noUi-vertical .noUi-handle .is-tooltip{position:absolute;bottom:32px;height:35px;border-radius:2px;color:#fff;text-align:center;line-height:33px;width:50px;left:50%;margin-left:-25px;padding:0 10px;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden;opacity:0;filter:alpha(opacity=0);-webkit-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0)}.noUi-horizontal .noUi-handle .is-tooltip:after,.noUi-vertical .noUi-handle .is-tooltip:after{width:0;height:0;border-style:solid;border-width:15px 10px 0;position:absolute;bottom:-8px;left:50%;margin-left:-9px;content:""}.noUi-horizontal .noUi-active,.noUi-vertical .noUi-active{box-shadow:0 0 0 13px rgba(0,0,0,0.1)}.noUi-horizontal .noUi-active .is-tooltip,.noUi-vertical .noUi-active .is-tooltip{-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1);bottom:40px;opacity:1;filter:alpha(opacity=100)}.input-slider-range:not([data-is-color]) .noUi-connect,.input-slider-range:not([data-is-color]) .noUi-handle,.input-slider-values:not([data-is-color]) .noUi-connect,.input-slider-values:not([data-is-color]) .noUi-handle,.input-slider:not([data-is-color]) .noUi-connect,.input-slider:not([data-is-color]) .noUi-handle{background:#009688 !important}.input-slider-range:not([data-is-color]) .is-tooltip,.input-slider-values:not([data-is-color]) .is-tooltip,.input-slider:not([data-is-color]) .is-tooltip{background:#009688}.input-slider-range:not([data-is-color]) .is-tooltip:after,.input-slider-values:not([data-is-color]) .is-tooltip:after,.input-slider:not([data-is-color]) .is-tooltip:after{border-color:#009688 transparent transparent}.input-slider-range[data-is-color=red] .noUi-connect,.input-slider-range[data-is-color=red] .noUi-handle,.input-slider-values[data-is-color=red] .noUi-connect,.input-slider-values[data-is-color=red] .noUi-handle,.input-slider[data-is-color=red] .noUi-connect,.input-slider[data-is-color=red] .noUi-handle{background:#f44336 !important}.input-slider-range[data-is-color=blue] .noUi-connect,.input-slider-range[data-is-color=blue] .noUi-handle,.input-slider-values[data-is-color=blue] .noUi-connect,.input-slider-values[data-is-color=blue] .noUi-handle,.input-slider[data-is-color=blue] .noUi-connect,.input-slider[data-is-color=blue] .noUi-handle{background:#2196f3 !important}.input-slider-range[data-is-color=cyan] .noUi-connect,.input-slider-range[data-is-color=cyan] .noUi-handle,.input-slider-values[data-is-color=cyan] .noUi-connect,.input-slider-values[data-is-color=cyan] .noUi-handle,.input-slider[data-is-color=cyan] .noUi-connect,.input-slider[data-is-color=cyan] .noUi-handle{background:#00bcd4 !important}.input-slider-range[data-is-color=amber] .noUi-connect,.input-slider-range[data-is-color=amber] .noUi-handle,.input-slider-values[data-is-color=amber] .noUi-connect,.input-slider-values[data-is-color=amber] .noUi-handle,.input-slider[data-is-color=amber] .noUi-connect,.input-slider[data-is-color=amber] .noUi-handle{background:#ffc107 !important}.input-slider-range[data-is-color=green] .noUi-connect,.input-slider-range[data-is-color=green] .noUi-handle,.input-slider-values[data-is-color=green] .noUi-connect,.input-slider-values[data-is-color=green] .noUi-handle,.input-slider[data-is-color=green] .noUi-connect,.input-slider[data-is-color=green] .noUi-handle{background:#4caf50 !important}.input-slider .noUi-origin{background:#d4d4d4}.input-slider:not([data-is-color]) .noUi-base{background:#009688 !important}.input-slider[data-is-color=red] .noUi-base{background:#f44336 !important}.input-slider[data-is-color=blue] .noUi-base{background:#2196f3 !important}.input-slider[data-is-color=cyan] .noUi-base{background:#00bcd4 !important}.input-slider[data-is-color=amber] .noUi-base{background:#ffc107 !important}.input-slider[data-is-color=green] .noUi-base{background:#4caf50 !important}.cp-container{position:relative}.cp-container>.input-group input.cp-value{color:#000 !important;background:0 0 !important}.cp-container>.input-group .dropdown-menu{padding:20px;margin-left:10px}.cp-container i.cp-value{width:25px;height:25px;border-radius:2px;position:absolute;top:0;right:15px}.bootstrap-datetimepicker-widget{margin-top:0 !important}.bootstrap-datetimepicker-widget.top{-webkit-transform-origin:0 100% !important;-moz-transform-origin:0 100% !important;-ms-transform-origin:0 100% !important;transform-origin:0 100% !important}.bootstrap-datetimepicker-widget:after,.bootstrap-datetimepicker-widget:before{display:none !important}.bootstrap-datetimepicker-widget .picker-switch.accordion-toggle span{background:#fff;border-radius:0}.bootstrap-datetimepicker-widget .picker-switch.accordion-toggle span:hover{background:#fff}.bootstrap-datetimepicker-widget .datepicker-days table{margin-bottom:20px}.bootstrap-datetimepicker-widget .timepicker .md{font-size:25px}.bootstrap-datetimepicker-widget .glyphicon{color:#333}.fileinput .close{position:relative;top:7px;margin-left:10px;font-size:22px;float:none}.fileinput .input-group-addon{padding:0 10px;vertical-align:middle}.fileinput .fileinput-preview{width:200px;height:150px;position:relative}.fileinput .fileinput-preview img{display:inline-block;vertical-align:middle;margin-top:-13px}.fileinput .fileinput-preview:after{content:"";display:inline-block;vertical-align:middle}.sweet-alert{border-radius:2px;font-family:inherit;padding:30px}.sweet-alert>h2{font-size:20px;font-weight:400;color:#000;margin:0 0 5px}.sweet-alert p{font-size:13px;color:#5e5e5e}.sweet-alert button{font-size:12px;text-transform:uppercase;padding:6px 10px;font-weight:300;border-radius:2px}.sweet-alert .sa-icon{margin:0 auto 20px} /*! * Material Design Iconic Font 1.0.1 by Sergey Kupletsky (@zavoloklom) - http://zavoloklom.github.io/material-design-iconic-font/ * License - https://github.com/zavoloklom/material-design-iconic-font/blob/gh-pages/License.md (Attribution-ShareAlike 4.0 International license) */@font-face{font-family:'Material Design Iconic Font';src:url(../fonts/Material-Design-Iconic-Font.eot?v=1.0.1);src:url(../fonts/Material-Design-Iconic-Font.eot?#iefix&v=1.0.1) format("embedded-opentype"),url(../fonts/Material-Design-Iconic-Font.woff?v=1.0.1) format("woff"),url(../fonts/Material-Design-Iconic-Font.ttf?v=1.0.1) format("truetype"),url(../fonts/Material-Design-Iconic-Font.svg?v=1.0.1#Material-Design-Iconic-Font) format("svg");font-weight:400;font-style:normal}[class*=" md-"],[class^=md-]{display:inline-block;font:normal normal normal 14px/1 "Material Design Iconic Font";font-size:inherit;speak:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.md{line-height:inherit;vertical-align:bottom}.md-lg{font-size:1.5em;line-height:.5em;vertical-align:-35%}.md-2x{font-size:2em}.md-3x{font-size:3em}.md-4x{font-size:4em}.md-5x{font-size:5em}.md-border{padding:.2em .25em .15em;border:.08em solid gray;border-radius:.1em}.md-border-circle{padding:.2em .25em .15em;border:.08em solid gray;border-radius:50%}[class*=" md-"].pull-left,[class^=md-].pull-left{float:left;margin-right:.3em}[class*=" md-"].pull-right,[class^=md-].pull-right{float:right;margin-left:.3em}.md-spin{-webkit-animation:md-spin 1.5s infinite linear;animation:md-spin 1.5s infinite linear}.md-spin-reverse{-webkit-animation:md-spin-reverse 1.5s infinite linear;animation:md-spin-reverse 1.5s infinite linear}@-webkit-keyframes md-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes md-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes md-spin-reverse{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(-359deg);transform:rotate(-359deg)}}@keyframes md-spin-reverse{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(-359deg);transform:rotate(-359deg)}}.md-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.md-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.md-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.md-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.md-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .md-flip-horizontal,:root .md-flip-vertical,:root .md-rotate-180,:root .md-rotate-270,:root .md-rotate-90{filter:none}.md-3d-rotation:before{content:"\f000"}.md-accessibility:before{content:"\f001"}.md-account-balance:before{content:"\f002"}.md-account-balance-wallet:before{content:"\f003"}.md-account-box:before{content:"\f004"}.md-account-child:before{content:"\f005"}.md-account-circle:before{content:"\f006"}.md-add-shopping-cart:before{content:"\f007"}.md-alarm:before{content:"\f008"}.md-alarm-add:before{content:"\f009"}.md-alarm-off:before{content:"\f00a"}.md-alarm-on:before{content:"\f00b"}.md-android:before{content:"\f00c"}.md-announcement:before{content:"\f00d"}.md-aspect-ratio:before{content:"\f00e"}.md-assessment:before{content:"\f00f"}.md-assignment:before{content:"\f010"}.md-assignment-ind:before{content:"\f011"}.md-assignment-late:before{content:"\f012"}.md-assignment-return:before{content:"\f013"}.md-assignment-returned:before{content:"\f014"}.md-assignment-turned-in:before{content:"\f015"}.md-autorenew:before{content:"\f016"}.md-backup:before{content:"\f017"}.md-book:before{content:"\f018"}.md-bookmark:before{content:"\f019"}.md-bookmark-outline:before{content:"\f01a"}.md-bug-report:before{content:"\f01b"}.md-cached:before{content:"\f01c"}.md-class:before{content:"\f01d"}.md-credit-card:before{content:"\f01e"}.md-dashboard:before{content:"\f01f"}.md-delete:before{content:"\f020"}.md-description:before{content:"\f021"}.md-dns:before{content:"\f022"}.md-done:before{content:"\f023"}.md-done-all:before{content:"\f024"}.md-event:before{content:"\f025"}.md-exit-to-app:before{content:"\f026"}.md-explore:before{content:"\f027"}.md-extension:before{content:"\f028"}.md-face-unlock:before{content:"\f029"}.md-favorite:before{content:"\f02a"}.md-favorite-outline:before{content:"\f02b"}.md-find-in-page:before{content:"\f02c"}.md-find-replace:before{content:"\f02d"}.md-flip-to-back:before{content:"\f02e"}.md-flip-to-front:before{content:"\f02f"}.md-get-app:before{content:"\f030"}.md-grade:before{content:"\f031"}.md-group-work:before{content:"\f032"}.md-help:before{content:"\f033"}.md-highlight-remove:before{content:"\f034"}.md-history:before{content:"\f035"}.md-home:before{content:"\f036"}.md-https:before{content:"\f037"}.md-info:before{content:"\f038"}.md-info-outline:before{content:"\f039"}.md-input:before{content:"\f03a"}.md-invert-colors:before{content:"\f03b"}.md-label:before{content:"\f03c"}.md-label-outline:before{content:"\f03d"}.md-language:before{content:"\f03e"}.md-launch:before{content:"\f03f"}.md-list:before{content:"\f040"}.md-lock:before{content:"\f041"}.md-lock-open:before{content:"\f042"}.md-lock-outline:before{content:"\f043"}.md-loyalty:before{content:"\f044"}.md-markunread-mailbox:before{content:"\f045"}.md-note-add:before{content:"\f046"}.md-open-in-browser:before{content:"\f047"}.md-open-in-new:before{content:"\f048"}.md-open-with:before{content:"\f049"}.md-pageview:before{content:"\f04a"}.md-payment:before{content:"\f04b"}.md-perm-camera-mic:before{content:"\f04c"}.md-perm-contact-cal:before{content:"\f04d"}.md-perm-data-setting:before{content:"\f04e"}.md-perm-device-info:before{content:"\f04f"}.md-perm-identity:before{content:"\f050"}.md-perm-media:before{content:"\f051"}.md-perm-phone-msg:before{content:"\f052"}.md-perm-scan-wifi:before{content:"\f053"}.md-picture-in-picture:before{content:"\f054"}.md-polymer:before{content:"\f055"}.md-print:before{content:"\f056"}.md-query-builder:before{content:"\f057"}.md-question-answer:before{content:"\f058"}.md-receipt:before{content:"\f059"}.md-redeem:before{content:"\f05a"}.md-report-problem:before{content:"\f05b"}.md-restore:before{content:"\f05c"}.md-room:before{content:"\f05d"}.md-schedule:before{content:"\f05e"}.md-search:before{content:"\f05f"}.md-settings:before{content:"\f060"}.md-settings-applications:before{content:"\f061"}.md-settings-backup-restore:before{content:"\f062"}.md-settings-bluetooth:before{content:"\f063"}.md-settings-cell:before{content:"\f064"}.md-settings-display:before{content:"\f065"}.md-settings-ethernet:before{content:"\f066"}.md-settings-input-antenna:before{content:"\f067"}.md-settings-input-component:before{content:"\f068"}.md-settings-input-composite:before{content:"\f069"}.md-settings-input-hdmi:before{content:"\f06a"}.md-settings-input-svideo:before{content:"\f06b"}.md-settings-overscan:before{content:"\f06c"}.md-settings-phone:before{content:"\f06d"}.md-settings-power:before{content:"\f06e"}.md-settings-remote:before{content:"\f06f"}.md-settings-voice:before{content:"\f070"}.md-shop:before{content:"\f071"}.md-shopping-basket:before{content:"\f072"}.md-shopping-cart:before{content:"\f073"}.md-shop-two:before{content:"\f074"}.md-speaker-notes:before{content:"\f075"}.md-spellcheck:before{content:"\f076"}.md-star-rate:before{content:"\f077"}.md-stars:before{content:"\f078"}.md-store:before{content:"\f079"}.md-subject:before{content:"\f07a"}.md-swap-horiz:before{content:"\f07b"}.md-swap-vert:before{content:"\f07c"}.md-swap-vert-circle:before{content:"\f07d"}.md-system-update-tv:before{content:"\f07e"}.md-tab:before{content:"\f07f"}.md-tab-unselected:before{content:"\f080"}.md-theaters:before{content:"\f081"}.md-thumb-down:before{content:"\f082"}.md-thumbs-up-down:before{content:"\f083"}.md-thumb-up:before{content:"\f084"}.md-toc:before{content:"\f085"}.md-today:before{content:"\f086"}.md-track-changes:before{content:"\f087"}.md-translate:before{content:"\f088"}.md-trending-down:before{content:"\f089"}.md-trending-neutral:before{content:"\f08a"}.md-trending-up:before{content:"\f08b"}.md-turned-in:before{content:"\f08c"}.md-turned-in-not:before{content:"\f08d"}.md-verified-user:before{content:"\f08e"}.md-view-agenda:before{content:"\f08f"}.md-view-array:before{content:"\f090"}.md-view-carousel:before{content:"\f091"}.md-view-column:before{content:"\f092"}.md-view-day:before{content:"\f093"}.md-view-headline:before{content:"\f094"}.md-view-list:before{content:"\f095"}.md-view-module:before{content:"\f096"}.md-view-quilt:before{content:"\f097"}.md-view-stream:before{content:"\f098"}.md-view-week:before{content:"\f099"}.md-visibility:before{content:"\f09a"}.md-visibility-off:before{content:"\f09b"}.md-wallet-giftcard:before{content:"\f09c"}.md-wallet-membership:before{content:"\f09d"}.md-wallet-travel:before{content:"\f09e"}.md-work:before{content:"\f09f"}.md-error:before{content:"\f0a0"}.md-warning:before{content:"\f0a1"}.md-album:before{content:"\f0a2"}.md-av-timer:before{content:"\f0a3"}.md-closed-caption:before{content:"\f0a4"}.md-equalizer:before{content:"\f0a5"}.md-explicit:before{content:"\f0a6"}.md-fast-forward:before{content:"\f0a7"}.md-fast-rewind:before{content:"\f0a8"}.md-games:before{content:"\f0a9"}.md-hearing:before{content:"\f0aa"}.md-high-quality:before{content:"\f0ab"}.md-loop:before{content:"\f0ac"}.md-mic:before{content:"\f0ad"}.md-mic-none:before{content:"\f0ae"}.md-mic-off:before{content:"\f0af"}.md-movie:before{content:"\f0b0"}.md-my-library-add:before{content:"\f0b1"}.md-my-library-books:before{content:"\f0b2"}.md-my-library-music:before{content:"\f0b3"}.md-new-releases:before{content:"\f0b4"}.md-not-interested:before{content:"\f0b5"}.md-pause:before{content:"\f0b6"}.md-pause-circle-fill:before{content:"\f0b7"}.md-pause-circle-outline:before{content:"\f0b8"}.md-play-arrow:before{content:"\f0b9"}.md-play-circle-fill:before{content:"\f0ba"}.md-play-circle-outline:before{content:"\f0bb"}.md-playlist-add:before{content:"\f0bc"}.md-play-shopping-bag:before{content:"\f0bd"}.md-queue:before{content:"\f0be"}.md-queue-music:before{content:"\f0bf"}.md-radio:before{content:"\f0c0"}.md-recent-actors:before{content:"\f0c1"}.md-repeat:before{content:"\f0c2"}.md-repeat-one:before{content:"\f0c3"}.md-replay:before{content:"\f0c4"}.md-shuffle:before{content:"\f0c5"}.md-skip-next:before{content:"\f0c6"}.md-skip-previous:before{content:"\f0c7"}.md-snooze:before{content:"\f0c8"}.md-stop:before{content:"\f0c9"}.md-subtitles:before{content:"\f0ca"}.md-surround-sound:before{content:"\f0cb"}.md-videocam:before{content:"\f0cc"}.md-videocam-off:before{content:"\f0cd"}.md-video-collection:before{content:"\f0ce"}.md-volume-down:before{content:"\f0cf"}.md-volume-mute:before{content:"\f0d0"}.md-volume-off:before{content:"\f0d1"}.md-volume-up:before{content:"\f0d2"}.md-web:before{content:"\f0d3"}.md-business:before{content:"\f0d4"}.md-call:before{content:"\f0d5"}.md-call-end:before{content:"\f0d6"}.md-call-made:before{content:"\f0d7"}.md-call-merge:before{content:"\f0d8"}.md-call-missed:before{content:"\f0d9"}.md-call-received:before{content:"\f0da"}.md-call-split:before{content:"\f0db"}.md-chat:before{content:"\f0dc"}.md-clear-all:before{content:"\f0dd"}.md-comment:before{content:"\f0de"}.md-contacts:before{content:"\f0df"}.md-dialer-sip:before{content:"\f0e0"}.md-dialpad:before{content:"\f0e1"}.md-dnd-on:before{content:"\f0e2"}.md-email:before{content:"\f0e3"}.md-forum:before{content:"\f0e4"}.md-import-export:before{content:"\f0e5"}.md-invert-colors-off:before{content:"\f0e6"}.md-invert-colors-on:before{content:"\f0e7"}.md-live-help:before{content:"\f0e8"}.md-location-off:before{content:"\f0e9"}.md-location-on:before{content:"\f0ea"}.md-message:before{content:"\f0eb"}.md-messenger:before{content:"\f0ec"}.md-no-sim:before{content:"\f0ed"}.md-phone:before{content:"\f0ee"}.md-portable-wifi-off:before{content:"\f0ef"}.md-quick-contacts-dialer:before{content:"\f0f0"}.md-quick-contacts-mail:before{content:"\f0f1"}.md-ring-volume:before{content:"\f0f2"}.md-stay-current-landscape:before{content:"\f0f3"}.md-stay-current-portrait:before{content:"\f0f4"}.md-stay-primary-landscape:before{content:"\f0f5"}.md-stay-primary-portrait:before{content:"\f0f6"}.md-swap-calls:before{content:"\f0f7"}.md-textsms:before{content:"\f0f8"}.md-voicemail:before{content:"\f0f9"}.md-vpn-key:before{content:"\f0fa"}.md-add:before{content:"\f0fb"}.md-add-box:before{content:"\f0fc"}.md-add-circle:before{content:"\f0fd"}.md-add-circle-outline:before{content:"\f0fe"}.md-archive:before{content:"\f0ff"}.md-backspace:before{content:"\f100"}.md-block:before{content:"\f101"}.md-clear:before{content:"\f102"}.md-content-copy:before{content:"\f103"}.md-content-cut:before{content:"\f104"}.md-content-paste:before{content:"\f105"}.md-create:before{content:"\f106"}.md-drafts:before{content:"\f107"}.md-filter-list:before{content:"\f108"}.md-flag:before{content:"\f109"}.md-forward:before{content:"\f10a"}.md-gesture:before{content:"\f10b"}.md-inbox:before{content:"\f10c"}.md-link:before{content:"\f10d"}.md-mail:before{content:"\f10e"}.md-markunread:before{content:"\f10f"}.md-redo:before{content:"\f110"}.md-remove:before{content:"\f111"}.md-remove-circle:before{content:"\f112"}.md-remove-circle-outline:before{content:"\f113"}.md-reply:before{content:"\f114"}.md-reply-all:before{content:"\f115"}.md-report:before{content:"\f116"}.md-save:before{content:"\f117"}.md-select-all:before{content:"\f118"}.md-send:before{content:"\f119"}.md-sort:before{content:"\f11a"}.md-text-format:before{content:"\f11b"}.md-undo:before{content:"\f11c"}.md-access-alarm:before{content:"\f11d"}.md-access-alarms:before{content:"\f11e"}.md-access-time:before{content:"\f11f"}.md-add-alarm:before{content:"\f120"}.md-airplanemode-off:before{content:"\f121"}.md-airplanemode-on:before{content:"\f122"}.md-battery-20:before{content:"\f123"}.md-battery-30:before{content:"\f124"}.md-battery-50:before{content:"\f125"}.md-battery-60:before{content:"\f126"}.md-battery-80:before{content:"\f127"}.md-battery-90:before{content:"\f128"}.md-battery-alert:before{content:"\f129"}.md-battery-charging-20:before{content:"\f12a"}.md-battery-charging-30:before{content:"\f12b"}.md-battery-charging-50:before{content:"\f12c"}.md-battery-charging-60:before{content:"\f12d"}.md-battery-charging-80:before{content:"\f12e"}.md-battery-charging-90:before{content:"\f12f"}.md-battery-charging-full:before{content:"\f130"}.md-battery-full:before{content:"\f131"}.md-battery-std:before{content:"\f132"}.md-battery-unknown:before{content:"\f133"}.md-bluetooth:before{content:"\f134"}.md-bluetooth-connected:before{content:"\f135"}.md-bluetooth-disabled:before{content:"\f136"}.md-bluetooth-searching:before{content:"\f137"}.md-brightness-auto:before{content:"\f138"}.md-brightness-high:before{content:"\f139"}.md-brightness-low:before{content:"\f13a"}.md-brightness-medium:before{content:"\f13b"}.md-data-usage:before{content:"\f13c"}.md-developer-mode:before{content:"\f13d"}.md-devices:before{content:"\f13e"}.md-dvr:before{content:"\f13f"}.md-gps-fixed:before{content:"\f140"}.md-gps-not-fixed:before{content:"\f141"}.md-gps-off:before{content:"\f142"}.md-location-disabled:before{content:"\f143"}.md-location-searching:before{content:"\f144"}.md-multitrack-audio:before{content:"\f145"}.md-network-cell:before{content:"\f146"}.md-network-wifi:before{content:"\f147"}.md-nfc:before{content:"\f148"}.md-now-wallpaper:before{content:"\f149"}.md-now-widgets:before{content:"\f14a"}.md-screen-lock-landscape:before{content:"\f14b"}.md-screen-lock-portrait:before{content:"\f14c"}.md-screen-lock-rotation:before{content:"\f14d"}.md-screen-rotation:before{content:"\f14e"}.md-sd-storage:before{content:"\f14f"}.md-settings-system-daydream:before{content:"\f150"}.md-signal-cellular-0-bar:before{content:"\f151"}.md-signal-cellular-1-bar:before{content:"\f152"}.md-signal-cellular-2-bar:before{content:"\f153"}.md-signal-cellular-3-bar:before{content:"\f154"}.md-signal-cellular-4-bar:before{content:"\f155"}.md-signal-cellular-connected-no-internet-0-bar:before{content:"\f156"}.md-signal-cellular-connected-no-internet-1-bar:before{content:"\f157"}.md-signal-cellular-connected-no-internet-2-bar:before{content:"\f158"}.md-signal-cellular-connected-no-internet-3-bar:before{content:"\f159"}.md-signal-cellular-connected-no-internet-4-bar:before{content:"\f15a"}.md-signal-cellular-no-sim:before{content:"\f15b"}.md-signal-cellular-null:before{content:"\f15c"}.md-signal-cellular-off:before{content:"\f15d"}.md-signal-wifi-0-bar:before{content:"\f15e"}.md-signal-wifi-1-bar:before{content:"\f15f"}.md-signal-wifi-2-bar:before{content:"\f160"}.md-signal-wifi-3-bar:before{content:"\f161"}.md-signal-wifi-4-bar:before{content:"\f162"}.md-signal-wifi-off:before{content:"\f163"}.md-storage:before{content:"\f164"}.md-usb:before{content:"\f165"}.md-wifi-lock:before{content:"\f166"}.md-wifi-tethering:before{content:"\f167"}.md-attach-file:before{content:"\f168"}.md-attach-money:before{content:"\f169"}.md-border-all:before{content:"\f16a"}.md-border-bottom:before{content:"\f16b"}.md-border-clear:before{content:"\f16c"}.md-border-color:before{content:"\f16d"}.md-border-horizontal:before{content:"\f16e"}.md-border-inner:before{content:"\f16f"}.md-border-left:before{content:"\f170"}.md-border-outer:before{content:"\f171"}.md-border-right:before{content:"\f172"}.md-border-style:before{content:"\f173"}.md-border-top:before{content:"\f174"}.md-border-vertical:before{content:"\f175"}.md-format-align-center:before{content:"\f176"}.md-format-align-justify:before{content:"\f177"}.md-format-align-left:before{content:"\f178"}.md-format-align-right:before{content:"\f179"}.md-format-bold:before{content:"\f17a"}.md-format-clear:before{content:"\f17b"}.md-format-color-fill:before{content:"\f17c"}.md-format-color-reset:before{content:"\f17d"}.md-format-color-text:before{content:"\f17e"}.md-format-indent-decrease:before{content:"\f17f"}.md-format-indent-increase:before{content:"\f180"}.md-format-italic:before{content:"\f181"}.md-format-line-spacing:before{content:"\f182"}.md-format-list-bulleted:before{content:"\f183"}.md-format-list-numbered:before{content:"\f184"}.md-format-paint:before{content:"\f185"}.md-format-quote:before{content:"\f186"}.md-format-size:before{content:"\f187"}.md-format-strikethrough:before{content:"\f188"}.md-format-textdirection-l-to-r:before{content:"\f189"}.md-format-textdirection-r-to-l:before{content:"\f18a"}.md-format-underline:before{content:"\f18b"}.md-functions:before{content:"\f18c"}.md-insert-chart:before{content:"\f18d"}.md-insert-comment:before{content:"\f18e"}.md-insert-drive-file:before{content:"\f18f"}.md-insert-emoticon:before{content:"\f190"}.md-insert-invitation:before{content:"\f191"}.md-insert-link:before{content:"\f192"}.md-insert-photo:before{content:"\f193"}.md-merge-type:before{content:"\f194"}.md-mode-comment:before{content:"\f195"}.md-mode-edit:before{content:"\f196"}.md-publish:before{content:"\f197"}.md-vertical-align-bottom:before{content:"\f198"}.md-vertical-align-center:before{content:"\f199"}.md-vertical-align-top:before{content:"\f19a"}.md-wrap-text:before{content:"\f19b"}.md-attachment:before{content:"\f19c"}.md-cloud:before{content:"\f19d"}.md-cloud-circle:before{content:"\f19e"}.md-cloud-done:before{content:"\f19f"}.md-cloud-download:before{content:"\f1a0"}.md-cloud-off:before{content:"\f1a1"}.md-cloud-queue:before{content:"\f1a2"}.md-cloud-upload:before{content:"\f1a3"}.md-file-download:before{content:"\f1a4"}.md-file-upload:before{content:"\f1a5"}.md-folder:before{content:"\f1a6"}.md-folder-open:before{content:"\f1a7"}.md-folder-shared:before{content:"\f1a8"}.md-cast:before{content:"\f1a9"}.md-cast-connected:before{content:"\f1aa"}.md-computer:before{content:"\f1ab"}.md-desktop-mac:before{content:"\f1ac"}.md-desktop-windows:before{content:"\f1ad"}.md-dock:before{content:"\f1ae"}.md-gamepad:before{content:"\f1af"}.md-headset:before{content:"\f1b0"}.md-headset-mic:before{content:"\f1b1"}.md-keyboard:before{content:"\f1b2"}.md-keyboard-alt:before{content:"\f1b3"}.md-keyboard-arrow-down:before{content:"\f1b4"}.md-keyboard-arrow-left:before{content:"\f1b5"}.md-keyboard-arrow-right:before{content:"\f1b6"}.md-keyboard-arrow-up:before{content:"\f1b7"}.md-keyboard-backspace:before{content:"\f1b8"}.md-keyboard-capslock:before{content:"\f1b9"}.md-keyboard-control:before{content:"\f1ba"}.md-keyboard-hide:before{content:"\f1bb"}.md-keyboard-return:before{content:"\f1bc"}.md-keyboard-tab:before{content:"\f1bd"}.md-keyboard-voice:before{content:"\f1be"}.md-laptop:before{content:"\f1bf"}.md-laptop-chromebook:before{content:"\f1c0"}.md-laptop-mac:before{content:"\f1c1"}.md-laptop-windows:before{content:"\f1c2"}.md-memory:before{content:"\f1c3"}.md-mouse:before{content:"\f1c4"}.md-phone-android:before{content:"\f1c5"}.md-phone-iphone:before{content:"\f1c6"}.md-phonelink:before{content:"\f1c7"}.md-phonelink-off:before{content:"\f1c8"}.md-security:before{content:"\f1c9"}.md-sim-card:before{content:"\f1ca"}.md-smartphone:before{content:"\f1cb"}.md-speaker:before{content:"\f1cc"}.md-tablet:before{content:"\f1cd"}.md-tablet-android:before{content:"\f1ce"}.md-tablet-mac:before{content:"\f1cf"}.md-tv:before{content:"\f1d0"}.md-watch:before{content:"\f1d1"}.md-add-to-photos:before{content:"\f1d2"}.md-adjust:before{content:"\f1d3"}.md-assistant-photo:before{content:"\f1d4"}.md-audiotrack:before{content:"\f1d5"}.md-blur-circular:before{content:"\f1d6"}.md-blur-linear:before{content:"\f1d7"}.md-blur-off:before{content:"\f1d8"}.md-blur-on:before{content:"\f1d9"}.md-brightness-1:before{content:"\f1da"}.md-brightness-2:before{content:"\f1db"}.md-brightness-3:before{content:"\f1dc"}.md-brightness-4:before{content:"\f1dd"}.md-brightness-5:before{content:"\f1de"}.md-brightness-6:before{content:"\f1df"}.md-brightness-7:before{content:"\f1e0"}.md-brush:before{content:"\f1e1"}.md-camera:before{content:"\f1e2"}.md-camera-alt:before{content:"\f1e3"}.md-camera-front:before{content:"\f1e4"}.md-camera-rear:before{content:"\f1e5"}.md-camera-roll:before{content:"\f1e6"}.md-center-focus-strong:before{content:"\f1e7"}.md-center-focus-weak:before{content:"\f1e8"}.md-collections:before{content:"\f1e9"}.md-colorize:before{content:"\f1ea"}.md-color-lens:before{content:"\f1eb"}.md-compare:before{content:"\f1ec"}.md-control-point:before{content:"\f1ed"}.md-control-point-duplicate:before{content:"\f1ee"}.md-crop:before{content:"\f1ef"}.md-crop-3-2:before{content:"\f1f0"}.md-crop-5-4:before{content:"\f1f1"}.md-crop-7-5:before{content:"\f1f2"}.md-crop-16-9:before{content:"\f1f3"}.md-crop-din:before{content:"\f1f4"}.md-crop-free:before{content:"\f1f5"}.md-crop-landscape:before{content:"\f1f6"}.md-crop-original:before{content:"\f1f7"}.md-crop-portrait:before{content:"\f1f8"}.md-crop-square:before{content:"\f1f9"}.md-dehaze:before{content:"\f1fa"}.md-details:before{content:"\f1fb"}.md-edit:before{content:"\f1fc"}.md-exposure:before{content:"\f1fd"}.md-exposure-minus-1:before{content:"\f1fe"}.md-exposure-minus-2:before{content:"\f1ff"}.md-exposure-zero:before{content:"\f200"}.md-exposure-plus-1:before{content:"\f201"}.md-exposure-plus-2:before{content:"\f202"}.md-filter:before{content:"\f203"}.md-filter-1:before{content:"\f204"}.md-filter-2:before{content:"\f205"}.md-filter-3:before{content:"\f206"}.md-filter-4:before{content:"\f207"}.md-filter-5:before{content:"\f208"}.md-filter-6:before{content:"\f209"}.md-filter-7:before{content:"\f20a"}.md-filter-8:before{content:"\f20b"}.md-filter-9:before{content:"\f20c"}.md-filter-9-plus:before{content:"\f20d"}.md-filter-b-and-w:before{content:"\f20e"}.md-filter-center-focus:before{content:"\f20f"}.md-filter-drama:before{content:"\f210"}.md-filter-frames:before{content:"\f211"}.md-filter-hdr:before{content:"\f212"}.md-filter-none:before{content:"\f213"}.md-filter-tilt-shift:before{content:"\f214"}.md-filter-vintage:before{content:"\f215"}.md-flare:before{content:"\f216"}.md-flash-auto:before{content:"\f217"}.md-flash-off:before{content:"\f218"}.md-flash-on:before{content:"\f219"}.md-flip:before{content:"\f21a"}.md-gradient:before{content:"\f21b"}.md-grain:before{content:"\f21c"}.md-grid-off:before{content:"\f21d"}.md-grid-on:before{content:"\f21e"}.md-hdr-off:before{content:"\f21f"}.md-hdr-on:before{content:"\f220"}.md-hdr-strong:before{content:"\f221"}.md-hdr-weak:before{content:"\f222"}.md-healing:before{content:"\f223"}.md-image:before{content:"\f224"}.md-image-aspect-ratio:before{content:"\f225"}.md-iso:before{content:"\f226"}.md-landscape:before{content:"\f227"}.md-leak-add:before{content:"\f228"}.md-leak-remove:before{content:"\f229"}.md-lens:before{content:"\f22a"}.md-looks:before{content:"\f22b"}.md-looks-1:before{content:"\f22c"}.md-looks-2:before{content:"\f22d"}.md-looks-3:before{content:"\f22e"}.md-looks-4:before{content:"\f22f"}.md-looks-5:before{content:"\f230"}.md-looks-6:before{content:"\f231"}.md-loupe:before{content:"\f232"}.md-movie-creation:before{content:"\f233"}.md-nature:before{content:"\f234"}.md-nature-people:before{content:"\f235"}.md-navigate-before:before{content:"\f236"}.md-navigate-next:before{content:"\f237"}.md-palette:before{content:"\f238"}.md-panorama:before{content:"\f239"}.md-panorama-fisheye:before{content:"\f23a"}.md-panorama-horizontal:before{content:"\f23b"}.md-panorama-vertical:before{content:"\f23c"}.md-panorama-wide-angle:before{content:"\f23d"}.md-photo:before{content:"\f23e"}.md-photo-album:before{content:"\f23f"}.md-photo-camera:before{content:"\f240"}.md-photo-library:before{content:"\f241"}.md-portrait:before{content:"\f242"}.md-remove-red-eye:before{content:"\f243"}.md-rotate-left:before{content:"\f244"}.md-rotate-right:before{content:"\f245"}.md-slideshow:before{content:"\f246"}.md-straighten:before{content:"\f247"}.md-style:before{content:"\f248"}.md-switch-camera:before{content:"\f249"}.md-switch-video:before{content:"\f24a"}.md-tag-faces:before{content:"\f24b"}.md-texture:before{content:"\f24c"}.md-timelapse:before{content:"\f24d"}.md-timer:before{content:"\f24e"}.md-timer-3:before{content:"\f24f"}.md-timer-10:before{content:"\f250"}.md-timer-auto:before{content:"\f251"}.md-timer-off:before{content:"\f252"}.md-tonality:before{content:"\f253"}.md-transform:before{content:"\f254"}.md-tune:before{content:"\f255"}.md-wb-auto:before{content:"\f256"}.md-wb-cloudy:before{content:"\f257"}.md-wb-incandescent:before{content:"\f258"}.md-wb-irradescent:before{content:"\f259"}.md-wb-sunny:before{content:"\f25a"}.md-beenhere:before{content:"\f25b"}.md-directions:before{content:"\f25c"}.md-directions-bike:before{content:"\f25d"}.md-directions-bus:before{content:"\f25e"}.md-directions-car:before{content:"\f25f"}.md-directions-ferry:before{content:"\f260"}.md-directions-subway:before{content:"\f261"}.md-directions-train:before{content:"\f262"}.md-directions-transit:before{content:"\f263"}.md-directions-walk:before{content:"\f264"}.md-flight:before{content:"\f265"}.md-hotel:before{content:"\f266"}.md-layers:before{content:"\f267"}.md-layers-clear:before{content:"\f268"}.md-local-airport:before{content:"\f269"}.md-local-atm:before{content:"\f26a"}.md-local-attraction:before{content:"\f26b"}.md-local-bar:before{content:"\f26c"}.md-local-cafe:before{content:"\f26d"}.md-local-car-wash:before{content:"\f26e"}.md-local-convenience-store:before{content:"\f26f"}.md-local-drink:before{content:"\f270"}.md-local-florist:before{content:"\f271"}.md-local-gas-station:before{content:"\f272"}.md-local-grocery-store:before{content:"\f273"}.md-local-hospital:before{content:"\f274"}.md-local-hotel:before{content:"\f275"}.md-local-laundry-service:before{content:"\f276"}.md-local-library:before{content:"\f277"}.md-local-mall:before{content:"\f278"}.md-local-movies:before{content:"\f279"}.md-local-offer:before{content:"\f27a"}.md-local-parking:before{content:"\f27b"}.md-local-pharmacy:before{content:"\f27c"}.md-local-phone:before{content:"\f27d"}.md-local-pizza:before{content:"\f27e"}.md-local-play:before{content:"\f27f"}.md-local-post-office:before{content:"\f280"}.md-local-print-shop:before{content:"\f281"}.md-local-restaurant:before{content:"\f282"}.md-local-see:before{content:"\f283"}.md-local-shipping:before{content:"\f284"}.md-local-taxi:before{content:"\f285"}.md-location-history:before{content:"\f286"}.md-map:before{content:"\f287"}.md-my-location:before{content:"\f288"}.md-navigation:before{content:"\f289"}.md-pin-drop:before{content:"\f28a"}.md-place:before{content:"\f28b"}.md-rate-review:before{content:"\f28c"}.md-restaurant-menu:before{content:"\f28d"}.md-satellite:before{content:"\f28e"}.md-store-mall-directory:before{content:"\f28f"}.md-terrain:before{content:"\f290"}.md-traffic:before{content:"\f291"}.md-apps:before{content:"\f292"}.md-cancel:before{content:"\f293"}.md-arrow-drop-down-circle:before{content:"\f294"}.md-arrow-drop-down:before{content:"\f295"}.md-arrow-drop-up:before{content:"\f296"}.md-arrow-back:before{content:"\f297"}.md-arrow-forward:before{content:"\f298"}.md-check:before{content:"\f299"}.md-close:before{content:"\f29a"}.md-chevron-left:before{content:"\f29b"}.md-chevron-right:before{content:"\f29c"}.md-expand-less:before{content:"\f29d"}.md-expand-more:before{content:"\f29e"}.md-fullscreen:before{content:"\f29f"}.md-fullscreen-exit:before{content:"\f2a0"}.md-menu:before{content:"\f2a1"}.md-more-horiz:before{content:"\f2a2"}.md-more-vert:before{content:"\f2a3"}.md-refresh:before{content:"\f2a4"}.md-unfold-less:before{content:"\f2a5"}.md-unfold-more:before{content:"\f2a6"}.md-adb:before{content:"\f2a7"}.md-bluetooth-audio:before{content:"\f2a8"}.md-disc-full:before{content:"\f2a9"}.md-dnd-forwardslash:before{content:"\f2aa"}.md-do-not-disturb:before{content:"\f2ab"}.md-drive-eta:before{content:"\f2ac"}.md-event-available:before{content:"\f2ad"}.md-event-busy:before{content:"\f2ae"}.md-event-note:before{content:"\f2af"}.md-folder-special:before{content:"\f2b0"}.md-mms:before{content:"\f2b1"}.md-more:before{content:"\f2b2"}.md-network-locked:before{content:"\f2b3"}.md-phone-bluetooth-speaker:before{content:"\f2b4"}.md-phone-forwarded:before{content:"\f2b5"}.md-phone-in-talk:before{content:"\f2b6"}.md-phone-locked:before{content:"\f2b7"}.md-phone-missed:before{content:"\f2b8"}.md-phone-paused:before{content:"\f2b9"}.md-play-download:before{content:"\f2ba"}.md-play-install:before{content:"\f2bb"}.md-sd-card:before{content:"\f2bc"}.md-sim-card-alert:before{content:"\f2bd"}.md-sms:before{content:"\f2be"}.md-sms-failed:before{content:"\f2bf"}.md-sync:before{content:"\f2c0"}.md-sync-disabled:before{content:"\f2c1"}.md-sync-problem:before{content:"\f2c2"}.md-system-update:before{content:"\f2c3"}.md-tap-and-play:before{content:"\f2c4"}.md-time-to-leave:before{content:"\f2c5"}.md-vibration:before{content:"\f2c6"}.md-voice-chat:before{content:"\f2c7"}.md-vpn-lock:before{content:"\f2c8"}.md-cake:before{content:"\f2c9"}.md-domain:before{content:"\f2ca"}.md-location-city:before{content:"\f2cb"}.md-mood:before{content:"\f2cc"}.md-notifications-none:before{content:"\f2cd"}.md-notifications:before{content:"\f2ce"}.md-notifications-off:before{content:"\f2cf"}.md-notifications-on:before{content:"\f2d0"}.md-notifications-paused:before{content:"\f2d1"}.md-pages:before{content:"\f2d2"}.md-party-mode:before{content:"\f2d3"}.md-group:before{content:"\f2d4"}.md-group-add:before{content:"\f2d5"}.md-people:before{content:"\f2d6"}.md-people-outline:before{content:"\f2d7"}.md-person:before{content:"\f2d8"}.md-person-add:before{content:"\f2d9"}.md-person-outline:before{content:"\f2da"}.md-plus-one:before{content:"\f2db"}.md-poll:before{content:"\f2dc"}.md-public:before{content:"\f2dd"}.md-school:before{content:"\f2de"}.md-share:before{content:"\f2df"}.md-whatshot:before{content:"\f2e0"}.md-check-box:before{content:"\f2e1"}.md-check-box-outline-blank:before{content:"\f2e2"}.md-radio-button-off:before{content:"\f2e3"}.md-radio-button-on:before{content:"\f2e4"}.md-star:before{content:"\f2e5"}.md-star-half:before{content:"\f2e6"}.md-star-outline:before{content:"\f2e7"}.note-editor,.note-popover{border-color:#e4e4e4}.note-editor .note-toolbar,.note-editor .popover-content,.note-popover .note-toolbar,.note-popover .popover-content{background:#fff;border-color:#e4e4e4;margin:0;padding:10px 0 15px;text-align:center}.note-editor .note-toolbar>.btn-group,.note-editor .popover-content>.btn-group,.note-popover .note-toolbar>.btn-group,.note-popover .popover-content>.btn-group{display:inline-block;float:none;box-shadow:none}.note-editor .note-toolbar>.btn-group .btn,.note-editor .popover-content>.btn-group .btn,.note-popover .note-toolbar>.btn-group .btn,.note-popover .popover-content>.btn-group .btn{margin:0 1px}.note-editor .note-toolbar>.btn-group>.active,.note-editor .popover-content>.btn-group>.active,.note-popover .note-toolbar>.btn-group>.active,.note-popover .popover-content>.btn-group>.active{background:#00bcd4;color:#fff}.note-editor .note-toolbar .btn,.note-editor .popover-content .btn,.note-popover .note-toolbar .btn,.note-popover .popover-content .btn{height:40px;border-radius:2px !important;box-shadow:none !important}.note-editor .note-toolbar .btn:active,.note-editor .popover-content .btn:active,.note-popover .note-toolbar .btn:active,.note-popover .popover-content .btn:active{box-shadow:none}.note-editor .note-toolbar .note-palette-title,.note-editor .popover-content .note-palette-title,.note-popover .note-toolbar .note-palette-title,.note-popover .popover-content .note-palette-title{margin:0 !important;padding:10px 0 !important;font-size:13px !important;text-align:center !important;border:0 !important}.note-editor .note-toolbar .note-color-reset,.note-editor .popover-content .note-color-reset,.note-popover .note-toolbar .note-color-reset,.note-popover .popover-content .note-color-reset{padding:0 0 10px !important;margin:0 !important;background:0 0;text-align:center}.note-editor .note-toolbar .note-color .dropdown-menu,.note-editor .popover-content .note-color .dropdown-menu,.note-popover .note-toolbar .note-color .dropdown-menu,.note-popover .popover-content .note-color .dropdown-menu{min-width:335px}.note-editor .note-statusbar .note-resizebar,.note-popover .note-statusbar .note-resizebar{border-color:#E8E8E8}.note-editor .note-statusbar .note-resizebar .note-icon-bar,.note-popover .note-statusbar .note-resizebar .note-icon-bar{border-color:#BCBCBC}.note-editor .fa,.note-popover .fa{font-style:normal;font-size:20px;vertical-align:middle}.note-editor .fa:before,.note-popover .fa:before{font-family:'Material Design Iconic Font'}.note-editor .fa.fa-magic:before,.note-popover .fa.fa-magic:before{content:"\f11b"}.note-editor .fa.fa-bold:before,.note-popover .fa.fa-bold:before{content:"\f17a"}.note-editor .fa.fa-italic:before,.note-popover .fa.fa-italic:before{content:"\f181"}.note-editor .fa.fa-underline:before,.note-popover .fa.fa-underline:before{content:"\f18b"}.note-editor .fa.fa-font:before,.note-popover .fa.fa-font:before{content:"\f17e"}.note-editor .fa.fa-list-ul:before,.note-popover .fa.fa-list-ul:before{content:"\f183"}.note-editor .fa.fa-list-ol:before,.note-popover .fa.fa-list-ol:before{content:"\f184"}.note-editor .fa.fa-align-left:before,.note-popover .fa.fa-align-left:before{content:"\f178"}.note-editor .fa.fa-align-right:before,.note-popover .fa.fa-align-right:before{content:"\f179"}.note-editor .fa.fa-align-center:before,.note-popover .fa.fa-align-center:before{content:"\f176"}.note-editor .fa.fa-align-justify:before,.note-popover .fa.fa-align-justify:before{content:"\f177"}.note-editor .fa.fa-indent:before,.note-popover .fa.fa-indent:before{content:"\f180"}.note-editor .fa.fa-outdent:before,.note-popover .fa.fa-outdent:before{content:"\f17f"}.note-editor .fa.fa-text-height:before,.note-popover .fa.fa-text-height:before{content:"\f182"}.note-editor .fa.fa-table:before,.note-popover .fa.fa-table:before{content:"\f21e"}.note-editor .fa.fa-link:before,.note-popover .fa.fa-link:before{content:"\f10d"}.note-editor .fa.fa-picture-o:before,.note-popover .fa.fa-picture-o:before{content:"\f224"}.note-editor .fa.fa-minus:before,.note-popover .fa.fa-minus:before{content:"\f16e"}.note-editor .fa.fa-arrows-alt:before,.note-popover .fa.fa-arrows-alt:before{content:"\f29f"}.note-editor .fa.fa-code:before,.note-popover .fa.fa-code:before{content:"\f066"}.note-editor .fa.fa-question:before,.note-popover .fa.fa-question:before{content:"\f033"}.note-editor .fa.fa-eraser:before,.note-popover .fa.fa-eraser:before{content:"\f17b"}.note-editor .fa.fa-square:before,.note-popover .fa.fa-square:before{content:"\f1f4"}.note-editor .fa.fa-circle-o:before,.note-popover .fa.fa-circle-o:before{content:"\f2e3"}.note-editor .fa.fa-times:before,.note-popover .fa.fa-times:before{content:"\f29a"}.note-editor .note-air-popover .arrow,.note-popover .note-air-popover .arrow{left:20px}.note-editor .note-editable{padding:20px 23px}.smaller-font{font-size:smaller}.error-notice{color:red}.alert-info{padding:6px;margin-bottom:0}.dataTables_filter,.dataTables_length{display:none}.content-item-container{border-width:1px;border-style:outset;padding:5px;margin:12px 0;border-radius:6px;min-height:50px}.ed-ca-head{font-size:18px;padding:10px;color:#000;border-width:1px;border-style:solid;margin:12px 0}.note-editor .note-toolbar,.note-popover .note-toolbar{padding:0}.btn-edfile .padded-pencil{padding:6px}.card-with-extra-header{overflow:hidden}.bad,.error-info{color:red;padding:15px 0}.btn-edfile{position:relative;overflow:hidden;background:#4a90e2;color:#fff}.btn-edfile input[type=file]{position:absolute;top:0;right:0;min-width:100%;min-height:100%;font-size:100px;text-align:right;filter:alpha(opacity=0);opacity:0;outline:0;background:#fff;cursor:inherit;display:block}.in-lang{font-size:12px}.sp-preview{width:300px}#sortable{list-style-type:none;margin:0;padding:0;width:450px}#sortable div{margin:3px 3px 3px 0;padding:1px;float:left;width:100px;height:90px;font-size:4em;text-align:center}#sortable div:hover{cursor:grab}header#header{z-index:30;background:#39c088}.centered-header-link{width:80%;text-align:center}header.top_header{color:#fff;width:100%;clear:both;font-size:14px;padding:5px 0 3px;font-family:'PT Sans',sans-serif}.contacto_header i{margin:0 3px 0 0;font-size:24px}.contenedor_idiomas{background:#00f}ul.idiomas{float:right;padding:0 15px 10px 10px;margin:-7px 0 -5px 10px;background-color:#fff}ul.idiomas li{float:left;list-style:none;margin:0 0 0 5px;padding:11px 0 0;width:20px}ul.idiomas li a{display:block;width:20px;height:14px;outline:#555 solid 1px;margin:0}ul.idiomas .es{background:url(/assets/idiomas.png) no-repeat}ul.idiomas .en{background:url(/assets/idiomas.png) -20px 0}ul.idiomas .ru{background:url(/assets/idiomas.png) -40px 0}ul.idiomas .sv{background:url(/assets/idiomas.png) -60px 0}ul.idiomas .no{background:url(/assets/idiomas.png) -80px 0}ul.idiomas .de{background:url(/assets/idiomas.png) -100px 0}ul.idiomas .fr{background:url(/assets/idiomas.png) -120px 0}ul.idiomas .ne{background:url(/assets/idiomas.png) -140px 0}ul.idiomas .ch{background:url(/assets/idiomas.png) -160px 0}ul.idiomas .fi{background:url(/assets/idiomas.png) -180px 0}ul.idiomas .eu{background:url(/assets/idiomas.png) -200px 0}ul.idiomas .pt{background:url(/assets/idiomas.png) -220px 0}ul.idiomas .ar{background:url(/assets/idiomas.png) -240px 0}ul.idiomas .ca{background:url(/assets/idiomas.png) -260px 0}ul.idiomas .pl{background:url(https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/0.8.2/flags/4x3/pl.svg) 0 0/cover no-repeat}ul.idiomas .ro{background:url(https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/0.8.2/flags/4x3/ro.svg) 0 0/cover no-repeat}ul.idiomas li.selected,ul.idiomas li:hover{background:url(/assets/simple-nav-arrow.png) top center no-repeat}.property-text-edit h4{text-transform:uppercase}.property-text-edit .title-preview{min-height:35px}.property-text-edit .description-preview{min-height:80px}.note-editor{overflow:visible}.translation-card{border:gray;border-style:solid;border-radius:6px}.translation-input-header{text-align:center;padding:2%;color:#000}.translation-input{padding:10px}.form-group{position:relative;display:block;clear:both;width:100%}.montserrat{font-family:Montserrat,sans-serif}.oswald{font-family:Oswald,sans-serif}.slavo{font-family:'Slabo 27px',serif}.roboto{font-family:Roboto,sans-serif}.opensans{font-family:'Open Sans',sans-serif}.lobster{font-family:Lobster,cursive}.poiretone{font-family:'Poiret One',cursive}.arvo{font-family:Arvo,serif}.breeserif{font-family:'Bree Serif',serif}.anton{font-family:Anton,sans-serif}.precio{color:red}.sep{width:100%;clear:both;float:left}.sep20{width:100%;clear:both;float:left;margin-top:20px}.sep25{width:100%;clear:both;float:left;margin-top:25px}.sep30{width:100%;clear:both;float:left;margin-top:30px}.sep50{width:100%;clear:both;float:left;margin-top:50px}.sep70{width:100%;clear:both;float:left;margin-top:70px}.sep100{width:100%;clear:both;float:left;margin-top:100px}.text_center{text-align:center}.input-sm{font-size:14px}.input-group:not(.input-group-lg):not(.input-group-sm) .input-group-addon .fa{font-size:23px;line-height:100%}.bootstrap-select.btn-group .btn .filter-option{text-transform:none}.negro{color:#000}div.card-header{border-bottom:1px solid #eee;margin:0;padding-bottom:10px;background:#fafafa}input[disabled=""],input[disabled=disabled]{background:#eee !important;padding:0 5px}.logo img{height:50px;margin:-13px 0 0;padding:10px;background:#fff}div.seccion_breadcrumbs{margin-bottom:0;position:relative}div.seccion_breadcrumbs span{float:left;padding:8px 20px;font-weight:700}a.cerrar_breadcrumbs{position:absolute;right:10px;top:9px;color:#777}a.cerrar_breadcrumbs:hover{color:red}div.listview div.media-body{position:relative}.btn_editar_inicio{position:absolute;right:0;top:0;width:35px;height:35px}.media-body a.email{display:inline}.bootgrid-header .actions,.bootgrid-header .search{float:left;margin-right:10px}#seccion_propiedades .tab-nav{clear:both}a.btn_settings{background:#555}a.btn_editar_propiedad{right:80px !important}a.btn i,a.btn i:hover{display:block !important;position:relative !important;top:50% !important;transform:translateY(-50%) !important}span.sele-idioma{float:right;font-size:12px;font-weight:400;margin-top:2px}.form-group.fg-float{clear:both;float:left;width:100%}.fg-float .fg-label{color:#333}.fg-line:not([class*=has-]):after{background:#616161}.selectpicker.form-control{position:absolute}.arriba_label{margin-top:-27px}.iconos_grande{font-size:16px;color:#333}a.ayuda{background:#fafafa;display:block;border-radius:50%;font-size:12px;width:25px;height:25px;line-height:25px;text-align:center;float:right;position:absolute;right:2px;top:2px;z-index:27}a.ayuda:hover{background:#eee}#tabla_fotos{width:100%}div.alert i{margin:3px}#tabla_fotos th{text-align:center}#tabla_fotos td{max-width:300px;padding:20px}#tabla_fotos tr:nth-child(1){background:#eee}.foto_drag{border:1px solid #ccc;padding:20px;transform:scale(1.02, 1.02);box-shadow:1px 1px 2px #ccc}.botones_criterios{float:right;margin:10px 0 -30px;z-index:27}#tabla_prop_sele{float:none}.boton_anadir_pago{margin:0 50px 0 0;float:right}.boton_anadir_actividad{margin:-20px 50px 0 0;float:right}.boton_anadir_cliente,.boton_anadir_propiedad{position:absolute;right:0;top:35px}.botones_editar a span{margin-top:7px}#seccion_configuracion .tab-nav,#seccion_perfil .tab-nav{clear:both}div.seccion_web div.seo{position:relative}.cambiar_logo{clear:both;width:100%;padding:5px 5px 0 0;text-align:center}div.botones_web{position:absolute;top:35px;right:0;margin:0}.seccion_web div#mapa{background:#eee;border:3px solid #ddd;padding:3px;height:300px;margin-bottom:30px}p.boton_analytics button{margin:-40px 0 0;width:100%}@media (min-width: 768px){div.seccion_breadcrumbs span{padding:10px 5px 11px 25px;margin-right:0}}@media (max-width: 768px){.tab-nav>li{display:block;float:none;width:100%;clear:none}}.ie9 #header:not(.sidebar-toggled).header-up{display:none}:-webkit-full-screen [data-action=fullscreen]{display:none}:-moz-full-screen [data-action=fullscreen]{display:none}:-ms-fullscreen [data-action=fullscreen]{display:none}:full-screen [data-action=fullscreen]{display:none}:fullscreen [data-action=fullscreen]{display:none}#sidebar{box-shadow:1px 0 1px rgba(0,0,0,0.15) !important}#sidebar li.selected{background:#eee}#sidebar{position:fixed;background:#fff;top:65px;height:calc(100% - 65px);-webkit-transform:translate3d(-250px, 0, 0);transform:translate3d(-250px, 0, 0);z-index:5;width:250px;overflow:hidden;opacity:0;filter:alpha(opacity=0);-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms}#sidebar .sidebar-inner{height:100%;overflow-y:auto;width:300px}#sidebar .sidebar-inner .si-inner{width:250px}#sidebar.toggled{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1;filter:alpha(opacity=100)}#sidebar .profile-menu>a{display:block;height:60px;margin-bottom:5px;width:100%;background:url(/images/boomerang-logo-black.png) left top/100% no-repeat}#sidebar .profile-menu>a .profile-pic{padding:12px}#sidebar .profile-menu>a .profile-pic>img{width:47px;height:47px;border-radius:50%;border:3px solid rgba(0,0,0,0.14);box-sizing:content-box}#sidebar .profile-menu>a .profile-info{background:rgba(0,0,0,0.37);padding:7px 14px;color:#fff;margin-top:20px;position:relative}#sidebar .profile-menu>a .profile-info>i{font-size:19px;line-height:100%;position:absolute;right:5px;top:7px;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:300ms;transition-duration:300ms}#sidebar .profile-menu .main-menu{display:none;margin:0;border-bottom:1px solid #E6E6E6}#sidebar .profile-menu:after,#sidebar .profile-menu:before{content:" ";display:table}#sidebar .profile-menu:after{clear:both}#sidebar .profile-menu.toggled .profile-info>i{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}#sidebar .main-menu{list-style:none;padding-left:0;margin:20px 0 0}#sidebar .main-menu>li>a{padding:9px 20px 14px 52px;display:block;color:#4C4C4C;font-weight:500;position:relative}#sidebar .main-menu>li>a:hover{color:#262626;background-color:#f7f7f7}#sidebar .main-menu>li>a>i{position:absolute;left:16px;font-size:20px;top:0;width:25px;text-align:center;padding:9px 0}#sidebar .main-menu>li.sub-menu>a:after,#sidebar .main-menu>li.sub-menu>a:before{position:absolute;right:10px;top:12px;color:#575757;font-family:'Material Design Iconic Font';font-size:17px;-webkit-transition:all;-moz-transition:all;-o-transition:all;transition:all;-webkit-transition-duration:250ms;transition-duration:250ms;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;backface-visibility:hidden}#sidebar .main-menu>li.sub-menu>ul{list-style:none;background:#f7f7f7;display:none;padding:0}#sidebar .main-menu>li.sub-menu>ul>li>a{color:#7f7f7f;padding:8px 20px 8px 50px;font-weight:500;display:block}#sidebar .main-menu>li.sub-menu>ul>li>a.active,#sidebar .main-menu>li.sub-menu>ul>li>a:hover{color:#000}#sidebar .main-menu>li.sub-menu>ul>li:first-child>a{padding-top:14px}#sidebar .main-menu>li.sub-menu>ul>li:last-child>a{padding-bottom:16px}#sidebar .main-menu>li.sub-menu.active>ul{display:block}#sidebar .main-menu>li.active>a{color:#262626;background-color:#F4F4F4}body:not(.sw-toggled) #sidebar{box-shadow:0 0 10px rgba(51,51,51,0.38)}@media (min-width: 1200px){body.sw-toggled #sidebar{-webkit-transform:translate3d(0, 0, 0) !important;transform:translate3d(0, 0, 0) !important;opacity:1 !important;filter:alpha(opacity=100) !important;box-shadow:0 1px 1px rgba(0,0,0,0.15)}}@media (max-width: 1200px){body.sw-toggled #sidebar{box-shadow:0 0 10px rgba(51,51,51,0.38)}}.ie9 #sidebar:not(.toggled){display:none}.comfy-display-container{border:#d9edf7;border-style:dashed;border-radius:10px;padding:25px 0}.comfy-display-container .container{max-width:100%}.comfy-edit-container{border:#39c088;border-style:dashed;border-radius:10px;padding:35px 12px 50px}.jumbotron{padding:0}.carousel-1{overflow:hidden;margin-bottom:20px}.carousel-1.carousel-fixed-height .carousel-inner,.carousel-1.carousel-fixed-height .item{height:440px}.carousel-1 .carousel-control{color:#f8f8f8}.carousel-1 .carousel-control.left{left:-40px}.carousel-1 .carousel-control.right{right:-40px}.carousel-1 .carousel-control:hover{color:#fff}.carousel-1 .carousel-control i{position:absolute;top:50%;margin-top:-18px;font-size:36px;font-weight:600}.carousel-1 .item{background-repeat:no-repeat;background-size:cover;background-position:0 0}.carousel-1 .item-dark,.carousel-1 .item-light{color:#fff}.carousel-1 .item img{width:100%}.carousel-1 p{font-size:16px}.carousel-1 .object{position:absolute;top:38px;right:50%;margin-left:15px;width:568px;height:320px;overflow:hidden}.carousel-1 .object.fluid{width:100%;left:0;margin:0}.carousel-1 .object iframe{width:100% !important}.carousel-1 .caption-bottom{width:100%;padding:20px;position:absolute;bottom:0;left:0;background:rgba(52,152,219,0.8)}.carousel-1 .caption-bottom .title{margin:0;padding:0;font-size:20px;font-weight:600}.carousel-1 .caption-bottom .subtitle{display:block;margin:0;padding:0;font-size:13px;font-weight:400}.carousel-1 .text-shadow{text-shadow:2px 2px 2px #888}#homepageCarousel{margin-bottom:0}.carousel-1 .subtitle,.carousel-1 .subtitle-sm{font-size:24px;margin:5px 0 15px;padding:0;display:block}.carousel-1 .list-carousel{padding:0;font-size:20px}.carousel-1 .carousel-content{padding:50px 40px;font-size:xx-large}.carousel-1 .shade{background:gray;position:absolute;top:0;left:0;width:100%;height:100%;opacity:.6}.carousel-1 .mask{position:absolute;top:0;left:0;width:100%;height:100%;opacity:.6}.carousel-1 .mask.mask-1{background:gray}.carousel-1 .mask.mask-2{background:url(../images/patterns/dark-exa.png);opacity:.4}.services-section{width:100%;padding-bottom:40px;padding-top:10px;border-top:1px solid #e0eded;border-bottom:1px solid #e0eded;background:#fcfcfc}.services-section .container .services-wrapper{margin-top:45px}.services-section .container .services-wrapper .single-service{width:100% !important;height:400px;overflow:hidden;border:1px solid #e0eded;background-color:#FFF;text-align:center;padding:5;transition:all 300ms ease-in-out;-o-transition:all 300ms ease-in-out;-moz-transition:all 300ms ease-in-out;-webkit-transition:all 300ms ease-in-out}.services-section .container .services-wrapper .single-service h4{font-size:20px;font-weight:500;margin-top:30px;transition:all 300ms ease-in-out;-o-transition:all 300ms ease-in-out;-moz-transition:all 300ms ease-in-out;-webkit-transition:all 300ms ease-in-out}.services-section .container .services-wrapper .single-service p{font-size:15px;font-weight:400}.services-section .container .services-wrapper .single-service .icon-service{color:#B2B2B2;font-size:45px;border:1px solid #B2B2B2;transition:all 300ms ease-in-out;-o-transition:all 300ms ease-in-out;-moz-transition:all 300ms ease-in-out;-webkit-transition:all 300ms ease-in-out}.services-section .container .services-wrapper .single-service .bordered{width:25%;margin:13px auto -4px;transition:all 300ms ease-in-out;-o-transition:all 300ms ease-in-out;-moz-transition:all 300ms ease-in-out;-webkit-transition:all 300ms ease-in-out}.services-section .container .services-wrapper .single-service .top-bordered{margin:0 auto;opacity:0;transition:all 300ms ease-in-out;-o-transition:all 300ms ease-in-out;-moz-transition:all 300ms ease-in-out;-webkit-transition:all 300ms ease-in-out}.services-section .container .services-wrapper .single-service:hover .top-bordered{opacity:1}.services-section .container .services-wrapper .single-service p{text-align:left;padding:2%}.services-section .container .services-wrapper .single-service h4{text-align:center}.services-section .container .services-wrapper .single-service .icon-service{text-align:center;-webkit-border-radius:100px;-moz-border-radius:100px;-ms-border-radius:100px;-o-border-radius:100px;border-radius:100px;width:110px;padding:30px;margin:13px 0}
28,697.869565
275,789
0.432357
7ab351b3b53a7417806bebeff647400508a7ab36
808
cs
C#
test/E2ETest/Microsoft.Test.E2E.AspNet.OData/Formatter/JsonLight/Metadata/Model/BaseEntity.cs
markbeij/WebApi
daab7353828282158289b707ae89597d40bb36a3
[ "CC-BY-3.0" ]
1
2019-12-06T13:10:33.000Z
2019-12-06T13:10:33.000Z
test/E2ETest/Microsoft.Test.E2E.AspNet.OData/Formatter/JsonLight/Metadata/Model/BaseEntity.cs
markbeij/WebApi
daab7353828282158289b707ae89597d40bb36a3
[ "CC-BY-3.0" ]
3
2020-06-29T23:36:23.000Z
2020-06-30T00:48:49.000Z
test/E2ETest/Microsoft.Test.E2E.AspNet.OData/Formatter/JsonLight/Metadata/Model/BaseEntity.cs
markbeij/WebApi
daab7353828282158289b707ae89597d40bb36a3
[ "CC-BY-3.0" ]
1
2020-07-13T10:26:31.000Z
2020-07-13T10:26:31.000Z
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Collections.Generic; namespace Microsoft.Test.E2E.AspNet.OData.Formatter.JsonLight.Metadata.Model { public class BaseEntity { public BaseEntity() { } public BaseEntity(int id) { Id = id; } public int Id { get; set; } internal class IdEqualityComparer : IEqualityComparer<BaseEntity> { public bool Equals(BaseEntity x, BaseEntity y) { return x.Id == y.Id; } public int GetHashCode(BaseEntity obj) { return obj.Id; } } } }
23.085714
96
0.556931
2b53797aa6435ad064ad308f679a0ce05608414d
237
kts
Kotlin
shuttle/stats/domain/build.gradle.kts
4face-studi0/Shuttle
8596a4c6b2b7bd8f5a77ffdd8541154f054d1538
[ "Apache-2.0" ]
13
2022-02-22T07:59:20.000Z
2022-03-23T16:22:41.000Z
shuttle/stats/domain/build.gradle.kts
4face-studi0/Shuttle
8596a4c6b2b7bd8f5a77ffdd8541154f054d1538
[ "Apache-2.0" ]
45
2022-02-24T14:31:10.000Z
2022-03-30T17:27:40.000Z
shuttle/stats/domain/build.gradle.kts
4face-studi0/Shuttle
8596a4c6b2b7bd8f5a77ffdd8541154f054d1538
[ "Apache-2.0" ]
null
null
null
plugins { kotlin("jvm") } moduleDependencies { apps.domain() coordinates.domain() } dependencies { implementation(libs.bundles.base) implementation(libs.klock) testImplementation(libs.bundles.test.kotlin) }
12.473684
48
0.691983
0a762b7ff9a6473ed8494ab02728b5b0b3738b14
158
cs
C#
src/BuildVision.Contracts/Enums/BuildScopes.cs
davkean/BuildVision
d2a6d2b8f4df1d0e70f987bb6772abba088ca5df
[ "MIT" ]
202
2017-03-21T09:24:08.000Z
2022-03-20T07:36:04.000Z
src/BuildVision.Contracts/Enums/BuildScopes.cs
davkean/BuildVision
d2a6d2b8f4df1d0e70f987bb6772abba088ca5df
[ "MIT" ]
106
2017-06-20T07:47:27.000Z
2022-03-18T21:47:01.000Z
src/BuildVision.Contracts/Enums/BuildScopes.cs
davkean/BuildVision
d2a6d2b8f4df1d0e70f987bb6772abba088ca5df
[ "MIT" ]
43
2017-04-03T08:51:38.000Z
2022-03-23T01:12:21.000Z
namespace BuildVision.Contracts { public enum BuildScope { Solution = 1, Batch = 2, Project = 3, Unknown = 4 } }
14.363636
32
0.506329
a3a716d62a5d39d0577118955b49f8152ecdfddb
5,367
ts
TypeScript
bot/admin/web/src/app/bot/story/mandatory-entities-dialog.component.ts
francoisno/tock
c860b9cd02854d21edda0fc149019228928488c8
[ "Apache-2.0" ]
null
null
null
bot/admin/web/src/app/bot/story/mandatory-entities-dialog.component.ts
francoisno/tock
c860b9cd02854d21edda0fc149019228928488c8
[ "Apache-2.0" ]
null
null
null
bot/admin/web/src/app/bot/story/mandatory-entities-dialog.component.ts
francoisno/tock
c860b9cd02854d21edda0fc149019228928488c8
[ "Apache-2.0" ]
null
null
null
import {Component, Inject, OnInit} from "@angular/core"; import {MAT_DIALOG_DATA, MatDialog, MatDialogRef, MatSnackBar} from "@angular/material"; import {StateService} from "../../core-nlp/state.service"; import {AnswerConfigurationType, IntentName, MandatoryEntity, SimpleAnswerConfiguration} from "../model/story"; import {EntityDefinition, Intent, IntentsCategory} from "../../model/nlp"; import {CreateEntityDialogComponent} from "../../sentence-analysis/create-entity-dialog/create-entity-dialog.component"; import {IntentDialogComponent} from "../../sentence-analysis/intent-dialog/intent-dialog.component"; @Component({ selector: 'tock-mandatory-entities-dialog', templateUrl: './mandatory-entities-dialog.component.html', styleUrls: ['./mandatory-entities-dialog.component.css'] }) export class MandatoryEntitiesDialogComponent implements OnInit { entities: MandatoryEntity[]; newEntity: MandatoryEntity; intentCategories: IntentsCategory[] = []; currentIntentCategories: IntentsCategory[] = []; originalEntities: MandatoryEntity[]; currentEditedIntent: string; defaultCategory: string; constructor( public dialogRef: MatDialogRef<MandatoryEntitiesDialogComponent>, @Inject(MAT_DIALOG_DATA) public data: any, public state: StateService, private snackBar: MatSnackBar, private dialog: MatDialog) { this.setNewEntity(); this.entities = this.data.entities ? this.data.entities.slice(0).map(a => { let newA = a.clone(); newA.intentDefinition = this.state.findIntentByName(a.intent.name); return newA; }) : []; this.state.entities.subscribe(allEntities => { this.entities.forEach(e => e.entity = allEntities.find(a => a.role === e.role)); }); this.defaultCategory = this.data.category; this.newEntity.category = this.data.category; } ngOnInit() { this.state.currentIntentsCategories.subscribe(c => { this.intentCategories = c; this.currentIntentCategories = c; }); } private setNewEntity() { const c = this.newEntity ? this.newEntity.category : null; this.newEntity = new MandatoryEntity( "", new IntentName(""), [new SimpleAnswerConfiguration([])], AnswerConfigurationType.simple, c ? c : ""); } onIntentChange(entity: MandatoryEntity, name: string) { if (this.currentEditedIntent !== name) { this.currentEditedIntent = name; const intent = name.trim().toLowerCase(); let target = this.intentCategories.map( c => new IntentsCategory(c.category, c.intents.filter(i => i.intentLabel().toLowerCase().startsWith(intent) && (!entity.role || i.entities.find(e => e.role === entity.role)) )) ) .filter(c => c.intents.length !== 0); if (target.length === 0) { target = this.intentCategories.map( c => new IntentsCategory(c.category, c.intents.filter(i => i.intentLabel().toLowerCase().startsWith(intent)))) .filter(c => c.intents.length !== 0); } this.currentIntentCategories = target; } } validateIntent(entity: MandatoryEntity) { setTimeout(_ => { const intentName = entity.intent.name.trim(); if (intentName.length !== 0 && (!entity.intentDefinition || entity.intentDefinition.name !== intentName)) { let intent = this.state.findIntentByName(intentName); if (intent) { entity.intentDefinition = intent; } else { let dialogRef = this.dialog.open( IntentDialogComponent, { data: { create: true, category: this.defaultCategory, name: intentName, label: intentName } }); dialogRef.afterClosed().subscribe(result => { if (result.name) { entity.intentDefinition = new Intent( result.name, this.state.currentApplication.namespace, [], [this.state.currentApplication._id], [], [], result.label, result.description, result.category ) } else { entity.intent.name = entity.intentDefinition ? entity.intentDefinition.name : ""; } }) } } }, 200); } selectEntity(e: MandatoryEntity) { let dialogRef = this.dialog.open(CreateEntityDialogComponent, { data: {} } ); dialogRef.afterClosed().subscribe(result => { if (result && result !== "cancel") { let name = result.name; let role = result.role; e.entity = new EntityDefinition(name, role); e.role = role; } }); } removeEntity(e: MandatoryEntity) { this.entities.splice(this.entities.indexOf(e), 1); } addEntity() { let invalidMessage = this.newEntity.currentAnswer().invalidMessage(); if (invalidMessage) { this.snackBar.open(`Error: ${invalidMessage}`, "ERROR", {duration: 5000}); } else { this.entities.push(this.newEntity); this.setNewEntity(); } } cancel() { this.dialogRef.close({}); } save() { this.dialogRef.close({ entities: this.entities }); } }
31.757396
120
0.608534
0db7f1e10c8c2f3e51da27b3d0a50c45a6a2f4d7
2,656
cshtml
C#
Views/Vehicle/DisplayVehicle.cshtml
2steuer/automanager
a9343df8774c66c48afb36940e388d489494cc54
[ "MIT" ]
null
null
null
Views/Vehicle/DisplayVehicle.cshtml
2steuer/automanager
a9343df8774c66c48afb36940e388d489494cc54
[ "MIT" ]
null
null
null
Views/Vehicle/DisplayVehicle.cshtml
2steuer/automanager
a9343df8774c66c48afb36940e388d489494cc54
[ "MIT" ]
null
null
null
@model Vehicle @using automanager.Extensions @{ ViewData["Title"] = $"{Model.Name} ({Model.LicensePlate})"; } <a asp-controller="Home" asp-action="Index" class="btn btn-primary mb-3">Zurück zur übersicht</a> <h2>Tankvorgänge <a asp-action="FuelEntryForm" asp-route-id="@Model.Id" class="btn btn-primary float-right"><i class="fas fa-gas-pump"></i> Neuer Eintrag</a></h2> <table class="table"> <tr> <th scope="col">Datum</th> <th scope="col">Km</th> <th scope="col">Liter</th> <th scope="col">l/100km</th> <th scope="col"></th> </tr> @foreach(var e in Model.GasFillingEntries.OrderByDescending(p => p.Kilometers)) { <tr> <td>@e.Date.ToShortDateString()</td> <td>@e.Kilometers</td> <td>@e.Liters.ToString("F2") l</td> @if (e.Partial) { <td>Unvollständig</td> } else { var s = e.GetStatistics(); <td>@s.LiterPer100Km.ToString("F2") l/100km</td> } <td> @if (!e.Partial) { <a asp-action="DisplayFillingEntry" asp-route-id="@e.Id" class="btn btn-secondary"><i class="fas fa-info-circle"></i></a> } <a asp-action="EditFuelEntry" asp-route-id="@e.Id" class="btn btn-secondary"><i class="fas fa-edit"></i></a> <a asp-action="DeleteFillingEntryForm" asp-route-id="@e.Id" class="btn btn-secondary"><i class="fas fa-trash"></i></a> </td> </tr> } </table> @if (Model.GasFillingEntries.Where(g => !g.Partial).Count() > 0) { <h2>Gesamtstatistik</h2> var statistics = Model.GasFillingEntries.Where(g => !g.Partial).Select(g => g.GetStatistics()); var totalKm = statistics.Sum(s => s.DistanceKilometers); var totalFuel = statistics.Sum(s => s.Liters); var totalPrice = statistics.Sum(s => s.Price); var totalAvg = (totalFuel / totalKm) * 100; var totalPricePerKm = totalPrice / totalKm; <table class="table"> <tr> <th scope="row">Gesamt Km</th> <td>@totalKm km</td> </tr> <tr> <th scope="row">Gesamt getankt</th> <td>@totalFuel.ToString("0.00") l</td> </tr> <tr> <th scope="row">Gesamt Preis</th> <td>@totalPrice.ToString("0.00") €</td> </tr> <tr> <th scope="row">Durchschn. l/100km</th> <td>@totalAvg.ToString("0.00") l/100km</td> </tr> <tr> <th scope="row">Durchschn. €/km</th> <td>@totalPricePerKm.ToString("0.00") €/km</td> </tr> </table> }
30.883721
162
0.536521
d6865ab9cd32918fb3f82386682d1ea357852a85
238
cs
C#
Exam-MishMash/MishMash.App/Extensions/StringExtensions.cs
PETROV442518/SoftUni
3753e9e2462aea2972ca538d4c6205f3f2ffebe4
[ "MIT" ]
null
null
null
Exam-MishMash/MishMash.App/Extensions/StringExtensions.cs
PETROV442518/SoftUni
3753e9e2462aea2972ca538d4c6205f3f2ffebe4
[ "MIT" ]
1
2019-11-13T07:19:23.000Z
2019-11-13T07:19:23.000Z
Exam-MishMash/MishMash.App/Extensions/StringExtensions.cs
PETROV442518/SoftUni
3753e9e2462aea2972ca538d4c6205f3f2ffebe4
[ "MIT" ]
null
null
null
namespace MishMash.App.Extensions { using System.Net; public static class StringExtensions { public static string UrlDecode(this string text) { return WebUtility.UrlDecode(text); } } }
19.833333
56
0.617647
c69c50d0c439bab81130512d599a741cec01a918
1,025
py
Python
training/video_test.py
Frankpark/Toddler-Guidance-Learning
5f536df712dedfefb5040a1a5cd72c367b8a8bc1
[ "Apache-2.0" ]
null
null
null
training/video_test.py
Frankpark/Toddler-Guidance-Learning
5f536df712dedfefb5040a1a5cd72c367b8a8bc1
[ "Apache-2.0" ]
null
null
null
training/video_test.py
Frankpark/Toddler-Guidance-Learning
5f536df712dedfefb5040a1a5cd72c367b8a8bc1
[ "Apache-2.0" ]
null
null
null
from moviepy.editor import * from moviepy.audio.AudioClip import AudioArrayClip import numpy as np import math # 15fps frames = np.concatenate([np.ones([15, 84, 84, 3]), np.zeros([15, 84, 84, 3]), np.ones([15, 84, 84, 3])], axis = 0) audioL = np.array([math.sin(2*math.pi*440*i/44100) for i in range(44100 * 3)]) audioR = np.array([math.sin(2*math.pi*660*i/44100) for i in range(44100 * 3)]) audios = np.stack([audioL, audioR], axis = 0) print(frames.shape, audios.shape) # Images frames = [255 * frames[i] for i in range(frames.shape[0])] #frames = 255 * frames image_clip = ImageSequenceClip(frames, fps=15) # Audios #audios = (audios * 32768).astype(np.int16) audios = np.transpose(audios) print(audios.shape, audios.min(), audios.max()) audioclip = AudioArrayClip(audios, fps=44100) #audioclip.write_audiofile('audio.mp3') # Make video video_clip = image_clip.set_audio(audioclip) video_clip.write_videofile("result.mp4", fps=15, temp_audiofile="temp-audio.m4a", remove_temp=True, codec="libx264", audio_codec="aac")
36.607143
135
0.72
57038c6e2edc4eb5195291ba940059ff87ac0e93
421
js
JavaScript
res/js/script.js
NT5/REC
d62195e42397d8fb0c4196b9752e5d54d58352fd
[ "Apache-2.0" ]
null
null
null
res/js/script.js
NT5/REC
d62195e42397d8fb0c4196b9752e5d54d58352fd
[ "Apache-2.0" ]
null
null
null
res/js/script.js
NT5/REC
d62195e42397d8fb0c4196b9752e5d54d58352fd
[ "Apache-2.0" ]
null
null
null
(function ($) { $(function () { $('.sidenav').sidenav(); $('.parallax').parallax(); $('.collapsible').collapsible(); $('.fixed-action-btn').floatingActionButton(); $('.tooltipped').tooltip(); $('.modal').modal(); $('.tap-target').tapTarget(); $('.tap-target').tapTarget('open'); }); // end of document ready })(jQuery); // end of jQuery name space
30.071429
54
0.505938
20f39696db49749f4e34216983b2c5b2ab50f15a
1,429
py
Python
generic_links/migrations/0001_initial.py
johnbaldwin/django-generic-links
02b45b6b010132f6f7e33f1e1e2260619fb1c5c3
[ "BSD-3-Clause" ]
8
2015-04-11T15:53:22.000Z
2020-01-07T06:14:16.000Z
generic_links/migrations/0001_initial.py
johnbaldwin/django-generic-links
02b45b6b010132f6f7e33f1e1e2260619fb1c5c3
[ "BSD-3-Clause" ]
6
2015-06-12T16:17:17.000Z
2022-03-01T02:08:13.000Z
generic_links/migrations/0001_initial.py
johnbaldwin/django-generic-links
02b45b6b010132f6f7e33f1e1e2260619fb1c5c3
[ "BSD-3-Clause" ]
6
2015-06-11T13:36:09.000Z
2021-04-24T15:35:36.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('contenttypes', '__first__'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='GenericLink', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('object_id', models.PositiveIntegerField(db_index=True)), ('url', models.URLField()), ('title', models.CharField(max_length=200)), ('description', models.TextField(max_length=1000, null=True, blank=True)), ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)), ('is_external', models.BooleanField(default=True, db_index=True)), ('content_type', models.ForeignKey(to='contenttypes.ContentType', on_delete=models.CASCADE)), ('user', models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True, on_delete=models.SET_NULL)), ], options={ 'ordering': ('-created_at',), 'verbose_name': 'Generic Link', 'verbose_name_plural': 'Generic Links', }, ), ]
39.694444
123
0.59972
2de930c0e8f94d4bcb8961e3e42a5a603f16b96d
2,497
dart
Dart
lib/src/analyzers/lint_analyzer/reporters/reporters_list/console/lint_console_reporter_helper.dart
HFabi/dart-code-metrics
b5e9f39d067ddbca5594f42f25d9d48e8cd3d477
[ "MIT" ]
null
null
null
lib/src/analyzers/lint_analyzer/reporters/reporters_list/console/lint_console_reporter_helper.dart
HFabi/dart-code-metrics
b5e9f39d067ddbca5594f42f25d9d48e8cd3d477
[ "MIT" ]
null
null
null
lib/src/analyzers/lint_analyzer/reporters/reporters_list/console/lint_console_reporter_helper.dart
HFabi/dart-code-metrics
b5e9f39d067ddbca5594f42f25d9d48e8cd3d477
[ "MIT" ]
null
null
null
import 'package:ansicolor/ansicolor.dart'; import '../../../../../utils/string_extension.dart'; import '../../../metrics/models/metric_value.dart'; import '../../../metrics/models/metric_value_level.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; /// Helper for building lint console reports class LintConsoleReporterHelper { static final _colorPens = { MetricValueLevel.alarm: AnsiPen()..red(bold: true), MetricValueLevel.warning: AnsiPen()..yellow(bold: true), MetricValueLevel.noted: AnsiPen()..blue(), MetricValueLevel.none: AnsiPen()..white(), }; final _severityPens = { Severity.error: AnsiPen()..red(bold: true), Severity.warning: AnsiPen()..yellow(bold: true), Severity.performance: AnsiPen()..cyan(), Severity.style: AnsiPen()..blue(), Severity.none: AnsiPen()..white(), }; /// Converts an [issue] to the issue message string. String getIssueMessage(Issue issue) { final severity = _getSeverity(issue.severity); final location = '${issue.location.start.line}:${issue.location.start.column}'; return '$severity${[issue.message, location, issue.ruleId].join(' : ')}'; } /// Creates a message for [violations] based on given [violationLevel]. String getMetricMessage( MetricValueLevel violationLevel, String source, Iterable<String> violations, ) { final color = _colorPens[violationLevel]; if (color != null) { final normalizedLabel = color(_normalize( violationLevel != MetricValueLevel.none ? violationLevel.toString().capitalize() : '', )); return '$normalizedLabel${source.isNotEmpty ? '$source - ' : ''}${violations.join(', ')}'; } throw StateError('Unexpected violation level.'); } /// Converts a [metric] to the metric message string. String getMetricReport(MetricValue<num> metric) { final color = _colorPens[metric.level]; if (color != null) { final value = metric.value.toInt(); return '${metric.documentation.name.toLowerCase()}: ${color('$value')}'; } throw StateError('Unexpected violation level.'); } String _getSeverity(Severity severity) { final color = _severityPens[severity]; if (color != null) { return color(_normalize( severity != Severity.none ? severity.toString().capitalize() : '', )); } throw StateError('Unexpected severity.'); } String _normalize(String s) => s.padRight(8); }
30.45122
96
0.651982
961b1a4d4815c7969e258555d36e7a2b35ac9a05
9,022
swift
Swift
ios/App/App/SecurityUtils/DeviceIntegrity.swift
mohammadrafigh/airgap-vault
abbed9486d42fc10279018ec789566b71cf9cce2
[ "MIT" ]
165
2018-07-17T09:19:36.000Z
2022-03-26T09:29:30.000Z
ios/App/App/SecurityUtils/DeviceIntegrity.swift
mohammadrafigh/airgap-vault
abbed9486d42fc10279018ec789566b71cf9cce2
[ "MIT" ]
115
2018-11-16T18:19:31.000Z
2022-03-25T09:17:18.000Z
ios/App/App/SecurityUtils/DeviceIntegrity.swift
mohammadrafigh/airgap-vault
abbed9486d42fc10279018ec789566b71cf9cce2
[ "MIT" ]
51
2018-10-29T09:08:13.000Z
2022-03-16T03:58:01.000Z
import Cordova // // DeviceIntegrity.swift // AGUtilities // // Created by Mike Godenzi on 14.06.19. // Copyright © 2019 Mike Godenzi. All rights reserved. // import Foundation import MachO public enum DeviceIntegrity { private static let fileList = """ L3ByaXZhdGUvdmFyL3N0YXNoCi9wcml2YXRlL3Zhci9saWIvYXB0Ci9wcml2YXRlL3Zhci90bXAvY3lkaWEubG9nCi9wcml2YXRlL3Zhci9saWIvY3lkaWEKL3ByaXZhdGUvdmFyL21vYmlsZS9MaWJyYXJ5L1NCU2V0dGluZ3MvVGhlbWVzCi9MaWJyYXJ5L01vYmlsZVN1YnN0cmF0ZS9Nb2JpbGVTdWJzdHJhdGUuZHlsaWIKL0xpYnJhcnkvTW9iaWxlU3Vic3RyYXRlL0R5bmFtaWNMaWJyYXJpZXMvVmVlbmN5LnBsaXN0Ci9MaWJyYXJ5L01vYmlsZVN1YnN0cmF0ZS9EeW5hbWljTGlicmFyaWVzL0xpdmVDbG9jay5wbGlzdAovU3lzdGVtL0xpYnJhcnkvTGF1bmNoRGFlbW9ucy9jb20uaWtleS5iYm90LnBsaXN0Ci9TeXN0ZW0vTGlicmFyeS9MYXVuY2hEYWVtb25zL2NvbS5zYXVyaWsuQ3lkaWEuU3RhcnR1cC5wbGlzdAovdmFyL2NhY2hlL2FwdAovdmFyL2xpYi9hcHQKL3Zhci9saWIvY3lkaWEKL3Zhci9sb2cvc3lzbG9nCi92YXIvdG1wL2N5ZGlhLmxvZwovYmluL2Jhc2gKL2Jpbi9zaAovdXNyL3NiaW4vc3NoZAovdXNyL2xpYmV4ZWMvc3NoLWtleXNpZ24KL3Vzci9zYmluL3NzaGQKL3Vzci9iaW4vc3NoZAovdXNyL2xpYmV4ZWMvc2Z0cC1zZXJ2ZXIKL2V0Yy9zc2gvc3NoZF9jb25maWcKL2V0Yy9hcHQKL0FwcGxpY2F0aW9ucy9DeWRpYS5hcHAKL0FwcGxpY2F0aW9ucy9Sb2NrQXBwLmFwcAovQXBwbGljYXRpb25zL0ljeS5hcHAKL0FwcGxpY2F0aW9ucy9XaW50ZXJCb2FyZC5hcHAKL0FwcGxpY2F0aW9ucy9TQlNldHRpbmdzLmFwcAovQXBwbGljYXRpb25zL014VHViZS5hcHAKL0FwcGxpY2F0aW9ucy9JbnRlbGxpU2NyZWVuLmFwcAovQXBwbGljYXRpb25zL0Zha2VDYXJyaWVyLmFwcAovQXBwbGljYXRpb25zL2JsYWNrcmExbi5hcHA= """ private static let linkList = """ L0xpYnJhcnkvUmluZ3RvbmVzCi9MaWJyYXJ5L1dhbGxwYXBlcgovdXNyL2luY2x1ZGUKL3Vzci9saWJleGVjCi91c3Ivc2hhcmUKL0FwcGxpY2F0aW9ucw== """ private static let RTLD_DEFAULT = UnsafeMutableRawPointer(bitPattern: -2) private static let queue = DispatchQueue(label: "it.airgap.DI", qos: .default) @inline(__always) public static func assess(completion: @escaping (ResultSet) -> () ) { DeviceIntegrity.queue.async { let result: ResultSet = [ checkFiles(), checkLinks(), checkSyscalls(), checkWrite(), checkLibraries(), checkDebugger() ] completion(result) } } @inline(__always) private static func checkFiles() -> ResultSet { #if !targetEnvironment(simulator) typealias Access = @convention(c) (UnsafePointer<Int8>, Int32) -> Int32 guard let access: Access = lookup(.access) else { return .state } return checkPaths(DeviceIntegrity.fileList) { path in return path.withCString { cString in return access(cString, F_OK) == -1 ? .ok : .files } } #else return .ok #endif } @inline(__always) private static func checkLinks() -> ResultSet { #if !targetEnvironment(simulator) typealias Lstat = @convention(c) (UnsafePointer<Int8>, UnsafeMutablePointer<stat>) -> Int32 guard let lstat: Lstat = lookup(.lstat) else { return .state } return checkPaths(DeviceIntegrity.linkList) { (path) in return path.withCString { cString in var s = stat() _ = lstat(cString, &s) return (s.st_mode & S_IFMT) == S_IFLNK ? .links : .ok } } #else return .ok #endif } @inline(__always) private static func checkPaths(_ string: String, using block: (String) -> ResultSet) -> ResultSet { guard let paths = string.base64Decode() else { return .state } let list = paths.split(separator: "\n") for path in list { let result = block(String(path)) guard result == .ok else { return result } } return .ok } @inline(__always) private static func checkSyscalls() -> ResultSet { #if !targetEnvironment(simulator) typealias Fork = @convention(c) () -> Int32 typealias System = @convention(c) (Int32) -> Int32 guard let fork: Fork = lookup(.fork), let system: System = lookup(.system) else { return .state } guard fork() == -1 else { return .syscalls } guard system(0) == 0 else { return .syscalls } #endif return .ok } @inline(__always) private static func lookup<FunctionType>(_ function: Function) -> FunctionType? { typealias Dlsym = @convention(c) (UnsafeMutableRawPointer?, UnsafePointer<Int8>) -> UnsafeMutableRawPointer? let dlsymFnc: Dlsym? = Function.dlsym.name?.withCString { cString in guard let fnc = dlsym(DeviceIntegrity.RTLD_DEFAULT, cString) else { return nil } return unsafeBitCast(fnc, to: Dlsym.self) } guard let dlsym = dlsymFnc else { return nil } return function.name?.withCString { cString in guard let fnc = dlsym(DeviceIntegrity.RTLD_DEFAULT, cString) else { return nil } return unsafeBitCast(fnc, to: FunctionType.self) } } @inline(__always) private static func checkWrite() -> ResultSet { #if !targetEnvironment(simulator) typealias Access = @convention(c) (UnsafePointer<Int8>, Int32) -> Int32 guard let access: Access = lookup(.access), let privatePath = "L3ByaXZhdGU=".base64Decode() else { return .state } return privatePath.withCString { cString in return access(cString, W_OK) == -1 ? .ok : .write } #else return .ok #endif } @inline(__always) private static func checkLibraries() -> ResultSet { #if !targetEnvironment(simulator) typealias DyldImageCount = @convention(c) () -> UInt32 typealias DyldGetImageName = @convention(c) (UInt32) -> UnsafePointer<Int8> guard let substrarePath = "L0xpYnJhcnkvTW9iaWxlU3Vic3RyYXRl".base64Decode(), let dyldImageCount: DyldImageCount = lookup(.dyldImageCount), let dyldGetImageName: DyldGetImageName = lookup(.dyldGetImageName) else { return .state } let count = dyldImageCount() for i in 0..<count { let path = String(cString: dyldGetImageName(i)) guard !path.hasPrefix(substrarePath) else { return .dynamicLib } } #endif return .ok } @inline(__always) private static func checkDebugger() -> ResultSet { #if DEBUG return .ok #else typealias SysCtl = @convention(c) (UnsafeMutablePointer<Int32>, u_int, UnsafeMutableRawPointer, UnsafeMutablePointer<Int>, UnsafeMutableRawPointer?, Int) -> UInt32 guard let sysctl: SysCtl = lookup(.sysctl) else { return .state } var info = kinfo_proc() var mib : [Int32] = [CTL_KERN, KERN_PROC, KERN_PROC_PID, getpid()] var size = MemoryLayout<kinfo_proc>.stride let status = sysctl(&mib, UInt32(mib.count), &info, &size, nil, 0) guard status == 0 else { return .state } return (info.kp_proc.p_flag & P_TRACED) != 0 ? .debugger : .ok #endif } public struct ResultSet: OptionSet { public let rawValue: Int public static let ok = ResultSet(rawValue: 1 << 0) public static let state = ResultSet(rawValue: 1 << 1) public static let files = ResultSet(rawValue: 1 << 2) public static let links = ResultSet(rawValue: 1 << 3) public static let syscalls = ResultSet(rawValue: 1 << 4) public static let write = ResultSet(rawValue: 1 << 5) public static let dynamicLib = ResultSet(rawValue: 1 << 6) public static let debugger = ResultSet(rawValue: 1 << 7) public init(rawValue: Int) { self.rawValue = rawValue } } private struct Function { static let access = Function(encoded: "YWNjZXNz") static let lstat = Function(encoded: "bHN0YXQ=") static let fork = Function(encoded: "Zm9yaw==") static let system = Function(encoded: "c3lzdGVt") static let dyldImageCount = Function(encoded: "X2R5bGRfaW1hZ2VfY291bnQ=") static let dyldGetImageName = Function(encoded: "X2R5bGRfZ2V0X2ltYWdlX25hbWU=") static let sysctl = Function(encoded: "c3lzY3Rs") static let dlsym = Function(encoded: "ZGxzeW0=") let encoded: String var name: String? { return encoded.base64Decode() } } } private extension String { @inline(__always) func base64Decode() -> String? { guard let data = Data(base64Encoded: self), let string = String(bytes: data, encoding: .utf8) else { return nil } return string } }
35.380392
1,168
0.634006
a0b37603a6d86010b1221322eeaba6e19dd9a4bd
2,543
swift
Swift
Go Parks/Model/Accessibility.swift
tsopin/Go-Parks
dcee742448a6f32a49a13d396a7fc7f1c510b555
[ "Apache-2.0" ]
1
2018-06-08T01:30:42.000Z
2018-06-08T01:30:42.000Z
Go Parks/Model/Accessibility.swift
tsopin/Go-Parks
dcee742448a6f32a49a13d396a7fc7f1c510b555
[ "Apache-2.0" ]
null
null
null
Go Parks/Model/Accessibility.swift
tsopin/Go-Parks
dcee742448a6f32a49a13d396a7fc7f1c510b555
[ "Apache-2.0" ]
null
null
null
// // Accessibility.swift // Go Parks // // Created by Timofei Sopin on 2018-08-20. // Copyright © 2018 Timofei Sopin. All rights reserved. // import Foundation import SwiftyJSON struct Accessibility : Codable { var wheelchairAccess : String? var internetInfo : String? var rvAllowed : Int? var cellPhoneInfo : String? var fireStovePolicy : String? var rvMaxLength : Int? var additionalInfo : String? var trailerMaxLength : Int? var adaInfo : String? var rvInfo : String? var accessRoads : [String]? var trailerAllowed : Int? var classifications : [String]? enum CodingKeys: String, CodingKey { case wheelchairAccess = "wheelchairAccess" case internetInfo = "internetInfo" case rvAllowed = "rvAllowed" case cellPhoneInfo = "cellPhoneInfo" case fireStovePolicy = "fireStovePolicy" case rvMaxLength = "rvMaxLength" case additionalInfo = "additionalInfo" case trailerMaxLength = "trailerMaxLength" case adaInfo = "adaInfo" case rvInfo = "rvInfo" case accessRoads = "accessRoads" case trailerAllowed = "trailerAllowed" case classifications = "classifications" } static func getAccessibilityFrom(_ dict: [String : JSON]) -> Accessibility { var accessibility = Accessibility() let accessRoads = dict["accessRoads"]?.arrayValue var accessRoadsArray = [String]() let classifications = dict["accessRoads"]?.arrayValue var classificationsArray = [String]() for i in accessRoads! { accessRoadsArray.append(i.stringValue) } for i in classifications! { classificationsArray.append(i.stringValue) } accessibility.wheelchairAccess = dict["wheelchairAccess"]?.stringValue accessibility.internetInfo = dict["internetInfo"]?.stringValue accessibility.rvAllowed = dict["rvAllowed"]?.intValue accessibility.cellPhoneInfo = dict["cellPhoneInfo"]?.stringValue accessibility.fireStovePolicy = dict["fireStovePolicy"]?.stringValue accessibility.rvMaxLength = dict["rvMaxLength"]?.intValue accessibility.additionalInfo = dict["additionalInfo"]?.stringValue accessibility.trailerMaxLength = dict["trailerMaxLength"]?.intValue accessibility.adaInfo = dict["adaInfo"]?.stringValue accessibility.rvInfo = dict["rvInfo"]?.stringValue accessibility.accessRoads = accessRoadsArray accessibility.trailerAllowed = dict["trailerAllowed"]?.intValue accessibility.classifications = classificationsArray return accessibility } }
30.638554
78
0.716083
a3337819f92729bf1c38291b9bdc599c5478c83f
6,568
java
Java
anomdetect/src/main/java/com/expedia/adaptivealerting/anomdetect/detect/outlier/algo/cusum/CusumDetector.java
swfortier/adaptive-alerting
e65024f6b9f9aa45dcbd2eed42e98406719a3f0c
[ "Apache-2.0" ]
151
2018-10-09T15:30:02.000Z
2021-07-05T03:05:33.000Z
anomdetect/src/main/java/com/expedia/adaptivealerting/anomdetect/detect/outlier/algo/cusum/CusumDetector.java
swfortier/adaptive-alerting
e65024f6b9f9aa45dcbd2eed42e98406719a3f0c
[ "Apache-2.0" ]
409
2018-10-08T02:12:49.000Z
2021-07-14T02:39:31.000Z
anomdetect/src/main/java/com/expedia/adaptivealerting/anomdetect/detect/outlier/algo/cusum/CusumDetector.java
swfortier/adaptive-alerting
e65024f6b9f9aa45dcbd2eed42e98406719a3f0c
[ "Apache-2.0" ]
51
2018-10-09T08:28:29.000Z
2021-07-05T03:02:20.000Z
/* * Copyright 2018-2019 Expedia Group, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.expedia.adaptivealerting.anomdetect.detect.outlier.algo.cusum; import com.expedia.adaptivealerting.anomdetect.detect.AnomalyLevel; import com.expedia.adaptivealerting.anomdetect.detect.DetectorResult; import com.expedia.adaptivealerting.anomdetect.detect.outlier.AbstractOutlierDetector; import com.expedia.adaptivealerting.anomdetect.detect.outlier.OutlierDetectorResult; import com.expedia.adaptivealerting.anomdetect.util.AssertUtil; import com.expedia.metrics.MetricData; import lombok.Getter; import lombok.ToString; import lombok.val; import java.util.UUID; import static com.expedia.adaptivealerting.anomdetect.detect.AnomalyLevel.MODEL_WARMUP; import static com.expedia.adaptivealerting.anomdetect.detect.AnomalyLevel.NORMAL; import static com.expedia.adaptivealerting.anomdetect.detect.AnomalyLevel.STRONG; import static com.expedia.adaptivealerting.anomdetect.detect.AnomalyLevel.WEAK; /** * <p> * Anomaly detector based on the cumulative sum. This is an online algorithm, meaning that it updates the threshold * incrementally as new data comes in. * </p> * <p> * https://www.spcforexcel.com/knowledge/variable-control-charts/keeping-process-target-cusum-charts * </p> */ @ToString(callSuper = true) public final class CusumDetector extends AbstractOutlierDetector { private static final String NAME = "cusum"; private static final double STD_DEV_DIVISOR = 1.128; @Getter private CusumDetectorParams params; @Getter private boolean trusted; /** * Total number of data points seen so far. */ private int totalDataPoints = 1; /** * Cumulative sum on the high side. SH */ @Getter private double sumHigh = 0.0; /** * Cumulative sum on the low side. SL */ @Getter private double sumLow = 0.0; /** * Moving range. Used to estimate the standard deviation. */ private double movingRange = 0.0; /** * Previous value. */ private double prevValue; public CusumDetector(UUID uuid, CusumDetectorParams params, boolean trusted) { super(uuid); AssertUtil.notNull(params, "params can't be null"); params.validate(); this.params = params; this.trusted = trusted; this.prevValue = params.getInitMeanEstimate(); } @Override public DetectorResult detect(MetricData metricData) { AssertUtil.notNull(metricData, "metricData can't be null"); val params = getParams(); val trusted = isTrusted(); val observed = metricData.getValue(); this.movingRange += Math.abs(this.prevValue - observed); val stdDev = avgMovingRange() / STD_DEV_DIVISOR; val slack = params.getSlackParam() * stdDev; val weakDelta = params.getWeakSigmas() * stdDev; val strongDelta = params.getStrongSigmas() * stdDev; this.sumHigh = Math.max(0, this.sumHigh + observed - (params.getTargetValue() + slack)); this.sumLow = Math.min(0, this.sumLow + observed - (params.getTargetValue() - slack)); this.prevValue = observed; // FIXME This eventually overflows. Realistically it won't happen, but would be nice to fix it anyway. [WLW] this.totalDataPoints++; Double upperStrong; Double upperWeak; Double lowerStrong; Double lowerWeak; AnomalyLevel level; if (totalDataPoints <= params.getWarmUpPeriod()) { level = MODEL_WARMUP; } else { level = NORMAL; upperWeak = weakDelta; upperStrong = strongDelta; lowerWeak = -weakDelta; lowerStrong = -strongDelta; // Below we use strict inequalities for anomaly checks instead of nonstrict. // The reason is that if a metric runs at a constant value, then the stdev is // 0, and another incoming metric data with the same constant value should // come out as NORMAL, not STRONG. [WLW] switch (params.getType()) { case LEFT_TAILED: lowerWeak = -weakDelta; lowerStrong = -strongDelta; if (this.sumLow < lowerStrong) { level = STRONG; // TODO Check whether this is really what we are supposed to do here. [WLW] resetSums(); } else if (this.sumLow < lowerWeak) { level = WEAK; } break; case RIGHT_TAILED: if (this.sumHigh > upperStrong) { level = STRONG; // TODO Check whether this is really what we are supposed to do here. [WLW] resetSums(); } else if (this.sumHigh > upperWeak) { level = WEAK; } break; case TWO_TAILED: if (this.sumHigh > upperStrong || this.sumLow < lowerStrong) { level = STRONG; // TODO Check whether this is really what we are supposed to do here. [WLW] resetSums(); } else if (this.sumHigh > upperWeak || this.sumLow < lowerWeak) { level = WEAK; } break; default: throw new IllegalStateException("Illegal type: " + params.getType()); } } return new OutlierDetectorResult(level, trusted); } @Override public String getName() { return NAME; } private void resetSums() { this.sumHigh = 0.0; this.sumLow = 0.0; } private double avgMovingRange() { if (totalDataPoints > 1) { return movingRange / (totalDataPoints - 1); } return movingRange; } }
34.208333
116
0.613429
757c668dd24d550739bd54cd91b3bdffcd25f741
4,548
css
CSS
old site pages/css/homepagestyle.css
asimone/discarded-projects
5eafa8dcf401882cb0a8c7f42c53f7b227ceb9e8
[ "MIT" ]
null
null
null
old site pages/css/homepagestyle.css
asimone/discarded-projects
5eafa8dcf401882cb0a8c7f42c53f7b227ceb9e8
[ "MIT" ]
null
null
null
old site pages/css/homepagestyle.css
asimone/discarded-projects
5eafa8dcf401882cb0a8c7f42c53f7b227ceb9e8
[ "MIT" ]
null
null
null
body {width: 100%; margin: 0; font-family: 'Ideal Sans SSm A', 'Ideal Sans SSm B', san-serif; font-weight: 400; font-style: normal;} a:link, a:visited, a:active, a:hover {color:rgba(0, 153, 255, 0.69); text-decoration: none;} ::selection { color: rgba(0, 0, 0, 0.91); background: rgba(0, 153, 255, 0.69); /* Safari */ } ::-moz-selection { color: rgba(0, 0, 0, 0.91); background: rgba(0, 153, 255, 0.69); /* Firefox */ } audio, canvas, img, svg, video { vertical-align: middle; } blockquote { text-indent: -0.8em; font-size: 25px; color: rgba(0, 0, 0, 0.54); font-style: italic; padding: 15px; } pre { white-space: pre-wrap; white-space: -moz-pre-wrap;s white-space: -o-pre-wrap; } ol { list-style: lower-greek;} ul {list-style: square; font-size: 25px;} li {font-size: 25px; margin-left: 30px;} h3 { font-size: 50px; font-family: 'Verlag Comp A', 'Verlag Comp B', serif; font-weight: 700; font-style: normal; margin-top: 10px; margin-bottom: 10px; color: rgba(0, 0, 0, 0.84); line-height: 1em; } .small {font-variant: small-caps;} header {background-color: rgba(0, 153, 255, 0.69); height: 263px; width 100%;} .title {width: 100%; margin: 0 auto; padding-top: 5px;} #blog-title { text-align: center; font-size: 80px; color: #fff; margin-bottom: -25px; font-family: 'Verlag Comp A', 'Verlag Comp B', serif; font-weight: 400; font-style: italic; text-transform: uppercase; } #blog-subhead { text-align: center; color: #fff; font-size: 20px; font-family: 'Ideal Sans SSm A', 'Ideal Sans SSm B', san-serif; font-weight: 400; font-style: italic; } .homepage-circle { display: block; width: 200px; height: 200px; margin: 40px auto; background-size: cover; background-repeat: no-repeat; background-position: center center; -webkit-border-radius: 99em; -moz-border-radius: 99em; border-radius: 99em; border: 5px solid #eee; box-shadow: 0 3px 2px rgba(0, 0, 0, 0.3); background-image: url('../images/clickmobile.gif'); } @media all and (max-width: 960px) and (min-width: 950px) { .homepage-circle { display: block; width: 200px; height: 200px; margin: 40px auto; background-size: cover; background-repeat: no-repeat; background-position: center center; -webkit-border-radius: 99em; -moz-border-radius: 99em; border-radius: 99em; border: 5px solid #eee; box-shadow: 0 3px 2px rgba(0, 0, 0, 0.3); background-image: url('../images/neener.gif'); } } @media (min-width:961px) { .homepage-circle { display: block; width: 200px; height: 200px; margin: 40px auto; background-size: cover; background-repeat: no-repeat; background-position: center center; -webkit-border-radius: 99em; -moz-border-radius: 99em; border-radius: 99em; border: 5px solid #eee; box-shadow: 0 3px 2px rgba(0, 0, 0, 0.3); background-image: url('../images/click.gif'); } } .content {margin-bottom: 35px;} .content h2 { font-size: 70px; text-align: center; line-height: 1em; font-family: 'Verlag Comp A', 'Verlag Comp B', serif; font-weight: 700; font-style: normal; color: rgba(0, 0, 0, 0.84); } .content p { font-size: 27px; line-height: 1.6em; } .post { width: 800px; margin: 0 auto; margin-top: -15px; color: rgba(0, 0, 0, 0.91); } .date { text-align: center; color: rgba(0, 0, 0, 0.54); font-size: 25px; font-weight: 400; margin-bottom: 80px; } footer {background-color: rgba(0, 153, 255, 0.69); height: 136px; width 100%;} .footer-bullshit { width: 800px; margin: 0 auto; padding-top: 20px; } .footer-bullshit p { color: #fff; font-size: 30px; font-family: 'Ideal Sans SSm A', 'Ideal Sans SSm B', san-serif; font-weight: 400; font-style: italic; text-align: center; } .only-olds-browse-websites p { color: #fff; font-size: 30px; font-family: 'Ideal Sans SSm A', 'Ideal Sans SSm B', san-serif; font-weight: 400; text-align: center; width: 800px; margin: -68px auto 0 auto; } .footer-bullshit a, .only-olds-browse-websites a {color: #fff;} .homepage-content { background-color: rgba(0, 153, 255, 0.69); margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 290px; } nav a {color: #fff !important; text-decoration: none !important;} nav { font-size: 45px; font-family: 'Ideal Sans SSm A', 'Ideal Sans SSm B', san-serif; font-weight: 400; text-align: center; width: 630px; margin: -170px auto 0 auto; } .resume-content { background-color: rgba(0, 153, 255, 0.69); margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 290px; font-style: italic; } .fill-div { display: block; height: 100%; width: 100%; text-decoration: none; }
19.271186
132
0.677441
f64401e43a3ba951698c2b1d5a93a2a5b42b49f5
1,971
dart
Dart
lib/test_page/TopBar/top_bar_two.dart
dushiling/flutter_ui_tool
156136619995024cfd4712e87a9304a7f229dd05
[ "Apache-2.0" ]
15
2022-02-21T02:56:46.000Z
2022-03-04T02:17:20.000Z
lib/test_page/TopBar/top_bar_two.dart
dushiling/flutter_ui_tool
156136619995024cfd4712e87a9304a7f229dd05
[ "Apache-2.0" ]
null
null
null
lib/test_page/TopBar/top_bar_two.dart
dushiling/flutter_ui_tool
156136619995024cfd4712e87a9304a7f229dd05
[ "Apache-2.0" ]
3
2022-02-21T02:56:47.000Z
2022-02-21T07:00:10.000Z
import 'package:flutter/material.dart'; import 'package:flutter_ui_tool/utils/color_util.dart'; class TopBarTwoPage extends StatefulWidget { const TopBarTwoPage({Key? key}) : super(key: key); @override _TopBarTwoPageState createState() => _TopBarTwoPageState(); } class _TopBarTwoPageState extends State<TopBarTwoPage> with TickerProviderStateMixin{ late TabController _tabController; static const List<Tab> _tabs = [ Tab(text: "关注",icon: Icon(Icons.add_road)), Tab(text: "推荐",icon: Icon(Icons.add_shopping_cart)), Tab(text: "热榜",icon: Icon(Icons.adb_sharp)), Tab(text: "财经",icon: Icon(Icons.add_chart)), Tab(text: "问答",icon: Icon(Icons.add_call)), Tab(text: "科技",icon: Icon(Icons.ad_units)), Tab(text: "要闻",icon: Icon(Icons.add_alert)), Tab(text: "视频",icon: Icon(Icons.add_a_photo_outlined)), Tab(text: "娱乐",icon: Icon(Icons.accessibility_new)), ]; final List<Widget> _tabsContent = [ Text("关注"), Text("推荐"), Text("热榜"), Text("财经"), Text("问答"), Text("科技"), Text("要闻"), Text("视频"), Text("娱乐"), ]; @override void initState() { super.initState(); _tabController = TabController( length: _tabs.length, vsync: this, ); } @override void dispose() { super.dispose(); _tabController.dispose(); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text("TopBarTwo-Scroll"), backgroundColor: ColorsV.primaryColor, bottom: TabBar( tabs: _tabs, controller: _tabController, isScrollable: true, indicator: UnderlineTabIndicator( borderSide: BorderSide( style: BorderStyle.none, ), ), ), ), body: TabBarView( // add tabs as widgets children: _tabsContent, // set the controller controller: _tabController, ), ); } }
24.036585
85
0.612887
da59f5df0119d2eae3302cb4497a35071feb2501
7,110
tsx
TypeScript
packages/tyreant/src/type/integer.tsx
tyranid-org/tyranid
985b855df04b2b6236b2dc1c3bab4438670f136c
[ "Apache-2.0" ]
9
2015-07-22T20:24:14.000Z
2022-01-05T06:48:30.000Z
packages/tyreant/src/type/integer.tsx
tyranid-org/tyranid
985b855df04b2b6236b2dc1c3bab4438670f136c
[ "Apache-2.0" ]
158
2015-06-21T05:18:05.000Z
2022-02-25T15:00:29.000Z
packages/tyreant/src/type/integer.tsx
tyranid-org/tyranid
985b855df04b2b6236b2dc1c3bab4438670f136c
[ "Apache-2.0" ]
null
null
null
import * as React from 'react'; import { useEffect } from 'react'; import { Slider, InputNumber, Select } from 'antd'; import { Tyr } from 'tyranid/client'; import { mapPropsToForm, onTypeChange } from './type'; import { TyrFilter, FilterDdProps } from '../core/filter'; import { byName, TyrTypeProps } from './type'; import { decorateField } from '../core'; import { registerComponent } from '../common'; import { withThemedTypeContext } from '../core/theme'; type SliderValue = [number, number] | undefined; const { Option } = Select; const filterOptions = [ 'Equals', 'Not equal', 'Less Than', 'Less Than or equals', 'Greater than', 'Greater than or equals', ]; export const TyrIntegerBase = <D extends Tyr.Document = Tyr.Document>( props: TyrTypeProps<D> ) => { useEffect(() => mapPropsToForm(props), [ props.path && props.path.name, props.document, ]); return decorateField('integer', props, () => { return ( <InputNumber {...(props.searchRange ? { min: props.searchRange[0] as number, max: props.searchRange[1] as number, } : {})} onChange={ev => onTypeChange(props, ev, undefined)} placeholder={props.placeholder} tabIndex={props.tabIndex} precision={0} step="1" {...(props.formatter !== undefined && { formater: props.formatter })} {...(props.min !== undefined && { min: props.min })} {...(props.max !== undefined && { max: props.max })} /> ); }); }; export const TyrInteger = withThemedTypeContext('integer', TyrIntegerBase); byName.integer = { component: TyrIntegerBase, cellValue: ( path: Tyr.PathInstance, document: Tyr.Document, props: TyrTypeProps<any> ) => { const v = path.get(document); if (!v || typeof v === 'number') { return props.formatter ? props.formatter(v as number) : v; } return '[Error]'; }, filter(component, props) { const path = props.path!; const { searchRange, searchNumber } = props; const sliderFilter = (filterDdProps: FilterDdProps) => { const defaultValue = (searchRange ? (searchRange as [number, number]) : [0, 100]) as [number, number]; const compProps = { ...(searchRange ? { min: searchRange[0] as number } : { min: 0 }), ...(searchRange ? { max: searchRange[1] as number } : { max: 100 }), }; return ( <TyrFilter<SliderValue> typeName="integer" component={component} filterDdProps={filterDdProps} pathProps={props} > {(searchValue, setSearchValue) => ( <Slider range {...compProps} value={searchValue || (defaultValue.slice() as [number, number])} onChange={setSearchValue} /> )} </TyrFilter> ); }; const numberFilter = (filterDdProps: FilterDdProps) => ( <TyrFilter<[string, number?]> typeName="integer" component={component} filterDdProps={filterDdProps} pathProps={props} > {(searchValue, setSearchValue, search) => { const setSearchValueChoice = (choice: string) => { setSearchValue([choice, searchValue ? searchValue[1] : undefined]); }; const setSearchValueNumber = ( value: string | number | null | undefined ) => { if (!isNaN(value as any)) { setSearchValue([ searchValue ? searchValue[0] : filterOptions[0], value as number, ]); } }; return ( <React.Fragment> <Select defaultValue={searchValue ? searchValue[0] : filterOptions[0]} onChange={setSearchValueChoice} style={{ width: 188, marginBottom: 8, display: 'block' }} > {filterOptions.map(op => ( <Option key={op} value={op}> {op} </Option> ))} </Select> <InputNumber autoFocus={true} value={searchValue ? searchValue[1] : undefined} onChange={setSearchValueNumber} onPressEnter={() => search()} style={{ width: 188, marginBottom: 8, display: 'block' }} /> </React.Fragment> ); }} </TyrFilter> ); return { filterDropdown: searchNumber ? numberFilter : sliderFilter, onFilter: ( value: number[] | [string, number] | undefined, doc: Tyr.Document ) => { if (value === undefined) return true; const intVal = (path.get(doc) as number) || 0; if (searchNumber) { switch (value[0]) { case 'Equals': return intVal === value[1]; case 'Not equal': return intVal !== value[1]; case 'Less Than': return intVal < value[1]; case 'Less Than or equals': return intVal <= value[1]; case 'Greater than': return intVal > value[1]; case 'Greater than or equals': return intVal >= value[1]; default: throw new Error(`How did you pick this: ${value[0]}?`); } } return intVal >= value[0] && intVal <= value[1]; }, /* onFilterDropdownVisibleChange: (visible: boolean) => { if (visible) { setTimeout(() => searchInputRef!.focus()); } } */ }; }, finder(path, opts, searchValue, pathProps) { if (searchValue) { if (!opts.query) opts.query = {}; if (pathProps?.searchNumber) { let searchParams: object | undefined = undefined; switch (searchValue[0]) { case 'equals': searchParams = searchValue[1]; break; case 'Not equal': searchParams = { $ne: searchValue[1] }; break; case 'Less Than': searchParams = { $lt: searchValue[1] }; break; case 'Less Than or equals': searchParams = { $lte: searchValue[1] }; break; case 'Greater than': searchParams = { $gt: searchValue[1] }; break; case 'Greater than or equals': searchParams = { $gte: searchValue[1] }; break; } if (searchParams) { if (!opts.query) opts.query = {}; opts.query[path.spathArr] = searchParams; } } else { const searchParams = [ { [path.spathArr]: { $gte: searchValue[0] } }, { [path.spathArr]: { $lte: searchValue[1] } }, ]; if (opts.query.$and) { opts.query.$and = [...opts.query.$and, ...searchParams]; } else { opts.query.$and = searchParams; } } } }, }; registerComponent('TyrInteger', TyrInteger);
29.020408
79
0.514065
3f0a9769af59ef25aa7236702e7bdda0370c6789
6,203
php
PHP
system/libraries/external/google-api-php-client--PHP7.4/vendor/google/apiclient-services/src/Document/GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue.php
aefw/sisko
8eea3196fbedbc3673e8d19bd99a482229b7e03f
[ "Apache-2.0" ]
null
null
null
system/libraries/external/google-api-php-client--PHP7.4/vendor/google/apiclient-services/src/Document/GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue.php
aefw/sisko
8eea3196fbedbc3673e8d19bd99a482229b7e03f
[ "Apache-2.0" ]
null
null
null
system/libraries/external/google-api-php-client--PHP7.4/vendor/google/apiclient-services/src/Document/GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue.php
aefw/sisko
8eea3196fbedbc3673e8d19bd99a482229b7e03f
[ "Apache-2.0" ]
null
null
null
<?php //00551 // -------------------------- // Created by Dodols Team // -------------------------- if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo("Site error: the ".(php_sapi_name()=='cli'?'ionCube':'<a href="http://www.ioncube.com">ionCube</a>')." PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking.\n\nPlease visit ".(php_sapi_name()=='cli'?'get-loader.ioncube.com':'<a href="http://get-loader.ioncube.com">get-loader.ioncube.com</a>')." for install assistance.\n\n");exit(199); ?> HR+cPrSV3DFpmlJa+j2Py6Ch6NZeYRo2YjqTCxp8/Jg5igR24RJz3dsW94DdPjziRi9cIuhSMJd1 q2rMBeVb8uUW6qGO21L1qfEJmsTOGKPM298SAA2nL9dcXQwGmf4TuLQs1GDimTXd03yCvS3NunfB XZ3Q50B3cG2wf4nNEqmUlB6R2MgGCOWk0zB+aIX1WDtX8NQZVwM3H2S2v4JdPWbikBZRaX8JsNjf 9Ije9C7b/o0iqePcDQ4T3YNNwDwpHynIQE4Kd14QHrhxgTLumScNs3bEgQwyLUVvsid3kSxXEHjC p7DWRo8OWSWX5xzZNSilYFZ+Jlym1wPGxd59hqxR3VYO53topVCbd5dLaIl0PQwdmtEL7hVxc9Fk 5djUVedWVjgjDMCvhAAyQdDhpfAxyD8fLVqjsG8vcil24qqY9riNVmvGiMV1dQF8XSKMd03CY0E+ musUxDD4l4DJ9fztePMRNiU9bIg4NnMYV6gCmSGNvwoRzmxuLJOa0o1T09KIOrDdRDVb7QKWCKKO pXOxNAsZCqtZovq3Lvkh7uqBuw209OPvEnWwtq742h4kT9TmsyqPLzX+wL5q4jrkvK+xquwPp767 Etp1EbwSO+LPPW2J0+Vc4zX1OmafFI1m5z62p4d/oNUGjfpGsPOP2PAm2UaUfj0G/wp/kP6fDojB t55zxHkY1BahCdlNPAGnOYhc5GNofLfhn8jY10yKA4I9J2M/fRwE7+DFLsG7qkc/XVBR1fpZNiBv 4NKoWbckGam5DUvmSX8D8U7yAmDSE8k5wcMT3x8EkSt/ga/ozLQ80ZyOrTVV3kqEnVbo9BTVNxnR 3ib6aQoOeUT9lx2EPVO3GDY1vB1fPyAabLjXu5kKLNbwdjXHj0i+ROlPDakx/Hnojo1SUDw/fkKz kpZBdy5qIJGYaBeZMsEhqPgqqMKiuZ+fcchYBVPqDMgOC6I86f7PaXP1q3ZUL84tDDvwKXFc2lNc ovvZIkTg/uGtMyXfY3tiRlF7S1gduHV24sgGGNX1lglrnkLUMOzyqfOevSsr5djDOkmt/VJbtda1 OcqhTRhaDO1eJifievv4+EE5dGnLWnwS5nNGq8llxZC/PuJm9q1ls1rEIaa0hAXN5xwk/cj+EYC7 21YY/u3isQEUzQThnuazckdFCYPxYiInKKwn9p1DWicQADMef12v6Qg7sJfdwUA6ZlILbhZ7+sE3 9hee4aDCRgpdNKOI38busH6QP5rNjct7D1oZUTqD+Hg6x1JWO6DTbI/AK8FylJ8gHLdSYpqBT7Oj ZIp+FLkM97BH4zN3bOCxOQuvON1LCoGg513k+2fktJjDVE4EEXDY0bPIs0sqe6Y+HTVlLP8dogJJ Retza5nD9iXKVFjtqRbl+wINZhKfkPG0wmMgUhqMLc/KaEnk+P8kgQBMnDVXIu2NSluDfVYX4DD8 nUs5P7asHMBUIhILKkDpwe2fKMJvITIXaOrut/0IdUrxHO1wGTxr9+H1J5IGsaw2X3PvNgydbw10 fQG/ostaqFbBOt8YegCiEC9qATceHe5IBF75qvLrBXh2Q6uCSRoouSpca8z1QFc+6c1E3OuB8lTu 08vxUr5HdLzfunLRbMAYUESnJqN9hrwt7ueEMDvxVRzeH09TsoHwlzMselolnQr5MIrpstH/VCJG OymUqypFp1TmiUs4IYLAeylQ12Lc1dmaPvYsM18UQGir2jQtuAHZ9Ls14MaKvHuPPnSxSnXsWSA2 DAqY6RbiDqtnLnLbr2fW9Y/sUtPH5goCIK4gHixIuuYf2HL/BwwHWowFY+Hs9fUCiLexLhw2j+vV ZE+UJmRtKAog+xGT/mY1LEq2R4XtUvunR9LmRDyoSKxReV3gMR40oCrSMrzxZrWNsnJVa0bONnXw cyQqsRc+LgN+G8pZCpquSMCirTWiaSKuBJWnoLnIZ9M9OKYdzWnvqu5wAOpprJ2eRGX6FOghrFrk 3b15qSSdJ6weSPftL3D4xfVahrHzP1kAMiO2dTIil8f4g1KUii8a9t/2cAb8s7U4S75bwDwi11UJ +AufRJB/se+fckXsRlSA6eXzFVcrI/eb77tGZFjBiIeRx5PJCcRQD08XcGoz8Grt09EdhVmTI0Wo Rd1+sFVeE6G0NS+Prd6R56kT9Pg0O3O6wh58qMawS1e0BMxtH8XQh0K5a12NO2D3j6KxBsQmCMpD k4qDClMVxHCIJGHEkqsxad200FHoPuL3zU1yWLFw/2LNgI7Ni4xPO7rtFSRau0lkLuwa7eIVEPKf Is/e83yYT/UMkl5TTb41775xiXsXYbUPeYEkFtvD1gIAtZ+uV/rX5vwKSNjCobhNEZH44OvKem4Z 1h9TaHo+tSijgG1UqXWVGs+LMfW808DlCQb9pLNVB3zuPW/nuZtUQ2iGPRd5BMFTY8s6q6hlIfO+ mbU9ihsSP7QCgklq34v/UDD5zNj8paaDD46YjHwxOE0HNrxjXjoxFbkF88z8+1eq7QnSp4OHGYeh 5dF3WHgaDsYenYxMxpHA2dW8+7dvv1z48LVLlYm6cewtIeQF2pSPEjV9WmzBMnbpUecCi4qq60CI 5BCJgFu53dm4hJWAvvQaMN2/EdIlPnmcNa5F80dYwdyFFMip53JlwCQrffiJRoG/bJd9FtjWutIw mt+afDi22oUKuvONUD2pP/P9/4KGQksQQVZOfx66hjzMfYxCU7rV60SWDwlLmG+87W88IpbmI/fI 24Hq7xZeCujs//axy27Qh1EA+7KzDICLtNs937Qem9kH0l8AzJP71bgKRNUx6VRjtQ3nNV8CDlau VCVD8cAUDwfqgIwKNsl7FLQl/5wJSb9weIP9xloy6PM1oc0pB7fLWyBtuwvqAZX9ibBpgCLfXZMq FIqFQNyswGrg9kytWMjkGg2nrmfprECppi7lZI/u/LswX3CHnVj+FmqOIV/J5/7yLV1EHYX6G+Kj 3I1B44q/MBvR+pLrJ/oEQMXM72eLS44cTQiCrnlDvf3grDDY0cHaFnu2iY+jkbd+b31XceBa2tOc M0GFDRu3T/N3JKSagm/2idWGg06B3t/nveuW1bp3IT2ESpt3v03/Y15XQdOcBIG4gMOtSstIqZRB C7ATT+FZnKAIlJ+wOdxp+gSBp3k4nWLzN4S45MLT0Hm8cR5azpzlgHhJgKJwQeLwkVI2zCxZyrQf TCQfqT78t7yAi/bG1b7TVFMFE6yn8Geft3XE1ywSv2Y2JwNJzD70xg3M+++2muHg/JCJ4UzVQ5m2 W+K4Br7qRFdkcvXLny+eqQXhUbUlcCnYcwpe3Vb2de6tuD40QM8oICMxft6/QiQ01iCHplnIw70K 1WZOmnBahgF4eKEbbA4IzGjh6F/2PoOMMbiS3j3KBfseUGgQKbSeDpA2poGpuYjPVpJVdSOxRUNA 358ueknBltSTL66SWQq20s84BW7T/LsiC9yFPTZ0ece2drLALJN5oveiWEIkaOr6qh6Kb78P1MqR +ELpfLGgwpY5uFZ7jLyi9THVnKvBsSVYQp/OloN4qZRQ6r9Xzrii3HK3npE7CJQqQMrTb00idNvH q2B+r9tKplUyj0FvyMCUlnc8YX+R66Cc+FPyvQTLacLuNa3+Ri+vToddvBK5rSaYQREuUqZV/Vmq R2T7uqpOYq/h+I5zbYfkT0NdSVJ8kv6pOH2NZ1JpOz1Rai0oARj1Jl/8DLhLEZTd2XLDnUIAOCnH CYw5khYEEPwnWmEVaP1B0uoEGRtyxqQvovk5BrrUE2vIbCmmhp0s+XPKErcdfX1T4eOMlFuvU/fj zEyzn+xE4j9hX1iT7Ki5iGA7aOf+Tk981dcjZBi0AYEdzldshk9GV4tCHj/IbEXsGdVYB31GHjT2 zXtg5FDpIBk2xe6bnJqbYr96V0CaKMJrwpFkKBHY9zT4MbjloDS2HWzIt7P7/lXfxUqUQilINTxI +fQGT83xQ1VHPfW0wHRLA4cwVYejJNFpNt0klTNO/VaUP4VCRjTpw1n9Unvxmk3hnBACIgs8e1qg /Y+ISjYMVNHrX7256M8UQzncJm1Q1V1UTzZrNbPalWfi6AD2qFerOajdXiI1k4Ap1oG67eZWfsZo 2oEJOil7W7M2cYCd8OiRB/1NUt9j3WtB2TvNPaAnvLxWkeOsva/yZaUvCULeuGgUoB4Hd/btHS4w cDS1mb98HQAbx7A1zRaUDkArZPKzIjlietXT6LqrnmwQKQBWMxZ8rAfLCGlZDPZMFcN1Qia/Bk8w pZ9bKLTiPErblElP3e6R1vA0B3KEcNe9fxUY2TrGhPKLIpV8thrl7CO+3AYFjFKp/il3VtS+hjtr 6PptUl9HjHnlKsVvJr1kQuoQTLi6ipLvIKB1gHzjpz6BypjJLQmqmdzg50SnqozFWF09/Vktp1JH J00nJmsSPpilpHatx98ZUT7BgiUIgqes7eh/ExE58N11OMjtnNhwHNGpT2ZSGRrcXHH6q/xD27o8 dsr8SQbw/R8dcg5Zlt64ZtLauiBS2nJTa822qhLrC1nvCuacATN4gPNlEfYNEOMPJzoVzkgt3+gJ q5U9G7LN5wv8qETekG8gyI1gLKBazj0mGn0zQn26AdKPwSErurmt3StXuw1mniNYqyvw2YmrQFTc Of+qidqVnLVfY91bLk2mddYp+tLRJ+Ld7VbL/JKpsEQ6sdMKoQZ41sl05FqDIcR9W7cthF54i0In X7Yc+0EC6YoCeD5EVyDJSz5BdqGbzDJa6uplGY4/c/NI2jexxOdvCwZIjEPVcQu=
89.898551
1,261
0.889086
e26b1f836815b6547283cc62452b06121070f544
1,733
py
Python
cmd/geolookup.py
Grammarian/sicle
94d826477d269c4c3534d83fa2e940de1d923140
[ "Apache-2.0" ]
null
null
null
cmd/geolookup.py
Grammarian/sicle
94d826477d269c4c3534d83fa2e940de1d923140
[ "Apache-2.0" ]
null
null
null
cmd/geolookup.py
Grammarian/sicle
94d826477d269c4c3534d83fa2e940de1d923140
[ "Apache-2.0" ]
null
null
null
from openpyxl import load_workbook import os.path import json import requests SOURCE_XLSX = "./Schools Locations Classes - Feb 2018.xlsx" TITLES = ["Organisation", "School", "Location", "IBN ID", "File No", "Language", "Classes", "Address1", "Address2", "Suburb", "State", "Postcode", "Contact Name", "Contact Phone", "Electorate", "Education Officer"] def path_to_xlsx(): path_to_py = os.path.abspath(os.path.dirname(__file__)) return os.path.join(path_to_py, SOURCE_XLSX) def process_row(row): location = row[2].value # print(tuple(x.value for x in row)) print(location) payload = { "key": "AIzaSyDQkcz38z2AbEYTuSIXDj66DEixa7LCDhs", "query": location, "type": "school" } response = requests.get( "https://maps.googleapis.com/maps/api/place/textsearch/json", params=payload) json_data = json.loads(response.text) if json_data["status"] == "OK": result1 = json_data["results"][0] data = { "name": result1["name"], "found": True, "lat": result1["geometry"]["location"]["lat"], "lng": result1["geometry"]["location"]["lng"] } print(data) else: data = { "name": result1["name"], "found": False } print(data) def is_title_row(row): return all(x.value == TITLES[i] for (i, x) in enumerate(row)) def main(): wb = load_workbook(filename=path_to_xlsx(), data_only=False) sheet = wb["Sheet0"] found_titles = False for row in sheet.iter_rows(): if found_titles: process_row(row) else: found_titles = is_title_row(row) if __name__ == "__main__": main()
27.078125
132
0.595499
d0170188157eab7993fe3f2abc6975a63324cf66
3,629
hpp
C++
smacc2_client_library/nav2z_client/custom_planners/pure_spinning_local_planner/include/pure_spinning_local_planner/pure_spinning_local_planner.hpp
droidware-ai/SMACC2
1aa0680f71c1b22f06e1a9b129a0a42b36911139
[ "Apache-2.0" ]
48
2021-05-28T01:33:20.000Z
2022-03-24T03:16:03.000Z
smacc2_client_library/nav2z_client/custom_planners/pure_spinning_local_planner/include/pure_spinning_local_planner/pure_spinning_local_planner.hpp
droidware-ai/SMACC2
1aa0680f71c1b22f06e1a9b129a0a42b36911139
[ "Apache-2.0" ]
75
2021-06-25T22:11:21.000Z
2022-03-30T13:05:38.000Z
smacc2_client_library/nav2z_client/custom_planners/pure_spinning_local_planner/include/pure_spinning_local_planner/pure_spinning_local_planner.hpp
droidware-ai/SMACC2
1aa0680f71c1b22f06e1a9b129a0a42b36911139
[ "Apache-2.0" ]
14
2021-06-16T12:10:57.000Z
2022-03-01T18:23:27.000Z
// Copyright 2021 RobosoftAI Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /***************************************************************************************************************** * * Authors: Pablo Inigo Blasco, Brett Aldrich * ******************************************************************************************************************/ #pragma once //#include <dynamic_reconfigure/server.h> //#include <pure_spinning_local_planner/PureSpinningLocalPlannerConfig.h> #include <tf2/transform_datatypes.h> #include <tf2_ros/buffer.h> #include <Eigen/Eigen> #include <geometry_msgs/msg/pose_stamped.hpp> #include <geometry_msgs/msg/quaternion.hpp> #include <nav2_core/controller.hpp> #include <tf2_geometry_msgs/tf2_geometry_msgs.hpp> #include <visualization_msgs/msg/marker_array.hpp> typedef double meter; typedef double rad; typedef double rad_s; namespace cl_nav2z { namespace pure_spinning_local_planner { class PureSpinningLocalPlanner : public nav2_core::Controller { public: PureSpinningLocalPlanner(); virtual ~PureSpinningLocalPlanner(); void configure( const rclcpp_lifecycle::LifecycleNode::WeakPtr & parent, std::string name, const std::shared_ptr<tf2_ros::Buffer> & tf, const std::shared_ptr<nav2_costmap_2d::Costmap2DROS> & costmap_ros) override; void activate() override; void deactivate() override; void cleanup() override; /** * @brief nav2_core setPlan - Sets the global plan * @param path The global plan */ void setPlan(const nav_msgs::msg::Path & path) override; /** * @brief nav2_core computeVelocityCommands - calculates the best command given the current pose and velocity * * It is presumed that the global plan is already set. * * This is mostly a wrapper for the protected computeVelocityCommands * function which has additional debugging info. * * @param pose Current robot pose * @param velocity Current robot velocity * @return The best command for the robot to drive */ virtual geometry_msgs::msg::TwistStamped computeVelocityCommands( const geometry_msgs::msg::PoseStamped & pose, const geometry_msgs::msg::Twist & velocity, nav2_core::GoalChecker * goal_checker) override; /*deprecated in navigation2*/ bool isGoalReached(); virtual void setSpeedLimit(const double & speed_limit, const bool & percentage) override; private: void updateParameters(); nav2_util::LifecycleNode::SharedPtr nh_; std::string name_; void publishGoalMarker(double x, double y, double phi); std::shared_ptr<nav2_costmap_2d::Costmap2DROS> costmapRos_; std::shared_ptr<rclcpp_lifecycle::LifecyclePublisher<visualization_msgs::msg::MarkerArray>> goalMarkerPublisher_; std::vector<geometry_msgs::msg::PoseStamped> plan_; std::shared_ptr<tf2_ros::Buffer> tf_; double k_betta_; bool goalReached_; int currentPoseIndex_; rad yaw_goal_tolerance_; rad intermediate_goal_yaw_tolerance_; rad_s max_angular_z_speed_; double transform_tolerance_; bool use_shortest_angular_distance_; }; } // namespace pure_spinning_local_planner } // namespace cl_nav2z
32.990909
116
0.712869
45896c85a489a7eb2718ac18217e71b65ac35bff
3,550
py
Python
advent/problem_02.py
MattJDavidson/python-adventofcode
d8f52a8d09561ed3d7dfe0f379f19cb71268073f
[ "BSD-2-Clause" ]
null
null
null
advent/problem_02.py
MattJDavidson/python-adventofcode
d8f52a8d09561ed3d7dfe0f379f19cb71268073f
[ "BSD-2-Clause" ]
null
null
null
advent/problem_02.py
MattJDavidson/python-adventofcode
d8f52a8d09561ed3d7dfe0f379f19cb71268073f
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """--- Day 2: I Was Told There Would Be No Math --- The elves are running low on wrapping paper, and so they need to submit an order for more. They have a list of the dimensions (length l, width w, and height h) of each present, and only want to order exactly as much as they need. Fortunately, every present is a box (a perfect right rectangular prism), which makes calculating the required wrapping paper for each gift a little easier: 1. Find the surface area of the box, which is 2*l*w + 2*w*h + 2*h*l. 1. The elves also need a little extra paper for each present: the area of the smallest side. For example: A present with dimensions 2x3x4 requires 2*6 + 2*12 + 2*8 = 52 square feet of wrapping paper plus 6 square feet of slack, for a total of 58 square feet. A present with dimensions 1x1x10 requires 2*1 + 2*10 + 2*10 = 42 square feet of wrapping paper plus 1 square foot of slack, for a total of 43 square feet. All numbers in the elves' list are in feet. How many total square feet of wrapping paper should they order? --- Part Two --- The elves are also running low on ribbon. Ribbon is all the same width, so they only have to worry about the length they need to order, which they would again like to be exact. The ribbon required to wrap a present is the shortest distance around its sides, or the smallest perimeter of any one face. Each present also requires a bow made out of ribbon as well; the feet of ribbon required for the perfect bow is equal to the cubic feet of volume of the present. Don't ask how they tie the bow, though; they'll never tell. For example: A present with dimensions 2x3x4 requires 2+2+3+3 = 10 feet of ribbon to wrap the present plus 2*3*4 = 24 feet of ribbon for the bow, for a total of 34 feet. A present with dimensions 1x1x10 requires 1+1+1+1 = 4 feet of ribbon to wrap the present plus 1*1*10 = 10 feet of ribbon for the bow, for a total of 14 feet. How many total feet of ribbon should they order? """ from functools import reduce import operator import sys import click def format_lines(text): """Returns list of list of ints""" return [[int(i) for i in str.split(line, 'x')] for line in str.split(text)] def calculate_area(length, width, height): """Calculates the area + slack based on dimensions""" area_of_sides = [length*width, width*height, height*length] return sum(2*area_of_sides, min(area_of_sides)) def total_area(text): """Returns total area of wrapping paper""" return sum(calculate_area(*dimensions) for dimensions in format_lines(text)) def calculate_wribbon(dimensions): """Returns required wribbon""" dimensions.sort() return reduce(operator.mul, dimensions, 1) + sum(dimensions[:2])*2 def total_wribbon(text): return sum(calculate_wribbon(dimensions) for dimensions in format_lines(text)) def calculate_solution_1(data): return total_area(data) def calculate_solution_2(data): return total_wribbon(data) @click.command() @click.option('--source_file', default='data/02.txt', help='source data file for problem') def main(source_file): """Simple solution to adventofcode problem 2.""" data = '' with open(source_file) as source: data = source.read() print('Total required wrapping paper for part 1 is {}'.format(total_area(data))) print('Total required wribbon for part 2 is {}'.format(total_wribbon(data))) if __name__ == "__main__": sys.exit(main())
35.148515
84
0.716338
e05828b5bd0d76638093beef244a8a694043e3b8
462
h
C
WavesSDKCrypto/Vendors/Curve25519/Sources/Objc/Randomness.h
hiletmis/WavesSDK-iOS
50f3a7c72ece41a312a8f0969594f263ce86beb1
[ "MIT" ]
16
2019-07-09T12:40:06.000Z
2022-02-21T02:47:19.000Z
WavesSDKCrypto/Vendors/Curve25519/Sources/Objc/Randomness.h
hiletmis/WavesSDK-iOS
50f3a7c72ece41a312a8f0969594f263ce86beb1
[ "MIT" ]
4
2019-07-01T08:35:08.000Z
2021-12-08T05:47:11.000Z
WavesSDKCrypto/Vendors/Curve25519/Sources/Objc/Randomness.h
hiletmis/WavesSDK-iOS
50f3a7c72ece41a312a8f0969594f263ce86beb1
[ "MIT" ]
7
2019-07-12T15:52:15.000Z
2022-03-07T10:59:30.000Z
// // Randomness.h // AxolotlKit // // Created by Frederic Jacobs on 21/07/14. // Copyright (c) 2014 Frederic Jacobs. All rights reserved. // #import <Foundation/Foundation.h> @interface Randomness : NSObject /** * Generates a given number of cryptographically secure bytes using SecRandomCopyBytes. * * @param numberBytes The number of bytes to be generated. * * @return Random Bytes. */ +(NSData*) generateRandomBytes:(int)numberBytes; @end
18.48
88
0.712121
b7b6d1c99f9f614d174e50065d28102c8bc6f34b
46
ps1
PowerShell
sdk/digitaltwins/Export-AdtApis.ps1
gjy5885/azure-sdk-for-net
5491b723c94176509a91c340485f10009189ac72
[ "MIT" ]
3,268
2015-01-08T04:21:52.000Z
2022-03-31T11:10:48.000Z
sdk/digitaltwins/Export-AdtApis.ps1
gjy5885/azure-sdk-for-net
5491b723c94176509a91c340485f10009189ac72
[ "MIT" ]
18,748
2015-01-06T00:12:22.000Z
2022-03-31T23:55:50.000Z
sdk/digitaltwins/Export-AdtApis.ps1
gjy5885/azure-sdk-for-net
5491b723c94176509a91c340485f10009189ac72
[ "MIT" ]
4,179
2015-01-07T20:13:22.000Z
2022-03-31T09:09:02.000Z
..\..\eng\scripts\Export-API.ps1 digitaltwins
23
45
0.73913
6dea6a10cdd5928341ab487e32d46ef6c79b69ab
9,584
ts
TypeScript
projects/ngx-ytd-api-lib/commentThreads/src/ytd-api-comment-threads.interface.ts
Chan4077/ngx-ytd-api
69bec884df0b15c776b749b4fed6eda43e948c91
[ "MIT" ]
4
2018-07-07T13:23:02.000Z
2019-02-24T08:53:24.000Z
projects/ngx-ytd-api-lib/commentThreads/src/ytd-api-comment-threads.interface.ts
EdricChan03/ngx-ytd-api
69bec884df0b15c776b749b4fed6eda43e948c91
[ "MIT" ]
266
2019-05-05T23:13:29.000Z
2020-01-12T13:20:52.000Z
projects/ngx-ytd-api-lib/commentThreads/src/ytd-api-comment-threads.interface.ts
Chan4077/ngx-ytd-api
69bec884df0b15c776b749b4fed6eda43e948c91
[ "MIT" ]
null
null
null
import { NgxYtdApiCommentsResource } from 'ngx-ytd-api/comments'; import { NgxYtdApiGenericResource, NgxYtdApiStandardParams, NgxYtdApiGenericResponse } from 'ngx-ytd-api/common'; /** * Represents a resource for the comment thread API * @see [Resource representation](https://developers.google.com/youtube/v3/docs/commentThreads#resource) */ export interface NgxYtdApiCommentThreadsResource extends NgxYtdApiGenericResource { /** * The ID used by YouTube to uniquely identify the comment thread * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads#id) */ id?: string; /** * Contains basic details about the comment thread * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads#snippet) */ snippet?: { /** * The YouTube channel that is associated with the comments in the thread * * Notes: * - If the comments are about a video, then the value identifies the channel that uploaded the video * (The `snippet.videoId` property identifies the video) * - If the comments refer to the channel itself, the `snippet.videoId` property will not have a value * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads#snippet.channelId) */ channelId?: string; /** * The ID of the video that the comments refer to (if any) * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads#snippet.videoId) */ videoId?: string; /** * The thread's top level comment * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads#snippet.topLevelComment) */ topLevelComment?: NgxYtdApiCommentsResource; /** * Indicates whether the current viewer can reply to the thread * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads#snippet.canReply) */ canReply?: boolean; /** * The total number of replies in response to the top level comment * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads#snippet.totalReplyCount) */ totalReplyCount?: number; /** * Indicates whether the thread and it's contents are visible to all YouTube users * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads#snippet.isPublic) */ isPublic?: boolean; }; /** * A container that contains a list of replies to the comment (if any exist) * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads#replies) */ replies?: { /** * A list of one or more replies to the top-level comment * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads#replies.comments[]) */ comments?: NgxYtdApiCommentsResource[]; }; } /** * Represents parameters for the `list` method of the comment thread API * @see [Parameters table](https://developers.google.com/youtube/v3/docs/commentThreads/list#parameters) */ export interface NgxYtdApiCommentThreadsListParams extends NgxYtdApiStandardParams { /** * Instructs the API to return all comment threads associated with the specified channel * * Note: This parameter is a *filter*, where only one *filter* should be specified. * * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads/list#allThreadsRelatedToChannelId) */ allThreadsRelatedToChannelId?: string; /** * Instructs the API to return comment threads containing comments about the specified channel * * Note: This parameter is a *filter*, where only one *filter* should be specified. * * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads/list#channelId) */ channelId?: string; /** * A comma-separated list of comment thread IDs for the resources that should be retrieved * * Note: This parameter is a *filter*, where only one *filter* should be specified. * * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads/list#id) */ id?: string; /** * Instructs the API to return comment threads associated with the specified video ID * * Note: This parameter is a *filter*, where only one *filter* should be specified. * * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads/list#videoId) * */ videoId?: string; /** * Specifies the maximum number of items that should be returned * - Accepted values: a number between `1` to `100` * - Default value: `20` * * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads/list#maxResults) */ maxResults?: number; /** * Limits the returned comment threads to a specified moderation state. * - Accepted values: * - `heldForReview` - Retrieve comment threads that are awaiting review by a moderator * - `likelySpam` - Retrieve comment threads classified as likely to be spam * - `published` - Retrieve threads of published comments * - Default value: `published` * - Note: This parameter is not supported with the `id` parameter * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads/list#moderationStatus) */ moderationStatus?: 'heldForReview' | 'likelySpam' | 'published'; /** * Specifies the order in which the API should list comment threads * - Accepted values: * - `time` - Comment threads are ordered by time * - `relevance` - Comment threads are ordered by relevance * - Default value: `time` * - Note: This parameter is not supported with the `id` parameter * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads/list#order) */ order?: 'time' | 'relevance'; /** * Specifies the page that should be returned in the result set * * Note: This parameter is not supported with the `id` parameter * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads/list#pageToken) */ pageToken?: string; /** * Returns comments that contain the specified search terms * * Note: This parameter is not supported with the `id` parameter * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads/list#searchTerms) */ searchTerms?: string; /** * Sets the text format to return the comments in * - Accepted values: * - `html` - Returns the comments in HTML * - `plainText` - Returns the comments in plain text format * - Default value: `html` * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads/list#textFormat) */ textFormat?: 'html' | 'plainText'; } /** @deprecated Use {@link NgxYtdApiCommentThreadsListParams} */ // tslint:disable-next-line:no-empty-interface export interface NgxYtdApiCommentThreadsListOpts extends NgxYtdApiCommentThreadsListParams { } /** * Represents the response which is returned when the `list` method of the comment thread API is called * @see [Response structure](https://developers.google.com/youtube/v3/docs/commentThreads/list#response) */ export interface NgxYtdApiCommentThreadsListResponse extends NgxYtdApiGenericResponse { /** * The token that can be used as the value of the `pageToken` parameter to retrieve the next page in the list of results * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads/list#nextPageToken) */ nextPageToken?: string; /** * Contains paging information for the list of results * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads/list#pageInfo) */ pageInfo?: { /** * The total number of results in the list of results * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads/list#pageInfo.totalResults) */ totalResults?: number; /** * The number of results included in the API response * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads/list#pageInfo.resultsPerPage) */ resultsPerPage?: number; }; /** * A list of comment threads that match the request criteria * @see [Developer docs](https://developers.google.com/youtube/v3/docs/commentThreads/list#items[]) */ items?: NgxYtdApiCommentThreadsResource[]; } /** * Represents methods for the `insert` method of the comment thread API * @see [Parameters table](https://developers.google.com/youtube/v3/docs/commentThreads/insert#parameters) */ export interface NgxYtdApiCommentThreadsInsertParams extends NgxYtdApiStandardParams { /** * Represents the properties that should be included in the response * @see [Parameter info](https://developers.google.com/youtube/v3/docs/commentThreads/insert#part) */ part: string; } /** @deprecated Use {@link NgxYtdApiCommentThreadsInsertOpts} */ // tslint:disable-next-line:no-empty-interface export interface NgxYtdApiCommentThreadsInsertOpts extends NgxYtdApiCommentThreadsInsertParams { } /** * Represents methods for the `update` method of the comment thread API * @see [Parameters table](https://developers.google.com/youtube/v3/docs/commentThreads/insert#parameters) */ export interface NgxYtdApiCommentThreadsUpdateParams extends NgxYtdApiStandardParams { /** * Represents the properties that should be included in the response * @see [Parameter info](https://developers.google.com/youtube/v3/docs/commentThreads/insert#part) */ part: string; }
42.035088
122
0.717863
2354b00d1df70b9c4b577b4c6280974b4fb95b14
475
css
CSS
css/404_theme.css
vikrambajaj22/vikrambajaj22.github.io
8fca6e9c5d7424a13652fb27ac309e4ffc2b9c7c
[ "MIT", "BSD-3-Clause" ]
null
null
null
css/404_theme.css
vikrambajaj22/vikrambajaj22.github.io
8fca6e9c5d7424a13652fb27ac309e4ffc2b9c7c
[ "MIT", "BSD-3-Clause" ]
null
null
null
css/404_theme.css
vikrambajaj22/vikrambajaj22.github.io
8fca6e9c5d7424a13652fb27ac309e4ffc2b9c7c
[ "MIT", "BSD-3-Clause" ]
null
null
null
nav { background-color: white; } #text-404 { font-family: "Neucha"; text-align: center; font-size: large; } p { font-family: "Neucha"; text-align: justify; font-size: medium; } #welcome-header, .btn { color: #4caf50; } nav a, a.sidenav-trigger i, ul.sidenav li a { color: #b9f6ca; } nav, #text-404, #footer-text, #copyright-text, p { color: #616161; } .btn { background: white; } .btn:hover, .btn:focus { background: #4caf50; color: white; }
10.555556
26
0.623158
8323eed0f54d8578ff04dbf524d7da40d3641338
629
tsx
TypeScript
src/pages/404.tsx
wetrustinprize/zork-frontend
8f89458a268ccdef4248b4ad1c6d7d20e524f54c
[ "MIT" ]
null
null
null
src/pages/404.tsx
wetrustinprize/zork-frontend
8f89458a268ccdef4248b4ad1c6d7d20e524f54c
[ "MIT" ]
null
null
null
src/pages/404.tsx
wetrustinprize/zork-frontend
8f89458a268ccdef4248b4ad1c6d7d20e524f54c
[ "MIT" ]
null
null
null
import Head from "next/head"; import Link from "next/link"; import style from "./404.module.scss"; const FourOhFour: React.FC = () => { return ( <> <Head> <title>404 - Not Found</title> </Head> <main className={style.fourohfour}> <div className={style.text}> <p>This page doesn't exist.</p> <Link href={{ pathname: "/" }}> <a>Return home.</a> </Link> </div> <div className={style.divider} /> <div className={style.fourText}> <h1>404</h1> </div> </main> </> ); }; export default FourOhFour;
21.689655
41
0.508744
14d5b1f5dbe0273858876cc144c690600ca72b96
649
ts
TypeScript
src/applicationCommands/slashCommands/patreon.ts
celltosingularityprojects/Semblance-bot
1f34ca3f02092fd90699e873b33927926bb13aa8
[ "MIT" ]
10
2020-11-04T11:38:11.000Z
2021-12-13T08:22:04.000Z
src/applicationCommands/slashCommands/patreon.ts
celltosingularityprojects/Semblance-bot
1f34ca3f02092fd90699e873b33927926bb13aa8
[ "MIT" ]
2
2021-08-04T17:07:47.000Z
2021-12-13T21:17:17.000Z
src/applicationCommands/slashCommands/patreon.ts
celltosingularityprojects/Semblance-bot
1f34ca3f02092fd90699e873b33927926bb13aa8
[ "MIT" ]
3
2020-11-05T11:49:23.000Z
2021-04-26T14:58:58.000Z
import { MessageActionRow, MessageButton } from 'discord.js'; import type { SlashCommand } from '#lib/interfaces/Semblance'; export default { permissionRequired: 0, run: interaction => { const component = new MessageActionRow().addComponents( new MessageButton() .setStyle('LINK') .setLabel('CLICK ME!') .setEmoji('<:SirUwU:797148051000000512>') .setURL('https://www.patreon.com/SirHDeveloper'), ); return interaction.reply({ content: 'Support me on [Patreon](https://www.patreon.com/SirHDeveloper)!', ephemeral: true, components: [component], }); }, } as SlashCommand;
30.904762
81
0.653313
b8a542f78ad85be8b4d15d5c21222329fb3bc72c
280
h
C
VariousLayer/ViewController.h
tardyRain/VariousLayer
40c940bb9d0c1c0b9a63474fc23b9ace2e0f287f
[ "MIT" ]
null
null
null
VariousLayer/ViewController.h
tardyRain/VariousLayer
40c940bb9d0c1c0b9a63474fc23b9ace2e0f287f
[ "MIT" ]
null
null
null
VariousLayer/ViewController.h
tardyRain/VariousLayer
40c940bb9d0c1c0b9a63474fc23b9ace2e0f287f
[ "MIT" ]
null
null
null
// // ViewController.h // VariousLayer // // Created by xinyu.wu on 2016/10/13. // Copyright © 2016年 desire.wu. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property (weak, nonatomic) IBOutlet UITableView *tableView; @end
16.470588
60
0.714286
f466b2067772a8b6eade944d49ceea8b5e89753a
727
swift
Swift
Tests/SendGridTests/API/V3/Mail/Send/Settings/Tracking/OpenTrackingTests.swift
rpinz/sendgrid-swift
31cd32adfa50c53c681a4b012d9cc407b75f9419
[ "MIT" ]
null
null
null
Tests/SendGridTests/API/V3/Mail/Send/Settings/Tracking/OpenTrackingTests.swift
rpinz/sendgrid-swift
31cd32adfa50c53c681a4b012d9cc407b75f9419
[ "MIT" ]
null
null
null
Tests/SendGridTests/API/V3/Mail/Send/Settings/Tracking/OpenTrackingTests.swift
rpinz/sendgrid-swift
31cd32adfa50c53c681a4b012d9cc407b75f9419
[ "MIT" ]
null
null
null
// // OpenTrackingTests.swift // SendGridTests // // Created by Scott Kawai on 9/16/17. // import XCTest @testable import SendGrid class OpenTrackingTests: XCTestCase, EncodingTester { typealias EncodableObject = OpenTracking func testEncoding() { let onSettingMin = OpenTracking(location: .bottom) XCTAssertEncodedObject(onSettingMin, equals: ["enable": true]) let onSettingMax = OpenTracking(location: .at(tag: "%open%")) XCTAssertEncodedObject(onSettingMax, equals: ["enable": true, "substitution_tag": "%open%"]) let offSetting = OpenTracking(location: .off) XCTAssertEncodedObject(offSetting, equals: ["enable": false]) } }
26.925926
100
0.664374
27358195032b2c3d113c1cfecb96f0bbafdba4fb
2,402
rb
Ruby
app/controllers/catarse_moip/payment/moip_controller.rb
adrianob/catarse_moip
56d92be3ab2a2c4ccf8ade8383de642e7de2b0a6
[ "MIT" ]
1
2015-08-05T23:01:43.000Z
2015-08-05T23:01:43.000Z
app/controllers/catarse_moip/payment/moip_controller.rb
adrianob/catarse_moip
56d92be3ab2a2c4ccf8ade8383de642e7de2b0a6
[ "MIT" ]
null
null
null
app/controllers/catarse_moip/payment/moip_controller.rb
adrianob/catarse_moip
56d92be3ab2a2c4ccf8ade8383de642e7de2b0a6
[ "MIT" ]
null
null
null
require 'moip_transparente' module CatarseMoip::Payment class MoipController < ApplicationController skip_before_filter :force_http layout :false def js @moip = ::MoipTransparente::Checkout.new render :text => open(@moip.get_javascript_url).set_encoding('ISO-8859-1').read.encode('utf-8') end def review @moip = ::MoipTransparente::Checkout.new end def moip_response @backer = current_user.backs.find params[:id] @backer.payment_notifications.create(extra_data: params[:response]) if not @backer.confirmed and params[:response]['Status'] == 'Autorizado' @backer.confirm! end unless params[:response]['StatusPagamento'] == 'Falha' @backer.update_attributes({ payment_id: params[:response]['CodigoMoIP'], payment_service_fee: params[:response]['TaxaMoIP'].to_f }) end render nothing: true, status: 200 end def get_moip_token @backer = current_user.backs.not_confirmed.find params[:id] ::MoipTransparente::Config.test = (::Configuration[:moip_test] == 'true') ::MoipTransparente::Config.access_token = ::Configuration[:moip_token] ::MoipTransparente::Config.access_key = ::Configuration[:moip_key] @moip = ::MoipTransparente::Checkout.new invoice = { razao: "Apoio para o projeto '#{@backer.project.name}'", id: @backer.key, total: @backer.value.to_s, acrescimo: '0.00', desconto: '0.00', cliente: { id: @backer.user.id, nome: @backer.payer_name, email: @backer.payer_email, logradouro: "#{@backer.address_street}, #{@backer.address_number}", complemento: @backer.address_complement, bairro: @backer.address_neighbourhood, cidade: @backer.address_city, uf: @backer.address_state, cep: @backer.address_zip_code, telefone: @backer.address_phone_number } } response = @moip.get_token(invoice) session[:thank_you_id] = @backer.project.id if response and response[:token] @backer.update_column :payment_token, response[:token] end render json: { get_token_response: response, moip: @moip, widget_tag: @moip.widget_tag('checkoutSuccessful', 'checkoutFailure'), javascript_tag: @moip.javascript_tag } end end end
31.605263
173
0.645712
54b6c453daa1eacf2b957f940fc72eae181fcc64
3,109
css
CSS
packages/main/src/themes/base/CheckBox-parameters.css
eshpak/ui5-webcomponents
0fbe1e1a895dcf94ba9c2a11e0f52c57fc79d2e3
[ "MIT", "BSD-3-Clause-Clear", "Apache-2.0", "BSD-3-Clause" ]
1
2019-11-05T18:30:03.000Z
2019-11-05T18:30:03.000Z
packages/main/src/themes/base/CheckBox-parameters.css
eshpak/ui5-webcomponents
0fbe1e1a895dcf94ba9c2a11e0f52c57fc79d2e3
[ "MIT", "BSD-3-Clause-Clear", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
packages/main/src/themes/base/CheckBox-parameters.css
eshpak/ui5-webcomponents
0fbe1e1a895dcf94ba9c2a11e0f52c57fc79d2e3
[ "MIT", "BSD-3-Clause-Clear", "Apache-2.0", "BSD-3-Clause" ]
1
2020-06-29T19:14:25.000Z
2020-06-29T19:14:25.000Z
:root { --_ui5_checkbox_wrapper_padding: .8125rem; --_ui5_checkbox_width_height: 3rem; --_ui5_checkbox_box_shadow: none; --_ui5_checkbox_transition: unset; --_ui5_checkbox_focus_border: none; --_ui5_checkbox_border_radius: 0; --_ui5_checkbox_hover_background: var(--sapField_Hover_Background); --_ui5_checkbox_active_background: var(--sapField_Hover_Background); --_ui5_checkbox_checkmark_warning_color: var(--sapField_TextColor); --_ui5_checkbox_checkmark_color: var(--sapSelectedColor); --_ui5_checkbox_focus_position: .6875rem; --_ui5_checkbox_focus_outline: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor); --_ui5_checkbox_focus_border_radius: 0; --_ui5_checkbox_outer_hover_background: transparent; --_ui5_checkbox_inner_width_height: 1.375rem; --_ui5_checkbox_inner_border: solid .125rem var(--sapField_BorderColor); --_ui5_checkbox_inner_hover_border_color: var(--sapField_HoverBorderColor); --_ui5_checkbox_inner_hover_checked_border_color: var(--sapField_HoverBorderColor); --_ui5_checkbox_inner_selected_border_color: var(--sapField_BorderColor); --_ui5_checkbox_inner_disabled_border_color: var(--sapField_BorderColor); --_ui5_checkbox_inner_active_border_color: var(--sapField_BorderColor); --_ui5_checkbox_inner_border_radius: 0; --_ui5_checkbox_inner_error_border: 0.125rem solid var(--sapField_InvalidColor); --_ui5_checkbox_inner_warning_border: 0.125rem solid var(--sapField_WarningColor); --_ui5_checkbox_inner_information_border: 0.125rem solid var(--sapField_InformationColor); --_ui5_checkbox_inner_information_box_shadow: none; --_ui5_checkbox_inner_warning_box_shadow: none; --_ui5_checkbox_inner_error_box_shadow: none; --_ui5_checkbox_inner_success_box_shadow: none; --_ui5_checkbox_inner_default_box_shadow: none; --_ui5_checkbox_inner_warning_background_hover: var(--sapField_WarningBackground); --_ui5_checkbox_inner_error_background_hover: var(--sapField_InvalidBackground); --_ui5_checkbox_inner_success_background_hover: var(--sapField_SuccessBackground); --_ui5_checkbox_inner_information_background_hover: var(--sapField_InformationBackground); --_ui5_checkbox_inner_success_border: var(--sapField_BorderWidth) solid var(--sapField_SuccessColor); --_ui5_checkbox_inner_readonly_border: 0.125rem solid var(--sapField_ReadOnly_BorderColor); --_ui5_checkbox_inner_background: var(--sapField_Background); --_ui5_checkbox_wrapped_focus_padding: .375rem; --_ui5_checkbox_wrapped_content_margin_top: .125rem; --_ui5_checkbox_wrapped_focus_left_top_bottom_position: .5625rem; --_ui5_checkbox_compact_wrapper_padding: .5rem; --_ui5_checkbox_compact_width_height: 2rem; --_ui5_checkbox_compact_inner_size: 1rem; --_ui5_checkbox_compact_focus_position: .375rem; --_ui5_checkbox_compact_wrapped_label_margin_top: -1px; --_ui5_checkbox_label_color: var(--sapContent_LabelColor); --_ui5_checkbox_label_offset_left: var(--_ui5_checkbox_wrapper_padding); --_ui5_checkbox_label_offset_right: 0; --_ui5_checkbox_disabled_label_color: var(--sapContent_LabelColor); --_ui5_checkbox_default_focus_border: none; --_ui5_checkbox_focus_outline_display: block; }
58.660377
118
0.856224
df26796c2f58f4f9c92fba2c019c60b41b447f20
158
cs
C#
softaware.Xaml.Converters.Shared/Mapping.cs
softawaregmbh/library-xaml-converters
37b2337ad52ca3f4a8b440ac0f9781adb908f018
[ "MIT" ]
null
null
null
softaware.Xaml.Converters.Shared/Mapping.cs
softawaregmbh/library-xaml-converters
37b2337ad52ca3f4a8b440ac0f9781adb908f018
[ "MIT" ]
null
null
null
softaware.Xaml.Converters.Shared/Mapping.cs
softawaregmbh/library-xaml-converters
37b2337ad52ca3f4a8b440ac0f9781adb908f018
[ "MIT" ]
null
null
null
namespace softaware.Xaml.Converters { public class Mapping { public object From { get; set; } public object To { get; set; } } }
17.555556
40
0.582278
eb1ee9155d7a10170488375880bfcf75dbb3b8c8
372
css
CSS
docs/assets/docs.css
alexanevsky/formstyler
431a8ccd626743ffb13379b41062bfa968836255
[ "MIT" ]
null
null
null
docs/assets/docs.css
alexanevsky/formstyler
431a8ccd626743ffb13379b41062bfa968836255
[ "MIT" ]
null
null
null
docs/assets/docs.css
alexanevsky/formstyler
431a8ccd626743ffb13379b41062bfa968836255
[ "MIT" ]
null
null
null
.form-group:last-child { margin-bottom: 0; } .text-small { font-size: .9rem; } .w-100 { width: 100%; } .w-90 { width: 90%; } .w-80 { width: 80%; } .w-70 { width: 70%; } .w-60 { width: 60%; } .w-50 { width: 50%; } .w-40 { width: 40%; } .w-30 { width: 30%; } .w-20 { width: 20%; } .w-10 { width: 10%; } .w-0 { width: 0%; }
9.538462
24
0.435484
b730dcff2ff7484085913f986c78fea214a04bfe
7,208
cs
C#
UnitTests/Technologies/TestTechnologyUnlock.cs
UnGaucho/StarDrive
d51409bf460d2d26e95a1b3869a628bc1d166e74
[ "MIT" ]
null
null
null
UnitTests/Technologies/TestTechnologyUnlock.cs
UnGaucho/StarDrive
d51409bf460d2d26e95a1b3869a628bc1d166e74
[ "MIT" ]
null
null
null
UnitTests/Technologies/TestTechnologyUnlock.cs
UnGaucho/StarDrive
d51409bf460d2d26e95a1b3869a628bc1d166e74
[ "MIT" ]
null
null
null
using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using Ship_Game; namespace UnitTests.Technologies { [TestClass] public class TestTechnologyUnlock : StarDriveTest { Empire MajorEnemy; public TestTechnologyUnlock() { LoadTechContent(); CreateGameInstance(); CreateTestEnv(out _); } void CreateTestEnv(out Empire empire) { CreateUniverseAndPlayerEmpire(out empire); MajorEnemy = EmpireManager.CreateEmpireFromEmpireData(ResourceManager.MajorRaces[1]); Universe.aw = new AutomationWindow(Universe); } [TestMethod] public void TechUnlock() { TechEntry normalTech = Player.GetTechEntry("FrigateConstruction"); Player.UnlockTech("FrigateConstruction", TechUnlockType.Normal); Assert.IsTrue(normalTech.Unlocked, "Unlocking tech via normal process failed"); TechEntry eventTech = Player.GetTechEntry("Ancient Repulsor"); Player.UnlockTech("Ancient Repulsor", TechUnlockType.Event); Assert.IsTrue(eventTech.Unlocked, "Unlocking tech via spy event failed"); TechEntry diplomacyTech = Player.GetTechEntry("Cruisers"); Player.UnlockTech("Cruisers", TechUnlockType.Diplomacy); Assert.IsTrue(diplomacyTech.Unlocked, "Unlocking tech via diplomacy process failed"); TechEntry spyTech = Player.GetTechEntry("IndustrialFoundations"); //spy tech currently has a random chance to unlock. for (int x =0; x< 100; x++) { Player.UnlockTech("IndustrialFoundations", TechUnlockType.Spy, MajorEnemy); if (spyTech.Unlocked) break; } Assert.IsTrue(spyTech.Unlocked,"Unlocking tech via spy process failed"); } TechEntry UnlockTech(Empire empire, string UID) { TechEntry tech = empire.GetTechEntry(UID); empire.UnlockTech(tech.UID, TechUnlockType.Normal); return tech; } [TestMethod] public void HullUnlock() { TechEntry hullTech = UnlockTech(Player, "FrigateConstruction"); int playerHulls = 0; foreach (string item in hullTech.GetUnLockableHulls(Player)) { playerHulls++; Assert.IsTrue(Player.IsHullUnlocked(item), $"Standard hull tech not unlocked: {item}"); } //Unlock hulls from other empire. Player.UnlockTech("FrigateConstruction", TechUnlockType.Diplomacy, MajorEnemy); int foreignHulls = 0; foreach (string item in hullTech.GetUnLockableHulls(Player)) { foreignHulls++; Assert.IsTrue(Player.IsHullUnlocked(item), $"Foreign hull not unlocked{item}"); } Assert.IsTrue(foreignHulls > playerHulls, "Failed to unlock all expected hulls"); } [TestMethod] public void ModuleUnlock() { TechEntry moduleTech = UnlockTech(Player, "FrigateConstruction"); foreach (Technology.UnlockedMod item in moduleTech.GetUnlockableModules(Player)) Assert.IsTrue(Player.IsModuleUnlocked(item.ModuleUID) , $"Expected Module not Unlocked: {item.ModuleUID}"); } [TestMethod] public void BuildingUnlock() { TechEntry buildingTech = UnlockTech(Player, "IndustrialFoundations"); foreach (var item in buildingTech.Tech.BuildingsUnlocked) Assert.IsTrue(Player.IsBuildingUnlocked(item.Name) ,$"Expected building not unlocked: {item.Name}"); } [TestMethod] public void BonusUnlock() { TechEntry bonusTech = UnlockTech(Player, "Ace Training"); foreach (var item in bonusTech.Tech.BonusUnlocked) { Assert.IsTrue(Player.data.BonusFighterLevels > 0, $"Bonus not unlocked: {item.Name}"); } } [TestMethod] public void AddResearchToTech() { TechEntry techProgress = Player.GetTechEntry("Ace Training"); float cost = techProgress.TechCost; float leftOver; bool unlocked; leftOver = techProgress.AddToProgress(5, Player, out unlocked); Assert.IsTrue(techProgress.Progress.AlmostEqual(5f)); Assert.IsTrue(leftOver.AlmostZero()); Assert.IsFalse(unlocked, $"Tech should not have beeen unlocked: {techProgress.UID}"); leftOver = techProgress.AddToProgress(cost, Player, out unlocked); Assert.IsTrue(leftOver.AlmostEqual(5)); Assert.IsTrue(unlocked); } [TestMethod] public void BonusStacking() { TechEntry bonus = UnlockTech(Player, "Ace Training"); foreach (var item in bonus.Tech.BonusUnlocked) { Assert.IsTrue(Player.data.BonusFighterLevels > 0, $"Bonus not unlocked {item.Name}"); Assert.That.Equal(0, Player.data.BonusFighterLevels - item.Bonus); } TechEntry bonusStack = UnlockTech(Player, "Ace Training"); foreach (var item in bonusStack.Tech.BonusUnlocked) { Assert.IsTrue(Player.data.BonusFighterLevels > 0, "Bonus not unlocked"); Assert.That.Equal(0, Player.data.BonusFighterLevels - item.Bonus); } } [TestMethod] public void UnlockByConquest() { TechEntry[] playerTechs = Player.TechEntries.Filter(tech => tech.Unlocked); UnlockTech(MajorEnemy, "Centralized Banking"); UnlockTech(MajorEnemy, "Disintegrator Array"); TechEntry[] enemyTechs = MajorEnemy.TechEntries.Filter(tech => tech.Unlocked); Player.AssimilateTech(MajorEnemy); TechEntry[] playerTechs2 = Player.TechEntries.Filter(tech => tech.Unlocked).Sorted(e => e.UID); TechEntry[] expected = playerTechs.Union(enemyTechs).Sorted(e => e.UID); TechEntry[] newUnlocks = playerTechs2.Except(playerTechs).Sorted(e => e.UID); Assert.AreEqual(2, newUnlocks.Length); Assert.AreEqual("Centralized Banking", newUnlocks[0].UID); Assert.AreEqual("Disintegrator Array", newUnlocks[1].UID); Assert.AreEqual(MajorEnemy.data.ShipType, newUnlocks[0].ConqueredSource[0]); Assert.AreEqual(MajorEnemy.data.ShipType, newUnlocks[1].ConqueredSource[0]); Assert.AreEqual(MajorEnemy.data.ShipType, newUnlocks[0].WasAcquiredFrom[0]); Assert.AreEqual(MajorEnemy.data.ShipType, newUnlocks[1].WasAcquiredFrom[0]); Assert.That.Equal(expected, playerTechs2, "Assimilated techs should be equal to conquered empire techs"); } } }
42.650888
118
0.599195
2d0dabece25d99fa1195a889bdf90a8474a9454e
6,010
css
CSS
widget_team_block/static/widget_team_block/admin.css
chr0nu5/core
aa80ccb3ae30dd12a5c848079d1184a830fcb83b
[ "MIT" ]
null
null
null
widget_team_block/static/widget_team_block/admin.css
chr0nu5/core
aa80ccb3ae30dd12a5c848079d1184a830fcb83b
[ "MIT" ]
null
null
null
widget_team_block/static/widget_team_block/admin.css
chr0nu5/core
aa80ccb3ae30dd12a5c848079d1184a830fcb83b
[ "MIT" ]
null
null
null
/* ============================================= * Team Member * * @type WebRock Object * ============================================= */ .team-member { border-bottom: 5px solid transparent; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; /* Details ************************/ -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease; -webkit-transition: all 0.5s ease; -ms-transition: all 0.5s ease; transition: all 0.5s ease; } .team-member:hover .team-member-name { color: #337ab7; } .team-member .team-member-img-wrapper { text-align: center; } .team-member .team-member-img-wrapper img { margin: 0px auto; } .team-member.team-member-2 .team-member-name { margin: 0; } .team-member.team-member-2 .team-member-img-wrapper { padding: 20px; } .team-member.team-member-2 .team-member-img-wrapper img { -moz-border-radius: 100%; -webkit-border-radius: 100%; border-radius: 100%; } .team-member.team-member-3 .team-member-name { margin: 0; } .team-member.team-member-3 .team-member-img-wrapper { padding: 35px 35px 0; max-width: 300px; margin: 0 auto -80px; text-align: center; } .team-member.team-member-3 .team-member-img-wrapper img { margin: 0 auto; -moz-border-radius: 100%; -webkit-border-radius: 100%; border-radius: 100%; } .team-member.team-member-3 .team-member-details { padding-top: 100px; } .team-member.team-member-3.team-member-transparent { background: transparent; } .team-member.team-member-3.team-member-transparent:hover { background: transparent; } .team-member.team-member-3.team-member-transparent .team-member-details { background: transparent; } .team-member.team-member-3.team-member-transparent .team-member-details:hover { background: rgba(255, 255, 255, 0.5); } .team-member.team-member-3.team-member-default { background: transparent; } .team-member.team-member-3.team-member-default .team-member-details { background: #fff; } .team-member.team-member-3.team-member-default .team-member-details:hover { background: #fff; } .team-member.team-member-3.team-member-inverse { background: transparent; } .team-member.team-member-3.team-member-inverse .team-member-details { background: #333333; } .team-member.team-member-3.team-member-inverse .team-member-details:hover { background: #333333; } .team-member .team-member-details { padding: 10px; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease; -webkit-transition: all 0.5s ease; -ms-transition: all 0.5s ease; transition: all 0.5s ease; /* Name ************************/ /* Profession ************************/ /* Description ************************/ } .team-member .team-member-details .team-member-name { margin-bottom: 0; font-size: 18px; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease; -webkit-transition: all 0.5s ease; -ms-transition: all 0.5s ease; transition: all 0.5s ease; } .team-member .team-member-details .team-member-profession { font-size: 14px; color: #777777; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease; -webkit-transition: all 0.5s ease; -ms-transition: all 0.5s ease; transition: all 0.5s ease; } .team-member .team-member-details .team-member-description { -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease; -webkit-transition: all 0.5s ease; -ms-transition: all 0.5s ease; transition: all 0.5s ease; } .team-member:hover .team-member-name { color: #337ab7; } .team-member.team-member-transparent { background: transparent; } .team-member.team-member-transparent:hover .team-member-name { color: #337ab7; } .team-member.team-member-transparent:hover { background: rgba(255, 255, 255, 0.5); border-bottom: 5px solid #337ab7; } .team-member.team-member-default { background: #fff; } .team-member.team-member-default:hover .team-member-name { color: #337ab7; } .team-member.team-member-default .team-member-name { color: #333333; } .team-member.team-member-default .team-member-profession { color: #777777; } .team-member.team-member-default .team-member-description { color: #555555; } .team-member.team-member-default:hover { border-bottom: 5px solid #337ab7; } .team-member.team-member-inverse { background: #333333; } .team-member.team-member-inverse:hover .team-member-name { color: #337ab7; } .team-member.team-member-inverse .team-member-name { color: #fff; } .team-member.team-member-inverse .team-member-profession { color: #555555; } .team-member.team-member-inverse .team-member-description { color: #777777; } .team-member.team-member-inverse:hover { border-bottom: 5px solid #337ab7; } @media screen and (max-width: 1199px) and (min-width: 992px) { .about-single { padding-left: 20px; } } /* Social ************************/ .team-member-social { margin-top: 10px; } .team-member-social li a { -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; width: 30px; height: 30px; line-height: 30px; text-align: center; display: block; margin-bottom: 10px; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease; -webkit-transition: all 0.5s ease; -ms-transition: all 0.5s ease; transition: all 0.5s ease; } .team-member-social li a:hover { color: #333333; background: #337ab7; } .team-member-social li a i { line-height: 30px; } /*# sourceMappingURL=teammember.css.map */
36.424242
86
0.605657
a37c333780c2fa6553bce9edd490220de5066e06
605
ts
TypeScript
src/modules/quizGame/usersData/userData.service.ts
fabio7maia/x-admin-microservices
f7e203d9319bc051b8723b628cb879a7be4a812a
[ "MIT" ]
null
null
null
src/modules/quizGame/usersData/userData.service.ts
fabio7maia/x-admin-microservices
f7e203d9319bc051b8723b628cb879a7be4a812a
[ "MIT" ]
null
null
null
src/modules/quizGame/usersData/userData.service.ts
fabio7maia/x-admin-microservices
f7e203d9319bc051b8723b628cb879a7be4a812a
[ "MIT" ]
null
null
null
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { QuizUserData } from './userData.entity'; import { BaseService } from '../../framework/base'; @Injectable() export class QuizzesUsersDataService extends BaseService<QuizUserData> { constructor( @InjectRepository(QuizUserData) private readonly quizUserDataRepository: Repository<QuizUserData>, ) { super(quizUserDataRepository); } async getUserDataByUserId(userId: string) { return this.quizUserDataRepository.findOne({ userId }); } }
30.25
72
0.740496
df74e9b11f7f1be756c84f215b2a8831bd53466b
633
cs
C#
src/Bet.Extensions.AzureStorage/Options/StorageFileProviderOptions.cs
mlnethub/Bet.AspNetCore
d257189fa3332483d36e89dad0915fdcfe1fb3dd
[ "MIT" ]
2
2020-07-22T18:26:29.000Z
2021-09-22T08:14:31.000Z
src/Bet.Extensions.AzureStorage/Options/StorageFileProviderOptions.cs
mlnethub/Bet.AspNetCore
d257189fa3332483d36e89dad0915fdcfe1fb3dd
[ "MIT" ]
1
2021-11-09T01:27:16.000Z
2021-11-09T01:48:02.000Z
src/Bet.Extensions.AzureStorage/Options/StorageFileProviderOptions.cs
mlnethub/Bet.AspNetCore
d257189fa3332483d36e89dad0915fdcfe1fb3dd
[ "MIT" ]
null
null
null
namespace Bet.Extensions.AzureStorage.Options { public class StorageFileProviderOptions : StorageOptionsBase { /// <summary> /// Http Request path to be served from Azure Storage Account. /// </summary> public string RequestPath { get; set; } = string.Empty; /// <summary> /// Azure Storage Container name. /// </summary> public string ContainerName { get; set; } = string.Empty; /// <summary> /// Enable Directory browsing for the Azure Storage files. /// </summary> public bool EnableDirectoryBrowsing { get; set; } } }
30.142857
70
0.597156
9e15e6cf41e1a39bdb255f89805518c668085713
4,177
cs
C#
BookShop.Notifications.Manager/Providers/MessagesProvider.cs
RIChernov2/BookShop
56d32131ceb6e5aa87e414d9dd38a0222bc5d232
[ "MIT" ]
null
null
null
BookShop.Notifications.Manager/Providers/MessagesProvider.cs
RIChernov2/BookShop
56d32131ceb6e5aa87e414d9dd38a0222bc5d232
[ "MIT" ]
null
null
null
BookShop.Notifications.Manager/Providers/MessagesProvider.cs
RIChernov2/BookShop
56d32131ceb6e5aa87e414d9dd38a0222bc5d232
[ "MIT" ]
null
null
null
using System; using System.Collections.Generic; using System.Text.Json; using System.Threading.Tasks; using BookShop.Notifications.Manager.Managers.Interfaces; using BookShop.Notifications.Manager.Models; using RabbitMQ.Client; namespace BookShop.Notifications.Manager.Providers { public class MessagesProvider : ProviderBase { private readonly IStorageManagerFactory<IMessagesStorageManager> _factory; public MessagesProvider(IConnection connection, string queueName, IStorageManagerFactory<IMessagesStorageManager> factory) : base(connection, queueName) { _factory = factory; } public override async Task<string> GetResponseAsync(string commandName, string message) { switch (commandName) { case "get-all": return await GetAllAsync(); case "get-by-id": var id = JsonSerializer.Deserialize<long>(message); return await GetByIdAsync(id); case "get-by-user-id": var userId = JsonSerializer.Deserialize<long>(message); return await GetByUserIdAsync(userId); case "get-by-user-and-settings": var userIdViaSettings = JsonSerializer.Deserialize<long>(message); return await GetByUserAndSettingsAsync(userIdViaSettings); case "get-by-ids": var ids = JsonSerializer.Deserialize<IEnumerable<long>>(message); return await GetByIdsAsync(ids); case "create": var newItem = JsonSerializer.Deserialize<Message>(message); return await CreateAsync(newItem); case "update": var updatedItem = JsonSerializer.Deserialize<Message>(message); return await UpdateAsync(updatedItem); case "delete": var deleteId = JsonSerializer.Deserialize<long>(message); return await DeleteAsync(deleteId); } throw new ArgumentException("invalid command name"); } private async Task<string> GetAllAsync() { using var items = _factory.Create(); var resultList = await items.GetAlldAsync(); return JsonSerializer.Serialize(resultList); } private async Task<string> GetByIdAsync(long id) { using var items = _factory.Create(); var item = await items.GetByIdAsync(id); return JsonSerializer.Serialize(item); } private async Task<string> GetByUserIdAsync(long id) { using var items = _factory.Create(); var item = await items.GetByUserIdAsync(id); return JsonSerializer.Serialize(item); } private async Task<string> GetByUserAndSettingsAsync(long id) { using var items = _factory.Create(); var item = await items.GetByUserAndSettingsAsync(id); return JsonSerializer.Serialize(item); } private async Task<string> GetByIdsAsync(IEnumerable<long> ids) { using var items = _factory.Create(); var resultList = await items.GetByIdsAsync(ids); return JsonSerializer.Serialize(resultList); } private async Task<string> CreateAsync(Message entity) { using var items = _factory.Create(); var rowsAffected = await items.CreateAsync(entity); return JsonSerializer.Serialize(rowsAffected); } private async Task<string> UpdateAsync(Message entity) { using var items = _factory.Create(); var rowsAffected = await items.UpdateAsync(entity); return JsonSerializer.Serialize(rowsAffected); } private async Task<string> DeleteAsync(long id) { using var items = _factory.Create(); var rowsAffected = await items.DeleteAsync(id); return JsonSerializer.Serialize(rowsAffected); } } }
39.40566
130
0.599234
02773adfef90ebe52be74848f2315ef64a8c0346
1,822
cpp
C++
algorithms/recursion/twisted_tower_of_hanoi.cpp
adisakshya/dsa
5b40eb339b19cdec95dcfc645516d725f0cb6c74
[ "MIT" ]
null
null
null
algorithms/recursion/twisted_tower_of_hanoi.cpp
adisakshya/dsa
5b40eb339b19cdec95dcfc645516d725f0cb6c74
[ "MIT" ]
null
null
null
algorithms/recursion/twisted_tower_of_hanoi.cpp
adisakshya/dsa
5b40eb339b19cdec95dcfc645516d725f0cb6c74
[ "MIT" ]
null
null
null
/** * Twisted Tower of Hanoi (Recursive) * * Twisted Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. * The objective of the puzzle is to move the entire stack to another rod, obeying the following simple rules: * 1) Only one disk can be moved at a time. * 2) Each move consists of taking the upper disk from one of the stacks and placing it on top of another stack * i.e. a disk can only be moved if it is the uppermost disk on a stack. * 3) No disk may be placed on top of a smaller disk. * 4) No disk can be moved directly from first rod to last rod * * Complexity * Time: * Worst Case: 3^N * Space: O(N) * */ #include <bits/stdc++.h> using namespace std; // Function to solve Tower of Hanoi void twisted_tower_of_hanoi(int disks, char from_rod, char to_rod, char aux_rod) { // Base condition if(disks == 1) { cout << "Disk 1 moved from " << from_rod << " to " << aux_rod << endl; cout << "Disk 1 moved from " << aux_rod << " to " << to_rod << endl; return; } // shift n-1 disks from from_rod to to_rod twisted_tower_of_hanoi(disks - 1, from_rod, to_rod, aux_rod); cout << "Disk " << disks << " moved from " << from_rod << " to " << aux_rod << endl; // shift n-1 disks from to_rod to from_rod twisted_tower_of_hanoi(disks - 1, to_rod, from_rod, aux_rod); cout << "Disk " << disks << " moved from " << aux_rod << " to " << to_rod << endl; // shift n-1 from from_rod to to_rod twisted_tower_of_hanoi(disks - 1, from_rod, to_rod, aux_rod); } int main() { int number_of_disks = 2; // A, B and C are name of rods twisted_tower_of_hanoi(number_of_disks, 'A', 'C', 'B'); return 0; }
35.72549
117
0.608672
40990ab2a57b7dfeb0748fdd1cfc6935144faabe
2,952
rb
Ruby
spec/info_70350640863_spec.rb
clbustos/elsevier_api
ba8ca962f5bd48c1df670558980550a954a2ba2a
[ "BSD-3-Clause" ]
null
null
null
spec/info_70350640863_spec.rb
clbustos/elsevier_api
ba8ca962f5bd48c1df670558980550a954a2ba2a
[ "BSD-3-Clause" ]
1
2019-03-04T05:37:12.000Z
2019-03-04T16:24:02.000Z
spec/info_70350640863_spec.rb
clbustos/elsevier_api
ba8ca962f5bd48c1df670558980550a954a2ba2a
[ "BSD-3-Clause" ]
1
2019-03-03T13:21:46.000Z
2019-03-03T13:21:46.000Z
require_relative 'spec_helper' describe "ARR parser of record 70350640863" do before { @xml=load_arr("SCOPUS_ID_70350640863.xml") @first_afil="60016818" @empty_afil_name="Orientadora Escolar" @empty_afil_id="NS:381addbba7171767a4575a9d9a712ef2" } it "should include correct article information" do expect(@xml.title).to eq("Personal self-regulation and perceived maladjusted school behaviors") expect(@xml.type_code).to eq("j") expect(@xml.type).to eq(:journal) expect(@xml.journal).to eq("Psicothema") expect(@xml.volume).to eq("21") expect(@xml.book_title).to be_nil end it "should include correct authors" do expect(@xml.authors).to be_a Hash expect(@xml.authors.length).to eq(3) expect(@xml.authors.keys).to eq(['35112634200','57189018111','55942293500']) expect(@xml.authors['35112634200'][:affiliation]).to eq(@first_afil) expect(@xml.authors['57189018111'][:affiliation]).to eq(@first_afil) expect(@xml.authors['55942293500'][:affiliation]).to eq(@empty_afil_id) end it "should include correct author groups" do # noinspection RubyResolve expect(@xml).to respond_to :author_groups expect(@xml.author_groups).to be_a Array expect(@xml.author_groups.length).to eq(2) expect(@xml.author_groups[0]).to eq({ :authors => ['35112634200','57189018111'], :affiliation => '60016818' }) expect(@xml.author_groups[1]).to eq({ :authors => ['55942293500'], :affiliation =>@empty_afil_id }) end it "should include correct affiliation " do expect(@xml).to respond_to :affiliations expect(@xml.affiliations).to be_a Hash expect(@xml.affiliations.length).to eq(2) expect(@xml.affiliations[@first_afil]).to eq({ :id => @first_afil, :name => "Universidad de Almeria", :city => "Almeria", :country => "Spain", :type=>:scopus }) expect(@xml.affiliations[@empty_afil_id]).to eq({ :id => @empty_afil_id, :name => @empty_afil_name, :city => "", :country => "NO_COUNTRY", :type=>:non_scopus }) end end
44.059701
100
0.477304
15c3cdf33cb9f1f0f7f87a62b29b7acc9b0e2b1a
1,465
css
CSS
Taller2/styles.css
DALO-eng/Curso-Practico-JS
55f2228220b23120f3a9d485aa037888329f7026
[ "MIT" ]
null
null
null
Taller2/styles.css
DALO-eng/Curso-Practico-JS
55f2228220b23120f3a9d485aa037888329f7026
[ "MIT" ]
null
null
null
Taller2/styles.css
DALO-eng/Curso-Practico-JS
55f2228220b23120f3a9d485aa037888329f7026
[ "MIT" ]
null
null
null
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap'); :root{ --black: #222831; --gray: #393E46; --blue: #00ADB5; --white: #EEEEEE; } *{ margin: 0; padding: 0; box-sizing: border-box; } body{ background-color: var(--black); width: 100%; height: 100vh; display: flex; flex-direction: column; justify-content:center; align-items: center; font-family: 'Montserrat', sans-serif; font-size: 1.5rem; } header h1{ margin: 1rem; text-align: center; } main{ max-width: 90%; } main form{ display: flex; flex-direction: column; align-items: center; background-color: var(--gray); border-radius: 1rem; } main form input{ width: 90%; font-size: 1.5rem; padding: .2rem; margin: 1rem; border-radius: .5rem; border: none; } .mycupon{ text-align: center; font-size: 1.5rem; padding: .2rem; margin: 1rem; font-weight: 700; } .mycupon select{ font-size: 1.5rem; border-radius: .5rem; border: none; } main form button{ font-size: 1.5rem; padding: .2rem; margin: 1rem; width: 90%; border-radius: .5rem; border: none; background-color: var(--blue); color: var(--black); font-weight: 700; cursor: pointer; } .myResult{ margin: 2rem; color: var(--white); text-align: center; } @media (max-width:425px){ h1{ font-size: 1.5rem; } }
18.3125
93
0.591809
7f17cc15f564dc835ea38a7b85fb5aa5c65f708e
938
cs
C#
Xy.SuperStore/Xy.SuperStore.Data.Entities/Receipt.cs
jennyxiaqc/SuperStore
4a177879eafb1ab3670c45e8a8afbd9b827d4063
[ "MIT" ]
null
null
null
Xy.SuperStore/Xy.SuperStore.Data.Entities/Receipt.cs
jennyxiaqc/SuperStore
4a177879eafb1ab3670c45e8a8afbd9b827d4063
[ "MIT" ]
null
null
null
Xy.SuperStore/Xy.SuperStore.Data.Entities/Receipt.cs
jennyxiaqc/SuperStore
4a177879eafb1ab3670c45e8a8afbd9b827d4063
[ "MIT" ]
null
null
null
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Xy.SuperStore.Data.Entities { public class Receipt { public int ReceiptId { get; set; } public List<ShoppingItem> ReceiptItems { get; set; } public int TotalQuantity { get; set; } public decimal TotalAmount { get; set; } public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("Re"); sb.Append($"ReceiptId:{ReceiptId}\n"); sb.Append("=======================\n"); foreach (var shoppingItem in ReceiptItems) { sb.Append($"{shoppingItem.ToString()}\n"); } sb.Append($"Total quantity:{TotalQuantity}\n"); sb.Append($"Total amount: ${TotalAmount}\n"); return sb.ToString(); } } }
29.3125
60
0.554371
ff979e3ca1a0ade1fc0a6f1b80d0926f0f9c61ff
3,084
py
Python
tests/test_x7zipfile.py
UuuNyaa/x7zipfile
5701758d39878a23bd0eae9a64cfabf7d1504c15
[ "BSD-3-Clause" ]
null
null
null
tests/test_x7zipfile.py
UuuNyaa/x7zipfile
5701758d39878a23bd0eae9a64cfabf7d1504c15
[ "BSD-3-Clause" ]
null
null
null
tests/test_x7zipfile.py
UuuNyaa/x7zipfile
5701758d39878a23bd0eae9a64cfabf7d1504c15
[ "BSD-3-Clause" ]
1
2021-08-05T04:40:42.000Z
2021-08-05T04:40:42.000Z
# -*- coding: utf-8 -*- # Copyright 2021 UuuNyaa <[email protected]> # This file is part of x7zipfile. import glob import os import shutil import stat import tempfile import unittest from tests import x7zipfile from .archives import ARCHIVES, ARCHIVES_PATH class TestCase(unittest.TestCase): def test_archive_list(self): for archive_name, password, _, expected_infolist in ARCHIVES: with self.subTest(): with x7zipfile.x7ZipFile(os.path.join(ARCHIVES_PATH, archive_name), pwd=password) as zipfile: for actual_info, expected_info in zip(zipfile.infolist(), expected_infolist): actual_info.needs_password() actual_info.is_dir() self.assertEqual(actual_info, expected_info) def test_archive_extractall(self): for archive_name, password, error_message, expected_infolist in ARCHIVES: temp_dir = tempfile.mkdtemp() try: with self.subTest(f'{archive_name} on {temp_dir}'): expected_infos = {info.filename: info for info in expected_infolist} with x7zipfile.x7ZipFile(os.path.join(ARCHIVES_PATH, archive_name), pwd=password) as zipfile: if error_message: with self.assertRaisesRegex(x7zipfile.x7ZipExecError, error_message): zipfile.extractall(temp_dir) continue zipfile.extractall(temp_dir) for root, dirs, files in os.walk(temp_dir, followlinks=False): for name in files + dirs: actual_file = os.path.join(root, name) actual_member = os.path.relpath(actual_file, temp_dir) try: _ = zipfile.getinfo(actual_member) expected_info = expected_infos[actual_member] del expected_infos[actual_member] except x7zipfile.x7ZipNoEntry: expected_info = None actual_stat = os.lstat(actual_file) actual_mode = actual_stat.st_mode if stat.S_ISLNK(actual_mode): self.assertTrue(expected_info.is_symlink()) elif stat.S_ISDIR(actual_mode): if expected_info: self.assertTrue(expected_info.is_dir()) else: self.assertFalse(expected_info.is_dir()) self.assertEqual(actual_stat.st_size, expected_info.file_size, f'file_size mismatch: {actual_file}') self.assertEqual(len(expected_infos), 0) finally: shutil.rmtree(temp_dir)
45.352941
136
0.527237
fa7877aae48974b80d2d09d051de5f5d06ce8bc7
1,761
cpp
C++
src/astro/basic_astro/bodyShapeModel.cpp
kimonito98/tudat
c28f2a3e78b8492e2e054ad5e0d1f9ad785cd092
[ "BSD-3-Clause" ]
null
null
null
src/astro/basic_astro/bodyShapeModel.cpp
kimonito98/tudat
c28f2a3e78b8492e2e054ad5e0d1f9ad785cd092
[ "BSD-3-Clause" ]
null
null
null
src/astro/basic_astro/bodyShapeModel.cpp
kimonito98/tudat
c28f2a3e78b8492e2e054ad5e0d1f9ad785cd092
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2010-2019, Delft University of Technology * All rigths reserved * * This file is part of the Tudat. Redistribution and use in source and * binary forms, with or without modification, are permitted exclusively * under the terms of the Modified BSD license. You should have received * a copy of the license with this file. If not, please or visit: * http://tudat.tudelft.nl/LICENSE. * * References * Montebruck O, Gill E. Satellite Orbits, Springer, 2000. * */ #include "tudat/astro/basic_astro/bodyShapeModel.h" namespace tudat { namespace basic_astrodynamics { //! Function to calculate the altitude of a point over a central body //! from positions of both the point and the body (in any frame) double getAltitudeFromNonBodyFixedPosition( const std::shared_ptr< BodyShapeModel > bodyShapeModel, const Eigen::Vector3d& position, const Eigen::Vector3d& bodyPosition, const Eigen::Quaterniond& toBodyFixedFrame ) { return bodyShapeModel->getAltitude( toBodyFixedFrame * ( position - bodyPosition ) ); } //! Function to calculate the altitude of a point over a central body //! from positions of both the point and the body (in any frame) double getAltitudeFromNonBodyFixedPositionFunctions( const std::shared_ptr< BodyShapeModel > bodyShapeModel, const Eigen::Vector3d& position, const std::function< Eigen::Vector3d( ) > bodyPositionFunction, const std::function< Eigen::Quaterniond( ) > toBodyFixedFrameFunction ) { return getAltitudeFromNonBodyFixedPosition( bodyShapeModel, position, bodyPositionFunction( ), toBodyFixedFrameFunction( ) ); } } // namespace basic_astrodynamics } // namespace tudat
39.133333
99
0.720045
fb64313199f0b51cc72dc68e0cf2b5ce01396515
1,178
rs
Rust
encoding/benches/transition.rs
jrakow/wassup
490740ff4c9537c961d00bc3456c3cead42e7299
[ "MIT" ]
null
null
null
encoding/benches/transition.rs
jrakow/wassup
490740ff4c9537c961d00bc3456c3cead42e7299
[ "MIT" ]
null
null
null
encoding/benches/transition.rs
jrakow/wassup
490740ff4c9537c961d00bc3456c3cead42e7299
[ "MIT" ]
null
null
null
use criterion::{black_box, criterion_group, criterion_main, Criterion}; use either::Either; use wassup_encoding::*; use z3::*; fn transition_consts_add(source: &[Instruction]) { let ctx = Context::new(&Config::default()); let solver = Solver::new(&ctx); let value_type_config = ValueTypeConfig { i32_size: 32, i64_size: Some(64), }; let constants = Constants::new( &ctx, &solver, vec![], vec![], vec![], &[], value_type_config, ); let execution = Execution::new(&constants, &solver, "".to_owned(), Either::Left(source)); assert!(solver.check().unwrap()); let model = solver.get_model(); assert_eq!( execution.states[3].decode(&model, &constants), State { stack: vec![Value::I32(3)], locals: vec![], trapped: false, } ); } fn consts_add(c: &mut Criterion) { c.bench_function("consts_add", |b| { b.iter(|| { let source = &[ Instruction::Const(Value::I32(1)), Instruction::Const(Value::I32(2)), Instruction::I32Add, ]; transition_consts_add(black_box(source)) }) }); } criterion_group! { name = benches; config = Criterion::default().sample_size(50); targets = consts_add } criterion_main!(benches);
20.310345
90
0.652801
e0345cf99895ede8b2b1798f36fe0c7120971577
1,403
rb
Ruby
lib/collection_controller.rb
bsharpe/collection_controller
f00414ebda48d601260c00dfe395e7821fd44678
[ "MIT" ]
null
null
null
lib/collection_controller.rb
bsharpe/collection_controller
f00414ebda48d601260c00dfe395e7821fd44678
[ "MIT" ]
11
2020-06-24T18:03:19.000Z
2022-03-08T21:44:17.000Z
lib/collection_controller.rb
bsharpe/collection_controller
f00414ebda48d601260c00dfe395e7821fd44678
[ "MIT" ]
null
null
null
require "collection_controller/version" module CollectionController extend ActiveSupport::Concern protected def collection @collection ||= controller_name.classify.constantize end def member @member ||= begin if member_is_one? model_name = controller_name.singularize collection.send(model_name) || collection.send("build_#{model_name}") else params[:id] ? find_member(params[:id]) : build_member end end end def find_member(id) @member = collection.find(id) end def build_member(attrs = nil) @member = begin if member_is_one? collection.send(controller_name.singularize) || collection.send("build_#{controller_name.singularize}") else collection.respond_to?(:new) ? collection.new(attrs) : collection.build(attrs) end end end def member_association @_member_association ||= begin if collection.class.respond_to?(:reflect_on_association) collection.class.reflect_on_association(controller_name.singularize)&.macro end end end def member_is_one? member_association == :has_one end def member=(new_value) @member = new_value end def collection=(new_value) @collection = new_value end def current_page collection.page(page_number) end def page_number params[:page] ? params[:page][:number] : 1 end end
21.584615
111
0.68995
247a6f303662a2c1560c75d6a3b9dd6a6083d643
206
php
PHP
hphp/test/zend/good/Zend/tests/jump04.php
tstarling/hhvm
6bc40a3d0c7e5f3162b7ce606be52ed7408db3c1
[ "PHP-3.01", "Zend-2.0" ]
4
2015-11-05T15:52:36.000Z
2021-12-17T09:45:07.000Z
hphp/test/zend/good/Zend/tests/jump04.php
tstarling/hhvm
6bc40a3d0c7e5f3162b7ce606be52ed7408db3c1
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/test/zend/good/Zend/tests/jump04.php
tstarling/hhvm
6bc40a3d0c7e5f3162b7ce606be52ed7408db3c1
[ "PHP-3.01", "Zend-2.0" ]
2
2019-02-02T01:57:38.000Z
2019-07-03T07:28:45.000Z
<?php $s = "X"; echo "1: ok\n"; L1: if ($s != "X") { echo "4: ok\n"; } else { echo "2: ok\n"; while ($s != "XXX") { echo "3: ok\n"; $s .= "X"; goto L1; echo "bug\n"; } echo "bug\n"; } ?>
12.875
22
0.38835
a180868a69c3672e8970a85f7e1aa2d28fb526e9
1,529
ts
TypeScript
bench/bench.ts
mees-/gclick
c8f04f06f0ecde97ced4a7736ea7f2ee5ac4c0f6
[ "MIT" ]
null
null
null
bench/bench.ts
mees-/gclick
c8f04f06f0ecde97ced4a7736ea7f2ee5ac4c0f6
[ "MIT" ]
1
2020-07-16T04:55:17.000Z
2020-07-16T04:55:17.000Z
bench/bench.ts
mees-/gclick
c8f04f06f0ecde97ced4a7736ea7f2ee5ac4c0f6
[ "MIT" ]
null
null
null
import { PerformanceObserver, performance } from 'perf_hooks' export type benchmarkOptions<Context> = { createContext?: () => Context beforeBench?: (context: Context) => any beforeRun?: (context: Context) => void runs: number loops: number benchMarkFunction: (context: Context) => void afterRun?: (context: Context) => void afterBench?: (context: Context) => void } export default function benchmark<Context>(options: benchmarkOptions<Context>) { const benchStartTime = performance.now() const context: Context = (options.createContext && options.createContext()) || ({} as Context) const performanceEntries: number[] = [] const observer = new PerformanceObserver(list => { performanceEntries.push(...list.getEntries().map(entry => entry.duration)) }) observer.observe({ entryTypes: ['measure'] }) options.beforeBench && options.beforeBench(context) for (let i = 0; i < options.runs; i++) { options.beforeRun && options.beforeRun(context) performance.mark(`run-${i}-start`) for (let j = 0; j < options.loops; j++) { options.benchMarkFunction(context) } performance.mark(`run-${i}-end`) performance.measure(`run-${i}`, `run-${i}-start`, `run-${i}-end`) performance.clearMarks() performance.clearMeasures() options.afterRun && options.afterRun(context) } options.afterBench && options.afterBench(context) observer.disconnect() const totalDuration = performance.now() - benchStartTime return { performanceEntries, totalDuration } }
32.531915
80
0.691302
c430c3f7a41a594286a0aced1e17298807805390
418
cpp
C++
contest/AtCoder/abc173/B.cpp
not522/Competitive-Programming
be4a7d25caf5acbb70783b12899474a56c34dedb
[ "Unlicense" ]
7
2018-04-14T14:55:51.000Z
2022-01-31T10:49:49.000Z
contest/AtCoder/abc173/B.cpp
not522/Competitive-Programming
be4a7d25caf5acbb70783b12899474a56c34dedb
[ "Unlicense" ]
5
2018-04-14T14:28:49.000Z
2019-05-11T02:22:10.000Z
contest/AtCoder/abc173/B.cpp
not522/Competitive-Programming
be4a7d25caf5acbb70783b12899474a56c34dedb
[ "Unlicense" ]
null
null
null
#include "string.hpp" int main() { int n(in), ac = 0, wa = 0, tle = 0, re = 0; for (int i = 0; i < n; ++i) { String s(in); if (s == "AC") { ++ac; } else if (s == "WA") { ++wa; } else if (s == "TLE") { ++tle; } else { ++re; } } cout << "AC x " << ac << endl; cout << "WA x " << wa << endl; cout << "TLE x " << tle << endl; cout << "RE x " << re << endl; }
19
45
0.366029
7abbc81328198148450ef4903c1e349b19f8d03c
3,021
cs
C#
SonLVL INI Files/DDZ/Asteroid.cs
NatsumiFox/AMPS-Sonic-3-Knuckles
af951b39f0ca103a905d7492448ac5245a2e8104
[ "Apache-2.0" ]
5
2021-07-09T08:17:56.000Z
2022-02-27T19:57:47.000Z
SonLVL INI Files/DDZ/Asteroid.cs
NatsumiFox/AMPS-Sonic-3-Knuckles
af951b39f0ca103a905d7492448ac5245a2e8104
[ "Apache-2.0" ]
null
null
null
SonLVL INI Files/DDZ/Asteroid.cs
NatsumiFox/AMPS-Sonic-3-Knuckles
af951b39f0ca103a905d7492448ac5245a2e8104
[ "Apache-2.0" ]
null
null
null
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Drawing; using SonicRetro.SonLVL.API; namespace S3KObjectDefinitions.DDZ { class Asteroid : ObjectDefinition { private PropertySpec[] properties; private ReadOnlyCollection<byte> subtypes; private Sprite[][] sprites; private Sprite[] unknownSprite; public override string Name { get { return "Asteroid"; } } public override Sprite Image { get { return sprites[0][0]; } } public override PropertySpec[] CustomProperties { get { return properties; } } public override ReadOnlyCollection<byte> Subtypes { get { return subtypes; } } public override byte DefaultSubtype { get { return 2; } } public override string SubtypeName(byte subtype) { return null; } public override Sprite SubtypeImage(byte subtype) { return sprites[0][0]; } public override Sprite GetSprite(ObjectEntry obj) { var sprite = unknownSprite; var index = obj.SubType >> 4; if (index < sprites.Length && (obj.SubType & 0x0F) < 6) sprite = sprites[index]; return sprite[(obj.XFlip ? 1 : 0) | (obj.YFlip ? 2 : 0)]; } public override int GetDepth(ObjectEntry obj) { return 0; } public override void Init(ObjectData data) { var version = LevelData.Game.MappingsVersion; var art = LevelData.ReadFile( "../Levels/DDZ/KosinskiM Art/Misc Art.bin", CompressionType.KosinskiM); var map = LevelData.ASMToBin( "../Levels/DDZ/Misc Object Data/Map - Missile Asteroid.asm", version); properties = new PropertySpec[2]; subtypes = new ReadOnlyCollection<byte>(new byte[0]); sprites = new[] { BuildFlippedSprites(ObjectHelper.MapToBmp(art, map, 38, 1, true)), BuildFlippedSprites(ObjectHelper.MapToBmp(art, map, 39, 1, true)), BuildFlippedSprites(ObjectHelper.MapToBmp(art, map, 40, 1, true)) }; unknownSprite = BuildFlippedSprites(ObjectHelper.UnknownObject); properties[0] = new PropertySpec("Scroll Rate", typeof(int), "Extended", "The object's scrolling speed relative to the camera.", null, new Dictionary<string, int> { { "-10%" , 4 }, { "-5%", 3 }, { "Same rate", 2 }, { "+5%", 1 }, { "+10%", 0 }, { "+20%", 5 } }, (obj) => obj.SubType & 0x0F, (obj, value) => obj.SubType = (byte)((obj.SubType & 0xF0) | ((int)value & 0x0F))); properties[1] = new PropertySpec("Sprite", typeof(int), "Extended", "The object's appearance and collision size.", null, new Dictionary<string, int> { { "Small", 0 }, { "Medium", 1 }, { "Large", 2 } }, (obj) => obj.SubType >> 4, (obj, value) => obj.SubType = (byte)((obj.SubType & 0x0F) | ((int)value << 4))); } private Sprite[] BuildFlippedSprites(Sprite sprite) { var flipX = new Sprite(sprite, true, false); var flipY = new Sprite(sprite, false, true); var flipXY = new Sprite(sprite, true, true); return new[] { sprite, flipX, flipY, flipXY }; } } }
24.966942
93
0.644158
5d728769fe9f89708bd27c52f961093fad491786
3,116
cpp
C++
intern/cycles/util/util_murmurhash.cpp
rbabari/blender
6daa85f14b2974abfc3d0f654c5547f487bb3b74
[ "Naumen", "Condor-1.1", "MS-PL" ]
365
2015-02-10T15:10:55.000Z
2022-03-03T15:50:51.000Z
intern/cycles/util/util_murmurhash.cpp
rbabari/blender
6daa85f14b2974abfc3d0f654c5547f487bb3b74
[ "Naumen", "Condor-1.1", "MS-PL" ]
45
2015-01-09T15:34:20.000Z
2021-10-05T14:44:23.000Z
intern/cycles/util/util_murmurhash.cpp
rbabari/blender
6daa85f14b2974abfc3d0f654c5547f487bb3b74
[ "Naumen", "Condor-1.1", "MS-PL" ]
172
2015-01-25T15:16:53.000Z
2022-01-31T08:25:36.000Z
/* * Copyright 2018 Blender Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* This is taken from alShaders/Cryptomatte/MurmurHash3.h: * * MurmurHash3 was written by Austin Appleby, and is placed in the public * domain. The author hereby disclaims copyright to this source code. */ #include <stdlib.h> #include <string.h> #include "util/util_algorithm.h" #include "util/util_murmurhash.h" #if defined(_MSC_VER) # define ROTL32(x, y) _rotl(x, y) # define ROTL64(x, y) _rotl64(x, y) # define BIG_CONSTANT(x) (x) #else ccl_device_inline uint32_t rotl32(uint32_t x, int8_t r) { return (x << r) | (x >> (32 - r)); } # define ROTL32(x, y) rotl32(x, y) # define BIG_CONSTANT(x) (x##LLU) #endif CCL_NAMESPACE_BEGIN /* Block read - if your platform needs to do endian-swapping or can only * handle aligned reads, do the conversion here. */ ccl_device_inline uint32_t mm_hash_getblock32(const uint32_t *p, int i) { return p[i]; } /* Finalization mix - force all bits of a hash block to avalanche */ ccl_device_inline uint32_t mm_hash_fmix32(uint32_t h) { h ^= h >> 16; h *= 0x85ebca6b; h ^= h >> 13; h *= 0xc2b2ae35; h ^= h >> 16; return h; } uint32_t util_murmur_hash3(const void *key, int len, uint32_t seed) { const uint8_t *data = (const uint8_t *)key; const int nblocks = len / 4; uint32_t h1 = seed; const uint32_t c1 = 0xcc9e2d51; const uint32_t c2 = 0x1b873593; const uint32_t *blocks = (const uint32_t *)(data + nblocks * 4); for (int i = -nblocks; i; i++) { uint32_t k1 = mm_hash_getblock32(blocks, i); k1 *= c1; k1 = ROTL32(k1, 15); k1 *= c2; h1 ^= k1; h1 = ROTL32(h1, 13); h1 = h1 * 5 + 0xe6546b64; } const uint8_t *tail = (const uint8_t *)(data + nblocks * 4); uint32_t k1 = 0; switch (len & 3) { case 3: k1 ^= tail[2] << 16; ATTR_FALLTHROUGH; case 2: k1 ^= tail[1] << 8; ATTR_FALLTHROUGH; case 1: k1 ^= tail[0]; k1 *= c1; k1 = ROTL32(k1, 15); k1 *= c2; h1 ^= k1; } h1 ^= len; h1 = mm_hash_fmix32(h1); return h1; } /* This is taken from the cryptomatte specification 1.0 */ float util_hash_to_float(uint32_t hash) { uint32_t mantissa = hash & ((1 << 23) - 1); uint32_t exponent = (hash >> 23) & ((1 << 8) - 1); exponent = max(exponent, (uint32_t)1); exponent = min(exponent, (uint32_t)254); exponent = exponent << 23; uint32_t sign = (hash >> 31); sign = sign << 31; uint32_t float_bits = sign | exponent | mantissa; float f; memcpy(&f, &float_bits, sizeof(uint32_t)); return f; } CCL_NAMESPACE_END
24.535433
75
0.652439
4638076c2682dc6aa178c2adfec37995d3b95b3a
907
lua
Lua
Hunting Sim 2 script Auto Farm.lua
xVoid-xyz/Roblox-Scripts
7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2
[ "BSD-3-Clause" ]
70
2021-02-09T17:21:32.000Z
2022-03-28T12:41:42.000Z
Hunting Sim 2 script Auto Farm.lua
xVoid-xyz/Roblox-Scripts
7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2
[ "BSD-3-Clause" ]
4
2021-08-19T22:05:58.000Z
2022-03-19T18:58:01.000Z
Hunting Sim 2 script Auto Farm.lua
xVoid-xyz/Roblox-Scripts
7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2
[ "BSD-3-Clause" ]
325
2021-02-26T22:23:41.000Z
2022-03-31T19:36:12.000Z
local player = game.Players.LocalPlayer while true do wait() for i,v in pairs(workspace.Maps:GetDescendants()) do if v.ClassName == "Model" and v:FindFirstChild("HumanoidRootPart") and (player.Character.HumanoidRootPart.Position - v.HumanoidRootPart.Position).magnitude < 50 and v:FindFirstChild("InstanceId") then ------------change this line with your current item InstanceId game:GetService("ReplicatedStorage").Remotes.ClientToServerRemoteEvent:FireServer({ ["packetId"]= 5, ["mobInstanceId"]= v.InstanceId.Value, ["damage"]= 10, ["itemInstanceId"]= "CB494AC7-CBBC-478B-87D3-0F5823E88A62", ["itemId"]= 1000 }) -- Stick --------------------- game:GetService("ReplicatedStorage").Remotes.ClientToServerRemoteEvent:FireServer({ ["packetId"]= 5, ["mobInstanceId"]= v.InstanceId.Value, ["damage"]= 22, ["itemInstanceId"]= "0EF0B4BF-F6BA-40F8-91CC-376AED0C45BB", ["itemId"]= 24000 }) -- FireBall end end end
75.583333
248
0.734289
852668919cf2a9787cf4338131df163f6eb1822e
1,614
cs
C#
SilverTurtle.SmartHome.ConsoleApp/SonosDeviceLocator.cs
rschreiber/SilverTurtle.SmartHome
f9833a4c55a8c1e26d65754c738121996a5f0388
[ "CC0-1.0" ]
null
null
null
SilverTurtle.SmartHome.ConsoleApp/SonosDeviceLocator.cs
rschreiber/SilverTurtle.SmartHome
f9833a4c55a8c1e26d65754c738121996a5f0388
[ "CC0-1.0" ]
null
null
null
SilverTurtle.SmartHome.ConsoleApp/SonosDeviceLocator.cs
rschreiber/SilverTurtle.SmartHome
f9833a4c55a8c1e26d65754c738121996a5f0388
[ "CC0-1.0" ]
null
null
null
using System; using System.Collections.Generic; using System.Net.Sockets; using System.Threading.Tasks; namespace SilverTurtle.SmartHome.ConsoleApp { public class SonosDeviceLocator { private readonly SsdpRadar.FinderService finderService; public SonosDeviceLocator() { finderService = new SsdpRadar.FinderService(2, new TimeSpan(0, 0, 1), new TimeSpan(0, 0, 5)); } public async Task<IEnumerable<SonosDevice>> FindDevicesAsync() { List<SonosDevice> sonosDevices = new(); var devices = await finderService.FindDevicesAsync(); foreach (var device in devices) { if (IsSonosDevice(device)) { sonosDevices.Add(new SonosDevice(device)); } } return sonosDevices; } private bool IsSonosDevice(SsdpRadar.SsdpDevice device) { TcpClient client = new(); try { //definitely not the best why to find the device, but works for now if ((bool)(device?.Info?.Manufacturer?.Contains("sonos", StringComparison.InvariantCultureIgnoreCase))) { //confirm by trying to connect on port 1400 client.Connect(device.RemoteEndPoint, 1400); client.Close(); return true; } } catch { return false;//ignore the exception } return false; } } }
31.038462
119
0.535316
05f777e4ca65e344e9bab56255180d822a05a12a
1,505
py
Python
tests/instagram/fixtures/endpoints/internal/msisdn_header.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
13
2019-08-07T21:24:34.000Z
2020-12-12T12:23:50.000Z
tests/instagram/fixtures/endpoints/internal/msisdn_header.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
tests/instagram/fixtures/endpoints/internal/msisdn_header.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
import json import httpretty import pytest @httpretty.activate @pytest.fixture(scope='session') def internal_msisdn_header_success(request, base_uri): httpretty.register_uri( httpretty.POST, ''.join([base_uri, 'accounts/read_msisdn_header/']), body=json.dumps({ 'phone_number': '+79991234567', 'url': 'http://example.com', 'remaining_ttl_seconds': 15, 'ttl': 100, 'status': 'ok', }), adding_headers={ 'Content-Type': 'application/json; charset=utf-8', 'Vary': 'Accept-Language, Cookie', 'Content-Language': 'en', 'Date': 'Sun, 18 Aug 2019 14:51:08 GMT', 'Strict-Transport-Security': 'max-age=31536000', 'Cache-Control': 'private, no-cache, no-store, must-revalidate', 'Pragma': 'no-cache', 'Expires': 'Sat, 01 Jan 2000 00:00:00 GMT', 'X-Frame-Options': 'SAMEORIGIN', 'content-security-policy': ('report-uri https://www.instagram.com/security/csp_report/; ' 'default-src \'self\' https://www.instagram.com; img-src https: data: blob:; ' 'font-src https: data:; media-src: https: data:'), 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '0', 'x-aed': '9', 'X-FB-TRIP-ID': '1679558926', 'Connection': 'keep-alive', } )
36.707317
118
0.526246
46fa787a2799665abb31bbabd6a7370198a7a963
1,359
py
Python
src/models/farmer_rating.py
BuildForSDG/Team-151-Backend
623a8fa3c89e6974b346214c5c53dbed22bfbf10
[ "MIT" ]
null
null
null
src/models/farmer_rating.py
BuildForSDG/Team-151-Backend
623a8fa3c89e6974b346214c5c53dbed22bfbf10
[ "MIT" ]
1
2020-05-28T13:22:49.000Z
2020-05-28T13:22:49.000Z
src/models/farmer_rating.py
BuildForSDG/Team-151-Backend
623a8fa3c89e6974b346214c5c53dbed22bfbf10
[ "MIT" ]
2
2020-06-03T18:22:34.000Z
2020-06-23T08:50:12.000Z
from sqlalchemy.orm import relationship, backref from src.models.Model import db from src.models.item_category import ItemCategoryModel from src.models.user import UserModel class FarmerRatingModel(db.Model): __tablename__ = 'farmer_rating' id = db.Column(db.Integer, primary_key=True) farmerid = db.Column(db.Integer,db.ForeignKey('users.id')) itemid = db.Column(db.Integer,db.ForeignKey('item_categories.id')) ratedby = db.Column(db.Integer,unique=True) #userid rating = db.Column(db.Integer) user = relationship(UserModel, backref=backref("farmer_rating", cascade="all, delete-orphan")) item_category = relationship(ItemCategoryModel, backref=backref("farmer_rating", cascade="all, delete-orphan")) def __init__(self,farmerid,itemid,ratedby,rating): self.farmerid = farmerid self.itemid = itemid self.ratedby = ratedby self.rating = rating def save_to_db(self): db.session.add(self) db.session.commit() @classmethod def find_by_farmerid(cls, farmerid,itemid,ratedby): return cls.query.filter_by(farmerid=farmerid,itemid=itemid,ratedby=ratedby).first() @classmethod def find_by_id(cls, _id): return cls.query.filter_by(id=_id).first() def delete_from_db(self): db.session.delete(self) db.session.commit()
31.604651
115
0.709345
8e762621e17fe7a08da5bd23155477549d50288e
2,544
rb
Ruby
config/configmapper.rb
IsmiKin/simplecompany
40a8f840725603030fe7f57698bff5bedf74ca8c
[ "MIT" ]
null
null
null
config/configmapper.rb
IsmiKin/simplecompany
40a8f840725603030fe7f57698bff5bedf74ca8c
[ "MIT" ]
null
null
null
config/configmapper.rb
IsmiKin/simplecompany
40a8f840725603030fe7f57698bff5bedf74ca8c
[ "MIT" ]
null
null
null
#configmapper.rb require_relative 'configvars.rb' require 'data_mapper' # requires all the gems listed above require 'dm-migrations' require 'yaml' #configdb = YAML.load(ERB.new((File.read('config/database.yml'))).result)["development"] configdb = YAML.load((File.read('config/database.yml')))["development"] DataMapper.setup(:default, "mysql://#{configdb['username']}:#{configdb['password']}@#{configdb['hostname']}/#{configdb['database']}") #DataMapper.setup(:default, ENV['CLEARDB_DATABASE_URL']) class Company include DataMapper::Resource property :idcompany, Serial , key: true property :name, String , required: true , length: 1..250 property :address, Text , required: true , length: 1..250 property :country, String , required: true , length: 1..100 property :city, String , required: true , length: 1..100 property :email, Text , format: :email_address property :phone, String property :active, Boolean , default: true has n, :companybks end class Companybk include DataMapper::Resource property :idcompanybk, Serial , key: true property :name, String , required: true , length: 1..250 property :address, Text , required: true , length: 1..250 property :country, String , required: true , length: 1..100 property :city, String , required: true , length: 1..100 property :email, Text , format: :email_address property :phone, String property :created_at, DateTime belongs_to :company end class Person include DataMapper::Resource property :idperson, Serial , key: true property :name, String , length: 1..250 property :type, Text , required: true , length: 1..250 property :passport, Text , length: 500000 property :active, Boolean , default: true has n, :personbks belongs_to :company end class Personbk include DataMapper::Resource property :idpersonbk, Serial , key: true property :name, String , length: 1..250 property :type, Text , required: true , length: 1..250 property :passport, Text , length: 500000 property :created_at, DateTime belongs_to :person belongs_to :company end DataMapper.finalize # Remove comments for first launch #DataMapper.auto_migrate! #DataMapper.auto_upgrade!
31.407407
133
0.624607
dd88329c983c40bd3310813cdb9fcc9f6a4ac8ff
12,362
java
Java
implementation/src/main/java/io/smallrye/mutiny/Multi.java
Inego/smallrye-mutiny
cc82d4f16095adbfe71b683bc39a74503b36ed5b
[ "Apache-2.0" ]
null
null
null
implementation/src/main/java/io/smallrye/mutiny/Multi.java
Inego/smallrye-mutiny
cc82d4f16095adbfe71b683bc39a74503b36ed5b
[ "Apache-2.0" ]
null
null
null
implementation/src/main/java/io/smallrye/mutiny/Multi.java
Inego/smallrye-mutiny
cc82d4f16095adbfe71b683bc39a74503b36ed5b
[ "Apache-2.0" ]
null
null
null
package io.smallrye.mutiny; import static io.smallrye.mutiny.helpers.ParameterValidation.nonNull; import java.util.concurrent.Executor; import java.util.function.Function; import java.util.function.Predicate; import org.reactivestreams.Publisher; import org.reactivestreams.Subscriber; import org.reactivestreams.Subscription; import io.smallrye.mutiny.groups.MultiBroadcast; import io.smallrye.mutiny.groups.MultiCollect; import io.smallrye.mutiny.groups.MultiConvert; import io.smallrye.mutiny.groups.MultiCreate; import io.smallrye.mutiny.groups.MultiCreateBy; import io.smallrye.mutiny.groups.MultiGroup; import io.smallrye.mutiny.groups.MultiOnCompletion; import io.smallrye.mutiny.groups.MultiOnEvent; import io.smallrye.mutiny.groups.MultiOnFailure; import io.smallrye.mutiny.groups.MultiOnItem; import io.smallrye.mutiny.groups.MultiOverflow; import io.smallrye.mutiny.groups.MultiSubscribe; import io.smallrye.mutiny.groups.MultiTransform; @SuppressWarnings("PublisherImplementation") public interface Multi<T> extends Publisher<T> { static MultiCreate createFrom() { return MultiCreate.INSTANCE; } /** * Creates new instances of {@link Multi} by merging, concatenating or associating items from others {@link Multi} * and {@link Publisher}. * * @return the object to configure the creation process. */ static MultiCreateBy createBy() { return MultiCreateBy.INSTANCE; } /** * Configures the subscriber consuming this {@link Multi}. * * @return the object to configure the subscriber */ MultiSubscribe<T> subscribe(); /** * Configures the behavior when an {@code item} event is received from the this {@link Multi} * * @return the object to configure the behavior. */ MultiOnItem<T> onItem(); /** * Allows structuring the pipeline by creating a logic separation: * * <pre> * {@code * Multi multi = upstream * .then(m -> { ...}) * .then(m -> { ...}) * .then(m -> { ...}) * } * </pre> * <p> * With `then` you can structure and chain groups of processing. * * @param stage the function receiving this {@link Multi} as parameter and producing the outcome (can be a * {@link Multi} or something else), must not be {@code null}. * @param <O> the outcome type * @return the outcome of the function. */ default <O> O then(Function<Multi<T>, O> stage) { return nonNull(stage, "stage").apply(this); } /** * Creates a {@link Uni} from this {@link Multi}. * <p> * When a subscriber subscribes to the returned {@link Uni}, it subscribes to this {@link Multi} and requests one * item. The event emitted by this {@link Multi} are then forwarded to the {@link Uni}: * * <ul> * <li>on item event, the item is fired by the produced {@link Uni}</li> * <li>on failure event, the failure is fired by the produced {@link Uni}</li> * <li>on completion event, a {@code null} item is fired by the produces {@link Uni}</li> * <li>any item or failure events received after the first event is dropped</li> * </ul> * <p> * If the subscription on the produced {@link Uni} is cancelled, the subscription to the passed {@link Multi} is * also cancelled. * * @return the produced {@link Uni} */ Uni<T> toUni(); /** * Like {@link #onFailure(Predicate)} but applied to all failures fired by the upstream multi. * It allows configuring the on failure behavior (recovery, retry...). * * @return a MultiOnFailure on which you can specify the on failure action */ MultiOnFailure<T> onFailure(); /** * Configures a predicate filtering the failures on which the behavior (specified with the returned * {@link MultiOnFailure}) is applied. * <p> * For instance, to only when an {@code IOException} is fired as failure you can use: * <code>multi.onFailure(IOException.class).recoverWithItem("hello")</code> * <p> * The fallback value ({@code hello}) will only be used if the upstream multi fires a failure of type * {@code IOException}. * * @param predicate the predicate, {@code null} means applied to all failures * @return a MultiOnFailure configured with the given predicate on which you can specify the on failure action */ MultiOnFailure<T> onFailure(Predicate<? super Throwable> predicate); /** * Configures a type of failure filtering the failures on which the behavior (specified with the returned * {@link MultiOnFailure}) is applied. * <p> * For instance, to only when an {@code IOException} is fired as failure you can use: * <code>multi.onFailure(IOException.class).recoverWithItem("hello")</code> * <p> * The fallback value ({@code hello}) will only be used if the upstream multi fire a failure of type * {@code IOException}.* * * @param typeOfFailure the class of exception, must not be {@code null} * @return a MultiOnFailure configured with the given predicate on which you can specify the on failure action */ MultiOnFailure<T> onFailure(Class<? extends Throwable> typeOfFailure); /** * Allows adding behavior when various type of events are emitted by the current {@link Multi} (item, failure, * completion) or by the subscriber (cancellation, request, subscription) * * @return the object to configure the action to execute when events happen */ MultiOnEvent<T> on(); /** * Creates a new {@link Multi} that subscribes to this upstream and caches all of its events and replays them, to * all the downstream subscribers. * * @return a multi replaying the events from the upstream. */ Multi<T> cache(); /** * Produces {@link Multi} or {@link Uni} collecting items from this {@link Multi}. You can accumulate the items * into a {@link java.util.List} ({@link MultiCollect#asList()}), {@link java.util.Map} * ({@link MultiCollect#asMap(Function)}... * <p> * You can also retrieve the first and list items using {@link MultiCollect#first()} and {@link MultiCollect#last()}. * * @return the object to configure the collection process. */ MultiCollect<T> collectItems(); /** * Produces {@link Multi} grouping items from this {@link Multi} into various "form of chunks" (list, {@link Multi}). * The grouping can be done linearly ({@link MultiGroup#intoLists()} and {@link MultiGroup#intoMultis()}, or based * on a grouping function ({@link MultiGroup#by(Function)}) * * @return the object to configure the grouping. */ MultiGroup<T> groupItems(); /** * Produces a new {@link Multi} invoking the {@code onItem}, {@code onFailure} and {@code onCompletion} methods * on the supplied {@link Executor}. * <p> * Instead of receiving the {@code item} event on the thread firing the event, this method influences the * threading context to switch to a thread from the given executor. Same behavior for failure and completion. * <p> * Note that the subscriber is guaranteed to never be called concurrently. * * @param executor the executor to use, must not be {@code null} * @return a new {@link Multi} */ Multi<T> emitOn(Executor executor); /** * When a subscriber subscribes to this {@link Multi}, execute the subscription to the upstream {@link Multi} on a * thread from the given executor. As a result, the {@link Subscriber#onSubscribe(Subscription)} method will be called * on this thread (except mentioned otherwise) * * @param executor the executor to use, must not be {@code null} * @return a new {@link Multi} */ Multi<T> subscribeOn(Executor executor); /** * Allows configures the actions or continuation to execute when this {@link Multi} fires the completion event. * * @return the object to configure the action. */ MultiOnCompletion<T> onCompletion(); /** * Transforms the streams by skipping, selecting, or merging. * * @return the object to configure the transformation. */ MultiTransform<T> transform(); /** * Configures the back-pressure behavior when the consumer cannot keep up with the emissions from this * {@link Multi}. * * @return the object to configure the overflow strategy */ MultiOverflow<T> onOverflow(); /** * Makes this {@link Multi} be able to broadcast its events ({@code items}, {@code failure}, and {@code completion}) * to multiple subscribers. * * @return the object to configure the broadcast */ MultiBroadcast<T> broadcast(); /** * Converts a {@link Multi} to other types * * <p> * Examples: * </p> * * <pre> * {@code * multi.convert().with(multi -> x); // Convert with a custom lambda converter * } * </pre> * * @return the object to convert an {@link Multi} instance * @see MultiConvert */ MultiConvert<T> convert(); /** * Produces a new {@link Multi} invoking the given function for each item emitted by the upstream {@link Multi}. * <p> * The function receives the received item as parameter, and can transform it. The returned object is sent * downstream as {@code item} event. * <p> * This method is a shortcut for {@code multi.onItem().apply(mapper)}. * * @param mapper the mapper function, must not be {@code null} * @param <O> the type of item produced by the mapper function * @return the new {@link Multi} */ default <O> Multi<O> map(Function<? super T, ? extends O> mapper) { return onItem().apply(nonNull(mapper, "mapper")); } /** * Produces a {@link Multi} containing the items from {@link Publisher} produced by the {@code mapper} for each * item emitted by this {@link Multi}. * <p> * The operation behaves as follows: * <ul> * <li>for each item emitted by this {@link Multi}, the mapper is called and produces a {@link Publisher} * (potentially a {@code Multi}). The mapper must not return {@code null}</li> * <li>The items emitted by each of the produced {@link Publisher} are then <strong>merged</strong> in the * produced {@link Multi}. The flatten process may interleaved items.</li> * </ul> * This method is a shortcut for {@code multi.onItem().producePublisher(mapper).merge()}. * * @param mapper the {@link Function} producing {@link Publisher} / {@link Multi} for each items emitted by the * upstream {@link Multi} * @param <O> the type of item emitted by the {@link Publisher} produced by the {@code mapper} * @return the produced {@link Multi} */ default <O> Multi<O> flatMap(Function<? super T, ? extends Publisher<? extends O>> mapper) { return onItem().producePublisher(mapper).merge(); } /** * Produces a {@link Multi} containing the items from {@link Publisher} produced by the {@code mapper} for each * item emitted by this {@link Multi}. * <p> * The operation behaves as follows: * <ul> * <li>for each item emitted by this {@link Multi}, the mapper is called and produces a {@link Publisher} * (potentially a {@code Multi}). The mapper must not return {@code null}</li> * <li>The items emitted by each of the produced {@link Publisher} are then <strong>concatenated</strong> in the * produced {@link Multi}. The flatten process makes sure that the items are not interleaved. * </ul> * <p> * This method is equivalent to {@code multi.onItem().producePublisher(mapper).concatenate()}. * * @param mapper the {@link Function} producing {@link Publisher} / {@link Multi} for each items emitted by the * upstream {@link Multi} * @param <O> the type of item emitted by the {@link Publisher} produced by the {@code mapper} * @return the produced {@link Multi} */ default <O> Multi<O> concatMap(Function<? super T, ? extends Publisher<? extends O>> mapper) { return onItem().producePublisher(mapper).concatenate(); } }
40.136364
122
0.654101
20bf3531dd40e09fe7af6d802d465e9d4fdc3c34
416
py
Python
tests/basic.py
dobpp/magnet-contracts
ed3c9cd4dddb806d56e2d840a944dabc0d2f59c2
[ "MIT" ]
null
null
null
tests/basic.py
dobpp/magnet-contracts
ed3c9cd4dddb806d56e2d840a944dabc0d2f59c2
[ "MIT" ]
null
null
null
tests/basic.py
dobpp/magnet-contracts
ed3c9cd4dddb806d56e2d840a944dabc0d2f59c2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import pytest from brownie import chain, accounts def test_basic(otoken, stoken): assert otoken.name() == "Magnet" assert otoken.decimals() == 9 otoken.setVault(accounts[0]) assert otoken.vault() == accounts[0] assert stoken.name() == "Staked Magnet" #token.mint(accounts[0], 100) #assert token.balanceOf(accounts[0]) == 100 #assert token.totalSupply() == 0
20.8
47
0.663462
f2ee01c114da0c4e2a36e3b6adc04f686fbf23cc
701
lua
Lua
src/script/skill_queue/skill_validator.lua
Vanishoxyact/Character-Skill-Queue
36230badddb43a0f00bfa8acefe7a5362b5177c1
[ "MIT" ]
null
null
null
src/script/skill_queue/skill_validator.lua
Vanishoxyact/Character-Skill-Queue
36230badddb43a0f00bfa8acefe7a5362b5177c1
[ "MIT" ]
null
null
null
src/script/skill_queue/skill_validator.lua
Vanishoxyact/Character-Skill-Queue
36230badddb43a0f00bfa8acefe7a5362b5177c1
[ "MIT" ]
null
null
null
local SkillValidator = {} --# assume SkillValidator: SKILL_VALIDATOR SkillValidator.__index = SkillValidator; SkillValidator.viewModel = nil --: SKILL_QUEUE_VIEW_MODEL --v function(self: SKILL_VALIDATOR, skill: string) --> boolean function SkillValidator.canUnlockSkill(self, skill) local questSkill = string.match(skill, "_quest"); if questSkill then return false; end return true; end --v function(viewModel: SKILL_QUEUE_VIEW_MODEL) --> SKILL_VALIDATOR function SkillValidator.new(viewModel) local sv = {}; setmetatable(sv, SkillValidator); --# assume sv: SKILL_VALIDATOR sv.viewModel = viewModel; return sv; end return { new = SkillValidator.new }
28.04
68
0.730385
580ad15c639ef9f1929be1c508658bf1fed51a7c
2,889
rb
Ruby
test/getter_test.rb
delphaber/robotstxt-parser
d057f0e20f8a165f35f0c868ae7ad71bb219d3ac
[ "MIT" ]
null
null
null
test/getter_test.rb
delphaber/robotstxt-parser
d057f0e20f8a165f35f0c868ae7ad71bb219d3ac
[ "MIT" ]
null
null
null
test/getter_test.rb
delphaber/robotstxt-parser
d057f0e20f8a165f35f0c868ae7ad71bb219d3ac
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- $:.unshift(File.dirname(__FILE__) + '/../lib') require 'rubygems' require 'test/unit' require 'robotstxt-parser' require 'test_helper' class TestRobotstxt < Test::Unit::TestCase def test_absense stub_request(:get, "http://example.com/robots.txt").to_return(status: [404, "Not found"]) assert true == Robotstxt.get_allowed?("http://example.com/index.html", "Google") end def test_error stub_request(:get, "http://example.com/robots.txt").to_return(status: [500, "Internal Server Error"]) assert true == Robotstxt.get_allowed?("http://example.com/index.html", "Google") end def test_unauthorized stub_request(:get, "http://example.com/robots.txt").to_return(status: [401, "Unauthorized"]) assert false == Robotstxt.get_allowed?("http://example.com/index.html", "Google") end def test_forbidden stub_request(:get, "http://example.com/robots.txt").to_return(status: [403, "Forbidden"]) assert false == Robotstxt.get_allowed?("http://example.com/index.html", "Google") end def test_uri_object stub_request(:get, "http://example.com/robots.txt").to_return(body: "User-agent:*\nDisallow: /test") robotstxt = Robotstxt.get(URI.parse("http://example.com/index.html"), "Google") assert true == robotstxt.allowed?("/index.html") assert false == robotstxt.allowed?("/test/index.html") end def test_existing_http_connection stub_request(:get, "http://example.com/robots.txt").to_return(body: "User-agent:*\nDisallow: /test") http = Net::HTTP.start("example.com", 80) do |http| robotstxt = Robotstxt.get(http, "Google") assert true == robotstxt.allowed?("/index.html") assert false == robotstxt.allowed?("/test/index.html") end end def test_redirects stub_request(:get, "http://example.com/robots.txt").to_return("HTTP/1.1 303 See Other\nLocation: http://www.exemplar.com/robots.txt\n\n") stub_request(:get, "http://www.exemplar.com/robots.txt").to_return(body: "User-agent:*\nDisallow: /private") robotstxt = Robotstxt.get("http://example.com/", "Google") assert true == robotstxt.allowed?("/index.html") assert false == robotstxt.allowed?("/private/index.html") end # def test_encoding # # "User-agent: *\n Disallow: /encyclop@dia" where @ is the ae ligature (U+00E6) # stub_request(:get, "http://example.com/robots.txt").to_return("HTTP/1.1 200 OK\nContent-type: text/plain; charset=utf-16\n\n" + # "\xff\xfeU\x00s\x00e\x00r\x00-\x00a\x00g\x00e\x00n\x00t\x00:\x00 \x00*\x00\n\x00D\x00i\x00s\x00a\x00l\x00l\x00o\x00w\x00:\x00 \x00/\x00e\x00n\x00c\x00y\x00c\x00l\x00o\x00p\x00\xe6\x00d\x00i\x00a\x00") # robotstxt = Robotstxt.get("http://example.com/#index", "Google") # assert true == robotstxt.allowed?("/index.html") # assert false == robotstxt.allowed?("/encyclop%c3%a6dia/index.html") # end end
40.125
210
0.685704
97a1025a66e7548cd8f4364278950a6e50b1d7e5
88
tsx
TypeScript
node_modules/react-line-awesome/src/icons/BattleNetIcon.tsx
daroOkpeku/asset-management
d9f9e90917807bdd069793b021e0129dccc1e40f
[ "MIT" ]
null
null
null
node_modules/react-line-awesome/src/icons/BattleNetIcon.tsx
daroOkpeku/asset-management
d9f9e90917807bdd069793b021e0129dccc1e40f
[ "MIT" ]
null
null
null
node_modules/react-line-awesome/src/icons/BattleNetIcon.tsx
daroOkpeku/asset-management
d9f9e90917807bdd069793b021e0129dccc1e40f
[ "MIT" ]
null
null
null
import createIcon from './../createIcon' export default createIcon('la la-battle-net')
22
45
0.75
dba2e89400d7bb9b425787ea08aeb8b7f2f09850
671,402
asm
Assembly
kernel.asm
srally/CS350
8032cb8bbcda6293e572f820868b8a442f684720
[ "MIT-0" ]
null
null
null
kernel.asm
srally/CS350
8032cb8bbcda6293e572f820868b8a442f684720
[ "MIT-0" ]
null
null
null
kernel.asm
srally/CS350
8032cb8bbcda6293e572f820868b8a442f684720
[ "MIT-0" ]
null
null
null
kernel: file format elf32-i386 Disassembly of section .text: 80100000 <multiboot_header>: 80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh 80100006: 00 00 add %al,(%eax) 80100008: fe 4f 52 decb 0x52(%edi) 8010000b: e4 .byte 0xe4 8010000c <entry>: # Entering xv6 on boot processor, with paging off. .globl entry entry: # Turn on page size extension for 4Mbyte pages movl %cr4, %eax 8010000c: 0f 20 e0 mov %cr4,%eax orl $(CR4_PSE), %eax 8010000f: 83 c8 10 or $0x10,%eax movl %eax, %cr4 80100012: 0f 22 e0 mov %eax,%cr4 # Set page directory movl $(V2P_WO(entrypgdir)), %eax 80100015: b8 00 a0 10 00 mov $0x10a000,%eax movl %eax, %cr3 8010001a: 0f 22 d8 mov %eax,%cr3 # Turn on paging. movl %cr0, %eax 8010001d: 0f 20 c0 mov %cr0,%eax orl $(CR0_PG|CR0_WP), %eax 80100020: 0d 00 00 01 80 or $0x80010000,%eax movl %eax, %cr0 80100025: 0f 22 c0 mov %eax,%cr0 # Set up the stack pointer. movl $(stack + KSTACKSIZE), %esp 80100028: bc 50 c6 10 80 mov $0x8010c650,%esp # Jump to main(), and switch to executing at # high addresses. The indirect call is needed because # the assembler produces a PC-relative instruction # for a direct jump. mov $main, %eax 8010002d: b8 98 38 10 80 mov $0x80103898,%eax jmp *%eax 80100032: ff e0 jmp *%eax 80100034 <binit>: struct buf head; } bcache; void binit(void) { 80100034: 55 push %ebp 80100035: 89 e5 mov %esp,%ebp 80100037: 83 ec 18 sub $0x18,%esp struct buf *b; initlock(&bcache.lock, "bcache"); 8010003a: 83 ec 08 sub $0x8,%esp 8010003d: 68 70 85 10 80 push $0x80108570 80100042: 68 60 c6 10 80 push $0x8010c660 80100047: e8 d6 4f 00 00 call 80105022 <initlock> 8010004c: 83 c4 10 add $0x10,%esp //PAGEBREAK! // Create linked list of buffers bcache.head.prev = &bcache.head; 8010004f: c7 05 70 05 11 80 64 movl $0x80110564,0x80110570 80100056: 05 11 80 bcache.head.next = &bcache.head; 80100059: c7 05 74 05 11 80 64 movl $0x80110564,0x80110574 80100060: 05 11 80 for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 80100063: c7 45 f4 94 c6 10 80 movl $0x8010c694,-0xc(%ebp) 8010006a: eb 3a jmp 801000a6 <binit+0x72> b->next = bcache.head.next; 8010006c: 8b 15 74 05 11 80 mov 0x80110574,%edx 80100072: 8b 45 f4 mov -0xc(%ebp),%eax 80100075: 89 50 10 mov %edx,0x10(%eax) b->prev = &bcache.head; 80100078: 8b 45 f4 mov -0xc(%ebp),%eax 8010007b: c7 40 0c 64 05 11 80 movl $0x80110564,0xc(%eax) b->dev = -1; 80100082: 8b 45 f4 mov -0xc(%ebp),%eax 80100085: c7 40 04 ff ff ff ff movl $0xffffffff,0x4(%eax) bcache.head.next->prev = b; 8010008c: a1 74 05 11 80 mov 0x80110574,%eax 80100091: 8b 55 f4 mov -0xc(%ebp),%edx 80100094: 89 50 0c mov %edx,0xc(%eax) bcache.head.next = b; 80100097: 8b 45 f4 mov -0xc(%ebp),%eax 8010009a: a3 74 05 11 80 mov %eax,0x80110574 for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 8010009f: 81 45 f4 18 02 00 00 addl $0x218,-0xc(%ebp) 801000a6: b8 64 05 11 80 mov $0x80110564,%eax 801000ab: 39 45 f4 cmp %eax,-0xc(%ebp) 801000ae: 72 bc jb 8010006c <binit+0x38> } } 801000b0: 90 nop 801000b1: c9 leave 801000b2: c3 ret 801000b3 <bget>: // Look through buffer cache for block on device dev. // If not found, allocate a buffer. // In either case, return B_BUSY buffer. static struct buf* bget(uint dev, uint blockno) { 801000b3: 55 push %ebp 801000b4: 89 e5 mov %esp,%ebp 801000b6: 83 ec 18 sub $0x18,%esp struct buf *b; acquire(&bcache.lock); 801000b9: 83 ec 0c sub $0xc,%esp 801000bc: 68 60 c6 10 80 push $0x8010c660 801000c1: e8 7e 4f 00 00 call 80105044 <acquire> 801000c6: 83 c4 10 add $0x10,%esp loop: // Is the block already cached? for(b = bcache.head.next; b != &bcache.head; b = b->next){ 801000c9: a1 74 05 11 80 mov 0x80110574,%eax 801000ce: 89 45 f4 mov %eax,-0xc(%ebp) 801000d1: eb 67 jmp 8010013a <bget+0x87> if(b->dev == dev && b->blockno == blockno){ 801000d3: 8b 45 f4 mov -0xc(%ebp),%eax 801000d6: 8b 40 04 mov 0x4(%eax),%eax 801000d9: 39 45 08 cmp %eax,0x8(%ebp) 801000dc: 75 53 jne 80100131 <bget+0x7e> 801000de: 8b 45 f4 mov -0xc(%ebp),%eax 801000e1: 8b 40 08 mov 0x8(%eax),%eax 801000e4: 39 45 0c cmp %eax,0xc(%ebp) 801000e7: 75 48 jne 80100131 <bget+0x7e> if(!(b->flags & B_BUSY)){ 801000e9: 8b 45 f4 mov -0xc(%ebp),%eax 801000ec: 8b 00 mov (%eax),%eax 801000ee: 83 e0 01 and $0x1,%eax 801000f1: 85 c0 test %eax,%eax 801000f3: 75 27 jne 8010011c <bget+0x69> b->flags |= B_BUSY; 801000f5: 8b 45 f4 mov -0xc(%ebp),%eax 801000f8: 8b 00 mov (%eax),%eax 801000fa: 83 c8 01 or $0x1,%eax 801000fd: 89 c2 mov %eax,%edx 801000ff: 8b 45 f4 mov -0xc(%ebp),%eax 80100102: 89 10 mov %edx,(%eax) release(&bcache.lock); 80100104: 83 ec 0c sub $0xc,%esp 80100107: 68 60 c6 10 80 push $0x8010c660 8010010c: e8 9a 4f 00 00 call 801050ab <release> 80100111: 83 c4 10 add $0x10,%esp return b; 80100114: 8b 45 f4 mov -0xc(%ebp),%eax 80100117: e9 98 00 00 00 jmp 801001b4 <bget+0x101> } sleep(b, &bcache.lock); 8010011c: 83 ec 08 sub $0x8,%esp 8010011f: 68 60 c6 10 80 push $0x8010c660 80100124: ff 75 f4 pushl -0xc(%ebp) 80100127: e8 1f 4c 00 00 call 80104d4b <sleep> 8010012c: 83 c4 10 add $0x10,%esp goto loop; 8010012f: eb 98 jmp 801000c9 <bget+0x16> for(b = bcache.head.next; b != &bcache.head; b = b->next){ 80100131: 8b 45 f4 mov -0xc(%ebp),%eax 80100134: 8b 40 10 mov 0x10(%eax),%eax 80100137: 89 45 f4 mov %eax,-0xc(%ebp) 8010013a: 81 7d f4 64 05 11 80 cmpl $0x80110564,-0xc(%ebp) 80100141: 75 90 jne 801000d3 <bget+0x20> } // Not cached; recycle some non-busy and clean buffer. // "clean" because B_DIRTY and !B_BUSY means log.c // hasn't yet committed the changes to the buffer. for(b = bcache.head.prev; b != &bcache.head; b = b->prev){ 80100143: a1 70 05 11 80 mov 0x80110570,%eax 80100148: 89 45 f4 mov %eax,-0xc(%ebp) 8010014b: eb 51 jmp 8010019e <bget+0xeb> if((b->flags & B_BUSY) == 0 && (b->flags & B_DIRTY) == 0){ 8010014d: 8b 45 f4 mov -0xc(%ebp),%eax 80100150: 8b 00 mov (%eax),%eax 80100152: 83 e0 01 and $0x1,%eax 80100155: 85 c0 test %eax,%eax 80100157: 75 3c jne 80100195 <bget+0xe2> 80100159: 8b 45 f4 mov -0xc(%ebp),%eax 8010015c: 8b 00 mov (%eax),%eax 8010015e: 83 e0 04 and $0x4,%eax 80100161: 85 c0 test %eax,%eax 80100163: 75 30 jne 80100195 <bget+0xe2> b->dev = dev; 80100165: 8b 45 f4 mov -0xc(%ebp),%eax 80100168: 8b 55 08 mov 0x8(%ebp),%edx 8010016b: 89 50 04 mov %edx,0x4(%eax) b->blockno = blockno; 8010016e: 8b 45 f4 mov -0xc(%ebp),%eax 80100171: 8b 55 0c mov 0xc(%ebp),%edx 80100174: 89 50 08 mov %edx,0x8(%eax) b->flags = B_BUSY; 80100177: 8b 45 f4 mov -0xc(%ebp),%eax 8010017a: c7 00 01 00 00 00 movl $0x1,(%eax) release(&bcache.lock); 80100180: 83 ec 0c sub $0xc,%esp 80100183: 68 60 c6 10 80 push $0x8010c660 80100188: e8 1e 4f 00 00 call 801050ab <release> 8010018d: 83 c4 10 add $0x10,%esp return b; 80100190: 8b 45 f4 mov -0xc(%ebp),%eax 80100193: eb 1f jmp 801001b4 <bget+0x101> for(b = bcache.head.prev; b != &bcache.head; b = b->prev){ 80100195: 8b 45 f4 mov -0xc(%ebp),%eax 80100198: 8b 40 0c mov 0xc(%eax),%eax 8010019b: 89 45 f4 mov %eax,-0xc(%ebp) 8010019e: 81 7d f4 64 05 11 80 cmpl $0x80110564,-0xc(%ebp) 801001a5: 75 a6 jne 8010014d <bget+0x9a> } } panic("bget: no buffers"); 801001a7: 83 ec 0c sub $0xc,%esp 801001aa: 68 77 85 10 80 push $0x80108577 801001af: e8 b3 03 00 00 call 80100567 <panic> } 801001b4: c9 leave 801001b5: c3 ret 801001b6 <bread>: // Return a B_BUSY buf with the contents of the indicated block. struct buf* bread(uint dev, uint blockno) { 801001b6: 55 push %ebp 801001b7: 89 e5 mov %esp,%ebp 801001b9: 83 ec 18 sub $0x18,%esp struct buf *b; b = bget(dev, blockno); 801001bc: 83 ec 08 sub $0x8,%esp 801001bf: ff 75 0c pushl 0xc(%ebp) 801001c2: ff 75 08 pushl 0x8(%ebp) 801001c5: e8 e9 fe ff ff call 801000b3 <bget> 801001ca: 83 c4 10 add $0x10,%esp 801001cd: 89 45 f4 mov %eax,-0xc(%ebp) if(!(b->flags & B_VALID)) { 801001d0: 8b 45 f4 mov -0xc(%ebp),%eax 801001d3: 8b 00 mov (%eax),%eax 801001d5: 83 e0 02 and $0x2,%eax 801001d8: 85 c0 test %eax,%eax 801001da: 75 0e jne 801001ea <bread+0x34> iderw(b); 801001dc: 83 ec 0c sub $0xc,%esp 801001df: ff 75 f4 pushl -0xc(%ebp) 801001e2: e8 2a 27 00 00 call 80102911 <iderw> 801001e7: 83 c4 10 add $0x10,%esp } return b; 801001ea: 8b 45 f4 mov -0xc(%ebp),%eax } 801001ed: c9 leave 801001ee: c3 ret 801001ef <bwrite>: // Write b's contents to disk. Must be B_BUSY. void bwrite(struct buf *b) { 801001ef: 55 push %ebp 801001f0: 89 e5 mov %esp,%ebp 801001f2: 83 ec 08 sub $0x8,%esp if((b->flags & B_BUSY) == 0) 801001f5: 8b 45 08 mov 0x8(%ebp),%eax 801001f8: 8b 00 mov (%eax),%eax 801001fa: 83 e0 01 and $0x1,%eax 801001fd: 85 c0 test %eax,%eax 801001ff: 75 0d jne 8010020e <bwrite+0x1f> panic("bwrite"); 80100201: 83 ec 0c sub $0xc,%esp 80100204: 68 88 85 10 80 push $0x80108588 80100209: e8 59 03 00 00 call 80100567 <panic> b->flags |= B_DIRTY; 8010020e: 8b 45 08 mov 0x8(%ebp),%eax 80100211: 8b 00 mov (%eax),%eax 80100213: 83 c8 04 or $0x4,%eax 80100216: 89 c2 mov %eax,%edx 80100218: 8b 45 08 mov 0x8(%ebp),%eax 8010021b: 89 10 mov %edx,(%eax) iderw(b); 8010021d: 83 ec 0c sub $0xc,%esp 80100220: ff 75 08 pushl 0x8(%ebp) 80100223: e8 e9 26 00 00 call 80102911 <iderw> 80100228: 83 c4 10 add $0x10,%esp } 8010022b: 90 nop 8010022c: c9 leave 8010022d: c3 ret 8010022e <brelse>: // Release a B_BUSY buffer. // Move to the head of the MRU list. void brelse(struct buf *b) { 8010022e: 55 push %ebp 8010022f: 89 e5 mov %esp,%ebp 80100231: 83 ec 08 sub $0x8,%esp if((b->flags & B_BUSY) == 0) 80100234: 8b 45 08 mov 0x8(%ebp),%eax 80100237: 8b 00 mov (%eax),%eax 80100239: 83 e0 01 and $0x1,%eax 8010023c: 85 c0 test %eax,%eax 8010023e: 75 0d jne 8010024d <brelse+0x1f> panic("brelse"); 80100240: 83 ec 0c sub $0xc,%esp 80100243: 68 8f 85 10 80 push $0x8010858f 80100248: e8 1a 03 00 00 call 80100567 <panic> acquire(&bcache.lock); 8010024d: 83 ec 0c sub $0xc,%esp 80100250: 68 60 c6 10 80 push $0x8010c660 80100255: e8 ea 4d 00 00 call 80105044 <acquire> 8010025a: 83 c4 10 add $0x10,%esp b->next->prev = b->prev; 8010025d: 8b 45 08 mov 0x8(%ebp),%eax 80100260: 8b 40 10 mov 0x10(%eax),%eax 80100263: 8b 55 08 mov 0x8(%ebp),%edx 80100266: 8b 52 0c mov 0xc(%edx),%edx 80100269: 89 50 0c mov %edx,0xc(%eax) b->prev->next = b->next; 8010026c: 8b 45 08 mov 0x8(%ebp),%eax 8010026f: 8b 40 0c mov 0xc(%eax),%eax 80100272: 8b 55 08 mov 0x8(%ebp),%edx 80100275: 8b 52 10 mov 0x10(%edx),%edx 80100278: 89 50 10 mov %edx,0x10(%eax) b->next = bcache.head.next; 8010027b: 8b 15 74 05 11 80 mov 0x80110574,%edx 80100281: 8b 45 08 mov 0x8(%ebp),%eax 80100284: 89 50 10 mov %edx,0x10(%eax) b->prev = &bcache.head; 80100287: 8b 45 08 mov 0x8(%ebp),%eax 8010028a: c7 40 0c 64 05 11 80 movl $0x80110564,0xc(%eax) bcache.head.next->prev = b; 80100291: a1 74 05 11 80 mov 0x80110574,%eax 80100296: 8b 55 08 mov 0x8(%ebp),%edx 80100299: 89 50 0c mov %edx,0xc(%eax) bcache.head.next = b; 8010029c: 8b 45 08 mov 0x8(%ebp),%eax 8010029f: a3 74 05 11 80 mov %eax,0x80110574 b->flags &= ~B_BUSY; 801002a4: 8b 45 08 mov 0x8(%ebp),%eax 801002a7: 8b 00 mov (%eax),%eax 801002a9: 83 e0 fe and $0xfffffffe,%eax 801002ac: 89 c2 mov %eax,%edx 801002ae: 8b 45 08 mov 0x8(%ebp),%eax 801002b1: 89 10 mov %edx,(%eax) wakeup(b); 801002b3: 83 ec 0c sub $0xc,%esp 801002b6: ff 75 08 pushl 0x8(%ebp) 801002b9: e8 78 4b 00 00 call 80104e36 <wakeup> 801002be: 83 c4 10 add $0x10,%esp release(&bcache.lock); 801002c1: 83 ec 0c sub $0xc,%esp 801002c4: 68 60 c6 10 80 push $0x8010c660 801002c9: e8 dd 4d 00 00 call 801050ab <release> 801002ce: 83 c4 10 add $0x10,%esp } 801002d1: 90 nop 801002d2: c9 leave 801002d3: c3 ret 801002d4 <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 801002d4: 55 push %ebp 801002d5: 89 e5 mov %esp,%ebp 801002d7: 83 ec 14 sub $0x14,%esp 801002da: 8b 45 08 mov 0x8(%ebp),%eax 801002dd: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801002e1: 0f b7 45 ec movzwl -0x14(%ebp),%eax 801002e5: 89 c2 mov %eax,%edx 801002e7: ec in (%dx),%al 801002e8: 88 45 ff mov %al,-0x1(%ebp) return data; 801002eb: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 801002ef: c9 leave 801002f0: c3 ret 801002f1 <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 801002f1: 55 push %ebp 801002f2: 89 e5 mov %esp,%ebp 801002f4: 83 ec 08 sub $0x8,%esp 801002f7: 8b 45 08 mov 0x8(%ebp),%eax 801002fa: 8b 55 0c mov 0xc(%ebp),%edx 801002fd: 66 89 45 fc mov %ax,-0x4(%ebp) 80100301: 89 d0 mov %edx,%eax 80100303: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80100306: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 8010030a: 0f b7 55 fc movzwl -0x4(%ebp),%edx 8010030e: ee out %al,(%dx) } 8010030f: 90 nop 80100310: c9 leave 80100311: c3 ret 80100312 <cli>: asm volatile("movw %0, %%gs" : : "r" (v)); } static inline void cli(void) { 80100312: 55 push %ebp 80100313: 89 e5 mov %esp,%ebp asm volatile("cli"); 80100315: fa cli } 80100316: 90 nop 80100317: 5d pop %ebp 80100318: c3 ret 80100319 <printint>: int locking; } cons; static void printint(int xx, int base, int sign) { 80100319: 55 push %ebp 8010031a: 89 e5 mov %esp,%ebp 8010031c: 83 ec 28 sub $0x28,%esp static char digits[] = "0123456789abcdef"; char buf[16]; int i; uint x; if(sign && (sign = xx < 0)) 8010031f: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80100323: 74 1c je 80100341 <printint+0x28> 80100325: 8b 45 08 mov 0x8(%ebp),%eax 80100328: c1 e8 1f shr $0x1f,%eax 8010032b: 0f b6 c0 movzbl %al,%eax 8010032e: 89 45 10 mov %eax,0x10(%ebp) 80100331: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80100335: 74 0a je 80100341 <printint+0x28> x = -xx; 80100337: 8b 45 08 mov 0x8(%ebp),%eax 8010033a: f7 d8 neg %eax 8010033c: 89 45 f0 mov %eax,-0x10(%ebp) 8010033f: eb 06 jmp 80100347 <printint+0x2e> else x = xx; 80100341: 8b 45 08 mov 0x8(%ebp),%eax 80100344: 89 45 f0 mov %eax,-0x10(%ebp) i = 0; 80100347: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 8010034e: 8b 4d 0c mov 0xc(%ebp),%ecx 80100351: 8b 45 f0 mov -0x10(%ebp),%eax 80100354: ba 00 00 00 00 mov $0x0,%edx 80100359: f7 f1 div %ecx 8010035b: 89 d1 mov %edx,%ecx 8010035d: 8b 45 f4 mov -0xc(%ebp),%eax 80100360: 8d 50 01 lea 0x1(%eax),%edx 80100363: 89 55 f4 mov %edx,-0xc(%ebp) 80100366: 0f b6 91 04 90 10 80 movzbl -0x7fef6ffc(%ecx),%edx 8010036d: 88 54 05 e0 mov %dl,-0x20(%ebp,%eax,1) }while((x /= base) != 0); 80100371: 8b 4d 0c mov 0xc(%ebp),%ecx 80100374: 8b 45 f0 mov -0x10(%ebp),%eax 80100377: ba 00 00 00 00 mov $0x0,%edx 8010037c: f7 f1 div %ecx 8010037e: 89 45 f0 mov %eax,-0x10(%ebp) 80100381: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80100385: 75 c7 jne 8010034e <printint+0x35> if(sign) 80100387: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 8010038b: 74 2a je 801003b7 <printint+0x9e> buf[i++] = '-'; 8010038d: 8b 45 f4 mov -0xc(%ebp),%eax 80100390: 8d 50 01 lea 0x1(%eax),%edx 80100393: 89 55 f4 mov %edx,-0xc(%ebp) 80100396: c6 44 05 e0 2d movb $0x2d,-0x20(%ebp,%eax,1) while(--i >= 0) 8010039b: eb 1a jmp 801003b7 <printint+0x9e> consputc(buf[i]); 8010039d: 8d 55 e0 lea -0x20(%ebp),%edx 801003a0: 8b 45 f4 mov -0xc(%ebp),%eax 801003a3: 01 d0 add %edx,%eax 801003a5: 0f b6 00 movzbl (%eax),%eax 801003a8: 0f be c0 movsbl %al,%eax 801003ab: 83 ec 0c sub $0xc,%esp 801003ae: 50 push %eax 801003af: e8 e7 03 00 00 call 8010079b <consputc> 801003b4: 83 c4 10 add $0x10,%esp while(--i >= 0) 801003b7: 83 6d f4 01 subl $0x1,-0xc(%ebp) 801003bb: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801003bf: 79 dc jns 8010039d <printint+0x84> } 801003c1: 90 nop 801003c2: c9 leave 801003c3: c3 ret 801003c4 <cprintf>: //PAGEBREAK: 50 // Print to the console. only understands %d, %x, %p, %s. void cprintf(char *fmt, ...) { 801003c4: 55 push %ebp 801003c5: 89 e5 mov %esp,%ebp 801003c7: 83 ec 28 sub $0x28,%esp int i, c, locking; uint *argp; char *s; locking = cons.locking; 801003ca: a1 f4 b5 10 80 mov 0x8010b5f4,%eax 801003cf: 89 45 e8 mov %eax,-0x18(%ebp) if(locking) 801003d2: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 801003d6: 74 10 je 801003e8 <cprintf+0x24> acquire(&cons.lock); 801003d8: 83 ec 0c sub $0xc,%esp 801003db: 68 c0 b5 10 80 push $0x8010b5c0 801003e0: e8 5f 4c 00 00 call 80105044 <acquire> 801003e5: 83 c4 10 add $0x10,%esp if (fmt == 0) 801003e8: 8b 45 08 mov 0x8(%ebp),%eax 801003eb: 85 c0 test %eax,%eax 801003ed: 75 0d jne 801003fc <cprintf+0x38> panic("null fmt"); 801003ef: 83 ec 0c sub $0xc,%esp 801003f2: 68 96 85 10 80 push $0x80108596 801003f7: e8 6b 01 00 00 call 80100567 <panic> argp = (uint*)(void*)(&fmt + 1); 801003fc: 8d 45 0c lea 0xc(%ebp),%eax 801003ff: 89 45 f0 mov %eax,-0x10(%ebp) for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 80100402: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80100409: e9 1d 01 00 00 jmp 8010052b <cprintf+0x167> if(c != '%'){ 8010040e: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 80100412: 74 13 je 80100427 <cprintf+0x63> consputc(c); 80100414: 83 ec 0c sub $0xc,%esp 80100417: ff 75 e4 pushl -0x1c(%ebp) 8010041a: e8 7c 03 00 00 call 8010079b <consputc> 8010041f: 83 c4 10 add $0x10,%esp continue; 80100422: e9 00 01 00 00 jmp 80100527 <cprintf+0x163> } c = fmt[++i] & 0xff; 80100427: 8b 55 08 mov 0x8(%ebp),%edx 8010042a: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010042e: 8b 45 f4 mov -0xc(%ebp),%eax 80100431: 01 d0 add %edx,%eax 80100433: 0f b6 00 movzbl (%eax),%eax 80100436: 0f be c0 movsbl %al,%eax 80100439: 25 ff 00 00 00 and $0xff,%eax 8010043e: 89 45 e4 mov %eax,-0x1c(%ebp) if(c == 0) 80100441: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 80100445: 0f 84 02 01 00 00 je 8010054d <cprintf+0x189> break; switch(c){ 8010044b: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 8010044f: 74 4c je 8010049d <cprintf+0xd9> 80100451: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 80100455: 7f 15 jg 8010046c <cprintf+0xa8> 80100457: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 8010045b: 0f 84 9b 00 00 00 je 801004fc <cprintf+0x138> 80100461: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 80100465: 74 16 je 8010047d <cprintf+0xb9> 80100467: e9 9f 00 00 00 jmp 8010050b <cprintf+0x147> 8010046c: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 80100470: 74 48 je 801004ba <cprintf+0xf6> 80100472: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 80100476: 74 25 je 8010049d <cprintf+0xd9> 80100478: e9 8e 00 00 00 jmp 8010050b <cprintf+0x147> case 'd': printint(*argp++, 10, 1); 8010047d: 8b 45 f0 mov -0x10(%ebp),%eax 80100480: 8d 50 04 lea 0x4(%eax),%edx 80100483: 89 55 f0 mov %edx,-0x10(%ebp) 80100486: 8b 00 mov (%eax),%eax 80100488: 83 ec 04 sub $0x4,%esp 8010048b: 6a 01 push $0x1 8010048d: 6a 0a push $0xa 8010048f: 50 push %eax 80100490: e8 84 fe ff ff call 80100319 <printint> 80100495: 83 c4 10 add $0x10,%esp break; 80100498: e9 8a 00 00 00 jmp 80100527 <cprintf+0x163> case 'x': case 'p': printint(*argp++, 16, 0); 8010049d: 8b 45 f0 mov -0x10(%ebp),%eax 801004a0: 8d 50 04 lea 0x4(%eax),%edx 801004a3: 89 55 f0 mov %edx,-0x10(%ebp) 801004a6: 8b 00 mov (%eax),%eax 801004a8: 83 ec 04 sub $0x4,%esp 801004ab: 6a 00 push $0x0 801004ad: 6a 10 push $0x10 801004af: 50 push %eax 801004b0: e8 64 fe ff ff call 80100319 <printint> 801004b5: 83 c4 10 add $0x10,%esp break; 801004b8: eb 6d jmp 80100527 <cprintf+0x163> case 's': if((s = (char*)*argp++) == 0) 801004ba: 8b 45 f0 mov -0x10(%ebp),%eax 801004bd: 8d 50 04 lea 0x4(%eax),%edx 801004c0: 89 55 f0 mov %edx,-0x10(%ebp) 801004c3: 8b 00 mov (%eax),%eax 801004c5: 89 45 ec mov %eax,-0x14(%ebp) 801004c8: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 801004cc: 75 22 jne 801004f0 <cprintf+0x12c> s = "(null)"; 801004ce: c7 45 ec 9f 85 10 80 movl $0x8010859f,-0x14(%ebp) for(; *s; s++) 801004d5: eb 19 jmp 801004f0 <cprintf+0x12c> consputc(*s); 801004d7: 8b 45 ec mov -0x14(%ebp),%eax 801004da: 0f b6 00 movzbl (%eax),%eax 801004dd: 0f be c0 movsbl %al,%eax 801004e0: 83 ec 0c sub $0xc,%esp 801004e3: 50 push %eax 801004e4: e8 b2 02 00 00 call 8010079b <consputc> 801004e9: 83 c4 10 add $0x10,%esp for(; *s; s++) 801004ec: 83 45 ec 01 addl $0x1,-0x14(%ebp) 801004f0: 8b 45 ec mov -0x14(%ebp),%eax 801004f3: 0f b6 00 movzbl (%eax),%eax 801004f6: 84 c0 test %al,%al 801004f8: 75 dd jne 801004d7 <cprintf+0x113> break; 801004fa: eb 2b jmp 80100527 <cprintf+0x163> case '%': consputc('%'); 801004fc: 83 ec 0c sub $0xc,%esp 801004ff: 6a 25 push $0x25 80100501: e8 95 02 00 00 call 8010079b <consputc> 80100506: 83 c4 10 add $0x10,%esp break; 80100509: eb 1c jmp 80100527 <cprintf+0x163> default: // Print unknown % sequence to draw attention. consputc('%'); 8010050b: 83 ec 0c sub $0xc,%esp 8010050e: 6a 25 push $0x25 80100510: e8 86 02 00 00 call 8010079b <consputc> 80100515: 83 c4 10 add $0x10,%esp consputc(c); 80100518: 83 ec 0c sub $0xc,%esp 8010051b: ff 75 e4 pushl -0x1c(%ebp) 8010051e: e8 78 02 00 00 call 8010079b <consputc> 80100523: 83 c4 10 add $0x10,%esp break; 80100526: 90 nop for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 80100527: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010052b: 8b 55 08 mov 0x8(%ebp),%edx 8010052e: 8b 45 f4 mov -0xc(%ebp),%eax 80100531: 01 d0 add %edx,%eax 80100533: 0f b6 00 movzbl (%eax),%eax 80100536: 0f be c0 movsbl %al,%eax 80100539: 25 ff 00 00 00 and $0xff,%eax 8010053e: 89 45 e4 mov %eax,-0x1c(%ebp) 80100541: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 80100545: 0f 85 c3 fe ff ff jne 8010040e <cprintf+0x4a> 8010054b: eb 01 jmp 8010054e <cprintf+0x18a> break; 8010054d: 90 nop } } if(locking) 8010054e: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 80100552: 74 10 je 80100564 <cprintf+0x1a0> release(&cons.lock); 80100554: 83 ec 0c sub $0xc,%esp 80100557: 68 c0 b5 10 80 push $0x8010b5c0 8010055c: e8 4a 4b 00 00 call 801050ab <release> 80100561: 83 c4 10 add $0x10,%esp } 80100564: 90 nop 80100565: c9 leave 80100566: c3 ret 80100567 <panic>: void panic(char *s) { 80100567: 55 push %ebp 80100568: 89 e5 mov %esp,%ebp 8010056a: 83 ec 38 sub $0x38,%esp int i; uint pcs[10]; cli(); 8010056d: e8 a0 fd ff ff call 80100312 <cli> cons.locking = 0; 80100572: c7 05 f4 b5 10 80 00 movl $0x0,0x8010b5f4 80100579: 00 00 00 cprintf("cpu%d: panic: ", cpu->id); 8010057c: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80100582: 0f b6 00 movzbl (%eax),%eax 80100585: 0f b6 c0 movzbl %al,%eax 80100588: 83 ec 08 sub $0x8,%esp 8010058b: 50 push %eax 8010058c: 68 a6 85 10 80 push $0x801085a6 80100591: e8 2e fe ff ff call 801003c4 <cprintf> 80100596: 83 c4 10 add $0x10,%esp cprintf(s); 80100599: 8b 45 08 mov 0x8(%ebp),%eax 8010059c: 83 ec 0c sub $0xc,%esp 8010059f: 50 push %eax 801005a0: e8 1f fe ff ff call 801003c4 <cprintf> 801005a5: 83 c4 10 add $0x10,%esp cprintf("\n"); 801005a8: 83 ec 0c sub $0xc,%esp 801005ab: 68 b5 85 10 80 push $0x801085b5 801005b0: e8 0f fe ff ff call 801003c4 <cprintf> 801005b5: 83 c4 10 add $0x10,%esp getcallerpcs(&s, pcs); 801005b8: 83 ec 08 sub $0x8,%esp 801005bb: 8d 45 cc lea -0x34(%ebp),%eax 801005be: 50 push %eax 801005bf: 8d 45 08 lea 0x8(%ebp),%eax 801005c2: 50 push %eax 801005c3: e8 35 4b 00 00 call 801050fd <getcallerpcs> 801005c8: 83 c4 10 add $0x10,%esp for(i=0; i<10; i++) 801005cb: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801005d2: eb 1c jmp 801005f0 <panic+0x89> cprintf(" %p", pcs[i]); 801005d4: 8b 45 f4 mov -0xc(%ebp),%eax 801005d7: 8b 44 85 cc mov -0x34(%ebp,%eax,4),%eax 801005db: 83 ec 08 sub $0x8,%esp 801005de: 50 push %eax 801005df: 68 b7 85 10 80 push $0x801085b7 801005e4: e8 db fd ff ff call 801003c4 <cprintf> 801005e9: 83 c4 10 add $0x10,%esp for(i=0; i<10; i++) 801005ec: 83 45 f4 01 addl $0x1,-0xc(%ebp) 801005f0: 83 7d f4 09 cmpl $0x9,-0xc(%ebp) 801005f4: 7e de jle 801005d4 <panic+0x6d> panicked = 1; // freeze other CPU 801005f6: c7 05 a0 b5 10 80 01 movl $0x1,0x8010b5a0 801005fd: 00 00 00 for(;;) 80100600: eb fe jmp 80100600 <panic+0x99> 80100602 <cgaputc>: #define CRTPORT 0x3d4 static ushort *crt = (ushort*)P2V(0xb8000); // CGA memory static void cgaputc(int c) { 80100602: 55 push %ebp 80100603: 89 e5 mov %esp,%ebp 80100605: 53 push %ebx 80100606: 83 ec 14 sub $0x14,%esp int pos; // Cursor position: col + 80*row. outb(CRTPORT, 14); 80100609: 6a 0e push $0xe 8010060b: 68 d4 03 00 00 push $0x3d4 80100610: e8 dc fc ff ff call 801002f1 <outb> 80100615: 83 c4 08 add $0x8,%esp pos = inb(CRTPORT+1) << 8; 80100618: 68 d5 03 00 00 push $0x3d5 8010061d: e8 b2 fc ff ff call 801002d4 <inb> 80100622: 83 c4 04 add $0x4,%esp 80100625: 0f b6 c0 movzbl %al,%eax 80100628: c1 e0 08 shl $0x8,%eax 8010062b: 89 45 f4 mov %eax,-0xc(%ebp) outb(CRTPORT, 15); 8010062e: 6a 0f push $0xf 80100630: 68 d4 03 00 00 push $0x3d4 80100635: e8 b7 fc ff ff call 801002f1 <outb> 8010063a: 83 c4 08 add $0x8,%esp pos |= inb(CRTPORT+1); 8010063d: 68 d5 03 00 00 push $0x3d5 80100642: e8 8d fc ff ff call 801002d4 <inb> 80100647: 83 c4 04 add $0x4,%esp 8010064a: 0f b6 c0 movzbl %al,%eax 8010064d: 09 45 f4 or %eax,-0xc(%ebp) if(c == '\n') 80100650: 83 7d 08 0a cmpl $0xa,0x8(%ebp) 80100654: 75 30 jne 80100686 <cgaputc+0x84> pos += 80 - pos%80; 80100656: 8b 4d f4 mov -0xc(%ebp),%ecx 80100659: ba 67 66 66 66 mov $0x66666667,%edx 8010065e: 89 c8 mov %ecx,%eax 80100660: f7 ea imul %edx 80100662: c1 fa 05 sar $0x5,%edx 80100665: 89 c8 mov %ecx,%eax 80100667: c1 f8 1f sar $0x1f,%eax 8010066a: 29 c2 sub %eax,%edx 8010066c: 89 d0 mov %edx,%eax 8010066e: c1 e0 02 shl $0x2,%eax 80100671: 01 d0 add %edx,%eax 80100673: c1 e0 04 shl $0x4,%eax 80100676: 29 c1 sub %eax,%ecx 80100678: 89 ca mov %ecx,%edx 8010067a: b8 50 00 00 00 mov $0x50,%eax 8010067f: 29 d0 sub %edx,%eax 80100681: 01 45 f4 add %eax,-0xc(%ebp) 80100684: eb 38 jmp 801006be <cgaputc+0xbc> else if(c == BACKSPACE){ 80100686: 81 7d 08 00 01 00 00 cmpl $0x100,0x8(%ebp) 8010068d: 75 0c jne 8010069b <cgaputc+0x99> if(pos > 0) --pos; 8010068f: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80100693: 7e 29 jle 801006be <cgaputc+0xbc> 80100695: 83 6d f4 01 subl $0x1,-0xc(%ebp) 80100699: eb 23 jmp 801006be <cgaputc+0xbc> } else crt[pos++] = (c&0xff) | 0x0700; // black on white 8010069b: 8b 45 08 mov 0x8(%ebp),%eax 8010069e: 0f b6 c0 movzbl %al,%eax 801006a1: 80 cc 07 or $0x7,%ah 801006a4: 89 c3 mov %eax,%ebx 801006a6: 8b 0d 00 90 10 80 mov 0x80109000,%ecx 801006ac: 8b 45 f4 mov -0xc(%ebp),%eax 801006af: 8d 50 01 lea 0x1(%eax),%edx 801006b2: 89 55 f4 mov %edx,-0xc(%ebp) 801006b5: 01 c0 add %eax,%eax 801006b7: 01 c8 add %ecx,%eax 801006b9: 89 da mov %ebx,%edx 801006bb: 66 89 10 mov %dx,(%eax) if(pos < 0 || pos > 25*80) 801006be: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801006c2: 78 09 js 801006cd <cgaputc+0xcb> 801006c4: 81 7d f4 d0 07 00 00 cmpl $0x7d0,-0xc(%ebp) 801006cb: 7e 0d jle 801006da <cgaputc+0xd8> panic("pos under/overflow"); 801006cd: 83 ec 0c sub $0xc,%esp 801006d0: 68 bb 85 10 80 push $0x801085bb 801006d5: e8 8d fe ff ff call 80100567 <panic> if((pos/80) >= 24){ // Scroll up. 801006da: 81 7d f4 7f 07 00 00 cmpl $0x77f,-0xc(%ebp) 801006e1: 7e 4c jle 8010072f <cgaputc+0x12d> memmove(crt, crt+80, sizeof(crt[0])*23*80); 801006e3: a1 00 90 10 80 mov 0x80109000,%eax 801006e8: 8d 90 a0 00 00 00 lea 0xa0(%eax),%edx 801006ee: a1 00 90 10 80 mov 0x80109000,%eax 801006f3: 83 ec 04 sub $0x4,%esp 801006f6: 68 60 0e 00 00 push $0xe60 801006fb: 52 push %edx 801006fc: 50 push %eax 801006fd: e8 64 4c 00 00 call 80105366 <memmove> 80100702: 83 c4 10 add $0x10,%esp pos -= 80; 80100705: 83 6d f4 50 subl $0x50,-0xc(%ebp) memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos)); 80100709: b8 80 07 00 00 mov $0x780,%eax 8010070e: 2b 45 f4 sub -0xc(%ebp),%eax 80100711: 8d 14 00 lea (%eax,%eax,1),%edx 80100714: a1 00 90 10 80 mov 0x80109000,%eax 80100719: 8b 4d f4 mov -0xc(%ebp),%ecx 8010071c: 01 c9 add %ecx,%ecx 8010071e: 01 c8 add %ecx,%eax 80100720: 83 ec 04 sub $0x4,%esp 80100723: 52 push %edx 80100724: 6a 00 push $0x0 80100726: 50 push %eax 80100727: e8 7b 4b 00 00 call 801052a7 <memset> 8010072c: 83 c4 10 add $0x10,%esp } outb(CRTPORT, 14); 8010072f: 83 ec 08 sub $0x8,%esp 80100732: 6a 0e push $0xe 80100734: 68 d4 03 00 00 push $0x3d4 80100739: e8 b3 fb ff ff call 801002f1 <outb> 8010073e: 83 c4 10 add $0x10,%esp outb(CRTPORT+1, pos>>8); 80100741: 8b 45 f4 mov -0xc(%ebp),%eax 80100744: c1 f8 08 sar $0x8,%eax 80100747: 0f b6 c0 movzbl %al,%eax 8010074a: 83 ec 08 sub $0x8,%esp 8010074d: 50 push %eax 8010074e: 68 d5 03 00 00 push $0x3d5 80100753: e8 99 fb ff ff call 801002f1 <outb> 80100758: 83 c4 10 add $0x10,%esp outb(CRTPORT, 15); 8010075b: 83 ec 08 sub $0x8,%esp 8010075e: 6a 0f push $0xf 80100760: 68 d4 03 00 00 push $0x3d4 80100765: e8 87 fb ff ff call 801002f1 <outb> 8010076a: 83 c4 10 add $0x10,%esp outb(CRTPORT+1, pos); 8010076d: 8b 45 f4 mov -0xc(%ebp),%eax 80100770: 0f b6 c0 movzbl %al,%eax 80100773: 83 ec 08 sub $0x8,%esp 80100776: 50 push %eax 80100777: 68 d5 03 00 00 push $0x3d5 8010077c: e8 70 fb ff ff call 801002f1 <outb> 80100781: 83 c4 10 add $0x10,%esp crt[pos] = ' ' | 0x0700; 80100784: a1 00 90 10 80 mov 0x80109000,%eax 80100789: 8b 55 f4 mov -0xc(%ebp),%edx 8010078c: 01 d2 add %edx,%edx 8010078e: 01 d0 add %edx,%eax 80100790: 66 c7 00 20 07 movw $0x720,(%eax) } 80100795: 90 nop 80100796: 8b 5d fc mov -0x4(%ebp),%ebx 80100799: c9 leave 8010079a: c3 ret 8010079b <consputc>: void consputc(int c) { 8010079b: 55 push %ebp 8010079c: 89 e5 mov %esp,%ebp 8010079e: 83 ec 08 sub $0x8,%esp if(panicked){ 801007a1: a1 a0 b5 10 80 mov 0x8010b5a0,%eax 801007a6: 85 c0 test %eax,%eax 801007a8: 74 07 je 801007b1 <consputc+0x16> cli(); 801007aa: e8 63 fb ff ff call 80100312 <cli> for(;;) 801007af: eb fe jmp 801007af <consputc+0x14> ; } if(c == BACKSPACE){ 801007b1: 81 7d 08 00 01 00 00 cmpl $0x100,0x8(%ebp) 801007b8: 75 29 jne 801007e3 <consputc+0x48> uartputc('\b'); uartputc(' '); uartputc('\b'); 801007ba: 83 ec 0c sub $0xc,%esp 801007bd: 6a 08 push $0x8 801007bf: e8 32 64 00 00 call 80106bf6 <uartputc> 801007c4: 83 c4 10 add $0x10,%esp 801007c7: 83 ec 0c sub $0xc,%esp 801007ca: 6a 20 push $0x20 801007cc: e8 25 64 00 00 call 80106bf6 <uartputc> 801007d1: 83 c4 10 add $0x10,%esp 801007d4: 83 ec 0c sub $0xc,%esp 801007d7: 6a 08 push $0x8 801007d9: e8 18 64 00 00 call 80106bf6 <uartputc> 801007de: 83 c4 10 add $0x10,%esp 801007e1: eb 0e jmp 801007f1 <consputc+0x56> } else uartputc(c); 801007e3: 83 ec 0c sub $0xc,%esp 801007e6: ff 75 08 pushl 0x8(%ebp) 801007e9: e8 08 64 00 00 call 80106bf6 <uartputc> 801007ee: 83 c4 10 add $0x10,%esp cgaputc(c); 801007f1: 83 ec 0c sub $0xc,%esp 801007f4: ff 75 08 pushl 0x8(%ebp) 801007f7: e8 06 fe ff ff call 80100602 <cgaputc> 801007fc: 83 c4 10 add $0x10,%esp } 801007ff: 90 nop 80100800: c9 leave 80100801: c3 ret 80100802 <consoleintr>: #define C(x) ((x)-'@') // Control-x void consoleintr(int (*getc)(void)) { 80100802: 55 push %ebp 80100803: 89 e5 mov %esp,%ebp 80100805: 83 ec 18 sub $0x18,%esp int c, doprocdump = 0; 80100808: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) acquire(&cons.lock); 8010080f: 83 ec 0c sub $0xc,%esp 80100812: 68 c0 b5 10 80 push $0x8010b5c0 80100817: e8 28 48 00 00 call 80105044 <acquire> 8010081c: 83 c4 10 add $0x10,%esp while((c = getc()) >= 0){ 8010081f: e9 46 01 00 00 jmp 8010096a <consoleintr+0x168> switch(c){ 80100824: 83 7d f0 10 cmpl $0x10,-0x10(%ebp) 80100828: 74 22 je 8010084c <consoleintr+0x4a> 8010082a: 83 7d f0 10 cmpl $0x10,-0x10(%ebp) 8010082e: 7f 0b jg 8010083b <consoleintr+0x39> 80100830: 83 7d f0 08 cmpl $0x8,-0x10(%ebp) 80100834: 74 6d je 801008a3 <consoleintr+0xa1> 80100836: e9 9d 00 00 00 jmp 801008d8 <consoleintr+0xd6> 8010083b: 83 7d f0 15 cmpl $0x15,-0x10(%ebp) 8010083f: 74 34 je 80100875 <consoleintr+0x73> 80100841: 83 7d f0 7f cmpl $0x7f,-0x10(%ebp) 80100845: 74 5c je 801008a3 <consoleintr+0xa1> 80100847: e9 8c 00 00 00 jmp 801008d8 <consoleintr+0xd6> case C('P'): // Process listing. doprocdump = 1; // procdump() locks cons.lock indirectly; invoke later 8010084c: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) break; 80100853: e9 12 01 00 00 jmp 8010096a <consoleintr+0x168> case C('U'): // Kill line. while(input.e != input.w && input.buf[(input.e-1) % INPUT_BUF] != '\n'){ input.e--; 80100858: a1 08 08 11 80 mov 0x80110808,%eax 8010085d: 83 e8 01 sub $0x1,%eax 80100860: a3 08 08 11 80 mov %eax,0x80110808 consputc(BACKSPACE); 80100865: 83 ec 0c sub $0xc,%esp 80100868: 68 00 01 00 00 push $0x100 8010086d: e8 29 ff ff ff call 8010079b <consputc> 80100872: 83 c4 10 add $0x10,%esp while(input.e != input.w && 80100875: 8b 15 08 08 11 80 mov 0x80110808,%edx 8010087b: a1 04 08 11 80 mov 0x80110804,%eax 80100880: 39 c2 cmp %eax,%edx 80100882: 0f 84 e2 00 00 00 je 8010096a <consoleintr+0x168> input.buf[(input.e-1) % INPUT_BUF] != '\n'){ 80100888: a1 08 08 11 80 mov 0x80110808,%eax 8010088d: 83 e8 01 sub $0x1,%eax 80100890: 83 e0 7f and $0x7f,%eax 80100893: 0f b6 80 80 07 11 80 movzbl -0x7feef880(%eax),%eax while(input.e != input.w && 8010089a: 3c 0a cmp $0xa,%al 8010089c: 75 ba jne 80100858 <consoleintr+0x56> } break; 8010089e: e9 c7 00 00 00 jmp 8010096a <consoleintr+0x168> case C('H'): case '\x7f': // Backspace if(input.e != input.w){ 801008a3: 8b 15 08 08 11 80 mov 0x80110808,%edx 801008a9: a1 04 08 11 80 mov 0x80110804,%eax 801008ae: 39 c2 cmp %eax,%edx 801008b0: 0f 84 b4 00 00 00 je 8010096a <consoleintr+0x168> input.e--; 801008b6: a1 08 08 11 80 mov 0x80110808,%eax 801008bb: 83 e8 01 sub $0x1,%eax 801008be: a3 08 08 11 80 mov %eax,0x80110808 consputc(BACKSPACE); 801008c3: 83 ec 0c sub $0xc,%esp 801008c6: 68 00 01 00 00 push $0x100 801008cb: e8 cb fe ff ff call 8010079b <consputc> 801008d0: 83 c4 10 add $0x10,%esp } break; 801008d3: e9 92 00 00 00 jmp 8010096a <consoleintr+0x168> default: if(c != 0 && input.e-input.r < INPUT_BUF){ 801008d8: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801008dc: 0f 84 87 00 00 00 je 80100969 <consoleintr+0x167> 801008e2: 8b 15 08 08 11 80 mov 0x80110808,%edx 801008e8: a1 00 08 11 80 mov 0x80110800,%eax 801008ed: 29 c2 sub %eax,%edx 801008ef: 89 d0 mov %edx,%eax 801008f1: 83 f8 7f cmp $0x7f,%eax 801008f4: 77 73 ja 80100969 <consoleintr+0x167> c = (c == '\r') ? '\n' : c; 801008f6: 83 7d f0 0d cmpl $0xd,-0x10(%ebp) 801008fa: 74 05 je 80100901 <consoleintr+0xff> 801008fc: 8b 45 f0 mov -0x10(%ebp),%eax 801008ff: eb 05 jmp 80100906 <consoleintr+0x104> 80100901: b8 0a 00 00 00 mov $0xa,%eax 80100906: 89 45 f0 mov %eax,-0x10(%ebp) input.buf[input.e++ % INPUT_BUF] = c; 80100909: a1 08 08 11 80 mov 0x80110808,%eax 8010090e: 8d 50 01 lea 0x1(%eax),%edx 80100911: 89 15 08 08 11 80 mov %edx,0x80110808 80100917: 83 e0 7f and $0x7f,%eax 8010091a: 8b 55 f0 mov -0x10(%ebp),%edx 8010091d: 88 90 80 07 11 80 mov %dl,-0x7feef880(%eax) consputc(c); 80100923: 83 ec 0c sub $0xc,%esp 80100926: ff 75 f0 pushl -0x10(%ebp) 80100929: e8 6d fe ff ff call 8010079b <consputc> 8010092e: 83 c4 10 add $0x10,%esp if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){ 80100931: 83 7d f0 0a cmpl $0xa,-0x10(%ebp) 80100935: 74 18 je 8010094f <consoleintr+0x14d> 80100937: 83 7d f0 04 cmpl $0x4,-0x10(%ebp) 8010093b: 74 12 je 8010094f <consoleintr+0x14d> 8010093d: a1 08 08 11 80 mov 0x80110808,%eax 80100942: 8b 15 00 08 11 80 mov 0x80110800,%edx 80100948: 83 ea 80 sub $0xffffff80,%edx 8010094b: 39 d0 cmp %edx,%eax 8010094d: 75 1a jne 80100969 <consoleintr+0x167> input.w = input.e; 8010094f: a1 08 08 11 80 mov 0x80110808,%eax 80100954: a3 04 08 11 80 mov %eax,0x80110804 wakeup(&input.r); 80100959: 83 ec 0c sub $0xc,%esp 8010095c: 68 00 08 11 80 push $0x80110800 80100961: e8 d0 44 00 00 call 80104e36 <wakeup> 80100966: 83 c4 10 add $0x10,%esp } } break; 80100969: 90 nop while((c = getc()) >= 0){ 8010096a: 8b 45 08 mov 0x8(%ebp),%eax 8010096d: ff d0 call *%eax 8010096f: 89 45 f0 mov %eax,-0x10(%ebp) 80100972: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80100976: 0f 89 a8 fe ff ff jns 80100824 <consoleintr+0x22> } } release(&cons.lock); 8010097c: 83 ec 0c sub $0xc,%esp 8010097f: 68 c0 b5 10 80 push $0x8010b5c0 80100984: e8 22 47 00 00 call 801050ab <release> 80100989: 83 c4 10 add $0x10,%esp if(doprocdump) { 8010098c: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80100990: 74 05 je 80100997 <consoleintr+0x195> procdump(); // now call procdump() wo. cons.lock held 80100992: e8 5a 45 00 00 call 80104ef1 <procdump> } } 80100997: 90 nop 80100998: c9 leave 80100999: c3 ret 8010099a <consoleread>: int consoleread(struct inode *ip, char *dst, int n) { 8010099a: 55 push %ebp 8010099b: 89 e5 mov %esp,%ebp 8010099d: 83 ec 18 sub $0x18,%esp uint target; int c; iunlock(ip); 801009a0: 83 ec 0c sub $0xc,%esp 801009a3: ff 75 08 pushl 0x8(%ebp) 801009a6: e8 28 11 00 00 call 80101ad3 <iunlock> 801009ab: 83 c4 10 add $0x10,%esp target = n; 801009ae: 8b 45 10 mov 0x10(%ebp),%eax 801009b1: 89 45 f4 mov %eax,-0xc(%ebp) acquire(&cons.lock); 801009b4: 83 ec 0c sub $0xc,%esp 801009b7: 68 c0 b5 10 80 push $0x8010b5c0 801009bc: e8 83 46 00 00 call 80105044 <acquire> 801009c1: 83 c4 10 add $0x10,%esp while(n > 0){ 801009c4: e9 ac 00 00 00 jmp 80100a75 <consoleread+0xdb> while(input.r == input.w){ if(proc->killed){ 801009c9: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801009cf: 8b 40 24 mov 0x24(%eax),%eax 801009d2: 85 c0 test %eax,%eax 801009d4: 74 28 je 801009fe <consoleread+0x64> release(&cons.lock); 801009d6: 83 ec 0c sub $0xc,%esp 801009d9: 68 c0 b5 10 80 push $0x8010b5c0 801009de: e8 c8 46 00 00 call 801050ab <release> 801009e3: 83 c4 10 add $0x10,%esp ilock(ip); 801009e6: 83 ec 0c sub $0xc,%esp 801009e9: ff 75 08 pushl 0x8(%ebp) 801009ec: e8 84 0f 00 00 call 80101975 <ilock> 801009f1: 83 c4 10 add $0x10,%esp return -1; 801009f4: b8 ff ff ff ff mov $0xffffffff,%eax 801009f9: e9 ab 00 00 00 jmp 80100aa9 <consoleread+0x10f> } sleep(&input.r, &cons.lock); 801009fe: 83 ec 08 sub $0x8,%esp 80100a01: 68 c0 b5 10 80 push $0x8010b5c0 80100a06: 68 00 08 11 80 push $0x80110800 80100a0b: e8 3b 43 00 00 call 80104d4b <sleep> 80100a10: 83 c4 10 add $0x10,%esp while(input.r == input.w){ 80100a13: 8b 15 00 08 11 80 mov 0x80110800,%edx 80100a19: a1 04 08 11 80 mov 0x80110804,%eax 80100a1e: 39 c2 cmp %eax,%edx 80100a20: 74 a7 je 801009c9 <consoleread+0x2f> } c = input.buf[input.r++ % INPUT_BUF]; 80100a22: a1 00 08 11 80 mov 0x80110800,%eax 80100a27: 8d 50 01 lea 0x1(%eax),%edx 80100a2a: 89 15 00 08 11 80 mov %edx,0x80110800 80100a30: 83 e0 7f and $0x7f,%eax 80100a33: 0f b6 80 80 07 11 80 movzbl -0x7feef880(%eax),%eax 80100a3a: 0f be c0 movsbl %al,%eax 80100a3d: 89 45 f0 mov %eax,-0x10(%ebp) if(c == C('D')){ // EOF 80100a40: 83 7d f0 04 cmpl $0x4,-0x10(%ebp) 80100a44: 75 17 jne 80100a5d <consoleread+0xc3> if(n < target){ 80100a46: 8b 45 10 mov 0x10(%ebp),%eax 80100a49: 39 45 f4 cmp %eax,-0xc(%ebp) 80100a4c: 76 2f jbe 80100a7d <consoleread+0xe3> // Save ^D for next time, to make sure // caller gets a 0-byte result. input.r--; 80100a4e: a1 00 08 11 80 mov 0x80110800,%eax 80100a53: 83 e8 01 sub $0x1,%eax 80100a56: a3 00 08 11 80 mov %eax,0x80110800 } break; 80100a5b: eb 20 jmp 80100a7d <consoleread+0xe3> } *dst++ = c; 80100a5d: 8b 45 0c mov 0xc(%ebp),%eax 80100a60: 8d 50 01 lea 0x1(%eax),%edx 80100a63: 89 55 0c mov %edx,0xc(%ebp) 80100a66: 8b 55 f0 mov -0x10(%ebp),%edx 80100a69: 88 10 mov %dl,(%eax) --n; 80100a6b: 83 6d 10 01 subl $0x1,0x10(%ebp) if(c == '\n') 80100a6f: 83 7d f0 0a cmpl $0xa,-0x10(%ebp) 80100a73: 74 0b je 80100a80 <consoleread+0xe6> while(n > 0){ 80100a75: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80100a79: 7f 98 jg 80100a13 <consoleread+0x79> 80100a7b: eb 04 jmp 80100a81 <consoleread+0xe7> break; 80100a7d: 90 nop 80100a7e: eb 01 jmp 80100a81 <consoleread+0xe7> break; 80100a80: 90 nop } release(&cons.lock); 80100a81: 83 ec 0c sub $0xc,%esp 80100a84: 68 c0 b5 10 80 push $0x8010b5c0 80100a89: e8 1d 46 00 00 call 801050ab <release> 80100a8e: 83 c4 10 add $0x10,%esp ilock(ip); 80100a91: 83 ec 0c sub $0xc,%esp 80100a94: ff 75 08 pushl 0x8(%ebp) 80100a97: e8 d9 0e 00 00 call 80101975 <ilock> 80100a9c: 83 c4 10 add $0x10,%esp return target - n; 80100a9f: 8b 45 10 mov 0x10(%ebp),%eax 80100aa2: 8b 55 f4 mov -0xc(%ebp),%edx 80100aa5: 29 c2 sub %eax,%edx 80100aa7: 89 d0 mov %edx,%eax } 80100aa9: c9 leave 80100aaa: c3 ret 80100aab <consolewrite>: int consolewrite(struct inode *ip, char *buf, int n) { 80100aab: 55 push %ebp 80100aac: 89 e5 mov %esp,%ebp 80100aae: 83 ec 18 sub $0x18,%esp int i; iunlock(ip); 80100ab1: 83 ec 0c sub $0xc,%esp 80100ab4: ff 75 08 pushl 0x8(%ebp) 80100ab7: e8 17 10 00 00 call 80101ad3 <iunlock> 80100abc: 83 c4 10 add $0x10,%esp acquire(&cons.lock); 80100abf: 83 ec 0c sub $0xc,%esp 80100ac2: 68 c0 b5 10 80 push $0x8010b5c0 80100ac7: e8 78 45 00 00 call 80105044 <acquire> 80100acc: 83 c4 10 add $0x10,%esp for(i = 0; i < n; i++) 80100acf: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80100ad6: eb 21 jmp 80100af9 <consolewrite+0x4e> consputc(buf[i] & 0xff); 80100ad8: 8b 55 f4 mov -0xc(%ebp),%edx 80100adb: 8b 45 0c mov 0xc(%ebp),%eax 80100ade: 01 d0 add %edx,%eax 80100ae0: 0f b6 00 movzbl (%eax),%eax 80100ae3: 0f be c0 movsbl %al,%eax 80100ae6: 0f b6 c0 movzbl %al,%eax 80100ae9: 83 ec 0c sub $0xc,%esp 80100aec: 50 push %eax 80100aed: e8 a9 fc ff ff call 8010079b <consputc> 80100af2: 83 c4 10 add $0x10,%esp for(i = 0; i < n; i++) 80100af5: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80100af9: 8b 45 f4 mov -0xc(%ebp),%eax 80100afc: 3b 45 10 cmp 0x10(%ebp),%eax 80100aff: 7c d7 jl 80100ad8 <consolewrite+0x2d> release(&cons.lock); 80100b01: 83 ec 0c sub $0xc,%esp 80100b04: 68 c0 b5 10 80 push $0x8010b5c0 80100b09: e8 9d 45 00 00 call 801050ab <release> 80100b0e: 83 c4 10 add $0x10,%esp ilock(ip); 80100b11: 83 ec 0c sub $0xc,%esp 80100b14: ff 75 08 pushl 0x8(%ebp) 80100b17: e8 59 0e 00 00 call 80101975 <ilock> 80100b1c: 83 c4 10 add $0x10,%esp return n; 80100b1f: 8b 45 10 mov 0x10(%ebp),%eax } 80100b22: c9 leave 80100b23: c3 ret 80100b24 <consoleinit>: void consoleinit(void) { 80100b24: 55 push %ebp 80100b25: 89 e5 mov %esp,%ebp 80100b27: 83 ec 08 sub $0x8,%esp initlock(&cons.lock, "console"); 80100b2a: 83 ec 08 sub $0x8,%esp 80100b2d: 68 ce 85 10 80 push $0x801085ce 80100b32: 68 c0 b5 10 80 push $0x8010b5c0 80100b37: e8 e6 44 00 00 call 80105022 <initlock> 80100b3c: 83 c4 10 add $0x10,%esp devsw[CONSOLE].write = consolewrite; 80100b3f: c7 05 cc 11 11 80 ab movl $0x80100aab,0x801111cc 80100b46: 0a 10 80 devsw[CONSOLE].read = consoleread; 80100b49: c7 05 c8 11 11 80 9a movl $0x8010099a,0x801111c8 80100b50: 09 10 80 cons.locking = 1; 80100b53: c7 05 f4 b5 10 80 01 movl $0x1,0x8010b5f4 80100b5a: 00 00 00 picenable(IRQ_KBD); 80100b5d: 83 ec 0c sub $0xc,%esp 80100b60: 6a 01 push $0x1 80100b62: e8 d9 33 00 00 call 80103f40 <picenable> 80100b67: 83 c4 10 add $0x10,%esp ioapicenable(IRQ_KBD, 0); 80100b6a: 83 ec 08 sub $0x8,%esp 80100b6d: 6a 00 push $0x0 80100b6f: 6a 01 push $0x1 80100b71: e8 68 1f 00 00 call 80102ade <ioapicenable> 80100b76: 83 c4 10 add $0x10,%esp } 80100b79: 90 nop 80100b7a: c9 leave 80100b7b: c3 ret 80100b7c <exec>: #include "x86.h" #include "elf.h" int exec(char *path, char **argv) { 80100b7c: 55 push %ebp 80100b7d: 89 e5 mov %esp,%ebp 80100b7f: 81 ec 18 01 00 00 sub $0x118,%esp struct elfhdr elf; struct inode *ip; struct proghdr ph; pde_t *pgdir, *oldpgdir; begin_op(); 80100b85: e8 cc 29 00 00 call 80103556 <begin_op> if((ip = namei(path)) == 0){ 80100b8a: 83 ec 0c sub $0xc,%esp 80100b8d: ff 75 08 pushl 0x8(%ebp) 80100b90: e8 95 19 00 00 call 8010252a <namei> 80100b95: 83 c4 10 add $0x10,%esp 80100b98: 89 45 d8 mov %eax,-0x28(%ebp) 80100b9b: 83 7d d8 00 cmpl $0x0,-0x28(%ebp) 80100b9f: 75 0f jne 80100bb0 <exec+0x34> end_op(); 80100ba1: e8 3c 2a 00 00 call 801035e2 <end_op> return -1; 80100ba6: b8 ff ff ff ff mov $0xffffffff,%eax 80100bab: e9 ce 03 00 00 jmp 80100f7e <exec+0x402> } ilock(ip); 80100bb0: 83 ec 0c sub $0xc,%esp 80100bb3: ff 75 d8 pushl -0x28(%ebp) 80100bb6: e8 ba 0d 00 00 call 80101975 <ilock> 80100bbb: 83 c4 10 add $0x10,%esp pgdir = 0; 80100bbe: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) // Check ELF header if(readi(ip, (char*)&elf, 0, sizeof(elf)) < sizeof(elf)) 80100bc5: 6a 34 push $0x34 80100bc7: 6a 00 push $0x0 80100bc9: 8d 85 0c ff ff ff lea -0xf4(%ebp),%eax 80100bcf: 50 push %eax 80100bd0: ff 75 d8 pushl -0x28(%ebp) 80100bd3: e8 06 13 00 00 call 80101ede <readi> 80100bd8: 83 c4 10 add $0x10,%esp 80100bdb: 83 f8 33 cmp $0x33,%eax 80100bde: 0f 86 49 03 00 00 jbe 80100f2d <exec+0x3b1> goto bad; if(elf.magic != ELF_MAGIC) 80100be4: 8b 85 0c ff ff ff mov -0xf4(%ebp),%eax 80100bea: 3d 7f 45 4c 46 cmp $0x464c457f,%eax 80100bef: 0f 85 3b 03 00 00 jne 80100f30 <exec+0x3b4> goto bad; if((pgdir = setupkvm()) == 0) 80100bf5: e8 51 71 00 00 call 80107d4b <setupkvm> 80100bfa: 89 45 d4 mov %eax,-0x2c(%ebp) 80100bfd: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) 80100c01: 0f 84 2c 03 00 00 je 80100f33 <exec+0x3b7> goto bad; // Load program into memory. sz = 0; 80100c07: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ 80100c0e: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) 80100c15: 8b 85 28 ff ff ff mov -0xd8(%ebp),%eax 80100c1b: 89 45 e8 mov %eax,-0x18(%ebp) 80100c1e: e9 ab 00 00 00 jmp 80100cce <exec+0x152> if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) 80100c23: 8b 45 e8 mov -0x18(%ebp),%eax 80100c26: 6a 20 push $0x20 80100c28: 50 push %eax 80100c29: 8d 85 ec fe ff ff lea -0x114(%ebp),%eax 80100c2f: 50 push %eax 80100c30: ff 75 d8 pushl -0x28(%ebp) 80100c33: e8 a6 12 00 00 call 80101ede <readi> 80100c38: 83 c4 10 add $0x10,%esp 80100c3b: 83 f8 20 cmp $0x20,%eax 80100c3e: 0f 85 f2 02 00 00 jne 80100f36 <exec+0x3ba> goto bad; if(ph.type != ELF_PROG_LOAD) 80100c44: 8b 85 ec fe ff ff mov -0x114(%ebp),%eax 80100c4a: 83 f8 01 cmp $0x1,%eax 80100c4d: 75 71 jne 80100cc0 <exec+0x144> continue; if(ph.memsz < ph.filesz) 80100c4f: 8b 95 00 ff ff ff mov -0x100(%ebp),%edx 80100c55: 8b 85 fc fe ff ff mov -0x104(%ebp),%eax 80100c5b: 39 c2 cmp %eax,%edx 80100c5d: 0f 82 d6 02 00 00 jb 80100f39 <exec+0x3bd> goto bad; if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0) 80100c63: 8b 95 f4 fe ff ff mov -0x10c(%ebp),%edx 80100c69: 8b 85 00 ff ff ff mov -0x100(%ebp),%eax 80100c6f: 01 d0 add %edx,%eax 80100c71: 83 ec 04 sub $0x4,%esp 80100c74: 50 push %eax 80100c75: ff 75 e0 pushl -0x20(%ebp) 80100c78: ff 75 d4 pushl -0x2c(%ebp) 80100c7b: e8 73 74 00 00 call 801080f3 <allocuvm> 80100c80: 83 c4 10 add $0x10,%esp 80100c83: 89 45 e0 mov %eax,-0x20(%ebp) 80100c86: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 80100c8a: 0f 84 ac 02 00 00 je 80100f3c <exec+0x3c0> goto bad; if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) 80100c90: 8b 95 fc fe ff ff mov -0x104(%ebp),%edx 80100c96: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax 80100c9c: 8b 8d f4 fe ff ff mov -0x10c(%ebp),%ecx 80100ca2: 83 ec 0c sub $0xc,%esp 80100ca5: 52 push %edx 80100ca6: 50 push %eax 80100ca7: ff 75 d8 pushl -0x28(%ebp) 80100caa: 51 push %ecx 80100cab: ff 75 d4 pushl -0x2c(%ebp) 80100cae: e8 69 73 00 00 call 8010801c <loaduvm> 80100cb3: 83 c4 20 add $0x20,%esp 80100cb6: 85 c0 test %eax,%eax 80100cb8: 0f 88 81 02 00 00 js 80100f3f <exec+0x3c3> 80100cbe: eb 01 jmp 80100cc1 <exec+0x145> continue; 80100cc0: 90 nop for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ 80100cc1: 83 45 ec 01 addl $0x1,-0x14(%ebp) 80100cc5: 8b 45 e8 mov -0x18(%ebp),%eax 80100cc8: 83 c0 20 add $0x20,%eax 80100ccb: 89 45 e8 mov %eax,-0x18(%ebp) 80100cce: 0f b7 85 38 ff ff ff movzwl -0xc8(%ebp),%eax 80100cd5: 0f b7 c0 movzwl %ax,%eax 80100cd8: 39 45 ec cmp %eax,-0x14(%ebp) 80100cdb: 0f 8c 42 ff ff ff jl 80100c23 <exec+0xa7> goto bad; } iunlockput(ip); 80100ce1: 83 ec 0c sub $0xc,%esp 80100ce4: ff 75 d8 pushl -0x28(%ebp) 80100ce7: e8 49 0f 00 00 call 80101c35 <iunlockput> 80100cec: 83 c4 10 add $0x10,%esp end_op(); 80100cef: e8 ee 28 00 00 call 801035e2 <end_op> ip = 0; 80100cf4: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) // Allocate two pages at the next page boundary. // Make the first inaccessible. Use the second as the user stack. sz = PGROUNDUP(sz); 80100cfb: 8b 45 e0 mov -0x20(%ebp),%eax 80100cfe: 05 ff 0f 00 00 add $0xfff,%eax 80100d03: 25 00 f0 ff ff and $0xfffff000,%eax 80100d08: 89 45 e0 mov %eax,-0x20(%ebp) if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0) 80100d0b: 8b 45 e0 mov -0x20(%ebp),%eax 80100d0e: 05 00 20 00 00 add $0x2000,%eax 80100d13: 83 ec 04 sub $0x4,%esp 80100d16: 50 push %eax 80100d17: ff 75 e0 pushl -0x20(%ebp) 80100d1a: ff 75 d4 pushl -0x2c(%ebp) 80100d1d: e8 d1 73 00 00 call 801080f3 <allocuvm> 80100d22: 83 c4 10 add $0x10,%esp 80100d25: 89 45 e0 mov %eax,-0x20(%ebp) 80100d28: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 80100d2c: 0f 84 10 02 00 00 je 80100f42 <exec+0x3c6> goto bad; clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); 80100d32: 8b 45 e0 mov -0x20(%ebp),%eax 80100d35: 2d 00 20 00 00 sub $0x2000,%eax 80100d3a: 83 ec 08 sub $0x8,%esp 80100d3d: 50 push %eax 80100d3e: ff 75 d4 pushl -0x2c(%ebp) 80100d41: e8 d3 75 00 00 call 80108319 <clearpteu> 80100d46: 83 c4 10 add $0x10,%esp sp = sz; 80100d49: 8b 45 e0 mov -0x20(%ebp),%eax 80100d4c: 89 45 dc mov %eax,-0x24(%ebp) // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { 80100d4f: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 80100d56: e9 96 00 00 00 jmp 80100df1 <exec+0x275> if(argc >= MAXARG) 80100d5b: 83 7d e4 1f cmpl $0x1f,-0x1c(%ebp) 80100d5f: 0f 87 e0 01 00 00 ja 80100f45 <exec+0x3c9> goto bad; sp = (sp - (strlen(argv[argc]) + 1)) & ~3; 80100d65: 8b 45 e4 mov -0x1c(%ebp),%eax 80100d68: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100d6f: 8b 45 0c mov 0xc(%ebp),%eax 80100d72: 01 d0 add %edx,%eax 80100d74: 8b 00 mov (%eax),%eax 80100d76: 83 ec 0c sub $0xc,%esp 80100d79: 50 push %eax 80100d7a: e8 75 47 00 00 call 801054f4 <strlen> 80100d7f: 83 c4 10 add $0x10,%esp 80100d82: 89 c2 mov %eax,%edx 80100d84: 8b 45 dc mov -0x24(%ebp),%eax 80100d87: 29 d0 sub %edx,%eax 80100d89: 83 e8 01 sub $0x1,%eax 80100d8c: 83 e0 fc and $0xfffffffc,%eax 80100d8f: 89 45 dc mov %eax,-0x24(%ebp) if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) 80100d92: 8b 45 e4 mov -0x1c(%ebp),%eax 80100d95: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100d9c: 8b 45 0c mov 0xc(%ebp),%eax 80100d9f: 01 d0 add %edx,%eax 80100da1: 8b 00 mov (%eax),%eax 80100da3: 83 ec 0c sub $0xc,%esp 80100da6: 50 push %eax 80100da7: e8 48 47 00 00 call 801054f4 <strlen> 80100dac: 83 c4 10 add $0x10,%esp 80100daf: 83 c0 01 add $0x1,%eax 80100db2: 89 c1 mov %eax,%ecx 80100db4: 8b 45 e4 mov -0x1c(%ebp),%eax 80100db7: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100dbe: 8b 45 0c mov 0xc(%ebp),%eax 80100dc1: 01 d0 add %edx,%eax 80100dc3: 8b 00 mov (%eax),%eax 80100dc5: 51 push %ecx 80100dc6: 50 push %eax 80100dc7: ff 75 dc pushl -0x24(%ebp) 80100dca: ff 75 d4 pushl -0x2c(%ebp) 80100dcd: e8 ff 76 00 00 call 801084d1 <copyout> 80100dd2: 83 c4 10 add $0x10,%esp 80100dd5: 85 c0 test %eax,%eax 80100dd7: 0f 88 6b 01 00 00 js 80100f48 <exec+0x3cc> goto bad; ustack[3+argc] = sp; 80100ddd: 8b 45 e4 mov -0x1c(%ebp),%eax 80100de0: 8d 50 03 lea 0x3(%eax),%edx 80100de3: 8b 45 dc mov -0x24(%ebp),%eax 80100de6: 89 84 95 40 ff ff ff mov %eax,-0xc0(%ebp,%edx,4) for(argc = 0; argv[argc]; argc++) { 80100ded: 83 45 e4 01 addl $0x1,-0x1c(%ebp) 80100df1: 8b 45 e4 mov -0x1c(%ebp),%eax 80100df4: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100dfb: 8b 45 0c mov 0xc(%ebp),%eax 80100dfe: 01 d0 add %edx,%eax 80100e00: 8b 00 mov (%eax),%eax 80100e02: 85 c0 test %eax,%eax 80100e04: 0f 85 51 ff ff ff jne 80100d5b <exec+0x1df> } ustack[3+argc] = 0; 80100e0a: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e0d: 83 c0 03 add $0x3,%eax 80100e10: c7 84 85 40 ff ff ff movl $0x0,-0xc0(%ebp,%eax,4) 80100e17: 00 00 00 00 ustack[0] = 0xffffffff; // fake return PC 80100e1b: c7 85 40 ff ff ff ff movl $0xffffffff,-0xc0(%ebp) 80100e22: ff ff ff ustack[1] = argc; 80100e25: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e28: 89 85 44 ff ff ff mov %eax,-0xbc(%ebp) ustack[2] = sp - (argc+1)*4; // argv pointer 80100e2e: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e31: 83 c0 01 add $0x1,%eax 80100e34: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100e3b: 8b 45 dc mov -0x24(%ebp),%eax 80100e3e: 29 d0 sub %edx,%eax 80100e40: 89 85 48 ff ff ff mov %eax,-0xb8(%ebp) sp -= (3+argc+1) * 4; 80100e46: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e49: 83 c0 04 add $0x4,%eax 80100e4c: c1 e0 02 shl $0x2,%eax 80100e4f: 29 45 dc sub %eax,-0x24(%ebp) if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) 80100e52: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e55: 83 c0 04 add $0x4,%eax 80100e58: c1 e0 02 shl $0x2,%eax 80100e5b: 50 push %eax 80100e5c: 8d 85 40 ff ff ff lea -0xc0(%ebp),%eax 80100e62: 50 push %eax 80100e63: ff 75 dc pushl -0x24(%ebp) 80100e66: ff 75 d4 pushl -0x2c(%ebp) 80100e69: e8 63 76 00 00 call 801084d1 <copyout> 80100e6e: 83 c4 10 add $0x10,%esp 80100e71: 85 c0 test %eax,%eax 80100e73: 0f 88 d2 00 00 00 js 80100f4b <exec+0x3cf> goto bad; // Save program name for debugging. for(last=s=path; *s; s++) 80100e79: 8b 45 08 mov 0x8(%ebp),%eax 80100e7c: 89 45 f4 mov %eax,-0xc(%ebp) 80100e7f: 8b 45 f4 mov -0xc(%ebp),%eax 80100e82: 89 45 f0 mov %eax,-0x10(%ebp) 80100e85: eb 17 jmp 80100e9e <exec+0x322> if(*s == '/') 80100e87: 8b 45 f4 mov -0xc(%ebp),%eax 80100e8a: 0f b6 00 movzbl (%eax),%eax 80100e8d: 3c 2f cmp $0x2f,%al 80100e8f: 75 09 jne 80100e9a <exec+0x31e> last = s+1; 80100e91: 8b 45 f4 mov -0xc(%ebp),%eax 80100e94: 83 c0 01 add $0x1,%eax 80100e97: 89 45 f0 mov %eax,-0x10(%ebp) for(last=s=path; *s; s++) 80100e9a: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80100e9e: 8b 45 f4 mov -0xc(%ebp),%eax 80100ea1: 0f b6 00 movzbl (%eax),%eax 80100ea4: 84 c0 test %al,%al 80100ea6: 75 df jne 80100e87 <exec+0x30b> safestrcpy(proc->name, last, sizeof(proc->name)); 80100ea8: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100eae: 83 c0 6c add $0x6c,%eax 80100eb1: 83 ec 04 sub $0x4,%esp 80100eb4: 6a 10 push $0x10 80100eb6: ff 75 f0 pushl -0x10(%ebp) 80100eb9: 50 push %eax 80100eba: e8 eb 45 00 00 call 801054aa <safestrcpy> 80100ebf: 83 c4 10 add $0x10,%esp // Commit to the user image. oldpgdir = proc->pgdir; 80100ec2: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ec8: 8b 40 04 mov 0x4(%eax),%eax 80100ecb: 89 45 d0 mov %eax,-0x30(%ebp) proc->pgdir = pgdir; 80100ece: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ed4: 8b 55 d4 mov -0x2c(%ebp),%edx 80100ed7: 89 50 04 mov %edx,0x4(%eax) proc->sz = sz; 80100eda: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ee0: 8b 55 e0 mov -0x20(%ebp),%edx 80100ee3: 89 10 mov %edx,(%eax) proc->tf->eip = elf.entry; // main 80100ee5: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100eeb: 8b 40 18 mov 0x18(%eax),%eax 80100eee: 8b 95 24 ff ff ff mov -0xdc(%ebp),%edx 80100ef4: 89 50 38 mov %edx,0x38(%eax) proc->tf->esp = sp; 80100ef7: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100efd: 8b 40 18 mov 0x18(%eax),%eax 80100f00: 8b 55 dc mov -0x24(%ebp),%edx 80100f03: 89 50 44 mov %edx,0x44(%eax) switchuvm(proc); 80100f06: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100f0c: 83 ec 0c sub $0xc,%esp 80100f0f: 50 push %eax 80100f10: e8 1d 6f 00 00 call 80107e32 <switchuvm> 80100f15: 83 c4 10 add $0x10,%esp freevm(oldpgdir); 80100f18: 83 ec 0c sub $0xc,%esp 80100f1b: ff 75 d0 pushl -0x30(%ebp) 80100f1e: e8 56 73 00 00 call 80108279 <freevm> 80100f23: 83 c4 10 add $0x10,%esp return 0; 80100f26: b8 00 00 00 00 mov $0x0,%eax 80100f2b: eb 51 jmp 80100f7e <exec+0x402> goto bad; 80100f2d: 90 nop 80100f2e: eb 1c jmp 80100f4c <exec+0x3d0> goto bad; 80100f30: 90 nop 80100f31: eb 19 jmp 80100f4c <exec+0x3d0> goto bad; 80100f33: 90 nop 80100f34: eb 16 jmp 80100f4c <exec+0x3d0> goto bad; 80100f36: 90 nop 80100f37: eb 13 jmp 80100f4c <exec+0x3d0> goto bad; 80100f39: 90 nop 80100f3a: eb 10 jmp 80100f4c <exec+0x3d0> goto bad; 80100f3c: 90 nop 80100f3d: eb 0d jmp 80100f4c <exec+0x3d0> goto bad; 80100f3f: 90 nop 80100f40: eb 0a jmp 80100f4c <exec+0x3d0> goto bad; 80100f42: 90 nop 80100f43: eb 07 jmp 80100f4c <exec+0x3d0> goto bad; 80100f45: 90 nop 80100f46: eb 04 jmp 80100f4c <exec+0x3d0> goto bad; 80100f48: 90 nop 80100f49: eb 01 jmp 80100f4c <exec+0x3d0> goto bad; 80100f4b: 90 nop bad: if(pgdir) 80100f4c: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) 80100f50: 74 0e je 80100f60 <exec+0x3e4> freevm(pgdir); 80100f52: 83 ec 0c sub $0xc,%esp 80100f55: ff 75 d4 pushl -0x2c(%ebp) 80100f58: e8 1c 73 00 00 call 80108279 <freevm> 80100f5d: 83 c4 10 add $0x10,%esp if(ip){ 80100f60: 83 7d d8 00 cmpl $0x0,-0x28(%ebp) 80100f64: 74 13 je 80100f79 <exec+0x3fd> iunlockput(ip); 80100f66: 83 ec 0c sub $0xc,%esp 80100f69: ff 75 d8 pushl -0x28(%ebp) 80100f6c: e8 c4 0c 00 00 call 80101c35 <iunlockput> 80100f71: 83 c4 10 add $0x10,%esp end_op(); 80100f74: e8 69 26 00 00 call 801035e2 <end_op> } return -1; 80100f79: b8 ff ff ff ff mov $0xffffffff,%eax } 80100f7e: c9 leave 80100f7f: c3 ret 80100f80 <fileinit>: struct file file[NFILE]; } ftable; void fileinit(void) { 80100f80: 55 push %ebp 80100f81: 89 e5 mov %esp,%ebp 80100f83: 83 ec 08 sub $0x8,%esp initlock(&ftable.lock, "ftable"); 80100f86: 83 ec 08 sub $0x8,%esp 80100f89: 68 d6 85 10 80 push $0x801085d6 80100f8e: 68 20 08 11 80 push $0x80110820 80100f93: e8 8a 40 00 00 call 80105022 <initlock> 80100f98: 83 c4 10 add $0x10,%esp } 80100f9b: 90 nop 80100f9c: c9 leave 80100f9d: c3 ret 80100f9e <filealloc>: // Allocate a file structure. struct file* filealloc(void) { 80100f9e: 55 push %ebp 80100f9f: 89 e5 mov %esp,%ebp 80100fa1: 83 ec 18 sub $0x18,%esp struct file *f; acquire(&ftable.lock); 80100fa4: 83 ec 0c sub $0xc,%esp 80100fa7: 68 20 08 11 80 push $0x80110820 80100fac: e8 93 40 00 00 call 80105044 <acquire> 80100fb1: 83 c4 10 add $0x10,%esp for(f = ftable.file; f < ftable.file + NFILE; f++){ 80100fb4: c7 45 f4 54 08 11 80 movl $0x80110854,-0xc(%ebp) 80100fbb: eb 2d jmp 80100fea <filealloc+0x4c> if(f->ref == 0){ 80100fbd: 8b 45 f4 mov -0xc(%ebp),%eax 80100fc0: 8b 40 04 mov 0x4(%eax),%eax 80100fc3: 85 c0 test %eax,%eax 80100fc5: 75 1f jne 80100fe6 <filealloc+0x48> f->ref = 1; 80100fc7: 8b 45 f4 mov -0xc(%ebp),%eax 80100fca: c7 40 04 01 00 00 00 movl $0x1,0x4(%eax) release(&ftable.lock); 80100fd1: 83 ec 0c sub $0xc,%esp 80100fd4: 68 20 08 11 80 push $0x80110820 80100fd9: e8 cd 40 00 00 call 801050ab <release> 80100fde: 83 c4 10 add $0x10,%esp return f; 80100fe1: 8b 45 f4 mov -0xc(%ebp),%eax 80100fe4: eb 23 jmp 80101009 <filealloc+0x6b> for(f = ftable.file; f < ftable.file + NFILE; f++){ 80100fe6: 83 45 f4 18 addl $0x18,-0xc(%ebp) 80100fea: b8 b4 11 11 80 mov $0x801111b4,%eax 80100fef: 39 45 f4 cmp %eax,-0xc(%ebp) 80100ff2: 72 c9 jb 80100fbd <filealloc+0x1f> } } release(&ftable.lock); 80100ff4: 83 ec 0c sub $0xc,%esp 80100ff7: 68 20 08 11 80 push $0x80110820 80100ffc: e8 aa 40 00 00 call 801050ab <release> 80101001: 83 c4 10 add $0x10,%esp return 0; 80101004: b8 00 00 00 00 mov $0x0,%eax } 80101009: c9 leave 8010100a: c3 ret 8010100b <filedup>: // Increment ref count for file f. struct file* filedup(struct file *f) { 8010100b: 55 push %ebp 8010100c: 89 e5 mov %esp,%ebp 8010100e: 83 ec 08 sub $0x8,%esp acquire(&ftable.lock); 80101011: 83 ec 0c sub $0xc,%esp 80101014: 68 20 08 11 80 push $0x80110820 80101019: e8 26 40 00 00 call 80105044 <acquire> 8010101e: 83 c4 10 add $0x10,%esp if(f->ref < 1) 80101021: 8b 45 08 mov 0x8(%ebp),%eax 80101024: 8b 40 04 mov 0x4(%eax),%eax 80101027: 85 c0 test %eax,%eax 80101029: 7f 0d jg 80101038 <filedup+0x2d> panic("filedup"); 8010102b: 83 ec 0c sub $0xc,%esp 8010102e: 68 dd 85 10 80 push $0x801085dd 80101033: e8 2f f5 ff ff call 80100567 <panic> f->ref++; 80101038: 8b 45 08 mov 0x8(%ebp),%eax 8010103b: 8b 40 04 mov 0x4(%eax),%eax 8010103e: 8d 50 01 lea 0x1(%eax),%edx 80101041: 8b 45 08 mov 0x8(%ebp),%eax 80101044: 89 50 04 mov %edx,0x4(%eax) release(&ftable.lock); 80101047: 83 ec 0c sub $0xc,%esp 8010104a: 68 20 08 11 80 push $0x80110820 8010104f: e8 57 40 00 00 call 801050ab <release> 80101054: 83 c4 10 add $0x10,%esp return f; 80101057: 8b 45 08 mov 0x8(%ebp),%eax } 8010105a: c9 leave 8010105b: c3 ret 8010105c <fileclose>: // Close file f. (Decrement ref count, close when reaches 0.) void fileclose(struct file *f) { 8010105c: 55 push %ebp 8010105d: 89 e5 mov %esp,%ebp 8010105f: 83 ec 28 sub $0x28,%esp struct file ff; acquire(&ftable.lock); 80101062: 83 ec 0c sub $0xc,%esp 80101065: 68 20 08 11 80 push $0x80110820 8010106a: e8 d5 3f 00 00 call 80105044 <acquire> 8010106f: 83 c4 10 add $0x10,%esp if(f->ref < 1) 80101072: 8b 45 08 mov 0x8(%ebp),%eax 80101075: 8b 40 04 mov 0x4(%eax),%eax 80101078: 85 c0 test %eax,%eax 8010107a: 7f 0d jg 80101089 <fileclose+0x2d> panic("fileclose"); 8010107c: 83 ec 0c sub $0xc,%esp 8010107f: 68 e5 85 10 80 push $0x801085e5 80101084: e8 de f4 ff ff call 80100567 <panic> if(--f->ref > 0){ 80101089: 8b 45 08 mov 0x8(%ebp),%eax 8010108c: 8b 40 04 mov 0x4(%eax),%eax 8010108f: 8d 50 ff lea -0x1(%eax),%edx 80101092: 8b 45 08 mov 0x8(%ebp),%eax 80101095: 89 50 04 mov %edx,0x4(%eax) 80101098: 8b 45 08 mov 0x8(%ebp),%eax 8010109b: 8b 40 04 mov 0x4(%eax),%eax 8010109e: 85 c0 test %eax,%eax 801010a0: 7e 15 jle 801010b7 <fileclose+0x5b> release(&ftable.lock); 801010a2: 83 ec 0c sub $0xc,%esp 801010a5: 68 20 08 11 80 push $0x80110820 801010aa: e8 fc 3f 00 00 call 801050ab <release> 801010af: 83 c4 10 add $0x10,%esp 801010b2: e9 8b 00 00 00 jmp 80101142 <fileclose+0xe6> return; } ff = *f; 801010b7: 8b 45 08 mov 0x8(%ebp),%eax 801010ba: 8b 10 mov (%eax),%edx 801010bc: 89 55 e0 mov %edx,-0x20(%ebp) 801010bf: 8b 50 04 mov 0x4(%eax),%edx 801010c2: 89 55 e4 mov %edx,-0x1c(%ebp) 801010c5: 8b 50 08 mov 0x8(%eax),%edx 801010c8: 89 55 e8 mov %edx,-0x18(%ebp) 801010cb: 8b 50 0c mov 0xc(%eax),%edx 801010ce: 89 55 ec mov %edx,-0x14(%ebp) 801010d1: 8b 50 10 mov 0x10(%eax),%edx 801010d4: 89 55 f0 mov %edx,-0x10(%ebp) 801010d7: 8b 40 14 mov 0x14(%eax),%eax 801010da: 89 45 f4 mov %eax,-0xc(%ebp) f->ref = 0; 801010dd: 8b 45 08 mov 0x8(%ebp),%eax 801010e0: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) f->type = FD_NONE; 801010e7: 8b 45 08 mov 0x8(%ebp),%eax 801010ea: c7 00 00 00 00 00 movl $0x0,(%eax) release(&ftable.lock); 801010f0: 83 ec 0c sub $0xc,%esp 801010f3: 68 20 08 11 80 push $0x80110820 801010f8: e8 ae 3f 00 00 call 801050ab <release> 801010fd: 83 c4 10 add $0x10,%esp if(ff.type == FD_PIPE) 80101100: 8b 45 e0 mov -0x20(%ebp),%eax 80101103: 83 f8 01 cmp $0x1,%eax 80101106: 75 19 jne 80101121 <fileclose+0xc5> pipeclose(ff.pipe, ff.writable); 80101108: 0f b6 45 e9 movzbl -0x17(%ebp),%eax 8010110c: 0f be d0 movsbl %al,%edx 8010110f: 8b 45 ec mov -0x14(%ebp),%eax 80101112: 83 ec 08 sub $0x8,%esp 80101115: 52 push %edx 80101116: 50 push %eax 80101117: e8 90 30 00 00 call 801041ac <pipeclose> 8010111c: 83 c4 10 add $0x10,%esp 8010111f: eb 21 jmp 80101142 <fileclose+0xe6> else if(ff.type == FD_INODE){ 80101121: 8b 45 e0 mov -0x20(%ebp),%eax 80101124: 83 f8 02 cmp $0x2,%eax 80101127: 75 19 jne 80101142 <fileclose+0xe6> begin_op(); 80101129: e8 28 24 00 00 call 80103556 <begin_op> iput(ff.ip); 8010112e: 8b 45 f0 mov -0x10(%ebp),%eax 80101131: 83 ec 0c sub $0xc,%esp 80101134: 50 push %eax 80101135: e8 0b 0a 00 00 call 80101b45 <iput> 8010113a: 83 c4 10 add $0x10,%esp end_op(); 8010113d: e8 a0 24 00 00 call 801035e2 <end_op> } } 80101142: c9 leave 80101143: c3 ret 80101144 <filestat>: // Get metadata about file f. int filestat(struct file *f, struct stat *st) { 80101144: 55 push %ebp 80101145: 89 e5 mov %esp,%ebp 80101147: 83 ec 08 sub $0x8,%esp if(f->type == FD_INODE){ 8010114a: 8b 45 08 mov 0x8(%ebp),%eax 8010114d: 8b 00 mov (%eax),%eax 8010114f: 83 f8 02 cmp $0x2,%eax 80101152: 75 40 jne 80101194 <filestat+0x50> ilock(f->ip); 80101154: 8b 45 08 mov 0x8(%ebp),%eax 80101157: 8b 40 10 mov 0x10(%eax),%eax 8010115a: 83 ec 0c sub $0xc,%esp 8010115d: 50 push %eax 8010115e: e8 12 08 00 00 call 80101975 <ilock> 80101163: 83 c4 10 add $0x10,%esp stati(f->ip, st); 80101166: 8b 45 08 mov 0x8(%ebp),%eax 80101169: 8b 40 10 mov 0x10(%eax),%eax 8010116c: 83 ec 08 sub $0x8,%esp 8010116f: ff 75 0c pushl 0xc(%ebp) 80101172: 50 push %eax 80101173: e8 20 0d 00 00 call 80101e98 <stati> 80101178: 83 c4 10 add $0x10,%esp iunlock(f->ip); 8010117b: 8b 45 08 mov 0x8(%ebp),%eax 8010117e: 8b 40 10 mov 0x10(%eax),%eax 80101181: 83 ec 0c sub $0xc,%esp 80101184: 50 push %eax 80101185: e8 49 09 00 00 call 80101ad3 <iunlock> 8010118a: 83 c4 10 add $0x10,%esp return 0; 8010118d: b8 00 00 00 00 mov $0x0,%eax 80101192: eb 05 jmp 80101199 <filestat+0x55> } return -1; 80101194: b8 ff ff ff ff mov $0xffffffff,%eax } 80101199: c9 leave 8010119a: c3 ret 8010119b <fileread>: // Read from file f. int fileread(struct file *f, char *addr, int n) { 8010119b: 55 push %ebp 8010119c: 89 e5 mov %esp,%ebp 8010119e: 83 ec 18 sub $0x18,%esp int r; if(f->readable == 0) 801011a1: 8b 45 08 mov 0x8(%ebp),%eax 801011a4: 0f b6 40 08 movzbl 0x8(%eax),%eax 801011a8: 84 c0 test %al,%al 801011aa: 75 0a jne 801011b6 <fileread+0x1b> return -1; 801011ac: b8 ff ff ff ff mov $0xffffffff,%eax 801011b1: e9 9b 00 00 00 jmp 80101251 <fileread+0xb6> if(f->type == FD_PIPE) 801011b6: 8b 45 08 mov 0x8(%ebp),%eax 801011b9: 8b 00 mov (%eax),%eax 801011bb: 83 f8 01 cmp $0x1,%eax 801011be: 75 1a jne 801011da <fileread+0x3f> return piperead(f->pipe, addr, n); 801011c0: 8b 45 08 mov 0x8(%ebp),%eax 801011c3: 8b 40 0c mov 0xc(%eax),%eax 801011c6: 83 ec 04 sub $0x4,%esp 801011c9: ff 75 10 pushl 0x10(%ebp) 801011cc: ff 75 0c pushl 0xc(%ebp) 801011cf: 50 push %eax 801011d0: e8 84 31 00 00 call 80104359 <piperead> 801011d5: 83 c4 10 add $0x10,%esp 801011d8: eb 77 jmp 80101251 <fileread+0xb6> if(f->type == FD_INODE){ 801011da: 8b 45 08 mov 0x8(%ebp),%eax 801011dd: 8b 00 mov (%eax),%eax 801011df: 83 f8 02 cmp $0x2,%eax 801011e2: 75 60 jne 80101244 <fileread+0xa9> ilock(f->ip); 801011e4: 8b 45 08 mov 0x8(%ebp),%eax 801011e7: 8b 40 10 mov 0x10(%eax),%eax 801011ea: 83 ec 0c sub $0xc,%esp 801011ed: 50 push %eax 801011ee: e8 82 07 00 00 call 80101975 <ilock> 801011f3: 83 c4 10 add $0x10,%esp if((r = readi(f->ip, addr, f->off, n)) > 0) 801011f6: 8b 4d 10 mov 0x10(%ebp),%ecx 801011f9: 8b 45 08 mov 0x8(%ebp),%eax 801011fc: 8b 50 14 mov 0x14(%eax),%edx 801011ff: 8b 45 08 mov 0x8(%ebp),%eax 80101202: 8b 40 10 mov 0x10(%eax),%eax 80101205: 51 push %ecx 80101206: 52 push %edx 80101207: ff 75 0c pushl 0xc(%ebp) 8010120a: 50 push %eax 8010120b: e8 ce 0c 00 00 call 80101ede <readi> 80101210: 83 c4 10 add $0x10,%esp 80101213: 89 45 f4 mov %eax,-0xc(%ebp) 80101216: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010121a: 7e 11 jle 8010122d <fileread+0x92> f->off += r; 8010121c: 8b 45 08 mov 0x8(%ebp),%eax 8010121f: 8b 50 14 mov 0x14(%eax),%edx 80101222: 8b 45 f4 mov -0xc(%ebp),%eax 80101225: 01 c2 add %eax,%edx 80101227: 8b 45 08 mov 0x8(%ebp),%eax 8010122a: 89 50 14 mov %edx,0x14(%eax) iunlock(f->ip); 8010122d: 8b 45 08 mov 0x8(%ebp),%eax 80101230: 8b 40 10 mov 0x10(%eax),%eax 80101233: 83 ec 0c sub $0xc,%esp 80101236: 50 push %eax 80101237: e8 97 08 00 00 call 80101ad3 <iunlock> 8010123c: 83 c4 10 add $0x10,%esp return r; 8010123f: 8b 45 f4 mov -0xc(%ebp),%eax 80101242: eb 0d jmp 80101251 <fileread+0xb6> } panic("fileread"); 80101244: 83 ec 0c sub $0xc,%esp 80101247: 68 ef 85 10 80 push $0x801085ef 8010124c: e8 16 f3 ff ff call 80100567 <panic> } 80101251: c9 leave 80101252: c3 ret 80101253 <filewrite>: //PAGEBREAK! // Write to file f. int filewrite(struct file *f, char *addr, int n) { 80101253: 55 push %ebp 80101254: 89 e5 mov %esp,%ebp 80101256: 53 push %ebx 80101257: 83 ec 14 sub $0x14,%esp int r; if(f->writable == 0) 8010125a: 8b 45 08 mov 0x8(%ebp),%eax 8010125d: 0f b6 40 09 movzbl 0x9(%eax),%eax 80101261: 84 c0 test %al,%al 80101263: 75 0a jne 8010126f <filewrite+0x1c> return -1; 80101265: b8 ff ff ff ff mov $0xffffffff,%eax 8010126a: e9 1b 01 00 00 jmp 8010138a <filewrite+0x137> if(f->type == FD_PIPE) 8010126f: 8b 45 08 mov 0x8(%ebp),%eax 80101272: 8b 00 mov (%eax),%eax 80101274: 83 f8 01 cmp $0x1,%eax 80101277: 75 1d jne 80101296 <filewrite+0x43> return pipewrite(f->pipe, addr, n); 80101279: 8b 45 08 mov 0x8(%ebp),%eax 8010127c: 8b 40 0c mov 0xc(%eax),%eax 8010127f: 83 ec 04 sub $0x4,%esp 80101282: ff 75 10 pushl 0x10(%ebp) 80101285: ff 75 0c pushl 0xc(%ebp) 80101288: 50 push %eax 80101289: e8 c8 2f 00 00 call 80104256 <pipewrite> 8010128e: 83 c4 10 add $0x10,%esp 80101291: e9 f4 00 00 00 jmp 8010138a <filewrite+0x137> if(f->type == FD_INODE){ 80101296: 8b 45 08 mov 0x8(%ebp),%eax 80101299: 8b 00 mov (%eax),%eax 8010129b: 83 f8 02 cmp $0x2,%eax 8010129e: 0f 85 d9 00 00 00 jne 8010137d <filewrite+0x12a> // the maximum log transaction size, including // i-node, indirect block, allocation blocks, // and 2 blocks of slop for non-aligned writes. // this really belongs lower down, since writei() // might be writing a device like the console. int max = ((LOGSIZE-1-1-2) / 2) * 512; 801012a4: c7 45 ec 00 1a 00 00 movl $0x1a00,-0x14(%ebp) int i = 0; 801012ab: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) while(i < n){ 801012b2: e9 a3 00 00 00 jmp 8010135a <filewrite+0x107> int n1 = n - i; 801012b7: 8b 45 10 mov 0x10(%ebp),%eax 801012ba: 2b 45 f4 sub -0xc(%ebp),%eax 801012bd: 89 45 f0 mov %eax,-0x10(%ebp) if(n1 > max) 801012c0: 8b 45 f0 mov -0x10(%ebp),%eax 801012c3: 3b 45 ec cmp -0x14(%ebp),%eax 801012c6: 7e 06 jle 801012ce <filewrite+0x7b> n1 = max; 801012c8: 8b 45 ec mov -0x14(%ebp),%eax 801012cb: 89 45 f0 mov %eax,-0x10(%ebp) begin_op(); 801012ce: e8 83 22 00 00 call 80103556 <begin_op> ilock(f->ip); 801012d3: 8b 45 08 mov 0x8(%ebp),%eax 801012d6: 8b 40 10 mov 0x10(%eax),%eax 801012d9: 83 ec 0c sub $0xc,%esp 801012dc: 50 push %eax 801012dd: e8 93 06 00 00 call 80101975 <ilock> 801012e2: 83 c4 10 add $0x10,%esp if ((r = writei(f->ip, addr + i, f->off, n1)) > 0) 801012e5: 8b 4d f0 mov -0x10(%ebp),%ecx 801012e8: 8b 45 08 mov 0x8(%ebp),%eax 801012eb: 8b 50 14 mov 0x14(%eax),%edx 801012ee: 8b 5d f4 mov -0xc(%ebp),%ebx 801012f1: 8b 45 0c mov 0xc(%ebp),%eax 801012f4: 01 c3 add %eax,%ebx 801012f6: 8b 45 08 mov 0x8(%ebp),%eax 801012f9: 8b 40 10 mov 0x10(%eax),%eax 801012fc: 51 push %ecx 801012fd: 52 push %edx 801012fe: 53 push %ebx 801012ff: 50 push %eax 80101300: e8 30 0d 00 00 call 80102035 <writei> 80101305: 83 c4 10 add $0x10,%esp 80101308: 89 45 e8 mov %eax,-0x18(%ebp) 8010130b: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 8010130f: 7e 11 jle 80101322 <filewrite+0xcf> f->off += r; 80101311: 8b 45 08 mov 0x8(%ebp),%eax 80101314: 8b 50 14 mov 0x14(%eax),%edx 80101317: 8b 45 e8 mov -0x18(%ebp),%eax 8010131a: 01 c2 add %eax,%edx 8010131c: 8b 45 08 mov 0x8(%ebp),%eax 8010131f: 89 50 14 mov %edx,0x14(%eax) iunlock(f->ip); 80101322: 8b 45 08 mov 0x8(%ebp),%eax 80101325: 8b 40 10 mov 0x10(%eax),%eax 80101328: 83 ec 0c sub $0xc,%esp 8010132b: 50 push %eax 8010132c: e8 a2 07 00 00 call 80101ad3 <iunlock> 80101331: 83 c4 10 add $0x10,%esp end_op(); 80101334: e8 a9 22 00 00 call 801035e2 <end_op> if(r < 0) 80101339: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 8010133d: 78 29 js 80101368 <filewrite+0x115> break; if(r != n1) 8010133f: 8b 45 e8 mov -0x18(%ebp),%eax 80101342: 3b 45 f0 cmp -0x10(%ebp),%eax 80101345: 74 0d je 80101354 <filewrite+0x101> panic("short filewrite"); 80101347: 83 ec 0c sub $0xc,%esp 8010134a: 68 f8 85 10 80 push $0x801085f8 8010134f: e8 13 f2 ff ff call 80100567 <panic> i += r; 80101354: 8b 45 e8 mov -0x18(%ebp),%eax 80101357: 01 45 f4 add %eax,-0xc(%ebp) while(i < n){ 8010135a: 8b 45 f4 mov -0xc(%ebp),%eax 8010135d: 3b 45 10 cmp 0x10(%ebp),%eax 80101360: 0f 8c 51 ff ff ff jl 801012b7 <filewrite+0x64> 80101366: eb 01 jmp 80101369 <filewrite+0x116> break; 80101368: 90 nop } return i == n ? n : -1; 80101369: 8b 45 f4 mov -0xc(%ebp),%eax 8010136c: 3b 45 10 cmp 0x10(%ebp),%eax 8010136f: 75 05 jne 80101376 <filewrite+0x123> 80101371: 8b 45 10 mov 0x10(%ebp),%eax 80101374: eb 14 jmp 8010138a <filewrite+0x137> 80101376: b8 ff ff ff ff mov $0xffffffff,%eax 8010137b: eb 0d jmp 8010138a <filewrite+0x137> } panic("filewrite"); 8010137d: 83 ec 0c sub $0xc,%esp 80101380: 68 08 86 10 80 push $0x80108608 80101385: e8 dd f1 ff ff call 80100567 <panic> } 8010138a: 8b 5d fc mov -0x4(%ebp),%ebx 8010138d: c9 leave 8010138e: c3 ret 8010138f <readsb>: struct superblock sb; // there should be one per dev, but we run with one dev // Read the super block. void readsb(int dev, struct superblock *sb) { 8010138f: 55 push %ebp 80101390: 89 e5 mov %esp,%ebp 80101392: 83 ec 18 sub $0x18,%esp struct buf *bp; bp = bread(dev, 1); 80101395: 8b 45 08 mov 0x8(%ebp),%eax 80101398: 83 ec 08 sub $0x8,%esp 8010139b: 6a 01 push $0x1 8010139d: 50 push %eax 8010139e: e8 13 ee ff ff call 801001b6 <bread> 801013a3: 83 c4 10 add $0x10,%esp 801013a6: 89 45 f4 mov %eax,-0xc(%ebp) memmove(sb, bp->data, sizeof(*sb)); 801013a9: 8b 45 f4 mov -0xc(%ebp),%eax 801013ac: 83 c0 18 add $0x18,%eax 801013af: 83 ec 04 sub $0x4,%esp 801013b2: 6a 1c push $0x1c 801013b4: 50 push %eax 801013b5: ff 75 0c pushl 0xc(%ebp) 801013b8: e8 a9 3f 00 00 call 80105366 <memmove> 801013bd: 83 c4 10 add $0x10,%esp brelse(bp); 801013c0: 83 ec 0c sub $0xc,%esp 801013c3: ff 75 f4 pushl -0xc(%ebp) 801013c6: e8 63 ee ff ff call 8010022e <brelse> 801013cb: 83 c4 10 add $0x10,%esp } 801013ce: 90 nop 801013cf: c9 leave 801013d0: c3 ret 801013d1 <bzero>: // Zero a block. static void bzero(int dev, int bno) { 801013d1: 55 push %ebp 801013d2: 89 e5 mov %esp,%ebp 801013d4: 83 ec 18 sub $0x18,%esp struct buf *bp; bp = bread(dev, bno); 801013d7: 8b 55 0c mov 0xc(%ebp),%edx 801013da: 8b 45 08 mov 0x8(%ebp),%eax 801013dd: 83 ec 08 sub $0x8,%esp 801013e0: 52 push %edx 801013e1: 50 push %eax 801013e2: e8 cf ed ff ff call 801001b6 <bread> 801013e7: 83 c4 10 add $0x10,%esp 801013ea: 89 45 f4 mov %eax,-0xc(%ebp) memset(bp->data, 0, BSIZE); 801013ed: 8b 45 f4 mov -0xc(%ebp),%eax 801013f0: 83 c0 18 add $0x18,%eax 801013f3: 83 ec 04 sub $0x4,%esp 801013f6: 68 00 02 00 00 push $0x200 801013fb: 6a 00 push $0x0 801013fd: 50 push %eax 801013fe: e8 a4 3e 00 00 call 801052a7 <memset> 80101403: 83 c4 10 add $0x10,%esp log_write(bp); 80101406: 83 ec 0c sub $0xc,%esp 80101409: ff 75 f4 pushl -0xc(%ebp) 8010140c: e8 7d 23 00 00 call 8010378e <log_write> 80101411: 83 c4 10 add $0x10,%esp brelse(bp); 80101414: 83 ec 0c sub $0xc,%esp 80101417: ff 75 f4 pushl -0xc(%ebp) 8010141a: e8 0f ee ff ff call 8010022e <brelse> 8010141f: 83 c4 10 add $0x10,%esp } 80101422: 90 nop 80101423: c9 leave 80101424: c3 ret 80101425 <balloc>: // Blocks. // Allocate a zeroed disk block. static uint balloc(uint dev) { 80101425: 55 push %ebp 80101426: 89 e5 mov %esp,%ebp 80101428: 83 ec 18 sub $0x18,%esp int b, bi, m; struct buf *bp; bp = 0; 8010142b: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) for(b = 0; b < sb.size; b += BPB){ 80101432: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80101439: e9 13 01 00 00 jmp 80101551 <balloc+0x12c> bp = bread(dev, BBLOCK(b, sb)); 8010143e: 8b 45 f4 mov -0xc(%ebp),%eax 80101441: 8d 90 ff 0f 00 00 lea 0xfff(%eax),%edx 80101447: 85 c0 test %eax,%eax 80101449: 0f 48 c2 cmovs %edx,%eax 8010144c: c1 f8 0c sar $0xc,%eax 8010144f: 89 c2 mov %eax,%edx 80101451: a1 38 12 11 80 mov 0x80111238,%eax 80101456: 01 d0 add %edx,%eax 80101458: 83 ec 08 sub $0x8,%esp 8010145b: 50 push %eax 8010145c: ff 75 08 pushl 0x8(%ebp) 8010145f: e8 52 ed ff ff call 801001b6 <bread> 80101464: 83 c4 10 add $0x10,%esp 80101467: 89 45 ec mov %eax,-0x14(%ebp) for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ 8010146a: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 80101471: e9 a6 00 00 00 jmp 8010151c <balloc+0xf7> m = 1 << (bi % 8); 80101476: 8b 45 f0 mov -0x10(%ebp),%eax 80101479: 99 cltd 8010147a: c1 ea 1d shr $0x1d,%edx 8010147d: 01 d0 add %edx,%eax 8010147f: 83 e0 07 and $0x7,%eax 80101482: 29 d0 sub %edx,%eax 80101484: ba 01 00 00 00 mov $0x1,%edx 80101489: 89 c1 mov %eax,%ecx 8010148b: d3 e2 shl %cl,%edx 8010148d: 89 d0 mov %edx,%eax 8010148f: 89 45 e8 mov %eax,-0x18(%ebp) if((bp->data[bi/8] & m) == 0){ // Is block free? 80101492: 8b 45 f0 mov -0x10(%ebp),%eax 80101495: 8d 50 07 lea 0x7(%eax),%edx 80101498: 85 c0 test %eax,%eax 8010149a: 0f 48 c2 cmovs %edx,%eax 8010149d: c1 f8 03 sar $0x3,%eax 801014a0: 89 c2 mov %eax,%edx 801014a2: 8b 45 ec mov -0x14(%ebp),%eax 801014a5: 0f b6 44 10 18 movzbl 0x18(%eax,%edx,1),%eax 801014aa: 0f b6 c0 movzbl %al,%eax 801014ad: 23 45 e8 and -0x18(%ebp),%eax 801014b0: 85 c0 test %eax,%eax 801014b2: 75 64 jne 80101518 <balloc+0xf3> bp->data[bi/8] |= m; // Mark block in use. 801014b4: 8b 45 f0 mov -0x10(%ebp),%eax 801014b7: 8d 50 07 lea 0x7(%eax),%edx 801014ba: 85 c0 test %eax,%eax 801014bc: 0f 48 c2 cmovs %edx,%eax 801014bf: c1 f8 03 sar $0x3,%eax 801014c2: 8b 55 ec mov -0x14(%ebp),%edx 801014c5: 0f b6 54 02 18 movzbl 0x18(%edx,%eax,1),%edx 801014ca: 89 d1 mov %edx,%ecx 801014cc: 8b 55 e8 mov -0x18(%ebp),%edx 801014cf: 09 ca or %ecx,%edx 801014d1: 89 d1 mov %edx,%ecx 801014d3: 8b 55 ec mov -0x14(%ebp),%edx 801014d6: 88 4c 02 18 mov %cl,0x18(%edx,%eax,1) log_write(bp); 801014da: 83 ec 0c sub $0xc,%esp 801014dd: ff 75 ec pushl -0x14(%ebp) 801014e0: e8 a9 22 00 00 call 8010378e <log_write> 801014e5: 83 c4 10 add $0x10,%esp brelse(bp); 801014e8: 83 ec 0c sub $0xc,%esp 801014eb: ff 75 ec pushl -0x14(%ebp) 801014ee: e8 3b ed ff ff call 8010022e <brelse> 801014f3: 83 c4 10 add $0x10,%esp bzero(dev, b + bi); 801014f6: 8b 55 f4 mov -0xc(%ebp),%edx 801014f9: 8b 45 f0 mov -0x10(%ebp),%eax 801014fc: 01 c2 add %eax,%edx 801014fe: 8b 45 08 mov 0x8(%ebp),%eax 80101501: 83 ec 08 sub $0x8,%esp 80101504: 52 push %edx 80101505: 50 push %eax 80101506: e8 c6 fe ff ff call 801013d1 <bzero> 8010150b: 83 c4 10 add $0x10,%esp return b + bi; 8010150e: 8b 55 f4 mov -0xc(%ebp),%edx 80101511: 8b 45 f0 mov -0x10(%ebp),%eax 80101514: 01 d0 add %edx,%eax 80101516: eb 57 jmp 8010156f <balloc+0x14a> for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ 80101518: 83 45 f0 01 addl $0x1,-0x10(%ebp) 8010151c: 81 7d f0 ff 0f 00 00 cmpl $0xfff,-0x10(%ebp) 80101523: 7f 17 jg 8010153c <balloc+0x117> 80101525: 8b 55 f4 mov -0xc(%ebp),%edx 80101528: 8b 45 f0 mov -0x10(%ebp),%eax 8010152b: 01 d0 add %edx,%eax 8010152d: 89 c2 mov %eax,%edx 8010152f: a1 20 12 11 80 mov 0x80111220,%eax 80101534: 39 c2 cmp %eax,%edx 80101536: 0f 82 3a ff ff ff jb 80101476 <balloc+0x51> } } brelse(bp); 8010153c: 83 ec 0c sub $0xc,%esp 8010153f: ff 75 ec pushl -0x14(%ebp) 80101542: e8 e7 ec ff ff call 8010022e <brelse> 80101547: 83 c4 10 add $0x10,%esp for(b = 0; b < sb.size; b += BPB){ 8010154a: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 80101551: 8b 15 20 12 11 80 mov 0x80111220,%edx 80101557: 8b 45 f4 mov -0xc(%ebp),%eax 8010155a: 39 c2 cmp %eax,%edx 8010155c: 0f 87 dc fe ff ff ja 8010143e <balloc+0x19> } panic("balloc: out of blocks"); 80101562: 83 ec 0c sub $0xc,%esp 80101565: 68 14 86 10 80 push $0x80108614 8010156a: e8 f8 ef ff ff call 80100567 <panic> } 8010156f: c9 leave 80101570: c3 ret 80101571 <bfree>: // Free a disk block. static void bfree(int dev, uint b) { 80101571: 55 push %ebp 80101572: 89 e5 mov %esp,%ebp 80101574: 83 ec 18 sub $0x18,%esp struct buf *bp; int bi, m; readsb(dev, &sb); 80101577: 83 ec 08 sub $0x8,%esp 8010157a: 68 20 12 11 80 push $0x80111220 8010157f: ff 75 08 pushl 0x8(%ebp) 80101582: e8 08 fe ff ff call 8010138f <readsb> 80101587: 83 c4 10 add $0x10,%esp bp = bread(dev, BBLOCK(b, sb)); 8010158a: 8b 45 0c mov 0xc(%ebp),%eax 8010158d: c1 e8 0c shr $0xc,%eax 80101590: 89 c2 mov %eax,%edx 80101592: a1 38 12 11 80 mov 0x80111238,%eax 80101597: 01 c2 add %eax,%edx 80101599: 8b 45 08 mov 0x8(%ebp),%eax 8010159c: 83 ec 08 sub $0x8,%esp 8010159f: 52 push %edx 801015a0: 50 push %eax 801015a1: e8 10 ec ff ff call 801001b6 <bread> 801015a6: 83 c4 10 add $0x10,%esp 801015a9: 89 45 f4 mov %eax,-0xc(%ebp) bi = b % BPB; 801015ac: 8b 45 0c mov 0xc(%ebp),%eax 801015af: 25 ff 0f 00 00 and $0xfff,%eax 801015b4: 89 45 f0 mov %eax,-0x10(%ebp) m = 1 << (bi % 8); 801015b7: 8b 45 f0 mov -0x10(%ebp),%eax 801015ba: 99 cltd 801015bb: c1 ea 1d shr $0x1d,%edx 801015be: 01 d0 add %edx,%eax 801015c0: 83 e0 07 and $0x7,%eax 801015c3: 29 d0 sub %edx,%eax 801015c5: ba 01 00 00 00 mov $0x1,%edx 801015ca: 89 c1 mov %eax,%ecx 801015cc: d3 e2 shl %cl,%edx 801015ce: 89 d0 mov %edx,%eax 801015d0: 89 45 ec mov %eax,-0x14(%ebp) if((bp->data[bi/8] & m) == 0) 801015d3: 8b 45 f0 mov -0x10(%ebp),%eax 801015d6: 8d 50 07 lea 0x7(%eax),%edx 801015d9: 85 c0 test %eax,%eax 801015db: 0f 48 c2 cmovs %edx,%eax 801015de: c1 f8 03 sar $0x3,%eax 801015e1: 89 c2 mov %eax,%edx 801015e3: 8b 45 f4 mov -0xc(%ebp),%eax 801015e6: 0f b6 44 10 18 movzbl 0x18(%eax,%edx,1),%eax 801015eb: 0f b6 c0 movzbl %al,%eax 801015ee: 23 45 ec and -0x14(%ebp),%eax 801015f1: 85 c0 test %eax,%eax 801015f3: 75 0d jne 80101602 <bfree+0x91> panic("freeing free block"); 801015f5: 83 ec 0c sub $0xc,%esp 801015f8: 68 2a 86 10 80 push $0x8010862a 801015fd: e8 65 ef ff ff call 80100567 <panic> bp->data[bi/8] &= ~m; 80101602: 8b 45 f0 mov -0x10(%ebp),%eax 80101605: 8d 50 07 lea 0x7(%eax),%edx 80101608: 85 c0 test %eax,%eax 8010160a: 0f 48 c2 cmovs %edx,%eax 8010160d: c1 f8 03 sar $0x3,%eax 80101610: 8b 55 f4 mov -0xc(%ebp),%edx 80101613: 0f b6 54 02 18 movzbl 0x18(%edx,%eax,1),%edx 80101618: 89 d1 mov %edx,%ecx 8010161a: 8b 55 ec mov -0x14(%ebp),%edx 8010161d: f7 d2 not %edx 8010161f: 21 ca and %ecx,%edx 80101621: 89 d1 mov %edx,%ecx 80101623: 8b 55 f4 mov -0xc(%ebp),%edx 80101626: 88 4c 02 18 mov %cl,0x18(%edx,%eax,1) log_write(bp); 8010162a: 83 ec 0c sub $0xc,%esp 8010162d: ff 75 f4 pushl -0xc(%ebp) 80101630: e8 59 21 00 00 call 8010378e <log_write> 80101635: 83 c4 10 add $0x10,%esp brelse(bp); 80101638: 83 ec 0c sub $0xc,%esp 8010163b: ff 75 f4 pushl -0xc(%ebp) 8010163e: e8 eb eb ff ff call 8010022e <brelse> 80101643: 83 c4 10 add $0x10,%esp } 80101646: 90 nop 80101647: c9 leave 80101648: c3 ret 80101649 <iinit>: struct inode inode[NINODE]; } icache; void iinit(int dev) { 80101649: 55 push %ebp 8010164a: 89 e5 mov %esp,%ebp 8010164c: 57 push %edi 8010164d: 56 push %esi 8010164e: 53 push %ebx 8010164f: 83 ec 1c sub $0x1c,%esp initlock(&icache.lock, "icache"); 80101652: 83 ec 08 sub $0x8,%esp 80101655: 68 3d 86 10 80 push $0x8010863d 8010165a: 68 40 12 11 80 push $0x80111240 8010165f: e8 be 39 00 00 call 80105022 <initlock> 80101664: 83 c4 10 add $0x10,%esp readsb(dev, &sb); 80101667: 83 ec 08 sub $0x8,%esp 8010166a: 68 20 12 11 80 push $0x80111220 8010166f: ff 75 08 pushl 0x8(%ebp) 80101672: e8 18 fd ff ff call 8010138f <readsb> 80101677: 83 c4 10 add $0x10,%esp cprintf("sb: size %d nblocks %d ninodes %d nlog %d logstart %d inodestart %d bmap start %d\n", sb.size, 8010167a: a1 38 12 11 80 mov 0x80111238,%eax 8010167f: 89 45 e4 mov %eax,-0x1c(%ebp) 80101682: 8b 3d 34 12 11 80 mov 0x80111234,%edi 80101688: 8b 35 30 12 11 80 mov 0x80111230,%esi 8010168e: 8b 1d 2c 12 11 80 mov 0x8011122c,%ebx 80101694: 8b 0d 28 12 11 80 mov 0x80111228,%ecx 8010169a: 8b 15 24 12 11 80 mov 0x80111224,%edx 801016a0: a1 20 12 11 80 mov 0x80111220,%eax 801016a5: ff 75 e4 pushl -0x1c(%ebp) 801016a8: 57 push %edi 801016a9: 56 push %esi 801016aa: 53 push %ebx 801016ab: 51 push %ecx 801016ac: 52 push %edx 801016ad: 50 push %eax 801016ae: 68 44 86 10 80 push $0x80108644 801016b3: e8 0c ed ff ff call 801003c4 <cprintf> 801016b8: 83 c4 20 add $0x20,%esp sb.nblocks, sb.ninodes, sb.nlog, sb.logstart, sb.inodestart, sb.bmapstart); } 801016bb: 90 nop 801016bc: 8d 65 f4 lea -0xc(%ebp),%esp 801016bf: 5b pop %ebx 801016c0: 5e pop %esi 801016c1: 5f pop %edi 801016c2: 5d pop %ebp 801016c3: c3 ret 801016c4 <ialloc>: //PAGEBREAK! // Allocate a new inode with the given type on device dev. // A free inode has a type of zero. struct inode* ialloc(uint dev, short type) { 801016c4: 55 push %ebp 801016c5: 89 e5 mov %esp,%ebp 801016c7: 83 ec 28 sub $0x28,%esp 801016ca: 8b 45 0c mov 0xc(%ebp),%eax 801016cd: 66 89 45 e4 mov %ax,-0x1c(%ebp) int inum; struct buf *bp; struct dinode *dip; for(inum = 1; inum < sb.ninodes; inum++){ 801016d1: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) 801016d8: e9 9e 00 00 00 jmp 8010177b <ialloc+0xb7> bp = bread(dev, IBLOCK(inum, sb)); 801016dd: 8b 45 f4 mov -0xc(%ebp),%eax 801016e0: c1 e8 03 shr $0x3,%eax 801016e3: 89 c2 mov %eax,%edx 801016e5: a1 34 12 11 80 mov 0x80111234,%eax 801016ea: 01 d0 add %edx,%eax 801016ec: 83 ec 08 sub $0x8,%esp 801016ef: 50 push %eax 801016f0: ff 75 08 pushl 0x8(%ebp) 801016f3: e8 be ea ff ff call 801001b6 <bread> 801016f8: 83 c4 10 add $0x10,%esp 801016fb: 89 45 f0 mov %eax,-0x10(%ebp) dip = (struct dinode*)bp->data + inum%IPB; 801016fe: 8b 45 f0 mov -0x10(%ebp),%eax 80101701: 8d 50 18 lea 0x18(%eax),%edx 80101704: 8b 45 f4 mov -0xc(%ebp),%eax 80101707: 83 e0 07 and $0x7,%eax 8010170a: c1 e0 06 shl $0x6,%eax 8010170d: 01 d0 add %edx,%eax 8010170f: 89 45 ec mov %eax,-0x14(%ebp) if(dip->type == 0){ // a free inode 80101712: 8b 45 ec mov -0x14(%ebp),%eax 80101715: 0f b7 00 movzwl (%eax),%eax 80101718: 66 85 c0 test %ax,%ax 8010171b: 75 4c jne 80101769 <ialloc+0xa5> memset(dip, 0, sizeof(*dip)); 8010171d: 83 ec 04 sub $0x4,%esp 80101720: 6a 40 push $0x40 80101722: 6a 00 push $0x0 80101724: ff 75 ec pushl -0x14(%ebp) 80101727: e8 7b 3b 00 00 call 801052a7 <memset> 8010172c: 83 c4 10 add $0x10,%esp dip->type = type; 8010172f: 8b 45 ec mov -0x14(%ebp),%eax 80101732: 0f b7 55 e4 movzwl -0x1c(%ebp),%edx 80101736: 66 89 10 mov %dx,(%eax) log_write(bp); // mark it allocated on the disk 80101739: 83 ec 0c sub $0xc,%esp 8010173c: ff 75 f0 pushl -0x10(%ebp) 8010173f: e8 4a 20 00 00 call 8010378e <log_write> 80101744: 83 c4 10 add $0x10,%esp brelse(bp); 80101747: 83 ec 0c sub $0xc,%esp 8010174a: ff 75 f0 pushl -0x10(%ebp) 8010174d: e8 dc ea ff ff call 8010022e <brelse> 80101752: 83 c4 10 add $0x10,%esp return iget(dev, inum); 80101755: 8b 45 f4 mov -0xc(%ebp),%eax 80101758: 83 ec 08 sub $0x8,%esp 8010175b: 50 push %eax 8010175c: ff 75 08 pushl 0x8(%ebp) 8010175f: e8 f8 00 00 00 call 8010185c <iget> 80101764: 83 c4 10 add $0x10,%esp 80101767: eb 30 jmp 80101799 <ialloc+0xd5> } brelse(bp); 80101769: 83 ec 0c sub $0xc,%esp 8010176c: ff 75 f0 pushl -0x10(%ebp) 8010176f: e8 ba ea ff ff call 8010022e <brelse> 80101774: 83 c4 10 add $0x10,%esp for(inum = 1; inum < sb.ninodes; inum++){ 80101777: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010177b: 8b 15 28 12 11 80 mov 0x80111228,%edx 80101781: 8b 45 f4 mov -0xc(%ebp),%eax 80101784: 39 c2 cmp %eax,%edx 80101786: 0f 87 51 ff ff ff ja 801016dd <ialloc+0x19> } panic("ialloc: no inodes"); 8010178c: 83 ec 0c sub $0xc,%esp 8010178f: 68 97 86 10 80 push $0x80108697 80101794: e8 ce ed ff ff call 80100567 <panic> } 80101799: c9 leave 8010179a: c3 ret 8010179b <iupdate>: // Copy a modified in-memory inode to disk. void iupdate(struct inode *ip) { 8010179b: 55 push %ebp 8010179c: 89 e5 mov %esp,%ebp 8010179e: 83 ec 18 sub $0x18,%esp struct buf *bp; struct dinode *dip; bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801017a1: 8b 45 08 mov 0x8(%ebp),%eax 801017a4: 8b 40 04 mov 0x4(%eax),%eax 801017a7: c1 e8 03 shr $0x3,%eax 801017aa: 89 c2 mov %eax,%edx 801017ac: a1 34 12 11 80 mov 0x80111234,%eax 801017b1: 01 c2 add %eax,%edx 801017b3: 8b 45 08 mov 0x8(%ebp),%eax 801017b6: 8b 00 mov (%eax),%eax 801017b8: 83 ec 08 sub $0x8,%esp 801017bb: 52 push %edx 801017bc: 50 push %eax 801017bd: e8 f4 e9 ff ff call 801001b6 <bread> 801017c2: 83 c4 10 add $0x10,%esp 801017c5: 89 45 f4 mov %eax,-0xc(%ebp) dip = (struct dinode*)bp->data + ip->inum%IPB; 801017c8: 8b 45 f4 mov -0xc(%ebp),%eax 801017cb: 8d 50 18 lea 0x18(%eax),%edx 801017ce: 8b 45 08 mov 0x8(%ebp),%eax 801017d1: 8b 40 04 mov 0x4(%eax),%eax 801017d4: 83 e0 07 and $0x7,%eax 801017d7: c1 e0 06 shl $0x6,%eax 801017da: 01 d0 add %edx,%eax 801017dc: 89 45 f0 mov %eax,-0x10(%ebp) dip->type = ip->type; 801017df: 8b 45 08 mov 0x8(%ebp),%eax 801017e2: 0f b7 50 10 movzwl 0x10(%eax),%edx 801017e6: 8b 45 f0 mov -0x10(%ebp),%eax 801017e9: 66 89 10 mov %dx,(%eax) dip->major = ip->major; 801017ec: 8b 45 08 mov 0x8(%ebp),%eax 801017ef: 0f b7 50 12 movzwl 0x12(%eax),%edx 801017f3: 8b 45 f0 mov -0x10(%ebp),%eax 801017f6: 66 89 50 02 mov %dx,0x2(%eax) dip->minor = ip->minor; 801017fa: 8b 45 08 mov 0x8(%ebp),%eax 801017fd: 0f b7 50 14 movzwl 0x14(%eax),%edx 80101801: 8b 45 f0 mov -0x10(%ebp),%eax 80101804: 66 89 50 04 mov %dx,0x4(%eax) dip->nlink = ip->nlink; 80101808: 8b 45 08 mov 0x8(%ebp),%eax 8010180b: 0f b7 50 16 movzwl 0x16(%eax),%edx 8010180f: 8b 45 f0 mov -0x10(%ebp),%eax 80101812: 66 89 50 06 mov %dx,0x6(%eax) dip->size = ip->size; 80101816: 8b 45 08 mov 0x8(%ebp),%eax 80101819: 8b 50 18 mov 0x18(%eax),%edx 8010181c: 8b 45 f0 mov -0x10(%ebp),%eax 8010181f: 89 50 08 mov %edx,0x8(%eax) memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 80101822: 8b 45 08 mov 0x8(%ebp),%eax 80101825: 8d 50 1c lea 0x1c(%eax),%edx 80101828: 8b 45 f0 mov -0x10(%ebp),%eax 8010182b: 83 c0 0c add $0xc,%eax 8010182e: 83 ec 04 sub $0x4,%esp 80101831: 6a 34 push $0x34 80101833: 52 push %edx 80101834: 50 push %eax 80101835: e8 2c 3b 00 00 call 80105366 <memmove> 8010183a: 83 c4 10 add $0x10,%esp log_write(bp); 8010183d: 83 ec 0c sub $0xc,%esp 80101840: ff 75 f4 pushl -0xc(%ebp) 80101843: e8 46 1f 00 00 call 8010378e <log_write> 80101848: 83 c4 10 add $0x10,%esp brelse(bp); 8010184b: 83 ec 0c sub $0xc,%esp 8010184e: ff 75 f4 pushl -0xc(%ebp) 80101851: e8 d8 e9 ff ff call 8010022e <brelse> 80101856: 83 c4 10 add $0x10,%esp } 80101859: 90 nop 8010185a: c9 leave 8010185b: c3 ret 8010185c <iget>: // Find the inode with number inum on device dev // and return the in-memory copy. Does not lock // the inode and does not read it from disk. static struct inode* iget(uint dev, uint inum) { 8010185c: 55 push %ebp 8010185d: 89 e5 mov %esp,%ebp 8010185f: 83 ec 18 sub $0x18,%esp struct inode *ip, *empty; acquire(&icache.lock); 80101862: 83 ec 0c sub $0xc,%esp 80101865: 68 40 12 11 80 push $0x80111240 8010186a: e8 d5 37 00 00 call 80105044 <acquire> 8010186f: 83 c4 10 add $0x10,%esp // Is the inode already cached? empty = 0; 80101872: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 80101879: c7 45 f4 74 12 11 80 movl $0x80111274,-0xc(%ebp) 80101880: eb 5d jmp 801018df <iget+0x83> if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ 80101882: 8b 45 f4 mov -0xc(%ebp),%eax 80101885: 8b 40 08 mov 0x8(%eax),%eax 80101888: 85 c0 test %eax,%eax 8010188a: 7e 39 jle 801018c5 <iget+0x69> 8010188c: 8b 45 f4 mov -0xc(%ebp),%eax 8010188f: 8b 00 mov (%eax),%eax 80101891: 39 45 08 cmp %eax,0x8(%ebp) 80101894: 75 2f jne 801018c5 <iget+0x69> 80101896: 8b 45 f4 mov -0xc(%ebp),%eax 80101899: 8b 40 04 mov 0x4(%eax),%eax 8010189c: 39 45 0c cmp %eax,0xc(%ebp) 8010189f: 75 24 jne 801018c5 <iget+0x69> ip->ref++; 801018a1: 8b 45 f4 mov -0xc(%ebp),%eax 801018a4: 8b 40 08 mov 0x8(%eax),%eax 801018a7: 8d 50 01 lea 0x1(%eax),%edx 801018aa: 8b 45 f4 mov -0xc(%ebp),%eax 801018ad: 89 50 08 mov %edx,0x8(%eax) release(&icache.lock); 801018b0: 83 ec 0c sub $0xc,%esp 801018b3: 68 40 12 11 80 push $0x80111240 801018b8: e8 ee 37 00 00 call 801050ab <release> 801018bd: 83 c4 10 add $0x10,%esp return ip; 801018c0: 8b 45 f4 mov -0xc(%ebp),%eax 801018c3: eb 74 jmp 80101939 <iget+0xdd> } if(empty == 0 && ip->ref == 0) // Remember empty slot. 801018c5: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801018c9: 75 10 jne 801018db <iget+0x7f> 801018cb: 8b 45 f4 mov -0xc(%ebp),%eax 801018ce: 8b 40 08 mov 0x8(%eax),%eax 801018d1: 85 c0 test %eax,%eax 801018d3: 75 06 jne 801018db <iget+0x7f> empty = ip; 801018d5: 8b 45 f4 mov -0xc(%ebp),%eax 801018d8: 89 45 f0 mov %eax,-0x10(%ebp) for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 801018db: 83 45 f4 50 addl $0x50,-0xc(%ebp) 801018df: 81 7d f4 14 22 11 80 cmpl $0x80112214,-0xc(%ebp) 801018e6: 72 9a jb 80101882 <iget+0x26> } // Recycle an inode cache entry. if(empty == 0) 801018e8: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801018ec: 75 0d jne 801018fb <iget+0x9f> panic("iget: no inodes"); 801018ee: 83 ec 0c sub $0xc,%esp 801018f1: 68 a9 86 10 80 push $0x801086a9 801018f6: e8 6c ec ff ff call 80100567 <panic> ip = empty; 801018fb: 8b 45 f0 mov -0x10(%ebp),%eax 801018fe: 89 45 f4 mov %eax,-0xc(%ebp) ip->dev = dev; 80101901: 8b 45 f4 mov -0xc(%ebp),%eax 80101904: 8b 55 08 mov 0x8(%ebp),%edx 80101907: 89 10 mov %edx,(%eax) ip->inum = inum; 80101909: 8b 45 f4 mov -0xc(%ebp),%eax 8010190c: 8b 55 0c mov 0xc(%ebp),%edx 8010190f: 89 50 04 mov %edx,0x4(%eax) ip->ref = 1; 80101912: 8b 45 f4 mov -0xc(%ebp),%eax 80101915: c7 40 08 01 00 00 00 movl $0x1,0x8(%eax) ip->flags = 0; 8010191c: 8b 45 f4 mov -0xc(%ebp),%eax 8010191f: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) release(&icache.lock); 80101926: 83 ec 0c sub $0xc,%esp 80101929: 68 40 12 11 80 push $0x80111240 8010192e: e8 78 37 00 00 call 801050ab <release> 80101933: 83 c4 10 add $0x10,%esp return ip; 80101936: 8b 45 f4 mov -0xc(%ebp),%eax } 80101939: c9 leave 8010193a: c3 ret 8010193b <idup>: // Increment reference count for ip. // Returns ip to enable ip = idup(ip1) idiom. struct inode* idup(struct inode *ip) { 8010193b: 55 push %ebp 8010193c: 89 e5 mov %esp,%ebp 8010193e: 83 ec 08 sub $0x8,%esp acquire(&icache.lock); 80101941: 83 ec 0c sub $0xc,%esp 80101944: 68 40 12 11 80 push $0x80111240 80101949: e8 f6 36 00 00 call 80105044 <acquire> 8010194e: 83 c4 10 add $0x10,%esp ip->ref++; 80101951: 8b 45 08 mov 0x8(%ebp),%eax 80101954: 8b 40 08 mov 0x8(%eax),%eax 80101957: 8d 50 01 lea 0x1(%eax),%edx 8010195a: 8b 45 08 mov 0x8(%ebp),%eax 8010195d: 89 50 08 mov %edx,0x8(%eax) release(&icache.lock); 80101960: 83 ec 0c sub $0xc,%esp 80101963: 68 40 12 11 80 push $0x80111240 80101968: e8 3e 37 00 00 call 801050ab <release> 8010196d: 83 c4 10 add $0x10,%esp return ip; 80101970: 8b 45 08 mov 0x8(%ebp),%eax } 80101973: c9 leave 80101974: c3 ret 80101975 <ilock>: // Lock the given inode. // Reads the inode from disk if necessary. void ilock(struct inode *ip) { 80101975: 55 push %ebp 80101976: 89 e5 mov %esp,%ebp 80101978: 83 ec 18 sub $0x18,%esp struct buf *bp; struct dinode *dip; if(ip == 0 || ip->ref < 1) 8010197b: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 8010197f: 74 0a je 8010198b <ilock+0x16> 80101981: 8b 45 08 mov 0x8(%ebp),%eax 80101984: 8b 40 08 mov 0x8(%eax),%eax 80101987: 85 c0 test %eax,%eax 80101989: 7f 0d jg 80101998 <ilock+0x23> panic("ilock"); 8010198b: 83 ec 0c sub $0xc,%esp 8010198e: 68 b9 86 10 80 push $0x801086b9 80101993: e8 cf eb ff ff call 80100567 <panic> acquire(&icache.lock); 80101998: 83 ec 0c sub $0xc,%esp 8010199b: 68 40 12 11 80 push $0x80111240 801019a0: e8 9f 36 00 00 call 80105044 <acquire> 801019a5: 83 c4 10 add $0x10,%esp while(ip->flags & I_BUSY) 801019a8: eb 13 jmp 801019bd <ilock+0x48> sleep(ip, &icache.lock); 801019aa: 83 ec 08 sub $0x8,%esp 801019ad: 68 40 12 11 80 push $0x80111240 801019b2: ff 75 08 pushl 0x8(%ebp) 801019b5: e8 91 33 00 00 call 80104d4b <sleep> 801019ba: 83 c4 10 add $0x10,%esp while(ip->flags & I_BUSY) 801019bd: 8b 45 08 mov 0x8(%ebp),%eax 801019c0: 8b 40 0c mov 0xc(%eax),%eax 801019c3: 83 e0 01 and $0x1,%eax 801019c6: 85 c0 test %eax,%eax 801019c8: 75 e0 jne 801019aa <ilock+0x35> ip->flags |= I_BUSY; 801019ca: 8b 45 08 mov 0x8(%ebp),%eax 801019cd: 8b 40 0c mov 0xc(%eax),%eax 801019d0: 83 c8 01 or $0x1,%eax 801019d3: 89 c2 mov %eax,%edx 801019d5: 8b 45 08 mov 0x8(%ebp),%eax 801019d8: 89 50 0c mov %edx,0xc(%eax) release(&icache.lock); 801019db: 83 ec 0c sub $0xc,%esp 801019de: 68 40 12 11 80 push $0x80111240 801019e3: e8 c3 36 00 00 call 801050ab <release> 801019e8: 83 c4 10 add $0x10,%esp if(!(ip->flags & I_VALID)){ 801019eb: 8b 45 08 mov 0x8(%ebp),%eax 801019ee: 8b 40 0c mov 0xc(%eax),%eax 801019f1: 83 e0 02 and $0x2,%eax 801019f4: 85 c0 test %eax,%eax 801019f6: 0f 85 d4 00 00 00 jne 80101ad0 <ilock+0x15b> bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801019fc: 8b 45 08 mov 0x8(%ebp),%eax 801019ff: 8b 40 04 mov 0x4(%eax),%eax 80101a02: c1 e8 03 shr $0x3,%eax 80101a05: 89 c2 mov %eax,%edx 80101a07: a1 34 12 11 80 mov 0x80111234,%eax 80101a0c: 01 c2 add %eax,%edx 80101a0e: 8b 45 08 mov 0x8(%ebp),%eax 80101a11: 8b 00 mov (%eax),%eax 80101a13: 83 ec 08 sub $0x8,%esp 80101a16: 52 push %edx 80101a17: 50 push %eax 80101a18: e8 99 e7 ff ff call 801001b6 <bread> 80101a1d: 83 c4 10 add $0x10,%esp 80101a20: 89 45 f4 mov %eax,-0xc(%ebp) dip = (struct dinode*)bp->data + ip->inum%IPB; 80101a23: 8b 45 f4 mov -0xc(%ebp),%eax 80101a26: 8d 50 18 lea 0x18(%eax),%edx 80101a29: 8b 45 08 mov 0x8(%ebp),%eax 80101a2c: 8b 40 04 mov 0x4(%eax),%eax 80101a2f: 83 e0 07 and $0x7,%eax 80101a32: c1 e0 06 shl $0x6,%eax 80101a35: 01 d0 add %edx,%eax 80101a37: 89 45 f0 mov %eax,-0x10(%ebp) ip->type = dip->type; 80101a3a: 8b 45 f0 mov -0x10(%ebp),%eax 80101a3d: 0f b7 10 movzwl (%eax),%edx 80101a40: 8b 45 08 mov 0x8(%ebp),%eax 80101a43: 66 89 50 10 mov %dx,0x10(%eax) ip->major = dip->major; 80101a47: 8b 45 f0 mov -0x10(%ebp),%eax 80101a4a: 0f b7 50 02 movzwl 0x2(%eax),%edx 80101a4e: 8b 45 08 mov 0x8(%ebp),%eax 80101a51: 66 89 50 12 mov %dx,0x12(%eax) ip->minor = dip->minor; 80101a55: 8b 45 f0 mov -0x10(%ebp),%eax 80101a58: 0f b7 50 04 movzwl 0x4(%eax),%edx 80101a5c: 8b 45 08 mov 0x8(%ebp),%eax 80101a5f: 66 89 50 14 mov %dx,0x14(%eax) ip->nlink = dip->nlink; 80101a63: 8b 45 f0 mov -0x10(%ebp),%eax 80101a66: 0f b7 50 06 movzwl 0x6(%eax),%edx 80101a6a: 8b 45 08 mov 0x8(%ebp),%eax 80101a6d: 66 89 50 16 mov %dx,0x16(%eax) ip->size = dip->size; 80101a71: 8b 45 f0 mov -0x10(%ebp),%eax 80101a74: 8b 50 08 mov 0x8(%eax),%edx 80101a77: 8b 45 08 mov 0x8(%ebp),%eax 80101a7a: 89 50 18 mov %edx,0x18(%eax) memmove(ip->addrs, dip->addrs, sizeof(ip->addrs)); 80101a7d: 8b 45 f0 mov -0x10(%ebp),%eax 80101a80: 8d 50 0c lea 0xc(%eax),%edx 80101a83: 8b 45 08 mov 0x8(%ebp),%eax 80101a86: 83 c0 1c add $0x1c,%eax 80101a89: 83 ec 04 sub $0x4,%esp 80101a8c: 6a 34 push $0x34 80101a8e: 52 push %edx 80101a8f: 50 push %eax 80101a90: e8 d1 38 00 00 call 80105366 <memmove> 80101a95: 83 c4 10 add $0x10,%esp brelse(bp); 80101a98: 83 ec 0c sub $0xc,%esp 80101a9b: ff 75 f4 pushl -0xc(%ebp) 80101a9e: e8 8b e7 ff ff call 8010022e <brelse> 80101aa3: 83 c4 10 add $0x10,%esp ip->flags |= I_VALID; 80101aa6: 8b 45 08 mov 0x8(%ebp),%eax 80101aa9: 8b 40 0c mov 0xc(%eax),%eax 80101aac: 83 c8 02 or $0x2,%eax 80101aaf: 89 c2 mov %eax,%edx 80101ab1: 8b 45 08 mov 0x8(%ebp),%eax 80101ab4: 89 50 0c mov %edx,0xc(%eax) if(ip->type == 0) 80101ab7: 8b 45 08 mov 0x8(%ebp),%eax 80101aba: 0f b7 40 10 movzwl 0x10(%eax),%eax 80101abe: 66 85 c0 test %ax,%ax 80101ac1: 75 0d jne 80101ad0 <ilock+0x15b> panic("ilock: no type"); 80101ac3: 83 ec 0c sub $0xc,%esp 80101ac6: 68 bf 86 10 80 push $0x801086bf 80101acb: e8 97 ea ff ff call 80100567 <panic> } } 80101ad0: 90 nop 80101ad1: c9 leave 80101ad2: c3 ret 80101ad3 <iunlock>: // Unlock the given inode. void iunlock(struct inode *ip) { 80101ad3: 55 push %ebp 80101ad4: 89 e5 mov %esp,%ebp 80101ad6: 83 ec 08 sub $0x8,%esp if(ip == 0 || !(ip->flags & I_BUSY) || ip->ref < 1) 80101ad9: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80101add: 74 17 je 80101af6 <iunlock+0x23> 80101adf: 8b 45 08 mov 0x8(%ebp),%eax 80101ae2: 8b 40 0c mov 0xc(%eax),%eax 80101ae5: 83 e0 01 and $0x1,%eax 80101ae8: 85 c0 test %eax,%eax 80101aea: 74 0a je 80101af6 <iunlock+0x23> 80101aec: 8b 45 08 mov 0x8(%ebp),%eax 80101aef: 8b 40 08 mov 0x8(%eax),%eax 80101af2: 85 c0 test %eax,%eax 80101af4: 7f 0d jg 80101b03 <iunlock+0x30> panic("iunlock"); 80101af6: 83 ec 0c sub $0xc,%esp 80101af9: 68 ce 86 10 80 push $0x801086ce 80101afe: e8 64 ea ff ff call 80100567 <panic> acquire(&icache.lock); 80101b03: 83 ec 0c sub $0xc,%esp 80101b06: 68 40 12 11 80 push $0x80111240 80101b0b: e8 34 35 00 00 call 80105044 <acquire> 80101b10: 83 c4 10 add $0x10,%esp ip->flags &= ~I_BUSY; 80101b13: 8b 45 08 mov 0x8(%ebp),%eax 80101b16: 8b 40 0c mov 0xc(%eax),%eax 80101b19: 83 e0 fe and $0xfffffffe,%eax 80101b1c: 89 c2 mov %eax,%edx 80101b1e: 8b 45 08 mov 0x8(%ebp),%eax 80101b21: 89 50 0c mov %edx,0xc(%eax) wakeup(ip); 80101b24: 83 ec 0c sub $0xc,%esp 80101b27: ff 75 08 pushl 0x8(%ebp) 80101b2a: e8 07 33 00 00 call 80104e36 <wakeup> 80101b2f: 83 c4 10 add $0x10,%esp release(&icache.lock); 80101b32: 83 ec 0c sub $0xc,%esp 80101b35: 68 40 12 11 80 push $0x80111240 80101b3a: e8 6c 35 00 00 call 801050ab <release> 80101b3f: 83 c4 10 add $0x10,%esp } 80101b42: 90 nop 80101b43: c9 leave 80101b44: c3 ret 80101b45 <iput>: // to it, free the inode (and its content) on disk. // All calls to iput() must be inside a transaction in // case it has to free the inode. void iput(struct inode *ip) { 80101b45: 55 push %ebp 80101b46: 89 e5 mov %esp,%ebp 80101b48: 83 ec 08 sub $0x8,%esp acquire(&icache.lock); 80101b4b: 83 ec 0c sub $0xc,%esp 80101b4e: 68 40 12 11 80 push $0x80111240 80101b53: e8 ec 34 00 00 call 80105044 <acquire> 80101b58: 83 c4 10 add $0x10,%esp if(ip->ref == 1 && (ip->flags & I_VALID) && ip->nlink == 0){ 80101b5b: 8b 45 08 mov 0x8(%ebp),%eax 80101b5e: 8b 40 08 mov 0x8(%eax),%eax 80101b61: 83 f8 01 cmp $0x1,%eax 80101b64: 0f 85 a9 00 00 00 jne 80101c13 <iput+0xce> 80101b6a: 8b 45 08 mov 0x8(%ebp),%eax 80101b6d: 8b 40 0c mov 0xc(%eax),%eax 80101b70: 83 e0 02 and $0x2,%eax 80101b73: 85 c0 test %eax,%eax 80101b75: 0f 84 98 00 00 00 je 80101c13 <iput+0xce> 80101b7b: 8b 45 08 mov 0x8(%ebp),%eax 80101b7e: 0f b7 40 16 movzwl 0x16(%eax),%eax 80101b82: 66 85 c0 test %ax,%ax 80101b85: 0f 85 88 00 00 00 jne 80101c13 <iput+0xce> // inode has no links and no other references: truncate and free. if(ip->flags & I_BUSY) 80101b8b: 8b 45 08 mov 0x8(%ebp),%eax 80101b8e: 8b 40 0c mov 0xc(%eax),%eax 80101b91: 83 e0 01 and $0x1,%eax 80101b94: 85 c0 test %eax,%eax 80101b96: 74 0d je 80101ba5 <iput+0x60> panic("iput busy"); 80101b98: 83 ec 0c sub $0xc,%esp 80101b9b: 68 d6 86 10 80 push $0x801086d6 80101ba0: e8 c2 e9 ff ff call 80100567 <panic> ip->flags |= I_BUSY; 80101ba5: 8b 45 08 mov 0x8(%ebp),%eax 80101ba8: 8b 40 0c mov 0xc(%eax),%eax 80101bab: 83 c8 01 or $0x1,%eax 80101bae: 89 c2 mov %eax,%edx 80101bb0: 8b 45 08 mov 0x8(%ebp),%eax 80101bb3: 89 50 0c mov %edx,0xc(%eax) release(&icache.lock); 80101bb6: 83 ec 0c sub $0xc,%esp 80101bb9: 68 40 12 11 80 push $0x80111240 80101bbe: e8 e8 34 00 00 call 801050ab <release> 80101bc3: 83 c4 10 add $0x10,%esp itrunc(ip); 80101bc6: 83 ec 0c sub $0xc,%esp 80101bc9: ff 75 08 pushl 0x8(%ebp) 80101bcc: e8 a3 01 00 00 call 80101d74 <itrunc> 80101bd1: 83 c4 10 add $0x10,%esp ip->type = 0; 80101bd4: 8b 45 08 mov 0x8(%ebp),%eax 80101bd7: 66 c7 40 10 00 00 movw $0x0,0x10(%eax) iupdate(ip); 80101bdd: 83 ec 0c sub $0xc,%esp 80101be0: ff 75 08 pushl 0x8(%ebp) 80101be3: e8 b3 fb ff ff call 8010179b <iupdate> 80101be8: 83 c4 10 add $0x10,%esp acquire(&icache.lock); 80101beb: 83 ec 0c sub $0xc,%esp 80101bee: 68 40 12 11 80 push $0x80111240 80101bf3: e8 4c 34 00 00 call 80105044 <acquire> 80101bf8: 83 c4 10 add $0x10,%esp ip->flags = 0; 80101bfb: 8b 45 08 mov 0x8(%ebp),%eax 80101bfe: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) wakeup(ip); 80101c05: 83 ec 0c sub $0xc,%esp 80101c08: ff 75 08 pushl 0x8(%ebp) 80101c0b: e8 26 32 00 00 call 80104e36 <wakeup> 80101c10: 83 c4 10 add $0x10,%esp } ip->ref--; 80101c13: 8b 45 08 mov 0x8(%ebp),%eax 80101c16: 8b 40 08 mov 0x8(%eax),%eax 80101c19: 8d 50 ff lea -0x1(%eax),%edx 80101c1c: 8b 45 08 mov 0x8(%ebp),%eax 80101c1f: 89 50 08 mov %edx,0x8(%eax) release(&icache.lock); 80101c22: 83 ec 0c sub $0xc,%esp 80101c25: 68 40 12 11 80 push $0x80111240 80101c2a: e8 7c 34 00 00 call 801050ab <release> 80101c2f: 83 c4 10 add $0x10,%esp } 80101c32: 90 nop 80101c33: c9 leave 80101c34: c3 ret 80101c35 <iunlockput>: // Common idiom: unlock, then put. void iunlockput(struct inode *ip) { 80101c35: 55 push %ebp 80101c36: 89 e5 mov %esp,%ebp 80101c38: 83 ec 08 sub $0x8,%esp iunlock(ip); 80101c3b: 83 ec 0c sub $0xc,%esp 80101c3e: ff 75 08 pushl 0x8(%ebp) 80101c41: e8 8d fe ff ff call 80101ad3 <iunlock> 80101c46: 83 c4 10 add $0x10,%esp iput(ip); 80101c49: 83 ec 0c sub $0xc,%esp 80101c4c: ff 75 08 pushl 0x8(%ebp) 80101c4f: e8 f1 fe ff ff call 80101b45 <iput> 80101c54: 83 c4 10 add $0x10,%esp } 80101c57: 90 nop 80101c58: c9 leave 80101c59: c3 ret 80101c5a <bmap>: // Return the disk block address of the nth block in inode ip. // If there is no such block, bmap allocates one. static uint bmap(struct inode *ip, uint bn) { 80101c5a: 55 push %ebp 80101c5b: 89 e5 mov %esp,%ebp 80101c5d: 83 ec 18 sub $0x18,%esp uint addr, *a; struct buf *bp; if(bn < NDIRECT){ 80101c60: 83 7d 0c 0b cmpl $0xb,0xc(%ebp) 80101c64: 77 42 ja 80101ca8 <bmap+0x4e> if((addr = ip->addrs[bn]) == 0) 80101c66: 8b 45 08 mov 0x8(%ebp),%eax 80101c69: 8b 55 0c mov 0xc(%ebp),%edx 80101c6c: 83 c2 04 add $0x4,%edx 80101c6f: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax 80101c73: 89 45 f4 mov %eax,-0xc(%ebp) 80101c76: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80101c7a: 75 24 jne 80101ca0 <bmap+0x46> ip->addrs[bn] = addr = balloc(ip->dev); 80101c7c: 8b 45 08 mov 0x8(%ebp),%eax 80101c7f: 8b 00 mov (%eax),%eax 80101c81: 83 ec 0c sub $0xc,%esp 80101c84: 50 push %eax 80101c85: e8 9b f7 ff ff call 80101425 <balloc> 80101c8a: 83 c4 10 add $0x10,%esp 80101c8d: 89 45 f4 mov %eax,-0xc(%ebp) 80101c90: 8b 45 08 mov 0x8(%ebp),%eax 80101c93: 8b 55 0c mov 0xc(%ebp),%edx 80101c96: 8d 4a 04 lea 0x4(%edx),%ecx 80101c99: 8b 55 f4 mov -0xc(%ebp),%edx 80101c9c: 89 54 88 0c mov %edx,0xc(%eax,%ecx,4) return addr; 80101ca0: 8b 45 f4 mov -0xc(%ebp),%eax 80101ca3: e9 ca 00 00 00 jmp 80101d72 <bmap+0x118> } bn -= NDIRECT; 80101ca8: 83 6d 0c 0c subl $0xc,0xc(%ebp) if(bn < NINDIRECT){ 80101cac: 83 7d 0c 7f cmpl $0x7f,0xc(%ebp) 80101cb0: 0f 87 af 00 00 00 ja 80101d65 <bmap+0x10b> // Load indirect block, allocating if necessary. if((addr = ip->addrs[NDIRECT]) == 0) 80101cb6: 8b 45 08 mov 0x8(%ebp),%eax 80101cb9: 8b 40 4c mov 0x4c(%eax),%eax 80101cbc: 89 45 f4 mov %eax,-0xc(%ebp) 80101cbf: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80101cc3: 75 1d jne 80101ce2 <bmap+0x88> ip->addrs[NDIRECT] = addr = balloc(ip->dev); 80101cc5: 8b 45 08 mov 0x8(%ebp),%eax 80101cc8: 8b 00 mov (%eax),%eax 80101cca: 83 ec 0c sub $0xc,%esp 80101ccd: 50 push %eax 80101cce: e8 52 f7 ff ff call 80101425 <balloc> 80101cd3: 83 c4 10 add $0x10,%esp 80101cd6: 89 45 f4 mov %eax,-0xc(%ebp) 80101cd9: 8b 45 08 mov 0x8(%ebp),%eax 80101cdc: 8b 55 f4 mov -0xc(%ebp),%edx 80101cdf: 89 50 4c mov %edx,0x4c(%eax) bp = bread(ip->dev, addr); 80101ce2: 8b 45 08 mov 0x8(%ebp),%eax 80101ce5: 8b 00 mov (%eax),%eax 80101ce7: 83 ec 08 sub $0x8,%esp 80101cea: ff 75 f4 pushl -0xc(%ebp) 80101ced: 50 push %eax 80101cee: e8 c3 e4 ff ff call 801001b6 <bread> 80101cf3: 83 c4 10 add $0x10,%esp 80101cf6: 89 45 f0 mov %eax,-0x10(%ebp) a = (uint*)bp->data; 80101cf9: 8b 45 f0 mov -0x10(%ebp),%eax 80101cfc: 83 c0 18 add $0x18,%eax 80101cff: 89 45 ec mov %eax,-0x14(%ebp) if((addr = a[bn]) == 0){ 80101d02: 8b 45 0c mov 0xc(%ebp),%eax 80101d05: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101d0c: 8b 45 ec mov -0x14(%ebp),%eax 80101d0f: 01 d0 add %edx,%eax 80101d11: 8b 00 mov (%eax),%eax 80101d13: 89 45 f4 mov %eax,-0xc(%ebp) 80101d16: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80101d1a: 75 36 jne 80101d52 <bmap+0xf8> a[bn] = addr = balloc(ip->dev); 80101d1c: 8b 45 08 mov 0x8(%ebp),%eax 80101d1f: 8b 00 mov (%eax),%eax 80101d21: 83 ec 0c sub $0xc,%esp 80101d24: 50 push %eax 80101d25: e8 fb f6 ff ff call 80101425 <balloc> 80101d2a: 83 c4 10 add $0x10,%esp 80101d2d: 89 45 f4 mov %eax,-0xc(%ebp) 80101d30: 8b 45 0c mov 0xc(%ebp),%eax 80101d33: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101d3a: 8b 45 ec mov -0x14(%ebp),%eax 80101d3d: 01 c2 add %eax,%edx 80101d3f: 8b 45 f4 mov -0xc(%ebp),%eax 80101d42: 89 02 mov %eax,(%edx) log_write(bp); 80101d44: 83 ec 0c sub $0xc,%esp 80101d47: ff 75 f0 pushl -0x10(%ebp) 80101d4a: e8 3f 1a 00 00 call 8010378e <log_write> 80101d4f: 83 c4 10 add $0x10,%esp } brelse(bp); 80101d52: 83 ec 0c sub $0xc,%esp 80101d55: ff 75 f0 pushl -0x10(%ebp) 80101d58: e8 d1 e4 ff ff call 8010022e <brelse> 80101d5d: 83 c4 10 add $0x10,%esp return addr; 80101d60: 8b 45 f4 mov -0xc(%ebp),%eax 80101d63: eb 0d jmp 80101d72 <bmap+0x118> } panic("bmap: out of range"); 80101d65: 83 ec 0c sub $0xc,%esp 80101d68: 68 e0 86 10 80 push $0x801086e0 80101d6d: e8 f5 e7 ff ff call 80100567 <panic> } 80101d72: c9 leave 80101d73: c3 ret 80101d74 <itrunc>: // to it (no directory entries referring to it) // and has no in-memory reference to it (is // not an open file or current directory). static void itrunc(struct inode *ip) { 80101d74: 55 push %ebp 80101d75: 89 e5 mov %esp,%ebp 80101d77: 83 ec 18 sub $0x18,%esp int i, j; struct buf *bp; uint *a; for(i = 0; i < NDIRECT; i++){ 80101d7a: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80101d81: eb 45 jmp 80101dc8 <itrunc+0x54> if(ip->addrs[i]){ 80101d83: 8b 45 08 mov 0x8(%ebp),%eax 80101d86: 8b 55 f4 mov -0xc(%ebp),%edx 80101d89: 83 c2 04 add $0x4,%edx 80101d8c: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax 80101d90: 85 c0 test %eax,%eax 80101d92: 74 30 je 80101dc4 <itrunc+0x50> bfree(ip->dev, ip->addrs[i]); 80101d94: 8b 45 08 mov 0x8(%ebp),%eax 80101d97: 8b 55 f4 mov -0xc(%ebp),%edx 80101d9a: 83 c2 04 add $0x4,%edx 80101d9d: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax 80101da1: 8b 55 08 mov 0x8(%ebp),%edx 80101da4: 8b 12 mov (%edx),%edx 80101da6: 83 ec 08 sub $0x8,%esp 80101da9: 50 push %eax 80101daa: 52 push %edx 80101dab: e8 c1 f7 ff ff call 80101571 <bfree> 80101db0: 83 c4 10 add $0x10,%esp ip->addrs[i] = 0; 80101db3: 8b 45 08 mov 0x8(%ebp),%eax 80101db6: 8b 55 f4 mov -0xc(%ebp),%edx 80101db9: 83 c2 04 add $0x4,%edx 80101dbc: c7 44 90 0c 00 00 00 movl $0x0,0xc(%eax,%edx,4) 80101dc3: 00 for(i = 0; i < NDIRECT; i++){ 80101dc4: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80101dc8: 83 7d f4 0b cmpl $0xb,-0xc(%ebp) 80101dcc: 7e b5 jle 80101d83 <itrunc+0xf> } } if(ip->addrs[NDIRECT]){ 80101dce: 8b 45 08 mov 0x8(%ebp),%eax 80101dd1: 8b 40 4c mov 0x4c(%eax),%eax 80101dd4: 85 c0 test %eax,%eax 80101dd6: 0f 84 a1 00 00 00 je 80101e7d <itrunc+0x109> bp = bread(ip->dev, ip->addrs[NDIRECT]); 80101ddc: 8b 45 08 mov 0x8(%ebp),%eax 80101ddf: 8b 50 4c mov 0x4c(%eax),%edx 80101de2: 8b 45 08 mov 0x8(%ebp),%eax 80101de5: 8b 00 mov (%eax),%eax 80101de7: 83 ec 08 sub $0x8,%esp 80101dea: 52 push %edx 80101deb: 50 push %eax 80101dec: e8 c5 e3 ff ff call 801001b6 <bread> 80101df1: 83 c4 10 add $0x10,%esp 80101df4: 89 45 ec mov %eax,-0x14(%ebp) a = (uint*)bp->data; 80101df7: 8b 45 ec mov -0x14(%ebp),%eax 80101dfa: 83 c0 18 add $0x18,%eax 80101dfd: 89 45 e8 mov %eax,-0x18(%ebp) for(j = 0; j < NINDIRECT; j++){ 80101e00: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 80101e07: eb 3c jmp 80101e45 <itrunc+0xd1> if(a[j]) 80101e09: 8b 45 f0 mov -0x10(%ebp),%eax 80101e0c: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101e13: 8b 45 e8 mov -0x18(%ebp),%eax 80101e16: 01 d0 add %edx,%eax 80101e18: 8b 00 mov (%eax),%eax 80101e1a: 85 c0 test %eax,%eax 80101e1c: 74 23 je 80101e41 <itrunc+0xcd> bfree(ip->dev, a[j]); 80101e1e: 8b 45 f0 mov -0x10(%ebp),%eax 80101e21: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101e28: 8b 45 e8 mov -0x18(%ebp),%eax 80101e2b: 01 d0 add %edx,%eax 80101e2d: 8b 00 mov (%eax),%eax 80101e2f: 8b 55 08 mov 0x8(%ebp),%edx 80101e32: 8b 12 mov (%edx),%edx 80101e34: 83 ec 08 sub $0x8,%esp 80101e37: 50 push %eax 80101e38: 52 push %edx 80101e39: e8 33 f7 ff ff call 80101571 <bfree> 80101e3e: 83 c4 10 add $0x10,%esp for(j = 0; j < NINDIRECT; j++){ 80101e41: 83 45 f0 01 addl $0x1,-0x10(%ebp) 80101e45: 8b 45 f0 mov -0x10(%ebp),%eax 80101e48: 83 f8 7f cmp $0x7f,%eax 80101e4b: 76 bc jbe 80101e09 <itrunc+0x95> } brelse(bp); 80101e4d: 83 ec 0c sub $0xc,%esp 80101e50: ff 75 ec pushl -0x14(%ebp) 80101e53: e8 d6 e3 ff ff call 8010022e <brelse> 80101e58: 83 c4 10 add $0x10,%esp bfree(ip->dev, ip->addrs[NDIRECT]); 80101e5b: 8b 45 08 mov 0x8(%ebp),%eax 80101e5e: 8b 40 4c mov 0x4c(%eax),%eax 80101e61: 8b 55 08 mov 0x8(%ebp),%edx 80101e64: 8b 12 mov (%edx),%edx 80101e66: 83 ec 08 sub $0x8,%esp 80101e69: 50 push %eax 80101e6a: 52 push %edx 80101e6b: e8 01 f7 ff ff call 80101571 <bfree> 80101e70: 83 c4 10 add $0x10,%esp ip->addrs[NDIRECT] = 0; 80101e73: 8b 45 08 mov 0x8(%ebp),%eax 80101e76: c7 40 4c 00 00 00 00 movl $0x0,0x4c(%eax) } ip->size = 0; 80101e7d: 8b 45 08 mov 0x8(%ebp),%eax 80101e80: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) iupdate(ip); 80101e87: 83 ec 0c sub $0xc,%esp 80101e8a: ff 75 08 pushl 0x8(%ebp) 80101e8d: e8 09 f9 ff ff call 8010179b <iupdate> 80101e92: 83 c4 10 add $0x10,%esp } 80101e95: 90 nop 80101e96: c9 leave 80101e97: c3 ret 80101e98 <stati>: // Copy stat information from inode. void stati(struct inode *ip, struct stat *st) { 80101e98: 55 push %ebp 80101e99: 89 e5 mov %esp,%ebp st->dev = ip->dev; 80101e9b: 8b 45 08 mov 0x8(%ebp),%eax 80101e9e: 8b 00 mov (%eax),%eax 80101ea0: 89 c2 mov %eax,%edx 80101ea2: 8b 45 0c mov 0xc(%ebp),%eax 80101ea5: 89 50 04 mov %edx,0x4(%eax) st->ino = ip->inum; 80101ea8: 8b 45 08 mov 0x8(%ebp),%eax 80101eab: 8b 50 04 mov 0x4(%eax),%edx 80101eae: 8b 45 0c mov 0xc(%ebp),%eax 80101eb1: 89 50 08 mov %edx,0x8(%eax) st->type = ip->type; 80101eb4: 8b 45 08 mov 0x8(%ebp),%eax 80101eb7: 0f b7 50 10 movzwl 0x10(%eax),%edx 80101ebb: 8b 45 0c mov 0xc(%ebp),%eax 80101ebe: 66 89 10 mov %dx,(%eax) st->nlink = ip->nlink; 80101ec1: 8b 45 08 mov 0x8(%ebp),%eax 80101ec4: 0f b7 50 16 movzwl 0x16(%eax),%edx 80101ec8: 8b 45 0c mov 0xc(%ebp),%eax 80101ecb: 66 89 50 0c mov %dx,0xc(%eax) st->size = ip->size; 80101ecf: 8b 45 08 mov 0x8(%ebp),%eax 80101ed2: 8b 50 18 mov 0x18(%eax),%edx 80101ed5: 8b 45 0c mov 0xc(%ebp),%eax 80101ed8: 89 50 10 mov %edx,0x10(%eax) } 80101edb: 90 nop 80101edc: 5d pop %ebp 80101edd: c3 ret 80101ede <readi>: //PAGEBREAK! // Read data from inode. int readi(struct inode *ip, char *dst, uint off, uint n) { 80101ede: 55 push %ebp 80101edf: 89 e5 mov %esp,%ebp 80101ee1: 83 ec 18 sub $0x18,%esp uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 80101ee4: 8b 45 08 mov 0x8(%ebp),%eax 80101ee7: 0f b7 40 10 movzwl 0x10(%eax),%eax 80101eeb: 66 83 f8 03 cmp $0x3,%ax 80101eef: 75 5c jne 80101f4d <readi+0x6f> if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read) 80101ef1: 8b 45 08 mov 0x8(%ebp),%eax 80101ef4: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101ef8: 66 85 c0 test %ax,%ax 80101efb: 78 20 js 80101f1d <readi+0x3f> 80101efd: 8b 45 08 mov 0x8(%ebp),%eax 80101f00: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101f04: 66 83 f8 09 cmp $0x9,%ax 80101f08: 7f 13 jg 80101f1d <readi+0x3f> 80101f0a: 8b 45 08 mov 0x8(%ebp),%eax 80101f0d: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101f11: 98 cwtl 80101f12: 8b 04 c5 c0 11 11 80 mov -0x7feeee40(,%eax,8),%eax 80101f19: 85 c0 test %eax,%eax 80101f1b: 75 0a jne 80101f27 <readi+0x49> return -1; 80101f1d: b8 ff ff ff ff mov $0xffffffff,%eax 80101f22: e9 0c 01 00 00 jmp 80102033 <readi+0x155> return devsw[ip->major].read(ip, dst, n); 80101f27: 8b 45 08 mov 0x8(%ebp),%eax 80101f2a: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101f2e: 98 cwtl 80101f2f: 8b 04 c5 c0 11 11 80 mov -0x7feeee40(,%eax,8),%eax 80101f36: 8b 55 14 mov 0x14(%ebp),%edx 80101f39: 83 ec 04 sub $0x4,%esp 80101f3c: 52 push %edx 80101f3d: ff 75 0c pushl 0xc(%ebp) 80101f40: ff 75 08 pushl 0x8(%ebp) 80101f43: ff d0 call *%eax 80101f45: 83 c4 10 add $0x10,%esp 80101f48: e9 e6 00 00 00 jmp 80102033 <readi+0x155> } if(off > ip->size || off + n < off) 80101f4d: 8b 45 08 mov 0x8(%ebp),%eax 80101f50: 8b 40 18 mov 0x18(%eax),%eax 80101f53: 39 45 10 cmp %eax,0x10(%ebp) 80101f56: 77 0d ja 80101f65 <readi+0x87> 80101f58: 8b 55 10 mov 0x10(%ebp),%edx 80101f5b: 8b 45 14 mov 0x14(%ebp),%eax 80101f5e: 01 d0 add %edx,%eax 80101f60: 39 45 10 cmp %eax,0x10(%ebp) 80101f63: 76 0a jbe 80101f6f <readi+0x91> return -1; 80101f65: b8 ff ff ff ff mov $0xffffffff,%eax 80101f6a: e9 c4 00 00 00 jmp 80102033 <readi+0x155> if(off + n > ip->size) 80101f6f: 8b 55 10 mov 0x10(%ebp),%edx 80101f72: 8b 45 14 mov 0x14(%ebp),%eax 80101f75: 01 c2 add %eax,%edx 80101f77: 8b 45 08 mov 0x8(%ebp),%eax 80101f7a: 8b 40 18 mov 0x18(%eax),%eax 80101f7d: 39 c2 cmp %eax,%edx 80101f7f: 76 0c jbe 80101f8d <readi+0xaf> n = ip->size - off; 80101f81: 8b 45 08 mov 0x8(%ebp),%eax 80101f84: 8b 40 18 mov 0x18(%eax),%eax 80101f87: 2b 45 10 sub 0x10(%ebp),%eax 80101f8a: 89 45 14 mov %eax,0x14(%ebp) for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 80101f8d: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80101f94: e9 8b 00 00 00 jmp 80102024 <readi+0x146> bp = bread(ip->dev, bmap(ip, off/BSIZE)); 80101f99: 8b 45 10 mov 0x10(%ebp),%eax 80101f9c: c1 e8 09 shr $0x9,%eax 80101f9f: 83 ec 08 sub $0x8,%esp 80101fa2: 50 push %eax 80101fa3: ff 75 08 pushl 0x8(%ebp) 80101fa6: e8 af fc ff ff call 80101c5a <bmap> 80101fab: 83 c4 10 add $0x10,%esp 80101fae: 89 c2 mov %eax,%edx 80101fb0: 8b 45 08 mov 0x8(%ebp),%eax 80101fb3: 8b 00 mov (%eax),%eax 80101fb5: 83 ec 08 sub $0x8,%esp 80101fb8: 52 push %edx 80101fb9: 50 push %eax 80101fba: e8 f7 e1 ff ff call 801001b6 <bread> 80101fbf: 83 c4 10 add $0x10,%esp 80101fc2: 89 45 f0 mov %eax,-0x10(%ebp) m = min(n - tot, BSIZE - off%BSIZE); 80101fc5: 8b 45 10 mov 0x10(%ebp),%eax 80101fc8: 25 ff 01 00 00 and $0x1ff,%eax 80101fcd: ba 00 02 00 00 mov $0x200,%edx 80101fd2: 29 c2 sub %eax,%edx 80101fd4: 8b 45 14 mov 0x14(%ebp),%eax 80101fd7: 2b 45 f4 sub -0xc(%ebp),%eax 80101fda: 39 c2 cmp %eax,%edx 80101fdc: 0f 46 c2 cmovbe %edx,%eax 80101fdf: 89 45 ec mov %eax,-0x14(%ebp) memmove(dst, bp->data + off%BSIZE, m); 80101fe2: 8b 45 f0 mov -0x10(%ebp),%eax 80101fe5: 8d 50 18 lea 0x18(%eax),%edx 80101fe8: 8b 45 10 mov 0x10(%ebp),%eax 80101feb: 25 ff 01 00 00 and $0x1ff,%eax 80101ff0: 01 d0 add %edx,%eax 80101ff2: 83 ec 04 sub $0x4,%esp 80101ff5: ff 75 ec pushl -0x14(%ebp) 80101ff8: 50 push %eax 80101ff9: ff 75 0c pushl 0xc(%ebp) 80101ffc: e8 65 33 00 00 call 80105366 <memmove> 80102001: 83 c4 10 add $0x10,%esp brelse(bp); 80102004: 83 ec 0c sub $0xc,%esp 80102007: ff 75 f0 pushl -0x10(%ebp) 8010200a: e8 1f e2 ff ff call 8010022e <brelse> 8010200f: 83 c4 10 add $0x10,%esp for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 80102012: 8b 45 ec mov -0x14(%ebp),%eax 80102015: 01 45 f4 add %eax,-0xc(%ebp) 80102018: 8b 45 ec mov -0x14(%ebp),%eax 8010201b: 01 45 10 add %eax,0x10(%ebp) 8010201e: 8b 45 ec mov -0x14(%ebp),%eax 80102021: 01 45 0c add %eax,0xc(%ebp) 80102024: 8b 45 f4 mov -0xc(%ebp),%eax 80102027: 3b 45 14 cmp 0x14(%ebp),%eax 8010202a: 0f 82 69 ff ff ff jb 80101f99 <readi+0xbb> } return n; 80102030: 8b 45 14 mov 0x14(%ebp),%eax } 80102033: c9 leave 80102034: c3 ret 80102035 <writei>: // PAGEBREAK! // Write data to inode. int writei(struct inode *ip, char *src, uint off, uint n) { 80102035: 55 push %ebp 80102036: 89 e5 mov %esp,%ebp 80102038: 83 ec 18 sub $0x18,%esp uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 8010203b: 8b 45 08 mov 0x8(%ebp),%eax 8010203e: 0f b7 40 10 movzwl 0x10(%eax),%eax 80102042: 66 83 f8 03 cmp $0x3,%ax 80102046: 75 5c jne 801020a4 <writei+0x6f> if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write) 80102048: 8b 45 08 mov 0x8(%ebp),%eax 8010204b: 0f b7 40 12 movzwl 0x12(%eax),%eax 8010204f: 66 85 c0 test %ax,%ax 80102052: 78 20 js 80102074 <writei+0x3f> 80102054: 8b 45 08 mov 0x8(%ebp),%eax 80102057: 0f b7 40 12 movzwl 0x12(%eax),%eax 8010205b: 66 83 f8 09 cmp $0x9,%ax 8010205f: 7f 13 jg 80102074 <writei+0x3f> 80102061: 8b 45 08 mov 0x8(%ebp),%eax 80102064: 0f b7 40 12 movzwl 0x12(%eax),%eax 80102068: 98 cwtl 80102069: 8b 04 c5 c4 11 11 80 mov -0x7feeee3c(,%eax,8),%eax 80102070: 85 c0 test %eax,%eax 80102072: 75 0a jne 8010207e <writei+0x49> return -1; 80102074: b8 ff ff ff ff mov $0xffffffff,%eax 80102079: e9 3d 01 00 00 jmp 801021bb <writei+0x186> return devsw[ip->major].write(ip, src, n); 8010207e: 8b 45 08 mov 0x8(%ebp),%eax 80102081: 0f b7 40 12 movzwl 0x12(%eax),%eax 80102085: 98 cwtl 80102086: 8b 04 c5 c4 11 11 80 mov -0x7feeee3c(,%eax,8),%eax 8010208d: 8b 55 14 mov 0x14(%ebp),%edx 80102090: 83 ec 04 sub $0x4,%esp 80102093: 52 push %edx 80102094: ff 75 0c pushl 0xc(%ebp) 80102097: ff 75 08 pushl 0x8(%ebp) 8010209a: ff d0 call *%eax 8010209c: 83 c4 10 add $0x10,%esp 8010209f: e9 17 01 00 00 jmp 801021bb <writei+0x186> } if(off > ip->size || off + n < off) 801020a4: 8b 45 08 mov 0x8(%ebp),%eax 801020a7: 8b 40 18 mov 0x18(%eax),%eax 801020aa: 39 45 10 cmp %eax,0x10(%ebp) 801020ad: 77 0d ja 801020bc <writei+0x87> 801020af: 8b 55 10 mov 0x10(%ebp),%edx 801020b2: 8b 45 14 mov 0x14(%ebp),%eax 801020b5: 01 d0 add %edx,%eax 801020b7: 39 45 10 cmp %eax,0x10(%ebp) 801020ba: 76 0a jbe 801020c6 <writei+0x91> return -1; 801020bc: b8 ff ff ff ff mov $0xffffffff,%eax 801020c1: e9 f5 00 00 00 jmp 801021bb <writei+0x186> if(off + n > MAXFILE*BSIZE) 801020c6: 8b 55 10 mov 0x10(%ebp),%edx 801020c9: 8b 45 14 mov 0x14(%ebp),%eax 801020cc: 01 d0 add %edx,%eax 801020ce: 3d 00 18 01 00 cmp $0x11800,%eax 801020d3: 76 0a jbe 801020df <writei+0xaa> return -1; 801020d5: b8 ff ff ff ff mov $0xffffffff,%eax 801020da: e9 dc 00 00 00 jmp 801021bb <writei+0x186> for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 801020df: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801020e6: e9 99 00 00 00 jmp 80102184 <writei+0x14f> bp = bread(ip->dev, bmap(ip, off/BSIZE)); 801020eb: 8b 45 10 mov 0x10(%ebp),%eax 801020ee: c1 e8 09 shr $0x9,%eax 801020f1: 83 ec 08 sub $0x8,%esp 801020f4: 50 push %eax 801020f5: ff 75 08 pushl 0x8(%ebp) 801020f8: e8 5d fb ff ff call 80101c5a <bmap> 801020fd: 83 c4 10 add $0x10,%esp 80102100: 89 c2 mov %eax,%edx 80102102: 8b 45 08 mov 0x8(%ebp),%eax 80102105: 8b 00 mov (%eax),%eax 80102107: 83 ec 08 sub $0x8,%esp 8010210a: 52 push %edx 8010210b: 50 push %eax 8010210c: e8 a5 e0 ff ff call 801001b6 <bread> 80102111: 83 c4 10 add $0x10,%esp 80102114: 89 45 f0 mov %eax,-0x10(%ebp) m = min(n - tot, BSIZE - off%BSIZE); 80102117: 8b 45 10 mov 0x10(%ebp),%eax 8010211a: 25 ff 01 00 00 and $0x1ff,%eax 8010211f: ba 00 02 00 00 mov $0x200,%edx 80102124: 29 c2 sub %eax,%edx 80102126: 8b 45 14 mov 0x14(%ebp),%eax 80102129: 2b 45 f4 sub -0xc(%ebp),%eax 8010212c: 39 c2 cmp %eax,%edx 8010212e: 0f 46 c2 cmovbe %edx,%eax 80102131: 89 45 ec mov %eax,-0x14(%ebp) memmove(bp->data + off%BSIZE, src, m); 80102134: 8b 45 f0 mov -0x10(%ebp),%eax 80102137: 8d 50 18 lea 0x18(%eax),%edx 8010213a: 8b 45 10 mov 0x10(%ebp),%eax 8010213d: 25 ff 01 00 00 and $0x1ff,%eax 80102142: 01 d0 add %edx,%eax 80102144: 83 ec 04 sub $0x4,%esp 80102147: ff 75 ec pushl -0x14(%ebp) 8010214a: ff 75 0c pushl 0xc(%ebp) 8010214d: 50 push %eax 8010214e: e8 13 32 00 00 call 80105366 <memmove> 80102153: 83 c4 10 add $0x10,%esp log_write(bp); 80102156: 83 ec 0c sub $0xc,%esp 80102159: ff 75 f0 pushl -0x10(%ebp) 8010215c: e8 2d 16 00 00 call 8010378e <log_write> 80102161: 83 c4 10 add $0x10,%esp brelse(bp); 80102164: 83 ec 0c sub $0xc,%esp 80102167: ff 75 f0 pushl -0x10(%ebp) 8010216a: e8 bf e0 ff ff call 8010022e <brelse> 8010216f: 83 c4 10 add $0x10,%esp for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 80102172: 8b 45 ec mov -0x14(%ebp),%eax 80102175: 01 45 f4 add %eax,-0xc(%ebp) 80102178: 8b 45 ec mov -0x14(%ebp),%eax 8010217b: 01 45 10 add %eax,0x10(%ebp) 8010217e: 8b 45 ec mov -0x14(%ebp),%eax 80102181: 01 45 0c add %eax,0xc(%ebp) 80102184: 8b 45 f4 mov -0xc(%ebp),%eax 80102187: 3b 45 14 cmp 0x14(%ebp),%eax 8010218a: 0f 82 5b ff ff ff jb 801020eb <writei+0xb6> } if(n > 0 && off > ip->size){ 80102190: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 80102194: 74 22 je 801021b8 <writei+0x183> 80102196: 8b 45 08 mov 0x8(%ebp),%eax 80102199: 8b 40 18 mov 0x18(%eax),%eax 8010219c: 39 45 10 cmp %eax,0x10(%ebp) 8010219f: 76 17 jbe 801021b8 <writei+0x183> ip->size = off; 801021a1: 8b 45 08 mov 0x8(%ebp),%eax 801021a4: 8b 55 10 mov 0x10(%ebp),%edx 801021a7: 89 50 18 mov %edx,0x18(%eax) iupdate(ip); 801021aa: 83 ec 0c sub $0xc,%esp 801021ad: ff 75 08 pushl 0x8(%ebp) 801021b0: e8 e6 f5 ff ff call 8010179b <iupdate> 801021b5: 83 c4 10 add $0x10,%esp } return n; 801021b8: 8b 45 14 mov 0x14(%ebp),%eax } 801021bb: c9 leave 801021bc: c3 ret 801021bd <namecmp>: //PAGEBREAK! // Directories int namecmp(const char *s, const char *t) { 801021bd: 55 push %ebp 801021be: 89 e5 mov %esp,%ebp 801021c0: 83 ec 08 sub $0x8,%esp return strncmp(s, t, DIRSIZ); 801021c3: 83 ec 04 sub $0x4,%esp 801021c6: 6a 0e push $0xe 801021c8: ff 75 0c pushl 0xc(%ebp) 801021cb: ff 75 08 pushl 0x8(%ebp) 801021ce: e8 29 32 00 00 call 801053fc <strncmp> 801021d3: 83 c4 10 add $0x10,%esp } 801021d6: c9 leave 801021d7: c3 ret 801021d8 <dirlookup>: // Look for a directory entry in a directory. // If found, set *poff to byte offset of entry. struct inode* dirlookup(struct inode *dp, char *name, uint *poff) { 801021d8: 55 push %ebp 801021d9: 89 e5 mov %esp,%ebp 801021db: 83 ec 28 sub $0x28,%esp uint off, inum; struct dirent de; if(dp->type != T_DIR) 801021de: 8b 45 08 mov 0x8(%ebp),%eax 801021e1: 0f b7 40 10 movzwl 0x10(%eax),%eax 801021e5: 66 83 f8 01 cmp $0x1,%ax 801021e9: 74 0d je 801021f8 <dirlookup+0x20> panic("dirlookup not DIR"); 801021eb: 83 ec 0c sub $0xc,%esp 801021ee: 68 f3 86 10 80 push $0x801086f3 801021f3: e8 6f e3 ff ff call 80100567 <panic> for(off = 0; off < dp->size; off += sizeof(de)){ 801021f8: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801021ff: eb 7b jmp 8010227c <dirlookup+0xa4> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80102201: 6a 10 push $0x10 80102203: ff 75 f4 pushl -0xc(%ebp) 80102206: 8d 45 e0 lea -0x20(%ebp),%eax 80102209: 50 push %eax 8010220a: ff 75 08 pushl 0x8(%ebp) 8010220d: e8 cc fc ff ff call 80101ede <readi> 80102212: 83 c4 10 add $0x10,%esp 80102215: 83 f8 10 cmp $0x10,%eax 80102218: 74 0d je 80102227 <dirlookup+0x4f> panic("dirlink read"); 8010221a: 83 ec 0c sub $0xc,%esp 8010221d: 68 05 87 10 80 push $0x80108705 80102222: e8 40 e3 ff ff call 80100567 <panic> if(de.inum == 0) 80102227: 0f b7 45 e0 movzwl -0x20(%ebp),%eax 8010222b: 66 85 c0 test %ax,%ax 8010222e: 74 47 je 80102277 <dirlookup+0x9f> continue; if(namecmp(name, de.name) == 0){ 80102230: 83 ec 08 sub $0x8,%esp 80102233: 8d 45 e0 lea -0x20(%ebp),%eax 80102236: 83 c0 02 add $0x2,%eax 80102239: 50 push %eax 8010223a: ff 75 0c pushl 0xc(%ebp) 8010223d: e8 7b ff ff ff call 801021bd <namecmp> 80102242: 83 c4 10 add $0x10,%esp 80102245: 85 c0 test %eax,%eax 80102247: 75 2f jne 80102278 <dirlookup+0xa0> // entry matches path element if(poff) 80102249: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 8010224d: 74 08 je 80102257 <dirlookup+0x7f> *poff = off; 8010224f: 8b 45 10 mov 0x10(%ebp),%eax 80102252: 8b 55 f4 mov -0xc(%ebp),%edx 80102255: 89 10 mov %edx,(%eax) inum = de.inum; 80102257: 0f b7 45 e0 movzwl -0x20(%ebp),%eax 8010225b: 0f b7 c0 movzwl %ax,%eax 8010225e: 89 45 f0 mov %eax,-0x10(%ebp) return iget(dp->dev, inum); 80102261: 8b 45 08 mov 0x8(%ebp),%eax 80102264: 8b 00 mov (%eax),%eax 80102266: 83 ec 08 sub $0x8,%esp 80102269: ff 75 f0 pushl -0x10(%ebp) 8010226c: 50 push %eax 8010226d: e8 ea f5 ff ff call 8010185c <iget> 80102272: 83 c4 10 add $0x10,%esp 80102275: eb 19 jmp 80102290 <dirlookup+0xb8> continue; 80102277: 90 nop for(off = 0; off < dp->size; off += sizeof(de)){ 80102278: 83 45 f4 10 addl $0x10,-0xc(%ebp) 8010227c: 8b 45 08 mov 0x8(%ebp),%eax 8010227f: 8b 40 18 mov 0x18(%eax),%eax 80102282: 39 45 f4 cmp %eax,-0xc(%ebp) 80102285: 0f 82 76 ff ff ff jb 80102201 <dirlookup+0x29> } } return 0; 8010228b: b8 00 00 00 00 mov $0x0,%eax } 80102290: c9 leave 80102291: c3 ret 80102292 <dirlink>: // Write a new directory entry (name, inum) into the directory dp. int dirlink(struct inode *dp, char *name, uint inum) { 80102292: 55 push %ebp 80102293: 89 e5 mov %esp,%ebp 80102295: 83 ec 28 sub $0x28,%esp int off; struct dirent de; struct inode *ip; // Check that name is not present. if((ip = dirlookup(dp, name, 0)) != 0){ 80102298: 83 ec 04 sub $0x4,%esp 8010229b: 6a 00 push $0x0 8010229d: ff 75 0c pushl 0xc(%ebp) 801022a0: ff 75 08 pushl 0x8(%ebp) 801022a3: e8 30 ff ff ff call 801021d8 <dirlookup> 801022a8: 83 c4 10 add $0x10,%esp 801022ab: 89 45 f0 mov %eax,-0x10(%ebp) 801022ae: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801022b2: 74 18 je 801022cc <dirlink+0x3a> iput(ip); 801022b4: 83 ec 0c sub $0xc,%esp 801022b7: ff 75 f0 pushl -0x10(%ebp) 801022ba: e8 86 f8 ff ff call 80101b45 <iput> 801022bf: 83 c4 10 add $0x10,%esp return -1; 801022c2: b8 ff ff ff ff mov $0xffffffff,%eax 801022c7: e9 9c 00 00 00 jmp 80102368 <dirlink+0xd6> } // Look for an empty dirent. for(off = 0; off < dp->size; off += sizeof(de)){ 801022cc: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801022d3: eb 39 jmp 8010230e <dirlink+0x7c> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 801022d5: 8b 45 f4 mov -0xc(%ebp),%eax 801022d8: 6a 10 push $0x10 801022da: 50 push %eax 801022db: 8d 45 e0 lea -0x20(%ebp),%eax 801022de: 50 push %eax 801022df: ff 75 08 pushl 0x8(%ebp) 801022e2: e8 f7 fb ff ff call 80101ede <readi> 801022e7: 83 c4 10 add $0x10,%esp 801022ea: 83 f8 10 cmp $0x10,%eax 801022ed: 74 0d je 801022fc <dirlink+0x6a> panic("dirlink read"); 801022ef: 83 ec 0c sub $0xc,%esp 801022f2: 68 05 87 10 80 push $0x80108705 801022f7: e8 6b e2 ff ff call 80100567 <panic> if(de.inum == 0) 801022fc: 0f b7 45 e0 movzwl -0x20(%ebp),%eax 80102300: 66 85 c0 test %ax,%ax 80102303: 74 18 je 8010231d <dirlink+0x8b> for(off = 0; off < dp->size; off += sizeof(de)){ 80102305: 8b 45 f4 mov -0xc(%ebp),%eax 80102308: 83 c0 10 add $0x10,%eax 8010230b: 89 45 f4 mov %eax,-0xc(%ebp) 8010230e: 8b 45 08 mov 0x8(%ebp),%eax 80102311: 8b 50 18 mov 0x18(%eax),%edx 80102314: 8b 45 f4 mov -0xc(%ebp),%eax 80102317: 39 c2 cmp %eax,%edx 80102319: 77 ba ja 801022d5 <dirlink+0x43> 8010231b: eb 01 jmp 8010231e <dirlink+0x8c> break; 8010231d: 90 nop } strncpy(de.name, name, DIRSIZ); 8010231e: 83 ec 04 sub $0x4,%esp 80102321: 6a 0e push $0xe 80102323: ff 75 0c pushl 0xc(%ebp) 80102326: 8d 45 e0 lea -0x20(%ebp),%eax 80102329: 83 c0 02 add $0x2,%eax 8010232c: 50 push %eax 8010232d: e8 20 31 00 00 call 80105452 <strncpy> 80102332: 83 c4 10 add $0x10,%esp de.inum = inum; 80102335: 8b 45 10 mov 0x10(%ebp),%eax 80102338: 66 89 45 e0 mov %ax,-0x20(%ebp) if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 8010233c: 8b 45 f4 mov -0xc(%ebp),%eax 8010233f: 6a 10 push $0x10 80102341: 50 push %eax 80102342: 8d 45 e0 lea -0x20(%ebp),%eax 80102345: 50 push %eax 80102346: ff 75 08 pushl 0x8(%ebp) 80102349: e8 e7 fc ff ff call 80102035 <writei> 8010234e: 83 c4 10 add $0x10,%esp 80102351: 83 f8 10 cmp $0x10,%eax 80102354: 74 0d je 80102363 <dirlink+0xd1> panic("dirlink"); 80102356: 83 ec 0c sub $0xc,%esp 80102359: 68 12 87 10 80 push $0x80108712 8010235e: e8 04 e2 ff ff call 80100567 <panic> return 0; 80102363: b8 00 00 00 00 mov $0x0,%eax } 80102368: c9 leave 80102369: c3 ret 8010236a <skipelem>: // skipelem("a", name) = "", setting name = "a" // skipelem("", name) = skipelem("////", name) = 0 // static char* skipelem(char *path, char *name) { 8010236a: 55 push %ebp 8010236b: 89 e5 mov %esp,%ebp 8010236d: 83 ec 18 sub $0x18,%esp char *s; int len; while(*path == '/') 80102370: eb 04 jmp 80102376 <skipelem+0xc> path++; 80102372: 83 45 08 01 addl $0x1,0x8(%ebp) while(*path == '/') 80102376: 8b 45 08 mov 0x8(%ebp),%eax 80102379: 0f b6 00 movzbl (%eax),%eax 8010237c: 3c 2f cmp $0x2f,%al 8010237e: 74 f2 je 80102372 <skipelem+0x8> if(*path == 0) 80102380: 8b 45 08 mov 0x8(%ebp),%eax 80102383: 0f b6 00 movzbl (%eax),%eax 80102386: 84 c0 test %al,%al 80102388: 75 07 jne 80102391 <skipelem+0x27> return 0; 8010238a: b8 00 00 00 00 mov $0x0,%eax 8010238f: eb 77 jmp 80102408 <skipelem+0x9e> s = path; 80102391: 8b 45 08 mov 0x8(%ebp),%eax 80102394: 89 45 f4 mov %eax,-0xc(%ebp) while(*path != '/' && *path != 0) 80102397: eb 04 jmp 8010239d <skipelem+0x33> path++; 80102399: 83 45 08 01 addl $0x1,0x8(%ebp) while(*path != '/' && *path != 0) 8010239d: 8b 45 08 mov 0x8(%ebp),%eax 801023a0: 0f b6 00 movzbl (%eax),%eax 801023a3: 3c 2f cmp $0x2f,%al 801023a5: 74 0a je 801023b1 <skipelem+0x47> 801023a7: 8b 45 08 mov 0x8(%ebp),%eax 801023aa: 0f b6 00 movzbl (%eax),%eax 801023ad: 84 c0 test %al,%al 801023af: 75 e8 jne 80102399 <skipelem+0x2f> len = path - s; 801023b1: 8b 45 08 mov 0x8(%ebp),%eax 801023b4: 2b 45 f4 sub -0xc(%ebp),%eax 801023b7: 89 45 f0 mov %eax,-0x10(%ebp) if(len >= DIRSIZ) 801023ba: 83 7d f0 0d cmpl $0xd,-0x10(%ebp) 801023be: 7e 15 jle 801023d5 <skipelem+0x6b> memmove(name, s, DIRSIZ); 801023c0: 83 ec 04 sub $0x4,%esp 801023c3: 6a 0e push $0xe 801023c5: ff 75 f4 pushl -0xc(%ebp) 801023c8: ff 75 0c pushl 0xc(%ebp) 801023cb: e8 96 2f 00 00 call 80105366 <memmove> 801023d0: 83 c4 10 add $0x10,%esp 801023d3: eb 26 jmp 801023fb <skipelem+0x91> else { memmove(name, s, len); 801023d5: 8b 45 f0 mov -0x10(%ebp),%eax 801023d8: 83 ec 04 sub $0x4,%esp 801023db: 50 push %eax 801023dc: ff 75 f4 pushl -0xc(%ebp) 801023df: ff 75 0c pushl 0xc(%ebp) 801023e2: e8 7f 2f 00 00 call 80105366 <memmove> 801023e7: 83 c4 10 add $0x10,%esp name[len] = 0; 801023ea: 8b 55 f0 mov -0x10(%ebp),%edx 801023ed: 8b 45 0c mov 0xc(%ebp),%eax 801023f0: 01 d0 add %edx,%eax 801023f2: c6 00 00 movb $0x0,(%eax) } while(*path == '/') 801023f5: eb 04 jmp 801023fb <skipelem+0x91> path++; 801023f7: 83 45 08 01 addl $0x1,0x8(%ebp) while(*path == '/') 801023fb: 8b 45 08 mov 0x8(%ebp),%eax 801023fe: 0f b6 00 movzbl (%eax),%eax 80102401: 3c 2f cmp $0x2f,%al 80102403: 74 f2 je 801023f7 <skipelem+0x8d> return path; 80102405: 8b 45 08 mov 0x8(%ebp),%eax } 80102408: c9 leave 80102409: c3 ret 8010240a <namex>: // If parent != 0, return the inode for the parent and copy the final // path element into name, which must have room for DIRSIZ bytes. // Must be called inside a transaction since it calls iput(). static struct inode* namex(char *path, int nameiparent, char *name) { 8010240a: 55 push %ebp 8010240b: 89 e5 mov %esp,%ebp 8010240d: 83 ec 18 sub $0x18,%esp struct inode *ip, *next; if(*path == '/') 80102410: 8b 45 08 mov 0x8(%ebp),%eax 80102413: 0f b6 00 movzbl (%eax),%eax 80102416: 3c 2f cmp $0x2f,%al 80102418: 75 17 jne 80102431 <namex+0x27> ip = iget(ROOTDEV, ROOTINO); 8010241a: 83 ec 08 sub $0x8,%esp 8010241d: 6a 01 push $0x1 8010241f: 6a 01 push $0x1 80102421: e8 36 f4 ff ff call 8010185c <iget> 80102426: 83 c4 10 add $0x10,%esp 80102429: 89 45 f4 mov %eax,-0xc(%ebp) 8010242c: e9 bb 00 00 00 jmp 801024ec <namex+0xe2> else ip = idup(proc->cwd); 80102431: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80102437: 8b 40 68 mov 0x68(%eax),%eax 8010243a: 83 ec 0c sub $0xc,%esp 8010243d: 50 push %eax 8010243e: e8 f8 f4 ff ff call 8010193b <idup> 80102443: 83 c4 10 add $0x10,%esp 80102446: 89 45 f4 mov %eax,-0xc(%ebp) while((path = skipelem(path, name)) != 0){ 80102449: e9 9e 00 00 00 jmp 801024ec <namex+0xe2> ilock(ip); 8010244e: 83 ec 0c sub $0xc,%esp 80102451: ff 75 f4 pushl -0xc(%ebp) 80102454: e8 1c f5 ff ff call 80101975 <ilock> 80102459: 83 c4 10 add $0x10,%esp if(ip->type != T_DIR){ 8010245c: 8b 45 f4 mov -0xc(%ebp),%eax 8010245f: 0f b7 40 10 movzwl 0x10(%eax),%eax 80102463: 66 83 f8 01 cmp $0x1,%ax 80102467: 74 18 je 80102481 <namex+0x77> iunlockput(ip); 80102469: 83 ec 0c sub $0xc,%esp 8010246c: ff 75 f4 pushl -0xc(%ebp) 8010246f: e8 c1 f7 ff ff call 80101c35 <iunlockput> 80102474: 83 c4 10 add $0x10,%esp return 0; 80102477: b8 00 00 00 00 mov $0x0,%eax 8010247c: e9 a7 00 00 00 jmp 80102528 <namex+0x11e> } if(nameiparent && *path == '\0'){ 80102481: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 80102485: 74 20 je 801024a7 <namex+0x9d> 80102487: 8b 45 08 mov 0x8(%ebp),%eax 8010248a: 0f b6 00 movzbl (%eax),%eax 8010248d: 84 c0 test %al,%al 8010248f: 75 16 jne 801024a7 <namex+0x9d> // Stop one level early. iunlock(ip); 80102491: 83 ec 0c sub $0xc,%esp 80102494: ff 75 f4 pushl -0xc(%ebp) 80102497: e8 37 f6 ff ff call 80101ad3 <iunlock> 8010249c: 83 c4 10 add $0x10,%esp return ip; 8010249f: 8b 45 f4 mov -0xc(%ebp),%eax 801024a2: e9 81 00 00 00 jmp 80102528 <namex+0x11e> } if((next = dirlookup(ip, name, 0)) == 0){ 801024a7: 83 ec 04 sub $0x4,%esp 801024aa: 6a 00 push $0x0 801024ac: ff 75 10 pushl 0x10(%ebp) 801024af: ff 75 f4 pushl -0xc(%ebp) 801024b2: e8 21 fd ff ff call 801021d8 <dirlookup> 801024b7: 83 c4 10 add $0x10,%esp 801024ba: 89 45 f0 mov %eax,-0x10(%ebp) 801024bd: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801024c1: 75 15 jne 801024d8 <namex+0xce> iunlockput(ip); 801024c3: 83 ec 0c sub $0xc,%esp 801024c6: ff 75 f4 pushl -0xc(%ebp) 801024c9: e8 67 f7 ff ff call 80101c35 <iunlockput> 801024ce: 83 c4 10 add $0x10,%esp return 0; 801024d1: b8 00 00 00 00 mov $0x0,%eax 801024d6: eb 50 jmp 80102528 <namex+0x11e> } iunlockput(ip); 801024d8: 83 ec 0c sub $0xc,%esp 801024db: ff 75 f4 pushl -0xc(%ebp) 801024de: e8 52 f7 ff ff call 80101c35 <iunlockput> 801024e3: 83 c4 10 add $0x10,%esp ip = next; 801024e6: 8b 45 f0 mov -0x10(%ebp),%eax 801024e9: 89 45 f4 mov %eax,-0xc(%ebp) while((path = skipelem(path, name)) != 0){ 801024ec: 83 ec 08 sub $0x8,%esp 801024ef: ff 75 10 pushl 0x10(%ebp) 801024f2: ff 75 08 pushl 0x8(%ebp) 801024f5: e8 70 fe ff ff call 8010236a <skipelem> 801024fa: 83 c4 10 add $0x10,%esp 801024fd: 89 45 08 mov %eax,0x8(%ebp) 80102500: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80102504: 0f 85 44 ff ff ff jne 8010244e <namex+0x44> } if(nameiparent){ 8010250a: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 8010250e: 74 15 je 80102525 <namex+0x11b> iput(ip); 80102510: 83 ec 0c sub $0xc,%esp 80102513: ff 75 f4 pushl -0xc(%ebp) 80102516: e8 2a f6 ff ff call 80101b45 <iput> 8010251b: 83 c4 10 add $0x10,%esp return 0; 8010251e: b8 00 00 00 00 mov $0x0,%eax 80102523: eb 03 jmp 80102528 <namex+0x11e> } return ip; 80102525: 8b 45 f4 mov -0xc(%ebp),%eax } 80102528: c9 leave 80102529: c3 ret 8010252a <namei>: struct inode* namei(char *path) { 8010252a: 55 push %ebp 8010252b: 89 e5 mov %esp,%ebp 8010252d: 83 ec 18 sub $0x18,%esp char name[DIRSIZ]; return namex(path, 0, name); 80102530: 83 ec 04 sub $0x4,%esp 80102533: 8d 45 ea lea -0x16(%ebp),%eax 80102536: 50 push %eax 80102537: 6a 00 push $0x0 80102539: ff 75 08 pushl 0x8(%ebp) 8010253c: e8 c9 fe ff ff call 8010240a <namex> 80102541: 83 c4 10 add $0x10,%esp } 80102544: c9 leave 80102545: c3 ret 80102546 <nameiparent>: struct inode* nameiparent(char *path, char *name) { 80102546: 55 push %ebp 80102547: 89 e5 mov %esp,%ebp 80102549: 83 ec 08 sub $0x8,%esp return namex(path, 1, name); 8010254c: 83 ec 04 sub $0x4,%esp 8010254f: ff 75 0c pushl 0xc(%ebp) 80102552: 6a 01 push $0x1 80102554: ff 75 08 pushl 0x8(%ebp) 80102557: e8 ae fe ff ff call 8010240a <namex> 8010255c: 83 c4 10 add $0x10,%esp } 8010255f: c9 leave 80102560: c3 ret 80102561 <inb>: { 80102561: 55 push %ebp 80102562: 89 e5 mov %esp,%ebp 80102564: 83 ec 14 sub $0x14,%esp 80102567: 8b 45 08 mov 0x8(%ebp),%eax 8010256a: 66 89 45 ec mov %ax,-0x14(%ebp) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010256e: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80102572: 89 c2 mov %eax,%edx 80102574: ec in (%dx),%al 80102575: 88 45 ff mov %al,-0x1(%ebp) return data; 80102578: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 8010257c: c9 leave 8010257d: c3 ret 8010257e <insl>: { 8010257e: 55 push %ebp 8010257f: 89 e5 mov %esp,%ebp 80102581: 57 push %edi 80102582: 53 push %ebx asm volatile("cld; rep insl" : 80102583: 8b 55 08 mov 0x8(%ebp),%edx 80102586: 8b 4d 0c mov 0xc(%ebp),%ecx 80102589: 8b 45 10 mov 0x10(%ebp),%eax 8010258c: 89 cb mov %ecx,%ebx 8010258e: 89 df mov %ebx,%edi 80102590: 89 c1 mov %eax,%ecx 80102592: fc cld 80102593: f3 6d rep insl (%dx),%es:(%edi) 80102595: 89 c8 mov %ecx,%eax 80102597: 89 fb mov %edi,%ebx 80102599: 89 5d 0c mov %ebx,0xc(%ebp) 8010259c: 89 45 10 mov %eax,0x10(%ebp) } 8010259f: 90 nop 801025a0: 5b pop %ebx 801025a1: 5f pop %edi 801025a2: 5d pop %ebp 801025a3: c3 ret 801025a4 <outb>: { 801025a4: 55 push %ebp 801025a5: 89 e5 mov %esp,%ebp 801025a7: 83 ec 08 sub $0x8,%esp 801025aa: 8b 45 08 mov 0x8(%ebp),%eax 801025ad: 8b 55 0c mov 0xc(%ebp),%edx 801025b0: 66 89 45 fc mov %ax,-0x4(%ebp) 801025b4: 89 d0 mov %edx,%eax 801025b6: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801025b9: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 801025bd: 0f b7 55 fc movzwl -0x4(%ebp),%edx 801025c1: ee out %al,(%dx) } 801025c2: 90 nop 801025c3: c9 leave 801025c4: c3 ret 801025c5 <outsl>: { 801025c5: 55 push %ebp 801025c6: 89 e5 mov %esp,%ebp 801025c8: 56 push %esi 801025c9: 53 push %ebx asm volatile("cld; rep outsl" : 801025ca: 8b 55 08 mov 0x8(%ebp),%edx 801025cd: 8b 4d 0c mov 0xc(%ebp),%ecx 801025d0: 8b 45 10 mov 0x10(%ebp),%eax 801025d3: 89 cb mov %ecx,%ebx 801025d5: 89 de mov %ebx,%esi 801025d7: 89 c1 mov %eax,%ecx 801025d9: fc cld 801025da: f3 6f rep outsl %ds:(%esi),(%dx) 801025dc: 89 c8 mov %ecx,%eax 801025de: 89 f3 mov %esi,%ebx 801025e0: 89 5d 0c mov %ebx,0xc(%ebp) 801025e3: 89 45 10 mov %eax,0x10(%ebp) } 801025e6: 90 nop 801025e7: 5b pop %ebx 801025e8: 5e pop %esi 801025e9: 5d pop %ebp 801025ea: c3 ret 801025eb <idewait>: static void idestart(struct buf*); // Wait for IDE disk to become ready. static int idewait(int checkerr) { 801025eb: 55 push %ebp 801025ec: 89 e5 mov %esp,%ebp 801025ee: 83 ec 10 sub $0x10,%esp int r; while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY) 801025f1: 90 nop 801025f2: 68 f7 01 00 00 push $0x1f7 801025f7: e8 65 ff ff ff call 80102561 <inb> 801025fc: 83 c4 04 add $0x4,%esp 801025ff: 0f b6 c0 movzbl %al,%eax 80102602: 89 45 fc mov %eax,-0x4(%ebp) 80102605: 8b 45 fc mov -0x4(%ebp),%eax 80102608: 25 c0 00 00 00 and $0xc0,%eax 8010260d: 83 f8 40 cmp $0x40,%eax 80102610: 75 e0 jne 801025f2 <idewait+0x7> ; if(checkerr && (r & (IDE_DF|IDE_ERR)) != 0) 80102612: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80102616: 74 11 je 80102629 <idewait+0x3e> 80102618: 8b 45 fc mov -0x4(%ebp),%eax 8010261b: 83 e0 21 and $0x21,%eax 8010261e: 85 c0 test %eax,%eax 80102620: 74 07 je 80102629 <idewait+0x3e> return -1; 80102622: b8 ff ff ff ff mov $0xffffffff,%eax 80102627: eb 05 jmp 8010262e <idewait+0x43> return 0; 80102629: b8 00 00 00 00 mov $0x0,%eax } 8010262e: c9 leave 8010262f: c3 ret 80102630 <ideinit>: void ideinit(void) { 80102630: 55 push %ebp 80102631: 89 e5 mov %esp,%ebp 80102633: 83 ec 18 sub $0x18,%esp int i; initlock(&idelock, "ide"); 80102636: 83 ec 08 sub $0x8,%esp 80102639: 68 1a 87 10 80 push $0x8010871a 8010263e: 68 00 b6 10 80 push $0x8010b600 80102643: e8 da 29 00 00 call 80105022 <initlock> 80102648: 83 c4 10 add $0x10,%esp picenable(IRQ_IDE); 8010264b: 83 ec 0c sub $0xc,%esp 8010264e: 6a 0e push $0xe 80102650: e8 eb 18 00 00 call 80103f40 <picenable> 80102655: 83 c4 10 add $0x10,%esp ioapicenable(IRQ_IDE, ncpu - 1); 80102658: a1 40 29 11 80 mov 0x80112940,%eax 8010265d: 83 e8 01 sub $0x1,%eax 80102660: 83 ec 08 sub $0x8,%esp 80102663: 50 push %eax 80102664: 6a 0e push $0xe 80102666: e8 73 04 00 00 call 80102ade <ioapicenable> 8010266b: 83 c4 10 add $0x10,%esp idewait(0); 8010266e: 83 ec 0c sub $0xc,%esp 80102671: 6a 00 push $0x0 80102673: e8 73 ff ff ff call 801025eb <idewait> 80102678: 83 c4 10 add $0x10,%esp // Check if disk 1 is present outb(0x1f6, 0xe0 | (1<<4)); 8010267b: 83 ec 08 sub $0x8,%esp 8010267e: 68 f0 00 00 00 push $0xf0 80102683: 68 f6 01 00 00 push $0x1f6 80102688: e8 17 ff ff ff call 801025a4 <outb> 8010268d: 83 c4 10 add $0x10,%esp for(i=0; i<1000; i++){ 80102690: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80102697: eb 24 jmp 801026bd <ideinit+0x8d> if(inb(0x1f7) != 0){ 80102699: 83 ec 0c sub $0xc,%esp 8010269c: 68 f7 01 00 00 push $0x1f7 801026a1: e8 bb fe ff ff call 80102561 <inb> 801026a6: 83 c4 10 add $0x10,%esp 801026a9: 84 c0 test %al,%al 801026ab: 74 0c je 801026b9 <ideinit+0x89> havedisk1 = 1; 801026ad: c7 05 38 b6 10 80 01 movl $0x1,0x8010b638 801026b4: 00 00 00 break; 801026b7: eb 0d jmp 801026c6 <ideinit+0x96> for(i=0; i<1000; i++){ 801026b9: 83 45 f4 01 addl $0x1,-0xc(%ebp) 801026bd: 81 7d f4 e7 03 00 00 cmpl $0x3e7,-0xc(%ebp) 801026c4: 7e d3 jle 80102699 <ideinit+0x69> } } // Switch back to disk 0. outb(0x1f6, 0xe0 | (0<<4)); 801026c6: 83 ec 08 sub $0x8,%esp 801026c9: 68 e0 00 00 00 push $0xe0 801026ce: 68 f6 01 00 00 push $0x1f6 801026d3: e8 cc fe ff ff call 801025a4 <outb> 801026d8: 83 c4 10 add $0x10,%esp } 801026db: 90 nop 801026dc: c9 leave 801026dd: c3 ret 801026de <idestart>: // Start the request for b. Caller must hold idelock. static void idestart(struct buf *b) { 801026de: 55 push %ebp 801026df: 89 e5 mov %esp,%ebp 801026e1: 83 ec 18 sub $0x18,%esp if(b == 0) 801026e4: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 801026e8: 75 0d jne 801026f7 <idestart+0x19> panic("idestart"); 801026ea: 83 ec 0c sub $0xc,%esp 801026ed: 68 1e 87 10 80 push $0x8010871e 801026f2: e8 70 de ff ff call 80100567 <panic> if(b->blockno >= FSSIZE) 801026f7: 8b 45 08 mov 0x8(%ebp),%eax 801026fa: 8b 40 08 mov 0x8(%eax),%eax 801026fd: 3d e7 03 00 00 cmp $0x3e7,%eax 80102702: 76 0d jbe 80102711 <idestart+0x33> panic("incorrect blockno"); 80102704: 83 ec 0c sub $0xc,%esp 80102707: 68 27 87 10 80 push $0x80108727 8010270c: e8 56 de ff ff call 80100567 <panic> int sector_per_block = BSIZE/SECTOR_SIZE; 80102711: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) int sector = b->blockno * sector_per_block; 80102718: 8b 45 08 mov 0x8(%ebp),%eax 8010271b: 8b 50 08 mov 0x8(%eax),%edx 8010271e: 8b 45 f4 mov -0xc(%ebp),%eax 80102721: 0f af c2 imul %edx,%eax 80102724: 89 45 f0 mov %eax,-0x10(%ebp) if (sector_per_block > 7) panic("idestart"); 80102727: 83 7d f4 07 cmpl $0x7,-0xc(%ebp) 8010272b: 7e 0d jle 8010273a <idestart+0x5c> 8010272d: 83 ec 0c sub $0xc,%esp 80102730: 68 1e 87 10 80 push $0x8010871e 80102735: e8 2d de ff ff call 80100567 <panic> idewait(0); 8010273a: 83 ec 0c sub $0xc,%esp 8010273d: 6a 00 push $0x0 8010273f: e8 a7 fe ff ff call 801025eb <idewait> 80102744: 83 c4 10 add $0x10,%esp outb(0x3f6, 0); // generate interrupt 80102747: 83 ec 08 sub $0x8,%esp 8010274a: 6a 00 push $0x0 8010274c: 68 f6 03 00 00 push $0x3f6 80102751: e8 4e fe ff ff call 801025a4 <outb> 80102756: 83 c4 10 add $0x10,%esp outb(0x1f2, sector_per_block); // number of sectors 80102759: 8b 45 f4 mov -0xc(%ebp),%eax 8010275c: 0f b6 c0 movzbl %al,%eax 8010275f: 83 ec 08 sub $0x8,%esp 80102762: 50 push %eax 80102763: 68 f2 01 00 00 push $0x1f2 80102768: e8 37 fe ff ff call 801025a4 <outb> 8010276d: 83 c4 10 add $0x10,%esp outb(0x1f3, sector & 0xff); 80102770: 8b 45 f0 mov -0x10(%ebp),%eax 80102773: 0f b6 c0 movzbl %al,%eax 80102776: 83 ec 08 sub $0x8,%esp 80102779: 50 push %eax 8010277a: 68 f3 01 00 00 push $0x1f3 8010277f: e8 20 fe ff ff call 801025a4 <outb> 80102784: 83 c4 10 add $0x10,%esp outb(0x1f4, (sector >> 8) & 0xff); 80102787: 8b 45 f0 mov -0x10(%ebp),%eax 8010278a: c1 f8 08 sar $0x8,%eax 8010278d: 0f b6 c0 movzbl %al,%eax 80102790: 83 ec 08 sub $0x8,%esp 80102793: 50 push %eax 80102794: 68 f4 01 00 00 push $0x1f4 80102799: e8 06 fe ff ff call 801025a4 <outb> 8010279e: 83 c4 10 add $0x10,%esp outb(0x1f5, (sector >> 16) & 0xff); 801027a1: 8b 45 f0 mov -0x10(%ebp),%eax 801027a4: c1 f8 10 sar $0x10,%eax 801027a7: 0f b6 c0 movzbl %al,%eax 801027aa: 83 ec 08 sub $0x8,%esp 801027ad: 50 push %eax 801027ae: 68 f5 01 00 00 push $0x1f5 801027b3: e8 ec fd ff ff call 801025a4 <outb> 801027b8: 83 c4 10 add $0x10,%esp outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f)); 801027bb: 8b 45 08 mov 0x8(%ebp),%eax 801027be: 8b 40 04 mov 0x4(%eax),%eax 801027c1: c1 e0 04 shl $0x4,%eax 801027c4: 83 e0 10 and $0x10,%eax 801027c7: 89 c2 mov %eax,%edx 801027c9: 8b 45 f0 mov -0x10(%ebp),%eax 801027cc: c1 f8 18 sar $0x18,%eax 801027cf: 83 e0 0f and $0xf,%eax 801027d2: 09 d0 or %edx,%eax 801027d4: 83 c8 e0 or $0xffffffe0,%eax 801027d7: 0f b6 c0 movzbl %al,%eax 801027da: 83 ec 08 sub $0x8,%esp 801027dd: 50 push %eax 801027de: 68 f6 01 00 00 push $0x1f6 801027e3: e8 bc fd ff ff call 801025a4 <outb> 801027e8: 83 c4 10 add $0x10,%esp if(b->flags & B_DIRTY){ 801027eb: 8b 45 08 mov 0x8(%ebp),%eax 801027ee: 8b 00 mov (%eax),%eax 801027f0: 83 e0 04 and $0x4,%eax 801027f3: 85 c0 test %eax,%eax 801027f5: 74 30 je 80102827 <idestart+0x149> outb(0x1f7, IDE_CMD_WRITE); 801027f7: 83 ec 08 sub $0x8,%esp 801027fa: 6a 30 push $0x30 801027fc: 68 f7 01 00 00 push $0x1f7 80102801: e8 9e fd ff ff call 801025a4 <outb> 80102806: 83 c4 10 add $0x10,%esp outsl(0x1f0, b->data, BSIZE/4); 80102809: 8b 45 08 mov 0x8(%ebp),%eax 8010280c: 83 c0 18 add $0x18,%eax 8010280f: 83 ec 04 sub $0x4,%esp 80102812: 68 80 00 00 00 push $0x80 80102817: 50 push %eax 80102818: 68 f0 01 00 00 push $0x1f0 8010281d: e8 a3 fd ff ff call 801025c5 <outsl> 80102822: 83 c4 10 add $0x10,%esp } else { outb(0x1f7, IDE_CMD_READ); } } 80102825: eb 12 jmp 80102839 <idestart+0x15b> outb(0x1f7, IDE_CMD_READ); 80102827: 83 ec 08 sub $0x8,%esp 8010282a: 6a 20 push $0x20 8010282c: 68 f7 01 00 00 push $0x1f7 80102831: e8 6e fd ff ff call 801025a4 <outb> 80102836: 83 c4 10 add $0x10,%esp } 80102839: 90 nop 8010283a: c9 leave 8010283b: c3 ret 8010283c <ideintr>: // Interrupt handler. void ideintr(void) { 8010283c: 55 push %ebp 8010283d: 89 e5 mov %esp,%ebp 8010283f: 83 ec 18 sub $0x18,%esp struct buf *b; // First queued buffer is the active request. acquire(&idelock); 80102842: 83 ec 0c sub $0xc,%esp 80102845: 68 00 b6 10 80 push $0x8010b600 8010284a: e8 f5 27 00 00 call 80105044 <acquire> 8010284f: 83 c4 10 add $0x10,%esp if((b = idequeue) == 0){ 80102852: a1 34 b6 10 80 mov 0x8010b634,%eax 80102857: 89 45 f4 mov %eax,-0xc(%ebp) 8010285a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010285e: 75 15 jne 80102875 <ideintr+0x39> release(&idelock); 80102860: 83 ec 0c sub $0xc,%esp 80102863: 68 00 b6 10 80 push $0x8010b600 80102868: e8 3e 28 00 00 call 801050ab <release> 8010286d: 83 c4 10 add $0x10,%esp // cprintf("spurious IDE interrupt\n"); return; 80102870: e9 9a 00 00 00 jmp 8010290f <ideintr+0xd3> } idequeue = b->qnext; 80102875: 8b 45 f4 mov -0xc(%ebp),%eax 80102878: 8b 40 14 mov 0x14(%eax),%eax 8010287b: a3 34 b6 10 80 mov %eax,0x8010b634 // Read data if needed. if(!(b->flags & B_DIRTY) && idewait(1) >= 0) 80102880: 8b 45 f4 mov -0xc(%ebp),%eax 80102883: 8b 00 mov (%eax),%eax 80102885: 83 e0 04 and $0x4,%eax 80102888: 85 c0 test %eax,%eax 8010288a: 75 2d jne 801028b9 <ideintr+0x7d> 8010288c: 83 ec 0c sub $0xc,%esp 8010288f: 6a 01 push $0x1 80102891: e8 55 fd ff ff call 801025eb <idewait> 80102896: 83 c4 10 add $0x10,%esp 80102899: 85 c0 test %eax,%eax 8010289b: 78 1c js 801028b9 <ideintr+0x7d> insl(0x1f0, b->data, BSIZE/4); 8010289d: 8b 45 f4 mov -0xc(%ebp),%eax 801028a0: 83 c0 18 add $0x18,%eax 801028a3: 83 ec 04 sub $0x4,%esp 801028a6: 68 80 00 00 00 push $0x80 801028ab: 50 push %eax 801028ac: 68 f0 01 00 00 push $0x1f0 801028b1: e8 c8 fc ff ff call 8010257e <insl> 801028b6: 83 c4 10 add $0x10,%esp // Wake process waiting for this buf. b->flags |= B_VALID; 801028b9: 8b 45 f4 mov -0xc(%ebp),%eax 801028bc: 8b 00 mov (%eax),%eax 801028be: 83 c8 02 or $0x2,%eax 801028c1: 89 c2 mov %eax,%edx 801028c3: 8b 45 f4 mov -0xc(%ebp),%eax 801028c6: 89 10 mov %edx,(%eax) b->flags &= ~B_DIRTY; 801028c8: 8b 45 f4 mov -0xc(%ebp),%eax 801028cb: 8b 00 mov (%eax),%eax 801028cd: 83 e0 fb and $0xfffffffb,%eax 801028d0: 89 c2 mov %eax,%edx 801028d2: 8b 45 f4 mov -0xc(%ebp),%eax 801028d5: 89 10 mov %edx,(%eax) wakeup(b); 801028d7: 83 ec 0c sub $0xc,%esp 801028da: ff 75 f4 pushl -0xc(%ebp) 801028dd: e8 54 25 00 00 call 80104e36 <wakeup> 801028e2: 83 c4 10 add $0x10,%esp // Start disk on next buf in queue. if(idequeue != 0) 801028e5: a1 34 b6 10 80 mov 0x8010b634,%eax 801028ea: 85 c0 test %eax,%eax 801028ec: 74 11 je 801028ff <ideintr+0xc3> idestart(idequeue); 801028ee: a1 34 b6 10 80 mov 0x8010b634,%eax 801028f3: 83 ec 0c sub $0xc,%esp 801028f6: 50 push %eax 801028f7: e8 e2 fd ff ff call 801026de <idestart> 801028fc: 83 c4 10 add $0x10,%esp release(&idelock); 801028ff: 83 ec 0c sub $0xc,%esp 80102902: 68 00 b6 10 80 push $0x8010b600 80102907: e8 9f 27 00 00 call 801050ab <release> 8010290c: 83 c4 10 add $0x10,%esp } 8010290f: c9 leave 80102910: c3 ret 80102911 <iderw>: // Sync buf with disk. // If B_DIRTY is set, write buf to disk, clear B_DIRTY, set B_VALID. // Else if B_VALID is not set, read buf from disk, set B_VALID. void iderw(struct buf *b) { 80102911: 55 push %ebp 80102912: 89 e5 mov %esp,%ebp 80102914: 83 ec 18 sub $0x18,%esp struct buf **pp; if(!(b->flags & B_BUSY)) 80102917: 8b 45 08 mov 0x8(%ebp),%eax 8010291a: 8b 00 mov (%eax),%eax 8010291c: 83 e0 01 and $0x1,%eax 8010291f: 85 c0 test %eax,%eax 80102921: 75 0d jne 80102930 <iderw+0x1f> panic("iderw: buf not busy"); 80102923: 83 ec 0c sub $0xc,%esp 80102926: 68 39 87 10 80 push $0x80108739 8010292b: e8 37 dc ff ff call 80100567 <panic> if((b->flags & (B_VALID|B_DIRTY)) == B_VALID) 80102930: 8b 45 08 mov 0x8(%ebp),%eax 80102933: 8b 00 mov (%eax),%eax 80102935: 83 e0 06 and $0x6,%eax 80102938: 83 f8 02 cmp $0x2,%eax 8010293b: 75 0d jne 8010294a <iderw+0x39> panic("iderw: nothing to do"); 8010293d: 83 ec 0c sub $0xc,%esp 80102940: 68 4d 87 10 80 push $0x8010874d 80102945: e8 1d dc ff ff call 80100567 <panic> if(b->dev != 0 && !havedisk1) 8010294a: 8b 45 08 mov 0x8(%ebp),%eax 8010294d: 8b 40 04 mov 0x4(%eax),%eax 80102950: 85 c0 test %eax,%eax 80102952: 74 16 je 8010296a <iderw+0x59> 80102954: a1 38 b6 10 80 mov 0x8010b638,%eax 80102959: 85 c0 test %eax,%eax 8010295b: 75 0d jne 8010296a <iderw+0x59> panic("iderw: ide disk 1 not present"); 8010295d: 83 ec 0c sub $0xc,%esp 80102960: 68 62 87 10 80 push $0x80108762 80102965: e8 fd db ff ff call 80100567 <panic> acquire(&idelock); //DOC:acquire-lock 8010296a: 83 ec 0c sub $0xc,%esp 8010296d: 68 00 b6 10 80 push $0x8010b600 80102972: e8 cd 26 00 00 call 80105044 <acquire> 80102977: 83 c4 10 add $0x10,%esp // Append b to idequeue. b->qnext = 0; 8010297a: 8b 45 08 mov 0x8(%ebp),%eax 8010297d: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax) for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue 80102984: c7 45 f4 34 b6 10 80 movl $0x8010b634,-0xc(%ebp) 8010298b: eb 0b jmp 80102998 <iderw+0x87> 8010298d: 8b 45 f4 mov -0xc(%ebp),%eax 80102990: 8b 00 mov (%eax),%eax 80102992: 83 c0 14 add $0x14,%eax 80102995: 89 45 f4 mov %eax,-0xc(%ebp) 80102998: 8b 45 f4 mov -0xc(%ebp),%eax 8010299b: 8b 00 mov (%eax),%eax 8010299d: 85 c0 test %eax,%eax 8010299f: 75 ec jne 8010298d <iderw+0x7c> ; *pp = b; 801029a1: 8b 45 f4 mov -0xc(%ebp),%eax 801029a4: 8b 55 08 mov 0x8(%ebp),%edx 801029a7: 89 10 mov %edx,(%eax) // Start disk if necessary. if(idequeue == b) 801029a9: a1 34 b6 10 80 mov 0x8010b634,%eax 801029ae: 39 45 08 cmp %eax,0x8(%ebp) 801029b1: 75 23 jne 801029d6 <iderw+0xc5> idestart(b); 801029b3: 83 ec 0c sub $0xc,%esp 801029b6: ff 75 08 pushl 0x8(%ebp) 801029b9: e8 20 fd ff ff call 801026de <idestart> 801029be: 83 c4 10 add $0x10,%esp // Wait for request to finish. while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){ 801029c1: eb 13 jmp 801029d6 <iderw+0xc5> sleep(b, &idelock); 801029c3: 83 ec 08 sub $0x8,%esp 801029c6: 68 00 b6 10 80 push $0x8010b600 801029cb: ff 75 08 pushl 0x8(%ebp) 801029ce: e8 78 23 00 00 call 80104d4b <sleep> 801029d3: 83 c4 10 add $0x10,%esp while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){ 801029d6: 8b 45 08 mov 0x8(%ebp),%eax 801029d9: 8b 00 mov (%eax),%eax 801029db: 83 e0 06 and $0x6,%eax 801029de: 83 f8 02 cmp $0x2,%eax 801029e1: 75 e0 jne 801029c3 <iderw+0xb2> } release(&idelock); 801029e3: 83 ec 0c sub $0xc,%esp 801029e6: 68 00 b6 10 80 push $0x8010b600 801029eb: e8 bb 26 00 00 call 801050ab <release> 801029f0: 83 c4 10 add $0x10,%esp } 801029f3: 90 nop 801029f4: c9 leave 801029f5: c3 ret 801029f6 <ioapicread>: uint data; }; static uint ioapicread(int reg) { 801029f6: 55 push %ebp 801029f7: 89 e5 mov %esp,%ebp ioapic->reg = reg; 801029f9: a1 14 22 11 80 mov 0x80112214,%eax 801029fe: 8b 55 08 mov 0x8(%ebp),%edx 80102a01: 89 10 mov %edx,(%eax) return ioapic->data; 80102a03: a1 14 22 11 80 mov 0x80112214,%eax 80102a08: 8b 40 10 mov 0x10(%eax),%eax } 80102a0b: 5d pop %ebp 80102a0c: c3 ret 80102a0d <ioapicwrite>: static void ioapicwrite(int reg, uint data) { 80102a0d: 55 push %ebp 80102a0e: 89 e5 mov %esp,%ebp ioapic->reg = reg; 80102a10: a1 14 22 11 80 mov 0x80112214,%eax 80102a15: 8b 55 08 mov 0x8(%ebp),%edx 80102a18: 89 10 mov %edx,(%eax) ioapic->data = data; 80102a1a: a1 14 22 11 80 mov 0x80112214,%eax 80102a1f: 8b 55 0c mov 0xc(%ebp),%edx 80102a22: 89 50 10 mov %edx,0x10(%eax) } 80102a25: 90 nop 80102a26: 5d pop %ebp 80102a27: c3 ret 80102a28 <ioapicinit>: void ioapicinit(void) { 80102a28: 55 push %ebp 80102a29: 89 e5 mov %esp,%ebp 80102a2b: 83 ec 18 sub $0x18,%esp int i, id, maxintr; if(!ismp) 80102a2e: a1 44 23 11 80 mov 0x80112344,%eax 80102a33: 85 c0 test %eax,%eax 80102a35: 0f 84 a0 00 00 00 je 80102adb <ioapicinit+0xb3> return; ioapic = (volatile struct ioapic*)IOAPIC; 80102a3b: c7 05 14 22 11 80 00 movl $0xfec00000,0x80112214 80102a42: 00 c0 fe maxintr = (ioapicread(REG_VER) >> 16) & 0xFF; 80102a45: 6a 01 push $0x1 80102a47: e8 aa ff ff ff call 801029f6 <ioapicread> 80102a4c: 83 c4 04 add $0x4,%esp 80102a4f: c1 e8 10 shr $0x10,%eax 80102a52: 25 ff 00 00 00 and $0xff,%eax 80102a57: 89 45 f0 mov %eax,-0x10(%ebp) id = ioapicread(REG_ID) >> 24; 80102a5a: 6a 00 push $0x0 80102a5c: e8 95 ff ff ff call 801029f6 <ioapicread> 80102a61: 83 c4 04 add $0x4,%esp 80102a64: c1 e8 18 shr $0x18,%eax 80102a67: 89 45 ec mov %eax,-0x14(%ebp) if(id != ioapicid) 80102a6a: 0f b6 05 40 23 11 80 movzbl 0x80112340,%eax 80102a71: 0f b6 c0 movzbl %al,%eax 80102a74: 39 45 ec cmp %eax,-0x14(%ebp) 80102a77: 74 10 je 80102a89 <ioapicinit+0x61> cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n"); 80102a79: 83 ec 0c sub $0xc,%esp 80102a7c: 68 80 87 10 80 push $0x80108780 80102a81: e8 3e d9 ff ff call 801003c4 <cprintf> 80102a86: 83 c4 10 add $0x10,%esp // Mark all interrupts edge-triggered, active high, disabled, // and not routed to any CPUs. for(i = 0; i <= maxintr; i++){ 80102a89: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80102a90: eb 3f jmp 80102ad1 <ioapicinit+0xa9> ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i)); 80102a92: 8b 45 f4 mov -0xc(%ebp),%eax 80102a95: 83 c0 20 add $0x20,%eax 80102a98: 0d 00 00 01 00 or $0x10000,%eax 80102a9d: 89 c2 mov %eax,%edx 80102a9f: 8b 45 f4 mov -0xc(%ebp),%eax 80102aa2: 83 c0 08 add $0x8,%eax 80102aa5: 01 c0 add %eax,%eax 80102aa7: 83 ec 08 sub $0x8,%esp 80102aaa: 52 push %edx 80102aab: 50 push %eax 80102aac: e8 5c ff ff ff call 80102a0d <ioapicwrite> 80102ab1: 83 c4 10 add $0x10,%esp ioapicwrite(REG_TABLE+2*i+1, 0); 80102ab4: 8b 45 f4 mov -0xc(%ebp),%eax 80102ab7: 83 c0 08 add $0x8,%eax 80102aba: 01 c0 add %eax,%eax 80102abc: 83 c0 01 add $0x1,%eax 80102abf: 83 ec 08 sub $0x8,%esp 80102ac2: 6a 00 push $0x0 80102ac4: 50 push %eax 80102ac5: e8 43 ff ff ff call 80102a0d <ioapicwrite> 80102aca: 83 c4 10 add $0x10,%esp for(i = 0; i <= maxintr; i++){ 80102acd: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80102ad1: 8b 45 f4 mov -0xc(%ebp),%eax 80102ad4: 3b 45 f0 cmp -0x10(%ebp),%eax 80102ad7: 7e b9 jle 80102a92 <ioapicinit+0x6a> 80102ad9: eb 01 jmp 80102adc <ioapicinit+0xb4> return; 80102adb: 90 nop } } 80102adc: c9 leave 80102add: c3 ret 80102ade <ioapicenable>: void ioapicenable(int irq, int cpunum) { 80102ade: 55 push %ebp 80102adf: 89 e5 mov %esp,%ebp if(!ismp) 80102ae1: a1 44 23 11 80 mov 0x80112344,%eax 80102ae6: 85 c0 test %eax,%eax 80102ae8: 74 39 je 80102b23 <ioapicenable+0x45> return; // Mark interrupt edge-triggered, active high, // enabled, and routed to the given cpunum, // which happens to be that cpu's APIC ID. ioapicwrite(REG_TABLE+2*irq, T_IRQ0 + irq); 80102aea: 8b 45 08 mov 0x8(%ebp),%eax 80102aed: 83 c0 20 add $0x20,%eax 80102af0: 89 c2 mov %eax,%edx 80102af2: 8b 45 08 mov 0x8(%ebp),%eax 80102af5: 83 c0 08 add $0x8,%eax 80102af8: 01 c0 add %eax,%eax 80102afa: 52 push %edx 80102afb: 50 push %eax 80102afc: e8 0c ff ff ff call 80102a0d <ioapicwrite> 80102b01: 83 c4 08 add $0x8,%esp ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); 80102b04: 8b 45 0c mov 0xc(%ebp),%eax 80102b07: c1 e0 18 shl $0x18,%eax 80102b0a: 89 c2 mov %eax,%edx 80102b0c: 8b 45 08 mov 0x8(%ebp),%eax 80102b0f: 83 c0 08 add $0x8,%eax 80102b12: 01 c0 add %eax,%eax 80102b14: 83 c0 01 add $0x1,%eax 80102b17: 52 push %edx 80102b18: 50 push %eax 80102b19: e8 ef fe ff ff call 80102a0d <ioapicwrite> 80102b1e: 83 c4 08 add $0x8,%esp 80102b21: eb 01 jmp 80102b24 <ioapicenable+0x46> return; 80102b23: 90 nop } 80102b24: c9 leave 80102b25: c3 ret 80102b26 <v2p>: #define KERNBASE 0x80000000 // First kernel virtual address #define KERNLINK (KERNBASE+EXTMEM) // Address where kernel is linked #ifndef __ASSEMBLER__ static inline uint v2p(void *a) { return ((uint) (a)) - KERNBASE; } 80102b26: 55 push %ebp 80102b27: 89 e5 mov %esp,%ebp 80102b29: 8b 45 08 mov 0x8(%ebp),%eax 80102b2c: 05 00 00 00 80 add $0x80000000,%eax 80102b31: 5d pop %ebp 80102b32: c3 ret 80102b33 <kinit1>: // the pages mapped by entrypgdir on free list. // 2. main() calls kinit2() with the rest of the physical pages // after installing a full page table that maps them on all cores. void kinit1(void *vstart, void *vend) { 80102b33: 55 push %ebp 80102b34: 89 e5 mov %esp,%ebp 80102b36: 83 ec 08 sub $0x8,%esp initlock(&kmem.lock, "kmem"); 80102b39: 83 ec 08 sub $0x8,%esp 80102b3c: 68 b2 87 10 80 push $0x801087b2 80102b41: 68 20 22 11 80 push $0x80112220 80102b46: e8 d7 24 00 00 call 80105022 <initlock> 80102b4b: 83 c4 10 add $0x10,%esp kmem.use_lock = 0; 80102b4e: c7 05 54 22 11 80 00 movl $0x0,0x80112254 80102b55: 00 00 00 freerange(vstart, vend); 80102b58: 83 ec 08 sub $0x8,%esp 80102b5b: ff 75 0c pushl 0xc(%ebp) 80102b5e: ff 75 08 pushl 0x8(%ebp) 80102b61: e8 2a 00 00 00 call 80102b90 <freerange> 80102b66: 83 c4 10 add $0x10,%esp } 80102b69: 90 nop 80102b6a: c9 leave 80102b6b: c3 ret 80102b6c <kinit2>: void kinit2(void *vstart, void *vend) { 80102b6c: 55 push %ebp 80102b6d: 89 e5 mov %esp,%ebp 80102b6f: 83 ec 08 sub $0x8,%esp freerange(vstart, vend); 80102b72: 83 ec 08 sub $0x8,%esp 80102b75: ff 75 0c pushl 0xc(%ebp) 80102b78: ff 75 08 pushl 0x8(%ebp) 80102b7b: e8 10 00 00 00 call 80102b90 <freerange> 80102b80: 83 c4 10 add $0x10,%esp kmem.use_lock = 1; 80102b83: c7 05 54 22 11 80 01 movl $0x1,0x80112254 80102b8a: 00 00 00 } 80102b8d: 90 nop 80102b8e: c9 leave 80102b8f: c3 ret 80102b90 <freerange>: void freerange(void *vstart, void *vend) { 80102b90: 55 push %ebp 80102b91: 89 e5 mov %esp,%ebp 80102b93: 83 ec 18 sub $0x18,%esp char *p; p = (char*)PGROUNDUP((uint)vstart); 80102b96: 8b 45 08 mov 0x8(%ebp),%eax 80102b99: 05 ff 0f 00 00 add $0xfff,%eax 80102b9e: 25 00 f0 ff ff and $0xfffff000,%eax 80102ba3: 89 45 f4 mov %eax,-0xc(%ebp) for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102ba6: eb 15 jmp 80102bbd <freerange+0x2d> kfree(p); 80102ba8: 83 ec 0c sub $0xc,%esp 80102bab: ff 75 f4 pushl -0xc(%ebp) 80102bae: e8 1a 00 00 00 call 80102bcd <kfree> 80102bb3: 83 c4 10 add $0x10,%esp for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102bb6: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 80102bbd: 8b 45 f4 mov -0xc(%ebp),%eax 80102bc0: 05 00 10 00 00 add $0x1000,%eax 80102bc5: 39 45 0c cmp %eax,0xc(%ebp) 80102bc8: 73 de jae 80102ba8 <freerange+0x18> } 80102bca: 90 nop 80102bcb: c9 leave 80102bcc: c3 ret 80102bcd <kfree>: // which normally should have been returned by a // call to kalloc(). (The exception is when // initializing the allocator; see kinit above.) void kfree(char *v) { 80102bcd: 55 push %ebp 80102bce: 89 e5 mov %esp,%ebp 80102bd0: 83 ec 18 sub $0x18,%esp struct run *r; if((uint)v % PGSIZE || v < end || v2p(v) >= PHYSTOP) 80102bd3: 8b 45 08 mov 0x8(%ebp),%eax 80102bd6: 25 ff 0f 00 00 and $0xfff,%eax 80102bdb: 85 c0 test %eax,%eax 80102bdd: 75 1b jne 80102bfa <kfree+0x2d> 80102bdf: 81 7d 08 3c 51 11 80 cmpl $0x8011513c,0x8(%ebp) 80102be6: 72 12 jb 80102bfa <kfree+0x2d> 80102be8: ff 75 08 pushl 0x8(%ebp) 80102beb: e8 36 ff ff ff call 80102b26 <v2p> 80102bf0: 83 c4 04 add $0x4,%esp 80102bf3: 3d ff ff ff 0d cmp $0xdffffff,%eax 80102bf8: 76 0d jbe 80102c07 <kfree+0x3a> panic("kfree"); 80102bfa: 83 ec 0c sub $0xc,%esp 80102bfd: 68 b7 87 10 80 push $0x801087b7 80102c02: e8 60 d9 ff ff call 80100567 <panic> // Fill with junk to catch dangling refs. memset(v, 1, PGSIZE); 80102c07: 83 ec 04 sub $0x4,%esp 80102c0a: 68 00 10 00 00 push $0x1000 80102c0f: 6a 01 push $0x1 80102c11: ff 75 08 pushl 0x8(%ebp) 80102c14: e8 8e 26 00 00 call 801052a7 <memset> 80102c19: 83 c4 10 add $0x10,%esp if(kmem.use_lock) 80102c1c: a1 54 22 11 80 mov 0x80112254,%eax 80102c21: 85 c0 test %eax,%eax 80102c23: 74 10 je 80102c35 <kfree+0x68> acquire(&kmem.lock); 80102c25: 83 ec 0c sub $0xc,%esp 80102c28: 68 20 22 11 80 push $0x80112220 80102c2d: e8 12 24 00 00 call 80105044 <acquire> 80102c32: 83 c4 10 add $0x10,%esp r = (struct run*)v; 80102c35: 8b 45 08 mov 0x8(%ebp),%eax 80102c38: 89 45 f4 mov %eax,-0xc(%ebp) r->next = kmem.freelist; 80102c3b: 8b 15 58 22 11 80 mov 0x80112258,%edx 80102c41: 8b 45 f4 mov -0xc(%ebp),%eax 80102c44: 89 10 mov %edx,(%eax) kmem.freelist = r; 80102c46: 8b 45 f4 mov -0xc(%ebp),%eax 80102c49: a3 58 22 11 80 mov %eax,0x80112258 if(kmem.use_lock) 80102c4e: a1 54 22 11 80 mov 0x80112254,%eax 80102c53: 85 c0 test %eax,%eax 80102c55: 74 10 je 80102c67 <kfree+0x9a> release(&kmem.lock); 80102c57: 83 ec 0c sub $0xc,%esp 80102c5a: 68 20 22 11 80 push $0x80112220 80102c5f: e8 47 24 00 00 call 801050ab <release> 80102c64: 83 c4 10 add $0x10,%esp } 80102c67: 90 nop 80102c68: c9 leave 80102c69: c3 ret 80102c6a <kalloc>: // Allocate one 4096-byte page of physical memory. // Returns a pointer that the kernel can use. // Returns 0 if the memory cannot be allocated. char* kalloc(void) { 80102c6a: 55 push %ebp 80102c6b: 89 e5 mov %esp,%ebp 80102c6d: 83 ec 18 sub $0x18,%esp struct run *r; if(kmem.use_lock) 80102c70: a1 54 22 11 80 mov 0x80112254,%eax 80102c75: 85 c0 test %eax,%eax 80102c77: 74 10 je 80102c89 <kalloc+0x1f> acquire(&kmem.lock); 80102c79: 83 ec 0c sub $0xc,%esp 80102c7c: 68 20 22 11 80 push $0x80112220 80102c81: e8 be 23 00 00 call 80105044 <acquire> 80102c86: 83 c4 10 add $0x10,%esp r = kmem.freelist; 80102c89: a1 58 22 11 80 mov 0x80112258,%eax 80102c8e: 89 45 f4 mov %eax,-0xc(%ebp) if(r) 80102c91: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80102c95: 74 0a je 80102ca1 <kalloc+0x37> kmem.freelist = r->next; 80102c97: 8b 45 f4 mov -0xc(%ebp),%eax 80102c9a: 8b 00 mov (%eax),%eax 80102c9c: a3 58 22 11 80 mov %eax,0x80112258 if(kmem.use_lock) 80102ca1: a1 54 22 11 80 mov 0x80112254,%eax 80102ca6: 85 c0 test %eax,%eax 80102ca8: 74 10 je 80102cba <kalloc+0x50> release(&kmem.lock); 80102caa: 83 ec 0c sub $0xc,%esp 80102cad: 68 20 22 11 80 push $0x80112220 80102cb2: e8 f4 23 00 00 call 801050ab <release> 80102cb7: 83 c4 10 add $0x10,%esp return (char*)r; 80102cba: 8b 45 f4 mov -0xc(%ebp),%eax } 80102cbd: c9 leave 80102cbe: c3 ret 80102cbf <inb>: { 80102cbf: 55 push %ebp 80102cc0: 89 e5 mov %esp,%ebp 80102cc2: 83 ec 14 sub $0x14,%esp 80102cc5: 8b 45 08 mov 0x8(%ebp),%eax 80102cc8: 66 89 45 ec mov %ax,-0x14(%ebp) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102ccc: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80102cd0: 89 c2 mov %eax,%edx 80102cd2: ec in (%dx),%al 80102cd3: 88 45 ff mov %al,-0x1(%ebp) return data; 80102cd6: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80102cda: c9 leave 80102cdb: c3 ret 80102cdc <kbdgetc>: #include "defs.h" #include "kbd.h" int kbdgetc(void) { 80102cdc: 55 push %ebp 80102cdd: 89 e5 mov %esp,%ebp 80102cdf: 83 ec 10 sub $0x10,%esp static uchar *charcode[4] = { normalmap, shiftmap, ctlmap, ctlmap }; uint st, data, c; st = inb(KBSTATP); 80102ce2: 6a 64 push $0x64 80102ce4: e8 d6 ff ff ff call 80102cbf <inb> 80102ce9: 83 c4 04 add $0x4,%esp 80102cec: 0f b6 c0 movzbl %al,%eax 80102cef: 89 45 f4 mov %eax,-0xc(%ebp) if((st & KBS_DIB) == 0) 80102cf2: 8b 45 f4 mov -0xc(%ebp),%eax 80102cf5: 83 e0 01 and $0x1,%eax 80102cf8: 85 c0 test %eax,%eax 80102cfa: 75 0a jne 80102d06 <kbdgetc+0x2a> return -1; 80102cfc: b8 ff ff ff ff mov $0xffffffff,%eax 80102d01: e9 23 01 00 00 jmp 80102e29 <kbdgetc+0x14d> data = inb(KBDATAP); 80102d06: 6a 60 push $0x60 80102d08: e8 b2 ff ff ff call 80102cbf <inb> 80102d0d: 83 c4 04 add $0x4,%esp 80102d10: 0f b6 c0 movzbl %al,%eax 80102d13: 89 45 fc mov %eax,-0x4(%ebp) if(data == 0xE0){ 80102d16: 81 7d fc e0 00 00 00 cmpl $0xe0,-0x4(%ebp) 80102d1d: 75 17 jne 80102d36 <kbdgetc+0x5a> shift |= E0ESC; 80102d1f: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102d24: 83 c8 40 or $0x40,%eax 80102d27: a3 3c b6 10 80 mov %eax,0x8010b63c return 0; 80102d2c: b8 00 00 00 00 mov $0x0,%eax 80102d31: e9 f3 00 00 00 jmp 80102e29 <kbdgetc+0x14d> } else if(data & 0x80){ 80102d36: 8b 45 fc mov -0x4(%ebp),%eax 80102d39: 25 80 00 00 00 and $0x80,%eax 80102d3e: 85 c0 test %eax,%eax 80102d40: 74 45 je 80102d87 <kbdgetc+0xab> // Key released data = (shift & E0ESC ? data : data & 0x7F); 80102d42: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102d47: 83 e0 40 and $0x40,%eax 80102d4a: 85 c0 test %eax,%eax 80102d4c: 75 08 jne 80102d56 <kbdgetc+0x7a> 80102d4e: 8b 45 fc mov -0x4(%ebp),%eax 80102d51: 83 e0 7f and $0x7f,%eax 80102d54: eb 03 jmp 80102d59 <kbdgetc+0x7d> 80102d56: 8b 45 fc mov -0x4(%ebp),%eax 80102d59: 89 45 fc mov %eax,-0x4(%ebp) shift &= ~(shiftcode[data] | E0ESC); 80102d5c: 8b 45 fc mov -0x4(%ebp),%eax 80102d5f: 05 20 90 10 80 add $0x80109020,%eax 80102d64: 0f b6 00 movzbl (%eax),%eax 80102d67: 83 c8 40 or $0x40,%eax 80102d6a: 0f b6 c0 movzbl %al,%eax 80102d6d: f7 d0 not %eax 80102d6f: 89 c2 mov %eax,%edx 80102d71: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102d76: 21 d0 and %edx,%eax 80102d78: a3 3c b6 10 80 mov %eax,0x8010b63c return 0; 80102d7d: b8 00 00 00 00 mov $0x0,%eax 80102d82: e9 a2 00 00 00 jmp 80102e29 <kbdgetc+0x14d> } else if(shift & E0ESC){ 80102d87: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102d8c: 83 e0 40 and $0x40,%eax 80102d8f: 85 c0 test %eax,%eax 80102d91: 74 14 je 80102da7 <kbdgetc+0xcb> // Last character was an E0 escape; or with 0x80 data |= 0x80; 80102d93: 81 4d fc 80 00 00 00 orl $0x80,-0x4(%ebp) shift &= ~E0ESC; 80102d9a: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102d9f: 83 e0 bf and $0xffffffbf,%eax 80102da2: a3 3c b6 10 80 mov %eax,0x8010b63c } shift |= shiftcode[data]; 80102da7: 8b 45 fc mov -0x4(%ebp),%eax 80102daa: 05 20 90 10 80 add $0x80109020,%eax 80102daf: 0f b6 00 movzbl (%eax),%eax 80102db2: 0f b6 d0 movzbl %al,%edx 80102db5: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102dba: 09 d0 or %edx,%eax 80102dbc: a3 3c b6 10 80 mov %eax,0x8010b63c shift ^= togglecode[data]; 80102dc1: 8b 45 fc mov -0x4(%ebp),%eax 80102dc4: 05 20 91 10 80 add $0x80109120,%eax 80102dc9: 0f b6 00 movzbl (%eax),%eax 80102dcc: 0f b6 d0 movzbl %al,%edx 80102dcf: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102dd4: 31 d0 xor %edx,%eax 80102dd6: a3 3c b6 10 80 mov %eax,0x8010b63c c = charcode[shift & (CTL | SHIFT)][data]; 80102ddb: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102de0: 83 e0 03 and $0x3,%eax 80102de3: 8b 14 85 20 95 10 80 mov -0x7fef6ae0(,%eax,4),%edx 80102dea: 8b 45 fc mov -0x4(%ebp),%eax 80102ded: 01 d0 add %edx,%eax 80102def: 0f b6 00 movzbl (%eax),%eax 80102df2: 0f b6 c0 movzbl %al,%eax 80102df5: 89 45 f8 mov %eax,-0x8(%ebp) if(shift & CAPSLOCK){ 80102df8: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102dfd: 83 e0 08 and $0x8,%eax 80102e00: 85 c0 test %eax,%eax 80102e02: 74 22 je 80102e26 <kbdgetc+0x14a> if('a' <= c && c <= 'z') 80102e04: 83 7d f8 60 cmpl $0x60,-0x8(%ebp) 80102e08: 76 0c jbe 80102e16 <kbdgetc+0x13a> 80102e0a: 83 7d f8 7a cmpl $0x7a,-0x8(%ebp) 80102e0e: 77 06 ja 80102e16 <kbdgetc+0x13a> c += 'A' - 'a'; 80102e10: 83 6d f8 20 subl $0x20,-0x8(%ebp) 80102e14: eb 10 jmp 80102e26 <kbdgetc+0x14a> else if('A' <= c && c <= 'Z') 80102e16: 83 7d f8 40 cmpl $0x40,-0x8(%ebp) 80102e1a: 76 0a jbe 80102e26 <kbdgetc+0x14a> 80102e1c: 83 7d f8 5a cmpl $0x5a,-0x8(%ebp) 80102e20: 77 04 ja 80102e26 <kbdgetc+0x14a> c += 'a' - 'A'; 80102e22: 83 45 f8 20 addl $0x20,-0x8(%ebp) } return c; 80102e26: 8b 45 f8 mov -0x8(%ebp),%eax } 80102e29: c9 leave 80102e2a: c3 ret 80102e2b <kbdintr>: void kbdintr(void) { 80102e2b: 55 push %ebp 80102e2c: 89 e5 mov %esp,%ebp 80102e2e: 83 ec 08 sub $0x8,%esp consoleintr(kbdgetc); 80102e31: 83 ec 0c sub $0xc,%esp 80102e34: 68 dc 2c 10 80 push $0x80102cdc 80102e39: e8 c4 d9 ff ff call 80100802 <consoleintr> 80102e3e: 83 c4 10 add $0x10,%esp } 80102e41: 90 nop 80102e42: c9 leave 80102e43: c3 ret 80102e44 <inb>: { 80102e44: 55 push %ebp 80102e45: 89 e5 mov %esp,%ebp 80102e47: 83 ec 14 sub $0x14,%esp 80102e4a: 8b 45 08 mov 0x8(%ebp),%eax 80102e4d: 66 89 45 ec mov %ax,-0x14(%ebp) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102e51: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80102e55: 89 c2 mov %eax,%edx 80102e57: ec in (%dx),%al 80102e58: 88 45 ff mov %al,-0x1(%ebp) return data; 80102e5b: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80102e5f: c9 leave 80102e60: c3 ret 80102e61 <outb>: { 80102e61: 55 push %ebp 80102e62: 89 e5 mov %esp,%ebp 80102e64: 83 ec 08 sub $0x8,%esp 80102e67: 8b 45 08 mov 0x8(%ebp),%eax 80102e6a: 8b 55 0c mov 0xc(%ebp),%edx 80102e6d: 66 89 45 fc mov %ax,-0x4(%ebp) 80102e71: 89 d0 mov %edx,%eax 80102e73: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102e76: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80102e7a: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80102e7e: ee out %al,(%dx) } 80102e7f: 90 nop 80102e80: c9 leave 80102e81: c3 ret 80102e82 <readeflags>: { 80102e82: 55 push %ebp 80102e83: 89 e5 mov %esp,%ebp 80102e85: 83 ec 10 sub $0x10,%esp asm volatile("pushfl; popl %0" : "=r" (eflags)); 80102e88: 9c pushf 80102e89: 58 pop %eax 80102e8a: 89 45 fc mov %eax,-0x4(%ebp) return eflags; 80102e8d: 8b 45 fc mov -0x4(%ebp),%eax } 80102e90: c9 leave 80102e91: c3 ret 80102e92 <lapicw>: volatile uint *lapic; // Initialized in mp.c static void lapicw(int index, int value) { 80102e92: 55 push %ebp 80102e93: 89 e5 mov %esp,%ebp lapic[index] = value; 80102e95: a1 5c 22 11 80 mov 0x8011225c,%eax 80102e9a: 8b 55 08 mov 0x8(%ebp),%edx 80102e9d: c1 e2 02 shl $0x2,%edx 80102ea0: 01 c2 add %eax,%edx 80102ea2: 8b 45 0c mov 0xc(%ebp),%eax 80102ea5: 89 02 mov %eax,(%edx) lapic[ID]; // wait for write to finish, by reading 80102ea7: a1 5c 22 11 80 mov 0x8011225c,%eax 80102eac: 83 c0 20 add $0x20,%eax 80102eaf: 8b 00 mov (%eax),%eax } 80102eb1: 90 nop 80102eb2: 5d pop %ebp 80102eb3: c3 ret 80102eb4 <lapicinit>: //PAGEBREAK! void lapicinit(void) { 80102eb4: 55 push %ebp 80102eb5: 89 e5 mov %esp,%ebp if(!lapic) 80102eb7: a1 5c 22 11 80 mov 0x8011225c,%eax 80102ebc: 85 c0 test %eax,%eax 80102ebe: 0f 84 0c 01 00 00 je 80102fd0 <lapicinit+0x11c> return; // Enable local APIC; set spurious interrupt vector. lapicw(SVR, ENABLE | (T_IRQ0 + IRQ_SPURIOUS)); 80102ec4: 68 3f 01 00 00 push $0x13f 80102ec9: 6a 3c push $0x3c 80102ecb: e8 c2 ff ff ff call 80102e92 <lapicw> 80102ed0: 83 c4 08 add $0x8,%esp // The timer repeatedly counts down at bus frequency // from lapic[TICR] and then issues an interrupt. // If xv6 cared more about precise timekeeping, // TICR would be calibrated using an external time source. lapicw(TDCR, X1); 80102ed3: 6a 0b push $0xb 80102ed5: 68 f8 00 00 00 push $0xf8 80102eda: e8 b3 ff ff ff call 80102e92 <lapicw> 80102edf: 83 c4 08 add $0x8,%esp lapicw(TIMER, PERIODIC | (T_IRQ0 + IRQ_TIMER)); 80102ee2: 68 20 00 02 00 push $0x20020 80102ee7: 68 c8 00 00 00 push $0xc8 80102eec: e8 a1 ff ff ff call 80102e92 <lapicw> 80102ef1: 83 c4 08 add $0x8,%esp lapicw(TICR, 10000000); 80102ef4: 68 80 96 98 00 push $0x989680 80102ef9: 68 e0 00 00 00 push $0xe0 80102efe: e8 8f ff ff ff call 80102e92 <lapicw> 80102f03: 83 c4 08 add $0x8,%esp // Disable logical interrupt lines. lapicw(LINT0, MASKED); 80102f06: 68 00 00 01 00 push $0x10000 80102f0b: 68 d4 00 00 00 push $0xd4 80102f10: e8 7d ff ff ff call 80102e92 <lapicw> 80102f15: 83 c4 08 add $0x8,%esp lapicw(LINT1, MASKED); 80102f18: 68 00 00 01 00 push $0x10000 80102f1d: 68 d8 00 00 00 push $0xd8 80102f22: e8 6b ff ff ff call 80102e92 <lapicw> 80102f27: 83 c4 08 add $0x8,%esp // Disable performance counter overflow interrupts // on machines that provide that interrupt entry. if(((lapic[VER]>>16) & 0xFF) >= 4) 80102f2a: a1 5c 22 11 80 mov 0x8011225c,%eax 80102f2f: 83 c0 30 add $0x30,%eax 80102f32: 8b 00 mov (%eax),%eax 80102f34: c1 e8 10 shr $0x10,%eax 80102f37: 25 fc 00 00 00 and $0xfc,%eax 80102f3c: 85 c0 test %eax,%eax 80102f3e: 74 12 je 80102f52 <lapicinit+0x9e> lapicw(PCINT, MASKED); 80102f40: 68 00 00 01 00 push $0x10000 80102f45: 68 d0 00 00 00 push $0xd0 80102f4a: e8 43 ff ff ff call 80102e92 <lapicw> 80102f4f: 83 c4 08 add $0x8,%esp // Map error interrupt to IRQ_ERROR. lapicw(ERROR, T_IRQ0 + IRQ_ERROR); 80102f52: 6a 33 push $0x33 80102f54: 68 dc 00 00 00 push $0xdc 80102f59: e8 34 ff ff ff call 80102e92 <lapicw> 80102f5e: 83 c4 08 add $0x8,%esp // Clear error status register (requires back-to-back writes). lapicw(ESR, 0); 80102f61: 6a 00 push $0x0 80102f63: 68 a0 00 00 00 push $0xa0 80102f68: e8 25 ff ff ff call 80102e92 <lapicw> 80102f6d: 83 c4 08 add $0x8,%esp lapicw(ESR, 0); 80102f70: 6a 00 push $0x0 80102f72: 68 a0 00 00 00 push $0xa0 80102f77: e8 16 ff ff ff call 80102e92 <lapicw> 80102f7c: 83 c4 08 add $0x8,%esp // Ack any outstanding interrupts. lapicw(EOI, 0); 80102f7f: 6a 00 push $0x0 80102f81: 6a 2c push $0x2c 80102f83: e8 0a ff ff ff call 80102e92 <lapicw> 80102f88: 83 c4 08 add $0x8,%esp // Send an Init Level De-Assert to synchronise arbitration ID's. lapicw(ICRHI, 0); 80102f8b: 6a 00 push $0x0 80102f8d: 68 c4 00 00 00 push $0xc4 80102f92: e8 fb fe ff ff call 80102e92 <lapicw> 80102f97: 83 c4 08 add $0x8,%esp lapicw(ICRLO, BCAST | INIT | LEVEL); 80102f9a: 68 00 85 08 00 push $0x88500 80102f9f: 68 c0 00 00 00 push $0xc0 80102fa4: e8 e9 fe ff ff call 80102e92 <lapicw> 80102fa9: 83 c4 08 add $0x8,%esp while(lapic[ICRLO] & DELIVS) 80102fac: 90 nop 80102fad: a1 5c 22 11 80 mov 0x8011225c,%eax 80102fb2: 05 00 03 00 00 add $0x300,%eax 80102fb7: 8b 00 mov (%eax),%eax 80102fb9: 25 00 10 00 00 and $0x1000,%eax 80102fbe: 85 c0 test %eax,%eax 80102fc0: 75 eb jne 80102fad <lapicinit+0xf9> ; // Enable interrupts on the APIC (but not on the processor). lapicw(TPR, 0); 80102fc2: 6a 00 push $0x0 80102fc4: 6a 20 push $0x20 80102fc6: e8 c7 fe ff ff call 80102e92 <lapicw> 80102fcb: 83 c4 08 add $0x8,%esp 80102fce: eb 01 jmp 80102fd1 <lapicinit+0x11d> return; 80102fd0: 90 nop } 80102fd1: c9 leave 80102fd2: c3 ret 80102fd3 <cpunum>: int cpunum(void) { 80102fd3: 55 push %ebp 80102fd4: 89 e5 mov %esp,%ebp 80102fd6: 83 ec 08 sub $0x8,%esp // Cannot call cpu when interrupts are enabled: // result not guaranteed to last long enough to be used! // Would prefer to panic but even printing is chancy here: // almost everything, including cprintf and panic, calls cpu, // often indirectly through acquire and release. if(readeflags()&FL_IF){ 80102fd9: e8 a4 fe ff ff call 80102e82 <readeflags> 80102fde: 25 00 02 00 00 and $0x200,%eax 80102fe3: 85 c0 test %eax,%eax 80102fe5: 74 26 je 8010300d <cpunum+0x3a> static int n; if(n++ == 0) 80102fe7: a1 40 b6 10 80 mov 0x8010b640,%eax 80102fec: 8d 50 01 lea 0x1(%eax),%edx 80102fef: 89 15 40 b6 10 80 mov %edx,0x8010b640 80102ff5: 85 c0 test %eax,%eax 80102ff7: 75 14 jne 8010300d <cpunum+0x3a> cprintf("cpu called from %x with interrupts enabled\n", 80102ff9: 8b 45 04 mov 0x4(%ebp),%eax 80102ffc: 83 ec 08 sub $0x8,%esp 80102fff: 50 push %eax 80103000: 68 c0 87 10 80 push $0x801087c0 80103005: e8 ba d3 ff ff call 801003c4 <cprintf> 8010300a: 83 c4 10 add $0x10,%esp __builtin_return_address(0)); } if(lapic) 8010300d: a1 5c 22 11 80 mov 0x8011225c,%eax 80103012: 85 c0 test %eax,%eax 80103014: 74 0f je 80103025 <cpunum+0x52> return lapic[ID]>>24; 80103016: a1 5c 22 11 80 mov 0x8011225c,%eax 8010301b: 83 c0 20 add $0x20,%eax 8010301e: 8b 00 mov (%eax),%eax 80103020: c1 e8 18 shr $0x18,%eax 80103023: eb 05 jmp 8010302a <cpunum+0x57> return 0; 80103025: b8 00 00 00 00 mov $0x0,%eax } 8010302a: c9 leave 8010302b: c3 ret 8010302c <lapiceoi>: // Acknowledge interrupt. void lapiceoi(void) { 8010302c: 55 push %ebp 8010302d: 89 e5 mov %esp,%ebp if(lapic) 8010302f: a1 5c 22 11 80 mov 0x8011225c,%eax 80103034: 85 c0 test %eax,%eax 80103036: 74 0c je 80103044 <lapiceoi+0x18> lapicw(EOI, 0); 80103038: 6a 00 push $0x0 8010303a: 6a 2c push $0x2c 8010303c: e8 51 fe ff ff call 80102e92 <lapicw> 80103041: 83 c4 08 add $0x8,%esp } 80103044: 90 nop 80103045: c9 leave 80103046: c3 ret 80103047 <microdelay>: // Spin for a given number of microseconds. // On real hardware would want to tune this dynamically. void microdelay(int us) { 80103047: 55 push %ebp 80103048: 89 e5 mov %esp,%ebp } 8010304a: 90 nop 8010304b: 5d pop %ebp 8010304c: c3 ret 8010304d <lapicstartap>: // Start additional processor running entry code at addr. // See Appendix B of MultiProcessor Specification. void lapicstartap(uchar apicid, uint addr) { 8010304d: 55 push %ebp 8010304e: 89 e5 mov %esp,%ebp 80103050: 83 ec 14 sub $0x14,%esp 80103053: 8b 45 08 mov 0x8(%ebp),%eax 80103056: 88 45 ec mov %al,-0x14(%ebp) ushort *wrv; // "The BSP must initialize CMOS shutdown code to 0AH // and the warm reset vector (DWORD based at 40:67) to point at // the AP startup code prior to the [universal startup algorithm]." outb(CMOS_PORT, 0xF); // offset 0xF is shutdown code 80103059: 6a 0f push $0xf 8010305b: 6a 70 push $0x70 8010305d: e8 ff fd ff ff call 80102e61 <outb> 80103062: 83 c4 08 add $0x8,%esp outb(CMOS_PORT+1, 0x0A); 80103065: 6a 0a push $0xa 80103067: 6a 71 push $0x71 80103069: e8 f3 fd ff ff call 80102e61 <outb> 8010306e: 83 c4 08 add $0x8,%esp wrv = (ushort*)P2V((0x40<<4 | 0x67)); // Warm reset vector 80103071: c7 45 f8 67 04 00 80 movl $0x80000467,-0x8(%ebp) wrv[0] = 0; 80103078: 8b 45 f8 mov -0x8(%ebp),%eax 8010307b: 66 c7 00 00 00 movw $0x0,(%eax) wrv[1] = addr >> 4; 80103080: 8b 45 0c mov 0xc(%ebp),%eax 80103083: c1 e8 04 shr $0x4,%eax 80103086: 89 c2 mov %eax,%edx 80103088: 8b 45 f8 mov -0x8(%ebp),%eax 8010308b: 83 c0 02 add $0x2,%eax 8010308e: 66 89 10 mov %dx,(%eax) // "Universal startup algorithm." // Send INIT (level-triggered) interrupt to reset other CPU. lapicw(ICRHI, apicid<<24); 80103091: 0f b6 45 ec movzbl -0x14(%ebp),%eax 80103095: c1 e0 18 shl $0x18,%eax 80103098: 50 push %eax 80103099: 68 c4 00 00 00 push $0xc4 8010309e: e8 ef fd ff ff call 80102e92 <lapicw> 801030a3: 83 c4 08 add $0x8,%esp lapicw(ICRLO, INIT | LEVEL | ASSERT); 801030a6: 68 00 c5 00 00 push $0xc500 801030ab: 68 c0 00 00 00 push $0xc0 801030b0: e8 dd fd ff ff call 80102e92 <lapicw> 801030b5: 83 c4 08 add $0x8,%esp microdelay(200); 801030b8: 68 c8 00 00 00 push $0xc8 801030bd: e8 85 ff ff ff call 80103047 <microdelay> 801030c2: 83 c4 04 add $0x4,%esp lapicw(ICRLO, INIT | LEVEL); 801030c5: 68 00 85 00 00 push $0x8500 801030ca: 68 c0 00 00 00 push $0xc0 801030cf: e8 be fd ff ff call 80102e92 <lapicw> 801030d4: 83 c4 08 add $0x8,%esp microdelay(100); // should be 10ms, but too slow in Bochs! 801030d7: 6a 64 push $0x64 801030d9: e8 69 ff ff ff call 80103047 <microdelay> 801030de: 83 c4 04 add $0x4,%esp // Send startup IPI (twice!) to enter code. // Regular hardware is supposed to only accept a STARTUP // when it is in the halted state due to an INIT. So the second // should be ignored, but it is part of the official Intel algorithm. // Bochs complains about the second one. Too bad for Bochs. for(i = 0; i < 2; i++){ 801030e1: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 801030e8: eb 3d jmp 80103127 <lapicstartap+0xda> lapicw(ICRHI, apicid<<24); 801030ea: 0f b6 45 ec movzbl -0x14(%ebp),%eax 801030ee: c1 e0 18 shl $0x18,%eax 801030f1: 50 push %eax 801030f2: 68 c4 00 00 00 push $0xc4 801030f7: e8 96 fd ff ff call 80102e92 <lapicw> 801030fc: 83 c4 08 add $0x8,%esp lapicw(ICRLO, STARTUP | (addr>>12)); 801030ff: 8b 45 0c mov 0xc(%ebp),%eax 80103102: c1 e8 0c shr $0xc,%eax 80103105: 80 cc 06 or $0x6,%ah 80103108: 50 push %eax 80103109: 68 c0 00 00 00 push $0xc0 8010310e: e8 7f fd ff ff call 80102e92 <lapicw> 80103113: 83 c4 08 add $0x8,%esp microdelay(200); 80103116: 68 c8 00 00 00 push $0xc8 8010311b: e8 27 ff ff ff call 80103047 <microdelay> 80103120: 83 c4 04 add $0x4,%esp for(i = 0; i < 2; i++){ 80103123: 83 45 fc 01 addl $0x1,-0x4(%ebp) 80103127: 83 7d fc 01 cmpl $0x1,-0x4(%ebp) 8010312b: 7e bd jle 801030ea <lapicstartap+0x9d> } } 8010312d: 90 nop 8010312e: c9 leave 8010312f: c3 ret 80103130 <cmos_read>: #define DAY 0x07 #define MONTH 0x08 #define YEAR 0x09 static uint cmos_read(uint reg) { 80103130: 55 push %ebp 80103131: 89 e5 mov %esp,%ebp outb(CMOS_PORT, reg); 80103133: 8b 45 08 mov 0x8(%ebp),%eax 80103136: 0f b6 c0 movzbl %al,%eax 80103139: 50 push %eax 8010313a: 6a 70 push $0x70 8010313c: e8 20 fd ff ff call 80102e61 <outb> 80103141: 83 c4 08 add $0x8,%esp microdelay(200); 80103144: 68 c8 00 00 00 push $0xc8 80103149: e8 f9 fe ff ff call 80103047 <microdelay> 8010314e: 83 c4 04 add $0x4,%esp return inb(CMOS_RETURN); 80103151: 6a 71 push $0x71 80103153: e8 ec fc ff ff call 80102e44 <inb> 80103158: 83 c4 04 add $0x4,%esp 8010315b: 0f b6 c0 movzbl %al,%eax } 8010315e: c9 leave 8010315f: c3 ret 80103160 <fill_rtcdate>: static void fill_rtcdate(struct rtcdate *r) { 80103160: 55 push %ebp 80103161: 89 e5 mov %esp,%ebp r->second = cmos_read(SECS); 80103163: 6a 00 push $0x0 80103165: e8 c6 ff ff ff call 80103130 <cmos_read> 8010316a: 83 c4 04 add $0x4,%esp 8010316d: 89 c2 mov %eax,%edx 8010316f: 8b 45 08 mov 0x8(%ebp),%eax 80103172: 89 10 mov %edx,(%eax) r->minute = cmos_read(MINS); 80103174: 6a 02 push $0x2 80103176: e8 b5 ff ff ff call 80103130 <cmos_read> 8010317b: 83 c4 04 add $0x4,%esp 8010317e: 89 c2 mov %eax,%edx 80103180: 8b 45 08 mov 0x8(%ebp),%eax 80103183: 89 50 04 mov %edx,0x4(%eax) r->hour = cmos_read(HOURS); 80103186: 6a 04 push $0x4 80103188: e8 a3 ff ff ff call 80103130 <cmos_read> 8010318d: 83 c4 04 add $0x4,%esp 80103190: 89 c2 mov %eax,%edx 80103192: 8b 45 08 mov 0x8(%ebp),%eax 80103195: 89 50 08 mov %edx,0x8(%eax) r->day = cmos_read(DAY); 80103198: 6a 07 push $0x7 8010319a: e8 91 ff ff ff call 80103130 <cmos_read> 8010319f: 83 c4 04 add $0x4,%esp 801031a2: 89 c2 mov %eax,%edx 801031a4: 8b 45 08 mov 0x8(%ebp),%eax 801031a7: 89 50 0c mov %edx,0xc(%eax) r->month = cmos_read(MONTH); 801031aa: 6a 08 push $0x8 801031ac: e8 7f ff ff ff call 80103130 <cmos_read> 801031b1: 83 c4 04 add $0x4,%esp 801031b4: 89 c2 mov %eax,%edx 801031b6: 8b 45 08 mov 0x8(%ebp),%eax 801031b9: 89 50 10 mov %edx,0x10(%eax) r->year = cmos_read(YEAR); 801031bc: 6a 09 push $0x9 801031be: e8 6d ff ff ff call 80103130 <cmos_read> 801031c3: 83 c4 04 add $0x4,%esp 801031c6: 89 c2 mov %eax,%edx 801031c8: 8b 45 08 mov 0x8(%ebp),%eax 801031cb: 89 50 14 mov %edx,0x14(%eax) } 801031ce: 90 nop 801031cf: c9 leave 801031d0: c3 ret 801031d1 <cmostime>: // qemu seems to use 24-hour GWT and the values are BCD encoded void cmostime(struct rtcdate *r) { 801031d1: 55 push %ebp 801031d2: 89 e5 mov %esp,%ebp 801031d4: 83 ec 48 sub $0x48,%esp struct rtcdate t1, t2; int sb, bcd; sb = cmos_read(CMOS_STATB); 801031d7: 6a 0b push $0xb 801031d9: e8 52 ff ff ff call 80103130 <cmos_read> 801031de: 83 c4 04 add $0x4,%esp 801031e1: 89 45 f4 mov %eax,-0xc(%ebp) bcd = (sb & (1 << 2)) == 0; 801031e4: 8b 45 f4 mov -0xc(%ebp),%eax 801031e7: 83 e0 04 and $0x4,%eax 801031ea: 85 c0 test %eax,%eax 801031ec: 0f 94 c0 sete %al 801031ef: 0f b6 c0 movzbl %al,%eax 801031f2: 89 45 f0 mov %eax,-0x10(%ebp) // make sure CMOS doesn't modify time while we read it for (;;) { fill_rtcdate(&t1); 801031f5: 8d 45 d8 lea -0x28(%ebp),%eax 801031f8: 50 push %eax 801031f9: e8 62 ff ff ff call 80103160 <fill_rtcdate> 801031fe: 83 c4 04 add $0x4,%esp if (cmos_read(CMOS_STATA) & CMOS_UIP) 80103201: 6a 0a push $0xa 80103203: e8 28 ff ff ff call 80103130 <cmos_read> 80103208: 83 c4 04 add $0x4,%esp 8010320b: 25 80 00 00 00 and $0x80,%eax 80103210: 85 c0 test %eax,%eax 80103212: 75 27 jne 8010323b <cmostime+0x6a> continue; fill_rtcdate(&t2); 80103214: 8d 45 c0 lea -0x40(%ebp),%eax 80103217: 50 push %eax 80103218: e8 43 ff ff ff call 80103160 <fill_rtcdate> 8010321d: 83 c4 04 add $0x4,%esp if (memcmp(&t1, &t2, sizeof(t1)) == 0) 80103220: 83 ec 04 sub $0x4,%esp 80103223: 6a 18 push $0x18 80103225: 8d 45 c0 lea -0x40(%ebp),%eax 80103228: 50 push %eax 80103229: 8d 45 d8 lea -0x28(%ebp),%eax 8010322c: 50 push %eax 8010322d: e8 dc 20 00 00 call 8010530e <memcmp> 80103232: 83 c4 10 add $0x10,%esp 80103235: 85 c0 test %eax,%eax 80103237: 74 05 je 8010323e <cmostime+0x6d> 80103239: eb ba jmp 801031f5 <cmostime+0x24> continue; 8010323b: 90 nop fill_rtcdate(&t1); 8010323c: eb b7 jmp 801031f5 <cmostime+0x24> break; 8010323e: 90 nop } // convert if (bcd) { 8010323f: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80103243: 0f 84 b4 00 00 00 je 801032fd <cmostime+0x12c> #define CONV(x) (t1.x = ((t1.x >> 4) * 10) + (t1.x & 0xf)) CONV(second); 80103249: 8b 45 d8 mov -0x28(%ebp),%eax 8010324c: c1 e8 04 shr $0x4,%eax 8010324f: 89 c2 mov %eax,%edx 80103251: 89 d0 mov %edx,%eax 80103253: c1 e0 02 shl $0x2,%eax 80103256: 01 d0 add %edx,%eax 80103258: 01 c0 add %eax,%eax 8010325a: 89 c2 mov %eax,%edx 8010325c: 8b 45 d8 mov -0x28(%ebp),%eax 8010325f: 83 e0 0f and $0xf,%eax 80103262: 01 d0 add %edx,%eax 80103264: 89 45 d8 mov %eax,-0x28(%ebp) CONV(minute); 80103267: 8b 45 dc mov -0x24(%ebp),%eax 8010326a: c1 e8 04 shr $0x4,%eax 8010326d: 89 c2 mov %eax,%edx 8010326f: 89 d0 mov %edx,%eax 80103271: c1 e0 02 shl $0x2,%eax 80103274: 01 d0 add %edx,%eax 80103276: 01 c0 add %eax,%eax 80103278: 89 c2 mov %eax,%edx 8010327a: 8b 45 dc mov -0x24(%ebp),%eax 8010327d: 83 e0 0f and $0xf,%eax 80103280: 01 d0 add %edx,%eax 80103282: 89 45 dc mov %eax,-0x24(%ebp) CONV(hour ); 80103285: 8b 45 e0 mov -0x20(%ebp),%eax 80103288: c1 e8 04 shr $0x4,%eax 8010328b: 89 c2 mov %eax,%edx 8010328d: 89 d0 mov %edx,%eax 8010328f: c1 e0 02 shl $0x2,%eax 80103292: 01 d0 add %edx,%eax 80103294: 01 c0 add %eax,%eax 80103296: 89 c2 mov %eax,%edx 80103298: 8b 45 e0 mov -0x20(%ebp),%eax 8010329b: 83 e0 0f and $0xf,%eax 8010329e: 01 d0 add %edx,%eax 801032a0: 89 45 e0 mov %eax,-0x20(%ebp) CONV(day ); 801032a3: 8b 45 e4 mov -0x1c(%ebp),%eax 801032a6: c1 e8 04 shr $0x4,%eax 801032a9: 89 c2 mov %eax,%edx 801032ab: 89 d0 mov %edx,%eax 801032ad: c1 e0 02 shl $0x2,%eax 801032b0: 01 d0 add %edx,%eax 801032b2: 01 c0 add %eax,%eax 801032b4: 89 c2 mov %eax,%edx 801032b6: 8b 45 e4 mov -0x1c(%ebp),%eax 801032b9: 83 e0 0f and $0xf,%eax 801032bc: 01 d0 add %edx,%eax 801032be: 89 45 e4 mov %eax,-0x1c(%ebp) CONV(month ); 801032c1: 8b 45 e8 mov -0x18(%ebp),%eax 801032c4: c1 e8 04 shr $0x4,%eax 801032c7: 89 c2 mov %eax,%edx 801032c9: 89 d0 mov %edx,%eax 801032cb: c1 e0 02 shl $0x2,%eax 801032ce: 01 d0 add %edx,%eax 801032d0: 01 c0 add %eax,%eax 801032d2: 89 c2 mov %eax,%edx 801032d4: 8b 45 e8 mov -0x18(%ebp),%eax 801032d7: 83 e0 0f and $0xf,%eax 801032da: 01 d0 add %edx,%eax 801032dc: 89 45 e8 mov %eax,-0x18(%ebp) CONV(year ); 801032df: 8b 45 ec mov -0x14(%ebp),%eax 801032e2: c1 e8 04 shr $0x4,%eax 801032e5: 89 c2 mov %eax,%edx 801032e7: 89 d0 mov %edx,%eax 801032e9: c1 e0 02 shl $0x2,%eax 801032ec: 01 d0 add %edx,%eax 801032ee: 01 c0 add %eax,%eax 801032f0: 89 c2 mov %eax,%edx 801032f2: 8b 45 ec mov -0x14(%ebp),%eax 801032f5: 83 e0 0f and $0xf,%eax 801032f8: 01 d0 add %edx,%eax 801032fa: 89 45 ec mov %eax,-0x14(%ebp) #undef CONV } *r = t1; 801032fd: 8b 45 08 mov 0x8(%ebp),%eax 80103300: 8b 55 d8 mov -0x28(%ebp),%edx 80103303: 89 10 mov %edx,(%eax) 80103305: 8b 55 dc mov -0x24(%ebp),%edx 80103308: 89 50 04 mov %edx,0x4(%eax) 8010330b: 8b 55 e0 mov -0x20(%ebp),%edx 8010330e: 89 50 08 mov %edx,0x8(%eax) 80103311: 8b 55 e4 mov -0x1c(%ebp),%edx 80103314: 89 50 0c mov %edx,0xc(%eax) 80103317: 8b 55 e8 mov -0x18(%ebp),%edx 8010331a: 89 50 10 mov %edx,0x10(%eax) 8010331d: 8b 55 ec mov -0x14(%ebp),%edx 80103320: 89 50 14 mov %edx,0x14(%eax) r->year += 2000; 80103323: 8b 45 08 mov 0x8(%ebp),%eax 80103326: 8b 40 14 mov 0x14(%eax),%eax 80103329: 8d 90 d0 07 00 00 lea 0x7d0(%eax),%edx 8010332f: 8b 45 08 mov 0x8(%ebp),%eax 80103332: 89 50 14 mov %edx,0x14(%eax) } 80103335: 90 nop 80103336: c9 leave 80103337: c3 ret 80103338 <initlog>: static void recover_from_log(void); static void commit(); void initlog(int dev) { 80103338: 55 push %ebp 80103339: 89 e5 mov %esp,%ebp 8010333b: 83 ec 28 sub $0x28,%esp if (sizeof(struct logheader) >= BSIZE) panic("initlog: too big logheader"); struct superblock sb; initlock(&log.lock, "log"); 8010333e: 83 ec 08 sub $0x8,%esp 80103341: 68 ec 87 10 80 push $0x801087ec 80103346: 68 60 22 11 80 push $0x80112260 8010334b: e8 d2 1c 00 00 call 80105022 <initlock> 80103350: 83 c4 10 add $0x10,%esp readsb(dev, &sb); 80103353: 83 ec 08 sub $0x8,%esp 80103356: 8d 45 dc lea -0x24(%ebp),%eax 80103359: 50 push %eax 8010335a: ff 75 08 pushl 0x8(%ebp) 8010335d: e8 2d e0 ff ff call 8010138f <readsb> 80103362: 83 c4 10 add $0x10,%esp log.start = sb.logstart; 80103365: 8b 45 ec mov -0x14(%ebp),%eax 80103368: a3 94 22 11 80 mov %eax,0x80112294 log.size = sb.nlog; 8010336d: 8b 45 e8 mov -0x18(%ebp),%eax 80103370: a3 98 22 11 80 mov %eax,0x80112298 log.dev = dev; 80103375: 8b 45 08 mov 0x8(%ebp),%eax 80103378: a3 a4 22 11 80 mov %eax,0x801122a4 recover_from_log(); 8010337d: e8 b2 01 00 00 call 80103534 <recover_from_log> } 80103382: 90 nop 80103383: c9 leave 80103384: c3 ret 80103385 <install_trans>: // Copy committed blocks from log to their home location static void install_trans(void) { 80103385: 55 push %ebp 80103386: 89 e5 mov %esp,%ebp 80103388: 83 ec 18 sub $0x18,%esp int tail; for (tail = 0; tail < log.lh.n; tail++) { 8010338b: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80103392: e9 95 00 00 00 jmp 8010342c <install_trans+0xa7> struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block 80103397: 8b 15 94 22 11 80 mov 0x80112294,%edx 8010339d: 8b 45 f4 mov -0xc(%ebp),%eax 801033a0: 01 d0 add %edx,%eax 801033a2: 83 c0 01 add $0x1,%eax 801033a5: 89 c2 mov %eax,%edx 801033a7: a1 a4 22 11 80 mov 0x801122a4,%eax 801033ac: 83 ec 08 sub $0x8,%esp 801033af: 52 push %edx 801033b0: 50 push %eax 801033b1: e8 00 ce ff ff call 801001b6 <bread> 801033b6: 83 c4 10 add $0x10,%esp 801033b9: 89 45 f0 mov %eax,-0x10(%ebp) struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst 801033bc: 8b 45 f4 mov -0xc(%ebp),%eax 801033bf: 83 c0 10 add $0x10,%eax 801033c2: 8b 04 85 6c 22 11 80 mov -0x7feedd94(,%eax,4),%eax 801033c9: 89 c2 mov %eax,%edx 801033cb: a1 a4 22 11 80 mov 0x801122a4,%eax 801033d0: 83 ec 08 sub $0x8,%esp 801033d3: 52 push %edx 801033d4: 50 push %eax 801033d5: e8 dc cd ff ff call 801001b6 <bread> 801033da: 83 c4 10 add $0x10,%esp 801033dd: 89 45 ec mov %eax,-0x14(%ebp) memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst 801033e0: 8b 45 f0 mov -0x10(%ebp),%eax 801033e3: 8d 50 18 lea 0x18(%eax),%edx 801033e6: 8b 45 ec mov -0x14(%ebp),%eax 801033e9: 83 c0 18 add $0x18,%eax 801033ec: 83 ec 04 sub $0x4,%esp 801033ef: 68 00 02 00 00 push $0x200 801033f4: 52 push %edx 801033f5: 50 push %eax 801033f6: e8 6b 1f 00 00 call 80105366 <memmove> 801033fb: 83 c4 10 add $0x10,%esp bwrite(dbuf); // write dst to disk 801033fe: 83 ec 0c sub $0xc,%esp 80103401: ff 75 ec pushl -0x14(%ebp) 80103404: e8 e6 cd ff ff call 801001ef <bwrite> 80103409: 83 c4 10 add $0x10,%esp brelse(lbuf); 8010340c: 83 ec 0c sub $0xc,%esp 8010340f: ff 75 f0 pushl -0x10(%ebp) 80103412: e8 17 ce ff ff call 8010022e <brelse> 80103417: 83 c4 10 add $0x10,%esp brelse(dbuf); 8010341a: 83 ec 0c sub $0xc,%esp 8010341d: ff 75 ec pushl -0x14(%ebp) 80103420: e8 09 ce ff ff call 8010022e <brelse> 80103425: 83 c4 10 add $0x10,%esp for (tail = 0; tail < log.lh.n; tail++) { 80103428: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010342c: a1 a8 22 11 80 mov 0x801122a8,%eax 80103431: 39 45 f4 cmp %eax,-0xc(%ebp) 80103434: 0f 8c 5d ff ff ff jl 80103397 <install_trans+0x12> } } 8010343a: 90 nop 8010343b: c9 leave 8010343c: c3 ret 8010343d <read_head>: // Read the log header from disk into the in-memory log header static void read_head(void) { 8010343d: 55 push %ebp 8010343e: 89 e5 mov %esp,%ebp 80103440: 83 ec 18 sub $0x18,%esp struct buf *buf = bread(log.dev, log.start); 80103443: a1 94 22 11 80 mov 0x80112294,%eax 80103448: 89 c2 mov %eax,%edx 8010344a: a1 a4 22 11 80 mov 0x801122a4,%eax 8010344f: 83 ec 08 sub $0x8,%esp 80103452: 52 push %edx 80103453: 50 push %eax 80103454: e8 5d cd ff ff call 801001b6 <bread> 80103459: 83 c4 10 add $0x10,%esp 8010345c: 89 45 f0 mov %eax,-0x10(%ebp) struct logheader *lh = (struct logheader *) (buf->data); 8010345f: 8b 45 f0 mov -0x10(%ebp),%eax 80103462: 83 c0 18 add $0x18,%eax 80103465: 89 45 ec mov %eax,-0x14(%ebp) int i; log.lh.n = lh->n; 80103468: 8b 45 ec mov -0x14(%ebp),%eax 8010346b: 8b 00 mov (%eax),%eax 8010346d: a3 a8 22 11 80 mov %eax,0x801122a8 for (i = 0; i < log.lh.n; i++) { 80103472: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80103479: eb 1b jmp 80103496 <read_head+0x59> log.lh.block[i] = lh->block[i]; 8010347b: 8b 45 ec mov -0x14(%ebp),%eax 8010347e: 8b 55 f4 mov -0xc(%ebp),%edx 80103481: 8b 44 90 04 mov 0x4(%eax,%edx,4),%eax 80103485: 8b 55 f4 mov -0xc(%ebp),%edx 80103488: 83 c2 10 add $0x10,%edx 8010348b: 89 04 95 6c 22 11 80 mov %eax,-0x7feedd94(,%edx,4) for (i = 0; i < log.lh.n; i++) { 80103492: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80103496: a1 a8 22 11 80 mov 0x801122a8,%eax 8010349b: 39 45 f4 cmp %eax,-0xc(%ebp) 8010349e: 7c db jl 8010347b <read_head+0x3e> } brelse(buf); 801034a0: 83 ec 0c sub $0xc,%esp 801034a3: ff 75 f0 pushl -0x10(%ebp) 801034a6: e8 83 cd ff ff call 8010022e <brelse> 801034ab: 83 c4 10 add $0x10,%esp } 801034ae: 90 nop 801034af: c9 leave 801034b0: c3 ret 801034b1 <write_head>: // Write in-memory log header to disk. // This is the true point at which the // current transaction commits. static void write_head(void) { 801034b1: 55 push %ebp 801034b2: 89 e5 mov %esp,%ebp 801034b4: 83 ec 18 sub $0x18,%esp struct buf *buf = bread(log.dev, log.start); 801034b7: a1 94 22 11 80 mov 0x80112294,%eax 801034bc: 89 c2 mov %eax,%edx 801034be: a1 a4 22 11 80 mov 0x801122a4,%eax 801034c3: 83 ec 08 sub $0x8,%esp 801034c6: 52 push %edx 801034c7: 50 push %eax 801034c8: e8 e9 cc ff ff call 801001b6 <bread> 801034cd: 83 c4 10 add $0x10,%esp 801034d0: 89 45 f0 mov %eax,-0x10(%ebp) struct logheader *hb = (struct logheader *) (buf->data); 801034d3: 8b 45 f0 mov -0x10(%ebp),%eax 801034d6: 83 c0 18 add $0x18,%eax 801034d9: 89 45 ec mov %eax,-0x14(%ebp) int i; hb->n = log.lh.n; 801034dc: 8b 15 a8 22 11 80 mov 0x801122a8,%edx 801034e2: 8b 45 ec mov -0x14(%ebp),%eax 801034e5: 89 10 mov %edx,(%eax) for (i = 0; i < log.lh.n; i++) { 801034e7: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801034ee: eb 1b jmp 8010350b <write_head+0x5a> hb->block[i] = log.lh.block[i]; 801034f0: 8b 45 f4 mov -0xc(%ebp),%eax 801034f3: 83 c0 10 add $0x10,%eax 801034f6: 8b 0c 85 6c 22 11 80 mov -0x7feedd94(,%eax,4),%ecx 801034fd: 8b 45 ec mov -0x14(%ebp),%eax 80103500: 8b 55 f4 mov -0xc(%ebp),%edx 80103503: 89 4c 90 04 mov %ecx,0x4(%eax,%edx,4) for (i = 0; i < log.lh.n; i++) { 80103507: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010350b: a1 a8 22 11 80 mov 0x801122a8,%eax 80103510: 39 45 f4 cmp %eax,-0xc(%ebp) 80103513: 7c db jl 801034f0 <write_head+0x3f> } bwrite(buf); 80103515: 83 ec 0c sub $0xc,%esp 80103518: ff 75 f0 pushl -0x10(%ebp) 8010351b: e8 cf cc ff ff call 801001ef <bwrite> 80103520: 83 c4 10 add $0x10,%esp brelse(buf); 80103523: 83 ec 0c sub $0xc,%esp 80103526: ff 75 f0 pushl -0x10(%ebp) 80103529: e8 00 cd ff ff call 8010022e <brelse> 8010352e: 83 c4 10 add $0x10,%esp } 80103531: 90 nop 80103532: c9 leave 80103533: c3 ret 80103534 <recover_from_log>: static void recover_from_log(void) { 80103534: 55 push %ebp 80103535: 89 e5 mov %esp,%ebp 80103537: 83 ec 08 sub $0x8,%esp read_head(); 8010353a: e8 fe fe ff ff call 8010343d <read_head> install_trans(); // if committed, copy from log to disk 8010353f: e8 41 fe ff ff call 80103385 <install_trans> log.lh.n = 0; 80103544: c7 05 a8 22 11 80 00 movl $0x0,0x801122a8 8010354b: 00 00 00 write_head(); // clear the log 8010354e: e8 5e ff ff ff call 801034b1 <write_head> } 80103553: 90 nop 80103554: c9 leave 80103555: c3 ret 80103556 <begin_op>: // called at the start of each FS system call. void begin_op(void) { 80103556: 55 push %ebp 80103557: 89 e5 mov %esp,%ebp 80103559: 83 ec 08 sub $0x8,%esp acquire(&log.lock); 8010355c: 83 ec 0c sub $0xc,%esp 8010355f: 68 60 22 11 80 push $0x80112260 80103564: e8 db 1a 00 00 call 80105044 <acquire> 80103569: 83 c4 10 add $0x10,%esp while(1){ if(log.committing){ 8010356c: a1 a0 22 11 80 mov 0x801122a0,%eax 80103571: 85 c0 test %eax,%eax 80103573: 74 17 je 8010358c <begin_op+0x36> sleep(&log, &log.lock); 80103575: 83 ec 08 sub $0x8,%esp 80103578: 68 60 22 11 80 push $0x80112260 8010357d: 68 60 22 11 80 push $0x80112260 80103582: e8 c4 17 00 00 call 80104d4b <sleep> 80103587: 83 c4 10 add $0x10,%esp 8010358a: eb e0 jmp 8010356c <begin_op+0x16> } else if(log.lh.n + (log.outstanding+1)*MAXOPBLOCKS > LOGSIZE){ 8010358c: 8b 0d a8 22 11 80 mov 0x801122a8,%ecx 80103592: a1 9c 22 11 80 mov 0x8011229c,%eax 80103597: 8d 50 01 lea 0x1(%eax),%edx 8010359a: 89 d0 mov %edx,%eax 8010359c: c1 e0 02 shl $0x2,%eax 8010359f: 01 d0 add %edx,%eax 801035a1: 01 c0 add %eax,%eax 801035a3: 01 c8 add %ecx,%eax 801035a5: 83 f8 1e cmp $0x1e,%eax 801035a8: 7e 17 jle 801035c1 <begin_op+0x6b> // this op might exhaust log space; wait for commit. sleep(&log, &log.lock); 801035aa: 83 ec 08 sub $0x8,%esp 801035ad: 68 60 22 11 80 push $0x80112260 801035b2: 68 60 22 11 80 push $0x80112260 801035b7: e8 8f 17 00 00 call 80104d4b <sleep> 801035bc: 83 c4 10 add $0x10,%esp 801035bf: eb ab jmp 8010356c <begin_op+0x16> } else { log.outstanding += 1; 801035c1: a1 9c 22 11 80 mov 0x8011229c,%eax 801035c6: 83 c0 01 add $0x1,%eax 801035c9: a3 9c 22 11 80 mov %eax,0x8011229c release(&log.lock); 801035ce: 83 ec 0c sub $0xc,%esp 801035d1: 68 60 22 11 80 push $0x80112260 801035d6: e8 d0 1a 00 00 call 801050ab <release> 801035db: 83 c4 10 add $0x10,%esp break; 801035de: 90 nop } } } 801035df: 90 nop 801035e0: c9 leave 801035e1: c3 ret 801035e2 <end_op>: // called at the end of each FS system call. // commits if this was the last outstanding operation. void end_op(void) { 801035e2: 55 push %ebp 801035e3: 89 e5 mov %esp,%ebp 801035e5: 83 ec 18 sub $0x18,%esp int do_commit = 0; 801035e8: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) acquire(&log.lock); 801035ef: 83 ec 0c sub $0xc,%esp 801035f2: 68 60 22 11 80 push $0x80112260 801035f7: e8 48 1a 00 00 call 80105044 <acquire> 801035fc: 83 c4 10 add $0x10,%esp log.outstanding -= 1; 801035ff: a1 9c 22 11 80 mov 0x8011229c,%eax 80103604: 83 e8 01 sub $0x1,%eax 80103607: a3 9c 22 11 80 mov %eax,0x8011229c if(log.committing) 8010360c: a1 a0 22 11 80 mov 0x801122a0,%eax 80103611: 85 c0 test %eax,%eax 80103613: 74 0d je 80103622 <end_op+0x40> panic("log.committing"); 80103615: 83 ec 0c sub $0xc,%esp 80103618: 68 f0 87 10 80 push $0x801087f0 8010361d: e8 45 cf ff ff call 80100567 <panic> if(log.outstanding == 0){ 80103622: a1 9c 22 11 80 mov 0x8011229c,%eax 80103627: 85 c0 test %eax,%eax 80103629: 75 13 jne 8010363e <end_op+0x5c> do_commit = 1; 8010362b: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) log.committing = 1; 80103632: c7 05 a0 22 11 80 01 movl $0x1,0x801122a0 80103639: 00 00 00 8010363c: eb 10 jmp 8010364e <end_op+0x6c> } else { // begin_op() may be waiting for log space. wakeup(&log); 8010363e: 83 ec 0c sub $0xc,%esp 80103641: 68 60 22 11 80 push $0x80112260 80103646: e8 eb 17 00 00 call 80104e36 <wakeup> 8010364b: 83 c4 10 add $0x10,%esp } release(&log.lock); 8010364e: 83 ec 0c sub $0xc,%esp 80103651: 68 60 22 11 80 push $0x80112260 80103656: e8 50 1a 00 00 call 801050ab <release> 8010365b: 83 c4 10 add $0x10,%esp if(do_commit){ 8010365e: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80103662: 74 3f je 801036a3 <end_op+0xc1> // call commit w/o holding locks, since not allowed // to sleep with locks. commit(); 80103664: e8 f5 00 00 00 call 8010375e <commit> acquire(&log.lock); 80103669: 83 ec 0c sub $0xc,%esp 8010366c: 68 60 22 11 80 push $0x80112260 80103671: e8 ce 19 00 00 call 80105044 <acquire> 80103676: 83 c4 10 add $0x10,%esp log.committing = 0; 80103679: c7 05 a0 22 11 80 00 movl $0x0,0x801122a0 80103680: 00 00 00 wakeup(&log); 80103683: 83 ec 0c sub $0xc,%esp 80103686: 68 60 22 11 80 push $0x80112260 8010368b: e8 a6 17 00 00 call 80104e36 <wakeup> 80103690: 83 c4 10 add $0x10,%esp release(&log.lock); 80103693: 83 ec 0c sub $0xc,%esp 80103696: 68 60 22 11 80 push $0x80112260 8010369b: e8 0b 1a 00 00 call 801050ab <release> 801036a0: 83 c4 10 add $0x10,%esp } } 801036a3: 90 nop 801036a4: c9 leave 801036a5: c3 ret 801036a6 <write_log>: // Copy modified blocks from cache to log. static void write_log(void) { 801036a6: 55 push %ebp 801036a7: 89 e5 mov %esp,%ebp 801036a9: 83 ec 18 sub $0x18,%esp int tail; for (tail = 0; tail < log.lh.n; tail++) { 801036ac: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801036b3: e9 95 00 00 00 jmp 8010374d <write_log+0xa7> struct buf *to = bread(log.dev, log.start+tail+1); // log block 801036b8: 8b 15 94 22 11 80 mov 0x80112294,%edx 801036be: 8b 45 f4 mov -0xc(%ebp),%eax 801036c1: 01 d0 add %edx,%eax 801036c3: 83 c0 01 add $0x1,%eax 801036c6: 89 c2 mov %eax,%edx 801036c8: a1 a4 22 11 80 mov 0x801122a4,%eax 801036cd: 83 ec 08 sub $0x8,%esp 801036d0: 52 push %edx 801036d1: 50 push %eax 801036d2: e8 df ca ff ff call 801001b6 <bread> 801036d7: 83 c4 10 add $0x10,%esp 801036da: 89 45 f0 mov %eax,-0x10(%ebp) struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block 801036dd: 8b 45 f4 mov -0xc(%ebp),%eax 801036e0: 83 c0 10 add $0x10,%eax 801036e3: 8b 04 85 6c 22 11 80 mov -0x7feedd94(,%eax,4),%eax 801036ea: 89 c2 mov %eax,%edx 801036ec: a1 a4 22 11 80 mov 0x801122a4,%eax 801036f1: 83 ec 08 sub $0x8,%esp 801036f4: 52 push %edx 801036f5: 50 push %eax 801036f6: e8 bb ca ff ff call 801001b6 <bread> 801036fb: 83 c4 10 add $0x10,%esp 801036fe: 89 45 ec mov %eax,-0x14(%ebp) memmove(to->data, from->data, BSIZE); 80103701: 8b 45 ec mov -0x14(%ebp),%eax 80103704: 8d 50 18 lea 0x18(%eax),%edx 80103707: 8b 45 f0 mov -0x10(%ebp),%eax 8010370a: 83 c0 18 add $0x18,%eax 8010370d: 83 ec 04 sub $0x4,%esp 80103710: 68 00 02 00 00 push $0x200 80103715: 52 push %edx 80103716: 50 push %eax 80103717: e8 4a 1c 00 00 call 80105366 <memmove> 8010371c: 83 c4 10 add $0x10,%esp bwrite(to); // write the log 8010371f: 83 ec 0c sub $0xc,%esp 80103722: ff 75 f0 pushl -0x10(%ebp) 80103725: e8 c5 ca ff ff call 801001ef <bwrite> 8010372a: 83 c4 10 add $0x10,%esp brelse(from); 8010372d: 83 ec 0c sub $0xc,%esp 80103730: ff 75 ec pushl -0x14(%ebp) 80103733: e8 f6 ca ff ff call 8010022e <brelse> 80103738: 83 c4 10 add $0x10,%esp brelse(to); 8010373b: 83 ec 0c sub $0xc,%esp 8010373e: ff 75 f0 pushl -0x10(%ebp) 80103741: e8 e8 ca ff ff call 8010022e <brelse> 80103746: 83 c4 10 add $0x10,%esp for (tail = 0; tail < log.lh.n; tail++) { 80103749: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010374d: a1 a8 22 11 80 mov 0x801122a8,%eax 80103752: 39 45 f4 cmp %eax,-0xc(%ebp) 80103755: 0f 8c 5d ff ff ff jl 801036b8 <write_log+0x12> } } 8010375b: 90 nop 8010375c: c9 leave 8010375d: c3 ret 8010375e <commit>: static void commit() { 8010375e: 55 push %ebp 8010375f: 89 e5 mov %esp,%ebp 80103761: 83 ec 08 sub $0x8,%esp if (log.lh.n > 0) { 80103764: a1 a8 22 11 80 mov 0x801122a8,%eax 80103769: 85 c0 test %eax,%eax 8010376b: 7e 1e jle 8010378b <commit+0x2d> write_log(); // Write modified blocks from cache to log 8010376d: e8 34 ff ff ff call 801036a6 <write_log> write_head(); // Write header to disk -- the real commit 80103772: e8 3a fd ff ff call 801034b1 <write_head> install_trans(); // Now install writes to home locations 80103777: e8 09 fc ff ff call 80103385 <install_trans> log.lh.n = 0; 8010377c: c7 05 a8 22 11 80 00 movl $0x0,0x801122a8 80103783: 00 00 00 write_head(); // Erase the transaction from the log 80103786: e8 26 fd ff ff call 801034b1 <write_head> } } 8010378b: 90 nop 8010378c: c9 leave 8010378d: c3 ret 8010378e <log_write>: // modify bp->data[] // log_write(bp) // brelse(bp) void log_write(struct buf *b) { 8010378e: 55 push %ebp 8010378f: 89 e5 mov %esp,%ebp 80103791: 83 ec 18 sub $0x18,%esp int i; if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1) 80103794: a1 a8 22 11 80 mov 0x801122a8,%eax 80103799: 83 f8 1d cmp $0x1d,%eax 8010379c: 7f 12 jg 801037b0 <log_write+0x22> 8010379e: a1 a8 22 11 80 mov 0x801122a8,%eax 801037a3: 8b 15 98 22 11 80 mov 0x80112298,%edx 801037a9: 83 ea 01 sub $0x1,%edx 801037ac: 39 d0 cmp %edx,%eax 801037ae: 7c 0d jl 801037bd <log_write+0x2f> panic("too big a transaction"); 801037b0: 83 ec 0c sub $0xc,%esp 801037b3: 68 ff 87 10 80 push $0x801087ff 801037b8: e8 aa cd ff ff call 80100567 <panic> if (log.outstanding < 1) 801037bd: a1 9c 22 11 80 mov 0x8011229c,%eax 801037c2: 85 c0 test %eax,%eax 801037c4: 7f 0d jg 801037d3 <log_write+0x45> panic("log_write outside of trans"); 801037c6: 83 ec 0c sub $0xc,%esp 801037c9: 68 15 88 10 80 push $0x80108815 801037ce: e8 94 cd ff ff call 80100567 <panic> acquire(&log.lock); 801037d3: 83 ec 0c sub $0xc,%esp 801037d6: 68 60 22 11 80 push $0x80112260 801037db: e8 64 18 00 00 call 80105044 <acquire> 801037e0: 83 c4 10 add $0x10,%esp for (i = 0; i < log.lh.n; i++) { 801037e3: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801037ea: eb 1d jmp 80103809 <log_write+0x7b> if (log.lh.block[i] == b->blockno) // log absorbtion 801037ec: 8b 45 f4 mov -0xc(%ebp),%eax 801037ef: 83 c0 10 add $0x10,%eax 801037f2: 8b 04 85 6c 22 11 80 mov -0x7feedd94(,%eax,4),%eax 801037f9: 89 c2 mov %eax,%edx 801037fb: 8b 45 08 mov 0x8(%ebp),%eax 801037fe: 8b 40 08 mov 0x8(%eax),%eax 80103801: 39 c2 cmp %eax,%edx 80103803: 74 10 je 80103815 <log_write+0x87> for (i = 0; i < log.lh.n; i++) { 80103805: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80103809: a1 a8 22 11 80 mov 0x801122a8,%eax 8010380e: 39 45 f4 cmp %eax,-0xc(%ebp) 80103811: 7c d9 jl 801037ec <log_write+0x5e> 80103813: eb 01 jmp 80103816 <log_write+0x88> break; 80103815: 90 nop } log.lh.block[i] = b->blockno; 80103816: 8b 45 08 mov 0x8(%ebp),%eax 80103819: 8b 40 08 mov 0x8(%eax),%eax 8010381c: 89 c2 mov %eax,%edx 8010381e: 8b 45 f4 mov -0xc(%ebp),%eax 80103821: 83 c0 10 add $0x10,%eax 80103824: 89 14 85 6c 22 11 80 mov %edx,-0x7feedd94(,%eax,4) if (i == log.lh.n) 8010382b: a1 a8 22 11 80 mov 0x801122a8,%eax 80103830: 39 45 f4 cmp %eax,-0xc(%ebp) 80103833: 75 0d jne 80103842 <log_write+0xb4> log.lh.n++; 80103835: a1 a8 22 11 80 mov 0x801122a8,%eax 8010383a: 83 c0 01 add $0x1,%eax 8010383d: a3 a8 22 11 80 mov %eax,0x801122a8 b->flags |= B_DIRTY; // prevent eviction 80103842: 8b 45 08 mov 0x8(%ebp),%eax 80103845: 8b 00 mov (%eax),%eax 80103847: 83 c8 04 or $0x4,%eax 8010384a: 89 c2 mov %eax,%edx 8010384c: 8b 45 08 mov 0x8(%ebp),%eax 8010384f: 89 10 mov %edx,(%eax) release(&log.lock); 80103851: 83 ec 0c sub $0xc,%esp 80103854: 68 60 22 11 80 push $0x80112260 80103859: e8 4d 18 00 00 call 801050ab <release> 8010385e: 83 c4 10 add $0x10,%esp } 80103861: 90 nop 80103862: c9 leave 80103863: c3 ret 80103864 <v2p>: 80103864: 55 push %ebp 80103865: 89 e5 mov %esp,%ebp 80103867: 8b 45 08 mov 0x8(%ebp),%eax 8010386a: 05 00 00 00 80 add $0x80000000,%eax 8010386f: 5d pop %ebp 80103870: c3 ret 80103871 <p2v>: static inline void *p2v(uint a) { return (void *) ((a) + KERNBASE); } 80103871: 55 push %ebp 80103872: 89 e5 mov %esp,%ebp 80103874: 8b 45 08 mov 0x8(%ebp),%eax 80103877: 05 00 00 00 80 add $0x80000000,%eax 8010387c: 5d pop %ebp 8010387d: c3 ret 8010387e <xchg>: asm volatile("sti"); } static inline uint xchg(volatile uint *addr, uint newval) { 8010387e: 55 push %ebp 8010387f: 89 e5 mov %esp,%ebp 80103881: 83 ec 10 sub $0x10,%esp uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 80103884: 8b 55 08 mov 0x8(%ebp),%edx 80103887: 8b 45 0c mov 0xc(%ebp),%eax 8010388a: 8b 4d 08 mov 0x8(%ebp),%ecx 8010388d: f0 87 02 lock xchg %eax,(%edx) 80103890: 89 45 fc mov %eax,-0x4(%ebp) "+m" (*addr), "=a" (result) : "1" (newval) : "cc"); return result; 80103893: 8b 45 fc mov -0x4(%ebp),%eax } 80103896: c9 leave 80103897: c3 ret 80103898 <main>: // Bootstrap processor starts running C code here. // Allocate a real stack and switch to it, first // doing some setup required for memory allocator to work. int main(void) { 80103898: 8d 4c 24 04 lea 0x4(%esp),%ecx 8010389c: 83 e4 f0 and $0xfffffff0,%esp 8010389f: ff 71 fc pushl -0x4(%ecx) 801038a2: 55 push %ebp 801038a3: 89 e5 mov %esp,%ebp 801038a5: 51 push %ecx 801038a6: 83 ec 04 sub $0x4,%esp kinit1(end, P2V(4*1024*1024)); // phys page allocator 801038a9: 83 ec 08 sub $0x8,%esp 801038ac: 68 00 00 40 80 push $0x80400000 801038b1: 68 3c 51 11 80 push $0x8011513c 801038b6: e8 78 f2 ff ff call 80102b33 <kinit1> 801038bb: 83 c4 10 add $0x10,%esp kvmalloc(); // kernel page table 801038be: e8 3a 45 00 00 call 80107dfd <kvmalloc> mpinit(); // collect info about this machine 801038c3: e8 4d 04 00 00 call 80103d15 <mpinit> lapicinit(); 801038c8: e8 e7 f5 ff ff call 80102eb4 <lapicinit> seginit(); // set up segments 801038cd: e8 d4 3e 00 00 call 801077a6 <seginit> cprintf("\ncpu%d: starting xv6\n\n", cpu->id); 801038d2: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801038d8: 0f b6 00 movzbl (%eax),%eax 801038db: 0f b6 c0 movzbl %al,%eax 801038de: 83 ec 08 sub $0x8,%esp 801038e1: 50 push %eax 801038e2: 68 30 88 10 80 push $0x80108830 801038e7: e8 d8 ca ff ff call 801003c4 <cprintf> 801038ec: 83 c4 10 add $0x10,%esp picinit(); // interrupt controller 801038ef: e8 79 06 00 00 call 80103f6d <picinit> ioapicinit(); // another interrupt controller 801038f4: e8 2f f1 ff ff call 80102a28 <ioapicinit> consoleinit(); // I/O devices & their interrupts 801038f9: e8 26 d2 ff ff call 80100b24 <consoleinit> uartinit(); // serial port 801038fe: e8 ff 31 00 00 call 80106b02 <uartinit> pinit(); // process table 80103903: e8 6c 0b 00 00 call 80104474 <pinit> tvinit(); // trap vectors 80103908: e8 bd 2d 00 00 call 801066ca <tvinit> binit(); // buffer cache 8010390d: e8 22 c7 ff ff call 80100034 <binit> fileinit(); // file table 80103912: e8 69 d6 ff ff call 80100f80 <fileinit> ideinit(); // disk 80103917: e8 14 ed ff ff call 80102630 <ideinit> if(!ismp) 8010391c: a1 44 23 11 80 mov 0x80112344,%eax 80103921: 85 c0 test %eax,%eax 80103923: 75 05 jne 8010392a <main+0x92> timerinit(); // uniprocessor timer 80103925: e8 fd 2c 00 00 call 80106627 <timerinit> startothers(); // start other processors 8010392a: e8 8f 00 00 00 call 801039be <startothers> kinit2(P2V(4*1024*1024), P2V(PHYSTOP)); // must come after startothers() 8010392f: 83 ec 08 sub $0x8,%esp 80103932: 68 00 00 00 8e push $0x8e000000 80103937: 68 00 00 40 80 push $0x80400000 8010393c: e8 2b f2 ff ff call 80102b6c <kinit2> 80103941: 83 c4 10 add $0x10,%esp userinit(); // first user process 80103944: e8 4f 0c 00 00 call 80104598 <userinit> // Finish setting up this processor in mpmain. cprintf("CS350 proj0 printing in kernel space\n"); 80103949: 83 ec 0c sub $0xc,%esp 8010394c: 68 48 88 10 80 push $0x80108848 80103951: e8 6e ca ff ff call 801003c4 <cprintf> 80103956: 83 c4 10 add $0x10,%esp mpmain(); 80103959: e8 1a 00 00 00 call 80103978 <mpmain> 8010395e <mpenter>: } // Other CPUs jump here from entryother.S. static void mpenter(void) { 8010395e: 55 push %ebp 8010395f: 89 e5 mov %esp,%ebp 80103961: 83 ec 08 sub $0x8,%esp switchkvm(); 80103964: e8 ac 44 00 00 call 80107e15 <switchkvm> seginit(); 80103969: e8 38 3e 00 00 call 801077a6 <seginit> lapicinit(); 8010396e: e8 41 f5 ff ff call 80102eb4 <lapicinit> mpmain(); 80103973: e8 00 00 00 00 call 80103978 <mpmain> 80103978 <mpmain>: } // Common CPU setup code. static void mpmain(void) { 80103978: 55 push %ebp 80103979: 89 e5 mov %esp,%ebp 8010397b: 83 ec 08 sub $0x8,%esp cprintf("cpu%d: starting\n", cpu->id); 8010397e: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80103984: 0f b6 00 movzbl (%eax),%eax 80103987: 0f b6 c0 movzbl %al,%eax 8010398a: 83 ec 08 sub $0x8,%esp 8010398d: 50 push %eax 8010398e: 68 6e 88 10 80 push $0x8010886e 80103993: e8 2c ca ff ff call 801003c4 <cprintf> 80103998: 83 c4 10 add $0x10,%esp idtinit(); // load idt register 8010399b: e8 a0 2e 00 00 call 80106840 <idtinit> xchg(&cpu->started, 1); // tell startothers() we're up 801039a0: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801039a6: 05 a8 00 00 00 add $0xa8,%eax 801039ab: 83 ec 08 sub $0x8,%esp 801039ae: 6a 01 push $0x1 801039b0: 50 push %eax 801039b1: e8 c8 fe ff ff call 8010387e <xchg> 801039b6: 83 c4 10 add $0x10,%esp scheduler(); // start running processes 801039b9: e8 87 11 00 00 call 80104b45 <scheduler> 801039be <startothers>: pde_t entrypgdir[]; // For entry.S // Start the non-boot (AP) processors. static void startothers(void) { 801039be: 55 push %ebp 801039bf: 89 e5 mov %esp,%ebp 801039c1: 83 ec 18 sub $0x18,%esp char *stack; // Write entry code to unused memory at 0x7000. // The linker has placed the image of entryother.S in // _binary_entryother_start. code = p2v(0x7000); 801039c4: 68 00 70 00 00 push $0x7000 801039c9: e8 a3 fe ff ff call 80103871 <p2v> 801039ce: 83 c4 04 add $0x4,%esp 801039d1: 89 45 f0 mov %eax,-0x10(%ebp) memmove(code, _binary_entryother_start, (uint)_binary_entryother_size); 801039d4: b8 8a 00 00 00 mov $0x8a,%eax 801039d9: 83 ec 04 sub $0x4,%esp 801039dc: 50 push %eax 801039dd: 68 0c b5 10 80 push $0x8010b50c 801039e2: ff 75 f0 pushl -0x10(%ebp) 801039e5: e8 7c 19 00 00 call 80105366 <memmove> 801039ea: 83 c4 10 add $0x10,%esp for(c = cpus; c < cpus+ncpu; c++){ 801039ed: c7 45 f4 60 23 11 80 movl $0x80112360,-0xc(%ebp) 801039f4: e9 92 00 00 00 jmp 80103a8b <startothers+0xcd> if(c == cpus+cpunum()) // We've started already. 801039f9: e8 d5 f5 ff ff call 80102fd3 <cpunum> 801039fe: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80103a04: 05 60 23 11 80 add $0x80112360,%eax 80103a09: 39 45 f4 cmp %eax,-0xc(%ebp) 80103a0c: 74 75 je 80103a83 <startothers+0xc5> continue; // Tell entryother.S what stack to use, where to enter, and what // pgdir to use. We cannot use kpgdir yet, because the AP processor // is running in low memory, so we use entrypgdir for the APs too. stack = kalloc(); 80103a0e: e8 57 f2 ff ff call 80102c6a <kalloc> 80103a13: 89 45 ec mov %eax,-0x14(%ebp) *(void**)(code-4) = stack + KSTACKSIZE; 80103a16: 8b 45 f0 mov -0x10(%ebp),%eax 80103a19: 83 e8 04 sub $0x4,%eax 80103a1c: 8b 55 ec mov -0x14(%ebp),%edx 80103a1f: 81 c2 00 10 00 00 add $0x1000,%edx 80103a25: 89 10 mov %edx,(%eax) *(void**)(code-8) = mpenter; 80103a27: 8b 45 f0 mov -0x10(%ebp),%eax 80103a2a: 83 e8 08 sub $0x8,%eax 80103a2d: c7 00 5e 39 10 80 movl $0x8010395e,(%eax) *(int**)(code-12) = (void *) v2p(entrypgdir); 80103a33: 83 ec 0c sub $0xc,%esp 80103a36: 68 00 a0 10 80 push $0x8010a000 80103a3b: e8 24 fe ff ff call 80103864 <v2p> 80103a40: 83 c4 10 add $0x10,%esp 80103a43: 89 c2 mov %eax,%edx 80103a45: 8b 45 f0 mov -0x10(%ebp),%eax 80103a48: 83 e8 0c sub $0xc,%eax 80103a4b: 89 10 mov %edx,(%eax) lapicstartap(c->id, v2p(code)); 80103a4d: 83 ec 0c sub $0xc,%esp 80103a50: ff 75 f0 pushl -0x10(%ebp) 80103a53: e8 0c fe ff ff call 80103864 <v2p> 80103a58: 83 c4 10 add $0x10,%esp 80103a5b: 89 c2 mov %eax,%edx 80103a5d: 8b 45 f4 mov -0xc(%ebp),%eax 80103a60: 0f b6 00 movzbl (%eax),%eax 80103a63: 0f b6 c0 movzbl %al,%eax 80103a66: 83 ec 08 sub $0x8,%esp 80103a69: 52 push %edx 80103a6a: 50 push %eax 80103a6b: e8 dd f5 ff ff call 8010304d <lapicstartap> 80103a70: 83 c4 10 add $0x10,%esp // wait for cpu to finish mpmain() while(c->started == 0) 80103a73: 90 nop 80103a74: 8b 45 f4 mov -0xc(%ebp),%eax 80103a77: 8b 80 a8 00 00 00 mov 0xa8(%eax),%eax 80103a7d: 85 c0 test %eax,%eax 80103a7f: 74 f3 je 80103a74 <startothers+0xb6> 80103a81: eb 01 jmp 80103a84 <startothers+0xc6> continue; 80103a83: 90 nop for(c = cpus; c < cpus+ncpu; c++){ 80103a84: 81 45 f4 bc 00 00 00 addl $0xbc,-0xc(%ebp) 80103a8b: a1 40 29 11 80 mov 0x80112940,%eax 80103a90: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80103a96: 05 60 23 11 80 add $0x80112360,%eax 80103a9b: 39 45 f4 cmp %eax,-0xc(%ebp) 80103a9e: 0f 82 55 ff ff ff jb 801039f9 <startothers+0x3b> ; } } 80103aa4: 90 nop 80103aa5: c9 leave 80103aa6: c3 ret 80103aa7 <p2v>: 80103aa7: 55 push %ebp 80103aa8: 89 e5 mov %esp,%ebp 80103aaa: 8b 45 08 mov 0x8(%ebp),%eax 80103aad: 05 00 00 00 80 add $0x80000000,%eax 80103ab2: 5d pop %ebp 80103ab3: c3 ret 80103ab4 <inb>: { 80103ab4: 55 push %ebp 80103ab5: 89 e5 mov %esp,%ebp 80103ab7: 83 ec 14 sub $0x14,%esp 80103aba: 8b 45 08 mov 0x8(%ebp),%eax 80103abd: 66 89 45 ec mov %ax,-0x14(%ebp) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80103ac1: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80103ac5: 89 c2 mov %eax,%edx 80103ac7: ec in (%dx),%al 80103ac8: 88 45 ff mov %al,-0x1(%ebp) return data; 80103acb: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80103acf: c9 leave 80103ad0: c3 ret 80103ad1 <outb>: { 80103ad1: 55 push %ebp 80103ad2: 89 e5 mov %esp,%ebp 80103ad4: 83 ec 08 sub $0x8,%esp 80103ad7: 8b 45 08 mov 0x8(%ebp),%eax 80103ada: 8b 55 0c mov 0xc(%ebp),%edx 80103add: 66 89 45 fc mov %ax,-0x4(%ebp) 80103ae1: 89 d0 mov %edx,%eax 80103ae3: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80103ae6: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80103aea: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80103aee: ee out %al,(%dx) } 80103aef: 90 nop 80103af0: c9 leave 80103af1: c3 ret 80103af2 <mpbcpu>: int ncpu; uchar ioapicid; int mpbcpu(void) { 80103af2: 55 push %ebp 80103af3: 89 e5 mov %esp,%ebp return bcpu-cpus; 80103af5: a1 44 b6 10 80 mov 0x8010b644,%eax 80103afa: 2d 60 23 11 80 sub $0x80112360,%eax 80103aff: c1 f8 02 sar $0x2,%eax 80103b02: 69 c0 cf 46 7d 67 imul $0x677d46cf,%eax,%eax } 80103b08: 5d pop %ebp 80103b09: c3 ret 80103b0a <sum>: static uchar sum(uchar *addr, int len) { 80103b0a: 55 push %ebp 80103b0b: 89 e5 mov %esp,%ebp 80103b0d: 83 ec 10 sub $0x10,%esp int i, sum; sum = 0; 80103b10: c7 45 f8 00 00 00 00 movl $0x0,-0x8(%ebp) for(i=0; i<len; i++) 80103b17: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 80103b1e: eb 15 jmp 80103b35 <sum+0x2b> sum += addr[i]; 80103b20: 8b 55 fc mov -0x4(%ebp),%edx 80103b23: 8b 45 08 mov 0x8(%ebp),%eax 80103b26: 01 d0 add %edx,%eax 80103b28: 0f b6 00 movzbl (%eax),%eax 80103b2b: 0f b6 c0 movzbl %al,%eax 80103b2e: 01 45 f8 add %eax,-0x8(%ebp) for(i=0; i<len; i++) 80103b31: 83 45 fc 01 addl $0x1,-0x4(%ebp) 80103b35: 8b 45 fc mov -0x4(%ebp),%eax 80103b38: 3b 45 0c cmp 0xc(%ebp),%eax 80103b3b: 7c e3 jl 80103b20 <sum+0x16> return sum; 80103b3d: 8b 45 f8 mov -0x8(%ebp),%eax } 80103b40: c9 leave 80103b41: c3 ret 80103b42 <mpsearch1>: // Look for an MP structure in the len bytes at addr. static struct mp* mpsearch1(uint a, int len) { 80103b42: 55 push %ebp 80103b43: 89 e5 mov %esp,%ebp 80103b45: 83 ec 18 sub $0x18,%esp uchar *e, *p, *addr; addr = p2v(a); 80103b48: ff 75 08 pushl 0x8(%ebp) 80103b4b: e8 57 ff ff ff call 80103aa7 <p2v> 80103b50: 83 c4 04 add $0x4,%esp 80103b53: 89 45 f0 mov %eax,-0x10(%ebp) e = addr+len; 80103b56: 8b 55 0c mov 0xc(%ebp),%edx 80103b59: 8b 45 f0 mov -0x10(%ebp),%eax 80103b5c: 01 d0 add %edx,%eax 80103b5e: 89 45 ec mov %eax,-0x14(%ebp) for(p = addr; p < e; p += sizeof(struct mp)) 80103b61: 8b 45 f0 mov -0x10(%ebp),%eax 80103b64: 89 45 f4 mov %eax,-0xc(%ebp) 80103b67: eb 36 jmp 80103b9f <mpsearch1+0x5d> if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0) 80103b69: 83 ec 04 sub $0x4,%esp 80103b6c: 6a 04 push $0x4 80103b6e: 68 80 88 10 80 push $0x80108880 80103b73: ff 75 f4 pushl -0xc(%ebp) 80103b76: e8 93 17 00 00 call 8010530e <memcmp> 80103b7b: 83 c4 10 add $0x10,%esp 80103b7e: 85 c0 test %eax,%eax 80103b80: 75 19 jne 80103b9b <mpsearch1+0x59> 80103b82: 83 ec 08 sub $0x8,%esp 80103b85: 6a 10 push $0x10 80103b87: ff 75 f4 pushl -0xc(%ebp) 80103b8a: e8 7b ff ff ff call 80103b0a <sum> 80103b8f: 83 c4 10 add $0x10,%esp 80103b92: 84 c0 test %al,%al 80103b94: 75 05 jne 80103b9b <mpsearch1+0x59> return (struct mp*)p; 80103b96: 8b 45 f4 mov -0xc(%ebp),%eax 80103b99: eb 11 jmp 80103bac <mpsearch1+0x6a> for(p = addr; p < e; p += sizeof(struct mp)) 80103b9b: 83 45 f4 10 addl $0x10,-0xc(%ebp) 80103b9f: 8b 45 f4 mov -0xc(%ebp),%eax 80103ba2: 3b 45 ec cmp -0x14(%ebp),%eax 80103ba5: 72 c2 jb 80103b69 <mpsearch1+0x27> return 0; 80103ba7: b8 00 00 00 00 mov $0x0,%eax } 80103bac: c9 leave 80103bad: c3 ret 80103bae <mpsearch>: // 1) in the first KB of the EBDA; // 2) in the last KB of system base memory; // 3) in the BIOS ROM between 0xE0000 and 0xFFFFF. static struct mp* mpsearch(void) { 80103bae: 55 push %ebp 80103baf: 89 e5 mov %esp,%ebp 80103bb1: 83 ec 18 sub $0x18,%esp uchar *bda; uint p; struct mp *mp; bda = (uchar *) P2V(0x400); 80103bb4: c7 45 f4 00 04 00 80 movl $0x80000400,-0xc(%ebp) if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4)){ 80103bbb: 8b 45 f4 mov -0xc(%ebp),%eax 80103bbe: 83 c0 0f add $0xf,%eax 80103bc1: 0f b6 00 movzbl (%eax),%eax 80103bc4: 0f b6 c0 movzbl %al,%eax 80103bc7: c1 e0 08 shl $0x8,%eax 80103bca: 89 c2 mov %eax,%edx 80103bcc: 8b 45 f4 mov -0xc(%ebp),%eax 80103bcf: 83 c0 0e add $0xe,%eax 80103bd2: 0f b6 00 movzbl (%eax),%eax 80103bd5: 0f b6 c0 movzbl %al,%eax 80103bd8: 09 d0 or %edx,%eax 80103bda: c1 e0 04 shl $0x4,%eax 80103bdd: 89 45 f0 mov %eax,-0x10(%ebp) 80103be0: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80103be4: 74 21 je 80103c07 <mpsearch+0x59> if((mp = mpsearch1(p, 1024))) 80103be6: 83 ec 08 sub $0x8,%esp 80103be9: 68 00 04 00 00 push $0x400 80103bee: ff 75 f0 pushl -0x10(%ebp) 80103bf1: e8 4c ff ff ff call 80103b42 <mpsearch1> 80103bf6: 83 c4 10 add $0x10,%esp 80103bf9: 89 45 ec mov %eax,-0x14(%ebp) 80103bfc: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80103c00: 74 51 je 80103c53 <mpsearch+0xa5> return mp; 80103c02: 8b 45 ec mov -0x14(%ebp),%eax 80103c05: eb 61 jmp 80103c68 <mpsearch+0xba> } else { p = ((bda[0x14]<<8)|bda[0x13])*1024; 80103c07: 8b 45 f4 mov -0xc(%ebp),%eax 80103c0a: 83 c0 14 add $0x14,%eax 80103c0d: 0f b6 00 movzbl (%eax),%eax 80103c10: 0f b6 c0 movzbl %al,%eax 80103c13: c1 e0 08 shl $0x8,%eax 80103c16: 89 c2 mov %eax,%edx 80103c18: 8b 45 f4 mov -0xc(%ebp),%eax 80103c1b: 83 c0 13 add $0x13,%eax 80103c1e: 0f b6 00 movzbl (%eax),%eax 80103c21: 0f b6 c0 movzbl %al,%eax 80103c24: 09 d0 or %edx,%eax 80103c26: c1 e0 0a shl $0xa,%eax 80103c29: 89 45 f0 mov %eax,-0x10(%ebp) if((mp = mpsearch1(p-1024, 1024))) 80103c2c: 8b 45 f0 mov -0x10(%ebp),%eax 80103c2f: 2d 00 04 00 00 sub $0x400,%eax 80103c34: 83 ec 08 sub $0x8,%esp 80103c37: 68 00 04 00 00 push $0x400 80103c3c: 50 push %eax 80103c3d: e8 00 ff ff ff call 80103b42 <mpsearch1> 80103c42: 83 c4 10 add $0x10,%esp 80103c45: 89 45 ec mov %eax,-0x14(%ebp) 80103c48: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80103c4c: 74 05 je 80103c53 <mpsearch+0xa5> return mp; 80103c4e: 8b 45 ec mov -0x14(%ebp),%eax 80103c51: eb 15 jmp 80103c68 <mpsearch+0xba> } return mpsearch1(0xF0000, 0x10000); 80103c53: 83 ec 08 sub $0x8,%esp 80103c56: 68 00 00 01 00 push $0x10000 80103c5b: 68 00 00 0f 00 push $0xf0000 80103c60: e8 dd fe ff ff call 80103b42 <mpsearch1> 80103c65: 83 c4 10 add $0x10,%esp } 80103c68: c9 leave 80103c69: c3 ret 80103c6a <mpconfig>: // Check for correct signature, calculate the checksum and, // if correct, check the version. // To do: check extended table checksum. static struct mpconf* mpconfig(struct mp **pmp) { 80103c6a: 55 push %ebp 80103c6b: 89 e5 mov %esp,%ebp 80103c6d: 83 ec 18 sub $0x18,%esp struct mpconf *conf; struct mp *mp; if((mp = mpsearch()) == 0 || mp->physaddr == 0) 80103c70: e8 39 ff ff ff call 80103bae <mpsearch> 80103c75: 89 45 f4 mov %eax,-0xc(%ebp) 80103c78: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80103c7c: 74 0a je 80103c88 <mpconfig+0x1e> 80103c7e: 8b 45 f4 mov -0xc(%ebp),%eax 80103c81: 8b 40 04 mov 0x4(%eax),%eax 80103c84: 85 c0 test %eax,%eax 80103c86: 75 0a jne 80103c92 <mpconfig+0x28> return 0; 80103c88: b8 00 00 00 00 mov $0x0,%eax 80103c8d: e9 81 00 00 00 jmp 80103d13 <mpconfig+0xa9> conf = (struct mpconf*) p2v((uint) mp->physaddr); 80103c92: 8b 45 f4 mov -0xc(%ebp),%eax 80103c95: 8b 40 04 mov 0x4(%eax),%eax 80103c98: 83 ec 0c sub $0xc,%esp 80103c9b: 50 push %eax 80103c9c: e8 06 fe ff ff call 80103aa7 <p2v> 80103ca1: 83 c4 10 add $0x10,%esp 80103ca4: 89 45 f0 mov %eax,-0x10(%ebp) if(memcmp(conf, "PCMP", 4) != 0) 80103ca7: 83 ec 04 sub $0x4,%esp 80103caa: 6a 04 push $0x4 80103cac: 68 85 88 10 80 push $0x80108885 80103cb1: ff 75 f0 pushl -0x10(%ebp) 80103cb4: e8 55 16 00 00 call 8010530e <memcmp> 80103cb9: 83 c4 10 add $0x10,%esp 80103cbc: 85 c0 test %eax,%eax 80103cbe: 74 07 je 80103cc7 <mpconfig+0x5d> return 0; 80103cc0: b8 00 00 00 00 mov $0x0,%eax 80103cc5: eb 4c jmp 80103d13 <mpconfig+0xa9> if(conf->version != 1 && conf->version != 4) 80103cc7: 8b 45 f0 mov -0x10(%ebp),%eax 80103cca: 0f b6 40 06 movzbl 0x6(%eax),%eax 80103cce: 3c 01 cmp $0x1,%al 80103cd0: 74 12 je 80103ce4 <mpconfig+0x7a> 80103cd2: 8b 45 f0 mov -0x10(%ebp),%eax 80103cd5: 0f b6 40 06 movzbl 0x6(%eax),%eax 80103cd9: 3c 04 cmp $0x4,%al 80103cdb: 74 07 je 80103ce4 <mpconfig+0x7a> return 0; 80103cdd: b8 00 00 00 00 mov $0x0,%eax 80103ce2: eb 2f jmp 80103d13 <mpconfig+0xa9> if(sum((uchar*)conf, conf->length) != 0) 80103ce4: 8b 45 f0 mov -0x10(%ebp),%eax 80103ce7: 0f b7 40 04 movzwl 0x4(%eax),%eax 80103ceb: 0f b7 c0 movzwl %ax,%eax 80103cee: 83 ec 08 sub $0x8,%esp 80103cf1: 50 push %eax 80103cf2: ff 75 f0 pushl -0x10(%ebp) 80103cf5: e8 10 fe ff ff call 80103b0a <sum> 80103cfa: 83 c4 10 add $0x10,%esp 80103cfd: 84 c0 test %al,%al 80103cff: 74 07 je 80103d08 <mpconfig+0x9e> return 0; 80103d01: b8 00 00 00 00 mov $0x0,%eax 80103d06: eb 0b jmp 80103d13 <mpconfig+0xa9> *pmp = mp; 80103d08: 8b 45 08 mov 0x8(%ebp),%eax 80103d0b: 8b 55 f4 mov -0xc(%ebp),%edx 80103d0e: 89 10 mov %edx,(%eax) return conf; 80103d10: 8b 45 f0 mov -0x10(%ebp),%eax } 80103d13: c9 leave 80103d14: c3 ret 80103d15 <mpinit>: void mpinit(void) { 80103d15: 55 push %ebp 80103d16: 89 e5 mov %esp,%ebp 80103d18: 83 ec 28 sub $0x28,%esp struct mp *mp; struct mpconf *conf; struct mpproc *proc; struct mpioapic *ioapic; bcpu = &cpus[0]; 80103d1b: c7 05 44 b6 10 80 60 movl $0x80112360,0x8010b644 80103d22: 23 11 80 if((conf = mpconfig(&mp)) == 0) 80103d25: 83 ec 0c sub $0xc,%esp 80103d28: 8d 45 e0 lea -0x20(%ebp),%eax 80103d2b: 50 push %eax 80103d2c: e8 39 ff ff ff call 80103c6a <mpconfig> 80103d31: 83 c4 10 add $0x10,%esp 80103d34: 89 45 f0 mov %eax,-0x10(%ebp) 80103d37: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80103d3b: 0f 84 96 01 00 00 je 80103ed7 <mpinit+0x1c2> return; ismp = 1; 80103d41: c7 05 44 23 11 80 01 movl $0x1,0x80112344 80103d48: 00 00 00 lapic = (uint*)conf->lapicaddr; 80103d4b: 8b 45 f0 mov -0x10(%ebp),%eax 80103d4e: 8b 40 24 mov 0x24(%eax),%eax 80103d51: a3 5c 22 11 80 mov %eax,0x8011225c for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 80103d56: 8b 45 f0 mov -0x10(%ebp),%eax 80103d59: 83 c0 2c add $0x2c,%eax 80103d5c: 89 45 f4 mov %eax,-0xc(%ebp) 80103d5f: 8b 45 f0 mov -0x10(%ebp),%eax 80103d62: 0f b7 40 04 movzwl 0x4(%eax),%eax 80103d66: 0f b7 d0 movzwl %ax,%edx 80103d69: 8b 45 f0 mov -0x10(%ebp),%eax 80103d6c: 01 d0 add %edx,%eax 80103d6e: 89 45 ec mov %eax,-0x14(%ebp) 80103d71: e9 f2 00 00 00 jmp 80103e68 <mpinit+0x153> switch(*p){ 80103d76: 8b 45 f4 mov -0xc(%ebp),%eax 80103d79: 0f b6 00 movzbl (%eax),%eax 80103d7c: 0f b6 c0 movzbl %al,%eax 80103d7f: 83 f8 04 cmp $0x4,%eax 80103d82: 0f 87 bc 00 00 00 ja 80103e44 <mpinit+0x12f> 80103d88: 8b 04 85 c8 88 10 80 mov -0x7fef7738(,%eax,4),%eax 80103d8f: ff e0 jmp *%eax case MPPROC: proc = (struct mpproc*)p; 80103d91: 8b 45 f4 mov -0xc(%ebp),%eax 80103d94: 89 45 e8 mov %eax,-0x18(%ebp) if(ncpu != proc->apicid){ 80103d97: 8b 45 e8 mov -0x18(%ebp),%eax 80103d9a: 0f b6 40 01 movzbl 0x1(%eax),%eax 80103d9e: 0f b6 d0 movzbl %al,%edx 80103da1: a1 40 29 11 80 mov 0x80112940,%eax 80103da6: 39 c2 cmp %eax,%edx 80103da8: 74 2b je 80103dd5 <mpinit+0xc0> cprintf("mpinit: ncpu=%d apicid=%d\n", ncpu, proc->apicid); 80103daa: 8b 45 e8 mov -0x18(%ebp),%eax 80103dad: 0f b6 40 01 movzbl 0x1(%eax),%eax 80103db1: 0f b6 d0 movzbl %al,%edx 80103db4: a1 40 29 11 80 mov 0x80112940,%eax 80103db9: 83 ec 04 sub $0x4,%esp 80103dbc: 52 push %edx 80103dbd: 50 push %eax 80103dbe: 68 8a 88 10 80 push $0x8010888a 80103dc3: e8 fc c5 ff ff call 801003c4 <cprintf> 80103dc8: 83 c4 10 add $0x10,%esp ismp = 0; 80103dcb: c7 05 44 23 11 80 00 movl $0x0,0x80112344 80103dd2: 00 00 00 } if(proc->flags & MPBOOT) 80103dd5: 8b 45 e8 mov -0x18(%ebp),%eax 80103dd8: 0f b6 40 03 movzbl 0x3(%eax),%eax 80103ddc: 0f b6 c0 movzbl %al,%eax 80103ddf: 83 e0 02 and $0x2,%eax 80103de2: 85 c0 test %eax,%eax 80103de4: 74 15 je 80103dfb <mpinit+0xe6> bcpu = &cpus[ncpu]; 80103de6: a1 40 29 11 80 mov 0x80112940,%eax 80103deb: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80103df1: 05 60 23 11 80 add $0x80112360,%eax 80103df6: a3 44 b6 10 80 mov %eax,0x8010b644 cpus[ncpu].id = ncpu; 80103dfb: 8b 15 40 29 11 80 mov 0x80112940,%edx 80103e01: a1 40 29 11 80 mov 0x80112940,%eax 80103e06: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80103e0c: 05 60 23 11 80 add $0x80112360,%eax 80103e11: 88 10 mov %dl,(%eax) ncpu++; 80103e13: a1 40 29 11 80 mov 0x80112940,%eax 80103e18: 83 c0 01 add $0x1,%eax 80103e1b: a3 40 29 11 80 mov %eax,0x80112940 p += sizeof(struct mpproc); 80103e20: 83 45 f4 14 addl $0x14,-0xc(%ebp) continue; 80103e24: eb 42 jmp 80103e68 <mpinit+0x153> case MPIOAPIC: ioapic = (struct mpioapic*)p; 80103e26: 8b 45 f4 mov -0xc(%ebp),%eax 80103e29: 89 45 e4 mov %eax,-0x1c(%ebp) ioapicid = ioapic->apicno; 80103e2c: 8b 45 e4 mov -0x1c(%ebp),%eax 80103e2f: 0f b6 40 01 movzbl 0x1(%eax),%eax 80103e33: a2 40 23 11 80 mov %al,0x80112340 p += sizeof(struct mpioapic); 80103e38: 83 45 f4 08 addl $0x8,-0xc(%ebp) continue; 80103e3c: eb 2a jmp 80103e68 <mpinit+0x153> case MPBUS: case MPIOINTR: case MPLINTR: p += 8; 80103e3e: 83 45 f4 08 addl $0x8,-0xc(%ebp) continue; 80103e42: eb 24 jmp 80103e68 <mpinit+0x153> default: cprintf("mpinit: unknown config type %x\n", *p); 80103e44: 8b 45 f4 mov -0xc(%ebp),%eax 80103e47: 0f b6 00 movzbl (%eax),%eax 80103e4a: 0f b6 c0 movzbl %al,%eax 80103e4d: 83 ec 08 sub $0x8,%esp 80103e50: 50 push %eax 80103e51: 68 a8 88 10 80 push $0x801088a8 80103e56: e8 69 c5 ff ff call 801003c4 <cprintf> 80103e5b: 83 c4 10 add $0x10,%esp ismp = 0; 80103e5e: c7 05 44 23 11 80 00 movl $0x0,0x80112344 80103e65: 00 00 00 for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 80103e68: 8b 45 f4 mov -0xc(%ebp),%eax 80103e6b: 3b 45 ec cmp -0x14(%ebp),%eax 80103e6e: 0f 82 02 ff ff ff jb 80103d76 <mpinit+0x61> } } if(!ismp){ 80103e74: a1 44 23 11 80 mov 0x80112344,%eax 80103e79: 85 c0 test %eax,%eax 80103e7b: 75 1d jne 80103e9a <mpinit+0x185> // Didn't like what we found; fall back to no MP. ncpu = 1; 80103e7d: c7 05 40 29 11 80 01 movl $0x1,0x80112940 80103e84: 00 00 00 lapic = 0; 80103e87: c7 05 5c 22 11 80 00 movl $0x0,0x8011225c 80103e8e: 00 00 00 ioapicid = 0; 80103e91: c6 05 40 23 11 80 00 movb $0x0,0x80112340 return; 80103e98: eb 3e jmp 80103ed8 <mpinit+0x1c3> } if(mp->imcrp){ 80103e9a: 8b 45 e0 mov -0x20(%ebp),%eax 80103e9d: 0f b6 40 0c movzbl 0xc(%eax),%eax 80103ea1: 84 c0 test %al,%al 80103ea3: 74 33 je 80103ed8 <mpinit+0x1c3> // Bochs doesn't support IMCR, so this doesn't run on Bochs. // But it would on real hardware. outb(0x22, 0x70); // Select IMCR 80103ea5: 83 ec 08 sub $0x8,%esp 80103ea8: 6a 70 push $0x70 80103eaa: 6a 22 push $0x22 80103eac: e8 20 fc ff ff call 80103ad1 <outb> 80103eb1: 83 c4 10 add $0x10,%esp outb(0x23, inb(0x23) | 1); // Mask external interrupts. 80103eb4: 83 ec 0c sub $0xc,%esp 80103eb7: 6a 23 push $0x23 80103eb9: e8 f6 fb ff ff call 80103ab4 <inb> 80103ebe: 83 c4 10 add $0x10,%esp 80103ec1: 83 c8 01 or $0x1,%eax 80103ec4: 0f b6 c0 movzbl %al,%eax 80103ec7: 83 ec 08 sub $0x8,%esp 80103eca: 50 push %eax 80103ecb: 6a 23 push $0x23 80103ecd: e8 ff fb ff ff call 80103ad1 <outb> 80103ed2: 83 c4 10 add $0x10,%esp 80103ed5: eb 01 jmp 80103ed8 <mpinit+0x1c3> return; 80103ed7: 90 nop } } 80103ed8: c9 leave 80103ed9: c3 ret 80103eda <outb>: { 80103eda: 55 push %ebp 80103edb: 89 e5 mov %esp,%ebp 80103edd: 83 ec 08 sub $0x8,%esp 80103ee0: 8b 45 08 mov 0x8(%ebp),%eax 80103ee3: 8b 55 0c mov 0xc(%ebp),%edx 80103ee6: 66 89 45 fc mov %ax,-0x4(%ebp) 80103eea: 89 d0 mov %edx,%eax 80103eec: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80103eef: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80103ef3: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80103ef7: ee out %al,(%dx) } 80103ef8: 90 nop 80103ef9: c9 leave 80103efa: c3 ret 80103efb <picsetmask>: // Initial IRQ mask has interrupt 2 enabled (for slave 8259A). static ushort irqmask = 0xFFFF & ~(1<<IRQ_SLAVE); static void picsetmask(ushort mask) { 80103efb: 55 push %ebp 80103efc: 89 e5 mov %esp,%ebp 80103efe: 83 ec 04 sub $0x4,%esp 80103f01: 8b 45 08 mov 0x8(%ebp),%eax 80103f04: 66 89 45 fc mov %ax,-0x4(%ebp) irqmask = mask; 80103f08: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80103f0c: 66 a3 00 b0 10 80 mov %ax,0x8010b000 outb(IO_PIC1+1, mask); 80103f12: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80103f16: 0f b6 c0 movzbl %al,%eax 80103f19: 50 push %eax 80103f1a: 6a 21 push $0x21 80103f1c: e8 b9 ff ff ff call 80103eda <outb> 80103f21: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, mask >> 8); 80103f24: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80103f28: 66 c1 e8 08 shr $0x8,%ax 80103f2c: 0f b6 c0 movzbl %al,%eax 80103f2f: 50 push %eax 80103f30: 68 a1 00 00 00 push $0xa1 80103f35: e8 a0 ff ff ff call 80103eda <outb> 80103f3a: 83 c4 08 add $0x8,%esp } 80103f3d: 90 nop 80103f3e: c9 leave 80103f3f: c3 ret 80103f40 <picenable>: void picenable(int irq) { 80103f40: 55 push %ebp 80103f41: 89 e5 mov %esp,%ebp picsetmask(irqmask & ~(1<<irq)); 80103f43: 8b 45 08 mov 0x8(%ebp),%eax 80103f46: ba 01 00 00 00 mov $0x1,%edx 80103f4b: 89 c1 mov %eax,%ecx 80103f4d: d3 e2 shl %cl,%edx 80103f4f: 89 d0 mov %edx,%eax 80103f51: f7 d0 not %eax 80103f53: 89 c2 mov %eax,%edx 80103f55: 0f b7 05 00 b0 10 80 movzwl 0x8010b000,%eax 80103f5c: 21 d0 and %edx,%eax 80103f5e: 0f b7 c0 movzwl %ax,%eax 80103f61: 50 push %eax 80103f62: e8 94 ff ff ff call 80103efb <picsetmask> 80103f67: 83 c4 04 add $0x4,%esp } 80103f6a: 90 nop 80103f6b: c9 leave 80103f6c: c3 ret 80103f6d <picinit>: // Initialize the 8259A interrupt controllers. void picinit(void) { 80103f6d: 55 push %ebp 80103f6e: 89 e5 mov %esp,%ebp // mask all interrupts outb(IO_PIC1+1, 0xFF); 80103f70: 68 ff 00 00 00 push $0xff 80103f75: 6a 21 push $0x21 80103f77: e8 5e ff ff ff call 80103eda <outb> 80103f7c: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, 0xFF); 80103f7f: 68 ff 00 00 00 push $0xff 80103f84: 68 a1 00 00 00 push $0xa1 80103f89: e8 4c ff ff ff call 80103eda <outb> 80103f8e: 83 c4 08 add $0x8,%esp // ICW1: 0001g0hi // g: 0 = edge triggering, 1 = level triggering // h: 0 = cascaded PICs, 1 = master only // i: 0 = no ICW4, 1 = ICW4 required outb(IO_PIC1, 0x11); 80103f91: 6a 11 push $0x11 80103f93: 6a 20 push $0x20 80103f95: e8 40 ff ff ff call 80103eda <outb> 80103f9a: 83 c4 08 add $0x8,%esp // ICW2: Vector offset outb(IO_PIC1+1, T_IRQ0); 80103f9d: 6a 20 push $0x20 80103f9f: 6a 21 push $0x21 80103fa1: e8 34 ff ff ff call 80103eda <outb> 80103fa6: 83 c4 08 add $0x8,%esp // ICW3: (master PIC) bit mask of IR lines connected to slaves // (slave PIC) 3-bit # of slave's connection to master outb(IO_PIC1+1, 1<<IRQ_SLAVE); 80103fa9: 6a 04 push $0x4 80103fab: 6a 21 push $0x21 80103fad: e8 28 ff ff ff call 80103eda <outb> 80103fb2: 83 c4 08 add $0x8,%esp // m: 0 = slave PIC, 1 = master PIC // (ignored when b is 0, as the master/slave role // can be hardwired). // a: 1 = Automatic EOI mode // p: 0 = MCS-80/85 mode, 1 = intel x86 mode outb(IO_PIC1+1, 0x3); 80103fb5: 6a 03 push $0x3 80103fb7: 6a 21 push $0x21 80103fb9: e8 1c ff ff ff call 80103eda <outb> 80103fbe: 83 c4 08 add $0x8,%esp // Set up slave (8259A-2) outb(IO_PIC2, 0x11); // ICW1 80103fc1: 6a 11 push $0x11 80103fc3: 68 a0 00 00 00 push $0xa0 80103fc8: e8 0d ff ff ff call 80103eda <outb> 80103fcd: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, T_IRQ0 + 8); // ICW2 80103fd0: 6a 28 push $0x28 80103fd2: 68 a1 00 00 00 push $0xa1 80103fd7: e8 fe fe ff ff call 80103eda <outb> 80103fdc: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, IRQ_SLAVE); // ICW3 80103fdf: 6a 02 push $0x2 80103fe1: 68 a1 00 00 00 push $0xa1 80103fe6: e8 ef fe ff ff call 80103eda <outb> 80103feb: 83 c4 08 add $0x8,%esp // NB Automatic EOI mode doesn't tend to work on the slave. // Linux source code says it's "to be investigated". outb(IO_PIC2+1, 0x3); // ICW4 80103fee: 6a 03 push $0x3 80103ff0: 68 a1 00 00 00 push $0xa1 80103ff5: e8 e0 fe ff ff call 80103eda <outb> 80103ffa: 83 c4 08 add $0x8,%esp // OCW3: 0ef01prs // ef: 0x = NOP, 10 = clear specific mask, 11 = set specific mask // p: 0 = no polling, 1 = polling mode // rs: 0x = NOP, 10 = read IRR, 11 = read ISR outb(IO_PIC1, 0x68); // clear specific mask 80103ffd: 6a 68 push $0x68 80103fff: 6a 20 push $0x20 80104001: e8 d4 fe ff ff call 80103eda <outb> 80104006: 83 c4 08 add $0x8,%esp outb(IO_PIC1, 0x0a); // read IRR by default 80104009: 6a 0a push $0xa 8010400b: 6a 20 push $0x20 8010400d: e8 c8 fe ff ff call 80103eda <outb> 80104012: 83 c4 08 add $0x8,%esp outb(IO_PIC2, 0x68); // OCW3 80104015: 6a 68 push $0x68 80104017: 68 a0 00 00 00 push $0xa0 8010401c: e8 b9 fe ff ff call 80103eda <outb> 80104021: 83 c4 08 add $0x8,%esp outb(IO_PIC2, 0x0a); // OCW3 80104024: 6a 0a push $0xa 80104026: 68 a0 00 00 00 push $0xa0 8010402b: e8 aa fe ff ff call 80103eda <outb> 80104030: 83 c4 08 add $0x8,%esp if(irqmask != 0xFFFF) 80104033: 0f b7 05 00 b0 10 80 movzwl 0x8010b000,%eax 8010403a: 66 83 f8 ff cmp $0xffff,%ax 8010403e: 74 13 je 80104053 <picinit+0xe6> picsetmask(irqmask); 80104040: 0f b7 05 00 b0 10 80 movzwl 0x8010b000,%eax 80104047: 0f b7 c0 movzwl %ax,%eax 8010404a: 50 push %eax 8010404b: e8 ab fe ff ff call 80103efb <picsetmask> 80104050: 83 c4 04 add $0x4,%esp } 80104053: 90 nop 80104054: c9 leave 80104055: c3 ret 80104056 <pipealloc>: int writeopen; // write fd is still open }; int pipealloc(struct file **f0, struct file **f1) { 80104056: 55 push %ebp 80104057: 89 e5 mov %esp,%ebp 80104059: 83 ec 18 sub $0x18,%esp struct pipe *p; p = 0; 8010405c: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) *f0 = *f1 = 0; 80104063: 8b 45 0c mov 0xc(%ebp),%eax 80104066: c7 00 00 00 00 00 movl $0x0,(%eax) 8010406c: 8b 45 0c mov 0xc(%ebp),%eax 8010406f: 8b 10 mov (%eax),%edx 80104071: 8b 45 08 mov 0x8(%ebp),%eax 80104074: 89 10 mov %edx,(%eax) if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0) 80104076: e8 23 cf ff ff call 80100f9e <filealloc> 8010407b: 89 c2 mov %eax,%edx 8010407d: 8b 45 08 mov 0x8(%ebp),%eax 80104080: 89 10 mov %edx,(%eax) 80104082: 8b 45 08 mov 0x8(%ebp),%eax 80104085: 8b 00 mov (%eax),%eax 80104087: 85 c0 test %eax,%eax 80104089: 0f 84 ca 00 00 00 je 80104159 <pipealloc+0x103> 8010408f: e8 0a cf ff ff call 80100f9e <filealloc> 80104094: 89 c2 mov %eax,%edx 80104096: 8b 45 0c mov 0xc(%ebp),%eax 80104099: 89 10 mov %edx,(%eax) 8010409b: 8b 45 0c mov 0xc(%ebp),%eax 8010409e: 8b 00 mov (%eax),%eax 801040a0: 85 c0 test %eax,%eax 801040a2: 0f 84 b1 00 00 00 je 80104159 <pipealloc+0x103> goto bad; if((p = (struct pipe*)kalloc()) == 0) 801040a8: e8 bd eb ff ff call 80102c6a <kalloc> 801040ad: 89 45 f4 mov %eax,-0xc(%ebp) 801040b0: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801040b4: 0f 84 a2 00 00 00 je 8010415c <pipealloc+0x106> goto bad; p->readopen = 1; 801040ba: 8b 45 f4 mov -0xc(%ebp),%eax 801040bd: c7 80 3c 02 00 00 01 movl $0x1,0x23c(%eax) 801040c4: 00 00 00 p->writeopen = 1; 801040c7: 8b 45 f4 mov -0xc(%ebp),%eax 801040ca: c7 80 40 02 00 00 01 movl $0x1,0x240(%eax) 801040d1: 00 00 00 p->nwrite = 0; 801040d4: 8b 45 f4 mov -0xc(%ebp),%eax 801040d7: c7 80 38 02 00 00 00 movl $0x0,0x238(%eax) 801040de: 00 00 00 p->nread = 0; 801040e1: 8b 45 f4 mov -0xc(%ebp),%eax 801040e4: c7 80 34 02 00 00 00 movl $0x0,0x234(%eax) 801040eb: 00 00 00 initlock(&p->lock, "pipe"); 801040ee: 8b 45 f4 mov -0xc(%ebp),%eax 801040f1: 83 ec 08 sub $0x8,%esp 801040f4: 68 dc 88 10 80 push $0x801088dc 801040f9: 50 push %eax 801040fa: e8 23 0f 00 00 call 80105022 <initlock> 801040ff: 83 c4 10 add $0x10,%esp (*f0)->type = FD_PIPE; 80104102: 8b 45 08 mov 0x8(%ebp),%eax 80104105: 8b 00 mov (%eax),%eax 80104107: c7 00 01 00 00 00 movl $0x1,(%eax) (*f0)->readable = 1; 8010410d: 8b 45 08 mov 0x8(%ebp),%eax 80104110: 8b 00 mov (%eax),%eax 80104112: c6 40 08 01 movb $0x1,0x8(%eax) (*f0)->writable = 0; 80104116: 8b 45 08 mov 0x8(%ebp),%eax 80104119: 8b 00 mov (%eax),%eax 8010411b: c6 40 09 00 movb $0x0,0x9(%eax) (*f0)->pipe = p; 8010411f: 8b 45 08 mov 0x8(%ebp),%eax 80104122: 8b 00 mov (%eax),%eax 80104124: 8b 55 f4 mov -0xc(%ebp),%edx 80104127: 89 50 0c mov %edx,0xc(%eax) (*f1)->type = FD_PIPE; 8010412a: 8b 45 0c mov 0xc(%ebp),%eax 8010412d: 8b 00 mov (%eax),%eax 8010412f: c7 00 01 00 00 00 movl $0x1,(%eax) (*f1)->readable = 0; 80104135: 8b 45 0c mov 0xc(%ebp),%eax 80104138: 8b 00 mov (%eax),%eax 8010413a: c6 40 08 00 movb $0x0,0x8(%eax) (*f1)->writable = 1; 8010413e: 8b 45 0c mov 0xc(%ebp),%eax 80104141: 8b 00 mov (%eax),%eax 80104143: c6 40 09 01 movb $0x1,0x9(%eax) (*f1)->pipe = p; 80104147: 8b 45 0c mov 0xc(%ebp),%eax 8010414a: 8b 00 mov (%eax),%eax 8010414c: 8b 55 f4 mov -0xc(%ebp),%edx 8010414f: 89 50 0c mov %edx,0xc(%eax) return 0; 80104152: b8 00 00 00 00 mov $0x0,%eax 80104157: eb 51 jmp 801041aa <pipealloc+0x154> goto bad; 80104159: 90 nop 8010415a: eb 01 jmp 8010415d <pipealloc+0x107> goto bad; 8010415c: 90 nop //PAGEBREAK: 20 bad: if(p) 8010415d: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80104161: 74 0e je 80104171 <pipealloc+0x11b> kfree((char*)p); 80104163: 83 ec 0c sub $0xc,%esp 80104166: ff 75 f4 pushl -0xc(%ebp) 80104169: e8 5f ea ff ff call 80102bcd <kfree> 8010416e: 83 c4 10 add $0x10,%esp if(*f0) 80104171: 8b 45 08 mov 0x8(%ebp),%eax 80104174: 8b 00 mov (%eax),%eax 80104176: 85 c0 test %eax,%eax 80104178: 74 11 je 8010418b <pipealloc+0x135> fileclose(*f0); 8010417a: 8b 45 08 mov 0x8(%ebp),%eax 8010417d: 8b 00 mov (%eax),%eax 8010417f: 83 ec 0c sub $0xc,%esp 80104182: 50 push %eax 80104183: e8 d4 ce ff ff call 8010105c <fileclose> 80104188: 83 c4 10 add $0x10,%esp if(*f1) 8010418b: 8b 45 0c mov 0xc(%ebp),%eax 8010418e: 8b 00 mov (%eax),%eax 80104190: 85 c0 test %eax,%eax 80104192: 74 11 je 801041a5 <pipealloc+0x14f> fileclose(*f1); 80104194: 8b 45 0c mov 0xc(%ebp),%eax 80104197: 8b 00 mov (%eax),%eax 80104199: 83 ec 0c sub $0xc,%esp 8010419c: 50 push %eax 8010419d: e8 ba ce ff ff call 8010105c <fileclose> 801041a2: 83 c4 10 add $0x10,%esp return -1; 801041a5: b8 ff ff ff ff mov $0xffffffff,%eax } 801041aa: c9 leave 801041ab: c3 ret 801041ac <pipeclose>: void pipeclose(struct pipe *p, int writable) { 801041ac: 55 push %ebp 801041ad: 89 e5 mov %esp,%ebp 801041af: 83 ec 08 sub $0x8,%esp acquire(&p->lock); 801041b2: 8b 45 08 mov 0x8(%ebp),%eax 801041b5: 83 ec 0c sub $0xc,%esp 801041b8: 50 push %eax 801041b9: e8 86 0e 00 00 call 80105044 <acquire> 801041be: 83 c4 10 add $0x10,%esp if(writable){ 801041c1: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 801041c5: 74 23 je 801041ea <pipeclose+0x3e> p->writeopen = 0; 801041c7: 8b 45 08 mov 0x8(%ebp),%eax 801041ca: c7 80 40 02 00 00 00 movl $0x0,0x240(%eax) 801041d1: 00 00 00 wakeup(&p->nread); 801041d4: 8b 45 08 mov 0x8(%ebp),%eax 801041d7: 05 34 02 00 00 add $0x234,%eax 801041dc: 83 ec 0c sub $0xc,%esp 801041df: 50 push %eax 801041e0: e8 51 0c 00 00 call 80104e36 <wakeup> 801041e5: 83 c4 10 add $0x10,%esp 801041e8: eb 21 jmp 8010420b <pipeclose+0x5f> } else { p->readopen = 0; 801041ea: 8b 45 08 mov 0x8(%ebp),%eax 801041ed: c7 80 3c 02 00 00 00 movl $0x0,0x23c(%eax) 801041f4: 00 00 00 wakeup(&p->nwrite); 801041f7: 8b 45 08 mov 0x8(%ebp),%eax 801041fa: 05 38 02 00 00 add $0x238,%eax 801041ff: 83 ec 0c sub $0xc,%esp 80104202: 50 push %eax 80104203: e8 2e 0c 00 00 call 80104e36 <wakeup> 80104208: 83 c4 10 add $0x10,%esp } if(p->readopen == 0 && p->writeopen == 0){ 8010420b: 8b 45 08 mov 0x8(%ebp),%eax 8010420e: 8b 80 3c 02 00 00 mov 0x23c(%eax),%eax 80104214: 85 c0 test %eax,%eax 80104216: 75 2c jne 80104244 <pipeclose+0x98> 80104218: 8b 45 08 mov 0x8(%ebp),%eax 8010421b: 8b 80 40 02 00 00 mov 0x240(%eax),%eax 80104221: 85 c0 test %eax,%eax 80104223: 75 1f jne 80104244 <pipeclose+0x98> release(&p->lock); 80104225: 8b 45 08 mov 0x8(%ebp),%eax 80104228: 83 ec 0c sub $0xc,%esp 8010422b: 50 push %eax 8010422c: e8 7a 0e 00 00 call 801050ab <release> 80104231: 83 c4 10 add $0x10,%esp kfree((char*)p); 80104234: 83 ec 0c sub $0xc,%esp 80104237: ff 75 08 pushl 0x8(%ebp) 8010423a: e8 8e e9 ff ff call 80102bcd <kfree> 8010423f: 83 c4 10 add $0x10,%esp 80104242: eb 0f jmp 80104253 <pipeclose+0xa7> } else release(&p->lock); 80104244: 8b 45 08 mov 0x8(%ebp),%eax 80104247: 83 ec 0c sub $0xc,%esp 8010424a: 50 push %eax 8010424b: e8 5b 0e 00 00 call 801050ab <release> 80104250: 83 c4 10 add $0x10,%esp } 80104253: 90 nop 80104254: c9 leave 80104255: c3 ret 80104256 <pipewrite>: //PAGEBREAK: 40 int pipewrite(struct pipe *p, char *addr, int n) { 80104256: 55 push %ebp 80104257: 89 e5 mov %esp,%ebp 80104259: 53 push %ebx 8010425a: 83 ec 14 sub $0x14,%esp int i; acquire(&p->lock); 8010425d: 8b 45 08 mov 0x8(%ebp),%eax 80104260: 83 ec 0c sub $0xc,%esp 80104263: 50 push %eax 80104264: e8 db 0d 00 00 call 80105044 <acquire> 80104269: 83 c4 10 add $0x10,%esp for(i = 0; i < n; i++){ 8010426c: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80104273: e9 ae 00 00 00 jmp 80104326 <pipewrite+0xd0> while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full if(p->readopen == 0 || proc->killed){ 80104278: 8b 45 08 mov 0x8(%ebp),%eax 8010427b: 8b 80 3c 02 00 00 mov 0x23c(%eax),%eax 80104281: 85 c0 test %eax,%eax 80104283: 74 0d je 80104292 <pipewrite+0x3c> 80104285: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010428b: 8b 40 24 mov 0x24(%eax),%eax 8010428e: 85 c0 test %eax,%eax 80104290: 74 19 je 801042ab <pipewrite+0x55> release(&p->lock); 80104292: 8b 45 08 mov 0x8(%ebp),%eax 80104295: 83 ec 0c sub $0xc,%esp 80104298: 50 push %eax 80104299: e8 0d 0e 00 00 call 801050ab <release> 8010429e: 83 c4 10 add $0x10,%esp return -1; 801042a1: b8 ff ff ff ff mov $0xffffffff,%eax 801042a6: e9 a9 00 00 00 jmp 80104354 <pipewrite+0xfe> } wakeup(&p->nread); 801042ab: 8b 45 08 mov 0x8(%ebp),%eax 801042ae: 05 34 02 00 00 add $0x234,%eax 801042b3: 83 ec 0c sub $0xc,%esp 801042b6: 50 push %eax 801042b7: e8 7a 0b 00 00 call 80104e36 <wakeup> 801042bc: 83 c4 10 add $0x10,%esp sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep 801042bf: 8b 45 08 mov 0x8(%ebp),%eax 801042c2: 8b 55 08 mov 0x8(%ebp),%edx 801042c5: 81 c2 38 02 00 00 add $0x238,%edx 801042cb: 83 ec 08 sub $0x8,%esp 801042ce: 50 push %eax 801042cf: 52 push %edx 801042d0: e8 76 0a 00 00 call 80104d4b <sleep> 801042d5: 83 c4 10 add $0x10,%esp while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full 801042d8: 8b 45 08 mov 0x8(%ebp),%eax 801042db: 8b 90 38 02 00 00 mov 0x238(%eax),%edx 801042e1: 8b 45 08 mov 0x8(%ebp),%eax 801042e4: 8b 80 34 02 00 00 mov 0x234(%eax),%eax 801042ea: 05 00 02 00 00 add $0x200,%eax 801042ef: 39 c2 cmp %eax,%edx 801042f1: 74 85 je 80104278 <pipewrite+0x22> } p->data[p->nwrite++ % PIPESIZE] = addr[i]; 801042f3: 8b 55 f4 mov -0xc(%ebp),%edx 801042f6: 8b 45 0c mov 0xc(%ebp),%eax 801042f9: 8d 1c 02 lea (%edx,%eax,1),%ebx 801042fc: 8b 45 08 mov 0x8(%ebp),%eax 801042ff: 8b 80 38 02 00 00 mov 0x238(%eax),%eax 80104305: 8d 48 01 lea 0x1(%eax),%ecx 80104308: 8b 55 08 mov 0x8(%ebp),%edx 8010430b: 89 8a 38 02 00 00 mov %ecx,0x238(%edx) 80104311: 25 ff 01 00 00 and $0x1ff,%eax 80104316: 89 c1 mov %eax,%ecx 80104318: 0f b6 13 movzbl (%ebx),%edx 8010431b: 8b 45 08 mov 0x8(%ebp),%eax 8010431e: 88 54 08 34 mov %dl,0x34(%eax,%ecx,1) for(i = 0; i < n; i++){ 80104322: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80104326: 8b 45 f4 mov -0xc(%ebp),%eax 80104329: 3b 45 10 cmp 0x10(%ebp),%eax 8010432c: 7c aa jl 801042d8 <pipewrite+0x82> } wakeup(&p->nread); //DOC: pipewrite-wakeup1 8010432e: 8b 45 08 mov 0x8(%ebp),%eax 80104331: 05 34 02 00 00 add $0x234,%eax 80104336: 83 ec 0c sub $0xc,%esp 80104339: 50 push %eax 8010433a: e8 f7 0a 00 00 call 80104e36 <wakeup> 8010433f: 83 c4 10 add $0x10,%esp release(&p->lock); 80104342: 8b 45 08 mov 0x8(%ebp),%eax 80104345: 83 ec 0c sub $0xc,%esp 80104348: 50 push %eax 80104349: e8 5d 0d 00 00 call 801050ab <release> 8010434e: 83 c4 10 add $0x10,%esp return n; 80104351: 8b 45 10 mov 0x10(%ebp),%eax } 80104354: 8b 5d fc mov -0x4(%ebp),%ebx 80104357: c9 leave 80104358: c3 ret 80104359 <piperead>: int piperead(struct pipe *p, char *addr, int n) { 80104359: 55 push %ebp 8010435a: 89 e5 mov %esp,%ebp 8010435c: 83 ec 18 sub $0x18,%esp int i; acquire(&p->lock); 8010435f: 8b 45 08 mov 0x8(%ebp),%eax 80104362: 83 ec 0c sub $0xc,%esp 80104365: 50 push %eax 80104366: e8 d9 0c 00 00 call 80105044 <acquire> 8010436b: 83 c4 10 add $0x10,%esp while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty 8010436e: eb 3f jmp 801043af <piperead+0x56> if(proc->killed){ 80104370: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104376: 8b 40 24 mov 0x24(%eax),%eax 80104379: 85 c0 test %eax,%eax 8010437b: 74 19 je 80104396 <piperead+0x3d> release(&p->lock); 8010437d: 8b 45 08 mov 0x8(%ebp),%eax 80104380: 83 ec 0c sub $0xc,%esp 80104383: 50 push %eax 80104384: e8 22 0d 00 00 call 801050ab <release> 80104389: 83 c4 10 add $0x10,%esp return -1; 8010438c: b8 ff ff ff ff mov $0xffffffff,%eax 80104391: e9 be 00 00 00 jmp 80104454 <piperead+0xfb> } sleep(&p->nread, &p->lock); //DOC: piperead-sleep 80104396: 8b 45 08 mov 0x8(%ebp),%eax 80104399: 8b 55 08 mov 0x8(%ebp),%edx 8010439c: 81 c2 34 02 00 00 add $0x234,%edx 801043a2: 83 ec 08 sub $0x8,%esp 801043a5: 50 push %eax 801043a6: 52 push %edx 801043a7: e8 9f 09 00 00 call 80104d4b <sleep> 801043ac: 83 c4 10 add $0x10,%esp while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty 801043af: 8b 45 08 mov 0x8(%ebp),%eax 801043b2: 8b 90 34 02 00 00 mov 0x234(%eax),%edx 801043b8: 8b 45 08 mov 0x8(%ebp),%eax 801043bb: 8b 80 38 02 00 00 mov 0x238(%eax),%eax 801043c1: 39 c2 cmp %eax,%edx 801043c3: 75 0d jne 801043d2 <piperead+0x79> 801043c5: 8b 45 08 mov 0x8(%ebp),%eax 801043c8: 8b 80 40 02 00 00 mov 0x240(%eax),%eax 801043ce: 85 c0 test %eax,%eax 801043d0: 75 9e jne 80104370 <piperead+0x17> } for(i = 0; i < n; i++){ //DOC: piperead-copy 801043d2: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801043d9: eb 48 jmp 80104423 <piperead+0xca> if(p->nread == p->nwrite) 801043db: 8b 45 08 mov 0x8(%ebp),%eax 801043de: 8b 90 34 02 00 00 mov 0x234(%eax),%edx 801043e4: 8b 45 08 mov 0x8(%ebp),%eax 801043e7: 8b 80 38 02 00 00 mov 0x238(%eax),%eax 801043ed: 39 c2 cmp %eax,%edx 801043ef: 74 3c je 8010442d <piperead+0xd4> break; addr[i] = p->data[p->nread++ % PIPESIZE]; 801043f1: 8b 45 08 mov 0x8(%ebp),%eax 801043f4: 8b 80 34 02 00 00 mov 0x234(%eax),%eax 801043fa: 8d 48 01 lea 0x1(%eax),%ecx 801043fd: 8b 55 08 mov 0x8(%ebp),%edx 80104400: 89 8a 34 02 00 00 mov %ecx,0x234(%edx) 80104406: 25 ff 01 00 00 and $0x1ff,%eax 8010440b: 89 c1 mov %eax,%ecx 8010440d: 8b 55 f4 mov -0xc(%ebp),%edx 80104410: 8b 45 0c mov 0xc(%ebp),%eax 80104413: 01 c2 add %eax,%edx 80104415: 8b 45 08 mov 0x8(%ebp),%eax 80104418: 0f b6 44 08 34 movzbl 0x34(%eax,%ecx,1),%eax 8010441d: 88 02 mov %al,(%edx) for(i = 0; i < n; i++){ //DOC: piperead-copy 8010441f: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80104423: 8b 45 f4 mov -0xc(%ebp),%eax 80104426: 3b 45 10 cmp 0x10(%ebp),%eax 80104429: 7c b0 jl 801043db <piperead+0x82> 8010442b: eb 01 jmp 8010442e <piperead+0xd5> break; 8010442d: 90 nop } wakeup(&p->nwrite); //DOC: piperead-wakeup 8010442e: 8b 45 08 mov 0x8(%ebp),%eax 80104431: 05 38 02 00 00 add $0x238,%eax 80104436: 83 ec 0c sub $0xc,%esp 80104439: 50 push %eax 8010443a: e8 f7 09 00 00 call 80104e36 <wakeup> 8010443f: 83 c4 10 add $0x10,%esp release(&p->lock); 80104442: 8b 45 08 mov 0x8(%ebp),%eax 80104445: 83 ec 0c sub $0xc,%esp 80104448: 50 push %eax 80104449: e8 5d 0c 00 00 call 801050ab <release> 8010444e: 83 c4 10 add $0x10,%esp return i; 80104451: 8b 45 f4 mov -0xc(%ebp),%eax } 80104454: c9 leave 80104455: c3 ret 80104456 <readeflags>: { 80104456: 55 push %ebp 80104457: 89 e5 mov %esp,%ebp 80104459: 83 ec 10 sub $0x10,%esp asm volatile("pushfl; popl %0" : "=r" (eflags)); 8010445c: 9c pushf 8010445d: 58 pop %eax 8010445e: 89 45 fc mov %eax,-0x4(%ebp) return eflags; 80104461: 8b 45 fc mov -0x4(%ebp),%eax } 80104464: c9 leave 80104465: c3 ret 80104466 <sti>: { 80104466: 55 push %ebp 80104467: 89 e5 mov %esp,%ebp asm volatile("sti"); 80104469: fb sti } 8010446a: 90 nop 8010446b: 5d pop %ebp 8010446c: c3 ret 8010446d <halt>: } // CS550: to solve the 100%-CPU-utilization-when-idling problem - "hlt" instruction puts CPU to sleep static inline void halt() { 8010446d: 55 push %ebp 8010446e: 89 e5 mov %esp,%ebp asm volatile("hlt" : : :"memory"); 80104470: f4 hlt } 80104471: 90 nop 80104472: 5d pop %ebp 80104473: c3 ret 80104474 <pinit>: static void wakeup1(void *chan); void pinit(void) { 80104474: 55 push %ebp 80104475: 89 e5 mov %esp,%ebp 80104477: 83 ec 08 sub $0x8,%esp initlock(&ptable.lock, "ptable"); 8010447a: 83 ec 08 sub $0x8,%esp 8010447d: 68 e1 88 10 80 push $0x801088e1 80104482: 68 60 29 11 80 push $0x80112960 80104487: e8 96 0b 00 00 call 80105022 <initlock> 8010448c: 83 c4 10 add $0x10,%esp } 8010448f: 90 nop 80104490: c9 leave 80104491: c3 ret 80104492 <allocproc>: // If found, change state to EMBRYO and initialize // state required to run in the kernel. // Otherwise return 0. static struct proc* allocproc(void) { 80104492: 55 push %ebp 80104493: 89 e5 mov %esp,%ebp 80104495: 83 ec 18 sub $0x18,%esp struct proc *p; char *sp; acquire(&ptable.lock); 80104498: 83 ec 0c sub $0xc,%esp 8010449b: 68 60 29 11 80 push $0x80112960 801044a0: e8 9f 0b 00 00 call 80105044 <acquire> 801044a5: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 801044a8: c7 45 f4 94 29 11 80 movl $0x80112994,-0xc(%ebp) 801044af: eb 0e jmp 801044bf <allocproc+0x2d> if(p->state == UNUSED) 801044b1: 8b 45 f4 mov -0xc(%ebp),%eax 801044b4: 8b 40 0c mov 0xc(%eax),%eax 801044b7: 85 c0 test %eax,%eax 801044b9: 74 27 je 801044e2 <allocproc+0x50> for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 801044bb: 83 45 f4 7c addl $0x7c,-0xc(%ebp) 801044bf: 81 7d f4 94 48 11 80 cmpl $0x80114894,-0xc(%ebp) 801044c6: 72 e9 jb 801044b1 <allocproc+0x1f> goto found; release(&ptable.lock); 801044c8: 83 ec 0c sub $0xc,%esp 801044cb: 68 60 29 11 80 push $0x80112960 801044d0: e8 d6 0b 00 00 call 801050ab <release> 801044d5: 83 c4 10 add $0x10,%esp return 0; 801044d8: b8 00 00 00 00 mov $0x0,%eax 801044dd: e9 b4 00 00 00 jmp 80104596 <allocproc+0x104> goto found; 801044e2: 90 nop found: p->state = EMBRYO; 801044e3: 8b 45 f4 mov -0xc(%ebp),%eax 801044e6: c7 40 0c 01 00 00 00 movl $0x1,0xc(%eax) p->pid = nextpid++; 801044ed: a1 04 b0 10 80 mov 0x8010b004,%eax 801044f2: 8d 50 01 lea 0x1(%eax),%edx 801044f5: 89 15 04 b0 10 80 mov %edx,0x8010b004 801044fb: 8b 55 f4 mov -0xc(%ebp),%edx 801044fe: 89 42 10 mov %eax,0x10(%edx) release(&ptable.lock); 80104501: 83 ec 0c sub $0xc,%esp 80104504: 68 60 29 11 80 push $0x80112960 80104509: e8 9d 0b 00 00 call 801050ab <release> 8010450e: 83 c4 10 add $0x10,%esp // Allocate kernel stack. if((p->kstack = kalloc()) == 0){ 80104511: e8 54 e7 ff ff call 80102c6a <kalloc> 80104516: 89 c2 mov %eax,%edx 80104518: 8b 45 f4 mov -0xc(%ebp),%eax 8010451b: 89 50 08 mov %edx,0x8(%eax) 8010451e: 8b 45 f4 mov -0xc(%ebp),%eax 80104521: 8b 40 08 mov 0x8(%eax),%eax 80104524: 85 c0 test %eax,%eax 80104526: 75 11 jne 80104539 <allocproc+0xa7> p->state = UNUSED; 80104528: 8b 45 f4 mov -0xc(%ebp),%eax 8010452b: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) return 0; 80104532: b8 00 00 00 00 mov $0x0,%eax 80104537: eb 5d jmp 80104596 <allocproc+0x104> } sp = p->kstack + KSTACKSIZE; 80104539: 8b 45 f4 mov -0xc(%ebp),%eax 8010453c: 8b 40 08 mov 0x8(%eax),%eax 8010453f: 05 00 10 00 00 add $0x1000,%eax 80104544: 89 45 f0 mov %eax,-0x10(%ebp) // Leave room for trap frame. sp -= sizeof *p->tf; 80104547: 83 6d f0 4c subl $0x4c,-0x10(%ebp) p->tf = (struct trapframe*)sp; 8010454b: 8b 45 f4 mov -0xc(%ebp),%eax 8010454e: 8b 55 f0 mov -0x10(%ebp),%edx 80104551: 89 50 18 mov %edx,0x18(%eax) // Set up new context to start executing at forkret, // which returns to trapret. sp -= 4; 80104554: 83 6d f0 04 subl $0x4,-0x10(%ebp) *(uint*)sp = (uint)trapret; 80104558: ba 84 66 10 80 mov $0x80106684,%edx 8010455d: 8b 45 f0 mov -0x10(%ebp),%eax 80104560: 89 10 mov %edx,(%eax) sp -= sizeof *p->context; 80104562: 83 6d f0 14 subl $0x14,-0x10(%ebp) p->context = (struct context*)sp; 80104566: 8b 45 f4 mov -0xc(%ebp),%eax 80104569: 8b 55 f0 mov -0x10(%ebp),%edx 8010456c: 89 50 1c mov %edx,0x1c(%eax) memset(p->context, 0, sizeof *p->context); 8010456f: 8b 45 f4 mov -0xc(%ebp),%eax 80104572: 8b 40 1c mov 0x1c(%eax),%eax 80104575: 83 ec 04 sub $0x4,%esp 80104578: 6a 14 push $0x14 8010457a: 6a 00 push $0x0 8010457c: 50 push %eax 8010457d: e8 25 0d 00 00 call 801052a7 <memset> 80104582: 83 c4 10 add $0x10,%esp p->context->eip = (uint)forkret; 80104585: 8b 45 f4 mov -0xc(%ebp),%eax 80104588: 8b 40 1c mov 0x1c(%eax),%eax 8010458b: ba 05 4d 10 80 mov $0x80104d05,%edx 80104590: 89 50 10 mov %edx,0x10(%eax) return p; 80104593: 8b 45 f4 mov -0xc(%ebp),%eax } 80104596: c9 leave 80104597: c3 ret 80104598 <userinit>: //PAGEBREAK: 32 // Set up first user process. void userinit(void) { 80104598: 55 push %ebp 80104599: 89 e5 mov %esp,%ebp 8010459b: 83 ec 18 sub $0x18,%esp struct proc *p; extern char _binary_initcode_start[], _binary_initcode_size[]; p = allocproc(); 8010459e: e8 ef fe ff ff call 80104492 <allocproc> 801045a3: 89 45 f4 mov %eax,-0xc(%ebp) initproc = p; 801045a6: 8b 45 f4 mov -0xc(%ebp),%eax 801045a9: a3 48 b6 10 80 mov %eax,0x8010b648 if((p->pgdir = setupkvm()) == 0) 801045ae: e8 98 37 00 00 call 80107d4b <setupkvm> 801045b3: 89 c2 mov %eax,%edx 801045b5: 8b 45 f4 mov -0xc(%ebp),%eax 801045b8: 89 50 04 mov %edx,0x4(%eax) 801045bb: 8b 45 f4 mov -0xc(%ebp),%eax 801045be: 8b 40 04 mov 0x4(%eax),%eax 801045c1: 85 c0 test %eax,%eax 801045c3: 75 0d jne 801045d2 <userinit+0x3a> panic("userinit: out of memory?"); 801045c5: 83 ec 0c sub $0xc,%esp 801045c8: 68 e8 88 10 80 push $0x801088e8 801045cd: e8 95 bf ff ff call 80100567 <panic> inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size); 801045d2: ba 2c 00 00 00 mov $0x2c,%edx 801045d7: 8b 45 f4 mov -0xc(%ebp),%eax 801045da: 8b 40 04 mov 0x4(%eax),%eax 801045dd: 83 ec 04 sub $0x4,%esp 801045e0: 52 push %edx 801045e1: 68 e0 b4 10 80 push $0x8010b4e0 801045e6: 50 push %eax 801045e7: e8 ba 39 00 00 call 80107fa6 <inituvm> 801045ec: 83 c4 10 add $0x10,%esp p->sz = PGSIZE; 801045ef: 8b 45 f4 mov -0xc(%ebp),%eax 801045f2: c7 00 00 10 00 00 movl $0x1000,(%eax) memset(p->tf, 0, sizeof(*p->tf)); 801045f8: 8b 45 f4 mov -0xc(%ebp),%eax 801045fb: 8b 40 18 mov 0x18(%eax),%eax 801045fe: 83 ec 04 sub $0x4,%esp 80104601: 6a 4c push $0x4c 80104603: 6a 00 push $0x0 80104605: 50 push %eax 80104606: e8 9c 0c 00 00 call 801052a7 <memset> 8010460b: 83 c4 10 add $0x10,%esp p->tf->cs = (SEG_UCODE << 3) | DPL_USER; 8010460e: 8b 45 f4 mov -0xc(%ebp),%eax 80104611: 8b 40 18 mov 0x18(%eax),%eax 80104614: 66 c7 40 3c 23 00 movw $0x23,0x3c(%eax) p->tf->ds = (SEG_UDATA << 3) | DPL_USER; 8010461a: 8b 45 f4 mov -0xc(%ebp),%eax 8010461d: 8b 40 18 mov 0x18(%eax),%eax 80104620: 66 c7 40 2c 2b 00 movw $0x2b,0x2c(%eax) p->tf->es = p->tf->ds; 80104626: 8b 45 f4 mov -0xc(%ebp),%eax 80104629: 8b 50 18 mov 0x18(%eax),%edx 8010462c: 8b 45 f4 mov -0xc(%ebp),%eax 8010462f: 8b 40 18 mov 0x18(%eax),%eax 80104632: 0f b7 52 2c movzwl 0x2c(%edx),%edx 80104636: 66 89 50 28 mov %dx,0x28(%eax) p->tf->ss = p->tf->ds; 8010463a: 8b 45 f4 mov -0xc(%ebp),%eax 8010463d: 8b 50 18 mov 0x18(%eax),%edx 80104640: 8b 45 f4 mov -0xc(%ebp),%eax 80104643: 8b 40 18 mov 0x18(%eax),%eax 80104646: 0f b7 52 2c movzwl 0x2c(%edx),%edx 8010464a: 66 89 50 48 mov %dx,0x48(%eax) p->tf->eflags = FL_IF; 8010464e: 8b 45 f4 mov -0xc(%ebp),%eax 80104651: 8b 40 18 mov 0x18(%eax),%eax 80104654: c7 40 40 00 02 00 00 movl $0x200,0x40(%eax) p->tf->esp = PGSIZE; 8010465b: 8b 45 f4 mov -0xc(%ebp),%eax 8010465e: 8b 40 18 mov 0x18(%eax),%eax 80104661: c7 40 44 00 10 00 00 movl $0x1000,0x44(%eax) p->tf->eip = 0; // beginning of initcode.S 80104668: 8b 45 f4 mov -0xc(%ebp),%eax 8010466b: 8b 40 18 mov 0x18(%eax),%eax 8010466e: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) safestrcpy(p->name, "initcode", sizeof(p->name)); 80104675: 8b 45 f4 mov -0xc(%ebp),%eax 80104678: 83 c0 6c add $0x6c,%eax 8010467b: 83 ec 04 sub $0x4,%esp 8010467e: 6a 10 push $0x10 80104680: 68 01 89 10 80 push $0x80108901 80104685: 50 push %eax 80104686: e8 1f 0e 00 00 call 801054aa <safestrcpy> 8010468b: 83 c4 10 add $0x10,%esp p->cwd = namei("/"); 8010468e: 83 ec 0c sub $0xc,%esp 80104691: 68 0a 89 10 80 push $0x8010890a 80104696: e8 8f de ff ff call 8010252a <namei> 8010469b: 83 c4 10 add $0x10,%esp 8010469e: 89 c2 mov %eax,%edx 801046a0: 8b 45 f4 mov -0xc(%ebp),%eax 801046a3: 89 50 68 mov %edx,0x68(%eax) p->state = RUNNABLE; 801046a6: 8b 45 f4 mov -0xc(%ebp),%eax 801046a9: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) } 801046b0: 90 nop 801046b1: c9 leave 801046b2: c3 ret 801046b3 <growproc>: // Grow current process's memory by n bytes. // Return 0 on success, -1 on failure. int growproc(int n) { 801046b3: 55 push %ebp 801046b4: 89 e5 mov %esp,%ebp 801046b6: 83 ec 18 sub $0x18,%esp uint sz; sz = proc->sz; 801046b9: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801046bf: 8b 00 mov (%eax),%eax 801046c1: 89 45 f4 mov %eax,-0xc(%ebp) if(n > 0){ 801046c4: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 801046c8: 7e 31 jle 801046fb <growproc+0x48> if((sz = allocuvm(proc->pgdir, sz, sz + n)) == 0) 801046ca: 8b 55 08 mov 0x8(%ebp),%edx 801046cd: 8b 45 f4 mov -0xc(%ebp),%eax 801046d0: 01 c2 add %eax,%edx 801046d2: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801046d8: 8b 40 04 mov 0x4(%eax),%eax 801046db: 83 ec 04 sub $0x4,%esp 801046de: 52 push %edx 801046df: ff 75 f4 pushl -0xc(%ebp) 801046e2: 50 push %eax 801046e3: e8 0b 3a 00 00 call 801080f3 <allocuvm> 801046e8: 83 c4 10 add $0x10,%esp 801046eb: 89 45 f4 mov %eax,-0xc(%ebp) 801046ee: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801046f2: 75 3e jne 80104732 <growproc+0x7f> return -1; 801046f4: b8 ff ff ff ff mov $0xffffffff,%eax 801046f9: eb 59 jmp 80104754 <growproc+0xa1> } else if(n < 0){ 801046fb: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 801046ff: 79 31 jns 80104732 <growproc+0x7f> if((sz = deallocuvm(proc->pgdir, sz, sz + n)) == 0) 80104701: 8b 55 08 mov 0x8(%ebp),%edx 80104704: 8b 45 f4 mov -0xc(%ebp),%eax 80104707: 01 c2 add %eax,%edx 80104709: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010470f: 8b 40 04 mov 0x4(%eax),%eax 80104712: 83 ec 04 sub $0x4,%esp 80104715: 52 push %edx 80104716: ff 75 f4 pushl -0xc(%ebp) 80104719: 50 push %eax 8010471a: e8 9d 3a 00 00 call 801081bc <deallocuvm> 8010471f: 83 c4 10 add $0x10,%esp 80104722: 89 45 f4 mov %eax,-0xc(%ebp) 80104725: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80104729: 75 07 jne 80104732 <growproc+0x7f> return -1; 8010472b: b8 ff ff ff ff mov $0xffffffff,%eax 80104730: eb 22 jmp 80104754 <growproc+0xa1> } proc->sz = sz; 80104732: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104738: 8b 55 f4 mov -0xc(%ebp),%edx 8010473b: 89 10 mov %edx,(%eax) switchuvm(proc); 8010473d: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104743: 83 ec 0c sub $0xc,%esp 80104746: 50 push %eax 80104747: e8 e6 36 00 00 call 80107e32 <switchuvm> 8010474c: 83 c4 10 add $0x10,%esp return 0; 8010474f: b8 00 00 00 00 mov $0x0,%eax } 80104754: c9 leave 80104755: c3 ret 80104756 <fork>: // Create a new process copying p as the parent. // Sets up stack to return as if from system call. // Caller must set state of returned proc to RUNNABLE. int fork(void) { 80104756: 55 push %ebp 80104757: 89 e5 mov %esp,%ebp 80104759: 57 push %edi 8010475a: 56 push %esi 8010475b: 53 push %ebx 8010475c: 83 ec 1c sub $0x1c,%esp int i, pid; struct proc *np; // Allocate process. if((np = allocproc()) == 0) 8010475f: e8 2e fd ff ff call 80104492 <allocproc> 80104764: 89 45 e0 mov %eax,-0x20(%ebp) 80104767: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 8010476b: 75 0a jne 80104777 <fork+0x21> return -1; 8010476d: b8 ff ff ff ff mov $0xffffffff,%eax 80104772: e9 6a 01 00 00 jmp 801048e1 <fork+0x18b> // Copy process state from p. if((np->pgdir = copyuvm(proc->pgdir, proc->sz)) == 0){ 80104777: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010477d: 8b 10 mov (%eax),%edx 8010477f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104785: 8b 40 04 mov 0x4(%eax),%eax 80104788: 83 ec 08 sub $0x8,%esp 8010478b: 52 push %edx 8010478c: 50 push %eax 8010478d: e8 c8 3b 00 00 call 8010835a <copyuvm> 80104792: 83 c4 10 add $0x10,%esp 80104795: 89 c2 mov %eax,%edx 80104797: 8b 45 e0 mov -0x20(%ebp),%eax 8010479a: 89 50 04 mov %edx,0x4(%eax) 8010479d: 8b 45 e0 mov -0x20(%ebp),%eax 801047a0: 8b 40 04 mov 0x4(%eax),%eax 801047a3: 85 c0 test %eax,%eax 801047a5: 75 30 jne 801047d7 <fork+0x81> kfree(np->kstack); 801047a7: 8b 45 e0 mov -0x20(%ebp),%eax 801047aa: 8b 40 08 mov 0x8(%eax),%eax 801047ad: 83 ec 0c sub $0xc,%esp 801047b0: 50 push %eax 801047b1: e8 17 e4 ff ff call 80102bcd <kfree> 801047b6: 83 c4 10 add $0x10,%esp np->kstack = 0; 801047b9: 8b 45 e0 mov -0x20(%ebp),%eax 801047bc: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) np->state = UNUSED; 801047c3: 8b 45 e0 mov -0x20(%ebp),%eax 801047c6: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) return -1; 801047cd: b8 ff ff ff ff mov $0xffffffff,%eax 801047d2: e9 0a 01 00 00 jmp 801048e1 <fork+0x18b> } np->sz = proc->sz; 801047d7: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801047dd: 8b 10 mov (%eax),%edx 801047df: 8b 45 e0 mov -0x20(%ebp),%eax 801047e2: 89 10 mov %edx,(%eax) np->parent = proc; 801047e4: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx 801047eb: 8b 45 e0 mov -0x20(%ebp),%eax 801047ee: 89 50 14 mov %edx,0x14(%eax) *np->tf = *proc->tf; 801047f1: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801047f7: 8b 48 18 mov 0x18(%eax),%ecx 801047fa: 8b 45 e0 mov -0x20(%ebp),%eax 801047fd: 8b 40 18 mov 0x18(%eax),%eax 80104800: 89 c2 mov %eax,%edx 80104802: 89 cb mov %ecx,%ebx 80104804: b8 13 00 00 00 mov $0x13,%eax 80104809: 89 d7 mov %edx,%edi 8010480b: 89 de mov %ebx,%esi 8010480d: 89 c1 mov %eax,%ecx 8010480f: f3 a5 rep movsl %ds:(%esi),%es:(%edi) // Clear %eax so that fork returns 0 in the child. np->tf->eax = 0; 80104811: 8b 45 e0 mov -0x20(%ebp),%eax 80104814: 8b 40 18 mov 0x18(%eax),%eax 80104817: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax) for(i = 0; i < NOFILE; i++) 8010481e: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 80104825: eb 43 jmp 8010486a <fork+0x114> if(proc->ofile[i]) 80104827: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010482d: 8b 55 e4 mov -0x1c(%ebp),%edx 80104830: 83 c2 08 add $0x8,%edx 80104833: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80104837: 85 c0 test %eax,%eax 80104839: 74 2b je 80104866 <fork+0x110> np->ofile[i] = filedup(proc->ofile[i]); 8010483b: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104841: 8b 55 e4 mov -0x1c(%ebp),%edx 80104844: 83 c2 08 add $0x8,%edx 80104847: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 8010484b: 83 ec 0c sub $0xc,%esp 8010484e: 50 push %eax 8010484f: e8 b7 c7 ff ff call 8010100b <filedup> 80104854: 83 c4 10 add $0x10,%esp 80104857: 89 c1 mov %eax,%ecx 80104859: 8b 45 e0 mov -0x20(%ebp),%eax 8010485c: 8b 55 e4 mov -0x1c(%ebp),%edx 8010485f: 83 c2 08 add $0x8,%edx 80104862: 89 4c 90 08 mov %ecx,0x8(%eax,%edx,4) for(i = 0; i < NOFILE; i++) 80104866: 83 45 e4 01 addl $0x1,-0x1c(%ebp) 8010486a: 83 7d e4 0f cmpl $0xf,-0x1c(%ebp) 8010486e: 7e b7 jle 80104827 <fork+0xd1> np->cwd = idup(proc->cwd); 80104870: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104876: 8b 40 68 mov 0x68(%eax),%eax 80104879: 83 ec 0c sub $0xc,%esp 8010487c: 50 push %eax 8010487d: e8 b9 d0 ff ff call 8010193b <idup> 80104882: 83 c4 10 add $0x10,%esp 80104885: 89 c2 mov %eax,%edx 80104887: 8b 45 e0 mov -0x20(%ebp),%eax 8010488a: 89 50 68 mov %edx,0x68(%eax) safestrcpy(np->name, proc->name, sizeof(proc->name)); 8010488d: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104893: 8d 50 6c lea 0x6c(%eax),%edx 80104896: 8b 45 e0 mov -0x20(%ebp),%eax 80104899: 83 c0 6c add $0x6c,%eax 8010489c: 83 ec 04 sub $0x4,%esp 8010489f: 6a 10 push $0x10 801048a1: 52 push %edx 801048a2: 50 push %eax 801048a3: e8 02 0c 00 00 call 801054aa <safestrcpy> 801048a8: 83 c4 10 add $0x10,%esp pid = np->pid; 801048ab: 8b 45 e0 mov -0x20(%ebp),%eax 801048ae: 8b 40 10 mov 0x10(%eax),%eax 801048b1: 89 45 dc mov %eax,-0x24(%ebp) // lock to force the compiler to emit the np->state write last. acquire(&ptable.lock); 801048b4: 83 ec 0c sub $0xc,%esp 801048b7: 68 60 29 11 80 push $0x80112960 801048bc: e8 83 07 00 00 call 80105044 <acquire> 801048c1: 83 c4 10 add $0x10,%esp np->state = RUNNABLE; 801048c4: 8b 45 e0 mov -0x20(%ebp),%eax 801048c7: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) release(&ptable.lock); 801048ce: 83 ec 0c sub $0xc,%esp 801048d1: 68 60 29 11 80 push $0x80112960 801048d6: e8 d0 07 00 00 call 801050ab <release> 801048db: 83 c4 10 add $0x10,%esp return pid; 801048de: 8b 45 dc mov -0x24(%ebp),%eax } 801048e1: 8d 65 f4 lea -0xc(%ebp),%esp 801048e4: 5b pop %ebx 801048e5: 5e pop %esi 801048e6: 5f pop %edi 801048e7: 5d pop %ebp 801048e8: c3 ret 801048e9 <exit>: // Exit the current process. Does not return. // An exited process remains in the zombie state // until its parent calls wait() to find out it exited. void exit(void) { 801048e9: 55 push %ebp 801048ea: 89 e5 mov %esp,%ebp 801048ec: 83 ec 18 sub $0x18,%esp struct proc *p; int fd; if(proc == initproc) 801048ef: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx 801048f6: a1 48 b6 10 80 mov 0x8010b648,%eax 801048fb: 39 c2 cmp %eax,%edx 801048fd: 75 0d jne 8010490c <exit+0x23> panic("init exiting"); 801048ff: 83 ec 0c sub $0xc,%esp 80104902: 68 0c 89 10 80 push $0x8010890c 80104907: e8 5b bc ff ff call 80100567 <panic> // Close all open files. for(fd = 0; fd < NOFILE; fd++){ 8010490c: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 80104913: eb 48 jmp 8010495d <exit+0x74> if(proc->ofile[fd]){ 80104915: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010491b: 8b 55 f0 mov -0x10(%ebp),%edx 8010491e: 83 c2 08 add $0x8,%edx 80104921: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80104925: 85 c0 test %eax,%eax 80104927: 74 30 je 80104959 <exit+0x70> fileclose(proc->ofile[fd]); 80104929: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010492f: 8b 55 f0 mov -0x10(%ebp),%edx 80104932: 83 c2 08 add $0x8,%edx 80104935: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80104939: 83 ec 0c sub $0xc,%esp 8010493c: 50 push %eax 8010493d: e8 1a c7 ff ff call 8010105c <fileclose> 80104942: 83 c4 10 add $0x10,%esp proc->ofile[fd] = 0; 80104945: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010494b: 8b 55 f0 mov -0x10(%ebp),%edx 8010494e: 83 c2 08 add $0x8,%edx 80104951: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4) 80104958: 00 for(fd = 0; fd < NOFILE; fd++){ 80104959: 83 45 f0 01 addl $0x1,-0x10(%ebp) 8010495d: 83 7d f0 0f cmpl $0xf,-0x10(%ebp) 80104961: 7e b2 jle 80104915 <exit+0x2c> } } begin_op(); 80104963: e8 ee eb ff ff call 80103556 <begin_op> iput(proc->cwd); 80104968: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010496e: 8b 40 68 mov 0x68(%eax),%eax 80104971: 83 ec 0c sub $0xc,%esp 80104974: 50 push %eax 80104975: e8 cb d1 ff ff call 80101b45 <iput> 8010497a: 83 c4 10 add $0x10,%esp end_op(); 8010497d: e8 60 ec ff ff call 801035e2 <end_op> proc->cwd = 0; 80104982: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104988: c7 40 68 00 00 00 00 movl $0x0,0x68(%eax) acquire(&ptable.lock); 8010498f: 83 ec 0c sub $0xc,%esp 80104992: 68 60 29 11 80 push $0x80112960 80104997: e8 a8 06 00 00 call 80105044 <acquire> 8010499c: 83 c4 10 add $0x10,%esp // Parent might be sleeping in wait(). wakeup1(proc->parent); 8010499f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801049a5: 8b 40 14 mov 0x14(%eax),%eax 801049a8: 83 ec 0c sub $0xc,%esp 801049ab: 50 push %eax 801049ac: e8 46 04 00 00 call 80104df7 <wakeup1> 801049b1: 83 c4 10 add $0x10,%esp // Pass abandoned children to init. for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 801049b4: c7 45 f4 94 29 11 80 movl $0x80112994,-0xc(%ebp) 801049bb: eb 3c jmp 801049f9 <exit+0x110> if(p->parent == proc){ 801049bd: 8b 45 f4 mov -0xc(%ebp),%eax 801049c0: 8b 50 14 mov 0x14(%eax),%edx 801049c3: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801049c9: 39 c2 cmp %eax,%edx 801049cb: 75 28 jne 801049f5 <exit+0x10c> p->parent = initproc; 801049cd: 8b 15 48 b6 10 80 mov 0x8010b648,%edx 801049d3: 8b 45 f4 mov -0xc(%ebp),%eax 801049d6: 89 50 14 mov %edx,0x14(%eax) if(p->state == ZOMBIE) 801049d9: 8b 45 f4 mov -0xc(%ebp),%eax 801049dc: 8b 40 0c mov 0xc(%eax),%eax 801049df: 83 f8 05 cmp $0x5,%eax 801049e2: 75 11 jne 801049f5 <exit+0x10c> wakeup1(initproc); 801049e4: a1 48 b6 10 80 mov 0x8010b648,%eax 801049e9: 83 ec 0c sub $0xc,%esp 801049ec: 50 push %eax 801049ed: e8 05 04 00 00 call 80104df7 <wakeup1> 801049f2: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 801049f5: 83 45 f4 7c addl $0x7c,-0xc(%ebp) 801049f9: 81 7d f4 94 48 11 80 cmpl $0x80114894,-0xc(%ebp) 80104a00: 72 bb jb 801049bd <exit+0xd4> } } // Jump into the scheduler, never to return. proc->state = ZOMBIE; 80104a02: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104a08: c7 40 0c 05 00 00 00 movl $0x5,0xc(%eax) sched(); 80104a0f: e8 fa 01 00 00 call 80104c0e <sched> panic("zombie exit"); 80104a14: 83 ec 0c sub $0xc,%esp 80104a17: 68 19 89 10 80 push $0x80108919 80104a1c: e8 46 bb ff ff call 80100567 <panic> 80104a21 <wait>: // Wait for a child process to exit and return its pid. // Return -1 if this process has no children. int wait(void) { 80104a21: 55 push %ebp 80104a22: 89 e5 mov %esp,%ebp 80104a24: 83 ec 18 sub $0x18,%esp struct proc *p; int havekids, pid; acquire(&ptable.lock); 80104a27: 83 ec 0c sub $0xc,%esp 80104a2a: 68 60 29 11 80 push $0x80112960 80104a2f: e8 10 06 00 00 call 80105044 <acquire> 80104a34: 83 c4 10 add $0x10,%esp for(;;){ // Scan through table looking for zombie children. havekids = 0; 80104a37: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104a3e: c7 45 f4 94 29 11 80 movl $0x80112994,-0xc(%ebp) 80104a45: e9 a6 00 00 00 jmp 80104af0 <wait+0xcf> if(p->parent != proc) 80104a4a: 8b 45 f4 mov -0xc(%ebp),%eax 80104a4d: 8b 50 14 mov 0x14(%eax),%edx 80104a50: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104a56: 39 c2 cmp %eax,%edx 80104a58: 0f 85 8d 00 00 00 jne 80104aeb <wait+0xca> continue; havekids = 1; 80104a5e: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) if(p->state == ZOMBIE){ 80104a65: 8b 45 f4 mov -0xc(%ebp),%eax 80104a68: 8b 40 0c mov 0xc(%eax),%eax 80104a6b: 83 f8 05 cmp $0x5,%eax 80104a6e: 75 7c jne 80104aec <wait+0xcb> // Found one. pid = p->pid; 80104a70: 8b 45 f4 mov -0xc(%ebp),%eax 80104a73: 8b 40 10 mov 0x10(%eax),%eax 80104a76: 89 45 ec mov %eax,-0x14(%ebp) kfree(p->kstack); 80104a79: 8b 45 f4 mov -0xc(%ebp),%eax 80104a7c: 8b 40 08 mov 0x8(%eax),%eax 80104a7f: 83 ec 0c sub $0xc,%esp 80104a82: 50 push %eax 80104a83: e8 45 e1 ff ff call 80102bcd <kfree> 80104a88: 83 c4 10 add $0x10,%esp p->kstack = 0; 80104a8b: 8b 45 f4 mov -0xc(%ebp),%eax 80104a8e: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) freevm(p->pgdir); 80104a95: 8b 45 f4 mov -0xc(%ebp),%eax 80104a98: 8b 40 04 mov 0x4(%eax),%eax 80104a9b: 83 ec 0c sub $0xc,%esp 80104a9e: 50 push %eax 80104a9f: e8 d5 37 00 00 call 80108279 <freevm> 80104aa4: 83 c4 10 add $0x10,%esp p->state = UNUSED; 80104aa7: 8b 45 f4 mov -0xc(%ebp),%eax 80104aaa: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) p->pid = 0; 80104ab1: 8b 45 f4 mov -0xc(%ebp),%eax 80104ab4: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax) p->parent = 0; 80104abb: 8b 45 f4 mov -0xc(%ebp),%eax 80104abe: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax) p->name[0] = 0; 80104ac5: 8b 45 f4 mov -0xc(%ebp),%eax 80104ac8: c6 40 6c 00 movb $0x0,0x6c(%eax) p->killed = 0; 80104acc: 8b 45 f4 mov -0xc(%ebp),%eax 80104acf: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax) release(&ptable.lock); 80104ad6: 83 ec 0c sub $0xc,%esp 80104ad9: 68 60 29 11 80 push $0x80112960 80104ade: e8 c8 05 00 00 call 801050ab <release> 80104ae3: 83 c4 10 add $0x10,%esp return pid; 80104ae6: 8b 45 ec mov -0x14(%ebp),%eax 80104ae9: eb 58 jmp 80104b43 <wait+0x122> continue; 80104aeb: 90 nop for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104aec: 83 45 f4 7c addl $0x7c,-0xc(%ebp) 80104af0: 81 7d f4 94 48 11 80 cmpl $0x80114894,-0xc(%ebp) 80104af7: 0f 82 4d ff ff ff jb 80104a4a <wait+0x29> } } // No point waiting if we don't have any children. if(!havekids || proc->killed){ 80104afd: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80104b01: 74 0d je 80104b10 <wait+0xef> 80104b03: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104b09: 8b 40 24 mov 0x24(%eax),%eax 80104b0c: 85 c0 test %eax,%eax 80104b0e: 74 17 je 80104b27 <wait+0x106> release(&ptable.lock); 80104b10: 83 ec 0c sub $0xc,%esp 80104b13: 68 60 29 11 80 push $0x80112960 80104b18: e8 8e 05 00 00 call 801050ab <release> 80104b1d: 83 c4 10 add $0x10,%esp return -1; 80104b20: b8 ff ff ff ff mov $0xffffffff,%eax 80104b25: eb 1c jmp 80104b43 <wait+0x122> } // Wait for children to exit. (See wakeup1 call in proc_exit.) sleep(proc, &ptable.lock); //DOC: wait-sleep 80104b27: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104b2d: 83 ec 08 sub $0x8,%esp 80104b30: 68 60 29 11 80 push $0x80112960 80104b35: 50 push %eax 80104b36: e8 10 02 00 00 call 80104d4b <sleep> 80104b3b: 83 c4 10 add $0x10,%esp havekids = 0; 80104b3e: e9 f4 fe ff ff jmp 80104a37 <wait+0x16> } } 80104b43: c9 leave 80104b44: c3 ret 80104b45 <scheduler>: // - swtch to start running that process // - eventually that process transfers control // via swtch back to the scheduler. void scheduler(void) { 80104b45: 55 push %ebp 80104b46: 89 e5 mov %esp,%ebp 80104b48: 83 ec 18 sub $0x18,%esp struct proc *p; int ran = 0; // CS550: to solve the 100%-CPU-utilization-when-idling problem 80104b4b: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) for(;;){ // Enable interrupts on this processor. sti(); 80104b52: e8 0f f9 ff ff call 80104466 <sti> // Loop over process table looking for process to run. acquire(&ptable.lock); 80104b57: 83 ec 0c sub $0xc,%esp 80104b5a: 68 60 29 11 80 push $0x80112960 80104b5f: e8 e0 04 00 00 call 80105044 <acquire> 80104b64: 83 c4 10 add $0x10,%esp ran = 0; 80104b67: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104b6e: c7 45 f4 94 29 11 80 movl $0x80112994,-0xc(%ebp) 80104b75: eb 6a jmp 80104be1 <scheduler+0x9c> if(p->state != RUNNABLE) 80104b77: 8b 45 f4 mov -0xc(%ebp),%eax 80104b7a: 8b 40 0c mov 0xc(%eax),%eax 80104b7d: 83 f8 03 cmp $0x3,%eax 80104b80: 75 5a jne 80104bdc <scheduler+0x97> continue; ran = 1; 80104b82: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) // Switch to chosen process. It is the process's job // to release ptable.lock and then reacquire it // before jumping back to us. proc = p; 80104b89: 8b 45 f4 mov -0xc(%ebp),%eax 80104b8c: 65 a3 04 00 00 00 mov %eax,%gs:0x4 switchuvm(p); 80104b92: 83 ec 0c sub $0xc,%esp 80104b95: ff 75 f4 pushl -0xc(%ebp) 80104b98: e8 95 32 00 00 call 80107e32 <switchuvm> 80104b9d: 83 c4 10 add $0x10,%esp p->state = RUNNING; 80104ba0: 8b 45 f4 mov -0xc(%ebp),%eax 80104ba3: c7 40 0c 04 00 00 00 movl $0x4,0xc(%eax) swtch(&cpu->scheduler, proc->context); 80104baa: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104bb0: 8b 40 1c mov 0x1c(%eax),%eax 80104bb3: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80104bba: 83 c2 04 add $0x4,%edx 80104bbd: 83 ec 08 sub $0x8,%esp 80104bc0: 50 push %eax 80104bc1: 52 push %edx 80104bc2: e8 54 09 00 00 call 8010551b <swtch> 80104bc7: 83 c4 10 add $0x10,%esp switchkvm(); 80104bca: e8 46 32 00 00 call 80107e15 <switchkvm> // Process is done running for now. // It should have changed its p->state before coming back. proc = 0; 80104bcf: 65 c7 05 04 00 00 00 movl $0x0,%gs:0x4 80104bd6: 00 00 00 00 80104bda: eb 01 jmp 80104bdd <scheduler+0x98> continue; 80104bdc: 90 nop for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104bdd: 83 45 f4 7c addl $0x7c,-0xc(%ebp) 80104be1: 81 7d f4 94 48 11 80 cmpl $0x80114894,-0xc(%ebp) 80104be8: 72 8d jb 80104b77 <scheduler+0x32> } release(&ptable.lock); 80104bea: 83 ec 0c sub $0xc,%esp 80104bed: 68 60 29 11 80 push $0x80112960 80104bf2: e8 b4 04 00 00 call 801050ab <release> 80104bf7: 83 c4 10 add $0x10,%esp if (ran == 0){ 80104bfa: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80104bfe: 0f 85 4e ff ff ff jne 80104b52 <scheduler+0xd> halt(); 80104c04: e8 64 f8 ff ff call 8010446d <halt> sti(); 80104c09: e9 44 ff ff ff jmp 80104b52 <scheduler+0xd> 80104c0e <sched>: // Enter scheduler. Must hold only ptable.lock // and have changed proc->state. void sched(void) { 80104c0e: 55 push %ebp 80104c0f: 89 e5 mov %esp,%ebp 80104c11: 83 ec 18 sub $0x18,%esp int intena; if(!holding(&ptable.lock)) 80104c14: 83 ec 0c sub $0xc,%esp 80104c17: 68 60 29 11 80 push $0x80112960 80104c1c: e8 56 05 00 00 call 80105177 <holding> 80104c21: 83 c4 10 add $0x10,%esp 80104c24: 85 c0 test %eax,%eax 80104c26: 75 0d jne 80104c35 <sched+0x27> panic("sched ptable.lock"); 80104c28: 83 ec 0c sub $0xc,%esp 80104c2b: 68 25 89 10 80 push $0x80108925 80104c30: e8 32 b9 ff ff call 80100567 <panic> if(cpu->ncli != 1) 80104c35: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80104c3b: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax 80104c41: 83 f8 01 cmp $0x1,%eax 80104c44: 74 0d je 80104c53 <sched+0x45> panic("sched locks"); 80104c46: 83 ec 0c sub $0xc,%esp 80104c49: 68 37 89 10 80 push $0x80108937 80104c4e: e8 14 b9 ff ff call 80100567 <panic> if(proc->state == RUNNING) 80104c53: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104c59: 8b 40 0c mov 0xc(%eax),%eax 80104c5c: 83 f8 04 cmp $0x4,%eax 80104c5f: 75 0d jne 80104c6e <sched+0x60> panic("sched running"); 80104c61: 83 ec 0c sub $0xc,%esp 80104c64: 68 43 89 10 80 push $0x80108943 80104c69: e8 f9 b8 ff ff call 80100567 <panic> if(readeflags()&FL_IF) 80104c6e: e8 e3 f7 ff ff call 80104456 <readeflags> 80104c73: 25 00 02 00 00 and $0x200,%eax 80104c78: 85 c0 test %eax,%eax 80104c7a: 74 0d je 80104c89 <sched+0x7b> panic("sched interruptible"); 80104c7c: 83 ec 0c sub $0xc,%esp 80104c7f: 68 51 89 10 80 push $0x80108951 80104c84: e8 de b8 ff ff call 80100567 <panic> intena = cpu->intena; 80104c89: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80104c8f: 8b 80 b0 00 00 00 mov 0xb0(%eax),%eax 80104c95: 89 45 f4 mov %eax,-0xc(%ebp) swtch(&proc->context, cpu->scheduler); 80104c98: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80104c9e: 8b 40 04 mov 0x4(%eax),%eax 80104ca1: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx 80104ca8: 83 c2 1c add $0x1c,%edx 80104cab: 83 ec 08 sub $0x8,%esp 80104cae: 50 push %eax 80104caf: 52 push %edx 80104cb0: e8 66 08 00 00 call 8010551b <swtch> 80104cb5: 83 c4 10 add $0x10,%esp cpu->intena = intena; 80104cb8: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80104cbe: 8b 55 f4 mov -0xc(%ebp),%edx 80104cc1: 89 90 b0 00 00 00 mov %edx,0xb0(%eax) } 80104cc7: 90 nop 80104cc8: c9 leave 80104cc9: c3 ret 80104cca <yield>: // Give up the CPU for one scheduling round. void yield(void) { 80104cca: 55 push %ebp 80104ccb: 89 e5 mov %esp,%ebp 80104ccd: 83 ec 08 sub $0x8,%esp acquire(&ptable.lock); //DOC: yieldlock 80104cd0: 83 ec 0c sub $0xc,%esp 80104cd3: 68 60 29 11 80 push $0x80112960 80104cd8: e8 67 03 00 00 call 80105044 <acquire> 80104cdd: 83 c4 10 add $0x10,%esp proc->state = RUNNABLE; 80104ce0: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104ce6: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) sched(); 80104ced: e8 1c ff ff ff call 80104c0e <sched> release(&ptable.lock); 80104cf2: 83 ec 0c sub $0xc,%esp 80104cf5: 68 60 29 11 80 push $0x80112960 80104cfa: e8 ac 03 00 00 call 801050ab <release> 80104cff: 83 c4 10 add $0x10,%esp } 80104d02: 90 nop 80104d03: c9 leave 80104d04: c3 ret 80104d05 <forkret>: // A fork child's very first scheduling by scheduler() // will swtch here. "Return" to user space. void forkret(void) { 80104d05: 55 push %ebp 80104d06: 89 e5 mov %esp,%ebp 80104d08: 83 ec 08 sub $0x8,%esp static int first = 1; // Still holding ptable.lock from scheduler. release(&ptable.lock); 80104d0b: 83 ec 0c sub $0xc,%esp 80104d0e: 68 60 29 11 80 push $0x80112960 80104d13: e8 93 03 00 00 call 801050ab <release> 80104d18: 83 c4 10 add $0x10,%esp if (first) { 80104d1b: a1 08 b0 10 80 mov 0x8010b008,%eax 80104d20: 85 c0 test %eax,%eax 80104d22: 74 24 je 80104d48 <forkret+0x43> // Some initialization functions must be run in the context // of a regular process (e.g., they call sleep), and thus cannot // be run from main(). first = 0; 80104d24: c7 05 08 b0 10 80 00 movl $0x0,0x8010b008 80104d2b: 00 00 00 iinit(ROOTDEV); 80104d2e: 83 ec 0c sub $0xc,%esp 80104d31: 6a 01 push $0x1 80104d33: e8 11 c9 ff ff call 80101649 <iinit> 80104d38: 83 c4 10 add $0x10,%esp initlog(ROOTDEV); 80104d3b: 83 ec 0c sub $0xc,%esp 80104d3e: 6a 01 push $0x1 80104d40: e8 f3 e5 ff ff call 80103338 <initlog> 80104d45: 83 c4 10 add $0x10,%esp } // Return to "caller", actually trapret (see allocproc). } 80104d48: 90 nop 80104d49: c9 leave 80104d4a: c3 ret 80104d4b <sleep>: // Atomically release lock and sleep on chan. // Reacquires lock when awakened. void sleep(void *chan, struct spinlock *lk) { 80104d4b: 55 push %ebp 80104d4c: 89 e5 mov %esp,%ebp 80104d4e: 83 ec 08 sub $0x8,%esp if(proc == 0) 80104d51: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104d57: 85 c0 test %eax,%eax 80104d59: 75 0d jne 80104d68 <sleep+0x1d> panic("sleep"); 80104d5b: 83 ec 0c sub $0xc,%esp 80104d5e: 68 65 89 10 80 push $0x80108965 80104d63: e8 ff b7 ff ff call 80100567 <panic> if(lk == 0) 80104d68: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 80104d6c: 75 0d jne 80104d7b <sleep+0x30> panic("sleep without lk"); 80104d6e: 83 ec 0c sub $0xc,%esp 80104d71: 68 6b 89 10 80 push $0x8010896b 80104d76: e8 ec b7 ff ff call 80100567 <panic> // change p->state and then call sched. // Once we hold ptable.lock, we can be // guaranteed that we won't miss any wakeup // (wakeup runs with ptable.lock locked), // so it's okay to release lk. if(lk != &ptable.lock){ //DOC: sleeplock0 80104d7b: 81 7d 0c 60 29 11 80 cmpl $0x80112960,0xc(%ebp) 80104d82: 74 1e je 80104da2 <sleep+0x57> acquire(&ptable.lock); //DOC: sleeplock1 80104d84: 83 ec 0c sub $0xc,%esp 80104d87: 68 60 29 11 80 push $0x80112960 80104d8c: e8 b3 02 00 00 call 80105044 <acquire> 80104d91: 83 c4 10 add $0x10,%esp release(lk); 80104d94: 83 ec 0c sub $0xc,%esp 80104d97: ff 75 0c pushl 0xc(%ebp) 80104d9a: e8 0c 03 00 00 call 801050ab <release> 80104d9f: 83 c4 10 add $0x10,%esp } // Go to sleep. proc->chan = chan; 80104da2: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104da8: 8b 55 08 mov 0x8(%ebp),%edx 80104dab: 89 50 20 mov %edx,0x20(%eax) proc->state = SLEEPING; 80104dae: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104db4: c7 40 0c 02 00 00 00 movl $0x2,0xc(%eax) sched(); 80104dbb: e8 4e fe ff ff call 80104c0e <sched> // Tidy up. proc->chan = 0; 80104dc0: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104dc6: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) // Reacquire original lock. if(lk != &ptable.lock){ //DOC: sleeplock2 80104dcd: 81 7d 0c 60 29 11 80 cmpl $0x80112960,0xc(%ebp) 80104dd4: 74 1e je 80104df4 <sleep+0xa9> release(&ptable.lock); 80104dd6: 83 ec 0c sub $0xc,%esp 80104dd9: 68 60 29 11 80 push $0x80112960 80104dde: e8 c8 02 00 00 call 801050ab <release> 80104de3: 83 c4 10 add $0x10,%esp acquire(lk); 80104de6: 83 ec 0c sub $0xc,%esp 80104de9: ff 75 0c pushl 0xc(%ebp) 80104dec: e8 53 02 00 00 call 80105044 <acquire> 80104df1: 83 c4 10 add $0x10,%esp } } 80104df4: 90 nop 80104df5: c9 leave 80104df6: c3 ret 80104df7 <wakeup1>: //PAGEBREAK! // Wake up all processes sleeping on chan. // The ptable lock must be held. static void wakeup1(void *chan) { 80104df7: 55 push %ebp 80104df8: 89 e5 mov %esp,%ebp 80104dfa: 83 ec 10 sub $0x10,%esp struct proc *p; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80104dfd: c7 45 fc 94 29 11 80 movl $0x80112994,-0x4(%ebp) 80104e04: eb 24 jmp 80104e2a <wakeup1+0x33> if(p->state == SLEEPING && p->chan == chan) 80104e06: 8b 45 fc mov -0x4(%ebp),%eax 80104e09: 8b 40 0c mov 0xc(%eax),%eax 80104e0c: 83 f8 02 cmp $0x2,%eax 80104e0f: 75 15 jne 80104e26 <wakeup1+0x2f> 80104e11: 8b 45 fc mov -0x4(%ebp),%eax 80104e14: 8b 40 20 mov 0x20(%eax),%eax 80104e17: 39 45 08 cmp %eax,0x8(%ebp) 80104e1a: 75 0a jne 80104e26 <wakeup1+0x2f> p->state = RUNNABLE; 80104e1c: 8b 45 fc mov -0x4(%ebp),%eax 80104e1f: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80104e26: 83 45 fc 7c addl $0x7c,-0x4(%ebp) 80104e2a: 81 7d fc 94 48 11 80 cmpl $0x80114894,-0x4(%ebp) 80104e31: 72 d3 jb 80104e06 <wakeup1+0xf> } 80104e33: 90 nop 80104e34: c9 leave 80104e35: c3 ret 80104e36 <wakeup>: // Wake up all processes sleeping on chan. void wakeup(void *chan) { 80104e36: 55 push %ebp 80104e37: 89 e5 mov %esp,%ebp 80104e39: 83 ec 08 sub $0x8,%esp acquire(&ptable.lock); 80104e3c: 83 ec 0c sub $0xc,%esp 80104e3f: 68 60 29 11 80 push $0x80112960 80104e44: e8 fb 01 00 00 call 80105044 <acquire> 80104e49: 83 c4 10 add $0x10,%esp wakeup1(chan); 80104e4c: 83 ec 0c sub $0xc,%esp 80104e4f: ff 75 08 pushl 0x8(%ebp) 80104e52: e8 a0 ff ff ff call 80104df7 <wakeup1> 80104e57: 83 c4 10 add $0x10,%esp release(&ptable.lock); 80104e5a: 83 ec 0c sub $0xc,%esp 80104e5d: 68 60 29 11 80 push $0x80112960 80104e62: e8 44 02 00 00 call 801050ab <release> 80104e67: 83 c4 10 add $0x10,%esp } 80104e6a: 90 nop 80104e6b: c9 leave 80104e6c: c3 ret 80104e6d <kill>: // Kill the process with the given pid. // Process won't exit until it returns // to user space (see trap in trap.c). int kill(int pid) { 80104e6d: 55 push %ebp 80104e6e: 89 e5 mov %esp,%ebp 80104e70: 83 ec 18 sub $0x18,%esp struct proc *p; acquire(&ptable.lock); 80104e73: 83 ec 0c sub $0xc,%esp 80104e76: 68 60 29 11 80 push $0x80112960 80104e7b: e8 c4 01 00 00 call 80105044 <acquire> 80104e80: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104e83: c7 45 f4 94 29 11 80 movl $0x80112994,-0xc(%ebp) 80104e8a: eb 45 jmp 80104ed1 <kill+0x64> if(p->pid == pid){ 80104e8c: 8b 45 f4 mov -0xc(%ebp),%eax 80104e8f: 8b 40 10 mov 0x10(%eax),%eax 80104e92: 39 45 08 cmp %eax,0x8(%ebp) 80104e95: 75 36 jne 80104ecd <kill+0x60> p->killed = 1; 80104e97: 8b 45 f4 mov -0xc(%ebp),%eax 80104e9a: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax) // Wake process from sleep if necessary. if(p->state == SLEEPING) 80104ea1: 8b 45 f4 mov -0xc(%ebp),%eax 80104ea4: 8b 40 0c mov 0xc(%eax),%eax 80104ea7: 83 f8 02 cmp $0x2,%eax 80104eaa: 75 0a jne 80104eb6 <kill+0x49> p->state = RUNNABLE; 80104eac: 8b 45 f4 mov -0xc(%ebp),%eax 80104eaf: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) release(&ptable.lock); 80104eb6: 83 ec 0c sub $0xc,%esp 80104eb9: 68 60 29 11 80 push $0x80112960 80104ebe: e8 e8 01 00 00 call 801050ab <release> 80104ec3: 83 c4 10 add $0x10,%esp return 0; 80104ec6: b8 00 00 00 00 mov $0x0,%eax 80104ecb: eb 22 jmp 80104eef <kill+0x82> for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104ecd: 83 45 f4 7c addl $0x7c,-0xc(%ebp) 80104ed1: 81 7d f4 94 48 11 80 cmpl $0x80114894,-0xc(%ebp) 80104ed8: 72 b2 jb 80104e8c <kill+0x1f> } } release(&ptable.lock); 80104eda: 83 ec 0c sub $0xc,%esp 80104edd: 68 60 29 11 80 push $0x80112960 80104ee2: e8 c4 01 00 00 call 801050ab <release> 80104ee7: 83 c4 10 add $0x10,%esp return -1; 80104eea: b8 ff ff ff ff mov $0xffffffff,%eax } 80104eef: c9 leave 80104ef0: c3 ret 80104ef1 <procdump>: // Print a process listing to console. For debugging. // Runs when user types ^P on console. // No lock to avoid wedging a stuck machine further. void procdump(void) { 80104ef1: 55 push %ebp 80104ef2: 89 e5 mov %esp,%ebp 80104ef4: 83 ec 48 sub $0x48,%esp int i; struct proc *p; char *state; uint pc[10]; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104ef7: c7 45 f0 94 29 11 80 movl $0x80112994,-0x10(%ebp) 80104efe: e9 d7 00 00 00 jmp 80104fda <procdump+0xe9> if(p->state == UNUSED) 80104f03: 8b 45 f0 mov -0x10(%ebp),%eax 80104f06: 8b 40 0c mov 0xc(%eax),%eax 80104f09: 85 c0 test %eax,%eax 80104f0b: 0f 84 c4 00 00 00 je 80104fd5 <procdump+0xe4> continue; if(p->state >= 0 && p->state < NELEM(states) && states[p->state]) 80104f11: 8b 45 f0 mov -0x10(%ebp),%eax 80104f14: 8b 40 0c mov 0xc(%eax),%eax 80104f17: 83 f8 05 cmp $0x5,%eax 80104f1a: 77 23 ja 80104f3f <procdump+0x4e> 80104f1c: 8b 45 f0 mov -0x10(%ebp),%eax 80104f1f: 8b 40 0c mov 0xc(%eax),%eax 80104f22: 8b 04 85 0c b0 10 80 mov -0x7fef4ff4(,%eax,4),%eax 80104f29: 85 c0 test %eax,%eax 80104f2b: 74 12 je 80104f3f <procdump+0x4e> state = states[p->state]; 80104f2d: 8b 45 f0 mov -0x10(%ebp),%eax 80104f30: 8b 40 0c mov 0xc(%eax),%eax 80104f33: 8b 04 85 0c b0 10 80 mov -0x7fef4ff4(,%eax,4),%eax 80104f3a: 89 45 ec mov %eax,-0x14(%ebp) 80104f3d: eb 07 jmp 80104f46 <procdump+0x55> else state = "???"; 80104f3f: c7 45 ec 7c 89 10 80 movl $0x8010897c,-0x14(%ebp) cprintf("%d %s %s", p->pid, state, p->name); 80104f46: 8b 45 f0 mov -0x10(%ebp),%eax 80104f49: 8d 50 6c lea 0x6c(%eax),%edx 80104f4c: 8b 45 f0 mov -0x10(%ebp),%eax 80104f4f: 8b 40 10 mov 0x10(%eax),%eax 80104f52: 52 push %edx 80104f53: ff 75 ec pushl -0x14(%ebp) 80104f56: 50 push %eax 80104f57: 68 80 89 10 80 push $0x80108980 80104f5c: e8 63 b4 ff ff call 801003c4 <cprintf> 80104f61: 83 c4 10 add $0x10,%esp if(p->state == SLEEPING){ 80104f64: 8b 45 f0 mov -0x10(%ebp),%eax 80104f67: 8b 40 0c mov 0xc(%eax),%eax 80104f6a: 83 f8 02 cmp $0x2,%eax 80104f6d: 75 54 jne 80104fc3 <procdump+0xd2> getcallerpcs((uint*)p->context->ebp+2, pc); 80104f6f: 8b 45 f0 mov -0x10(%ebp),%eax 80104f72: 8b 40 1c mov 0x1c(%eax),%eax 80104f75: 8b 40 0c mov 0xc(%eax),%eax 80104f78: 83 c0 08 add $0x8,%eax 80104f7b: 89 c2 mov %eax,%edx 80104f7d: 83 ec 08 sub $0x8,%esp 80104f80: 8d 45 c4 lea -0x3c(%ebp),%eax 80104f83: 50 push %eax 80104f84: 52 push %edx 80104f85: e8 73 01 00 00 call 801050fd <getcallerpcs> 80104f8a: 83 c4 10 add $0x10,%esp for(i=0; i<10 && pc[i] != 0; i++) 80104f8d: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80104f94: eb 1c jmp 80104fb2 <procdump+0xc1> cprintf(" %p", pc[i]); 80104f96: 8b 45 f4 mov -0xc(%ebp),%eax 80104f99: 8b 44 85 c4 mov -0x3c(%ebp,%eax,4),%eax 80104f9d: 83 ec 08 sub $0x8,%esp 80104fa0: 50 push %eax 80104fa1: 68 89 89 10 80 push $0x80108989 80104fa6: e8 19 b4 ff ff call 801003c4 <cprintf> 80104fab: 83 c4 10 add $0x10,%esp for(i=0; i<10 && pc[i] != 0; i++) 80104fae: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80104fb2: 83 7d f4 09 cmpl $0x9,-0xc(%ebp) 80104fb6: 7f 0b jg 80104fc3 <procdump+0xd2> 80104fb8: 8b 45 f4 mov -0xc(%ebp),%eax 80104fbb: 8b 44 85 c4 mov -0x3c(%ebp,%eax,4),%eax 80104fbf: 85 c0 test %eax,%eax 80104fc1: 75 d3 jne 80104f96 <procdump+0xa5> } cprintf("\n"); 80104fc3: 83 ec 0c sub $0xc,%esp 80104fc6: 68 8d 89 10 80 push $0x8010898d 80104fcb: e8 f4 b3 ff ff call 801003c4 <cprintf> 80104fd0: 83 c4 10 add $0x10,%esp 80104fd3: eb 01 jmp 80104fd6 <procdump+0xe5> continue; 80104fd5: 90 nop for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104fd6: 83 45 f0 7c addl $0x7c,-0x10(%ebp) 80104fda: 81 7d f0 94 48 11 80 cmpl $0x80114894,-0x10(%ebp) 80104fe1: 0f 82 1c ff ff ff jb 80104f03 <procdump+0x12> } } 80104fe7: 90 nop 80104fe8: c9 leave 80104fe9: c3 ret 80104fea <readeflags>: { 80104fea: 55 push %ebp 80104feb: 89 e5 mov %esp,%ebp 80104fed: 83 ec 10 sub $0x10,%esp asm volatile("pushfl; popl %0" : "=r" (eflags)); 80104ff0: 9c pushf 80104ff1: 58 pop %eax 80104ff2: 89 45 fc mov %eax,-0x4(%ebp) return eflags; 80104ff5: 8b 45 fc mov -0x4(%ebp),%eax } 80104ff8: c9 leave 80104ff9: c3 ret 80104ffa <cli>: { 80104ffa: 55 push %ebp 80104ffb: 89 e5 mov %esp,%ebp asm volatile("cli"); 80104ffd: fa cli } 80104ffe: 90 nop 80104fff: 5d pop %ebp 80105000: c3 ret 80105001 <sti>: { 80105001: 55 push %ebp 80105002: 89 e5 mov %esp,%ebp asm volatile("sti"); 80105004: fb sti } 80105005: 90 nop 80105006: 5d pop %ebp 80105007: c3 ret 80105008 <xchg>: { 80105008: 55 push %ebp 80105009: 89 e5 mov %esp,%ebp 8010500b: 83 ec 10 sub $0x10,%esp asm volatile("lock; xchgl %0, %1" : 8010500e: 8b 55 08 mov 0x8(%ebp),%edx 80105011: 8b 45 0c mov 0xc(%ebp),%eax 80105014: 8b 4d 08 mov 0x8(%ebp),%ecx 80105017: f0 87 02 lock xchg %eax,(%edx) 8010501a: 89 45 fc mov %eax,-0x4(%ebp) return result; 8010501d: 8b 45 fc mov -0x4(%ebp),%eax } 80105020: c9 leave 80105021: c3 ret 80105022 <initlock>: #include "proc.h" #include "spinlock.h" void initlock(struct spinlock *lk, char *name) { 80105022: 55 push %ebp 80105023: 89 e5 mov %esp,%ebp lk->name = name; 80105025: 8b 45 08 mov 0x8(%ebp),%eax 80105028: 8b 55 0c mov 0xc(%ebp),%edx 8010502b: 89 50 04 mov %edx,0x4(%eax) lk->locked = 0; 8010502e: 8b 45 08 mov 0x8(%ebp),%eax 80105031: c7 00 00 00 00 00 movl $0x0,(%eax) lk->cpu = 0; 80105037: 8b 45 08 mov 0x8(%ebp),%eax 8010503a: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) } 80105041: 90 nop 80105042: 5d pop %ebp 80105043: c3 ret 80105044 <acquire>: // Loops (spins) until the lock is acquired. // Holding a lock for a long time may cause // other CPUs to waste time spinning to acquire it. void acquire(struct spinlock *lk) { 80105044: 55 push %ebp 80105045: 89 e5 mov %esp,%ebp 80105047: 83 ec 08 sub $0x8,%esp pushcli(); // disable interrupts to avoid deadlock. 8010504a: e8 52 01 00 00 call 801051a1 <pushcli> if(holding(lk)) 8010504f: 8b 45 08 mov 0x8(%ebp),%eax 80105052: 83 ec 0c sub $0xc,%esp 80105055: 50 push %eax 80105056: e8 1c 01 00 00 call 80105177 <holding> 8010505b: 83 c4 10 add $0x10,%esp 8010505e: 85 c0 test %eax,%eax 80105060: 74 0d je 8010506f <acquire+0x2b> panic("acquire"); 80105062: 83 ec 0c sub $0xc,%esp 80105065: 68 b9 89 10 80 push $0x801089b9 8010506a: e8 f8 b4 ff ff call 80100567 <panic> // The xchg is atomic. // It also serializes, so that reads after acquire are not // reordered before it. while(xchg(&lk->locked, 1) != 0) 8010506f: 90 nop 80105070: 8b 45 08 mov 0x8(%ebp),%eax 80105073: 83 ec 08 sub $0x8,%esp 80105076: 6a 01 push $0x1 80105078: 50 push %eax 80105079: e8 8a ff ff ff call 80105008 <xchg> 8010507e: 83 c4 10 add $0x10,%esp 80105081: 85 c0 test %eax,%eax 80105083: 75 eb jne 80105070 <acquire+0x2c> ; // Record info about lock acquisition for debugging. lk->cpu = cpu; 80105085: 8b 45 08 mov 0x8(%ebp),%eax 80105088: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 8010508f: 89 50 08 mov %edx,0x8(%eax) getcallerpcs(&lk, lk->pcs); 80105092: 8b 45 08 mov 0x8(%ebp),%eax 80105095: 83 c0 0c add $0xc,%eax 80105098: 83 ec 08 sub $0x8,%esp 8010509b: 50 push %eax 8010509c: 8d 45 08 lea 0x8(%ebp),%eax 8010509f: 50 push %eax 801050a0: e8 58 00 00 00 call 801050fd <getcallerpcs> 801050a5: 83 c4 10 add $0x10,%esp } 801050a8: 90 nop 801050a9: c9 leave 801050aa: c3 ret 801050ab <release>: // Release the lock. void release(struct spinlock *lk) { 801050ab: 55 push %ebp 801050ac: 89 e5 mov %esp,%ebp 801050ae: 83 ec 08 sub $0x8,%esp if(!holding(lk)) 801050b1: 83 ec 0c sub $0xc,%esp 801050b4: ff 75 08 pushl 0x8(%ebp) 801050b7: e8 bb 00 00 00 call 80105177 <holding> 801050bc: 83 c4 10 add $0x10,%esp 801050bf: 85 c0 test %eax,%eax 801050c1: 75 0d jne 801050d0 <release+0x25> panic("release"); 801050c3: 83 ec 0c sub $0xc,%esp 801050c6: 68 c1 89 10 80 push $0x801089c1 801050cb: e8 97 b4 ff ff call 80100567 <panic> lk->pcs[0] = 0; 801050d0: 8b 45 08 mov 0x8(%ebp),%eax 801050d3: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) lk->cpu = 0; 801050da: 8b 45 08 mov 0x8(%ebp),%eax 801050dd: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) // But the 2007 Intel 64 Architecture Memory Ordering White // Paper says that Intel 64 and IA-32 will not move a load // after a store. So lock->locked = 0 would work here. // The xchg being asm volatile ensures gcc emits it after // the above assignments (and after the critical section). xchg(&lk->locked, 0); 801050e4: 8b 45 08 mov 0x8(%ebp),%eax 801050e7: 83 ec 08 sub $0x8,%esp 801050ea: 6a 00 push $0x0 801050ec: 50 push %eax 801050ed: e8 16 ff ff ff call 80105008 <xchg> 801050f2: 83 c4 10 add $0x10,%esp popcli(); 801050f5: e8 ec 00 00 00 call 801051e6 <popcli> } 801050fa: 90 nop 801050fb: c9 leave 801050fc: c3 ret 801050fd <getcallerpcs>: // Record the current call stack in pcs[] by following the %ebp chain. void getcallerpcs(void *v, uint pcs[]) { 801050fd: 55 push %ebp 801050fe: 89 e5 mov %esp,%ebp 80105100: 83 ec 10 sub $0x10,%esp uint *ebp; int i; ebp = (uint*)v - 2; 80105103: 8b 45 08 mov 0x8(%ebp),%eax 80105106: 83 e8 08 sub $0x8,%eax 80105109: 89 45 fc mov %eax,-0x4(%ebp) for(i = 0; i < 10; i++){ 8010510c: c7 45 f8 00 00 00 00 movl $0x0,-0x8(%ebp) 80105113: eb 38 jmp 8010514d <getcallerpcs+0x50> if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) 80105115: 83 7d fc 00 cmpl $0x0,-0x4(%ebp) 80105119: 74 53 je 8010516e <getcallerpcs+0x71> 8010511b: 81 7d fc ff ff ff 7f cmpl $0x7fffffff,-0x4(%ebp) 80105122: 76 4a jbe 8010516e <getcallerpcs+0x71> 80105124: 83 7d fc ff cmpl $0xffffffff,-0x4(%ebp) 80105128: 74 44 je 8010516e <getcallerpcs+0x71> break; pcs[i] = ebp[1]; // saved %eip 8010512a: 8b 45 f8 mov -0x8(%ebp),%eax 8010512d: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80105134: 8b 45 0c mov 0xc(%ebp),%eax 80105137: 01 c2 add %eax,%edx 80105139: 8b 45 fc mov -0x4(%ebp),%eax 8010513c: 8b 40 04 mov 0x4(%eax),%eax 8010513f: 89 02 mov %eax,(%edx) ebp = (uint*)ebp[0]; // saved %ebp 80105141: 8b 45 fc mov -0x4(%ebp),%eax 80105144: 8b 00 mov (%eax),%eax 80105146: 89 45 fc mov %eax,-0x4(%ebp) for(i = 0; i < 10; i++){ 80105149: 83 45 f8 01 addl $0x1,-0x8(%ebp) 8010514d: 83 7d f8 09 cmpl $0x9,-0x8(%ebp) 80105151: 7e c2 jle 80105115 <getcallerpcs+0x18> } for(; i < 10; i++) 80105153: eb 19 jmp 8010516e <getcallerpcs+0x71> pcs[i] = 0; 80105155: 8b 45 f8 mov -0x8(%ebp),%eax 80105158: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 8010515f: 8b 45 0c mov 0xc(%ebp),%eax 80105162: 01 d0 add %edx,%eax 80105164: c7 00 00 00 00 00 movl $0x0,(%eax) for(; i < 10; i++) 8010516a: 83 45 f8 01 addl $0x1,-0x8(%ebp) 8010516e: 83 7d f8 09 cmpl $0x9,-0x8(%ebp) 80105172: 7e e1 jle 80105155 <getcallerpcs+0x58> } 80105174: 90 nop 80105175: c9 leave 80105176: c3 ret 80105177 <holding>: // Check whether this cpu is holding the lock. int holding(struct spinlock *lock) { 80105177: 55 push %ebp 80105178: 89 e5 mov %esp,%ebp return lock->locked && lock->cpu == cpu; 8010517a: 8b 45 08 mov 0x8(%ebp),%eax 8010517d: 8b 00 mov (%eax),%eax 8010517f: 85 c0 test %eax,%eax 80105181: 74 17 je 8010519a <holding+0x23> 80105183: 8b 45 08 mov 0x8(%ebp),%eax 80105186: 8b 50 08 mov 0x8(%eax),%edx 80105189: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010518f: 39 c2 cmp %eax,%edx 80105191: 75 07 jne 8010519a <holding+0x23> 80105193: b8 01 00 00 00 mov $0x1,%eax 80105198: eb 05 jmp 8010519f <holding+0x28> 8010519a: b8 00 00 00 00 mov $0x0,%eax } 8010519f: 5d pop %ebp 801051a0: c3 ret 801051a1 <pushcli>: // it takes two popcli to undo two pushcli. Also, if interrupts // are off, then pushcli, popcli leaves them off. void pushcli(void) { 801051a1: 55 push %ebp 801051a2: 89 e5 mov %esp,%ebp 801051a4: 83 ec 10 sub $0x10,%esp int eflags; eflags = readeflags(); 801051a7: e8 3e fe ff ff call 80104fea <readeflags> 801051ac: 89 45 fc mov %eax,-0x4(%ebp) cli(); 801051af: e8 46 fe ff ff call 80104ffa <cli> if(cpu->ncli++ == 0) 801051b4: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 801051bb: 8b 82 ac 00 00 00 mov 0xac(%edx),%eax 801051c1: 8d 48 01 lea 0x1(%eax),%ecx 801051c4: 89 8a ac 00 00 00 mov %ecx,0xac(%edx) 801051ca: 85 c0 test %eax,%eax 801051cc: 75 15 jne 801051e3 <pushcli+0x42> cpu->intena = eflags & FL_IF; 801051ce: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801051d4: 8b 55 fc mov -0x4(%ebp),%edx 801051d7: 81 e2 00 02 00 00 and $0x200,%edx 801051dd: 89 90 b0 00 00 00 mov %edx,0xb0(%eax) } 801051e3: 90 nop 801051e4: c9 leave 801051e5: c3 ret 801051e6 <popcli>: void popcli(void) { 801051e6: 55 push %ebp 801051e7: 89 e5 mov %esp,%ebp 801051e9: 83 ec 08 sub $0x8,%esp if(readeflags()&FL_IF) 801051ec: e8 f9 fd ff ff call 80104fea <readeflags> 801051f1: 25 00 02 00 00 and $0x200,%eax 801051f6: 85 c0 test %eax,%eax 801051f8: 74 0d je 80105207 <popcli+0x21> panic("popcli - interruptible"); 801051fa: 83 ec 0c sub $0xc,%esp 801051fd: 68 c9 89 10 80 push $0x801089c9 80105202: e8 60 b3 ff ff call 80100567 <panic> if(--cpu->ncli < 0) 80105207: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010520d: 8b 90 ac 00 00 00 mov 0xac(%eax),%edx 80105213: 83 ea 01 sub $0x1,%edx 80105216: 89 90 ac 00 00 00 mov %edx,0xac(%eax) 8010521c: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax 80105222: 85 c0 test %eax,%eax 80105224: 79 0d jns 80105233 <popcli+0x4d> panic("popcli"); 80105226: 83 ec 0c sub $0xc,%esp 80105229: 68 e0 89 10 80 push $0x801089e0 8010522e: e8 34 b3 ff ff call 80100567 <panic> if(cpu->ncli == 0 && cpu->intena) 80105233: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80105239: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax 8010523f: 85 c0 test %eax,%eax 80105241: 75 15 jne 80105258 <popcli+0x72> 80105243: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80105249: 8b 80 b0 00 00 00 mov 0xb0(%eax),%eax 8010524f: 85 c0 test %eax,%eax 80105251: 74 05 je 80105258 <popcli+0x72> sti(); 80105253: e8 a9 fd ff ff call 80105001 <sti> } 80105258: 90 nop 80105259: c9 leave 8010525a: c3 ret 8010525b <stosb>: { 8010525b: 55 push %ebp 8010525c: 89 e5 mov %esp,%ebp 8010525e: 57 push %edi 8010525f: 53 push %ebx asm volatile("cld; rep stosb" : 80105260: 8b 4d 08 mov 0x8(%ebp),%ecx 80105263: 8b 55 10 mov 0x10(%ebp),%edx 80105266: 8b 45 0c mov 0xc(%ebp),%eax 80105269: 89 cb mov %ecx,%ebx 8010526b: 89 df mov %ebx,%edi 8010526d: 89 d1 mov %edx,%ecx 8010526f: fc cld 80105270: f3 aa rep stos %al,%es:(%edi) 80105272: 89 ca mov %ecx,%edx 80105274: 89 fb mov %edi,%ebx 80105276: 89 5d 08 mov %ebx,0x8(%ebp) 80105279: 89 55 10 mov %edx,0x10(%ebp) } 8010527c: 90 nop 8010527d: 5b pop %ebx 8010527e: 5f pop %edi 8010527f: 5d pop %ebp 80105280: c3 ret 80105281 <stosl>: { 80105281: 55 push %ebp 80105282: 89 e5 mov %esp,%ebp 80105284: 57 push %edi 80105285: 53 push %ebx asm volatile("cld; rep stosl" : 80105286: 8b 4d 08 mov 0x8(%ebp),%ecx 80105289: 8b 55 10 mov 0x10(%ebp),%edx 8010528c: 8b 45 0c mov 0xc(%ebp),%eax 8010528f: 89 cb mov %ecx,%ebx 80105291: 89 df mov %ebx,%edi 80105293: 89 d1 mov %edx,%ecx 80105295: fc cld 80105296: f3 ab rep stos %eax,%es:(%edi) 80105298: 89 ca mov %ecx,%edx 8010529a: 89 fb mov %edi,%ebx 8010529c: 89 5d 08 mov %ebx,0x8(%ebp) 8010529f: 89 55 10 mov %edx,0x10(%ebp) } 801052a2: 90 nop 801052a3: 5b pop %ebx 801052a4: 5f pop %edi 801052a5: 5d pop %ebp 801052a6: c3 ret 801052a7 <memset>: #include "types.h" #include "x86.h" void* memset(void *dst, int c, uint n) { 801052a7: 55 push %ebp 801052a8: 89 e5 mov %esp,%ebp if ((int)dst%4 == 0 && n%4 == 0){ 801052aa: 8b 45 08 mov 0x8(%ebp),%eax 801052ad: 83 e0 03 and $0x3,%eax 801052b0: 85 c0 test %eax,%eax 801052b2: 75 43 jne 801052f7 <memset+0x50> 801052b4: 8b 45 10 mov 0x10(%ebp),%eax 801052b7: 83 e0 03 and $0x3,%eax 801052ba: 85 c0 test %eax,%eax 801052bc: 75 39 jne 801052f7 <memset+0x50> c &= 0xFF; 801052be: 81 65 0c ff 00 00 00 andl $0xff,0xc(%ebp) stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4); 801052c5: 8b 45 10 mov 0x10(%ebp),%eax 801052c8: c1 e8 02 shr $0x2,%eax 801052cb: 89 c1 mov %eax,%ecx 801052cd: 8b 45 0c mov 0xc(%ebp),%eax 801052d0: c1 e0 18 shl $0x18,%eax 801052d3: 89 c2 mov %eax,%edx 801052d5: 8b 45 0c mov 0xc(%ebp),%eax 801052d8: c1 e0 10 shl $0x10,%eax 801052db: 09 c2 or %eax,%edx 801052dd: 8b 45 0c mov 0xc(%ebp),%eax 801052e0: c1 e0 08 shl $0x8,%eax 801052e3: 09 d0 or %edx,%eax 801052e5: 0b 45 0c or 0xc(%ebp),%eax 801052e8: 51 push %ecx 801052e9: 50 push %eax 801052ea: ff 75 08 pushl 0x8(%ebp) 801052ed: e8 8f ff ff ff call 80105281 <stosl> 801052f2: 83 c4 0c add $0xc,%esp 801052f5: eb 12 jmp 80105309 <memset+0x62> } else stosb(dst, c, n); 801052f7: 8b 45 10 mov 0x10(%ebp),%eax 801052fa: 50 push %eax 801052fb: ff 75 0c pushl 0xc(%ebp) 801052fe: ff 75 08 pushl 0x8(%ebp) 80105301: e8 55 ff ff ff call 8010525b <stosb> 80105306: 83 c4 0c add $0xc,%esp return dst; 80105309: 8b 45 08 mov 0x8(%ebp),%eax } 8010530c: c9 leave 8010530d: c3 ret 8010530e <memcmp>: int memcmp(const void *v1, const void *v2, uint n) { 8010530e: 55 push %ebp 8010530f: 89 e5 mov %esp,%ebp 80105311: 83 ec 10 sub $0x10,%esp const uchar *s1, *s2; s1 = v1; 80105314: 8b 45 08 mov 0x8(%ebp),%eax 80105317: 89 45 fc mov %eax,-0x4(%ebp) s2 = v2; 8010531a: 8b 45 0c mov 0xc(%ebp),%eax 8010531d: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0){ 80105320: eb 30 jmp 80105352 <memcmp+0x44> if(*s1 != *s2) 80105322: 8b 45 fc mov -0x4(%ebp),%eax 80105325: 0f b6 10 movzbl (%eax),%edx 80105328: 8b 45 f8 mov -0x8(%ebp),%eax 8010532b: 0f b6 00 movzbl (%eax),%eax 8010532e: 38 c2 cmp %al,%dl 80105330: 74 18 je 8010534a <memcmp+0x3c> return *s1 - *s2; 80105332: 8b 45 fc mov -0x4(%ebp),%eax 80105335: 0f b6 00 movzbl (%eax),%eax 80105338: 0f b6 d0 movzbl %al,%edx 8010533b: 8b 45 f8 mov -0x8(%ebp),%eax 8010533e: 0f b6 00 movzbl (%eax),%eax 80105341: 0f b6 c0 movzbl %al,%eax 80105344: 29 c2 sub %eax,%edx 80105346: 89 d0 mov %edx,%eax 80105348: eb 1a jmp 80105364 <memcmp+0x56> s1++, s2++; 8010534a: 83 45 fc 01 addl $0x1,-0x4(%ebp) 8010534e: 83 45 f8 01 addl $0x1,-0x8(%ebp) while(n-- > 0){ 80105352: 8b 45 10 mov 0x10(%ebp),%eax 80105355: 8d 50 ff lea -0x1(%eax),%edx 80105358: 89 55 10 mov %edx,0x10(%ebp) 8010535b: 85 c0 test %eax,%eax 8010535d: 75 c3 jne 80105322 <memcmp+0x14> } return 0; 8010535f: b8 00 00 00 00 mov $0x0,%eax } 80105364: c9 leave 80105365: c3 ret 80105366 <memmove>: void* memmove(void *dst, const void *src, uint n) { 80105366: 55 push %ebp 80105367: 89 e5 mov %esp,%ebp 80105369: 83 ec 10 sub $0x10,%esp const char *s; char *d; s = src; 8010536c: 8b 45 0c mov 0xc(%ebp),%eax 8010536f: 89 45 fc mov %eax,-0x4(%ebp) d = dst; 80105372: 8b 45 08 mov 0x8(%ebp),%eax 80105375: 89 45 f8 mov %eax,-0x8(%ebp) if(s < d && s + n > d){ 80105378: 8b 45 fc mov -0x4(%ebp),%eax 8010537b: 3b 45 f8 cmp -0x8(%ebp),%eax 8010537e: 73 54 jae 801053d4 <memmove+0x6e> 80105380: 8b 55 fc mov -0x4(%ebp),%edx 80105383: 8b 45 10 mov 0x10(%ebp),%eax 80105386: 01 d0 add %edx,%eax 80105388: 39 45 f8 cmp %eax,-0x8(%ebp) 8010538b: 73 47 jae 801053d4 <memmove+0x6e> s += n; 8010538d: 8b 45 10 mov 0x10(%ebp),%eax 80105390: 01 45 fc add %eax,-0x4(%ebp) d += n; 80105393: 8b 45 10 mov 0x10(%ebp),%eax 80105396: 01 45 f8 add %eax,-0x8(%ebp) while(n-- > 0) 80105399: eb 13 jmp 801053ae <memmove+0x48> *--d = *--s; 8010539b: 83 6d fc 01 subl $0x1,-0x4(%ebp) 8010539f: 83 6d f8 01 subl $0x1,-0x8(%ebp) 801053a3: 8b 45 fc mov -0x4(%ebp),%eax 801053a6: 0f b6 10 movzbl (%eax),%edx 801053a9: 8b 45 f8 mov -0x8(%ebp),%eax 801053ac: 88 10 mov %dl,(%eax) while(n-- > 0) 801053ae: 8b 45 10 mov 0x10(%ebp),%eax 801053b1: 8d 50 ff lea -0x1(%eax),%edx 801053b4: 89 55 10 mov %edx,0x10(%ebp) 801053b7: 85 c0 test %eax,%eax 801053b9: 75 e0 jne 8010539b <memmove+0x35> if(s < d && s + n > d){ 801053bb: eb 24 jmp 801053e1 <memmove+0x7b> } else while(n-- > 0) *d++ = *s++; 801053bd: 8b 55 fc mov -0x4(%ebp),%edx 801053c0: 8d 42 01 lea 0x1(%edx),%eax 801053c3: 89 45 fc mov %eax,-0x4(%ebp) 801053c6: 8b 45 f8 mov -0x8(%ebp),%eax 801053c9: 8d 48 01 lea 0x1(%eax),%ecx 801053cc: 89 4d f8 mov %ecx,-0x8(%ebp) 801053cf: 0f b6 12 movzbl (%edx),%edx 801053d2: 88 10 mov %dl,(%eax) while(n-- > 0) 801053d4: 8b 45 10 mov 0x10(%ebp),%eax 801053d7: 8d 50 ff lea -0x1(%eax),%edx 801053da: 89 55 10 mov %edx,0x10(%ebp) 801053dd: 85 c0 test %eax,%eax 801053df: 75 dc jne 801053bd <memmove+0x57> return dst; 801053e1: 8b 45 08 mov 0x8(%ebp),%eax } 801053e4: c9 leave 801053e5: c3 ret 801053e6 <memcpy>: // memcpy exists to placate GCC. Use memmove. void* memcpy(void *dst, const void *src, uint n) { 801053e6: 55 push %ebp 801053e7: 89 e5 mov %esp,%ebp return memmove(dst, src, n); 801053e9: ff 75 10 pushl 0x10(%ebp) 801053ec: ff 75 0c pushl 0xc(%ebp) 801053ef: ff 75 08 pushl 0x8(%ebp) 801053f2: e8 6f ff ff ff call 80105366 <memmove> 801053f7: 83 c4 0c add $0xc,%esp } 801053fa: c9 leave 801053fb: c3 ret 801053fc <strncmp>: int strncmp(const char *p, const char *q, uint n) { 801053fc: 55 push %ebp 801053fd: 89 e5 mov %esp,%ebp while(n > 0 && *p && *p == *q) 801053ff: eb 0c jmp 8010540d <strncmp+0x11> n--, p++, q++; 80105401: 83 6d 10 01 subl $0x1,0x10(%ebp) 80105405: 83 45 08 01 addl $0x1,0x8(%ebp) 80105409: 83 45 0c 01 addl $0x1,0xc(%ebp) while(n > 0 && *p && *p == *q) 8010540d: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80105411: 74 1a je 8010542d <strncmp+0x31> 80105413: 8b 45 08 mov 0x8(%ebp),%eax 80105416: 0f b6 00 movzbl (%eax),%eax 80105419: 84 c0 test %al,%al 8010541b: 74 10 je 8010542d <strncmp+0x31> 8010541d: 8b 45 08 mov 0x8(%ebp),%eax 80105420: 0f b6 10 movzbl (%eax),%edx 80105423: 8b 45 0c mov 0xc(%ebp),%eax 80105426: 0f b6 00 movzbl (%eax),%eax 80105429: 38 c2 cmp %al,%dl 8010542b: 74 d4 je 80105401 <strncmp+0x5> if(n == 0) 8010542d: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80105431: 75 07 jne 8010543a <strncmp+0x3e> return 0; 80105433: b8 00 00 00 00 mov $0x0,%eax 80105438: eb 16 jmp 80105450 <strncmp+0x54> return (uchar)*p - (uchar)*q; 8010543a: 8b 45 08 mov 0x8(%ebp),%eax 8010543d: 0f b6 00 movzbl (%eax),%eax 80105440: 0f b6 d0 movzbl %al,%edx 80105443: 8b 45 0c mov 0xc(%ebp),%eax 80105446: 0f b6 00 movzbl (%eax),%eax 80105449: 0f b6 c0 movzbl %al,%eax 8010544c: 29 c2 sub %eax,%edx 8010544e: 89 d0 mov %edx,%eax } 80105450: 5d pop %ebp 80105451: c3 ret 80105452 <strncpy>: char* strncpy(char *s, const char *t, int n) { 80105452: 55 push %ebp 80105453: 89 e5 mov %esp,%ebp 80105455: 83 ec 10 sub $0x10,%esp char *os; os = s; 80105458: 8b 45 08 mov 0x8(%ebp),%eax 8010545b: 89 45 fc mov %eax,-0x4(%ebp) while(n-- > 0 && (*s++ = *t++) != 0) 8010545e: 90 nop 8010545f: 8b 45 10 mov 0x10(%ebp),%eax 80105462: 8d 50 ff lea -0x1(%eax),%edx 80105465: 89 55 10 mov %edx,0x10(%ebp) 80105468: 85 c0 test %eax,%eax 8010546a: 7e 2c jle 80105498 <strncpy+0x46> 8010546c: 8b 55 0c mov 0xc(%ebp),%edx 8010546f: 8d 42 01 lea 0x1(%edx),%eax 80105472: 89 45 0c mov %eax,0xc(%ebp) 80105475: 8b 45 08 mov 0x8(%ebp),%eax 80105478: 8d 48 01 lea 0x1(%eax),%ecx 8010547b: 89 4d 08 mov %ecx,0x8(%ebp) 8010547e: 0f b6 12 movzbl (%edx),%edx 80105481: 88 10 mov %dl,(%eax) 80105483: 0f b6 00 movzbl (%eax),%eax 80105486: 84 c0 test %al,%al 80105488: 75 d5 jne 8010545f <strncpy+0xd> ; while(n-- > 0) 8010548a: eb 0c jmp 80105498 <strncpy+0x46> *s++ = 0; 8010548c: 8b 45 08 mov 0x8(%ebp),%eax 8010548f: 8d 50 01 lea 0x1(%eax),%edx 80105492: 89 55 08 mov %edx,0x8(%ebp) 80105495: c6 00 00 movb $0x0,(%eax) while(n-- > 0) 80105498: 8b 45 10 mov 0x10(%ebp),%eax 8010549b: 8d 50 ff lea -0x1(%eax),%edx 8010549e: 89 55 10 mov %edx,0x10(%ebp) 801054a1: 85 c0 test %eax,%eax 801054a3: 7f e7 jg 8010548c <strncpy+0x3a> return os; 801054a5: 8b 45 fc mov -0x4(%ebp),%eax } 801054a8: c9 leave 801054a9: c3 ret 801054aa <safestrcpy>: // Like strncpy but guaranteed to NUL-terminate. char* safestrcpy(char *s, const char *t, int n) { 801054aa: 55 push %ebp 801054ab: 89 e5 mov %esp,%ebp 801054ad: 83 ec 10 sub $0x10,%esp char *os; os = s; 801054b0: 8b 45 08 mov 0x8(%ebp),%eax 801054b3: 89 45 fc mov %eax,-0x4(%ebp) if(n <= 0) 801054b6: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 801054ba: 7f 05 jg 801054c1 <safestrcpy+0x17> return os; 801054bc: 8b 45 fc mov -0x4(%ebp),%eax 801054bf: eb 31 jmp 801054f2 <safestrcpy+0x48> while(--n > 0 && (*s++ = *t++) != 0) 801054c1: 83 6d 10 01 subl $0x1,0x10(%ebp) 801054c5: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 801054c9: 7e 1e jle 801054e9 <safestrcpy+0x3f> 801054cb: 8b 55 0c mov 0xc(%ebp),%edx 801054ce: 8d 42 01 lea 0x1(%edx),%eax 801054d1: 89 45 0c mov %eax,0xc(%ebp) 801054d4: 8b 45 08 mov 0x8(%ebp),%eax 801054d7: 8d 48 01 lea 0x1(%eax),%ecx 801054da: 89 4d 08 mov %ecx,0x8(%ebp) 801054dd: 0f b6 12 movzbl (%edx),%edx 801054e0: 88 10 mov %dl,(%eax) 801054e2: 0f b6 00 movzbl (%eax),%eax 801054e5: 84 c0 test %al,%al 801054e7: 75 d8 jne 801054c1 <safestrcpy+0x17> ; *s = 0; 801054e9: 8b 45 08 mov 0x8(%ebp),%eax 801054ec: c6 00 00 movb $0x0,(%eax) return os; 801054ef: 8b 45 fc mov -0x4(%ebp),%eax } 801054f2: c9 leave 801054f3: c3 ret 801054f4 <strlen>: int strlen(const char *s) { 801054f4: 55 push %ebp 801054f5: 89 e5 mov %esp,%ebp 801054f7: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 801054fa: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 80105501: eb 04 jmp 80105507 <strlen+0x13> 80105503: 83 45 fc 01 addl $0x1,-0x4(%ebp) 80105507: 8b 55 fc mov -0x4(%ebp),%edx 8010550a: 8b 45 08 mov 0x8(%ebp),%eax 8010550d: 01 d0 add %edx,%eax 8010550f: 0f b6 00 movzbl (%eax),%eax 80105512: 84 c0 test %al,%al 80105514: 75 ed jne 80105503 <strlen+0xf> ; return n; 80105516: 8b 45 fc mov -0x4(%ebp),%eax } 80105519: c9 leave 8010551a: c3 ret 8010551b <swtch>: # Save current register context in old # and then load register context from new. .globl swtch swtch: movl 4(%esp), %eax 8010551b: 8b 44 24 04 mov 0x4(%esp),%eax movl 8(%esp), %edx 8010551f: 8b 54 24 08 mov 0x8(%esp),%edx # Save old callee-save registers pushl %ebp 80105523: 55 push %ebp pushl %ebx 80105524: 53 push %ebx pushl %esi 80105525: 56 push %esi pushl %edi 80105526: 57 push %edi # Switch stacks movl %esp, (%eax) 80105527: 89 20 mov %esp,(%eax) movl %edx, %esp 80105529: 89 d4 mov %edx,%esp # Load new callee-save registers popl %edi 8010552b: 5f pop %edi popl %esi 8010552c: 5e pop %esi popl %ebx 8010552d: 5b pop %ebx popl %ebp 8010552e: 5d pop %ebp ret 8010552f: c3 ret 80105530 <fetchint>: // to a saved program counter, and then the first argument. // Fetch the int at addr from the current process. int fetchint(uint addr, int *ip) { 80105530: 55 push %ebp 80105531: 89 e5 mov %esp,%ebp if(addr >= proc->sz || addr+4 > proc->sz) 80105533: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105539: 8b 00 mov (%eax),%eax 8010553b: 39 45 08 cmp %eax,0x8(%ebp) 8010553e: 73 12 jae 80105552 <fetchint+0x22> 80105540: 8b 45 08 mov 0x8(%ebp),%eax 80105543: 8d 50 04 lea 0x4(%eax),%edx 80105546: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010554c: 8b 00 mov (%eax),%eax 8010554e: 39 c2 cmp %eax,%edx 80105550: 76 07 jbe 80105559 <fetchint+0x29> return -1; 80105552: b8 ff ff ff ff mov $0xffffffff,%eax 80105557: eb 0f jmp 80105568 <fetchint+0x38> *ip = *(int*)(addr); 80105559: 8b 45 08 mov 0x8(%ebp),%eax 8010555c: 8b 10 mov (%eax),%edx 8010555e: 8b 45 0c mov 0xc(%ebp),%eax 80105561: 89 10 mov %edx,(%eax) return 0; 80105563: b8 00 00 00 00 mov $0x0,%eax } 80105568: 5d pop %ebp 80105569: c3 ret 8010556a <fetchstr>: // Fetch the nul-terminated string at addr from the current process. // Doesn't actually copy the string - just sets *pp to point at it. // Returns length of string, not including nul. int fetchstr(uint addr, char **pp) { 8010556a: 55 push %ebp 8010556b: 89 e5 mov %esp,%ebp 8010556d: 83 ec 10 sub $0x10,%esp char *s, *ep; if(addr >= proc->sz) 80105570: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105576: 8b 00 mov (%eax),%eax 80105578: 39 45 08 cmp %eax,0x8(%ebp) 8010557b: 72 07 jb 80105584 <fetchstr+0x1a> return -1; 8010557d: b8 ff ff ff ff mov $0xffffffff,%eax 80105582: eb 46 jmp 801055ca <fetchstr+0x60> *pp = (char*)addr; 80105584: 8b 55 08 mov 0x8(%ebp),%edx 80105587: 8b 45 0c mov 0xc(%ebp),%eax 8010558a: 89 10 mov %edx,(%eax) ep = (char*)proc->sz; 8010558c: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105592: 8b 00 mov (%eax),%eax 80105594: 89 45 f8 mov %eax,-0x8(%ebp) for(s = *pp; s < ep; s++) 80105597: 8b 45 0c mov 0xc(%ebp),%eax 8010559a: 8b 00 mov (%eax),%eax 8010559c: 89 45 fc mov %eax,-0x4(%ebp) 8010559f: eb 1c jmp 801055bd <fetchstr+0x53> if(*s == 0) 801055a1: 8b 45 fc mov -0x4(%ebp),%eax 801055a4: 0f b6 00 movzbl (%eax),%eax 801055a7: 84 c0 test %al,%al 801055a9: 75 0e jne 801055b9 <fetchstr+0x4f> return s - *pp; 801055ab: 8b 45 0c mov 0xc(%ebp),%eax 801055ae: 8b 00 mov (%eax),%eax 801055b0: 8b 55 fc mov -0x4(%ebp),%edx 801055b3: 29 c2 sub %eax,%edx 801055b5: 89 d0 mov %edx,%eax 801055b7: eb 11 jmp 801055ca <fetchstr+0x60> for(s = *pp; s < ep; s++) 801055b9: 83 45 fc 01 addl $0x1,-0x4(%ebp) 801055bd: 8b 45 fc mov -0x4(%ebp),%eax 801055c0: 3b 45 f8 cmp -0x8(%ebp),%eax 801055c3: 72 dc jb 801055a1 <fetchstr+0x37> return -1; 801055c5: b8 ff ff ff ff mov $0xffffffff,%eax } 801055ca: c9 leave 801055cb: c3 ret 801055cc <argint>: // Fetch the nth 32-bit system call argument. int argint(int n, int *ip) { 801055cc: 55 push %ebp 801055cd: 89 e5 mov %esp,%ebp return fetchint(proc->tf->esp + 4 + 4*n, ip); 801055cf: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801055d5: 8b 40 18 mov 0x18(%eax),%eax 801055d8: 8b 40 44 mov 0x44(%eax),%eax 801055db: 8b 55 08 mov 0x8(%ebp),%edx 801055de: c1 e2 02 shl $0x2,%edx 801055e1: 01 d0 add %edx,%eax 801055e3: 83 c0 04 add $0x4,%eax 801055e6: ff 75 0c pushl 0xc(%ebp) 801055e9: 50 push %eax 801055ea: e8 41 ff ff ff call 80105530 <fetchint> 801055ef: 83 c4 08 add $0x8,%esp } 801055f2: c9 leave 801055f3: c3 ret 801055f4 <argptr>: // Fetch the nth word-sized system call argument as a pointer // to a block of memory of size n bytes. Check that the pointer // lies within the process address space. int argptr(int n, char **pp, int size) { 801055f4: 55 push %ebp 801055f5: 89 e5 mov %esp,%ebp 801055f7: 83 ec 10 sub $0x10,%esp int i; if(argint(n, &i) < 0) 801055fa: 8d 45 fc lea -0x4(%ebp),%eax 801055fd: 50 push %eax 801055fe: ff 75 08 pushl 0x8(%ebp) 80105601: e8 c6 ff ff ff call 801055cc <argint> 80105606: 83 c4 08 add $0x8,%esp 80105609: 85 c0 test %eax,%eax 8010560b: 79 07 jns 80105614 <argptr+0x20> return -1; 8010560d: b8 ff ff ff ff mov $0xffffffff,%eax 80105612: eb 3b jmp 8010564f <argptr+0x5b> if((uint)i >= proc->sz || (uint)i+size > proc->sz) 80105614: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010561a: 8b 00 mov (%eax),%eax 8010561c: 8b 55 fc mov -0x4(%ebp),%edx 8010561f: 39 d0 cmp %edx,%eax 80105621: 76 16 jbe 80105639 <argptr+0x45> 80105623: 8b 45 fc mov -0x4(%ebp),%eax 80105626: 89 c2 mov %eax,%edx 80105628: 8b 45 10 mov 0x10(%ebp),%eax 8010562b: 01 c2 add %eax,%edx 8010562d: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105633: 8b 00 mov (%eax),%eax 80105635: 39 c2 cmp %eax,%edx 80105637: 76 07 jbe 80105640 <argptr+0x4c> return -1; 80105639: b8 ff ff ff ff mov $0xffffffff,%eax 8010563e: eb 0f jmp 8010564f <argptr+0x5b> *pp = (char*)i; 80105640: 8b 45 fc mov -0x4(%ebp),%eax 80105643: 89 c2 mov %eax,%edx 80105645: 8b 45 0c mov 0xc(%ebp),%eax 80105648: 89 10 mov %edx,(%eax) return 0; 8010564a: b8 00 00 00 00 mov $0x0,%eax } 8010564f: c9 leave 80105650: c3 ret 80105651 <argstr>: // Check that the pointer is valid and the string is nul-terminated. // (There is no shared writable memory, so the string can't change // between this check and being used by the kernel.) int argstr(int n, char **pp) { 80105651: 55 push %ebp 80105652: 89 e5 mov %esp,%ebp 80105654: 83 ec 10 sub $0x10,%esp int addr; if(argint(n, &addr) < 0) 80105657: 8d 45 fc lea -0x4(%ebp),%eax 8010565a: 50 push %eax 8010565b: ff 75 08 pushl 0x8(%ebp) 8010565e: e8 69 ff ff ff call 801055cc <argint> 80105663: 83 c4 08 add $0x8,%esp 80105666: 85 c0 test %eax,%eax 80105668: 79 07 jns 80105671 <argstr+0x20> return -1; 8010566a: b8 ff ff ff ff mov $0xffffffff,%eax 8010566f: eb 0f jmp 80105680 <argstr+0x2f> return fetchstr(addr, pp); 80105671: 8b 45 fc mov -0x4(%ebp),%eax 80105674: ff 75 0c pushl 0xc(%ebp) 80105677: 50 push %eax 80105678: e8 ed fe ff ff call 8010556a <fetchstr> 8010567d: 83 c4 08 add $0x8,%esp } 80105680: c9 leave 80105681: c3 ret 80105682 <syscall>: [SYS_close] sys_close, }; void syscall(void) { 80105682: 55 push %ebp 80105683: 89 e5 mov %esp,%ebp 80105685: 83 ec 18 sub $0x18,%esp int num; num = proc->tf->eax; 80105688: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010568e: 8b 40 18 mov 0x18(%eax),%eax 80105691: 8b 40 1c mov 0x1c(%eax),%eax 80105694: 89 45 f4 mov %eax,-0xc(%ebp) if(num > 0 && num < NELEM(syscalls) && syscalls[num]) { 80105697: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010569b: 7e 32 jle 801056cf <syscall+0x4d> 8010569d: 8b 45 f4 mov -0xc(%ebp),%eax 801056a0: 83 f8 15 cmp $0x15,%eax 801056a3: 77 2a ja 801056cf <syscall+0x4d> 801056a5: 8b 45 f4 mov -0xc(%ebp),%eax 801056a8: 8b 04 85 40 b0 10 80 mov -0x7fef4fc0(,%eax,4),%eax 801056af: 85 c0 test %eax,%eax 801056b1: 74 1c je 801056cf <syscall+0x4d> proc->tf->eax = syscalls[num](); 801056b3: 8b 45 f4 mov -0xc(%ebp),%eax 801056b6: 8b 04 85 40 b0 10 80 mov -0x7fef4fc0(,%eax,4),%eax 801056bd: ff d0 call *%eax 801056bf: 89 c2 mov %eax,%edx 801056c1: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801056c7: 8b 40 18 mov 0x18(%eax),%eax 801056ca: 89 50 1c mov %edx,0x1c(%eax) 801056cd: eb 34 jmp 80105703 <syscall+0x81> } else { cprintf("%d %s: unknown sys call %d\n", proc->pid, proc->name, num); 801056cf: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801056d5: 8d 50 6c lea 0x6c(%eax),%edx 801056d8: 65 a1 04 00 00 00 mov %gs:0x4,%eax cprintf("%d %s: unknown sys call %d\n", 801056de: 8b 40 10 mov 0x10(%eax),%eax 801056e1: ff 75 f4 pushl -0xc(%ebp) 801056e4: 52 push %edx 801056e5: 50 push %eax 801056e6: 68 e7 89 10 80 push $0x801089e7 801056eb: e8 d4 ac ff ff call 801003c4 <cprintf> 801056f0: 83 c4 10 add $0x10,%esp proc->tf->eax = -1; 801056f3: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801056f9: 8b 40 18 mov 0x18(%eax),%eax 801056fc: c7 40 1c ff ff ff ff movl $0xffffffff,0x1c(%eax) } } 80105703: 90 nop 80105704: c9 leave 80105705: c3 ret 80105706 <argfd>: // Fetch the nth word-sized system call argument as a file descriptor // and return both the descriptor and the corresponding struct file. static int argfd(int n, int *pfd, struct file **pf) { 80105706: 55 push %ebp 80105707: 89 e5 mov %esp,%ebp 80105709: 83 ec 18 sub $0x18,%esp int fd; struct file *f; if(argint(n, &fd) < 0) 8010570c: 83 ec 08 sub $0x8,%esp 8010570f: 8d 45 f0 lea -0x10(%ebp),%eax 80105712: 50 push %eax 80105713: ff 75 08 pushl 0x8(%ebp) 80105716: e8 b1 fe ff ff call 801055cc <argint> 8010571b: 83 c4 10 add $0x10,%esp 8010571e: 85 c0 test %eax,%eax 80105720: 79 07 jns 80105729 <argfd+0x23> return -1; 80105722: b8 ff ff ff ff mov $0xffffffff,%eax 80105727: eb 50 jmp 80105779 <argfd+0x73> if(fd < 0 || fd >= NOFILE || (f=proc->ofile[fd]) == 0) 80105729: 8b 45 f0 mov -0x10(%ebp),%eax 8010572c: 85 c0 test %eax,%eax 8010572e: 78 21 js 80105751 <argfd+0x4b> 80105730: 8b 45 f0 mov -0x10(%ebp),%eax 80105733: 83 f8 0f cmp $0xf,%eax 80105736: 7f 19 jg 80105751 <argfd+0x4b> 80105738: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010573e: 8b 55 f0 mov -0x10(%ebp),%edx 80105741: 83 c2 08 add $0x8,%edx 80105744: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80105748: 89 45 f4 mov %eax,-0xc(%ebp) 8010574b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010574f: 75 07 jne 80105758 <argfd+0x52> return -1; 80105751: b8 ff ff ff ff mov $0xffffffff,%eax 80105756: eb 21 jmp 80105779 <argfd+0x73> if(pfd) 80105758: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 8010575c: 74 08 je 80105766 <argfd+0x60> *pfd = fd; 8010575e: 8b 55 f0 mov -0x10(%ebp),%edx 80105761: 8b 45 0c mov 0xc(%ebp),%eax 80105764: 89 10 mov %edx,(%eax) if(pf) 80105766: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 8010576a: 74 08 je 80105774 <argfd+0x6e> *pf = f; 8010576c: 8b 45 10 mov 0x10(%ebp),%eax 8010576f: 8b 55 f4 mov -0xc(%ebp),%edx 80105772: 89 10 mov %edx,(%eax) return 0; 80105774: b8 00 00 00 00 mov $0x0,%eax } 80105779: c9 leave 8010577a: c3 ret 8010577b <fdalloc>: // Allocate a file descriptor for the given file. // Takes over file reference from caller on success. static int fdalloc(struct file *f) { 8010577b: 55 push %ebp 8010577c: 89 e5 mov %esp,%ebp 8010577e: 83 ec 10 sub $0x10,%esp int fd; for(fd = 0; fd < NOFILE; fd++){ 80105781: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 80105788: eb 30 jmp 801057ba <fdalloc+0x3f> if(proc->ofile[fd] == 0){ 8010578a: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105790: 8b 55 fc mov -0x4(%ebp),%edx 80105793: 83 c2 08 add $0x8,%edx 80105796: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 8010579a: 85 c0 test %eax,%eax 8010579c: 75 18 jne 801057b6 <fdalloc+0x3b> proc->ofile[fd] = f; 8010579e: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801057a4: 8b 55 fc mov -0x4(%ebp),%edx 801057a7: 8d 4a 08 lea 0x8(%edx),%ecx 801057aa: 8b 55 08 mov 0x8(%ebp),%edx 801057ad: 89 54 88 08 mov %edx,0x8(%eax,%ecx,4) return fd; 801057b1: 8b 45 fc mov -0x4(%ebp),%eax 801057b4: eb 0f jmp 801057c5 <fdalloc+0x4a> for(fd = 0; fd < NOFILE; fd++){ 801057b6: 83 45 fc 01 addl $0x1,-0x4(%ebp) 801057ba: 83 7d fc 0f cmpl $0xf,-0x4(%ebp) 801057be: 7e ca jle 8010578a <fdalloc+0xf> } } return -1; 801057c0: b8 ff ff ff ff mov $0xffffffff,%eax } 801057c5: c9 leave 801057c6: c3 ret 801057c7 <sys_dup>: int sys_dup(void) { 801057c7: 55 push %ebp 801057c8: 89 e5 mov %esp,%ebp 801057ca: 83 ec 18 sub $0x18,%esp struct file *f; int fd; if(argfd(0, 0, &f) < 0) 801057cd: 83 ec 04 sub $0x4,%esp 801057d0: 8d 45 f0 lea -0x10(%ebp),%eax 801057d3: 50 push %eax 801057d4: 6a 00 push $0x0 801057d6: 6a 00 push $0x0 801057d8: e8 29 ff ff ff call 80105706 <argfd> 801057dd: 83 c4 10 add $0x10,%esp 801057e0: 85 c0 test %eax,%eax 801057e2: 79 07 jns 801057eb <sys_dup+0x24> return -1; 801057e4: b8 ff ff ff ff mov $0xffffffff,%eax 801057e9: eb 31 jmp 8010581c <sys_dup+0x55> if((fd=fdalloc(f)) < 0) 801057eb: 8b 45 f0 mov -0x10(%ebp),%eax 801057ee: 83 ec 0c sub $0xc,%esp 801057f1: 50 push %eax 801057f2: e8 84 ff ff ff call 8010577b <fdalloc> 801057f7: 83 c4 10 add $0x10,%esp 801057fa: 89 45 f4 mov %eax,-0xc(%ebp) 801057fd: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105801: 79 07 jns 8010580a <sys_dup+0x43> return -1; 80105803: b8 ff ff ff ff mov $0xffffffff,%eax 80105808: eb 12 jmp 8010581c <sys_dup+0x55> filedup(f); 8010580a: 8b 45 f0 mov -0x10(%ebp),%eax 8010580d: 83 ec 0c sub $0xc,%esp 80105810: 50 push %eax 80105811: e8 f5 b7 ff ff call 8010100b <filedup> 80105816: 83 c4 10 add $0x10,%esp return fd; 80105819: 8b 45 f4 mov -0xc(%ebp),%eax } 8010581c: c9 leave 8010581d: c3 ret 8010581e <sys_read>: int sys_read(void) { 8010581e: 55 push %ebp 8010581f: 89 e5 mov %esp,%ebp 80105821: 83 ec 18 sub $0x18,%esp struct file *f; int n; char *p; if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 80105824: 83 ec 04 sub $0x4,%esp 80105827: 8d 45 f4 lea -0xc(%ebp),%eax 8010582a: 50 push %eax 8010582b: 6a 00 push $0x0 8010582d: 6a 00 push $0x0 8010582f: e8 d2 fe ff ff call 80105706 <argfd> 80105834: 83 c4 10 add $0x10,%esp 80105837: 85 c0 test %eax,%eax 80105839: 78 2e js 80105869 <sys_read+0x4b> 8010583b: 83 ec 08 sub $0x8,%esp 8010583e: 8d 45 f0 lea -0x10(%ebp),%eax 80105841: 50 push %eax 80105842: 6a 02 push $0x2 80105844: e8 83 fd ff ff call 801055cc <argint> 80105849: 83 c4 10 add $0x10,%esp 8010584c: 85 c0 test %eax,%eax 8010584e: 78 19 js 80105869 <sys_read+0x4b> 80105850: 8b 45 f0 mov -0x10(%ebp),%eax 80105853: 83 ec 04 sub $0x4,%esp 80105856: 50 push %eax 80105857: 8d 45 ec lea -0x14(%ebp),%eax 8010585a: 50 push %eax 8010585b: 6a 01 push $0x1 8010585d: e8 92 fd ff ff call 801055f4 <argptr> 80105862: 83 c4 10 add $0x10,%esp 80105865: 85 c0 test %eax,%eax 80105867: 79 07 jns 80105870 <sys_read+0x52> return -1; 80105869: b8 ff ff ff ff mov $0xffffffff,%eax 8010586e: eb 17 jmp 80105887 <sys_read+0x69> return fileread(f, p, n); 80105870: 8b 4d f0 mov -0x10(%ebp),%ecx 80105873: 8b 55 ec mov -0x14(%ebp),%edx 80105876: 8b 45 f4 mov -0xc(%ebp),%eax 80105879: 83 ec 04 sub $0x4,%esp 8010587c: 51 push %ecx 8010587d: 52 push %edx 8010587e: 50 push %eax 8010587f: e8 17 b9 ff ff call 8010119b <fileread> 80105884: 83 c4 10 add $0x10,%esp } 80105887: c9 leave 80105888: c3 ret 80105889 <sys_write>: int sys_write(void) { 80105889: 55 push %ebp 8010588a: 89 e5 mov %esp,%ebp 8010588c: 83 ec 18 sub $0x18,%esp struct file *f; int n; char *p; if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 8010588f: 83 ec 04 sub $0x4,%esp 80105892: 8d 45 f4 lea -0xc(%ebp),%eax 80105895: 50 push %eax 80105896: 6a 00 push $0x0 80105898: 6a 00 push $0x0 8010589a: e8 67 fe ff ff call 80105706 <argfd> 8010589f: 83 c4 10 add $0x10,%esp 801058a2: 85 c0 test %eax,%eax 801058a4: 78 2e js 801058d4 <sys_write+0x4b> 801058a6: 83 ec 08 sub $0x8,%esp 801058a9: 8d 45 f0 lea -0x10(%ebp),%eax 801058ac: 50 push %eax 801058ad: 6a 02 push $0x2 801058af: e8 18 fd ff ff call 801055cc <argint> 801058b4: 83 c4 10 add $0x10,%esp 801058b7: 85 c0 test %eax,%eax 801058b9: 78 19 js 801058d4 <sys_write+0x4b> 801058bb: 8b 45 f0 mov -0x10(%ebp),%eax 801058be: 83 ec 04 sub $0x4,%esp 801058c1: 50 push %eax 801058c2: 8d 45 ec lea -0x14(%ebp),%eax 801058c5: 50 push %eax 801058c6: 6a 01 push $0x1 801058c8: e8 27 fd ff ff call 801055f4 <argptr> 801058cd: 83 c4 10 add $0x10,%esp 801058d0: 85 c0 test %eax,%eax 801058d2: 79 07 jns 801058db <sys_write+0x52> return -1; 801058d4: b8 ff ff ff ff mov $0xffffffff,%eax 801058d9: eb 17 jmp 801058f2 <sys_write+0x69> return filewrite(f, p, n); 801058db: 8b 4d f0 mov -0x10(%ebp),%ecx 801058de: 8b 55 ec mov -0x14(%ebp),%edx 801058e1: 8b 45 f4 mov -0xc(%ebp),%eax 801058e4: 83 ec 04 sub $0x4,%esp 801058e7: 51 push %ecx 801058e8: 52 push %edx 801058e9: 50 push %eax 801058ea: e8 64 b9 ff ff call 80101253 <filewrite> 801058ef: 83 c4 10 add $0x10,%esp } 801058f2: c9 leave 801058f3: c3 ret 801058f4 <sys_close>: int sys_close(void) { 801058f4: 55 push %ebp 801058f5: 89 e5 mov %esp,%ebp 801058f7: 83 ec 18 sub $0x18,%esp int fd; struct file *f; if(argfd(0, &fd, &f) < 0) 801058fa: 83 ec 04 sub $0x4,%esp 801058fd: 8d 45 f0 lea -0x10(%ebp),%eax 80105900: 50 push %eax 80105901: 8d 45 f4 lea -0xc(%ebp),%eax 80105904: 50 push %eax 80105905: 6a 00 push $0x0 80105907: e8 fa fd ff ff call 80105706 <argfd> 8010590c: 83 c4 10 add $0x10,%esp 8010590f: 85 c0 test %eax,%eax 80105911: 79 07 jns 8010591a <sys_close+0x26> return -1; 80105913: b8 ff ff ff ff mov $0xffffffff,%eax 80105918: eb 28 jmp 80105942 <sys_close+0x4e> proc->ofile[fd] = 0; 8010591a: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105920: 8b 55 f4 mov -0xc(%ebp),%edx 80105923: 83 c2 08 add $0x8,%edx 80105926: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4) 8010592d: 00 fileclose(f); 8010592e: 8b 45 f0 mov -0x10(%ebp),%eax 80105931: 83 ec 0c sub $0xc,%esp 80105934: 50 push %eax 80105935: e8 22 b7 ff ff call 8010105c <fileclose> 8010593a: 83 c4 10 add $0x10,%esp return 0; 8010593d: b8 00 00 00 00 mov $0x0,%eax } 80105942: c9 leave 80105943: c3 ret 80105944 <sys_fstat>: int sys_fstat(void) { 80105944: 55 push %ebp 80105945: 89 e5 mov %esp,%ebp 80105947: 83 ec 18 sub $0x18,%esp struct file *f; struct stat *st; if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0) 8010594a: 83 ec 04 sub $0x4,%esp 8010594d: 8d 45 f4 lea -0xc(%ebp),%eax 80105950: 50 push %eax 80105951: 6a 00 push $0x0 80105953: 6a 00 push $0x0 80105955: e8 ac fd ff ff call 80105706 <argfd> 8010595a: 83 c4 10 add $0x10,%esp 8010595d: 85 c0 test %eax,%eax 8010595f: 78 17 js 80105978 <sys_fstat+0x34> 80105961: 83 ec 04 sub $0x4,%esp 80105964: 6a 14 push $0x14 80105966: 8d 45 f0 lea -0x10(%ebp),%eax 80105969: 50 push %eax 8010596a: 6a 01 push $0x1 8010596c: e8 83 fc ff ff call 801055f4 <argptr> 80105971: 83 c4 10 add $0x10,%esp 80105974: 85 c0 test %eax,%eax 80105976: 79 07 jns 8010597f <sys_fstat+0x3b> return -1; 80105978: b8 ff ff ff ff mov $0xffffffff,%eax 8010597d: eb 13 jmp 80105992 <sys_fstat+0x4e> return filestat(f, st); 8010597f: 8b 55 f0 mov -0x10(%ebp),%edx 80105982: 8b 45 f4 mov -0xc(%ebp),%eax 80105985: 83 ec 08 sub $0x8,%esp 80105988: 52 push %edx 80105989: 50 push %eax 8010598a: e8 b5 b7 ff ff call 80101144 <filestat> 8010598f: 83 c4 10 add $0x10,%esp } 80105992: c9 leave 80105993: c3 ret 80105994 <sys_link>: // Create the path new as a link to the same inode as old. int sys_link(void) { 80105994: 55 push %ebp 80105995: 89 e5 mov %esp,%ebp 80105997: 83 ec 28 sub $0x28,%esp char name[DIRSIZ], *new, *old; struct inode *dp, *ip; if(argstr(0, &old) < 0 || argstr(1, &new) < 0) 8010599a: 83 ec 08 sub $0x8,%esp 8010599d: 8d 45 d8 lea -0x28(%ebp),%eax 801059a0: 50 push %eax 801059a1: 6a 00 push $0x0 801059a3: e8 a9 fc ff ff call 80105651 <argstr> 801059a8: 83 c4 10 add $0x10,%esp 801059ab: 85 c0 test %eax,%eax 801059ad: 78 15 js 801059c4 <sys_link+0x30> 801059af: 83 ec 08 sub $0x8,%esp 801059b2: 8d 45 dc lea -0x24(%ebp),%eax 801059b5: 50 push %eax 801059b6: 6a 01 push $0x1 801059b8: e8 94 fc ff ff call 80105651 <argstr> 801059bd: 83 c4 10 add $0x10,%esp 801059c0: 85 c0 test %eax,%eax 801059c2: 79 0a jns 801059ce <sys_link+0x3a> return -1; 801059c4: b8 ff ff ff ff mov $0xffffffff,%eax 801059c9: e9 68 01 00 00 jmp 80105b36 <sys_link+0x1a2> begin_op(); 801059ce: e8 83 db ff ff call 80103556 <begin_op> if((ip = namei(old)) == 0){ 801059d3: 8b 45 d8 mov -0x28(%ebp),%eax 801059d6: 83 ec 0c sub $0xc,%esp 801059d9: 50 push %eax 801059da: e8 4b cb ff ff call 8010252a <namei> 801059df: 83 c4 10 add $0x10,%esp 801059e2: 89 45 f4 mov %eax,-0xc(%ebp) 801059e5: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801059e9: 75 0f jne 801059fa <sys_link+0x66> end_op(); 801059eb: e8 f2 db ff ff call 801035e2 <end_op> return -1; 801059f0: b8 ff ff ff ff mov $0xffffffff,%eax 801059f5: e9 3c 01 00 00 jmp 80105b36 <sys_link+0x1a2> } ilock(ip); 801059fa: 83 ec 0c sub $0xc,%esp 801059fd: ff 75 f4 pushl -0xc(%ebp) 80105a00: e8 70 bf ff ff call 80101975 <ilock> 80105a05: 83 c4 10 add $0x10,%esp if(ip->type == T_DIR){ 80105a08: 8b 45 f4 mov -0xc(%ebp),%eax 80105a0b: 0f b7 40 10 movzwl 0x10(%eax),%eax 80105a0f: 66 83 f8 01 cmp $0x1,%ax 80105a13: 75 1d jne 80105a32 <sys_link+0x9e> iunlockput(ip); 80105a15: 83 ec 0c sub $0xc,%esp 80105a18: ff 75 f4 pushl -0xc(%ebp) 80105a1b: e8 15 c2 ff ff call 80101c35 <iunlockput> 80105a20: 83 c4 10 add $0x10,%esp end_op(); 80105a23: e8 ba db ff ff call 801035e2 <end_op> return -1; 80105a28: b8 ff ff ff ff mov $0xffffffff,%eax 80105a2d: e9 04 01 00 00 jmp 80105b36 <sys_link+0x1a2> } ip->nlink++; 80105a32: 8b 45 f4 mov -0xc(%ebp),%eax 80105a35: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105a39: 83 c0 01 add $0x1,%eax 80105a3c: 89 c2 mov %eax,%edx 80105a3e: 8b 45 f4 mov -0xc(%ebp),%eax 80105a41: 66 89 50 16 mov %dx,0x16(%eax) iupdate(ip); 80105a45: 83 ec 0c sub $0xc,%esp 80105a48: ff 75 f4 pushl -0xc(%ebp) 80105a4b: e8 4b bd ff ff call 8010179b <iupdate> 80105a50: 83 c4 10 add $0x10,%esp iunlock(ip); 80105a53: 83 ec 0c sub $0xc,%esp 80105a56: ff 75 f4 pushl -0xc(%ebp) 80105a59: e8 75 c0 ff ff call 80101ad3 <iunlock> 80105a5e: 83 c4 10 add $0x10,%esp if((dp = nameiparent(new, name)) == 0) 80105a61: 8b 45 dc mov -0x24(%ebp),%eax 80105a64: 83 ec 08 sub $0x8,%esp 80105a67: 8d 55 e2 lea -0x1e(%ebp),%edx 80105a6a: 52 push %edx 80105a6b: 50 push %eax 80105a6c: e8 d5 ca ff ff call 80102546 <nameiparent> 80105a71: 83 c4 10 add $0x10,%esp 80105a74: 89 45 f0 mov %eax,-0x10(%ebp) 80105a77: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80105a7b: 74 71 je 80105aee <sys_link+0x15a> goto bad; ilock(dp); 80105a7d: 83 ec 0c sub $0xc,%esp 80105a80: ff 75 f0 pushl -0x10(%ebp) 80105a83: e8 ed be ff ff call 80101975 <ilock> 80105a88: 83 c4 10 add $0x10,%esp if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){ 80105a8b: 8b 45 f0 mov -0x10(%ebp),%eax 80105a8e: 8b 10 mov (%eax),%edx 80105a90: 8b 45 f4 mov -0xc(%ebp),%eax 80105a93: 8b 00 mov (%eax),%eax 80105a95: 39 c2 cmp %eax,%edx 80105a97: 75 1d jne 80105ab6 <sys_link+0x122> 80105a99: 8b 45 f4 mov -0xc(%ebp),%eax 80105a9c: 8b 40 04 mov 0x4(%eax),%eax 80105a9f: 83 ec 04 sub $0x4,%esp 80105aa2: 50 push %eax 80105aa3: 8d 45 e2 lea -0x1e(%ebp),%eax 80105aa6: 50 push %eax 80105aa7: ff 75 f0 pushl -0x10(%ebp) 80105aaa: e8 e3 c7 ff ff call 80102292 <dirlink> 80105aaf: 83 c4 10 add $0x10,%esp 80105ab2: 85 c0 test %eax,%eax 80105ab4: 79 10 jns 80105ac6 <sys_link+0x132> iunlockput(dp); 80105ab6: 83 ec 0c sub $0xc,%esp 80105ab9: ff 75 f0 pushl -0x10(%ebp) 80105abc: e8 74 c1 ff ff call 80101c35 <iunlockput> 80105ac1: 83 c4 10 add $0x10,%esp goto bad; 80105ac4: eb 29 jmp 80105aef <sys_link+0x15b> } iunlockput(dp); 80105ac6: 83 ec 0c sub $0xc,%esp 80105ac9: ff 75 f0 pushl -0x10(%ebp) 80105acc: e8 64 c1 ff ff call 80101c35 <iunlockput> 80105ad1: 83 c4 10 add $0x10,%esp iput(ip); 80105ad4: 83 ec 0c sub $0xc,%esp 80105ad7: ff 75 f4 pushl -0xc(%ebp) 80105ada: e8 66 c0 ff ff call 80101b45 <iput> 80105adf: 83 c4 10 add $0x10,%esp end_op(); 80105ae2: e8 fb da ff ff call 801035e2 <end_op> return 0; 80105ae7: b8 00 00 00 00 mov $0x0,%eax 80105aec: eb 48 jmp 80105b36 <sys_link+0x1a2> goto bad; 80105aee: 90 nop bad: ilock(ip); 80105aef: 83 ec 0c sub $0xc,%esp 80105af2: ff 75 f4 pushl -0xc(%ebp) 80105af5: e8 7b be ff ff call 80101975 <ilock> 80105afa: 83 c4 10 add $0x10,%esp ip->nlink--; 80105afd: 8b 45 f4 mov -0xc(%ebp),%eax 80105b00: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105b04: 83 e8 01 sub $0x1,%eax 80105b07: 89 c2 mov %eax,%edx 80105b09: 8b 45 f4 mov -0xc(%ebp),%eax 80105b0c: 66 89 50 16 mov %dx,0x16(%eax) iupdate(ip); 80105b10: 83 ec 0c sub $0xc,%esp 80105b13: ff 75 f4 pushl -0xc(%ebp) 80105b16: e8 80 bc ff ff call 8010179b <iupdate> 80105b1b: 83 c4 10 add $0x10,%esp iunlockput(ip); 80105b1e: 83 ec 0c sub $0xc,%esp 80105b21: ff 75 f4 pushl -0xc(%ebp) 80105b24: e8 0c c1 ff ff call 80101c35 <iunlockput> 80105b29: 83 c4 10 add $0x10,%esp end_op(); 80105b2c: e8 b1 da ff ff call 801035e2 <end_op> return -1; 80105b31: b8 ff ff ff ff mov $0xffffffff,%eax } 80105b36: c9 leave 80105b37: c3 ret 80105b38 <isdirempty>: // Is the directory dp empty except for "." and ".." ? static int isdirempty(struct inode *dp) { 80105b38: 55 push %ebp 80105b39: 89 e5 mov %esp,%ebp 80105b3b: 83 ec 28 sub $0x28,%esp int off; struct dirent de; for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){ 80105b3e: c7 45 f4 20 00 00 00 movl $0x20,-0xc(%ebp) 80105b45: eb 40 jmp 80105b87 <isdirempty+0x4f> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80105b47: 8b 45 f4 mov -0xc(%ebp),%eax 80105b4a: 6a 10 push $0x10 80105b4c: 50 push %eax 80105b4d: 8d 45 e4 lea -0x1c(%ebp),%eax 80105b50: 50 push %eax 80105b51: ff 75 08 pushl 0x8(%ebp) 80105b54: e8 85 c3 ff ff call 80101ede <readi> 80105b59: 83 c4 10 add $0x10,%esp 80105b5c: 83 f8 10 cmp $0x10,%eax 80105b5f: 74 0d je 80105b6e <isdirempty+0x36> panic("isdirempty: readi"); 80105b61: 83 ec 0c sub $0xc,%esp 80105b64: 68 03 8a 10 80 push $0x80108a03 80105b69: e8 f9 a9 ff ff call 80100567 <panic> if(de.inum != 0) 80105b6e: 0f b7 45 e4 movzwl -0x1c(%ebp),%eax 80105b72: 66 85 c0 test %ax,%ax 80105b75: 74 07 je 80105b7e <isdirempty+0x46> return 0; 80105b77: b8 00 00 00 00 mov $0x0,%eax 80105b7c: eb 1b jmp 80105b99 <isdirempty+0x61> for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){ 80105b7e: 8b 45 f4 mov -0xc(%ebp),%eax 80105b81: 83 c0 10 add $0x10,%eax 80105b84: 89 45 f4 mov %eax,-0xc(%ebp) 80105b87: 8b 45 08 mov 0x8(%ebp),%eax 80105b8a: 8b 50 18 mov 0x18(%eax),%edx 80105b8d: 8b 45 f4 mov -0xc(%ebp),%eax 80105b90: 39 c2 cmp %eax,%edx 80105b92: 77 b3 ja 80105b47 <isdirempty+0xf> } return 1; 80105b94: b8 01 00 00 00 mov $0x1,%eax } 80105b99: c9 leave 80105b9a: c3 ret 80105b9b <sys_unlink>: //PAGEBREAK! int sys_unlink(void) { 80105b9b: 55 push %ebp 80105b9c: 89 e5 mov %esp,%ebp 80105b9e: 83 ec 38 sub $0x38,%esp struct inode *ip, *dp; struct dirent de; char name[DIRSIZ], *path; uint off; if(argstr(0, &path) < 0) 80105ba1: 83 ec 08 sub $0x8,%esp 80105ba4: 8d 45 cc lea -0x34(%ebp),%eax 80105ba7: 50 push %eax 80105ba8: 6a 00 push $0x0 80105baa: e8 a2 fa ff ff call 80105651 <argstr> 80105baf: 83 c4 10 add $0x10,%esp 80105bb2: 85 c0 test %eax,%eax 80105bb4: 79 0a jns 80105bc0 <sys_unlink+0x25> return -1; 80105bb6: b8 ff ff ff ff mov $0xffffffff,%eax 80105bbb: e9 bf 01 00 00 jmp 80105d7f <sys_unlink+0x1e4> begin_op(); 80105bc0: e8 91 d9 ff ff call 80103556 <begin_op> if((dp = nameiparent(path, name)) == 0){ 80105bc5: 8b 45 cc mov -0x34(%ebp),%eax 80105bc8: 83 ec 08 sub $0x8,%esp 80105bcb: 8d 55 d2 lea -0x2e(%ebp),%edx 80105bce: 52 push %edx 80105bcf: 50 push %eax 80105bd0: e8 71 c9 ff ff call 80102546 <nameiparent> 80105bd5: 83 c4 10 add $0x10,%esp 80105bd8: 89 45 f4 mov %eax,-0xc(%ebp) 80105bdb: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105bdf: 75 0f jne 80105bf0 <sys_unlink+0x55> end_op(); 80105be1: e8 fc d9 ff ff call 801035e2 <end_op> return -1; 80105be6: b8 ff ff ff ff mov $0xffffffff,%eax 80105beb: e9 8f 01 00 00 jmp 80105d7f <sys_unlink+0x1e4> } ilock(dp); 80105bf0: 83 ec 0c sub $0xc,%esp 80105bf3: ff 75 f4 pushl -0xc(%ebp) 80105bf6: e8 7a bd ff ff call 80101975 <ilock> 80105bfb: 83 c4 10 add $0x10,%esp // Cannot unlink "." or "..". if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0) 80105bfe: 83 ec 08 sub $0x8,%esp 80105c01: 68 15 8a 10 80 push $0x80108a15 80105c06: 8d 45 d2 lea -0x2e(%ebp),%eax 80105c09: 50 push %eax 80105c0a: e8 ae c5 ff ff call 801021bd <namecmp> 80105c0f: 83 c4 10 add $0x10,%esp 80105c12: 85 c0 test %eax,%eax 80105c14: 0f 84 49 01 00 00 je 80105d63 <sys_unlink+0x1c8> 80105c1a: 83 ec 08 sub $0x8,%esp 80105c1d: 68 17 8a 10 80 push $0x80108a17 80105c22: 8d 45 d2 lea -0x2e(%ebp),%eax 80105c25: 50 push %eax 80105c26: e8 92 c5 ff ff call 801021bd <namecmp> 80105c2b: 83 c4 10 add $0x10,%esp 80105c2e: 85 c0 test %eax,%eax 80105c30: 0f 84 2d 01 00 00 je 80105d63 <sys_unlink+0x1c8> goto bad; if((ip = dirlookup(dp, name, &off)) == 0) 80105c36: 83 ec 04 sub $0x4,%esp 80105c39: 8d 45 c8 lea -0x38(%ebp),%eax 80105c3c: 50 push %eax 80105c3d: 8d 45 d2 lea -0x2e(%ebp),%eax 80105c40: 50 push %eax 80105c41: ff 75 f4 pushl -0xc(%ebp) 80105c44: e8 8f c5 ff ff call 801021d8 <dirlookup> 80105c49: 83 c4 10 add $0x10,%esp 80105c4c: 89 45 f0 mov %eax,-0x10(%ebp) 80105c4f: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80105c53: 0f 84 0d 01 00 00 je 80105d66 <sys_unlink+0x1cb> goto bad; ilock(ip); 80105c59: 83 ec 0c sub $0xc,%esp 80105c5c: ff 75 f0 pushl -0x10(%ebp) 80105c5f: e8 11 bd ff ff call 80101975 <ilock> 80105c64: 83 c4 10 add $0x10,%esp if(ip->nlink < 1) 80105c67: 8b 45 f0 mov -0x10(%ebp),%eax 80105c6a: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105c6e: 66 85 c0 test %ax,%ax 80105c71: 7f 0d jg 80105c80 <sys_unlink+0xe5> panic("unlink: nlink < 1"); 80105c73: 83 ec 0c sub $0xc,%esp 80105c76: 68 1a 8a 10 80 push $0x80108a1a 80105c7b: e8 e7 a8 ff ff call 80100567 <panic> if(ip->type == T_DIR && !isdirempty(ip)){ 80105c80: 8b 45 f0 mov -0x10(%ebp),%eax 80105c83: 0f b7 40 10 movzwl 0x10(%eax),%eax 80105c87: 66 83 f8 01 cmp $0x1,%ax 80105c8b: 75 25 jne 80105cb2 <sys_unlink+0x117> 80105c8d: 83 ec 0c sub $0xc,%esp 80105c90: ff 75 f0 pushl -0x10(%ebp) 80105c93: e8 a0 fe ff ff call 80105b38 <isdirempty> 80105c98: 83 c4 10 add $0x10,%esp 80105c9b: 85 c0 test %eax,%eax 80105c9d: 75 13 jne 80105cb2 <sys_unlink+0x117> iunlockput(ip); 80105c9f: 83 ec 0c sub $0xc,%esp 80105ca2: ff 75 f0 pushl -0x10(%ebp) 80105ca5: e8 8b bf ff ff call 80101c35 <iunlockput> 80105caa: 83 c4 10 add $0x10,%esp goto bad; 80105cad: e9 b5 00 00 00 jmp 80105d67 <sys_unlink+0x1cc> } memset(&de, 0, sizeof(de)); 80105cb2: 83 ec 04 sub $0x4,%esp 80105cb5: 6a 10 push $0x10 80105cb7: 6a 00 push $0x0 80105cb9: 8d 45 e0 lea -0x20(%ebp),%eax 80105cbc: 50 push %eax 80105cbd: e8 e5 f5 ff ff call 801052a7 <memset> 80105cc2: 83 c4 10 add $0x10,%esp if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80105cc5: 8b 45 c8 mov -0x38(%ebp),%eax 80105cc8: 6a 10 push $0x10 80105cca: 50 push %eax 80105ccb: 8d 45 e0 lea -0x20(%ebp),%eax 80105cce: 50 push %eax 80105ccf: ff 75 f4 pushl -0xc(%ebp) 80105cd2: e8 5e c3 ff ff call 80102035 <writei> 80105cd7: 83 c4 10 add $0x10,%esp 80105cda: 83 f8 10 cmp $0x10,%eax 80105cdd: 74 0d je 80105cec <sys_unlink+0x151> panic("unlink: writei"); 80105cdf: 83 ec 0c sub $0xc,%esp 80105ce2: 68 2c 8a 10 80 push $0x80108a2c 80105ce7: e8 7b a8 ff ff call 80100567 <panic> if(ip->type == T_DIR){ 80105cec: 8b 45 f0 mov -0x10(%ebp),%eax 80105cef: 0f b7 40 10 movzwl 0x10(%eax),%eax 80105cf3: 66 83 f8 01 cmp $0x1,%ax 80105cf7: 75 21 jne 80105d1a <sys_unlink+0x17f> dp->nlink--; 80105cf9: 8b 45 f4 mov -0xc(%ebp),%eax 80105cfc: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105d00: 83 e8 01 sub $0x1,%eax 80105d03: 89 c2 mov %eax,%edx 80105d05: 8b 45 f4 mov -0xc(%ebp),%eax 80105d08: 66 89 50 16 mov %dx,0x16(%eax) iupdate(dp); 80105d0c: 83 ec 0c sub $0xc,%esp 80105d0f: ff 75 f4 pushl -0xc(%ebp) 80105d12: e8 84 ba ff ff call 8010179b <iupdate> 80105d17: 83 c4 10 add $0x10,%esp } iunlockput(dp); 80105d1a: 83 ec 0c sub $0xc,%esp 80105d1d: ff 75 f4 pushl -0xc(%ebp) 80105d20: e8 10 bf ff ff call 80101c35 <iunlockput> 80105d25: 83 c4 10 add $0x10,%esp ip->nlink--; 80105d28: 8b 45 f0 mov -0x10(%ebp),%eax 80105d2b: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105d2f: 83 e8 01 sub $0x1,%eax 80105d32: 89 c2 mov %eax,%edx 80105d34: 8b 45 f0 mov -0x10(%ebp),%eax 80105d37: 66 89 50 16 mov %dx,0x16(%eax) iupdate(ip); 80105d3b: 83 ec 0c sub $0xc,%esp 80105d3e: ff 75 f0 pushl -0x10(%ebp) 80105d41: e8 55 ba ff ff call 8010179b <iupdate> 80105d46: 83 c4 10 add $0x10,%esp iunlockput(ip); 80105d49: 83 ec 0c sub $0xc,%esp 80105d4c: ff 75 f0 pushl -0x10(%ebp) 80105d4f: e8 e1 be ff ff call 80101c35 <iunlockput> 80105d54: 83 c4 10 add $0x10,%esp end_op(); 80105d57: e8 86 d8 ff ff call 801035e2 <end_op> return 0; 80105d5c: b8 00 00 00 00 mov $0x0,%eax 80105d61: eb 1c jmp 80105d7f <sys_unlink+0x1e4> goto bad; 80105d63: 90 nop 80105d64: eb 01 jmp 80105d67 <sys_unlink+0x1cc> goto bad; 80105d66: 90 nop bad: iunlockput(dp); 80105d67: 83 ec 0c sub $0xc,%esp 80105d6a: ff 75 f4 pushl -0xc(%ebp) 80105d6d: e8 c3 be ff ff call 80101c35 <iunlockput> 80105d72: 83 c4 10 add $0x10,%esp end_op(); 80105d75: e8 68 d8 ff ff call 801035e2 <end_op> return -1; 80105d7a: b8 ff ff ff ff mov $0xffffffff,%eax } 80105d7f: c9 leave 80105d80: c3 ret 80105d81 <create>: static struct inode* create(char *path, short type, short major, short minor) { 80105d81: 55 push %ebp 80105d82: 89 e5 mov %esp,%ebp 80105d84: 83 ec 38 sub $0x38,%esp 80105d87: 8b 4d 0c mov 0xc(%ebp),%ecx 80105d8a: 8b 55 10 mov 0x10(%ebp),%edx 80105d8d: 8b 45 14 mov 0x14(%ebp),%eax 80105d90: 66 89 4d d4 mov %cx,-0x2c(%ebp) 80105d94: 66 89 55 d0 mov %dx,-0x30(%ebp) 80105d98: 66 89 45 cc mov %ax,-0x34(%ebp) uint off; struct inode *ip, *dp; char name[DIRSIZ]; if((dp = nameiparent(path, name)) == 0) 80105d9c: 83 ec 08 sub $0x8,%esp 80105d9f: 8d 45 de lea -0x22(%ebp),%eax 80105da2: 50 push %eax 80105da3: ff 75 08 pushl 0x8(%ebp) 80105da6: e8 9b c7 ff ff call 80102546 <nameiparent> 80105dab: 83 c4 10 add $0x10,%esp 80105dae: 89 45 f4 mov %eax,-0xc(%ebp) 80105db1: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105db5: 75 0a jne 80105dc1 <create+0x40> return 0; 80105db7: b8 00 00 00 00 mov $0x0,%eax 80105dbc: e9 90 01 00 00 jmp 80105f51 <create+0x1d0> ilock(dp); 80105dc1: 83 ec 0c sub $0xc,%esp 80105dc4: ff 75 f4 pushl -0xc(%ebp) 80105dc7: e8 a9 bb ff ff call 80101975 <ilock> 80105dcc: 83 c4 10 add $0x10,%esp if((ip = dirlookup(dp, name, &off)) != 0){ 80105dcf: 83 ec 04 sub $0x4,%esp 80105dd2: 8d 45 ec lea -0x14(%ebp),%eax 80105dd5: 50 push %eax 80105dd6: 8d 45 de lea -0x22(%ebp),%eax 80105dd9: 50 push %eax 80105dda: ff 75 f4 pushl -0xc(%ebp) 80105ddd: e8 f6 c3 ff ff call 801021d8 <dirlookup> 80105de2: 83 c4 10 add $0x10,%esp 80105de5: 89 45 f0 mov %eax,-0x10(%ebp) 80105de8: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80105dec: 74 50 je 80105e3e <create+0xbd> iunlockput(dp); 80105dee: 83 ec 0c sub $0xc,%esp 80105df1: ff 75 f4 pushl -0xc(%ebp) 80105df4: e8 3c be ff ff call 80101c35 <iunlockput> 80105df9: 83 c4 10 add $0x10,%esp ilock(ip); 80105dfc: 83 ec 0c sub $0xc,%esp 80105dff: ff 75 f0 pushl -0x10(%ebp) 80105e02: e8 6e bb ff ff call 80101975 <ilock> 80105e07: 83 c4 10 add $0x10,%esp if(type == T_FILE && ip->type == T_FILE) 80105e0a: 66 83 7d d4 02 cmpw $0x2,-0x2c(%ebp) 80105e0f: 75 15 jne 80105e26 <create+0xa5> 80105e11: 8b 45 f0 mov -0x10(%ebp),%eax 80105e14: 0f b7 40 10 movzwl 0x10(%eax),%eax 80105e18: 66 83 f8 02 cmp $0x2,%ax 80105e1c: 75 08 jne 80105e26 <create+0xa5> return ip; 80105e1e: 8b 45 f0 mov -0x10(%ebp),%eax 80105e21: e9 2b 01 00 00 jmp 80105f51 <create+0x1d0> iunlockput(ip); 80105e26: 83 ec 0c sub $0xc,%esp 80105e29: ff 75 f0 pushl -0x10(%ebp) 80105e2c: e8 04 be ff ff call 80101c35 <iunlockput> 80105e31: 83 c4 10 add $0x10,%esp return 0; 80105e34: b8 00 00 00 00 mov $0x0,%eax 80105e39: e9 13 01 00 00 jmp 80105f51 <create+0x1d0> } if((ip = ialloc(dp->dev, type)) == 0) 80105e3e: 0f bf 55 d4 movswl -0x2c(%ebp),%edx 80105e42: 8b 45 f4 mov -0xc(%ebp),%eax 80105e45: 8b 00 mov (%eax),%eax 80105e47: 83 ec 08 sub $0x8,%esp 80105e4a: 52 push %edx 80105e4b: 50 push %eax 80105e4c: e8 73 b8 ff ff call 801016c4 <ialloc> 80105e51: 83 c4 10 add $0x10,%esp 80105e54: 89 45 f0 mov %eax,-0x10(%ebp) 80105e57: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80105e5b: 75 0d jne 80105e6a <create+0xe9> panic("create: ialloc"); 80105e5d: 83 ec 0c sub $0xc,%esp 80105e60: 68 3b 8a 10 80 push $0x80108a3b 80105e65: e8 fd a6 ff ff call 80100567 <panic> ilock(ip); 80105e6a: 83 ec 0c sub $0xc,%esp 80105e6d: ff 75 f0 pushl -0x10(%ebp) 80105e70: e8 00 bb ff ff call 80101975 <ilock> 80105e75: 83 c4 10 add $0x10,%esp ip->major = major; 80105e78: 8b 45 f0 mov -0x10(%ebp),%eax 80105e7b: 0f b7 55 d0 movzwl -0x30(%ebp),%edx 80105e7f: 66 89 50 12 mov %dx,0x12(%eax) ip->minor = minor; 80105e83: 8b 45 f0 mov -0x10(%ebp),%eax 80105e86: 0f b7 55 cc movzwl -0x34(%ebp),%edx 80105e8a: 66 89 50 14 mov %dx,0x14(%eax) ip->nlink = 1; 80105e8e: 8b 45 f0 mov -0x10(%ebp),%eax 80105e91: 66 c7 40 16 01 00 movw $0x1,0x16(%eax) iupdate(ip); 80105e97: 83 ec 0c sub $0xc,%esp 80105e9a: ff 75 f0 pushl -0x10(%ebp) 80105e9d: e8 f9 b8 ff ff call 8010179b <iupdate> 80105ea2: 83 c4 10 add $0x10,%esp if(type == T_DIR){ // Create . and .. entries. 80105ea5: 66 83 7d d4 01 cmpw $0x1,-0x2c(%ebp) 80105eaa: 75 6a jne 80105f16 <create+0x195> dp->nlink++; // for ".." 80105eac: 8b 45 f4 mov -0xc(%ebp),%eax 80105eaf: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105eb3: 83 c0 01 add $0x1,%eax 80105eb6: 89 c2 mov %eax,%edx 80105eb8: 8b 45 f4 mov -0xc(%ebp),%eax 80105ebb: 66 89 50 16 mov %dx,0x16(%eax) iupdate(dp); 80105ebf: 83 ec 0c sub $0xc,%esp 80105ec2: ff 75 f4 pushl -0xc(%ebp) 80105ec5: e8 d1 b8 ff ff call 8010179b <iupdate> 80105eca: 83 c4 10 add $0x10,%esp // No ip->nlink++ for ".": avoid cyclic ref count. if(dirlink(ip, ".", ip->inum) < 0 || dirlink(ip, "..", dp->inum) < 0) 80105ecd: 8b 45 f0 mov -0x10(%ebp),%eax 80105ed0: 8b 40 04 mov 0x4(%eax),%eax 80105ed3: 83 ec 04 sub $0x4,%esp 80105ed6: 50 push %eax 80105ed7: 68 15 8a 10 80 push $0x80108a15 80105edc: ff 75 f0 pushl -0x10(%ebp) 80105edf: e8 ae c3 ff ff call 80102292 <dirlink> 80105ee4: 83 c4 10 add $0x10,%esp 80105ee7: 85 c0 test %eax,%eax 80105ee9: 78 1e js 80105f09 <create+0x188> 80105eeb: 8b 45 f4 mov -0xc(%ebp),%eax 80105eee: 8b 40 04 mov 0x4(%eax),%eax 80105ef1: 83 ec 04 sub $0x4,%esp 80105ef4: 50 push %eax 80105ef5: 68 17 8a 10 80 push $0x80108a17 80105efa: ff 75 f0 pushl -0x10(%ebp) 80105efd: e8 90 c3 ff ff call 80102292 <dirlink> 80105f02: 83 c4 10 add $0x10,%esp 80105f05: 85 c0 test %eax,%eax 80105f07: 79 0d jns 80105f16 <create+0x195> panic("create dots"); 80105f09: 83 ec 0c sub $0xc,%esp 80105f0c: 68 4a 8a 10 80 push $0x80108a4a 80105f11: e8 51 a6 ff ff call 80100567 <panic> } if(dirlink(dp, name, ip->inum) < 0) 80105f16: 8b 45 f0 mov -0x10(%ebp),%eax 80105f19: 8b 40 04 mov 0x4(%eax),%eax 80105f1c: 83 ec 04 sub $0x4,%esp 80105f1f: 50 push %eax 80105f20: 8d 45 de lea -0x22(%ebp),%eax 80105f23: 50 push %eax 80105f24: ff 75 f4 pushl -0xc(%ebp) 80105f27: e8 66 c3 ff ff call 80102292 <dirlink> 80105f2c: 83 c4 10 add $0x10,%esp 80105f2f: 85 c0 test %eax,%eax 80105f31: 79 0d jns 80105f40 <create+0x1bf> panic("create: dirlink"); 80105f33: 83 ec 0c sub $0xc,%esp 80105f36: 68 56 8a 10 80 push $0x80108a56 80105f3b: e8 27 a6 ff ff call 80100567 <panic> iunlockput(dp); 80105f40: 83 ec 0c sub $0xc,%esp 80105f43: ff 75 f4 pushl -0xc(%ebp) 80105f46: e8 ea bc ff ff call 80101c35 <iunlockput> 80105f4b: 83 c4 10 add $0x10,%esp return ip; 80105f4e: 8b 45 f0 mov -0x10(%ebp),%eax } 80105f51: c9 leave 80105f52: c3 ret 80105f53 <sys_open>: int sys_open(void) { 80105f53: 55 push %ebp 80105f54: 89 e5 mov %esp,%ebp 80105f56: 83 ec 28 sub $0x28,%esp char *path; int fd, omode; struct file *f; struct inode *ip; if(argstr(0, &path) < 0 || argint(1, &omode) < 0) 80105f59: 83 ec 08 sub $0x8,%esp 80105f5c: 8d 45 e8 lea -0x18(%ebp),%eax 80105f5f: 50 push %eax 80105f60: 6a 00 push $0x0 80105f62: e8 ea f6 ff ff call 80105651 <argstr> 80105f67: 83 c4 10 add $0x10,%esp 80105f6a: 85 c0 test %eax,%eax 80105f6c: 78 15 js 80105f83 <sys_open+0x30> 80105f6e: 83 ec 08 sub $0x8,%esp 80105f71: 8d 45 e4 lea -0x1c(%ebp),%eax 80105f74: 50 push %eax 80105f75: 6a 01 push $0x1 80105f77: e8 50 f6 ff ff call 801055cc <argint> 80105f7c: 83 c4 10 add $0x10,%esp 80105f7f: 85 c0 test %eax,%eax 80105f81: 79 0a jns 80105f8d <sys_open+0x3a> return -1; 80105f83: b8 ff ff ff ff mov $0xffffffff,%eax 80105f88: e9 61 01 00 00 jmp 801060ee <sys_open+0x19b> begin_op(); 80105f8d: e8 c4 d5 ff ff call 80103556 <begin_op> if(omode & O_CREATE){ 80105f92: 8b 45 e4 mov -0x1c(%ebp),%eax 80105f95: 25 00 02 00 00 and $0x200,%eax 80105f9a: 85 c0 test %eax,%eax 80105f9c: 74 2a je 80105fc8 <sys_open+0x75> ip = create(path, T_FILE, 0, 0); 80105f9e: 8b 45 e8 mov -0x18(%ebp),%eax 80105fa1: 6a 00 push $0x0 80105fa3: 6a 00 push $0x0 80105fa5: 6a 02 push $0x2 80105fa7: 50 push %eax 80105fa8: e8 d4 fd ff ff call 80105d81 <create> 80105fad: 83 c4 10 add $0x10,%esp 80105fb0: 89 45 f4 mov %eax,-0xc(%ebp) if(ip == 0){ 80105fb3: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105fb7: 75 75 jne 8010602e <sys_open+0xdb> end_op(); 80105fb9: e8 24 d6 ff ff call 801035e2 <end_op> return -1; 80105fbe: b8 ff ff ff ff mov $0xffffffff,%eax 80105fc3: e9 26 01 00 00 jmp 801060ee <sys_open+0x19b> } } else { if((ip = namei(path)) == 0){ 80105fc8: 8b 45 e8 mov -0x18(%ebp),%eax 80105fcb: 83 ec 0c sub $0xc,%esp 80105fce: 50 push %eax 80105fcf: e8 56 c5 ff ff call 8010252a <namei> 80105fd4: 83 c4 10 add $0x10,%esp 80105fd7: 89 45 f4 mov %eax,-0xc(%ebp) 80105fda: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105fde: 75 0f jne 80105fef <sys_open+0x9c> end_op(); 80105fe0: e8 fd d5 ff ff call 801035e2 <end_op> return -1; 80105fe5: b8 ff ff ff ff mov $0xffffffff,%eax 80105fea: e9 ff 00 00 00 jmp 801060ee <sys_open+0x19b> } ilock(ip); 80105fef: 83 ec 0c sub $0xc,%esp 80105ff2: ff 75 f4 pushl -0xc(%ebp) 80105ff5: e8 7b b9 ff ff call 80101975 <ilock> 80105ffa: 83 c4 10 add $0x10,%esp if(ip->type == T_DIR && omode != O_RDONLY){ 80105ffd: 8b 45 f4 mov -0xc(%ebp),%eax 80106000: 0f b7 40 10 movzwl 0x10(%eax),%eax 80106004: 66 83 f8 01 cmp $0x1,%ax 80106008: 75 24 jne 8010602e <sys_open+0xdb> 8010600a: 8b 45 e4 mov -0x1c(%ebp),%eax 8010600d: 85 c0 test %eax,%eax 8010600f: 74 1d je 8010602e <sys_open+0xdb> iunlockput(ip); 80106011: 83 ec 0c sub $0xc,%esp 80106014: ff 75 f4 pushl -0xc(%ebp) 80106017: e8 19 bc ff ff call 80101c35 <iunlockput> 8010601c: 83 c4 10 add $0x10,%esp end_op(); 8010601f: e8 be d5 ff ff call 801035e2 <end_op> return -1; 80106024: b8 ff ff ff ff mov $0xffffffff,%eax 80106029: e9 c0 00 00 00 jmp 801060ee <sys_open+0x19b> } } if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){ 8010602e: e8 6b af ff ff call 80100f9e <filealloc> 80106033: 89 45 f0 mov %eax,-0x10(%ebp) 80106036: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8010603a: 74 17 je 80106053 <sys_open+0x100> 8010603c: 83 ec 0c sub $0xc,%esp 8010603f: ff 75 f0 pushl -0x10(%ebp) 80106042: e8 34 f7 ff ff call 8010577b <fdalloc> 80106047: 83 c4 10 add $0x10,%esp 8010604a: 89 45 ec mov %eax,-0x14(%ebp) 8010604d: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80106051: 79 2e jns 80106081 <sys_open+0x12e> if(f) 80106053: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80106057: 74 0e je 80106067 <sys_open+0x114> fileclose(f); 80106059: 83 ec 0c sub $0xc,%esp 8010605c: ff 75 f0 pushl -0x10(%ebp) 8010605f: e8 f8 af ff ff call 8010105c <fileclose> 80106064: 83 c4 10 add $0x10,%esp iunlockput(ip); 80106067: 83 ec 0c sub $0xc,%esp 8010606a: ff 75 f4 pushl -0xc(%ebp) 8010606d: e8 c3 bb ff ff call 80101c35 <iunlockput> 80106072: 83 c4 10 add $0x10,%esp end_op(); 80106075: e8 68 d5 ff ff call 801035e2 <end_op> return -1; 8010607a: b8 ff ff ff ff mov $0xffffffff,%eax 8010607f: eb 6d jmp 801060ee <sys_open+0x19b> } iunlock(ip); 80106081: 83 ec 0c sub $0xc,%esp 80106084: ff 75 f4 pushl -0xc(%ebp) 80106087: e8 47 ba ff ff call 80101ad3 <iunlock> 8010608c: 83 c4 10 add $0x10,%esp end_op(); 8010608f: e8 4e d5 ff ff call 801035e2 <end_op> f->type = FD_INODE; 80106094: 8b 45 f0 mov -0x10(%ebp),%eax 80106097: c7 00 02 00 00 00 movl $0x2,(%eax) f->ip = ip; 8010609d: 8b 45 f0 mov -0x10(%ebp),%eax 801060a0: 8b 55 f4 mov -0xc(%ebp),%edx 801060a3: 89 50 10 mov %edx,0x10(%eax) f->off = 0; 801060a6: 8b 45 f0 mov -0x10(%ebp),%eax 801060a9: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax) f->readable = !(omode & O_WRONLY); 801060b0: 8b 45 e4 mov -0x1c(%ebp),%eax 801060b3: 83 e0 01 and $0x1,%eax 801060b6: 85 c0 test %eax,%eax 801060b8: 0f 94 c0 sete %al 801060bb: 89 c2 mov %eax,%edx 801060bd: 8b 45 f0 mov -0x10(%ebp),%eax 801060c0: 88 50 08 mov %dl,0x8(%eax) f->writable = (omode & O_WRONLY) || (omode & O_RDWR); 801060c3: 8b 45 e4 mov -0x1c(%ebp),%eax 801060c6: 83 e0 01 and $0x1,%eax 801060c9: 85 c0 test %eax,%eax 801060cb: 75 0a jne 801060d7 <sys_open+0x184> 801060cd: 8b 45 e4 mov -0x1c(%ebp),%eax 801060d0: 83 e0 02 and $0x2,%eax 801060d3: 85 c0 test %eax,%eax 801060d5: 74 07 je 801060de <sys_open+0x18b> 801060d7: b8 01 00 00 00 mov $0x1,%eax 801060dc: eb 05 jmp 801060e3 <sys_open+0x190> 801060de: b8 00 00 00 00 mov $0x0,%eax 801060e3: 89 c2 mov %eax,%edx 801060e5: 8b 45 f0 mov -0x10(%ebp),%eax 801060e8: 88 50 09 mov %dl,0x9(%eax) return fd; 801060eb: 8b 45 ec mov -0x14(%ebp),%eax } 801060ee: c9 leave 801060ef: c3 ret 801060f0 <sys_mkdir>: int sys_mkdir(void) { 801060f0: 55 push %ebp 801060f1: 89 e5 mov %esp,%ebp 801060f3: 83 ec 18 sub $0x18,%esp char *path; struct inode *ip; begin_op(); 801060f6: e8 5b d4 ff ff call 80103556 <begin_op> if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){ 801060fb: 83 ec 08 sub $0x8,%esp 801060fe: 8d 45 f0 lea -0x10(%ebp),%eax 80106101: 50 push %eax 80106102: 6a 00 push $0x0 80106104: e8 48 f5 ff ff call 80105651 <argstr> 80106109: 83 c4 10 add $0x10,%esp 8010610c: 85 c0 test %eax,%eax 8010610e: 78 1b js 8010612b <sys_mkdir+0x3b> 80106110: 8b 45 f0 mov -0x10(%ebp),%eax 80106113: 6a 00 push $0x0 80106115: 6a 00 push $0x0 80106117: 6a 01 push $0x1 80106119: 50 push %eax 8010611a: e8 62 fc ff ff call 80105d81 <create> 8010611f: 83 c4 10 add $0x10,%esp 80106122: 89 45 f4 mov %eax,-0xc(%ebp) 80106125: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80106129: 75 0c jne 80106137 <sys_mkdir+0x47> end_op(); 8010612b: e8 b2 d4 ff ff call 801035e2 <end_op> return -1; 80106130: b8 ff ff ff ff mov $0xffffffff,%eax 80106135: eb 18 jmp 8010614f <sys_mkdir+0x5f> } iunlockput(ip); 80106137: 83 ec 0c sub $0xc,%esp 8010613a: ff 75 f4 pushl -0xc(%ebp) 8010613d: e8 f3 ba ff ff call 80101c35 <iunlockput> 80106142: 83 c4 10 add $0x10,%esp end_op(); 80106145: e8 98 d4 ff ff call 801035e2 <end_op> return 0; 8010614a: b8 00 00 00 00 mov $0x0,%eax } 8010614f: c9 leave 80106150: c3 ret 80106151 <sys_mknod>: int sys_mknod(void) { 80106151: 55 push %ebp 80106152: 89 e5 mov %esp,%ebp 80106154: 83 ec 28 sub $0x28,%esp struct inode *ip; char *path; int len; int major, minor; begin_op(); 80106157: e8 fa d3 ff ff call 80103556 <begin_op> if((len=argstr(0, &path)) < 0 || 8010615c: 83 ec 08 sub $0x8,%esp 8010615f: 8d 45 ec lea -0x14(%ebp),%eax 80106162: 50 push %eax 80106163: 6a 00 push $0x0 80106165: e8 e7 f4 ff ff call 80105651 <argstr> 8010616a: 83 c4 10 add $0x10,%esp 8010616d: 89 45 f4 mov %eax,-0xc(%ebp) 80106170: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80106174: 78 4f js 801061c5 <sys_mknod+0x74> argint(1, &major) < 0 || 80106176: 83 ec 08 sub $0x8,%esp 80106179: 8d 45 e8 lea -0x18(%ebp),%eax 8010617c: 50 push %eax 8010617d: 6a 01 push $0x1 8010617f: e8 48 f4 ff ff call 801055cc <argint> 80106184: 83 c4 10 add $0x10,%esp if((len=argstr(0, &path)) < 0 || 80106187: 85 c0 test %eax,%eax 80106189: 78 3a js 801061c5 <sys_mknod+0x74> argint(2, &minor) < 0 || 8010618b: 83 ec 08 sub $0x8,%esp 8010618e: 8d 45 e4 lea -0x1c(%ebp),%eax 80106191: 50 push %eax 80106192: 6a 02 push $0x2 80106194: e8 33 f4 ff ff call 801055cc <argint> 80106199: 83 c4 10 add $0x10,%esp argint(1, &major) < 0 || 8010619c: 85 c0 test %eax,%eax 8010619e: 78 25 js 801061c5 <sys_mknod+0x74> (ip = create(path, T_DEV, major, minor)) == 0){ 801061a0: 8b 45 e4 mov -0x1c(%ebp),%eax 801061a3: 0f bf c8 movswl %ax,%ecx 801061a6: 8b 45 e8 mov -0x18(%ebp),%eax 801061a9: 0f bf d0 movswl %ax,%edx 801061ac: 8b 45 ec mov -0x14(%ebp),%eax 801061af: 51 push %ecx 801061b0: 52 push %edx 801061b1: 6a 03 push $0x3 801061b3: 50 push %eax 801061b4: e8 c8 fb ff ff call 80105d81 <create> 801061b9: 83 c4 10 add $0x10,%esp 801061bc: 89 45 f0 mov %eax,-0x10(%ebp) argint(2, &minor) < 0 || 801061bf: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801061c3: 75 0c jne 801061d1 <sys_mknod+0x80> end_op(); 801061c5: e8 18 d4 ff ff call 801035e2 <end_op> return -1; 801061ca: b8 ff ff ff ff mov $0xffffffff,%eax 801061cf: eb 18 jmp 801061e9 <sys_mknod+0x98> } iunlockput(ip); 801061d1: 83 ec 0c sub $0xc,%esp 801061d4: ff 75 f0 pushl -0x10(%ebp) 801061d7: e8 59 ba ff ff call 80101c35 <iunlockput> 801061dc: 83 c4 10 add $0x10,%esp end_op(); 801061df: e8 fe d3 ff ff call 801035e2 <end_op> return 0; 801061e4: b8 00 00 00 00 mov $0x0,%eax } 801061e9: c9 leave 801061ea: c3 ret 801061eb <sys_chdir>: int sys_chdir(void) { 801061eb: 55 push %ebp 801061ec: 89 e5 mov %esp,%ebp 801061ee: 83 ec 18 sub $0x18,%esp char *path; struct inode *ip; begin_op(); 801061f1: e8 60 d3 ff ff call 80103556 <begin_op> if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){ 801061f6: 83 ec 08 sub $0x8,%esp 801061f9: 8d 45 f0 lea -0x10(%ebp),%eax 801061fc: 50 push %eax 801061fd: 6a 00 push $0x0 801061ff: e8 4d f4 ff ff call 80105651 <argstr> 80106204: 83 c4 10 add $0x10,%esp 80106207: 85 c0 test %eax,%eax 80106209: 78 18 js 80106223 <sys_chdir+0x38> 8010620b: 8b 45 f0 mov -0x10(%ebp),%eax 8010620e: 83 ec 0c sub $0xc,%esp 80106211: 50 push %eax 80106212: e8 13 c3 ff ff call 8010252a <namei> 80106217: 83 c4 10 add $0x10,%esp 8010621a: 89 45 f4 mov %eax,-0xc(%ebp) 8010621d: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80106221: 75 0c jne 8010622f <sys_chdir+0x44> end_op(); 80106223: e8 ba d3 ff ff call 801035e2 <end_op> return -1; 80106228: b8 ff ff ff ff mov $0xffffffff,%eax 8010622d: eb 6e jmp 8010629d <sys_chdir+0xb2> } ilock(ip); 8010622f: 83 ec 0c sub $0xc,%esp 80106232: ff 75 f4 pushl -0xc(%ebp) 80106235: e8 3b b7 ff ff call 80101975 <ilock> 8010623a: 83 c4 10 add $0x10,%esp if(ip->type != T_DIR){ 8010623d: 8b 45 f4 mov -0xc(%ebp),%eax 80106240: 0f b7 40 10 movzwl 0x10(%eax),%eax 80106244: 66 83 f8 01 cmp $0x1,%ax 80106248: 74 1a je 80106264 <sys_chdir+0x79> iunlockput(ip); 8010624a: 83 ec 0c sub $0xc,%esp 8010624d: ff 75 f4 pushl -0xc(%ebp) 80106250: e8 e0 b9 ff ff call 80101c35 <iunlockput> 80106255: 83 c4 10 add $0x10,%esp end_op(); 80106258: e8 85 d3 ff ff call 801035e2 <end_op> return -1; 8010625d: b8 ff ff ff ff mov $0xffffffff,%eax 80106262: eb 39 jmp 8010629d <sys_chdir+0xb2> } iunlock(ip); 80106264: 83 ec 0c sub $0xc,%esp 80106267: ff 75 f4 pushl -0xc(%ebp) 8010626a: e8 64 b8 ff ff call 80101ad3 <iunlock> 8010626f: 83 c4 10 add $0x10,%esp iput(proc->cwd); 80106272: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106278: 8b 40 68 mov 0x68(%eax),%eax 8010627b: 83 ec 0c sub $0xc,%esp 8010627e: 50 push %eax 8010627f: e8 c1 b8 ff ff call 80101b45 <iput> 80106284: 83 c4 10 add $0x10,%esp end_op(); 80106287: e8 56 d3 ff ff call 801035e2 <end_op> proc->cwd = ip; 8010628c: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106292: 8b 55 f4 mov -0xc(%ebp),%edx 80106295: 89 50 68 mov %edx,0x68(%eax) return 0; 80106298: b8 00 00 00 00 mov $0x0,%eax } 8010629d: c9 leave 8010629e: c3 ret 8010629f <sys_exec>: int sys_exec(void) { 8010629f: 55 push %ebp 801062a0: 89 e5 mov %esp,%ebp 801062a2: 81 ec 98 00 00 00 sub $0x98,%esp char *path, *argv[MAXARG]; int i; uint uargv, uarg; if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){ 801062a8: 83 ec 08 sub $0x8,%esp 801062ab: 8d 45 f0 lea -0x10(%ebp),%eax 801062ae: 50 push %eax 801062af: 6a 00 push $0x0 801062b1: e8 9b f3 ff ff call 80105651 <argstr> 801062b6: 83 c4 10 add $0x10,%esp 801062b9: 85 c0 test %eax,%eax 801062bb: 78 18 js 801062d5 <sys_exec+0x36> 801062bd: 83 ec 08 sub $0x8,%esp 801062c0: 8d 85 6c ff ff ff lea -0x94(%ebp),%eax 801062c6: 50 push %eax 801062c7: 6a 01 push $0x1 801062c9: e8 fe f2 ff ff call 801055cc <argint> 801062ce: 83 c4 10 add $0x10,%esp 801062d1: 85 c0 test %eax,%eax 801062d3: 79 0a jns 801062df <sys_exec+0x40> return -1; 801062d5: b8 ff ff ff ff mov $0xffffffff,%eax 801062da: e9 c6 00 00 00 jmp 801063a5 <sys_exec+0x106> } memset(argv, 0, sizeof(argv)); 801062df: 83 ec 04 sub $0x4,%esp 801062e2: 68 80 00 00 00 push $0x80 801062e7: 6a 00 push $0x0 801062e9: 8d 85 70 ff ff ff lea -0x90(%ebp),%eax 801062ef: 50 push %eax 801062f0: e8 b2 ef ff ff call 801052a7 <memset> 801062f5: 83 c4 10 add $0x10,%esp for(i=0;; i++){ 801062f8: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) if(i >= NELEM(argv)) 801062ff: 8b 45 f4 mov -0xc(%ebp),%eax 80106302: 83 f8 1f cmp $0x1f,%eax 80106305: 76 0a jbe 80106311 <sys_exec+0x72> return -1; 80106307: b8 ff ff ff ff mov $0xffffffff,%eax 8010630c: e9 94 00 00 00 jmp 801063a5 <sys_exec+0x106> if(fetchint(uargv+4*i, (int*)&uarg) < 0) 80106311: 8b 45 f4 mov -0xc(%ebp),%eax 80106314: c1 e0 02 shl $0x2,%eax 80106317: 89 c2 mov %eax,%edx 80106319: 8b 85 6c ff ff ff mov -0x94(%ebp),%eax 8010631f: 01 c2 add %eax,%edx 80106321: 83 ec 08 sub $0x8,%esp 80106324: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax 8010632a: 50 push %eax 8010632b: 52 push %edx 8010632c: e8 ff f1 ff ff call 80105530 <fetchint> 80106331: 83 c4 10 add $0x10,%esp 80106334: 85 c0 test %eax,%eax 80106336: 79 07 jns 8010633f <sys_exec+0xa0> return -1; 80106338: b8 ff ff ff ff mov $0xffffffff,%eax 8010633d: eb 66 jmp 801063a5 <sys_exec+0x106> if(uarg == 0){ 8010633f: 8b 85 68 ff ff ff mov -0x98(%ebp),%eax 80106345: 85 c0 test %eax,%eax 80106347: 75 27 jne 80106370 <sys_exec+0xd1> argv[i] = 0; 80106349: 8b 45 f4 mov -0xc(%ebp),%eax 8010634c: c7 84 85 70 ff ff ff movl $0x0,-0x90(%ebp,%eax,4) 80106353: 00 00 00 00 break; 80106357: 90 nop } if(fetchstr(uarg, &argv[i]) < 0) return -1; } return exec(path, argv); 80106358: 8b 45 f0 mov -0x10(%ebp),%eax 8010635b: 83 ec 08 sub $0x8,%esp 8010635e: 8d 95 70 ff ff ff lea -0x90(%ebp),%edx 80106364: 52 push %edx 80106365: 50 push %eax 80106366: e8 11 a8 ff ff call 80100b7c <exec> 8010636b: 83 c4 10 add $0x10,%esp 8010636e: eb 35 jmp 801063a5 <sys_exec+0x106> if(fetchstr(uarg, &argv[i]) < 0) 80106370: 8d 85 70 ff ff ff lea -0x90(%ebp),%eax 80106376: 8b 55 f4 mov -0xc(%ebp),%edx 80106379: c1 e2 02 shl $0x2,%edx 8010637c: 01 c2 add %eax,%edx 8010637e: 8b 85 68 ff ff ff mov -0x98(%ebp),%eax 80106384: 83 ec 08 sub $0x8,%esp 80106387: 52 push %edx 80106388: 50 push %eax 80106389: e8 dc f1 ff ff call 8010556a <fetchstr> 8010638e: 83 c4 10 add $0x10,%esp 80106391: 85 c0 test %eax,%eax 80106393: 79 07 jns 8010639c <sys_exec+0xfd> return -1; 80106395: b8 ff ff ff ff mov $0xffffffff,%eax 8010639a: eb 09 jmp 801063a5 <sys_exec+0x106> for(i=0;; i++){ 8010639c: 83 45 f4 01 addl $0x1,-0xc(%ebp) if(i >= NELEM(argv)) 801063a0: e9 5a ff ff ff jmp 801062ff <sys_exec+0x60> } 801063a5: c9 leave 801063a6: c3 ret 801063a7 <sys_pipe>: int sys_pipe(void) { 801063a7: 55 push %ebp 801063a8: 89 e5 mov %esp,%ebp 801063aa: 83 ec 28 sub $0x28,%esp int *fd; struct file *rf, *wf; int fd0, fd1; if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0) 801063ad: 83 ec 04 sub $0x4,%esp 801063b0: 6a 08 push $0x8 801063b2: 8d 45 ec lea -0x14(%ebp),%eax 801063b5: 50 push %eax 801063b6: 6a 00 push $0x0 801063b8: e8 37 f2 ff ff call 801055f4 <argptr> 801063bd: 83 c4 10 add $0x10,%esp 801063c0: 85 c0 test %eax,%eax 801063c2: 79 0a jns 801063ce <sys_pipe+0x27> return -1; 801063c4: b8 ff ff ff ff mov $0xffffffff,%eax 801063c9: e9 af 00 00 00 jmp 8010647d <sys_pipe+0xd6> if(pipealloc(&rf, &wf) < 0) 801063ce: 83 ec 08 sub $0x8,%esp 801063d1: 8d 45 e4 lea -0x1c(%ebp),%eax 801063d4: 50 push %eax 801063d5: 8d 45 e8 lea -0x18(%ebp),%eax 801063d8: 50 push %eax 801063d9: e8 78 dc ff ff call 80104056 <pipealloc> 801063de: 83 c4 10 add $0x10,%esp 801063e1: 85 c0 test %eax,%eax 801063e3: 79 0a jns 801063ef <sys_pipe+0x48> return -1; 801063e5: b8 ff ff ff ff mov $0xffffffff,%eax 801063ea: e9 8e 00 00 00 jmp 8010647d <sys_pipe+0xd6> fd0 = -1; 801063ef: c7 45 f4 ff ff ff ff movl $0xffffffff,-0xc(%ebp) if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){ 801063f6: 8b 45 e8 mov -0x18(%ebp),%eax 801063f9: 83 ec 0c sub $0xc,%esp 801063fc: 50 push %eax 801063fd: e8 79 f3 ff ff call 8010577b <fdalloc> 80106402: 83 c4 10 add $0x10,%esp 80106405: 89 45 f4 mov %eax,-0xc(%ebp) 80106408: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010640c: 78 18 js 80106426 <sys_pipe+0x7f> 8010640e: 8b 45 e4 mov -0x1c(%ebp),%eax 80106411: 83 ec 0c sub $0xc,%esp 80106414: 50 push %eax 80106415: e8 61 f3 ff ff call 8010577b <fdalloc> 8010641a: 83 c4 10 add $0x10,%esp 8010641d: 89 45 f0 mov %eax,-0x10(%ebp) 80106420: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80106424: 79 3f jns 80106465 <sys_pipe+0xbe> if(fd0 >= 0) 80106426: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010642a: 78 14 js 80106440 <sys_pipe+0x99> proc->ofile[fd0] = 0; 8010642c: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106432: 8b 55 f4 mov -0xc(%ebp),%edx 80106435: 83 c2 08 add $0x8,%edx 80106438: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4) 8010643f: 00 fileclose(rf); 80106440: 8b 45 e8 mov -0x18(%ebp),%eax 80106443: 83 ec 0c sub $0xc,%esp 80106446: 50 push %eax 80106447: e8 10 ac ff ff call 8010105c <fileclose> 8010644c: 83 c4 10 add $0x10,%esp fileclose(wf); 8010644f: 8b 45 e4 mov -0x1c(%ebp),%eax 80106452: 83 ec 0c sub $0xc,%esp 80106455: 50 push %eax 80106456: e8 01 ac ff ff call 8010105c <fileclose> 8010645b: 83 c4 10 add $0x10,%esp return -1; 8010645e: b8 ff ff ff ff mov $0xffffffff,%eax 80106463: eb 18 jmp 8010647d <sys_pipe+0xd6> } fd[0] = fd0; 80106465: 8b 45 ec mov -0x14(%ebp),%eax 80106468: 8b 55 f4 mov -0xc(%ebp),%edx 8010646b: 89 10 mov %edx,(%eax) fd[1] = fd1; 8010646d: 8b 45 ec mov -0x14(%ebp),%eax 80106470: 8d 50 04 lea 0x4(%eax),%edx 80106473: 8b 45 f0 mov -0x10(%ebp),%eax 80106476: 89 02 mov %eax,(%edx) return 0; 80106478: b8 00 00 00 00 mov $0x0,%eax } 8010647d: c9 leave 8010647e: c3 ret 8010647f <sys_fork>: #include "mmu.h" #include "proc.h" int sys_fork(void) { 8010647f: 55 push %ebp 80106480: 89 e5 mov %esp,%ebp 80106482: 83 ec 08 sub $0x8,%esp return fork(); 80106485: e8 cc e2 ff ff call 80104756 <fork> } 8010648a: c9 leave 8010648b: c3 ret 8010648c <sys_exit>: int sys_exit(void) { 8010648c: 55 push %ebp 8010648d: 89 e5 mov %esp,%ebp 8010648f: 83 ec 08 sub $0x8,%esp exit(); 80106492: e8 52 e4 ff ff call 801048e9 <exit> return 0; // not reached 80106497: b8 00 00 00 00 mov $0x0,%eax } 8010649c: c9 leave 8010649d: c3 ret 8010649e <sys_wait>: int sys_wait(void) { 8010649e: 55 push %ebp 8010649f: 89 e5 mov %esp,%ebp 801064a1: 83 ec 08 sub $0x8,%esp return wait(); 801064a4: e8 78 e5 ff ff call 80104a21 <wait> } 801064a9: c9 leave 801064aa: c3 ret 801064ab <sys_kill>: int sys_kill(void) { 801064ab: 55 push %ebp 801064ac: 89 e5 mov %esp,%ebp 801064ae: 83 ec 18 sub $0x18,%esp int pid; if(argint(0, &pid) < 0) 801064b1: 83 ec 08 sub $0x8,%esp 801064b4: 8d 45 f4 lea -0xc(%ebp),%eax 801064b7: 50 push %eax 801064b8: 6a 00 push $0x0 801064ba: e8 0d f1 ff ff call 801055cc <argint> 801064bf: 83 c4 10 add $0x10,%esp 801064c2: 85 c0 test %eax,%eax 801064c4: 79 07 jns 801064cd <sys_kill+0x22> return -1; 801064c6: b8 ff ff ff ff mov $0xffffffff,%eax 801064cb: eb 0f jmp 801064dc <sys_kill+0x31> return kill(pid); 801064cd: 8b 45 f4 mov -0xc(%ebp),%eax 801064d0: 83 ec 0c sub $0xc,%esp 801064d3: 50 push %eax 801064d4: e8 94 e9 ff ff call 80104e6d <kill> 801064d9: 83 c4 10 add $0x10,%esp } 801064dc: c9 leave 801064dd: c3 ret 801064de <sys_getpid>: int sys_getpid(void) { 801064de: 55 push %ebp 801064df: 89 e5 mov %esp,%ebp return proc->pid; 801064e1: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801064e7: 8b 40 10 mov 0x10(%eax),%eax } 801064ea: 5d pop %ebp 801064eb: c3 ret 801064ec <sys_sbrk>: int sys_sbrk(void) { 801064ec: 55 push %ebp 801064ed: 89 e5 mov %esp,%ebp 801064ef: 83 ec 18 sub $0x18,%esp int addr; int n; if(argint(0, &n) < 0) 801064f2: 83 ec 08 sub $0x8,%esp 801064f5: 8d 45 f0 lea -0x10(%ebp),%eax 801064f8: 50 push %eax 801064f9: 6a 00 push $0x0 801064fb: e8 cc f0 ff ff call 801055cc <argint> 80106500: 83 c4 10 add $0x10,%esp 80106503: 85 c0 test %eax,%eax 80106505: 79 07 jns 8010650e <sys_sbrk+0x22> return -1; 80106507: b8 ff ff ff ff mov $0xffffffff,%eax 8010650c: eb 28 jmp 80106536 <sys_sbrk+0x4a> addr = proc->sz; 8010650e: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106514: 8b 00 mov (%eax),%eax 80106516: 89 45 f4 mov %eax,-0xc(%ebp) if(growproc(n) < 0) 80106519: 8b 45 f0 mov -0x10(%ebp),%eax 8010651c: 83 ec 0c sub $0xc,%esp 8010651f: 50 push %eax 80106520: e8 8e e1 ff ff call 801046b3 <growproc> 80106525: 83 c4 10 add $0x10,%esp 80106528: 85 c0 test %eax,%eax 8010652a: 79 07 jns 80106533 <sys_sbrk+0x47> return -1; 8010652c: b8 ff ff ff ff mov $0xffffffff,%eax 80106531: eb 03 jmp 80106536 <sys_sbrk+0x4a> return addr; 80106533: 8b 45 f4 mov -0xc(%ebp),%eax } 80106536: c9 leave 80106537: c3 ret 80106538 <sys_sleep>: int sys_sleep(void) { 80106538: 55 push %ebp 80106539: 89 e5 mov %esp,%ebp 8010653b: 83 ec 18 sub $0x18,%esp int n; uint ticks0; if(argint(0, &n) < 0) 8010653e: 83 ec 08 sub $0x8,%esp 80106541: 8d 45 f0 lea -0x10(%ebp),%eax 80106544: 50 push %eax 80106545: 6a 00 push $0x0 80106547: e8 80 f0 ff ff call 801055cc <argint> 8010654c: 83 c4 10 add $0x10,%esp 8010654f: 85 c0 test %eax,%eax 80106551: 79 07 jns 8010655a <sys_sleep+0x22> return -1; 80106553: b8 ff ff ff ff mov $0xffffffff,%eax 80106558: eb 77 jmp 801065d1 <sys_sleep+0x99> acquire(&tickslock); 8010655a: 83 ec 0c sub $0xc,%esp 8010655d: 68 a0 48 11 80 push $0x801148a0 80106562: e8 dd ea ff ff call 80105044 <acquire> 80106567: 83 c4 10 add $0x10,%esp ticks0 = ticks; 8010656a: a1 e0 50 11 80 mov 0x801150e0,%eax 8010656f: 89 45 f4 mov %eax,-0xc(%ebp) while(ticks - ticks0 < n){ 80106572: eb 39 jmp 801065ad <sys_sleep+0x75> if(proc->killed){ 80106574: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010657a: 8b 40 24 mov 0x24(%eax),%eax 8010657d: 85 c0 test %eax,%eax 8010657f: 74 17 je 80106598 <sys_sleep+0x60> release(&tickslock); 80106581: 83 ec 0c sub $0xc,%esp 80106584: 68 a0 48 11 80 push $0x801148a0 80106589: e8 1d eb ff ff call 801050ab <release> 8010658e: 83 c4 10 add $0x10,%esp return -1; 80106591: b8 ff ff ff ff mov $0xffffffff,%eax 80106596: eb 39 jmp 801065d1 <sys_sleep+0x99> } sleep(&ticks, &tickslock); 80106598: 83 ec 08 sub $0x8,%esp 8010659b: 68 a0 48 11 80 push $0x801148a0 801065a0: 68 e0 50 11 80 push $0x801150e0 801065a5: e8 a1 e7 ff ff call 80104d4b <sleep> 801065aa: 83 c4 10 add $0x10,%esp while(ticks - ticks0 < n){ 801065ad: a1 e0 50 11 80 mov 0x801150e0,%eax 801065b2: 2b 45 f4 sub -0xc(%ebp),%eax 801065b5: 8b 55 f0 mov -0x10(%ebp),%edx 801065b8: 39 d0 cmp %edx,%eax 801065ba: 72 b8 jb 80106574 <sys_sleep+0x3c> } release(&tickslock); 801065bc: 83 ec 0c sub $0xc,%esp 801065bf: 68 a0 48 11 80 push $0x801148a0 801065c4: e8 e2 ea ff ff call 801050ab <release> 801065c9: 83 c4 10 add $0x10,%esp return 0; 801065cc: b8 00 00 00 00 mov $0x0,%eax } 801065d1: c9 leave 801065d2: c3 ret 801065d3 <sys_uptime>: // return how many clock tick interrupts have occurred // since start. int sys_uptime(void) { 801065d3: 55 push %ebp 801065d4: 89 e5 mov %esp,%ebp 801065d6: 83 ec 18 sub $0x18,%esp uint xticks; acquire(&tickslock); 801065d9: 83 ec 0c sub $0xc,%esp 801065dc: 68 a0 48 11 80 push $0x801148a0 801065e1: e8 5e ea ff ff call 80105044 <acquire> 801065e6: 83 c4 10 add $0x10,%esp xticks = ticks; 801065e9: a1 e0 50 11 80 mov 0x801150e0,%eax 801065ee: 89 45 f4 mov %eax,-0xc(%ebp) release(&tickslock); 801065f1: 83 ec 0c sub $0xc,%esp 801065f4: 68 a0 48 11 80 push $0x801148a0 801065f9: e8 ad ea ff ff call 801050ab <release> 801065fe: 83 c4 10 add $0x10,%esp return xticks; 80106601: 8b 45 f4 mov -0xc(%ebp),%eax } 80106604: c9 leave 80106605: c3 ret 80106606 <outb>: { 80106606: 55 push %ebp 80106607: 89 e5 mov %esp,%ebp 80106609: 83 ec 08 sub $0x8,%esp 8010660c: 8b 45 08 mov 0x8(%ebp),%eax 8010660f: 8b 55 0c mov 0xc(%ebp),%edx 80106612: 66 89 45 fc mov %ax,-0x4(%ebp) 80106616: 89 d0 mov %edx,%eax 80106618: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 8010661b: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 8010661f: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80106623: ee out %al,(%dx) } 80106624: 90 nop 80106625: c9 leave 80106626: c3 ret 80106627 <timerinit>: #define TIMER_RATEGEN 0x04 // mode 2, rate generator #define TIMER_16BIT 0x30 // r/w counter 16 bits, LSB first void timerinit(void) { 80106627: 55 push %ebp 80106628: 89 e5 mov %esp,%ebp 8010662a: 83 ec 08 sub $0x8,%esp // Interrupt 100 times/sec. outb(TIMER_MODE, TIMER_SEL0 | TIMER_RATEGEN | TIMER_16BIT); 8010662d: 6a 34 push $0x34 8010662f: 6a 43 push $0x43 80106631: e8 d0 ff ff ff call 80106606 <outb> 80106636: 83 c4 08 add $0x8,%esp outb(IO_TIMER1, TIMER_DIV(100) % 256); 80106639: 68 9c 00 00 00 push $0x9c 8010663e: 6a 40 push $0x40 80106640: e8 c1 ff ff ff call 80106606 <outb> 80106645: 83 c4 08 add $0x8,%esp outb(IO_TIMER1, TIMER_DIV(100) / 256); 80106648: 6a 2e push $0x2e 8010664a: 6a 40 push $0x40 8010664c: e8 b5 ff ff ff call 80106606 <outb> 80106651: 83 c4 08 add $0x8,%esp picenable(IRQ_TIMER); 80106654: 83 ec 0c sub $0xc,%esp 80106657: 6a 00 push $0x0 80106659: e8 e2 d8 ff ff call 80103f40 <picenable> 8010665e: 83 c4 10 add $0x10,%esp } 80106661: 90 nop 80106662: c9 leave 80106663: c3 ret 80106664 <alltraps>: # vectors.S sends all traps here. .globl alltraps alltraps: # Build trap frame. pushl %ds 80106664: 1e push %ds pushl %es 80106665: 06 push %es pushl %fs 80106666: 0f a0 push %fs pushl %gs 80106668: 0f a8 push %gs pushal 8010666a: 60 pusha # Set up data and per-cpu segments. movw $(SEG_KDATA<<3), %ax 8010666b: 66 b8 10 00 mov $0x10,%ax movw %ax, %ds 8010666f: 8e d8 mov %eax,%ds movw %ax, %es 80106671: 8e c0 mov %eax,%es movw $(SEG_KCPU<<3), %ax 80106673: 66 b8 18 00 mov $0x18,%ax movw %ax, %fs 80106677: 8e e0 mov %eax,%fs movw %ax, %gs 80106679: 8e e8 mov %eax,%gs # Call trap(tf), where tf=%esp pushl %esp 8010667b: 54 push %esp call trap 8010667c: e8 d7 01 00 00 call 80106858 <trap> addl $4, %esp 80106681: 83 c4 04 add $0x4,%esp 80106684 <trapret>: # Return falls through to trapret... .globl trapret trapret: popal 80106684: 61 popa popl %gs 80106685: 0f a9 pop %gs popl %fs 80106687: 0f a1 pop %fs popl %es 80106689: 07 pop %es popl %ds 8010668a: 1f pop %ds addl $0x8, %esp # trapno and errcode 8010668b: 83 c4 08 add $0x8,%esp iret 8010668e: cf iret 8010668f <lidt>: { 8010668f: 55 push %ebp 80106690: 89 e5 mov %esp,%ebp 80106692: 83 ec 10 sub $0x10,%esp pd[0] = size-1; 80106695: 8b 45 0c mov 0xc(%ebp),%eax 80106698: 83 e8 01 sub $0x1,%eax 8010669b: 66 89 45 fa mov %ax,-0x6(%ebp) pd[1] = (uint)p; 8010669f: 8b 45 08 mov 0x8(%ebp),%eax 801066a2: 66 89 45 fc mov %ax,-0x4(%ebp) pd[2] = (uint)p >> 16; 801066a6: 8b 45 08 mov 0x8(%ebp),%eax 801066a9: c1 e8 10 shr $0x10,%eax 801066ac: 66 89 45 fe mov %ax,-0x2(%ebp) asm volatile("lidt (%0)" : : "r" (pd)); 801066b0: 8d 45 fa lea -0x6(%ebp),%eax 801066b3: 0f 01 18 lidtl (%eax) } 801066b6: 90 nop 801066b7: c9 leave 801066b8: c3 ret 801066b9 <rcr2>: { 801066b9: 55 push %ebp 801066ba: 89 e5 mov %esp,%ebp 801066bc: 83 ec 10 sub $0x10,%esp asm volatile("movl %%cr2,%0" : "=r" (val)); 801066bf: 0f 20 d0 mov %cr2,%eax 801066c2: 89 45 fc mov %eax,-0x4(%ebp) return val; 801066c5: 8b 45 fc mov -0x4(%ebp),%eax } 801066c8: c9 leave 801066c9: c3 ret 801066ca <tvinit>: struct spinlock tickslock; uint ticks; void tvinit(void) { 801066ca: 55 push %ebp 801066cb: 89 e5 mov %esp,%ebp 801066cd: 83 ec 18 sub $0x18,%esp int i; for(i = 0; i < 256; i++) 801066d0: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801066d7: e9 c3 00 00 00 jmp 8010679f <tvinit+0xd5> SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0); 801066dc: 8b 45 f4 mov -0xc(%ebp),%eax 801066df: 8b 04 85 98 b0 10 80 mov -0x7fef4f68(,%eax,4),%eax 801066e6: 89 c2 mov %eax,%edx 801066e8: 8b 45 f4 mov -0xc(%ebp),%eax 801066eb: 66 89 14 c5 e0 48 11 mov %dx,-0x7feeb720(,%eax,8) 801066f2: 80 801066f3: 8b 45 f4 mov -0xc(%ebp),%eax 801066f6: 66 c7 04 c5 e2 48 11 movw $0x8,-0x7feeb71e(,%eax,8) 801066fd: 80 08 00 80106700: 8b 45 f4 mov -0xc(%ebp),%eax 80106703: 0f b6 14 c5 e4 48 11 movzbl -0x7feeb71c(,%eax,8),%edx 8010670a: 80 8010670b: 83 e2 e0 and $0xffffffe0,%edx 8010670e: 88 14 c5 e4 48 11 80 mov %dl,-0x7feeb71c(,%eax,8) 80106715: 8b 45 f4 mov -0xc(%ebp),%eax 80106718: 0f b6 14 c5 e4 48 11 movzbl -0x7feeb71c(,%eax,8),%edx 8010671f: 80 80106720: 83 e2 1f and $0x1f,%edx 80106723: 88 14 c5 e4 48 11 80 mov %dl,-0x7feeb71c(,%eax,8) 8010672a: 8b 45 f4 mov -0xc(%ebp),%eax 8010672d: 0f b6 14 c5 e5 48 11 movzbl -0x7feeb71b(,%eax,8),%edx 80106734: 80 80106735: 83 e2 f0 and $0xfffffff0,%edx 80106738: 83 ca 0e or $0xe,%edx 8010673b: 88 14 c5 e5 48 11 80 mov %dl,-0x7feeb71b(,%eax,8) 80106742: 8b 45 f4 mov -0xc(%ebp),%eax 80106745: 0f b6 14 c5 e5 48 11 movzbl -0x7feeb71b(,%eax,8),%edx 8010674c: 80 8010674d: 83 e2 ef and $0xffffffef,%edx 80106750: 88 14 c5 e5 48 11 80 mov %dl,-0x7feeb71b(,%eax,8) 80106757: 8b 45 f4 mov -0xc(%ebp),%eax 8010675a: 0f b6 14 c5 e5 48 11 movzbl -0x7feeb71b(,%eax,8),%edx 80106761: 80 80106762: 83 e2 9f and $0xffffff9f,%edx 80106765: 88 14 c5 e5 48 11 80 mov %dl,-0x7feeb71b(,%eax,8) 8010676c: 8b 45 f4 mov -0xc(%ebp),%eax 8010676f: 0f b6 14 c5 e5 48 11 movzbl -0x7feeb71b(,%eax,8),%edx 80106776: 80 80106777: 83 ca 80 or $0xffffff80,%edx 8010677a: 88 14 c5 e5 48 11 80 mov %dl,-0x7feeb71b(,%eax,8) 80106781: 8b 45 f4 mov -0xc(%ebp),%eax 80106784: 8b 04 85 98 b0 10 80 mov -0x7fef4f68(,%eax,4),%eax 8010678b: c1 e8 10 shr $0x10,%eax 8010678e: 89 c2 mov %eax,%edx 80106790: 8b 45 f4 mov -0xc(%ebp),%eax 80106793: 66 89 14 c5 e6 48 11 mov %dx,-0x7feeb71a(,%eax,8) 8010679a: 80 for(i = 0; i < 256; i++) 8010679b: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010679f: 81 7d f4 ff 00 00 00 cmpl $0xff,-0xc(%ebp) 801067a6: 0f 8e 30 ff ff ff jle 801066dc <tvinit+0x12> SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER); 801067ac: a1 98 b1 10 80 mov 0x8010b198,%eax 801067b1: 66 a3 e0 4a 11 80 mov %ax,0x80114ae0 801067b7: 66 c7 05 e2 4a 11 80 movw $0x8,0x80114ae2 801067be: 08 00 801067c0: 0f b6 05 e4 4a 11 80 movzbl 0x80114ae4,%eax 801067c7: 83 e0 e0 and $0xffffffe0,%eax 801067ca: a2 e4 4a 11 80 mov %al,0x80114ae4 801067cf: 0f b6 05 e4 4a 11 80 movzbl 0x80114ae4,%eax 801067d6: 83 e0 1f and $0x1f,%eax 801067d9: a2 e4 4a 11 80 mov %al,0x80114ae4 801067de: 0f b6 05 e5 4a 11 80 movzbl 0x80114ae5,%eax 801067e5: 83 c8 0f or $0xf,%eax 801067e8: a2 e5 4a 11 80 mov %al,0x80114ae5 801067ed: 0f b6 05 e5 4a 11 80 movzbl 0x80114ae5,%eax 801067f4: 83 e0 ef and $0xffffffef,%eax 801067f7: a2 e5 4a 11 80 mov %al,0x80114ae5 801067fc: 0f b6 05 e5 4a 11 80 movzbl 0x80114ae5,%eax 80106803: 83 c8 60 or $0x60,%eax 80106806: a2 e5 4a 11 80 mov %al,0x80114ae5 8010680b: 0f b6 05 e5 4a 11 80 movzbl 0x80114ae5,%eax 80106812: 83 c8 80 or $0xffffff80,%eax 80106815: a2 e5 4a 11 80 mov %al,0x80114ae5 8010681a: a1 98 b1 10 80 mov 0x8010b198,%eax 8010681f: c1 e8 10 shr $0x10,%eax 80106822: 66 a3 e6 4a 11 80 mov %ax,0x80114ae6 initlock(&tickslock, "time"); 80106828: 83 ec 08 sub $0x8,%esp 8010682b: 68 68 8a 10 80 push $0x80108a68 80106830: 68 a0 48 11 80 push $0x801148a0 80106835: e8 e8 e7 ff ff call 80105022 <initlock> 8010683a: 83 c4 10 add $0x10,%esp } 8010683d: 90 nop 8010683e: c9 leave 8010683f: c3 ret 80106840 <idtinit>: void idtinit(void) { 80106840: 55 push %ebp 80106841: 89 e5 mov %esp,%ebp lidt(idt, sizeof(idt)); 80106843: 68 00 08 00 00 push $0x800 80106848: 68 e0 48 11 80 push $0x801148e0 8010684d: e8 3d fe ff ff call 8010668f <lidt> 80106852: 83 c4 08 add $0x8,%esp } 80106855: 90 nop 80106856: c9 leave 80106857: c3 ret 80106858 <trap>: //PAGEBREAK: 41 void trap(struct trapframe *tf) { 80106858: 55 push %ebp 80106859: 89 e5 mov %esp,%ebp 8010685b: 57 push %edi 8010685c: 56 push %esi 8010685d: 53 push %ebx 8010685e: 83 ec 1c sub $0x1c,%esp if(tf->trapno == T_SYSCALL){ 80106861: 8b 45 08 mov 0x8(%ebp),%eax 80106864: 8b 40 30 mov 0x30(%eax),%eax 80106867: 83 f8 40 cmp $0x40,%eax 8010686a: 75 3e jne 801068aa <trap+0x52> if(proc->killed) 8010686c: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106872: 8b 40 24 mov 0x24(%eax),%eax 80106875: 85 c0 test %eax,%eax 80106877: 74 05 je 8010687e <trap+0x26> exit(); 80106879: e8 6b e0 ff ff call 801048e9 <exit> proc->tf = tf; 8010687e: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106884: 8b 55 08 mov 0x8(%ebp),%edx 80106887: 89 50 18 mov %edx,0x18(%eax) syscall(); 8010688a: e8 f3 ed ff ff call 80105682 <syscall> if(proc->killed) 8010688f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106895: 8b 40 24 mov 0x24(%eax),%eax 80106898: 85 c0 test %eax,%eax 8010689a: 0f 84 1b 02 00 00 je 80106abb <trap+0x263> exit(); 801068a0: e8 44 e0 ff ff call 801048e9 <exit> return; 801068a5: e9 11 02 00 00 jmp 80106abb <trap+0x263> } switch(tf->trapno){ 801068aa: 8b 45 08 mov 0x8(%ebp),%eax 801068ad: 8b 40 30 mov 0x30(%eax),%eax 801068b0: 83 e8 20 sub $0x20,%eax 801068b3: 83 f8 1f cmp $0x1f,%eax 801068b6: 0f 87 c0 00 00 00 ja 8010697c <trap+0x124> 801068bc: 8b 04 85 10 8b 10 80 mov -0x7fef74f0(,%eax,4),%eax 801068c3: ff e0 jmp *%eax case T_IRQ0 + IRQ_TIMER: if(cpu->id == 0){ 801068c5: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801068cb: 0f b6 00 movzbl (%eax),%eax 801068ce: 84 c0 test %al,%al 801068d0: 75 3d jne 8010690f <trap+0xb7> acquire(&tickslock); 801068d2: 83 ec 0c sub $0xc,%esp 801068d5: 68 a0 48 11 80 push $0x801148a0 801068da: e8 65 e7 ff ff call 80105044 <acquire> 801068df: 83 c4 10 add $0x10,%esp ticks++; 801068e2: a1 e0 50 11 80 mov 0x801150e0,%eax 801068e7: 83 c0 01 add $0x1,%eax 801068ea: a3 e0 50 11 80 mov %eax,0x801150e0 wakeup(&ticks); 801068ef: 83 ec 0c sub $0xc,%esp 801068f2: 68 e0 50 11 80 push $0x801150e0 801068f7: e8 3a e5 ff ff call 80104e36 <wakeup> 801068fc: 83 c4 10 add $0x10,%esp release(&tickslock); 801068ff: 83 ec 0c sub $0xc,%esp 80106902: 68 a0 48 11 80 push $0x801148a0 80106907: e8 9f e7 ff ff call 801050ab <release> 8010690c: 83 c4 10 add $0x10,%esp } lapiceoi(); 8010690f: e8 18 c7 ff ff call 8010302c <lapiceoi> break; 80106914: e9 1c 01 00 00 jmp 80106a35 <trap+0x1dd> case T_IRQ0 + IRQ_IDE: ideintr(); 80106919: e8 1e bf ff ff call 8010283c <ideintr> lapiceoi(); 8010691e: e8 09 c7 ff ff call 8010302c <lapiceoi> break; 80106923: e9 0d 01 00 00 jmp 80106a35 <trap+0x1dd> case T_IRQ0 + IRQ_IDE+1: // Bochs generates spurious IDE1 interrupts. break; case T_IRQ0 + IRQ_KBD: kbdintr(); 80106928: e8 fe c4 ff ff call 80102e2b <kbdintr> lapiceoi(); 8010692d: e8 fa c6 ff ff call 8010302c <lapiceoi> break; 80106932: e9 fe 00 00 00 jmp 80106a35 <trap+0x1dd> case T_IRQ0 + IRQ_COM1: uartintr(); 80106937: e8 62 03 00 00 call 80106c9e <uartintr> lapiceoi(); 8010693c: e8 eb c6 ff ff call 8010302c <lapiceoi> break; 80106941: e9 ef 00 00 00 jmp 80106a35 <trap+0x1dd> case T_IRQ0 + 7: case T_IRQ0 + IRQ_SPURIOUS: cprintf("cpu%d: spurious interrupt at %x:%x\n", 80106946: 8b 45 08 mov 0x8(%ebp),%eax 80106949: 8b 48 38 mov 0x38(%eax),%ecx cpu->id, tf->cs, tf->eip); 8010694c: 8b 45 08 mov 0x8(%ebp),%eax 8010694f: 0f b7 40 3c movzwl 0x3c(%eax),%eax cprintf("cpu%d: spurious interrupt at %x:%x\n", 80106953: 0f b7 d0 movzwl %ax,%edx cpu->id, tf->cs, tf->eip); 80106956: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010695c: 0f b6 00 movzbl (%eax),%eax cprintf("cpu%d: spurious interrupt at %x:%x\n", 8010695f: 0f b6 c0 movzbl %al,%eax 80106962: 51 push %ecx 80106963: 52 push %edx 80106964: 50 push %eax 80106965: 68 70 8a 10 80 push $0x80108a70 8010696a: e8 55 9a ff ff call 801003c4 <cprintf> 8010696f: 83 c4 10 add $0x10,%esp lapiceoi(); 80106972: e8 b5 c6 ff ff call 8010302c <lapiceoi> break; 80106977: e9 b9 00 00 00 jmp 80106a35 <trap+0x1dd> //PAGEBREAK: 13 default: if(proc == 0 || (tf->cs&3) == 0){ 8010697c: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106982: 85 c0 test %eax,%eax 80106984: 74 11 je 80106997 <trap+0x13f> 80106986: 8b 45 08 mov 0x8(%ebp),%eax 80106989: 0f b7 40 3c movzwl 0x3c(%eax),%eax 8010698d: 0f b7 c0 movzwl %ax,%eax 80106990: 83 e0 03 and $0x3,%eax 80106993: 85 c0 test %eax,%eax 80106995: 75 40 jne 801069d7 <trap+0x17f> // In kernel, it must be our mistake. cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", 80106997: e8 1d fd ff ff call 801066b9 <rcr2> 8010699c: 89 c3 mov %eax,%ebx 8010699e: 8b 45 08 mov 0x8(%ebp),%eax 801069a1: 8b 48 38 mov 0x38(%eax),%ecx tf->trapno, cpu->id, tf->eip, rcr2()); 801069a4: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801069aa: 0f b6 00 movzbl (%eax),%eax cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", 801069ad: 0f b6 d0 movzbl %al,%edx 801069b0: 8b 45 08 mov 0x8(%ebp),%eax 801069b3: 8b 40 30 mov 0x30(%eax),%eax 801069b6: 83 ec 0c sub $0xc,%esp 801069b9: 53 push %ebx 801069ba: 51 push %ecx 801069bb: 52 push %edx 801069bc: 50 push %eax 801069bd: 68 94 8a 10 80 push $0x80108a94 801069c2: e8 fd 99 ff ff call 801003c4 <cprintf> 801069c7: 83 c4 20 add $0x20,%esp panic("trap"); 801069ca: 83 ec 0c sub $0xc,%esp 801069cd: 68 c6 8a 10 80 push $0x80108ac6 801069d2: e8 90 9b ff ff call 80100567 <panic> } // In user space, assume process misbehaved. cprintf("pid %d %s: trap %d err %d on cpu %d " 801069d7: e8 dd fc ff ff call 801066b9 <rcr2> 801069dc: 89 45 e4 mov %eax,-0x1c(%ebp) 801069df: 8b 45 08 mov 0x8(%ebp),%eax 801069e2: 8b 70 38 mov 0x38(%eax),%esi "eip 0x%x addr 0x%x--kill proc\n", proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, 801069e5: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801069eb: 0f b6 00 movzbl (%eax),%eax cprintf("pid %d %s: trap %d err %d on cpu %d " 801069ee: 0f b6 d8 movzbl %al,%ebx 801069f1: 8b 45 08 mov 0x8(%ebp),%eax 801069f4: 8b 48 34 mov 0x34(%eax),%ecx 801069f7: 8b 45 08 mov 0x8(%ebp),%eax 801069fa: 8b 50 30 mov 0x30(%eax),%edx proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, 801069fd: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a03: 8d 78 6c lea 0x6c(%eax),%edi 80106a06: 65 a1 04 00 00 00 mov %gs:0x4,%eax cprintf("pid %d %s: trap %d err %d on cpu %d " 80106a0c: 8b 40 10 mov 0x10(%eax),%eax 80106a0f: ff 75 e4 pushl -0x1c(%ebp) 80106a12: 56 push %esi 80106a13: 53 push %ebx 80106a14: 51 push %ecx 80106a15: 52 push %edx 80106a16: 57 push %edi 80106a17: 50 push %eax 80106a18: 68 cc 8a 10 80 push $0x80108acc 80106a1d: e8 a2 99 ff ff call 801003c4 <cprintf> 80106a22: 83 c4 20 add $0x20,%esp rcr2()); proc->killed = 1; 80106a25: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a2b: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax) 80106a32: eb 01 jmp 80106a35 <trap+0x1dd> break; 80106a34: 90 nop } // Force process exit if it has been killed and is in user space. // (If it is still executing in the kernel, let it keep running // until it gets to the regular system call return.) if(proc && proc->killed && (tf->cs&3) == DPL_USER) 80106a35: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a3b: 85 c0 test %eax,%eax 80106a3d: 74 24 je 80106a63 <trap+0x20b> 80106a3f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a45: 8b 40 24 mov 0x24(%eax),%eax 80106a48: 85 c0 test %eax,%eax 80106a4a: 74 17 je 80106a63 <trap+0x20b> 80106a4c: 8b 45 08 mov 0x8(%ebp),%eax 80106a4f: 0f b7 40 3c movzwl 0x3c(%eax),%eax 80106a53: 0f b7 c0 movzwl %ax,%eax 80106a56: 83 e0 03 and $0x3,%eax 80106a59: 83 f8 03 cmp $0x3,%eax 80106a5c: 75 05 jne 80106a63 <trap+0x20b> exit(); 80106a5e: e8 86 de ff ff call 801048e9 <exit> // Force process to give up CPU on clock tick. // If interrupts were on while locks held, would need to check nlock. if(proc && proc->state == RUNNING && tf->trapno == T_IRQ0+IRQ_TIMER) 80106a63: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a69: 85 c0 test %eax,%eax 80106a6b: 74 1e je 80106a8b <trap+0x233> 80106a6d: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a73: 8b 40 0c mov 0xc(%eax),%eax 80106a76: 83 f8 04 cmp $0x4,%eax 80106a79: 75 10 jne 80106a8b <trap+0x233> 80106a7b: 8b 45 08 mov 0x8(%ebp),%eax 80106a7e: 8b 40 30 mov 0x30(%eax),%eax 80106a81: 83 f8 20 cmp $0x20,%eax 80106a84: 75 05 jne 80106a8b <trap+0x233> yield(); 80106a86: e8 3f e2 ff ff call 80104cca <yield> // Check if the process has been killed since we yielded if(proc && proc->killed && (tf->cs&3) == DPL_USER) 80106a8b: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a91: 85 c0 test %eax,%eax 80106a93: 74 27 je 80106abc <trap+0x264> 80106a95: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a9b: 8b 40 24 mov 0x24(%eax),%eax 80106a9e: 85 c0 test %eax,%eax 80106aa0: 74 1a je 80106abc <trap+0x264> 80106aa2: 8b 45 08 mov 0x8(%ebp),%eax 80106aa5: 0f b7 40 3c movzwl 0x3c(%eax),%eax 80106aa9: 0f b7 c0 movzwl %ax,%eax 80106aac: 83 e0 03 and $0x3,%eax 80106aaf: 83 f8 03 cmp $0x3,%eax 80106ab2: 75 08 jne 80106abc <trap+0x264> exit(); 80106ab4: e8 30 de ff ff call 801048e9 <exit> 80106ab9: eb 01 jmp 80106abc <trap+0x264> return; 80106abb: 90 nop } 80106abc: 8d 65 f4 lea -0xc(%ebp),%esp 80106abf: 5b pop %ebx 80106ac0: 5e pop %esi 80106ac1: 5f pop %edi 80106ac2: 5d pop %ebp 80106ac3: c3 ret 80106ac4 <inb>: { 80106ac4: 55 push %ebp 80106ac5: 89 e5 mov %esp,%ebp 80106ac7: 83 ec 14 sub $0x14,%esp 80106aca: 8b 45 08 mov 0x8(%ebp),%eax 80106acd: 66 89 45 ec mov %ax,-0x14(%ebp) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80106ad1: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80106ad5: 89 c2 mov %eax,%edx 80106ad7: ec in (%dx),%al 80106ad8: 88 45 ff mov %al,-0x1(%ebp) return data; 80106adb: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80106adf: c9 leave 80106ae0: c3 ret 80106ae1 <outb>: { 80106ae1: 55 push %ebp 80106ae2: 89 e5 mov %esp,%ebp 80106ae4: 83 ec 08 sub $0x8,%esp 80106ae7: 8b 45 08 mov 0x8(%ebp),%eax 80106aea: 8b 55 0c mov 0xc(%ebp),%edx 80106aed: 66 89 45 fc mov %ax,-0x4(%ebp) 80106af1: 89 d0 mov %edx,%eax 80106af3: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80106af6: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80106afa: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80106afe: ee out %al,(%dx) } 80106aff: 90 nop 80106b00: c9 leave 80106b01: c3 ret 80106b02 <uartinit>: static int uart; // is there a uart? void uartinit(void) { 80106b02: 55 push %ebp 80106b03: 89 e5 mov %esp,%ebp 80106b05: 83 ec 18 sub $0x18,%esp char *p; // Turn off the FIFO outb(COM1+2, 0); 80106b08: 6a 00 push $0x0 80106b0a: 68 fa 03 00 00 push $0x3fa 80106b0f: e8 cd ff ff ff call 80106ae1 <outb> 80106b14: 83 c4 08 add $0x8,%esp // 9600 baud, 8 data bits, 1 stop bit, parity off. outb(COM1+3, 0x80); // Unlock divisor 80106b17: 68 80 00 00 00 push $0x80 80106b1c: 68 fb 03 00 00 push $0x3fb 80106b21: e8 bb ff ff ff call 80106ae1 <outb> 80106b26: 83 c4 08 add $0x8,%esp outb(COM1+0, 115200/9600); 80106b29: 6a 0c push $0xc 80106b2b: 68 f8 03 00 00 push $0x3f8 80106b30: e8 ac ff ff ff call 80106ae1 <outb> 80106b35: 83 c4 08 add $0x8,%esp outb(COM1+1, 0); 80106b38: 6a 00 push $0x0 80106b3a: 68 f9 03 00 00 push $0x3f9 80106b3f: e8 9d ff ff ff call 80106ae1 <outb> 80106b44: 83 c4 08 add $0x8,%esp outb(COM1+3, 0x03); // Lock divisor, 8 data bits. 80106b47: 6a 03 push $0x3 80106b49: 68 fb 03 00 00 push $0x3fb 80106b4e: e8 8e ff ff ff call 80106ae1 <outb> 80106b53: 83 c4 08 add $0x8,%esp outb(COM1+4, 0); 80106b56: 6a 00 push $0x0 80106b58: 68 fc 03 00 00 push $0x3fc 80106b5d: e8 7f ff ff ff call 80106ae1 <outb> 80106b62: 83 c4 08 add $0x8,%esp outb(COM1+1, 0x01); // Enable receive interrupts. 80106b65: 6a 01 push $0x1 80106b67: 68 f9 03 00 00 push $0x3f9 80106b6c: e8 70 ff ff ff call 80106ae1 <outb> 80106b71: 83 c4 08 add $0x8,%esp // If status is 0xFF, no serial port. if(inb(COM1+5) == 0xFF) 80106b74: 68 fd 03 00 00 push $0x3fd 80106b79: e8 46 ff ff ff call 80106ac4 <inb> 80106b7e: 83 c4 04 add $0x4,%esp 80106b81: 3c ff cmp $0xff,%al 80106b83: 74 6e je 80106bf3 <uartinit+0xf1> return; uart = 1; 80106b85: c7 05 4c b6 10 80 01 movl $0x1,0x8010b64c 80106b8c: 00 00 00 // Acknowledge pre-existing interrupt conditions; // enable interrupts. inb(COM1+2); 80106b8f: 68 fa 03 00 00 push $0x3fa 80106b94: e8 2b ff ff ff call 80106ac4 <inb> 80106b99: 83 c4 04 add $0x4,%esp inb(COM1+0); 80106b9c: 68 f8 03 00 00 push $0x3f8 80106ba1: e8 1e ff ff ff call 80106ac4 <inb> 80106ba6: 83 c4 04 add $0x4,%esp picenable(IRQ_COM1); 80106ba9: 83 ec 0c sub $0xc,%esp 80106bac: 6a 04 push $0x4 80106bae: e8 8d d3 ff ff call 80103f40 <picenable> 80106bb3: 83 c4 10 add $0x10,%esp ioapicenable(IRQ_COM1, 0); 80106bb6: 83 ec 08 sub $0x8,%esp 80106bb9: 6a 00 push $0x0 80106bbb: 6a 04 push $0x4 80106bbd: e8 1c bf ff ff call 80102ade <ioapicenable> 80106bc2: 83 c4 10 add $0x10,%esp // Announce that we're here. for(p="xv6...\n"; *p; p++) 80106bc5: c7 45 f4 90 8b 10 80 movl $0x80108b90,-0xc(%ebp) 80106bcc: eb 19 jmp 80106be7 <uartinit+0xe5> uartputc(*p); 80106bce: 8b 45 f4 mov -0xc(%ebp),%eax 80106bd1: 0f b6 00 movzbl (%eax),%eax 80106bd4: 0f be c0 movsbl %al,%eax 80106bd7: 83 ec 0c sub $0xc,%esp 80106bda: 50 push %eax 80106bdb: e8 16 00 00 00 call 80106bf6 <uartputc> 80106be0: 83 c4 10 add $0x10,%esp for(p="xv6...\n"; *p; p++) 80106be3: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80106be7: 8b 45 f4 mov -0xc(%ebp),%eax 80106bea: 0f b6 00 movzbl (%eax),%eax 80106bed: 84 c0 test %al,%al 80106bef: 75 dd jne 80106bce <uartinit+0xcc> 80106bf1: eb 01 jmp 80106bf4 <uartinit+0xf2> return; 80106bf3: 90 nop } 80106bf4: c9 leave 80106bf5: c3 ret 80106bf6 <uartputc>: void uartputc(int c) { 80106bf6: 55 push %ebp 80106bf7: 89 e5 mov %esp,%ebp 80106bf9: 83 ec 18 sub $0x18,%esp int i; if(!uart) 80106bfc: a1 4c b6 10 80 mov 0x8010b64c,%eax 80106c01: 85 c0 test %eax,%eax 80106c03: 74 53 je 80106c58 <uartputc+0x62> return; for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) 80106c05: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80106c0c: eb 11 jmp 80106c1f <uartputc+0x29> microdelay(10); 80106c0e: 83 ec 0c sub $0xc,%esp 80106c11: 6a 0a push $0xa 80106c13: e8 2f c4 ff ff call 80103047 <microdelay> 80106c18: 83 c4 10 add $0x10,%esp for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) 80106c1b: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80106c1f: 83 7d f4 7f cmpl $0x7f,-0xc(%ebp) 80106c23: 7f 1a jg 80106c3f <uartputc+0x49> 80106c25: 83 ec 0c sub $0xc,%esp 80106c28: 68 fd 03 00 00 push $0x3fd 80106c2d: e8 92 fe ff ff call 80106ac4 <inb> 80106c32: 83 c4 10 add $0x10,%esp 80106c35: 0f b6 c0 movzbl %al,%eax 80106c38: 83 e0 20 and $0x20,%eax 80106c3b: 85 c0 test %eax,%eax 80106c3d: 74 cf je 80106c0e <uartputc+0x18> outb(COM1+0, c); 80106c3f: 8b 45 08 mov 0x8(%ebp),%eax 80106c42: 0f b6 c0 movzbl %al,%eax 80106c45: 83 ec 08 sub $0x8,%esp 80106c48: 50 push %eax 80106c49: 68 f8 03 00 00 push $0x3f8 80106c4e: e8 8e fe ff ff call 80106ae1 <outb> 80106c53: 83 c4 10 add $0x10,%esp 80106c56: eb 01 jmp 80106c59 <uartputc+0x63> return; 80106c58: 90 nop } 80106c59: c9 leave 80106c5a: c3 ret 80106c5b <uartgetc>: static int uartgetc(void) { 80106c5b: 55 push %ebp 80106c5c: 89 e5 mov %esp,%ebp if(!uart) 80106c5e: a1 4c b6 10 80 mov 0x8010b64c,%eax 80106c63: 85 c0 test %eax,%eax 80106c65: 75 07 jne 80106c6e <uartgetc+0x13> return -1; 80106c67: b8 ff ff ff ff mov $0xffffffff,%eax 80106c6c: eb 2e jmp 80106c9c <uartgetc+0x41> if(!(inb(COM1+5) & 0x01)) 80106c6e: 68 fd 03 00 00 push $0x3fd 80106c73: e8 4c fe ff ff call 80106ac4 <inb> 80106c78: 83 c4 04 add $0x4,%esp 80106c7b: 0f b6 c0 movzbl %al,%eax 80106c7e: 83 e0 01 and $0x1,%eax 80106c81: 85 c0 test %eax,%eax 80106c83: 75 07 jne 80106c8c <uartgetc+0x31> return -1; 80106c85: b8 ff ff ff ff mov $0xffffffff,%eax 80106c8a: eb 10 jmp 80106c9c <uartgetc+0x41> return inb(COM1+0); 80106c8c: 68 f8 03 00 00 push $0x3f8 80106c91: e8 2e fe ff ff call 80106ac4 <inb> 80106c96: 83 c4 04 add $0x4,%esp 80106c99: 0f b6 c0 movzbl %al,%eax } 80106c9c: c9 leave 80106c9d: c3 ret 80106c9e <uartintr>: void uartintr(void) { 80106c9e: 55 push %ebp 80106c9f: 89 e5 mov %esp,%ebp 80106ca1: 83 ec 08 sub $0x8,%esp consoleintr(uartgetc); 80106ca4: 83 ec 0c sub $0xc,%esp 80106ca7: 68 5b 6c 10 80 push $0x80106c5b 80106cac: e8 51 9b ff ff call 80100802 <consoleintr> 80106cb1: 83 c4 10 add $0x10,%esp } 80106cb4: 90 nop 80106cb5: c9 leave 80106cb6: c3 ret 80106cb7 <vector0>: # generated by vectors.pl - do not edit # handlers .globl alltraps .globl vector0 vector0: pushl $0 80106cb7: 6a 00 push $0x0 pushl $0 80106cb9: 6a 00 push $0x0 jmp alltraps 80106cbb: e9 a4 f9 ff ff jmp 80106664 <alltraps> 80106cc0 <vector1>: .globl vector1 vector1: pushl $0 80106cc0: 6a 00 push $0x0 pushl $1 80106cc2: 6a 01 push $0x1 jmp alltraps 80106cc4: e9 9b f9 ff ff jmp 80106664 <alltraps> 80106cc9 <vector2>: .globl vector2 vector2: pushl $0 80106cc9: 6a 00 push $0x0 pushl $2 80106ccb: 6a 02 push $0x2 jmp alltraps 80106ccd: e9 92 f9 ff ff jmp 80106664 <alltraps> 80106cd2 <vector3>: .globl vector3 vector3: pushl $0 80106cd2: 6a 00 push $0x0 pushl $3 80106cd4: 6a 03 push $0x3 jmp alltraps 80106cd6: e9 89 f9 ff ff jmp 80106664 <alltraps> 80106cdb <vector4>: .globl vector4 vector4: pushl $0 80106cdb: 6a 00 push $0x0 pushl $4 80106cdd: 6a 04 push $0x4 jmp alltraps 80106cdf: e9 80 f9 ff ff jmp 80106664 <alltraps> 80106ce4 <vector5>: .globl vector5 vector5: pushl $0 80106ce4: 6a 00 push $0x0 pushl $5 80106ce6: 6a 05 push $0x5 jmp alltraps 80106ce8: e9 77 f9 ff ff jmp 80106664 <alltraps> 80106ced <vector6>: .globl vector6 vector6: pushl $0 80106ced: 6a 00 push $0x0 pushl $6 80106cef: 6a 06 push $0x6 jmp alltraps 80106cf1: e9 6e f9 ff ff jmp 80106664 <alltraps> 80106cf6 <vector7>: .globl vector7 vector7: pushl $0 80106cf6: 6a 00 push $0x0 pushl $7 80106cf8: 6a 07 push $0x7 jmp alltraps 80106cfa: e9 65 f9 ff ff jmp 80106664 <alltraps> 80106cff <vector8>: .globl vector8 vector8: pushl $8 80106cff: 6a 08 push $0x8 jmp alltraps 80106d01: e9 5e f9 ff ff jmp 80106664 <alltraps> 80106d06 <vector9>: .globl vector9 vector9: pushl $0 80106d06: 6a 00 push $0x0 pushl $9 80106d08: 6a 09 push $0x9 jmp alltraps 80106d0a: e9 55 f9 ff ff jmp 80106664 <alltraps> 80106d0f <vector10>: .globl vector10 vector10: pushl $10 80106d0f: 6a 0a push $0xa jmp alltraps 80106d11: e9 4e f9 ff ff jmp 80106664 <alltraps> 80106d16 <vector11>: .globl vector11 vector11: pushl $11 80106d16: 6a 0b push $0xb jmp alltraps 80106d18: e9 47 f9 ff ff jmp 80106664 <alltraps> 80106d1d <vector12>: .globl vector12 vector12: pushl $12 80106d1d: 6a 0c push $0xc jmp alltraps 80106d1f: e9 40 f9 ff ff jmp 80106664 <alltraps> 80106d24 <vector13>: .globl vector13 vector13: pushl $13 80106d24: 6a 0d push $0xd jmp alltraps 80106d26: e9 39 f9 ff ff jmp 80106664 <alltraps> 80106d2b <vector14>: .globl vector14 vector14: pushl $14 80106d2b: 6a 0e push $0xe jmp alltraps 80106d2d: e9 32 f9 ff ff jmp 80106664 <alltraps> 80106d32 <vector15>: .globl vector15 vector15: pushl $0 80106d32: 6a 00 push $0x0 pushl $15 80106d34: 6a 0f push $0xf jmp alltraps 80106d36: e9 29 f9 ff ff jmp 80106664 <alltraps> 80106d3b <vector16>: .globl vector16 vector16: pushl $0 80106d3b: 6a 00 push $0x0 pushl $16 80106d3d: 6a 10 push $0x10 jmp alltraps 80106d3f: e9 20 f9 ff ff jmp 80106664 <alltraps> 80106d44 <vector17>: .globl vector17 vector17: pushl $17 80106d44: 6a 11 push $0x11 jmp alltraps 80106d46: e9 19 f9 ff ff jmp 80106664 <alltraps> 80106d4b <vector18>: .globl vector18 vector18: pushl $0 80106d4b: 6a 00 push $0x0 pushl $18 80106d4d: 6a 12 push $0x12 jmp alltraps 80106d4f: e9 10 f9 ff ff jmp 80106664 <alltraps> 80106d54 <vector19>: .globl vector19 vector19: pushl $0 80106d54: 6a 00 push $0x0 pushl $19 80106d56: 6a 13 push $0x13 jmp alltraps 80106d58: e9 07 f9 ff ff jmp 80106664 <alltraps> 80106d5d <vector20>: .globl vector20 vector20: pushl $0 80106d5d: 6a 00 push $0x0 pushl $20 80106d5f: 6a 14 push $0x14 jmp alltraps 80106d61: e9 fe f8 ff ff jmp 80106664 <alltraps> 80106d66 <vector21>: .globl vector21 vector21: pushl $0 80106d66: 6a 00 push $0x0 pushl $21 80106d68: 6a 15 push $0x15 jmp alltraps 80106d6a: e9 f5 f8 ff ff jmp 80106664 <alltraps> 80106d6f <vector22>: .globl vector22 vector22: pushl $0 80106d6f: 6a 00 push $0x0 pushl $22 80106d71: 6a 16 push $0x16 jmp alltraps 80106d73: e9 ec f8 ff ff jmp 80106664 <alltraps> 80106d78 <vector23>: .globl vector23 vector23: pushl $0 80106d78: 6a 00 push $0x0 pushl $23 80106d7a: 6a 17 push $0x17 jmp alltraps 80106d7c: e9 e3 f8 ff ff jmp 80106664 <alltraps> 80106d81 <vector24>: .globl vector24 vector24: pushl $0 80106d81: 6a 00 push $0x0 pushl $24 80106d83: 6a 18 push $0x18 jmp alltraps 80106d85: e9 da f8 ff ff jmp 80106664 <alltraps> 80106d8a <vector25>: .globl vector25 vector25: pushl $0 80106d8a: 6a 00 push $0x0 pushl $25 80106d8c: 6a 19 push $0x19 jmp alltraps 80106d8e: e9 d1 f8 ff ff jmp 80106664 <alltraps> 80106d93 <vector26>: .globl vector26 vector26: pushl $0 80106d93: 6a 00 push $0x0 pushl $26 80106d95: 6a 1a push $0x1a jmp alltraps 80106d97: e9 c8 f8 ff ff jmp 80106664 <alltraps> 80106d9c <vector27>: .globl vector27 vector27: pushl $0 80106d9c: 6a 00 push $0x0 pushl $27 80106d9e: 6a 1b push $0x1b jmp alltraps 80106da0: e9 bf f8 ff ff jmp 80106664 <alltraps> 80106da5 <vector28>: .globl vector28 vector28: pushl $0 80106da5: 6a 00 push $0x0 pushl $28 80106da7: 6a 1c push $0x1c jmp alltraps 80106da9: e9 b6 f8 ff ff jmp 80106664 <alltraps> 80106dae <vector29>: .globl vector29 vector29: pushl $0 80106dae: 6a 00 push $0x0 pushl $29 80106db0: 6a 1d push $0x1d jmp alltraps 80106db2: e9 ad f8 ff ff jmp 80106664 <alltraps> 80106db7 <vector30>: .globl vector30 vector30: pushl $0 80106db7: 6a 00 push $0x0 pushl $30 80106db9: 6a 1e push $0x1e jmp alltraps 80106dbb: e9 a4 f8 ff ff jmp 80106664 <alltraps> 80106dc0 <vector31>: .globl vector31 vector31: pushl $0 80106dc0: 6a 00 push $0x0 pushl $31 80106dc2: 6a 1f push $0x1f jmp alltraps 80106dc4: e9 9b f8 ff ff jmp 80106664 <alltraps> 80106dc9 <vector32>: .globl vector32 vector32: pushl $0 80106dc9: 6a 00 push $0x0 pushl $32 80106dcb: 6a 20 push $0x20 jmp alltraps 80106dcd: e9 92 f8 ff ff jmp 80106664 <alltraps> 80106dd2 <vector33>: .globl vector33 vector33: pushl $0 80106dd2: 6a 00 push $0x0 pushl $33 80106dd4: 6a 21 push $0x21 jmp alltraps 80106dd6: e9 89 f8 ff ff jmp 80106664 <alltraps> 80106ddb <vector34>: .globl vector34 vector34: pushl $0 80106ddb: 6a 00 push $0x0 pushl $34 80106ddd: 6a 22 push $0x22 jmp alltraps 80106ddf: e9 80 f8 ff ff jmp 80106664 <alltraps> 80106de4 <vector35>: .globl vector35 vector35: pushl $0 80106de4: 6a 00 push $0x0 pushl $35 80106de6: 6a 23 push $0x23 jmp alltraps 80106de8: e9 77 f8 ff ff jmp 80106664 <alltraps> 80106ded <vector36>: .globl vector36 vector36: pushl $0 80106ded: 6a 00 push $0x0 pushl $36 80106def: 6a 24 push $0x24 jmp alltraps 80106df1: e9 6e f8 ff ff jmp 80106664 <alltraps> 80106df6 <vector37>: .globl vector37 vector37: pushl $0 80106df6: 6a 00 push $0x0 pushl $37 80106df8: 6a 25 push $0x25 jmp alltraps 80106dfa: e9 65 f8 ff ff jmp 80106664 <alltraps> 80106dff <vector38>: .globl vector38 vector38: pushl $0 80106dff: 6a 00 push $0x0 pushl $38 80106e01: 6a 26 push $0x26 jmp alltraps 80106e03: e9 5c f8 ff ff jmp 80106664 <alltraps> 80106e08 <vector39>: .globl vector39 vector39: pushl $0 80106e08: 6a 00 push $0x0 pushl $39 80106e0a: 6a 27 push $0x27 jmp alltraps 80106e0c: e9 53 f8 ff ff jmp 80106664 <alltraps> 80106e11 <vector40>: .globl vector40 vector40: pushl $0 80106e11: 6a 00 push $0x0 pushl $40 80106e13: 6a 28 push $0x28 jmp alltraps 80106e15: e9 4a f8 ff ff jmp 80106664 <alltraps> 80106e1a <vector41>: .globl vector41 vector41: pushl $0 80106e1a: 6a 00 push $0x0 pushl $41 80106e1c: 6a 29 push $0x29 jmp alltraps 80106e1e: e9 41 f8 ff ff jmp 80106664 <alltraps> 80106e23 <vector42>: .globl vector42 vector42: pushl $0 80106e23: 6a 00 push $0x0 pushl $42 80106e25: 6a 2a push $0x2a jmp alltraps 80106e27: e9 38 f8 ff ff jmp 80106664 <alltraps> 80106e2c <vector43>: .globl vector43 vector43: pushl $0 80106e2c: 6a 00 push $0x0 pushl $43 80106e2e: 6a 2b push $0x2b jmp alltraps 80106e30: e9 2f f8 ff ff jmp 80106664 <alltraps> 80106e35 <vector44>: .globl vector44 vector44: pushl $0 80106e35: 6a 00 push $0x0 pushl $44 80106e37: 6a 2c push $0x2c jmp alltraps 80106e39: e9 26 f8 ff ff jmp 80106664 <alltraps> 80106e3e <vector45>: .globl vector45 vector45: pushl $0 80106e3e: 6a 00 push $0x0 pushl $45 80106e40: 6a 2d push $0x2d jmp alltraps 80106e42: e9 1d f8 ff ff jmp 80106664 <alltraps> 80106e47 <vector46>: .globl vector46 vector46: pushl $0 80106e47: 6a 00 push $0x0 pushl $46 80106e49: 6a 2e push $0x2e jmp alltraps 80106e4b: e9 14 f8 ff ff jmp 80106664 <alltraps> 80106e50 <vector47>: .globl vector47 vector47: pushl $0 80106e50: 6a 00 push $0x0 pushl $47 80106e52: 6a 2f push $0x2f jmp alltraps 80106e54: e9 0b f8 ff ff jmp 80106664 <alltraps> 80106e59 <vector48>: .globl vector48 vector48: pushl $0 80106e59: 6a 00 push $0x0 pushl $48 80106e5b: 6a 30 push $0x30 jmp alltraps 80106e5d: e9 02 f8 ff ff jmp 80106664 <alltraps> 80106e62 <vector49>: .globl vector49 vector49: pushl $0 80106e62: 6a 00 push $0x0 pushl $49 80106e64: 6a 31 push $0x31 jmp alltraps 80106e66: e9 f9 f7 ff ff jmp 80106664 <alltraps> 80106e6b <vector50>: .globl vector50 vector50: pushl $0 80106e6b: 6a 00 push $0x0 pushl $50 80106e6d: 6a 32 push $0x32 jmp alltraps 80106e6f: e9 f0 f7 ff ff jmp 80106664 <alltraps> 80106e74 <vector51>: .globl vector51 vector51: pushl $0 80106e74: 6a 00 push $0x0 pushl $51 80106e76: 6a 33 push $0x33 jmp alltraps 80106e78: e9 e7 f7 ff ff jmp 80106664 <alltraps> 80106e7d <vector52>: .globl vector52 vector52: pushl $0 80106e7d: 6a 00 push $0x0 pushl $52 80106e7f: 6a 34 push $0x34 jmp alltraps 80106e81: e9 de f7 ff ff jmp 80106664 <alltraps> 80106e86 <vector53>: .globl vector53 vector53: pushl $0 80106e86: 6a 00 push $0x0 pushl $53 80106e88: 6a 35 push $0x35 jmp alltraps 80106e8a: e9 d5 f7 ff ff jmp 80106664 <alltraps> 80106e8f <vector54>: .globl vector54 vector54: pushl $0 80106e8f: 6a 00 push $0x0 pushl $54 80106e91: 6a 36 push $0x36 jmp alltraps 80106e93: e9 cc f7 ff ff jmp 80106664 <alltraps> 80106e98 <vector55>: .globl vector55 vector55: pushl $0 80106e98: 6a 00 push $0x0 pushl $55 80106e9a: 6a 37 push $0x37 jmp alltraps 80106e9c: e9 c3 f7 ff ff jmp 80106664 <alltraps> 80106ea1 <vector56>: .globl vector56 vector56: pushl $0 80106ea1: 6a 00 push $0x0 pushl $56 80106ea3: 6a 38 push $0x38 jmp alltraps 80106ea5: e9 ba f7 ff ff jmp 80106664 <alltraps> 80106eaa <vector57>: .globl vector57 vector57: pushl $0 80106eaa: 6a 00 push $0x0 pushl $57 80106eac: 6a 39 push $0x39 jmp alltraps 80106eae: e9 b1 f7 ff ff jmp 80106664 <alltraps> 80106eb3 <vector58>: .globl vector58 vector58: pushl $0 80106eb3: 6a 00 push $0x0 pushl $58 80106eb5: 6a 3a push $0x3a jmp alltraps 80106eb7: e9 a8 f7 ff ff jmp 80106664 <alltraps> 80106ebc <vector59>: .globl vector59 vector59: pushl $0 80106ebc: 6a 00 push $0x0 pushl $59 80106ebe: 6a 3b push $0x3b jmp alltraps 80106ec0: e9 9f f7 ff ff jmp 80106664 <alltraps> 80106ec5 <vector60>: .globl vector60 vector60: pushl $0 80106ec5: 6a 00 push $0x0 pushl $60 80106ec7: 6a 3c push $0x3c jmp alltraps 80106ec9: e9 96 f7 ff ff jmp 80106664 <alltraps> 80106ece <vector61>: .globl vector61 vector61: pushl $0 80106ece: 6a 00 push $0x0 pushl $61 80106ed0: 6a 3d push $0x3d jmp alltraps 80106ed2: e9 8d f7 ff ff jmp 80106664 <alltraps> 80106ed7 <vector62>: .globl vector62 vector62: pushl $0 80106ed7: 6a 00 push $0x0 pushl $62 80106ed9: 6a 3e push $0x3e jmp alltraps 80106edb: e9 84 f7 ff ff jmp 80106664 <alltraps> 80106ee0 <vector63>: .globl vector63 vector63: pushl $0 80106ee0: 6a 00 push $0x0 pushl $63 80106ee2: 6a 3f push $0x3f jmp alltraps 80106ee4: e9 7b f7 ff ff jmp 80106664 <alltraps> 80106ee9 <vector64>: .globl vector64 vector64: pushl $0 80106ee9: 6a 00 push $0x0 pushl $64 80106eeb: 6a 40 push $0x40 jmp alltraps 80106eed: e9 72 f7 ff ff jmp 80106664 <alltraps> 80106ef2 <vector65>: .globl vector65 vector65: pushl $0 80106ef2: 6a 00 push $0x0 pushl $65 80106ef4: 6a 41 push $0x41 jmp alltraps 80106ef6: e9 69 f7 ff ff jmp 80106664 <alltraps> 80106efb <vector66>: .globl vector66 vector66: pushl $0 80106efb: 6a 00 push $0x0 pushl $66 80106efd: 6a 42 push $0x42 jmp alltraps 80106eff: e9 60 f7 ff ff jmp 80106664 <alltraps> 80106f04 <vector67>: .globl vector67 vector67: pushl $0 80106f04: 6a 00 push $0x0 pushl $67 80106f06: 6a 43 push $0x43 jmp alltraps 80106f08: e9 57 f7 ff ff jmp 80106664 <alltraps> 80106f0d <vector68>: .globl vector68 vector68: pushl $0 80106f0d: 6a 00 push $0x0 pushl $68 80106f0f: 6a 44 push $0x44 jmp alltraps 80106f11: e9 4e f7 ff ff jmp 80106664 <alltraps> 80106f16 <vector69>: .globl vector69 vector69: pushl $0 80106f16: 6a 00 push $0x0 pushl $69 80106f18: 6a 45 push $0x45 jmp alltraps 80106f1a: e9 45 f7 ff ff jmp 80106664 <alltraps> 80106f1f <vector70>: .globl vector70 vector70: pushl $0 80106f1f: 6a 00 push $0x0 pushl $70 80106f21: 6a 46 push $0x46 jmp alltraps 80106f23: e9 3c f7 ff ff jmp 80106664 <alltraps> 80106f28 <vector71>: .globl vector71 vector71: pushl $0 80106f28: 6a 00 push $0x0 pushl $71 80106f2a: 6a 47 push $0x47 jmp alltraps 80106f2c: e9 33 f7 ff ff jmp 80106664 <alltraps> 80106f31 <vector72>: .globl vector72 vector72: pushl $0 80106f31: 6a 00 push $0x0 pushl $72 80106f33: 6a 48 push $0x48 jmp alltraps 80106f35: e9 2a f7 ff ff jmp 80106664 <alltraps> 80106f3a <vector73>: .globl vector73 vector73: pushl $0 80106f3a: 6a 00 push $0x0 pushl $73 80106f3c: 6a 49 push $0x49 jmp alltraps 80106f3e: e9 21 f7 ff ff jmp 80106664 <alltraps> 80106f43 <vector74>: .globl vector74 vector74: pushl $0 80106f43: 6a 00 push $0x0 pushl $74 80106f45: 6a 4a push $0x4a jmp alltraps 80106f47: e9 18 f7 ff ff jmp 80106664 <alltraps> 80106f4c <vector75>: .globl vector75 vector75: pushl $0 80106f4c: 6a 00 push $0x0 pushl $75 80106f4e: 6a 4b push $0x4b jmp alltraps 80106f50: e9 0f f7 ff ff jmp 80106664 <alltraps> 80106f55 <vector76>: .globl vector76 vector76: pushl $0 80106f55: 6a 00 push $0x0 pushl $76 80106f57: 6a 4c push $0x4c jmp alltraps 80106f59: e9 06 f7 ff ff jmp 80106664 <alltraps> 80106f5e <vector77>: .globl vector77 vector77: pushl $0 80106f5e: 6a 00 push $0x0 pushl $77 80106f60: 6a 4d push $0x4d jmp alltraps 80106f62: e9 fd f6 ff ff jmp 80106664 <alltraps> 80106f67 <vector78>: .globl vector78 vector78: pushl $0 80106f67: 6a 00 push $0x0 pushl $78 80106f69: 6a 4e push $0x4e jmp alltraps 80106f6b: e9 f4 f6 ff ff jmp 80106664 <alltraps> 80106f70 <vector79>: .globl vector79 vector79: pushl $0 80106f70: 6a 00 push $0x0 pushl $79 80106f72: 6a 4f push $0x4f jmp alltraps 80106f74: e9 eb f6 ff ff jmp 80106664 <alltraps> 80106f79 <vector80>: .globl vector80 vector80: pushl $0 80106f79: 6a 00 push $0x0 pushl $80 80106f7b: 6a 50 push $0x50 jmp alltraps 80106f7d: e9 e2 f6 ff ff jmp 80106664 <alltraps> 80106f82 <vector81>: .globl vector81 vector81: pushl $0 80106f82: 6a 00 push $0x0 pushl $81 80106f84: 6a 51 push $0x51 jmp alltraps 80106f86: e9 d9 f6 ff ff jmp 80106664 <alltraps> 80106f8b <vector82>: .globl vector82 vector82: pushl $0 80106f8b: 6a 00 push $0x0 pushl $82 80106f8d: 6a 52 push $0x52 jmp alltraps 80106f8f: e9 d0 f6 ff ff jmp 80106664 <alltraps> 80106f94 <vector83>: .globl vector83 vector83: pushl $0 80106f94: 6a 00 push $0x0 pushl $83 80106f96: 6a 53 push $0x53 jmp alltraps 80106f98: e9 c7 f6 ff ff jmp 80106664 <alltraps> 80106f9d <vector84>: .globl vector84 vector84: pushl $0 80106f9d: 6a 00 push $0x0 pushl $84 80106f9f: 6a 54 push $0x54 jmp alltraps 80106fa1: e9 be f6 ff ff jmp 80106664 <alltraps> 80106fa6 <vector85>: .globl vector85 vector85: pushl $0 80106fa6: 6a 00 push $0x0 pushl $85 80106fa8: 6a 55 push $0x55 jmp alltraps 80106faa: e9 b5 f6 ff ff jmp 80106664 <alltraps> 80106faf <vector86>: .globl vector86 vector86: pushl $0 80106faf: 6a 00 push $0x0 pushl $86 80106fb1: 6a 56 push $0x56 jmp alltraps 80106fb3: e9 ac f6 ff ff jmp 80106664 <alltraps> 80106fb8 <vector87>: .globl vector87 vector87: pushl $0 80106fb8: 6a 00 push $0x0 pushl $87 80106fba: 6a 57 push $0x57 jmp alltraps 80106fbc: e9 a3 f6 ff ff jmp 80106664 <alltraps> 80106fc1 <vector88>: .globl vector88 vector88: pushl $0 80106fc1: 6a 00 push $0x0 pushl $88 80106fc3: 6a 58 push $0x58 jmp alltraps 80106fc5: e9 9a f6 ff ff jmp 80106664 <alltraps> 80106fca <vector89>: .globl vector89 vector89: pushl $0 80106fca: 6a 00 push $0x0 pushl $89 80106fcc: 6a 59 push $0x59 jmp alltraps 80106fce: e9 91 f6 ff ff jmp 80106664 <alltraps> 80106fd3 <vector90>: .globl vector90 vector90: pushl $0 80106fd3: 6a 00 push $0x0 pushl $90 80106fd5: 6a 5a push $0x5a jmp alltraps 80106fd7: e9 88 f6 ff ff jmp 80106664 <alltraps> 80106fdc <vector91>: .globl vector91 vector91: pushl $0 80106fdc: 6a 00 push $0x0 pushl $91 80106fde: 6a 5b push $0x5b jmp alltraps 80106fe0: e9 7f f6 ff ff jmp 80106664 <alltraps> 80106fe5 <vector92>: .globl vector92 vector92: pushl $0 80106fe5: 6a 00 push $0x0 pushl $92 80106fe7: 6a 5c push $0x5c jmp alltraps 80106fe9: e9 76 f6 ff ff jmp 80106664 <alltraps> 80106fee <vector93>: .globl vector93 vector93: pushl $0 80106fee: 6a 00 push $0x0 pushl $93 80106ff0: 6a 5d push $0x5d jmp alltraps 80106ff2: e9 6d f6 ff ff jmp 80106664 <alltraps> 80106ff7 <vector94>: .globl vector94 vector94: pushl $0 80106ff7: 6a 00 push $0x0 pushl $94 80106ff9: 6a 5e push $0x5e jmp alltraps 80106ffb: e9 64 f6 ff ff jmp 80106664 <alltraps> 80107000 <vector95>: .globl vector95 vector95: pushl $0 80107000: 6a 00 push $0x0 pushl $95 80107002: 6a 5f push $0x5f jmp alltraps 80107004: e9 5b f6 ff ff jmp 80106664 <alltraps> 80107009 <vector96>: .globl vector96 vector96: pushl $0 80107009: 6a 00 push $0x0 pushl $96 8010700b: 6a 60 push $0x60 jmp alltraps 8010700d: e9 52 f6 ff ff jmp 80106664 <alltraps> 80107012 <vector97>: .globl vector97 vector97: pushl $0 80107012: 6a 00 push $0x0 pushl $97 80107014: 6a 61 push $0x61 jmp alltraps 80107016: e9 49 f6 ff ff jmp 80106664 <alltraps> 8010701b <vector98>: .globl vector98 vector98: pushl $0 8010701b: 6a 00 push $0x0 pushl $98 8010701d: 6a 62 push $0x62 jmp alltraps 8010701f: e9 40 f6 ff ff jmp 80106664 <alltraps> 80107024 <vector99>: .globl vector99 vector99: pushl $0 80107024: 6a 00 push $0x0 pushl $99 80107026: 6a 63 push $0x63 jmp alltraps 80107028: e9 37 f6 ff ff jmp 80106664 <alltraps> 8010702d <vector100>: .globl vector100 vector100: pushl $0 8010702d: 6a 00 push $0x0 pushl $100 8010702f: 6a 64 push $0x64 jmp alltraps 80107031: e9 2e f6 ff ff jmp 80106664 <alltraps> 80107036 <vector101>: .globl vector101 vector101: pushl $0 80107036: 6a 00 push $0x0 pushl $101 80107038: 6a 65 push $0x65 jmp alltraps 8010703a: e9 25 f6 ff ff jmp 80106664 <alltraps> 8010703f <vector102>: .globl vector102 vector102: pushl $0 8010703f: 6a 00 push $0x0 pushl $102 80107041: 6a 66 push $0x66 jmp alltraps 80107043: e9 1c f6 ff ff jmp 80106664 <alltraps> 80107048 <vector103>: .globl vector103 vector103: pushl $0 80107048: 6a 00 push $0x0 pushl $103 8010704a: 6a 67 push $0x67 jmp alltraps 8010704c: e9 13 f6 ff ff jmp 80106664 <alltraps> 80107051 <vector104>: .globl vector104 vector104: pushl $0 80107051: 6a 00 push $0x0 pushl $104 80107053: 6a 68 push $0x68 jmp alltraps 80107055: e9 0a f6 ff ff jmp 80106664 <alltraps> 8010705a <vector105>: .globl vector105 vector105: pushl $0 8010705a: 6a 00 push $0x0 pushl $105 8010705c: 6a 69 push $0x69 jmp alltraps 8010705e: e9 01 f6 ff ff jmp 80106664 <alltraps> 80107063 <vector106>: .globl vector106 vector106: pushl $0 80107063: 6a 00 push $0x0 pushl $106 80107065: 6a 6a push $0x6a jmp alltraps 80107067: e9 f8 f5 ff ff jmp 80106664 <alltraps> 8010706c <vector107>: .globl vector107 vector107: pushl $0 8010706c: 6a 00 push $0x0 pushl $107 8010706e: 6a 6b push $0x6b jmp alltraps 80107070: e9 ef f5 ff ff jmp 80106664 <alltraps> 80107075 <vector108>: .globl vector108 vector108: pushl $0 80107075: 6a 00 push $0x0 pushl $108 80107077: 6a 6c push $0x6c jmp alltraps 80107079: e9 e6 f5 ff ff jmp 80106664 <alltraps> 8010707e <vector109>: .globl vector109 vector109: pushl $0 8010707e: 6a 00 push $0x0 pushl $109 80107080: 6a 6d push $0x6d jmp alltraps 80107082: e9 dd f5 ff ff jmp 80106664 <alltraps> 80107087 <vector110>: .globl vector110 vector110: pushl $0 80107087: 6a 00 push $0x0 pushl $110 80107089: 6a 6e push $0x6e jmp alltraps 8010708b: e9 d4 f5 ff ff jmp 80106664 <alltraps> 80107090 <vector111>: .globl vector111 vector111: pushl $0 80107090: 6a 00 push $0x0 pushl $111 80107092: 6a 6f push $0x6f jmp alltraps 80107094: e9 cb f5 ff ff jmp 80106664 <alltraps> 80107099 <vector112>: .globl vector112 vector112: pushl $0 80107099: 6a 00 push $0x0 pushl $112 8010709b: 6a 70 push $0x70 jmp alltraps 8010709d: e9 c2 f5 ff ff jmp 80106664 <alltraps> 801070a2 <vector113>: .globl vector113 vector113: pushl $0 801070a2: 6a 00 push $0x0 pushl $113 801070a4: 6a 71 push $0x71 jmp alltraps 801070a6: e9 b9 f5 ff ff jmp 80106664 <alltraps> 801070ab <vector114>: .globl vector114 vector114: pushl $0 801070ab: 6a 00 push $0x0 pushl $114 801070ad: 6a 72 push $0x72 jmp alltraps 801070af: e9 b0 f5 ff ff jmp 80106664 <alltraps> 801070b4 <vector115>: .globl vector115 vector115: pushl $0 801070b4: 6a 00 push $0x0 pushl $115 801070b6: 6a 73 push $0x73 jmp alltraps 801070b8: e9 a7 f5 ff ff jmp 80106664 <alltraps> 801070bd <vector116>: .globl vector116 vector116: pushl $0 801070bd: 6a 00 push $0x0 pushl $116 801070bf: 6a 74 push $0x74 jmp alltraps 801070c1: e9 9e f5 ff ff jmp 80106664 <alltraps> 801070c6 <vector117>: .globl vector117 vector117: pushl $0 801070c6: 6a 00 push $0x0 pushl $117 801070c8: 6a 75 push $0x75 jmp alltraps 801070ca: e9 95 f5 ff ff jmp 80106664 <alltraps> 801070cf <vector118>: .globl vector118 vector118: pushl $0 801070cf: 6a 00 push $0x0 pushl $118 801070d1: 6a 76 push $0x76 jmp alltraps 801070d3: e9 8c f5 ff ff jmp 80106664 <alltraps> 801070d8 <vector119>: .globl vector119 vector119: pushl $0 801070d8: 6a 00 push $0x0 pushl $119 801070da: 6a 77 push $0x77 jmp alltraps 801070dc: e9 83 f5 ff ff jmp 80106664 <alltraps> 801070e1 <vector120>: .globl vector120 vector120: pushl $0 801070e1: 6a 00 push $0x0 pushl $120 801070e3: 6a 78 push $0x78 jmp alltraps 801070e5: e9 7a f5 ff ff jmp 80106664 <alltraps> 801070ea <vector121>: .globl vector121 vector121: pushl $0 801070ea: 6a 00 push $0x0 pushl $121 801070ec: 6a 79 push $0x79 jmp alltraps 801070ee: e9 71 f5 ff ff jmp 80106664 <alltraps> 801070f3 <vector122>: .globl vector122 vector122: pushl $0 801070f3: 6a 00 push $0x0 pushl $122 801070f5: 6a 7a push $0x7a jmp alltraps 801070f7: e9 68 f5 ff ff jmp 80106664 <alltraps> 801070fc <vector123>: .globl vector123 vector123: pushl $0 801070fc: 6a 00 push $0x0 pushl $123 801070fe: 6a 7b push $0x7b jmp alltraps 80107100: e9 5f f5 ff ff jmp 80106664 <alltraps> 80107105 <vector124>: .globl vector124 vector124: pushl $0 80107105: 6a 00 push $0x0 pushl $124 80107107: 6a 7c push $0x7c jmp alltraps 80107109: e9 56 f5 ff ff jmp 80106664 <alltraps> 8010710e <vector125>: .globl vector125 vector125: pushl $0 8010710e: 6a 00 push $0x0 pushl $125 80107110: 6a 7d push $0x7d jmp alltraps 80107112: e9 4d f5 ff ff jmp 80106664 <alltraps> 80107117 <vector126>: .globl vector126 vector126: pushl $0 80107117: 6a 00 push $0x0 pushl $126 80107119: 6a 7e push $0x7e jmp alltraps 8010711b: e9 44 f5 ff ff jmp 80106664 <alltraps> 80107120 <vector127>: .globl vector127 vector127: pushl $0 80107120: 6a 00 push $0x0 pushl $127 80107122: 6a 7f push $0x7f jmp alltraps 80107124: e9 3b f5 ff ff jmp 80106664 <alltraps> 80107129 <vector128>: .globl vector128 vector128: pushl $0 80107129: 6a 00 push $0x0 pushl $128 8010712b: 68 80 00 00 00 push $0x80 jmp alltraps 80107130: e9 2f f5 ff ff jmp 80106664 <alltraps> 80107135 <vector129>: .globl vector129 vector129: pushl $0 80107135: 6a 00 push $0x0 pushl $129 80107137: 68 81 00 00 00 push $0x81 jmp alltraps 8010713c: e9 23 f5 ff ff jmp 80106664 <alltraps> 80107141 <vector130>: .globl vector130 vector130: pushl $0 80107141: 6a 00 push $0x0 pushl $130 80107143: 68 82 00 00 00 push $0x82 jmp alltraps 80107148: e9 17 f5 ff ff jmp 80106664 <alltraps> 8010714d <vector131>: .globl vector131 vector131: pushl $0 8010714d: 6a 00 push $0x0 pushl $131 8010714f: 68 83 00 00 00 push $0x83 jmp alltraps 80107154: e9 0b f5 ff ff jmp 80106664 <alltraps> 80107159 <vector132>: .globl vector132 vector132: pushl $0 80107159: 6a 00 push $0x0 pushl $132 8010715b: 68 84 00 00 00 push $0x84 jmp alltraps 80107160: e9 ff f4 ff ff jmp 80106664 <alltraps> 80107165 <vector133>: .globl vector133 vector133: pushl $0 80107165: 6a 00 push $0x0 pushl $133 80107167: 68 85 00 00 00 push $0x85 jmp alltraps 8010716c: e9 f3 f4 ff ff jmp 80106664 <alltraps> 80107171 <vector134>: .globl vector134 vector134: pushl $0 80107171: 6a 00 push $0x0 pushl $134 80107173: 68 86 00 00 00 push $0x86 jmp alltraps 80107178: e9 e7 f4 ff ff jmp 80106664 <alltraps> 8010717d <vector135>: .globl vector135 vector135: pushl $0 8010717d: 6a 00 push $0x0 pushl $135 8010717f: 68 87 00 00 00 push $0x87 jmp alltraps 80107184: e9 db f4 ff ff jmp 80106664 <alltraps> 80107189 <vector136>: .globl vector136 vector136: pushl $0 80107189: 6a 00 push $0x0 pushl $136 8010718b: 68 88 00 00 00 push $0x88 jmp alltraps 80107190: e9 cf f4 ff ff jmp 80106664 <alltraps> 80107195 <vector137>: .globl vector137 vector137: pushl $0 80107195: 6a 00 push $0x0 pushl $137 80107197: 68 89 00 00 00 push $0x89 jmp alltraps 8010719c: e9 c3 f4 ff ff jmp 80106664 <alltraps> 801071a1 <vector138>: .globl vector138 vector138: pushl $0 801071a1: 6a 00 push $0x0 pushl $138 801071a3: 68 8a 00 00 00 push $0x8a jmp alltraps 801071a8: e9 b7 f4 ff ff jmp 80106664 <alltraps> 801071ad <vector139>: .globl vector139 vector139: pushl $0 801071ad: 6a 00 push $0x0 pushl $139 801071af: 68 8b 00 00 00 push $0x8b jmp alltraps 801071b4: e9 ab f4 ff ff jmp 80106664 <alltraps> 801071b9 <vector140>: .globl vector140 vector140: pushl $0 801071b9: 6a 00 push $0x0 pushl $140 801071bb: 68 8c 00 00 00 push $0x8c jmp alltraps 801071c0: e9 9f f4 ff ff jmp 80106664 <alltraps> 801071c5 <vector141>: .globl vector141 vector141: pushl $0 801071c5: 6a 00 push $0x0 pushl $141 801071c7: 68 8d 00 00 00 push $0x8d jmp alltraps 801071cc: e9 93 f4 ff ff jmp 80106664 <alltraps> 801071d1 <vector142>: .globl vector142 vector142: pushl $0 801071d1: 6a 00 push $0x0 pushl $142 801071d3: 68 8e 00 00 00 push $0x8e jmp alltraps 801071d8: e9 87 f4 ff ff jmp 80106664 <alltraps> 801071dd <vector143>: .globl vector143 vector143: pushl $0 801071dd: 6a 00 push $0x0 pushl $143 801071df: 68 8f 00 00 00 push $0x8f jmp alltraps 801071e4: e9 7b f4 ff ff jmp 80106664 <alltraps> 801071e9 <vector144>: .globl vector144 vector144: pushl $0 801071e9: 6a 00 push $0x0 pushl $144 801071eb: 68 90 00 00 00 push $0x90 jmp alltraps 801071f0: e9 6f f4 ff ff jmp 80106664 <alltraps> 801071f5 <vector145>: .globl vector145 vector145: pushl $0 801071f5: 6a 00 push $0x0 pushl $145 801071f7: 68 91 00 00 00 push $0x91 jmp alltraps 801071fc: e9 63 f4 ff ff jmp 80106664 <alltraps> 80107201 <vector146>: .globl vector146 vector146: pushl $0 80107201: 6a 00 push $0x0 pushl $146 80107203: 68 92 00 00 00 push $0x92 jmp alltraps 80107208: e9 57 f4 ff ff jmp 80106664 <alltraps> 8010720d <vector147>: .globl vector147 vector147: pushl $0 8010720d: 6a 00 push $0x0 pushl $147 8010720f: 68 93 00 00 00 push $0x93 jmp alltraps 80107214: e9 4b f4 ff ff jmp 80106664 <alltraps> 80107219 <vector148>: .globl vector148 vector148: pushl $0 80107219: 6a 00 push $0x0 pushl $148 8010721b: 68 94 00 00 00 push $0x94 jmp alltraps 80107220: e9 3f f4 ff ff jmp 80106664 <alltraps> 80107225 <vector149>: .globl vector149 vector149: pushl $0 80107225: 6a 00 push $0x0 pushl $149 80107227: 68 95 00 00 00 push $0x95 jmp alltraps 8010722c: e9 33 f4 ff ff jmp 80106664 <alltraps> 80107231 <vector150>: .globl vector150 vector150: pushl $0 80107231: 6a 00 push $0x0 pushl $150 80107233: 68 96 00 00 00 push $0x96 jmp alltraps 80107238: e9 27 f4 ff ff jmp 80106664 <alltraps> 8010723d <vector151>: .globl vector151 vector151: pushl $0 8010723d: 6a 00 push $0x0 pushl $151 8010723f: 68 97 00 00 00 push $0x97 jmp alltraps 80107244: e9 1b f4 ff ff jmp 80106664 <alltraps> 80107249 <vector152>: .globl vector152 vector152: pushl $0 80107249: 6a 00 push $0x0 pushl $152 8010724b: 68 98 00 00 00 push $0x98 jmp alltraps 80107250: e9 0f f4 ff ff jmp 80106664 <alltraps> 80107255 <vector153>: .globl vector153 vector153: pushl $0 80107255: 6a 00 push $0x0 pushl $153 80107257: 68 99 00 00 00 push $0x99 jmp alltraps 8010725c: e9 03 f4 ff ff jmp 80106664 <alltraps> 80107261 <vector154>: .globl vector154 vector154: pushl $0 80107261: 6a 00 push $0x0 pushl $154 80107263: 68 9a 00 00 00 push $0x9a jmp alltraps 80107268: e9 f7 f3 ff ff jmp 80106664 <alltraps> 8010726d <vector155>: .globl vector155 vector155: pushl $0 8010726d: 6a 00 push $0x0 pushl $155 8010726f: 68 9b 00 00 00 push $0x9b jmp alltraps 80107274: e9 eb f3 ff ff jmp 80106664 <alltraps> 80107279 <vector156>: .globl vector156 vector156: pushl $0 80107279: 6a 00 push $0x0 pushl $156 8010727b: 68 9c 00 00 00 push $0x9c jmp alltraps 80107280: e9 df f3 ff ff jmp 80106664 <alltraps> 80107285 <vector157>: .globl vector157 vector157: pushl $0 80107285: 6a 00 push $0x0 pushl $157 80107287: 68 9d 00 00 00 push $0x9d jmp alltraps 8010728c: e9 d3 f3 ff ff jmp 80106664 <alltraps> 80107291 <vector158>: .globl vector158 vector158: pushl $0 80107291: 6a 00 push $0x0 pushl $158 80107293: 68 9e 00 00 00 push $0x9e jmp alltraps 80107298: e9 c7 f3 ff ff jmp 80106664 <alltraps> 8010729d <vector159>: .globl vector159 vector159: pushl $0 8010729d: 6a 00 push $0x0 pushl $159 8010729f: 68 9f 00 00 00 push $0x9f jmp alltraps 801072a4: e9 bb f3 ff ff jmp 80106664 <alltraps> 801072a9 <vector160>: .globl vector160 vector160: pushl $0 801072a9: 6a 00 push $0x0 pushl $160 801072ab: 68 a0 00 00 00 push $0xa0 jmp alltraps 801072b0: e9 af f3 ff ff jmp 80106664 <alltraps> 801072b5 <vector161>: .globl vector161 vector161: pushl $0 801072b5: 6a 00 push $0x0 pushl $161 801072b7: 68 a1 00 00 00 push $0xa1 jmp alltraps 801072bc: e9 a3 f3 ff ff jmp 80106664 <alltraps> 801072c1 <vector162>: .globl vector162 vector162: pushl $0 801072c1: 6a 00 push $0x0 pushl $162 801072c3: 68 a2 00 00 00 push $0xa2 jmp alltraps 801072c8: e9 97 f3 ff ff jmp 80106664 <alltraps> 801072cd <vector163>: .globl vector163 vector163: pushl $0 801072cd: 6a 00 push $0x0 pushl $163 801072cf: 68 a3 00 00 00 push $0xa3 jmp alltraps 801072d4: e9 8b f3 ff ff jmp 80106664 <alltraps> 801072d9 <vector164>: .globl vector164 vector164: pushl $0 801072d9: 6a 00 push $0x0 pushl $164 801072db: 68 a4 00 00 00 push $0xa4 jmp alltraps 801072e0: e9 7f f3 ff ff jmp 80106664 <alltraps> 801072e5 <vector165>: .globl vector165 vector165: pushl $0 801072e5: 6a 00 push $0x0 pushl $165 801072e7: 68 a5 00 00 00 push $0xa5 jmp alltraps 801072ec: e9 73 f3 ff ff jmp 80106664 <alltraps> 801072f1 <vector166>: .globl vector166 vector166: pushl $0 801072f1: 6a 00 push $0x0 pushl $166 801072f3: 68 a6 00 00 00 push $0xa6 jmp alltraps 801072f8: e9 67 f3 ff ff jmp 80106664 <alltraps> 801072fd <vector167>: .globl vector167 vector167: pushl $0 801072fd: 6a 00 push $0x0 pushl $167 801072ff: 68 a7 00 00 00 push $0xa7 jmp alltraps 80107304: e9 5b f3 ff ff jmp 80106664 <alltraps> 80107309 <vector168>: .globl vector168 vector168: pushl $0 80107309: 6a 00 push $0x0 pushl $168 8010730b: 68 a8 00 00 00 push $0xa8 jmp alltraps 80107310: e9 4f f3 ff ff jmp 80106664 <alltraps> 80107315 <vector169>: .globl vector169 vector169: pushl $0 80107315: 6a 00 push $0x0 pushl $169 80107317: 68 a9 00 00 00 push $0xa9 jmp alltraps 8010731c: e9 43 f3 ff ff jmp 80106664 <alltraps> 80107321 <vector170>: .globl vector170 vector170: pushl $0 80107321: 6a 00 push $0x0 pushl $170 80107323: 68 aa 00 00 00 push $0xaa jmp alltraps 80107328: e9 37 f3 ff ff jmp 80106664 <alltraps> 8010732d <vector171>: .globl vector171 vector171: pushl $0 8010732d: 6a 00 push $0x0 pushl $171 8010732f: 68 ab 00 00 00 push $0xab jmp alltraps 80107334: e9 2b f3 ff ff jmp 80106664 <alltraps> 80107339 <vector172>: .globl vector172 vector172: pushl $0 80107339: 6a 00 push $0x0 pushl $172 8010733b: 68 ac 00 00 00 push $0xac jmp alltraps 80107340: e9 1f f3 ff ff jmp 80106664 <alltraps> 80107345 <vector173>: .globl vector173 vector173: pushl $0 80107345: 6a 00 push $0x0 pushl $173 80107347: 68 ad 00 00 00 push $0xad jmp alltraps 8010734c: e9 13 f3 ff ff jmp 80106664 <alltraps> 80107351 <vector174>: .globl vector174 vector174: pushl $0 80107351: 6a 00 push $0x0 pushl $174 80107353: 68 ae 00 00 00 push $0xae jmp alltraps 80107358: e9 07 f3 ff ff jmp 80106664 <alltraps> 8010735d <vector175>: .globl vector175 vector175: pushl $0 8010735d: 6a 00 push $0x0 pushl $175 8010735f: 68 af 00 00 00 push $0xaf jmp alltraps 80107364: e9 fb f2 ff ff jmp 80106664 <alltraps> 80107369 <vector176>: .globl vector176 vector176: pushl $0 80107369: 6a 00 push $0x0 pushl $176 8010736b: 68 b0 00 00 00 push $0xb0 jmp alltraps 80107370: e9 ef f2 ff ff jmp 80106664 <alltraps> 80107375 <vector177>: .globl vector177 vector177: pushl $0 80107375: 6a 00 push $0x0 pushl $177 80107377: 68 b1 00 00 00 push $0xb1 jmp alltraps 8010737c: e9 e3 f2 ff ff jmp 80106664 <alltraps> 80107381 <vector178>: .globl vector178 vector178: pushl $0 80107381: 6a 00 push $0x0 pushl $178 80107383: 68 b2 00 00 00 push $0xb2 jmp alltraps 80107388: e9 d7 f2 ff ff jmp 80106664 <alltraps> 8010738d <vector179>: .globl vector179 vector179: pushl $0 8010738d: 6a 00 push $0x0 pushl $179 8010738f: 68 b3 00 00 00 push $0xb3 jmp alltraps 80107394: e9 cb f2 ff ff jmp 80106664 <alltraps> 80107399 <vector180>: .globl vector180 vector180: pushl $0 80107399: 6a 00 push $0x0 pushl $180 8010739b: 68 b4 00 00 00 push $0xb4 jmp alltraps 801073a0: e9 bf f2 ff ff jmp 80106664 <alltraps> 801073a5 <vector181>: .globl vector181 vector181: pushl $0 801073a5: 6a 00 push $0x0 pushl $181 801073a7: 68 b5 00 00 00 push $0xb5 jmp alltraps 801073ac: e9 b3 f2 ff ff jmp 80106664 <alltraps> 801073b1 <vector182>: .globl vector182 vector182: pushl $0 801073b1: 6a 00 push $0x0 pushl $182 801073b3: 68 b6 00 00 00 push $0xb6 jmp alltraps 801073b8: e9 a7 f2 ff ff jmp 80106664 <alltraps> 801073bd <vector183>: .globl vector183 vector183: pushl $0 801073bd: 6a 00 push $0x0 pushl $183 801073bf: 68 b7 00 00 00 push $0xb7 jmp alltraps 801073c4: e9 9b f2 ff ff jmp 80106664 <alltraps> 801073c9 <vector184>: .globl vector184 vector184: pushl $0 801073c9: 6a 00 push $0x0 pushl $184 801073cb: 68 b8 00 00 00 push $0xb8 jmp alltraps 801073d0: e9 8f f2 ff ff jmp 80106664 <alltraps> 801073d5 <vector185>: .globl vector185 vector185: pushl $0 801073d5: 6a 00 push $0x0 pushl $185 801073d7: 68 b9 00 00 00 push $0xb9 jmp alltraps 801073dc: e9 83 f2 ff ff jmp 80106664 <alltraps> 801073e1 <vector186>: .globl vector186 vector186: pushl $0 801073e1: 6a 00 push $0x0 pushl $186 801073e3: 68 ba 00 00 00 push $0xba jmp alltraps 801073e8: e9 77 f2 ff ff jmp 80106664 <alltraps> 801073ed <vector187>: .globl vector187 vector187: pushl $0 801073ed: 6a 00 push $0x0 pushl $187 801073ef: 68 bb 00 00 00 push $0xbb jmp alltraps 801073f4: e9 6b f2 ff ff jmp 80106664 <alltraps> 801073f9 <vector188>: .globl vector188 vector188: pushl $0 801073f9: 6a 00 push $0x0 pushl $188 801073fb: 68 bc 00 00 00 push $0xbc jmp alltraps 80107400: e9 5f f2 ff ff jmp 80106664 <alltraps> 80107405 <vector189>: .globl vector189 vector189: pushl $0 80107405: 6a 00 push $0x0 pushl $189 80107407: 68 bd 00 00 00 push $0xbd jmp alltraps 8010740c: e9 53 f2 ff ff jmp 80106664 <alltraps> 80107411 <vector190>: .globl vector190 vector190: pushl $0 80107411: 6a 00 push $0x0 pushl $190 80107413: 68 be 00 00 00 push $0xbe jmp alltraps 80107418: e9 47 f2 ff ff jmp 80106664 <alltraps> 8010741d <vector191>: .globl vector191 vector191: pushl $0 8010741d: 6a 00 push $0x0 pushl $191 8010741f: 68 bf 00 00 00 push $0xbf jmp alltraps 80107424: e9 3b f2 ff ff jmp 80106664 <alltraps> 80107429 <vector192>: .globl vector192 vector192: pushl $0 80107429: 6a 00 push $0x0 pushl $192 8010742b: 68 c0 00 00 00 push $0xc0 jmp alltraps 80107430: e9 2f f2 ff ff jmp 80106664 <alltraps> 80107435 <vector193>: .globl vector193 vector193: pushl $0 80107435: 6a 00 push $0x0 pushl $193 80107437: 68 c1 00 00 00 push $0xc1 jmp alltraps 8010743c: e9 23 f2 ff ff jmp 80106664 <alltraps> 80107441 <vector194>: .globl vector194 vector194: pushl $0 80107441: 6a 00 push $0x0 pushl $194 80107443: 68 c2 00 00 00 push $0xc2 jmp alltraps 80107448: e9 17 f2 ff ff jmp 80106664 <alltraps> 8010744d <vector195>: .globl vector195 vector195: pushl $0 8010744d: 6a 00 push $0x0 pushl $195 8010744f: 68 c3 00 00 00 push $0xc3 jmp alltraps 80107454: e9 0b f2 ff ff jmp 80106664 <alltraps> 80107459 <vector196>: .globl vector196 vector196: pushl $0 80107459: 6a 00 push $0x0 pushl $196 8010745b: 68 c4 00 00 00 push $0xc4 jmp alltraps 80107460: e9 ff f1 ff ff jmp 80106664 <alltraps> 80107465 <vector197>: .globl vector197 vector197: pushl $0 80107465: 6a 00 push $0x0 pushl $197 80107467: 68 c5 00 00 00 push $0xc5 jmp alltraps 8010746c: e9 f3 f1 ff ff jmp 80106664 <alltraps> 80107471 <vector198>: .globl vector198 vector198: pushl $0 80107471: 6a 00 push $0x0 pushl $198 80107473: 68 c6 00 00 00 push $0xc6 jmp alltraps 80107478: e9 e7 f1 ff ff jmp 80106664 <alltraps> 8010747d <vector199>: .globl vector199 vector199: pushl $0 8010747d: 6a 00 push $0x0 pushl $199 8010747f: 68 c7 00 00 00 push $0xc7 jmp alltraps 80107484: e9 db f1 ff ff jmp 80106664 <alltraps> 80107489 <vector200>: .globl vector200 vector200: pushl $0 80107489: 6a 00 push $0x0 pushl $200 8010748b: 68 c8 00 00 00 push $0xc8 jmp alltraps 80107490: e9 cf f1 ff ff jmp 80106664 <alltraps> 80107495 <vector201>: .globl vector201 vector201: pushl $0 80107495: 6a 00 push $0x0 pushl $201 80107497: 68 c9 00 00 00 push $0xc9 jmp alltraps 8010749c: e9 c3 f1 ff ff jmp 80106664 <alltraps> 801074a1 <vector202>: .globl vector202 vector202: pushl $0 801074a1: 6a 00 push $0x0 pushl $202 801074a3: 68 ca 00 00 00 push $0xca jmp alltraps 801074a8: e9 b7 f1 ff ff jmp 80106664 <alltraps> 801074ad <vector203>: .globl vector203 vector203: pushl $0 801074ad: 6a 00 push $0x0 pushl $203 801074af: 68 cb 00 00 00 push $0xcb jmp alltraps 801074b4: e9 ab f1 ff ff jmp 80106664 <alltraps> 801074b9 <vector204>: .globl vector204 vector204: pushl $0 801074b9: 6a 00 push $0x0 pushl $204 801074bb: 68 cc 00 00 00 push $0xcc jmp alltraps 801074c0: e9 9f f1 ff ff jmp 80106664 <alltraps> 801074c5 <vector205>: .globl vector205 vector205: pushl $0 801074c5: 6a 00 push $0x0 pushl $205 801074c7: 68 cd 00 00 00 push $0xcd jmp alltraps 801074cc: e9 93 f1 ff ff jmp 80106664 <alltraps> 801074d1 <vector206>: .globl vector206 vector206: pushl $0 801074d1: 6a 00 push $0x0 pushl $206 801074d3: 68 ce 00 00 00 push $0xce jmp alltraps 801074d8: e9 87 f1 ff ff jmp 80106664 <alltraps> 801074dd <vector207>: .globl vector207 vector207: pushl $0 801074dd: 6a 00 push $0x0 pushl $207 801074df: 68 cf 00 00 00 push $0xcf jmp alltraps 801074e4: e9 7b f1 ff ff jmp 80106664 <alltraps> 801074e9 <vector208>: .globl vector208 vector208: pushl $0 801074e9: 6a 00 push $0x0 pushl $208 801074eb: 68 d0 00 00 00 push $0xd0 jmp alltraps 801074f0: e9 6f f1 ff ff jmp 80106664 <alltraps> 801074f5 <vector209>: .globl vector209 vector209: pushl $0 801074f5: 6a 00 push $0x0 pushl $209 801074f7: 68 d1 00 00 00 push $0xd1 jmp alltraps 801074fc: e9 63 f1 ff ff jmp 80106664 <alltraps> 80107501 <vector210>: .globl vector210 vector210: pushl $0 80107501: 6a 00 push $0x0 pushl $210 80107503: 68 d2 00 00 00 push $0xd2 jmp alltraps 80107508: e9 57 f1 ff ff jmp 80106664 <alltraps> 8010750d <vector211>: .globl vector211 vector211: pushl $0 8010750d: 6a 00 push $0x0 pushl $211 8010750f: 68 d3 00 00 00 push $0xd3 jmp alltraps 80107514: e9 4b f1 ff ff jmp 80106664 <alltraps> 80107519 <vector212>: .globl vector212 vector212: pushl $0 80107519: 6a 00 push $0x0 pushl $212 8010751b: 68 d4 00 00 00 push $0xd4 jmp alltraps 80107520: e9 3f f1 ff ff jmp 80106664 <alltraps> 80107525 <vector213>: .globl vector213 vector213: pushl $0 80107525: 6a 00 push $0x0 pushl $213 80107527: 68 d5 00 00 00 push $0xd5 jmp alltraps 8010752c: e9 33 f1 ff ff jmp 80106664 <alltraps> 80107531 <vector214>: .globl vector214 vector214: pushl $0 80107531: 6a 00 push $0x0 pushl $214 80107533: 68 d6 00 00 00 push $0xd6 jmp alltraps 80107538: e9 27 f1 ff ff jmp 80106664 <alltraps> 8010753d <vector215>: .globl vector215 vector215: pushl $0 8010753d: 6a 00 push $0x0 pushl $215 8010753f: 68 d7 00 00 00 push $0xd7 jmp alltraps 80107544: e9 1b f1 ff ff jmp 80106664 <alltraps> 80107549 <vector216>: .globl vector216 vector216: pushl $0 80107549: 6a 00 push $0x0 pushl $216 8010754b: 68 d8 00 00 00 push $0xd8 jmp alltraps 80107550: e9 0f f1 ff ff jmp 80106664 <alltraps> 80107555 <vector217>: .globl vector217 vector217: pushl $0 80107555: 6a 00 push $0x0 pushl $217 80107557: 68 d9 00 00 00 push $0xd9 jmp alltraps 8010755c: e9 03 f1 ff ff jmp 80106664 <alltraps> 80107561 <vector218>: .globl vector218 vector218: pushl $0 80107561: 6a 00 push $0x0 pushl $218 80107563: 68 da 00 00 00 push $0xda jmp alltraps 80107568: e9 f7 f0 ff ff jmp 80106664 <alltraps> 8010756d <vector219>: .globl vector219 vector219: pushl $0 8010756d: 6a 00 push $0x0 pushl $219 8010756f: 68 db 00 00 00 push $0xdb jmp alltraps 80107574: e9 eb f0 ff ff jmp 80106664 <alltraps> 80107579 <vector220>: .globl vector220 vector220: pushl $0 80107579: 6a 00 push $0x0 pushl $220 8010757b: 68 dc 00 00 00 push $0xdc jmp alltraps 80107580: e9 df f0 ff ff jmp 80106664 <alltraps> 80107585 <vector221>: .globl vector221 vector221: pushl $0 80107585: 6a 00 push $0x0 pushl $221 80107587: 68 dd 00 00 00 push $0xdd jmp alltraps 8010758c: e9 d3 f0 ff ff jmp 80106664 <alltraps> 80107591 <vector222>: .globl vector222 vector222: pushl $0 80107591: 6a 00 push $0x0 pushl $222 80107593: 68 de 00 00 00 push $0xde jmp alltraps 80107598: e9 c7 f0 ff ff jmp 80106664 <alltraps> 8010759d <vector223>: .globl vector223 vector223: pushl $0 8010759d: 6a 00 push $0x0 pushl $223 8010759f: 68 df 00 00 00 push $0xdf jmp alltraps 801075a4: e9 bb f0 ff ff jmp 80106664 <alltraps> 801075a9 <vector224>: .globl vector224 vector224: pushl $0 801075a9: 6a 00 push $0x0 pushl $224 801075ab: 68 e0 00 00 00 push $0xe0 jmp alltraps 801075b0: e9 af f0 ff ff jmp 80106664 <alltraps> 801075b5 <vector225>: .globl vector225 vector225: pushl $0 801075b5: 6a 00 push $0x0 pushl $225 801075b7: 68 e1 00 00 00 push $0xe1 jmp alltraps 801075bc: e9 a3 f0 ff ff jmp 80106664 <alltraps> 801075c1 <vector226>: .globl vector226 vector226: pushl $0 801075c1: 6a 00 push $0x0 pushl $226 801075c3: 68 e2 00 00 00 push $0xe2 jmp alltraps 801075c8: e9 97 f0 ff ff jmp 80106664 <alltraps> 801075cd <vector227>: .globl vector227 vector227: pushl $0 801075cd: 6a 00 push $0x0 pushl $227 801075cf: 68 e3 00 00 00 push $0xe3 jmp alltraps 801075d4: e9 8b f0 ff ff jmp 80106664 <alltraps> 801075d9 <vector228>: .globl vector228 vector228: pushl $0 801075d9: 6a 00 push $0x0 pushl $228 801075db: 68 e4 00 00 00 push $0xe4 jmp alltraps 801075e0: e9 7f f0 ff ff jmp 80106664 <alltraps> 801075e5 <vector229>: .globl vector229 vector229: pushl $0 801075e5: 6a 00 push $0x0 pushl $229 801075e7: 68 e5 00 00 00 push $0xe5 jmp alltraps 801075ec: e9 73 f0 ff ff jmp 80106664 <alltraps> 801075f1 <vector230>: .globl vector230 vector230: pushl $0 801075f1: 6a 00 push $0x0 pushl $230 801075f3: 68 e6 00 00 00 push $0xe6 jmp alltraps 801075f8: e9 67 f0 ff ff jmp 80106664 <alltraps> 801075fd <vector231>: .globl vector231 vector231: pushl $0 801075fd: 6a 00 push $0x0 pushl $231 801075ff: 68 e7 00 00 00 push $0xe7 jmp alltraps 80107604: e9 5b f0 ff ff jmp 80106664 <alltraps> 80107609 <vector232>: .globl vector232 vector232: pushl $0 80107609: 6a 00 push $0x0 pushl $232 8010760b: 68 e8 00 00 00 push $0xe8 jmp alltraps 80107610: e9 4f f0 ff ff jmp 80106664 <alltraps> 80107615 <vector233>: .globl vector233 vector233: pushl $0 80107615: 6a 00 push $0x0 pushl $233 80107617: 68 e9 00 00 00 push $0xe9 jmp alltraps 8010761c: e9 43 f0 ff ff jmp 80106664 <alltraps> 80107621 <vector234>: .globl vector234 vector234: pushl $0 80107621: 6a 00 push $0x0 pushl $234 80107623: 68 ea 00 00 00 push $0xea jmp alltraps 80107628: e9 37 f0 ff ff jmp 80106664 <alltraps> 8010762d <vector235>: .globl vector235 vector235: pushl $0 8010762d: 6a 00 push $0x0 pushl $235 8010762f: 68 eb 00 00 00 push $0xeb jmp alltraps 80107634: e9 2b f0 ff ff jmp 80106664 <alltraps> 80107639 <vector236>: .globl vector236 vector236: pushl $0 80107639: 6a 00 push $0x0 pushl $236 8010763b: 68 ec 00 00 00 push $0xec jmp alltraps 80107640: e9 1f f0 ff ff jmp 80106664 <alltraps> 80107645 <vector237>: .globl vector237 vector237: pushl $0 80107645: 6a 00 push $0x0 pushl $237 80107647: 68 ed 00 00 00 push $0xed jmp alltraps 8010764c: e9 13 f0 ff ff jmp 80106664 <alltraps> 80107651 <vector238>: .globl vector238 vector238: pushl $0 80107651: 6a 00 push $0x0 pushl $238 80107653: 68 ee 00 00 00 push $0xee jmp alltraps 80107658: e9 07 f0 ff ff jmp 80106664 <alltraps> 8010765d <vector239>: .globl vector239 vector239: pushl $0 8010765d: 6a 00 push $0x0 pushl $239 8010765f: 68 ef 00 00 00 push $0xef jmp alltraps 80107664: e9 fb ef ff ff jmp 80106664 <alltraps> 80107669 <vector240>: .globl vector240 vector240: pushl $0 80107669: 6a 00 push $0x0 pushl $240 8010766b: 68 f0 00 00 00 push $0xf0 jmp alltraps 80107670: e9 ef ef ff ff jmp 80106664 <alltraps> 80107675 <vector241>: .globl vector241 vector241: pushl $0 80107675: 6a 00 push $0x0 pushl $241 80107677: 68 f1 00 00 00 push $0xf1 jmp alltraps 8010767c: e9 e3 ef ff ff jmp 80106664 <alltraps> 80107681 <vector242>: .globl vector242 vector242: pushl $0 80107681: 6a 00 push $0x0 pushl $242 80107683: 68 f2 00 00 00 push $0xf2 jmp alltraps 80107688: e9 d7 ef ff ff jmp 80106664 <alltraps> 8010768d <vector243>: .globl vector243 vector243: pushl $0 8010768d: 6a 00 push $0x0 pushl $243 8010768f: 68 f3 00 00 00 push $0xf3 jmp alltraps 80107694: e9 cb ef ff ff jmp 80106664 <alltraps> 80107699 <vector244>: .globl vector244 vector244: pushl $0 80107699: 6a 00 push $0x0 pushl $244 8010769b: 68 f4 00 00 00 push $0xf4 jmp alltraps 801076a0: e9 bf ef ff ff jmp 80106664 <alltraps> 801076a5 <vector245>: .globl vector245 vector245: pushl $0 801076a5: 6a 00 push $0x0 pushl $245 801076a7: 68 f5 00 00 00 push $0xf5 jmp alltraps 801076ac: e9 b3 ef ff ff jmp 80106664 <alltraps> 801076b1 <vector246>: .globl vector246 vector246: pushl $0 801076b1: 6a 00 push $0x0 pushl $246 801076b3: 68 f6 00 00 00 push $0xf6 jmp alltraps 801076b8: e9 a7 ef ff ff jmp 80106664 <alltraps> 801076bd <vector247>: .globl vector247 vector247: pushl $0 801076bd: 6a 00 push $0x0 pushl $247 801076bf: 68 f7 00 00 00 push $0xf7 jmp alltraps 801076c4: e9 9b ef ff ff jmp 80106664 <alltraps> 801076c9 <vector248>: .globl vector248 vector248: pushl $0 801076c9: 6a 00 push $0x0 pushl $248 801076cb: 68 f8 00 00 00 push $0xf8 jmp alltraps 801076d0: e9 8f ef ff ff jmp 80106664 <alltraps> 801076d5 <vector249>: .globl vector249 vector249: pushl $0 801076d5: 6a 00 push $0x0 pushl $249 801076d7: 68 f9 00 00 00 push $0xf9 jmp alltraps 801076dc: e9 83 ef ff ff jmp 80106664 <alltraps> 801076e1 <vector250>: .globl vector250 vector250: pushl $0 801076e1: 6a 00 push $0x0 pushl $250 801076e3: 68 fa 00 00 00 push $0xfa jmp alltraps 801076e8: e9 77 ef ff ff jmp 80106664 <alltraps> 801076ed <vector251>: .globl vector251 vector251: pushl $0 801076ed: 6a 00 push $0x0 pushl $251 801076ef: 68 fb 00 00 00 push $0xfb jmp alltraps 801076f4: e9 6b ef ff ff jmp 80106664 <alltraps> 801076f9 <vector252>: .globl vector252 vector252: pushl $0 801076f9: 6a 00 push $0x0 pushl $252 801076fb: 68 fc 00 00 00 push $0xfc jmp alltraps 80107700: e9 5f ef ff ff jmp 80106664 <alltraps> 80107705 <vector253>: .globl vector253 vector253: pushl $0 80107705: 6a 00 push $0x0 pushl $253 80107707: 68 fd 00 00 00 push $0xfd jmp alltraps 8010770c: e9 53 ef ff ff jmp 80106664 <alltraps> 80107711 <vector254>: .globl vector254 vector254: pushl $0 80107711: 6a 00 push $0x0 pushl $254 80107713: 68 fe 00 00 00 push $0xfe jmp alltraps 80107718: e9 47 ef ff ff jmp 80106664 <alltraps> 8010771d <vector255>: .globl vector255 vector255: pushl $0 8010771d: 6a 00 push $0x0 pushl $255 8010771f: 68 ff 00 00 00 push $0xff jmp alltraps 80107724: e9 3b ef ff ff jmp 80106664 <alltraps> 80107729 <lgdt>: { 80107729: 55 push %ebp 8010772a: 89 e5 mov %esp,%ebp 8010772c: 83 ec 10 sub $0x10,%esp pd[0] = size-1; 8010772f: 8b 45 0c mov 0xc(%ebp),%eax 80107732: 83 e8 01 sub $0x1,%eax 80107735: 66 89 45 fa mov %ax,-0x6(%ebp) pd[1] = (uint)p; 80107739: 8b 45 08 mov 0x8(%ebp),%eax 8010773c: 66 89 45 fc mov %ax,-0x4(%ebp) pd[2] = (uint)p >> 16; 80107740: 8b 45 08 mov 0x8(%ebp),%eax 80107743: c1 e8 10 shr $0x10,%eax 80107746: 66 89 45 fe mov %ax,-0x2(%ebp) asm volatile("lgdt (%0)" : : "r" (pd)); 8010774a: 8d 45 fa lea -0x6(%ebp),%eax 8010774d: 0f 01 10 lgdtl (%eax) } 80107750: 90 nop 80107751: c9 leave 80107752: c3 ret 80107753 <ltr>: { 80107753: 55 push %ebp 80107754: 89 e5 mov %esp,%ebp 80107756: 83 ec 04 sub $0x4,%esp 80107759: 8b 45 08 mov 0x8(%ebp),%eax 8010775c: 66 89 45 fc mov %ax,-0x4(%ebp) asm volatile("ltr %0" : : "r" (sel)); 80107760: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80107764: 0f 00 d8 ltr %ax } 80107767: 90 nop 80107768: c9 leave 80107769: c3 ret 8010776a <loadgs>: { 8010776a: 55 push %ebp 8010776b: 89 e5 mov %esp,%ebp 8010776d: 83 ec 04 sub $0x4,%esp 80107770: 8b 45 08 mov 0x8(%ebp),%eax 80107773: 66 89 45 fc mov %ax,-0x4(%ebp) asm volatile("movw %0, %%gs" : : "r" (v)); 80107777: 0f b7 45 fc movzwl -0x4(%ebp),%eax 8010777b: 8e e8 mov %eax,%gs } 8010777d: 90 nop 8010777e: c9 leave 8010777f: c3 ret 80107780 <lcr3>: { 80107780: 55 push %ebp 80107781: 89 e5 mov %esp,%ebp asm volatile("movl %0,%%cr3" : : "r" (val)); 80107783: 8b 45 08 mov 0x8(%ebp),%eax 80107786: 0f 22 d8 mov %eax,%cr3 } 80107789: 90 nop 8010778a: 5d pop %ebp 8010778b: c3 ret 8010778c <v2p>: static inline uint v2p(void *a) { return ((uint) (a)) - KERNBASE; } 8010778c: 55 push %ebp 8010778d: 89 e5 mov %esp,%ebp 8010778f: 8b 45 08 mov 0x8(%ebp),%eax 80107792: 05 00 00 00 80 add $0x80000000,%eax 80107797: 5d pop %ebp 80107798: c3 ret 80107799 <p2v>: static inline void *p2v(uint a) { return (void *) ((a) + KERNBASE); } 80107799: 55 push %ebp 8010779a: 89 e5 mov %esp,%ebp 8010779c: 8b 45 08 mov 0x8(%ebp),%eax 8010779f: 05 00 00 00 80 add $0x80000000,%eax 801077a4: 5d pop %ebp 801077a5: c3 ret 801077a6 <seginit>: // Set up CPU's kernel segment descriptors. // Run once on entry on each CPU. void seginit(void) { 801077a6: 55 push %ebp 801077a7: 89 e5 mov %esp,%ebp 801077a9: 53 push %ebx 801077aa: 83 ec 14 sub $0x14,%esp // Map "logical" addresses to virtual addresses using identity map. // Cannot share a CODE descriptor for both kernel and user // because it would have to have DPL_USR, but the CPU forbids // an interrupt from CPL=0 to DPL=3. c = &cpus[cpunum()]; 801077ad: e8 21 b8 ff ff call 80102fd3 <cpunum> 801077b2: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 801077b8: 05 60 23 11 80 add $0x80112360,%eax 801077bd: 89 45 f4 mov %eax,-0xc(%ebp) c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0); 801077c0: 8b 45 f4 mov -0xc(%ebp),%eax 801077c3: 66 c7 40 78 ff ff movw $0xffff,0x78(%eax) 801077c9: 8b 45 f4 mov -0xc(%ebp),%eax 801077cc: 66 c7 40 7a 00 00 movw $0x0,0x7a(%eax) 801077d2: 8b 45 f4 mov -0xc(%ebp),%eax 801077d5: c6 40 7c 00 movb $0x0,0x7c(%eax) 801077d9: 8b 45 f4 mov -0xc(%ebp),%eax 801077dc: 0f b6 50 7d movzbl 0x7d(%eax),%edx 801077e0: 83 e2 f0 and $0xfffffff0,%edx 801077e3: 83 ca 0a or $0xa,%edx 801077e6: 88 50 7d mov %dl,0x7d(%eax) 801077e9: 8b 45 f4 mov -0xc(%ebp),%eax 801077ec: 0f b6 50 7d movzbl 0x7d(%eax),%edx 801077f0: 83 ca 10 or $0x10,%edx 801077f3: 88 50 7d mov %dl,0x7d(%eax) 801077f6: 8b 45 f4 mov -0xc(%ebp),%eax 801077f9: 0f b6 50 7d movzbl 0x7d(%eax),%edx 801077fd: 83 e2 9f and $0xffffff9f,%edx 80107800: 88 50 7d mov %dl,0x7d(%eax) 80107803: 8b 45 f4 mov -0xc(%ebp),%eax 80107806: 0f b6 50 7d movzbl 0x7d(%eax),%edx 8010780a: 83 ca 80 or $0xffffff80,%edx 8010780d: 88 50 7d mov %dl,0x7d(%eax) 80107810: 8b 45 f4 mov -0xc(%ebp),%eax 80107813: 0f b6 50 7e movzbl 0x7e(%eax),%edx 80107817: 83 ca 0f or $0xf,%edx 8010781a: 88 50 7e mov %dl,0x7e(%eax) 8010781d: 8b 45 f4 mov -0xc(%ebp),%eax 80107820: 0f b6 50 7e movzbl 0x7e(%eax),%edx 80107824: 83 e2 ef and $0xffffffef,%edx 80107827: 88 50 7e mov %dl,0x7e(%eax) 8010782a: 8b 45 f4 mov -0xc(%ebp),%eax 8010782d: 0f b6 50 7e movzbl 0x7e(%eax),%edx 80107831: 83 e2 df and $0xffffffdf,%edx 80107834: 88 50 7e mov %dl,0x7e(%eax) 80107837: 8b 45 f4 mov -0xc(%ebp),%eax 8010783a: 0f b6 50 7e movzbl 0x7e(%eax),%edx 8010783e: 83 ca 40 or $0x40,%edx 80107841: 88 50 7e mov %dl,0x7e(%eax) 80107844: 8b 45 f4 mov -0xc(%ebp),%eax 80107847: 0f b6 50 7e movzbl 0x7e(%eax),%edx 8010784b: 83 ca 80 or $0xffffff80,%edx 8010784e: 88 50 7e mov %dl,0x7e(%eax) 80107851: 8b 45 f4 mov -0xc(%ebp),%eax 80107854: c6 40 7f 00 movb $0x0,0x7f(%eax) c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0); 80107858: 8b 45 f4 mov -0xc(%ebp),%eax 8010785b: 66 c7 80 80 00 00 00 movw $0xffff,0x80(%eax) 80107862: ff ff 80107864: 8b 45 f4 mov -0xc(%ebp),%eax 80107867: 66 c7 80 82 00 00 00 movw $0x0,0x82(%eax) 8010786e: 00 00 80107870: 8b 45 f4 mov -0xc(%ebp),%eax 80107873: c6 80 84 00 00 00 00 movb $0x0,0x84(%eax) 8010787a: 8b 45 f4 mov -0xc(%ebp),%eax 8010787d: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 80107884: 83 e2 f0 and $0xfffffff0,%edx 80107887: 83 ca 02 or $0x2,%edx 8010788a: 88 90 85 00 00 00 mov %dl,0x85(%eax) 80107890: 8b 45 f4 mov -0xc(%ebp),%eax 80107893: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 8010789a: 83 ca 10 or $0x10,%edx 8010789d: 88 90 85 00 00 00 mov %dl,0x85(%eax) 801078a3: 8b 45 f4 mov -0xc(%ebp),%eax 801078a6: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 801078ad: 83 e2 9f and $0xffffff9f,%edx 801078b0: 88 90 85 00 00 00 mov %dl,0x85(%eax) 801078b6: 8b 45 f4 mov -0xc(%ebp),%eax 801078b9: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 801078c0: 83 ca 80 or $0xffffff80,%edx 801078c3: 88 90 85 00 00 00 mov %dl,0x85(%eax) 801078c9: 8b 45 f4 mov -0xc(%ebp),%eax 801078cc: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 801078d3: 83 ca 0f or $0xf,%edx 801078d6: 88 90 86 00 00 00 mov %dl,0x86(%eax) 801078dc: 8b 45 f4 mov -0xc(%ebp),%eax 801078df: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 801078e6: 83 e2 ef and $0xffffffef,%edx 801078e9: 88 90 86 00 00 00 mov %dl,0x86(%eax) 801078ef: 8b 45 f4 mov -0xc(%ebp),%eax 801078f2: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 801078f9: 83 e2 df and $0xffffffdf,%edx 801078fc: 88 90 86 00 00 00 mov %dl,0x86(%eax) 80107902: 8b 45 f4 mov -0xc(%ebp),%eax 80107905: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 8010790c: 83 ca 40 or $0x40,%edx 8010790f: 88 90 86 00 00 00 mov %dl,0x86(%eax) 80107915: 8b 45 f4 mov -0xc(%ebp),%eax 80107918: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 8010791f: 83 ca 80 or $0xffffff80,%edx 80107922: 88 90 86 00 00 00 mov %dl,0x86(%eax) 80107928: 8b 45 f4 mov -0xc(%ebp),%eax 8010792b: c6 80 87 00 00 00 00 movb $0x0,0x87(%eax) c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER); 80107932: 8b 45 f4 mov -0xc(%ebp),%eax 80107935: 66 c7 80 90 00 00 00 movw $0xffff,0x90(%eax) 8010793c: ff ff 8010793e: 8b 45 f4 mov -0xc(%ebp),%eax 80107941: 66 c7 80 92 00 00 00 movw $0x0,0x92(%eax) 80107948: 00 00 8010794a: 8b 45 f4 mov -0xc(%ebp),%eax 8010794d: c6 80 94 00 00 00 00 movb $0x0,0x94(%eax) 80107954: 8b 45 f4 mov -0xc(%ebp),%eax 80107957: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 8010795e: 83 e2 f0 and $0xfffffff0,%edx 80107961: 83 ca 0a or $0xa,%edx 80107964: 88 90 95 00 00 00 mov %dl,0x95(%eax) 8010796a: 8b 45 f4 mov -0xc(%ebp),%eax 8010796d: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 80107974: 83 ca 10 or $0x10,%edx 80107977: 88 90 95 00 00 00 mov %dl,0x95(%eax) 8010797d: 8b 45 f4 mov -0xc(%ebp),%eax 80107980: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 80107987: 83 ca 60 or $0x60,%edx 8010798a: 88 90 95 00 00 00 mov %dl,0x95(%eax) 80107990: 8b 45 f4 mov -0xc(%ebp),%eax 80107993: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 8010799a: 83 ca 80 or $0xffffff80,%edx 8010799d: 88 90 95 00 00 00 mov %dl,0x95(%eax) 801079a3: 8b 45 f4 mov -0xc(%ebp),%eax 801079a6: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 801079ad: 83 ca 0f or $0xf,%edx 801079b0: 88 90 96 00 00 00 mov %dl,0x96(%eax) 801079b6: 8b 45 f4 mov -0xc(%ebp),%eax 801079b9: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 801079c0: 83 e2 ef and $0xffffffef,%edx 801079c3: 88 90 96 00 00 00 mov %dl,0x96(%eax) 801079c9: 8b 45 f4 mov -0xc(%ebp),%eax 801079cc: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 801079d3: 83 e2 df and $0xffffffdf,%edx 801079d6: 88 90 96 00 00 00 mov %dl,0x96(%eax) 801079dc: 8b 45 f4 mov -0xc(%ebp),%eax 801079df: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 801079e6: 83 ca 40 or $0x40,%edx 801079e9: 88 90 96 00 00 00 mov %dl,0x96(%eax) 801079ef: 8b 45 f4 mov -0xc(%ebp),%eax 801079f2: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 801079f9: 83 ca 80 or $0xffffff80,%edx 801079fc: 88 90 96 00 00 00 mov %dl,0x96(%eax) 80107a02: 8b 45 f4 mov -0xc(%ebp),%eax 80107a05: c6 80 97 00 00 00 00 movb $0x0,0x97(%eax) c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER); 80107a0c: 8b 45 f4 mov -0xc(%ebp),%eax 80107a0f: 66 c7 80 98 00 00 00 movw $0xffff,0x98(%eax) 80107a16: ff ff 80107a18: 8b 45 f4 mov -0xc(%ebp),%eax 80107a1b: 66 c7 80 9a 00 00 00 movw $0x0,0x9a(%eax) 80107a22: 00 00 80107a24: 8b 45 f4 mov -0xc(%ebp),%eax 80107a27: c6 80 9c 00 00 00 00 movb $0x0,0x9c(%eax) 80107a2e: 8b 45 f4 mov -0xc(%ebp),%eax 80107a31: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107a38: 83 e2 f0 and $0xfffffff0,%edx 80107a3b: 83 ca 02 or $0x2,%edx 80107a3e: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107a44: 8b 45 f4 mov -0xc(%ebp),%eax 80107a47: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107a4e: 83 ca 10 or $0x10,%edx 80107a51: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107a57: 8b 45 f4 mov -0xc(%ebp),%eax 80107a5a: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107a61: 83 ca 60 or $0x60,%edx 80107a64: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107a6a: 8b 45 f4 mov -0xc(%ebp),%eax 80107a6d: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107a74: 83 ca 80 or $0xffffff80,%edx 80107a77: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107a7d: 8b 45 f4 mov -0xc(%ebp),%eax 80107a80: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107a87: 83 ca 0f or $0xf,%edx 80107a8a: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107a90: 8b 45 f4 mov -0xc(%ebp),%eax 80107a93: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107a9a: 83 e2 ef and $0xffffffef,%edx 80107a9d: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107aa3: 8b 45 f4 mov -0xc(%ebp),%eax 80107aa6: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107aad: 83 e2 df and $0xffffffdf,%edx 80107ab0: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107ab6: 8b 45 f4 mov -0xc(%ebp),%eax 80107ab9: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107ac0: 83 ca 40 or $0x40,%edx 80107ac3: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107ac9: 8b 45 f4 mov -0xc(%ebp),%eax 80107acc: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107ad3: 83 ca 80 or $0xffffff80,%edx 80107ad6: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107adc: 8b 45 f4 mov -0xc(%ebp),%eax 80107adf: c6 80 9f 00 00 00 00 movb $0x0,0x9f(%eax) // Map cpu, and curproc c->gdt[SEG_KCPU] = SEG(STA_W, &c->cpu, 8, 0); 80107ae6: 8b 45 f4 mov -0xc(%ebp),%eax 80107ae9: 05 b4 00 00 00 add $0xb4,%eax 80107aee: 89 c3 mov %eax,%ebx 80107af0: 8b 45 f4 mov -0xc(%ebp),%eax 80107af3: 05 b4 00 00 00 add $0xb4,%eax 80107af8: c1 e8 10 shr $0x10,%eax 80107afb: 89 c2 mov %eax,%edx 80107afd: 8b 45 f4 mov -0xc(%ebp),%eax 80107b00: 05 b4 00 00 00 add $0xb4,%eax 80107b05: c1 e8 18 shr $0x18,%eax 80107b08: 89 c1 mov %eax,%ecx 80107b0a: 8b 45 f4 mov -0xc(%ebp),%eax 80107b0d: 66 c7 80 88 00 00 00 movw $0x0,0x88(%eax) 80107b14: 00 00 80107b16: 8b 45 f4 mov -0xc(%ebp),%eax 80107b19: 66 89 98 8a 00 00 00 mov %bx,0x8a(%eax) 80107b20: 8b 45 f4 mov -0xc(%ebp),%eax 80107b23: 88 90 8c 00 00 00 mov %dl,0x8c(%eax) 80107b29: 8b 45 f4 mov -0xc(%ebp),%eax 80107b2c: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107b33: 83 e2 f0 and $0xfffffff0,%edx 80107b36: 83 ca 02 or $0x2,%edx 80107b39: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107b3f: 8b 45 f4 mov -0xc(%ebp),%eax 80107b42: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107b49: 83 ca 10 or $0x10,%edx 80107b4c: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107b52: 8b 45 f4 mov -0xc(%ebp),%eax 80107b55: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107b5c: 83 e2 9f and $0xffffff9f,%edx 80107b5f: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107b65: 8b 45 f4 mov -0xc(%ebp),%eax 80107b68: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107b6f: 83 ca 80 or $0xffffff80,%edx 80107b72: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107b78: 8b 45 f4 mov -0xc(%ebp),%eax 80107b7b: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80107b82: 83 e2 f0 and $0xfffffff0,%edx 80107b85: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80107b8b: 8b 45 f4 mov -0xc(%ebp),%eax 80107b8e: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80107b95: 83 e2 ef and $0xffffffef,%edx 80107b98: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80107b9e: 8b 45 f4 mov -0xc(%ebp),%eax 80107ba1: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80107ba8: 83 e2 df and $0xffffffdf,%edx 80107bab: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80107bb1: 8b 45 f4 mov -0xc(%ebp),%eax 80107bb4: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80107bbb: 83 ca 40 or $0x40,%edx 80107bbe: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80107bc4: 8b 45 f4 mov -0xc(%ebp),%eax 80107bc7: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80107bce: 83 ca 80 or $0xffffff80,%edx 80107bd1: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80107bd7: 8b 45 f4 mov -0xc(%ebp),%eax 80107bda: 88 88 8f 00 00 00 mov %cl,0x8f(%eax) lgdt(c->gdt, sizeof(c->gdt)); 80107be0: 8b 45 f4 mov -0xc(%ebp),%eax 80107be3: 83 c0 70 add $0x70,%eax 80107be6: 83 ec 08 sub $0x8,%esp 80107be9: 6a 38 push $0x38 80107beb: 50 push %eax 80107bec: e8 38 fb ff ff call 80107729 <lgdt> 80107bf1: 83 c4 10 add $0x10,%esp loadgs(SEG_KCPU << 3); 80107bf4: 83 ec 0c sub $0xc,%esp 80107bf7: 6a 18 push $0x18 80107bf9: e8 6c fb ff ff call 8010776a <loadgs> 80107bfe: 83 c4 10 add $0x10,%esp // Initialize cpu-local storage. cpu = c; 80107c01: 8b 45 f4 mov -0xc(%ebp),%eax 80107c04: 65 a3 00 00 00 00 mov %eax,%gs:0x0 proc = 0; 80107c0a: 65 c7 05 04 00 00 00 movl $0x0,%gs:0x4 80107c11: 00 00 00 00 } 80107c15: 90 nop 80107c16: 8b 5d fc mov -0x4(%ebp),%ebx 80107c19: c9 leave 80107c1a: c3 ret 80107c1b <walkpgdir>: // Return the address of the PTE in page table pgdir // that corresponds to virtual address va. If alloc!=0, // create any required page table pages. static pte_t * walkpgdir(pde_t *pgdir, const void *va, int alloc) { 80107c1b: 55 push %ebp 80107c1c: 89 e5 mov %esp,%ebp 80107c1e: 83 ec 18 sub $0x18,%esp pde_t *pde; pte_t *pgtab; pde = &pgdir[PDX(va)]; 80107c21: 8b 45 0c mov 0xc(%ebp),%eax 80107c24: c1 e8 16 shr $0x16,%eax 80107c27: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80107c2e: 8b 45 08 mov 0x8(%ebp),%eax 80107c31: 01 d0 add %edx,%eax 80107c33: 89 45 f0 mov %eax,-0x10(%ebp) if(*pde & PTE_P){ 80107c36: 8b 45 f0 mov -0x10(%ebp),%eax 80107c39: 8b 00 mov (%eax),%eax 80107c3b: 83 e0 01 and $0x1,%eax 80107c3e: 85 c0 test %eax,%eax 80107c40: 74 18 je 80107c5a <walkpgdir+0x3f> pgtab = (pte_t*)p2v(PTE_ADDR(*pde)); 80107c42: 8b 45 f0 mov -0x10(%ebp),%eax 80107c45: 8b 00 mov (%eax),%eax 80107c47: 25 00 f0 ff ff and $0xfffff000,%eax 80107c4c: 50 push %eax 80107c4d: e8 47 fb ff ff call 80107799 <p2v> 80107c52: 83 c4 04 add $0x4,%esp 80107c55: 89 45 f4 mov %eax,-0xc(%ebp) 80107c58: eb 48 jmp 80107ca2 <walkpgdir+0x87> } else { if(!alloc || (pgtab = (pte_t*)kalloc()) == 0) 80107c5a: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80107c5e: 74 0e je 80107c6e <walkpgdir+0x53> 80107c60: e8 05 b0 ff ff call 80102c6a <kalloc> 80107c65: 89 45 f4 mov %eax,-0xc(%ebp) 80107c68: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80107c6c: 75 07 jne 80107c75 <walkpgdir+0x5a> return 0; 80107c6e: b8 00 00 00 00 mov $0x0,%eax 80107c73: eb 44 jmp 80107cb9 <walkpgdir+0x9e> // Make sure all those PTE_P bits are zero. memset(pgtab, 0, PGSIZE); 80107c75: 83 ec 04 sub $0x4,%esp 80107c78: 68 00 10 00 00 push $0x1000 80107c7d: 6a 00 push $0x0 80107c7f: ff 75 f4 pushl -0xc(%ebp) 80107c82: e8 20 d6 ff ff call 801052a7 <memset> 80107c87: 83 c4 10 add $0x10,%esp // The permissions here are overly generous, but they can // be further restricted by the permissions in the page table // entries, if necessary. *pde = v2p(pgtab) | PTE_P | PTE_W | PTE_U; 80107c8a: 83 ec 0c sub $0xc,%esp 80107c8d: ff 75 f4 pushl -0xc(%ebp) 80107c90: e8 f7 fa ff ff call 8010778c <v2p> 80107c95: 83 c4 10 add $0x10,%esp 80107c98: 83 c8 07 or $0x7,%eax 80107c9b: 89 c2 mov %eax,%edx 80107c9d: 8b 45 f0 mov -0x10(%ebp),%eax 80107ca0: 89 10 mov %edx,(%eax) } return &pgtab[PTX(va)]; 80107ca2: 8b 45 0c mov 0xc(%ebp),%eax 80107ca5: c1 e8 0c shr $0xc,%eax 80107ca8: 25 ff 03 00 00 and $0x3ff,%eax 80107cad: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80107cb4: 8b 45 f4 mov -0xc(%ebp),%eax 80107cb7: 01 d0 add %edx,%eax } 80107cb9: c9 leave 80107cba: c3 ret 80107cbb <mappages>: // Create PTEs for virtual addresses starting at va that refer to // physical addresses starting at pa. va and size might not // be page-aligned. static int mappages(pde_t *pgdir, void *va, uint size, uint pa, int perm) { 80107cbb: 55 push %ebp 80107cbc: 89 e5 mov %esp,%ebp 80107cbe: 83 ec 18 sub $0x18,%esp char *a, *last; pte_t *pte; a = (char*)PGROUNDDOWN((uint)va); 80107cc1: 8b 45 0c mov 0xc(%ebp),%eax 80107cc4: 25 00 f0 ff ff and $0xfffff000,%eax 80107cc9: 89 45 f4 mov %eax,-0xc(%ebp) last = (char*)PGROUNDDOWN(((uint)va) + size - 1); 80107ccc: 8b 55 0c mov 0xc(%ebp),%edx 80107ccf: 8b 45 10 mov 0x10(%ebp),%eax 80107cd2: 01 d0 add %edx,%eax 80107cd4: 83 e8 01 sub $0x1,%eax 80107cd7: 25 00 f0 ff ff and $0xfffff000,%eax 80107cdc: 89 45 f0 mov %eax,-0x10(%ebp) for(;;){ if((pte = walkpgdir(pgdir, a, 1)) == 0) 80107cdf: 83 ec 04 sub $0x4,%esp 80107ce2: 6a 01 push $0x1 80107ce4: ff 75 f4 pushl -0xc(%ebp) 80107ce7: ff 75 08 pushl 0x8(%ebp) 80107cea: e8 2c ff ff ff call 80107c1b <walkpgdir> 80107cef: 83 c4 10 add $0x10,%esp 80107cf2: 89 45 ec mov %eax,-0x14(%ebp) 80107cf5: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80107cf9: 75 07 jne 80107d02 <mappages+0x47> return -1; 80107cfb: b8 ff ff ff ff mov $0xffffffff,%eax 80107d00: eb 47 jmp 80107d49 <mappages+0x8e> if(*pte & PTE_P) 80107d02: 8b 45 ec mov -0x14(%ebp),%eax 80107d05: 8b 00 mov (%eax),%eax 80107d07: 83 e0 01 and $0x1,%eax 80107d0a: 85 c0 test %eax,%eax 80107d0c: 74 0d je 80107d1b <mappages+0x60> panic("remap"); 80107d0e: 83 ec 0c sub $0xc,%esp 80107d11: 68 98 8b 10 80 push $0x80108b98 80107d16: e8 4c 88 ff ff call 80100567 <panic> *pte = pa | perm | PTE_P; 80107d1b: 8b 45 18 mov 0x18(%ebp),%eax 80107d1e: 0b 45 14 or 0x14(%ebp),%eax 80107d21: 83 c8 01 or $0x1,%eax 80107d24: 89 c2 mov %eax,%edx 80107d26: 8b 45 ec mov -0x14(%ebp),%eax 80107d29: 89 10 mov %edx,(%eax) if(a == last) 80107d2b: 8b 45 f4 mov -0xc(%ebp),%eax 80107d2e: 3b 45 f0 cmp -0x10(%ebp),%eax 80107d31: 74 10 je 80107d43 <mappages+0x88> break; a += PGSIZE; 80107d33: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) pa += PGSIZE; 80107d3a: 81 45 14 00 10 00 00 addl $0x1000,0x14(%ebp) if((pte = walkpgdir(pgdir, a, 1)) == 0) 80107d41: eb 9c jmp 80107cdf <mappages+0x24> break; 80107d43: 90 nop } return 0; 80107d44: b8 00 00 00 00 mov $0x0,%eax } 80107d49: c9 leave 80107d4a: c3 ret 80107d4b <setupkvm>: }; // Set up kernel part of a page table. pde_t* setupkvm(void) { 80107d4b: 55 push %ebp 80107d4c: 89 e5 mov %esp,%ebp 80107d4e: 53 push %ebx 80107d4f: 83 ec 14 sub $0x14,%esp pde_t *pgdir; struct kmap *k; if((pgdir = (pde_t*)kalloc()) == 0) 80107d52: e8 13 af ff ff call 80102c6a <kalloc> 80107d57: 89 45 f0 mov %eax,-0x10(%ebp) 80107d5a: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80107d5e: 75 0a jne 80107d6a <setupkvm+0x1f> return 0; 80107d60: b8 00 00 00 00 mov $0x0,%eax 80107d65: e9 8e 00 00 00 jmp 80107df8 <setupkvm+0xad> memset(pgdir, 0, PGSIZE); 80107d6a: 83 ec 04 sub $0x4,%esp 80107d6d: 68 00 10 00 00 push $0x1000 80107d72: 6a 00 push $0x0 80107d74: ff 75 f0 pushl -0x10(%ebp) 80107d77: e8 2b d5 ff ff call 801052a7 <memset> 80107d7c: 83 c4 10 add $0x10,%esp if (p2v(PHYSTOP) > (void*)DEVSPACE) 80107d7f: 83 ec 0c sub $0xc,%esp 80107d82: 68 00 00 00 0e push $0xe000000 80107d87: e8 0d fa ff ff call 80107799 <p2v> 80107d8c: 83 c4 10 add $0x10,%esp 80107d8f: 3d 00 00 00 fe cmp $0xfe000000,%eax 80107d94: 76 0d jbe 80107da3 <setupkvm+0x58> panic("PHYSTOP too high"); 80107d96: 83 ec 0c sub $0xc,%esp 80107d99: 68 9e 8b 10 80 push $0x80108b9e 80107d9e: e8 c4 87 ff ff call 80100567 <panic> for(k = kmap; k < &kmap[NELEM(kmap)]; k++) 80107da3: c7 45 f4 a0 b4 10 80 movl $0x8010b4a0,-0xc(%ebp) 80107daa: eb 40 jmp 80107dec <setupkvm+0xa1> if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, 80107dac: 8b 45 f4 mov -0xc(%ebp),%eax 80107daf: 8b 48 0c mov 0xc(%eax),%ecx (uint)k->phys_start, k->perm) < 0) 80107db2: 8b 45 f4 mov -0xc(%ebp),%eax 80107db5: 8b 50 04 mov 0x4(%eax),%edx if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, 80107db8: 8b 45 f4 mov -0xc(%ebp),%eax 80107dbb: 8b 58 08 mov 0x8(%eax),%ebx 80107dbe: 8b 45 f4 mov -0xc(%ebp),%eax 80107dc1: 8b 40 04 mov 0x4(%eax),%eax 80107dc4: 29 c3 sub %eax,%ebx 80107dc6: 8b 45 f4 mov -0xc(%ebp),%eax 80107dc9: 8b 00 mov (%eax),%eax 80107dcb: 83 ec 0c sub $0xc,%esp 80107dce: 51 push %ecx 80107dcf: 52 push %edx 80107dd0: 53 push %ebx 80107dd1: 50 push %eax 80107dd2: ff 75 f0 pushl -0x10(%ebp) 80107dd5: e8 e1 fe ff ff call 80107cbb <mappages> 80107dda: 83 c4 20 add $0x20,%esp 80107ddd: 85 c0 test %eax,%eax 80107ddf: 79 07 jns 80107de8 <setupkvm+0x9d> return 0; 80107de1: b8 00 00 00 00 mov $0x0,%eax 80107de6: eb 10 jmp 80107df8 <setupkvm+0xad> for(k = kmap; k < &kmap[NELEM(kmap)]; k++) 80107de8: 83 45 f4 10 addl $0x10,-0xc(%ebp) 80107dec: 81 7d f4 e0 b4 10 80 cmpl $0x8010b4e0,-0xc(%ebp) 80107df3: 72 b7 jb 80107dac <setupkvm+0x61> return pgdir; 80107df5: 8b 45 f0 mov -0x10(%ebp),%eax } 80107df8: 8b 5d fc mov -0x4(%ebp),%ebx 80107dfb: c9 leave 80107dfc: c3 ret 80107dfd <kvmalloc>: // Allocate one page table for the machine for the kernel address // space for scheduler processes. void kvmalloc(void) { 80107dfd: 55 push %ebp 80107dfe: 89 e5 mov %esp,%ebp 80107e00: 83 ec 08 sub $0x8,%esp kpgdir = setupkvm(); 80107e03: e8 43 ff ff ff call 80107d4b <setupkvm> 80107e08: a3 38 51 11 80 mov %eax,0x80115138 switchkvm(); 80107e0d: e8 03 00 00 00 call 80107e15 <switchkvm> } 80107e12: 90 nop 80107e13: c9 leave 80107e14: c3 ret 80107e15 <switchkvm>: // Switch h/w page table register to the kernel-only page table, // for when no process is running. void switchkvm(void) { 80107e15: 55 push %ebp 80107e16: 89 e5 mov %esp,%ebp lcr3(v2p(kpgdir)); // switch to the kernel page table 80107e18: a1 38 51 11 80 mov 0x80115138,%eax 80107e1d: 50 push %eax 80107e1e: e8 69 f9 ff ff call 8010778c <v2p> 80107e23: 83 c4 04 add $0x4,%esp 80107e26: 50 push %eax 80107e27: e8 54 f9 ff ff call 80107780 <lcr3> 80107e2c: 83 c4 04 add $0x4,%esp } 80107e2f: 90 nop 80107e30: c9 leave 80107e31: c3 ret 80107e32 <switchuvm>: // Switch TSS and h/w page table to correspond to process p. void switchuvm(struct proc *p) { 80107e32: 55 push %ebp 80107e33: 89 e5 mov %esp,%ebp 80107e35: 56 push %esi 80107e36: 53 push %ebx pushcli(); 80107e37: e8 65 d3 ff ff call 801051a1 <pushcli> cpu->gdt[SEG_TSS] = SEG16(STS_T32A, &cpu->ts, sizeof(cpu->ts)-1, 0); 80107e3c: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80107e42: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80107e49: 83 c2 08 add $0x8,%edx 80107e4c: 89 d6 mov %edx,%esi 80107e4e: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80107e55: 83 c2 08 add $0x8,%edx 80107e58: c1 ea 10 shr $0x10,%edx 80107e5b: 89 d3 mov %edx,%ebx 80107e5d: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80107e64: 83 c2 08 add $0x8,%edx 80107e67: c1 ea 18 shr $0x18,%edx 80107e6a: 89 d1 mov %edx,%ecx 80107e6c: 66 c7 80 a0 00 00 00 movw $0x67,0xa0(%eax) 80107e73: 67 00 80107e75: 66 89 b0 a2 00 00 00 mov %si,0xa2(%eax) 80107e7c: 88 98 a4 00 00 00 mov %bl,0xa4(%eax) 80107e82: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 80107e89: 83 e2 f0 and $0xfffffff0,%edx 80107e8c: 83 ca 09 or $0x9,%edx 80107e8f: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 80107e95: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 80107e9c: 83 ca 10 or $0x10,%edx 80107e9f: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 80107ea5: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 80107eac: 83 e2 9f and $0xffffff9f,%edx 80107eaf: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 80107eb5: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 80107ebc: 83 ca 80 or $0xffffff80,%edx 80107ebf: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 80107ec5: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 80107ecc: 83 e2 f0 and $0xfffffff0,%edx 80107ecf: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 80107ed5: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 80107edc: 83 e2 ef and $0xffffffef,%edx 80107edf: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 80107ee5: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 80107eec: 83 e2 df and $0xffffffdf,%edx 80107eef: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 80107ef5: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 80107efc: 83 ca 40 or $0x40,%edx 80107eff: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 80107f05: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 80107f0c: 83 e2 7f and $0x7f,%edx 80107f0f: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 80107f15: 88 88 a7 00 00 00 mov %cl,0xa7(%eax) cpu->gdt[SEG_TSS].s = 0; 80107f1b: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80107f21: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 80107f28: 83 e2 ef and $0xffffffef,%edx 80107f2b: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) cpu->ts.ss0 = SEG_KDATA << 3; 80107f31: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80107f37: 66 c7 40 10 10 00 movw $0x10,0x10(%eax) cpu->ts.esp0 = (uint)proc->kstack + KSTACKSIZE; 80107f3d: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80107f43: 8b 40 08 mov 0x8(%eax),%eax 80107f46: 89 c2 mov %eax,%edx 80107f48: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80107f4e: 81 c2 00 10 00 00 add $0x1000,%edx 80107f54: 89 50 0c mov %edx,0xc(%eax) ltr(SEG_TSS << 3); 80107f57: 83 ec 0c sub $0xc,%esp 80107f5a: 6a 30 push $0x30 80107f5c: e8 f2 f7 ff ff call 80107753 <ltr> 80107f61: 83 c4 10 add $0x10,%esp if(p->pgdir == 0) 80107f64: 8b 45 08 mov 0x8(%ebp),%eax 80107f67: 8b 40 04 mov 0x4(%eax),%eax 80107f6a: 85 c0 test %eax,%eax 80107f6c: 75 0d jne 80107f7b <switchuvm+0x149> panic("switchuvm: no pgdir"); 80107f6e: 83 ec 0c sub $0xc,%esp 80107f71: 68 af 8b 10 80 push $0x80108baf 80107f76: e8 ec 85 ff ff call 80100567 <panic> lcr3(v2p(p->pgdir)); // switch to new address space 80107f7b: 8b 45 08 mov 0x8(%ebp),%eax 80107f7e: 8b 40 04 mov 0x4(%eax),%eax 80107f81: 83 ec 0c sub $0xc,%esp 80107f84: 50 push %eax 80107f85: e8 02 f8 ff ff call 8010778c <v2p> 80107f8a: 83 c4 10 add $0x10,%esp 80107f8d: 83 ec 0c sub $0xc,%esp 80107f90: 50 push %eax 80107f91: e8 ea f7 ff ff call 80107780 <lcr3> 80107f96: 83 c4 10 add $0x10,%esp popcli(); 80107f99: e8 48 d2 ff ff call 801051e6 <popcli> } 80107f9e: 90 nop 80107f9f: 8d 65 f8 lea -0x8(%ebp),%esp 80107fa2: 5b pop %ebx 80107fa3: 5e pop %esi 80107fa4: 5d pop %ebp 80107fa5: c3 ret 80107fa6 <inituvm>: // Load the initcode into address 0 of pgdir. // sz must be less than a page. void inituvm(pde_t *pgdir, char *init, uint sz) { 80107fa6: 55 push %ebp 80107fa7: 89 e5 mov %esp,%ebp 80107fa9: 83 ec 18 sub $0x18,%esp char *mem; if(sz >= PGSIZE) 80107fac: 81 7d 10 ff 0f 00 00 cmpl $0xfff,0x10(%ebp) 80107fb3: 76 0d jbe 80107fc2 <inituvm+0x1c> panic("inituvm: more than a page"); 80107fb5: 83 ec 0c sub $0xc,%esp 80107fb8: 68 c3 8b 10 80 push $0x80108bc3 80107fbd: e8 a5 85 ff ff call 80100567 <panic> mem = kalloc(); 80107fc2: e8 a3 ac ff ff call 80102c6a <kalloc> 80107fc7: 89 45 f4 mov %eax,-0xc(%ebp) memset(mem, 0, PGSIZE); 80107fca: 83 ec 04 sub $0x4,%esp 80107fcd: 68 00 10 00 00 push $0x1000 80107fd2: 6a 00 push $0x0 80107fd4: ff 75 f4 pushl -0xc(%ebp) 80107fd7: e8 cb d2 ff ff call 801052a7 <memset> 80107fdc: 83 c4 10 add $0x10,%esp mappages(pgdir, 0, PGSIZE, v2p(mem), PTE_W|PTE_U); 80107fdf: 83 ec 0c sub $0xc,%esp 80107fe2: ff 75 f4 pushl -0xc(%ebp) 80107fe5: e8 a2 f7 ff ff call 8010778c <v2p> 80107fea: 83 c4 10 add $0x10,%esp 80107fed: 83 ec 0c sub $0xc,%esp 80107ff0: 6a 06 push $0x6 80107ff2: 50 push %eax 80107ff3: 68 00 10 00 00 push $0x1000 80107ff8: 6a 00 push $0x0 80107ffa: ff 75 08 pushl 0x8(%ebp) 80107ffd: e8 b9 fc ff ff call 80107cbb <mappages> 80108002: 83 c4 20 add $0x20,%esp memmove(mem, init, sz); 80108005: 83 ec 04 sub $0x4,%esp 80108008: ff 75 10 pushl 0x10(%ebp) 8010800b: ff 75 0c pushl 0xc(%ebp) 8010800e: ff 75 f4 pushl -0xc(%ebp) 80108011: e8 50 d3 ff ff call 80105366 <memmove> 80108016: 83 c4 10 add $0x10,%esp } 80108019: 90 nop 8010801a: c9 leave 8010801b: c3 ret 8010801c <loaduvm>: // Load a program segment into pgdir. addr must be page-aligned // and the pages from addr to addr+sz must already be mapped. int loaduvm(pde_t *pgdir, char *addr, struct inode *ip, uint offset, uint sz) { 8010801c: 55 push %ebp 8010801d: 89 e5 mov %esp,%ebp 8010801f: 53 push %ebx 80108020: 83 ec 14 sub $0x14,%esp uint i, pa, n; pte_t *pte; if((uint) addr % PGSIZE != 0) 80108023: 8b 45 0c mov 0xc(%ebp),%eax 80108026: 25 ff 0f 00 00 and $0xfff,%eax 8010802b: 85 c0 test %eax,%eax 8010802d: 74 0d je 8010803c <loaduvm+0x20> panic("loaduvm: addr must be page aligned"); 8010802f: 83 ec 0c sub $0xc,%esp 80108032: 68 e0 8b 10 80 push $0x80108be0 80108037: e8 2b 85 ff ff call 80100567 <panic> for(i = 0; i < sz; i += PGSIZE){ 8010803c: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80108043: e9 95 00 00 00 jmp 801080dd <loaduvm+0xc1> if((pte = walkpgdir(pgdir, addr+i, 0)) == 0) 80108048: 8b 55 0c mov 0xc(%ebp),%edx 8010804b: 8b 45 f4 mov -0xc(%ebp),%eax 8010804e: 01 d0 add %edx,%eax 80108050: 83 ec 04 sub $0x4,%esp 80108053: 6a 00 push $0x0 80108055: 50 push %eax 80108056: ff 75 08 pushl 0x8(%ebp) 80108059: e8 bd fb ff ff call 80107c1b <walkpgdir> 8010805e: 83 c4 10 add $0x10,%esp 80108061: 89 45 ec mov %eax,-0x14(%ebp) 80108064: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80108068: 75 0d jne 80108077 <loaduvm+0x5b> panic("loaduvm: address should exist"); 8010806a: 83 ec 0c sub $0xc,%esp 8010806d: 68 03 8c 10 80 push $0x80108c03 80108072: e8 f0 84 ff ff call 80100567 <panic> pa = PTE_ADDR(*pte); 80108077: 8b 45 ec mov -0x14(%ebp),%eax 8010807a: 8b 00 mov (%eax),%eax 8010807c: 25 00 f0 ff ff and $0xfffff000,%eax 80108081: 89 45 e8 mov %eax,-0x18(%ebp) if(sz - i < PGSIZE) 80108084: 8b 45 18 mov 0x18(%ebp),%eax 80108087: 2b 45 f4 sub -0xc(%ebp),%eax 8010808a: 3d ff 0f 00 00 cmp $0xfff,%eax 8010808f: 77 0b ja 8010809c <loaduvm+0x80> n = sz - i; 80108091: 8b 45 18 mov 0x18(%ebp),%eax 80108094: 2b 45 f4 sub -0xc(%ebp),%eax 80108097: 89 45 f0 mov %eax,-0x10(%ebp) 8010809a: eb 07 jmp 801080a3 <loaduvm+0x87> else n = PGSIZE; 8010809c: c7 45 f0 00 10 00 00 movl $0x1000,-0x10(%ebp) if(readi(ip, p2v(pa), offset+i, n) != n) 801080a3: 8b 55 14 mov 0x14(%ebp),%edx 801080a6: 8b 45 f4 mov -0xc(%ebp),%eax 801080a9: 8d 1c 02 lea (%edx,%eax,1),%ebx 801080ac: 83 ec 0c sub $0xc,%esp 801080af: ff 75 e8 pushl -0x18(%ebp) 801080b2: e8 e2 f6 ff ff call 80107799 <p2v> 801080b7: 83 c4 10 add $0x10,%esp 801080ba: ff 75 f0 pushl -0x10(%ebp) 801080bd: 53 push %ebx 801080be: 50 push %eax 801080bf: ff 75 10 pushl 0x10(%ebp) 801080c2: e8 17 9e ff ff call 80101ede <readi> 801080c7: 83 c4 10 add $0x10,%esp 801080ca: 39 45 f0 cmp %eax,-0x10(%ebp) 801080cd: 74 07 je 801080d6 <loaduvm+0xba> return -1; 801080cf: b8 ff ff ff ff mov $0xffffffff,%eax 801080d4: eb 18 jmp 801080ee <loaduvm+0xd2> for(i = 0; i < sz; i += PGSIZE){ 801080d6: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 801080dd: 8b 45 f4 mov -0xc(%ebp),%eax 801080e0: 3b 45 18 cmp 0x18(%ebp),%eax 801080e3: 0f 82 5f ff ff ff jb 80108048 <loaduvm+0x2c> } return 0; 801080e9: b8 00 00 00 00 mov $0x0,%eax } 801080ee: 8b 5d fc mov -0x4(%ebp),%ebx 801080f1: c9 leave 801080f2: c3 ret 801080f3 <allocuvm>: // Allocate page tables and physical memory to grow process from oldsz to // newsz, which need not be page aligned. Returns new size or 0 on error. int allocuvm(pde_t *pgdir, uint oldsz, uint newsz) { 801080f3: 55 push %ebp 801080f4: 89 e5 mov %esp,%ebp 801080f6: 83 ec 18 sub $0x18,%esp char *mem; uint a; if(newsz >= KERNBASE) 801080f9: 8b 45 10 mov 0x10(%ebp),%eax 801080fc: 85 c0 test %eax,%eax 801080fe: 79 0a jns 8010810a <allocuvm+0x17> return 0; 80108100: b8 00 00 00 00 mov $0x0,%eax 80108105: e9 b0 00 00 00 jmp 801081ba <allocuvm+0xc7> if(newsz < oldsz) 8010810a: 8b 45 10 mov 0x10(%ebp),%eax 8010810d: 3b 45 0c cmp 0xc(%ebp),%eax 80108110: 73 08 jae 8010811a <allocuvm+0x27> return oldsz; 80108112: 8b 45 0c mov 0xc(%ebp),%eax 80108115: e9 a0 00 00 00 jmp 801081ba <allocuvm+0xc7> a = PGROUNDUP(oldsz); 8010811a: 8b 45 0c mov 0xc(%ebp),%eax 8010811d: 05 ff 0f 00 00 add $0xfff,%eax 80108122: 25 00 f0 ff ff and $0xfffff000,%eax 80108127: 89 45 f4 mov %eax,-0xc(%ebp) for(; a < newsz; a += PGSIZE){ 8010812a: eb 7f jmp 801081ab <allocuvm+0xb8> mem = kalloc(); 8010812c: e8 39 ab ff ff call 80102c6a <kalloc> 80108131: 89 45 f0 mov %eax,-0x10(%ebp) if(mem == 0){ 80108134: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80108138: 75 2b jne 80108165 <allocuvm+0x72> cprintf("allocuvm out of memory\n"); 8010813a: 83 ec 0c sub $0xc,%esp 8010813d: 68 21 8c 10 80 push $0x80108c21 80108142: e8 7d 82 ff ff call 801003c4 <cprintf> 80108147: 83 c4 10 add $0x10,%esp deallocuvm(pgdir, newsz, oldsz); 8010814a: 83 ec 04 sub $0x4,%esp 8010814d: ff 75 0c pushl 0xc(%ebp) 80108150: ff 75 10 pushl 0x10(%ebp) 80108153: ff 75 08 pushl 0x8(%ebp) 80108156: e8 61 00 00 00 call 801081bc <deallocuvm> 8010815b: 83 c4 10 add $0x10,%esp return 0; 8010815e: b8 00 00 00 00 mov $0x0,%eax 80108163: eb 55 jmp 801081ba <allocuvm+0xc7> } memset(mem, 0, PGSIZE); 80108165: 83 ec 04 sub $0x4,%esp 80108168: 68 00 10 00 00 push $0x1000 8010816d: 6a 00 push $0x0 8010816f: ff 75 f0 pushl -0x10(%ebp) 80108172: e8 30 d1 ff ff call 801052a7 <memset> 80108177: 83 c4 10 add $0x10,%esp mappages(pgdir, (char*)a, PGSIZE, v2p(mem), PTE_W|PTE_U); 8010817a: 83 ec 0c sub $0xc,%esp 8010817d: ff 75 f0 pushl -0x10(%ebp) 80108180: e8 07 f6 ff ff call 8010778c <v2p> 80108185: 83 c4 10 add $0x10,%esp 80108188: 89 c2 mov %eax,%edx 8010818a: 8b 45 f4 mov -0xc(%ebp),%eax 8010818d: 83 ec 0c sub $0xc,%esp 80108190: 6a 06 push $0x6 80108192: 52 push %edx 80108193: 68 00 10 00 00 push $0x1000 80108198: 50 push %eax 80108199: ff 75 08 pushl 0x8(%ebp) 8010819c: e8 1a fb ff ff call 80107cbb <mappages> 801081a1: 83 c4 20 add $0x20,%esp for(; a < newsz; a += PGSIZE){ 801081a4: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 801081ab: 8b 45 f4 mov -0xc(%ebp),%eax 801081ae: 3b 45 10 cmp 0x10(%ebp),%eax 801081b1: 0f 82 75 ff ff ff jb 8010812c <allocuvm+0x39> } return newsz; 801081b7: 8b 45 10 mov 0x10(%ebp),%eax } 801081ba: c9 leave 801081bb: c3 ret 801081bc <deallocuvm>: // newsz. oldsz and newsz need not be page-aligned, nor does newsz // need to be less than oldsz. oldsz can be larger than the actual // process size. Returns the new process size. int deallocuvm(pde_t *pgdir, uint oldsz, uint newsz) { 801081bc: 55 push %ebp 801081bd: 89 e5 mov %esp,%ebp 801081bf: 83 ec 18 sub $0x18,%esp pte_t *pte; uint a, pa; if(newsz >= oldsz) 801081c2: 8b 45 10 mov 0x10(%ebp),%eax 801081c5: 3b 45 0c cmp 0xc(%ebp),%eax 801081c8: 72 08 jb 801081d2 <deallocuvm+0x16> return oldsz; 801081ca: 8b 45 0c mov 0xc(%ebp),%eax 801081cd: e9 a5 00 00 00 jmp 80108277 <deallocuvm+0xbb> a = PGROUNDUP(newsz); 801081d2: 8b 45 10 mov 0x10(%ebp),%eax 801081d5: 05 ff 0f 00 00 add $0xfff,%eax 801081da: 25 00 f0 ff ff and $0xfffff000,%eax 801081df: 89 45 f4 mov %eax,-0xc(%ebp) for(; a < oldsz; a += PGSIZE){ 801081e2: e9 81 00 00 00 jmp 80108268 <deallocuvm+0xac> pte = walkpgdir(pgdir, (char*)a, 0); 801081e7: 8b 45 f4 mov -0xc(%ebp),%eax 801081ea: 83 ec 04 sub $0x4,%esp 801081ed: 6a 00 push $0x0 801081ef: 50 push %eax 801081f0: ff 75 08 pushl 0x8(%ebp) 801081f3: e8 23 fa ff ff call 80107c1b <walkpgdir> 801081f8: 83 c4 10 add $0x10,%esp 801081fb: 89 45 f0 mov %eax,-0x10(%ebp) if(!pte) 801081fe: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80108202: 75 09 jne 8010820d <deallocuvm+0x51> a += (NPTENTRIES - 1) * PGSIZE; 80108204: 81 45 f4 00 f0 3f 00 addl $0x3ff000,-0xc(%ebp) 8010820b: eb 54 jmp 80108261 <deallocuvm+0xa5> else if((*pte & PTE_P) != 0){ 8010820d: 8b 45 f0 mov -0x10(%ebp),%eax 80108210: 8b 00 mov (%eax),%eax 80108212: 83 e0 01 and $0x1,%eax 80108215: 85 c0 test %eax,%eax 80108217: 74 48 je 80108261 <deallocuvm+0xa5> pa = PTE_ADDR(*pte); 80108219: 8b 45 f0 mov -0x10(%ebp),%eax 8010821c: 8b 00 mov (%eax),%eax 8010821e: 25 00 f0 ff ff and $0xfffff000,%eax 80108223: 89 45 ec mov %eax,-0x14(%ebp) if(pa == 0) 80108226: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 8010822a: 75 0d jne 80108239 <deallocuvm+0x7d> panic("kfree"); 8010822c: 83 ec 0c sub $0xc,%esp 8010822f: 68 39 8c 10 80 push $0x80108c39 80108234: e8 2e 83 ff ff call 80100567 <panic> char *v = p2v(pa); 80108239: 83 ec 0c sub $0xc,%esp 8010823c: ff 75 ec pushl -0x14(%ebp) 8010823f: e8 55 f5 ff ff call 80107799 <p2v> 80108244: 83 c4 10 add $0x10,%esp 80108247: 89 45 e8 mov %eax,-0x18(%ebp) kfree(v); 8010824a: 83 ec 0c sub $0xc,%esp 8010824d: ff 75 e8 pushl -0x18(%ebp) 80108250: e8 78 a9 ff ff call 80102bcd <kfree> 80108255: 83 c4 10 add $0x10,%esp *pte = 0; 80108258: 8b 45 f0 mov -0x10(%ebp),%eax 8010825b: c7 00 00 00 00 00 movl $0x0,(%eax) for(; a < oldsz; a += PGSIZE){ 80108261: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 80108268: 8b 45 f4 mov -0xc(%ebp),%eax 8010826b: 3b 45 0c cmp 0xc(%ebp),%eax 8010826e: 0f 82 73 ff ff ff jb 801081e7 <deallocuvm+0x2b> } } return newsz; 80108274: 8b 45 10 mov 0x10(%ebp),%eax } 80108277: c9 leave 80108278: c3 ret 80108279 <freevm>: // Free a page table and all the physical memory pages // in the user part. void freevm(pde_t *pgdir) { 80108279: 55 push %ebp 8010827a: 89 e5 mov %esp,%ebp 8010827c: 83 ec 18 sub $0x18,%esp uint i; if(pgdir == 0) 8010827f: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80108283: 75 0d jne 80108292 <freevm+0x19> panic("freevm: no pgdir"); 80108285: 83 ec 0c sub $0xc,%esp 80108288: 68 3f 8c 10 80 push $0x80108c3f 8010828d: e8 d5 82 ff ff call 80100567 <panic> deallocuvm(pgdir, KERNBASE, 0); 80108292: 83 ec 04 sub $0x4,%esp 80108295: 6a 00 push $0x0 80108297: 68 00 00 00 80 push $0x80000000 8010829c: ff 75 08 pushl 0x8(%ebp) 8010829f: e8 18 ff ff ff call 801081bc <deallocuvm> 801082a4: 83 c4 10 add $0x10,%esp for(i = 0; i < NPDENTRIES; i++){ 801082a7: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801082ae: eb 4f jmp 801082ff <freevm+0x86> if(pgdir[i] & PTE_P){ 801082b0: 8b 45 f4 mov -0xc(%ebp),%eax 801082b3: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 801082ba: 8b 45 08 mov 0x8(%ebp),%eax 801082bd: 01 d0 add %edx,%eax 801082bf: 8b 00 mov (%eax),%eax 801082c1: 83 e0 01 and $0x1,%eax 801082c4: 85 c0 test %eax,%eax 801082c6: 74 33 je 801082fb <freevm+0x82> char * v = p2v(PTE_ADDR(pgdir[i])); 801082c8: 8b 45 f4 mov -0xc(%ebp),%eax 801082cb: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 801082d2: 8b 45 08 mov 0x8(%ebp),%eax 801082d5: 01 d0 add %edx,%eax 801082d7: 8b 00 mov (%eax),%eax 801082d9: 25 00 f0 ff ff and $0xfffff000,%eax 801082de: 83 ec 0c sub $0xc,%esp 801082e1: 50 push %eax 801082e2: e8 b2 f4 ff ff call 80107799 <p2v> 801082e7: 83 c4 10 add $0x10,%esp 801082ea: 89 45 f0 mov %eax,-0x10(%ebp) kfree(v); 801082ed: 83 ec 0c sub $0xc,%esp 801082f0: ff 75 f0 pushl -0x10(%ebp) 801082f3: e8 d5 a8 ff ff call 80102bcd <kfree> 801082f8: 83 c4 10 add $0x10,%esp for(i = 0; i < NPDENTRIES; i++){ 801082fb: 83 45 f4 01 addl $0x1,-0xc(%ebp) 801082ff: 81 7d f4 ff 03 00 00 cmpl $0x3ff,-0xc(%ebp) 80108306: 76 a8 jbe 801082b0 <freevm+0x37> } } kfree((char*)pgdir); 80108308: 83 ec 0c sub $0xc,%esp 8010830b: ff 75 08 pushl 0x8(%ebp) 8010830e: e8 ba a8 ff ff call 80102bcd <kfree> 80108313: 83 c4 10 add $0x10,%esp } 80108316: 90 nop 80108317: c9 leave 80108318: c3 ret 80108319 <clearpteu>: // Clear PTE_U on a page. Used to create an inaccessible // page beneath the user stack. void clearpteu(pde_t *pgdir, char *uva) { 80108319: 55 push %ebp 8010831a: 89 e5 mov %esp,%ebp 8010831c: 83 ec 18 sub $0x18,%esp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 8010831f: 83 ec 04 sub $0x4,%esp 80108322: 6a 00 push $0x0 80108324: ff 75 0c pushl 0xc(%ebp) 80108327: ff 75 08 pushl 0x8(%ebp) 8010832a: e8 ec f8 ff ff call 80107c1b <walkpgdir> 8010832f: 83 c4 10 add $0x10,%esp 80108332: 89 45 f4 mov %eax,-0xc(%ebp) if(pte == 0) 80108335: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80108339: 75 0d jne 80108348 <clearpteu+0x2f> panic("clearpteu"); 8010833b: 83 ec 0c sub $0xc,%esp 8010833e: 68 50 8c 10 80 push $0x80108c50 80108343: e8 1f 82 ff ff call 80100567 <panic> *pte &= ~PTE_U; 80108348: 8b 45 f4 mov -0xc(%ebp),%eax 8010834b: 8b 00 mov (%eax),%eax 8010834d: 83 e0 fb and $0xfffffffb,%eax 80108350: 89 c2 mov %eax,%edx 80108352: 8b 45 f4 mov -0xc(%ebp),%eax 80108355: 89 10 mov %edx,(%eax) } 80108357: 90 nop 80108358: c9 leave 80108359: c3 ret 8010835a <copyuvm>: // Given a parent process's page table, create a copy // of it for a child. pde_t* copyuvm(pde_t *pgdir, uint sz) { 8010835a: 55 push %ebp 8010835b: 89 e5 mov %esp,%ebp 8010835d: 53 push %ebx 8010835e: 83 ec 24 sub $0x24,%esp pde_t *d; pte_t *pte; uint pa, i, flags; char *mem; if((d = setupkvm()) == 0) 80108361: e8 e5 f9 ff ff call 80107d4b <setupkvm> 80108366: 89 45 f0 mov %eax,-0x10(%ebp) 80108369: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8010836d: 75 0a jne 80108379 <copyuvm+0x1f> return 0; 8010836f: b8 00 00 00 00 mov $0x0,%eax 80108374: e9 f8 00 00 00 jmp 80108471 <copyuvm+0x117> for(i = 0; i < sz; i += PGSIZE){ 80108379: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80108380: e9 c4 00 00 00 jmp 80108449 <copyuvm+0xef> if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0) 80108385: 8b 45 f4 mov -0xc(%ebp),%eax 80108388: 83 ec 04 sub $0x4,%esp 8010838b: 6a 00 push $0x0 8010838d: 50 push %eax 8010838e: ff 75 08 pushl 0x8(%ebp) 80108391: e8 85 f8 ff ff call 80107c1b <walkpgdir> 80108396: 83 c4 10 add $0x10,%esp 80108399: 89 45 ec mov %eax,-0x14(%ebp) 8010839c: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 801083a0: 75 0d jne 801083af <copyuvm+0x55> panic("copyuvm: pte should exist"); 801083a2: 83 ec 0c sub $0xc,%esp 801083a5: 68 5a 8c 10 80 push $0x80108c5a 801083aa: e8 b8 81 ff ff call 80100567 <panic> if(!(*pte & PTE_P)) 801083af: 8b 45 ec mov -0x14(%ebp),%eax 801083b2: 8b 00 mov (%eax),%eax 801083b4: 83 e0 01 and $0x1,%eax 801083b7: 85 c0 test %eax,%eax 801083b9: 75 0d jne 801083c8 <copyuvm+0x6e> panic("copyuvm: page not present"); 801083bb: 83 ec 0c sub $0xc,%esp 801083be: 68 74 8c 10 80 push $0x80108c74 801083c3: e8 9f 81 ff ff call 80100567 <panic> pa = PTE_ADDR(*pte); 801083c8: 8b 45 ec mov -0x14(%ebp),%eax 801083cb: 8b 00 mov (%eax),%eax 801083cd: 25 00 f0 ff ff and $0xfffff000,%eax 801083d2: 89 45 e8 mov %eax,-0x18(%ebp) flags = PTE_FLAGS(*pte); 801083d5: 8b 45 ec mov -0x14(%ebp),%eax 801083d8: 8b 00 mov (%eax),%eax 801083da: 25 ff 0f 00 00 and $0xfff,%eax 801083df: 89 45 e4 mov %eax,-0x1c(%ebp) if((mem = kalloc()) == 0) 801083e2: e8 83 a8 ff ff call 80102c6a <kalloc> 801083e7: 89 45 e0 mov %eax,-0x20(%ebp) 801083ea: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 801083ee: 74 6a je 8010845a <copyuvm+0x100> goto bad; memmove(mem, (char*)p2v(pa), PGSIZE); 801083f0: 83 ec 0c sub $0xc,%esp 801083f3: ff 75 e8 pushl -0x18(%ebp) 801083f6: e8 9e f3 ff ff call 80107799 <p2v> 801083fb: 83 c4 10 add $0x10,%esp 801083fe: 83 ec 04 sub $0x4,%esp 80108401: 68 00 10 00 00 push $0x1000 80108406: 50 push %eax 80108407: ff 75 e0 pushl -0x20(%ebp) 8010840a: e8 57 cf ff ff call 80105366 <memmove> 8010840f: 83 c4 10 add $0x10,%esp if(mappages(d, (void*)i, PGSIZE, v2p(mem), flags) < 0) 80108412: 8b 5d e4 mov -0x1c(%ebp),%ebx 80108415: 83 ec 0c sub $0xc,%esp 80108418: ff 75 e0 pushl -0x20(%ebp) 8010841b: e8 6c f3 ff ff call 8010778c <v2p> 80108420: 83 c4 10 add $0x10,%esp 80108423: 89 c2 mov %eax,%edx 80108425: 8b 45 f4 mov -0xc(%ebp),%eax 80108428: 83 ec 0c sub $0xc,%esp 8010842b: 53 push %ebx 8010842c: 52 push %edx 8010842d: 68 00 10 00 00 push $0x1000 80108432: 50 push %eax 80108433: ff 75 f0 pushl -0x10(%ebp) 80108436: e8 80 f8 ff ff call 80107cbb <mappages> 8010843b: 83 c4 20 add $0x20,%esp 8010843e: 85 c0 test %eax,%eax 80108440: 78 1b js 8010845d <copyuvm+0x103> for(i = 0; i < sz; i += PGSIZE){ 80108442: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 80108449: 8b 45 f4 mov -0xc(%ebp),%eax 8010844c: 3b 45 0c cmp 0xc(%ebp),%eax 8010844f: 0f 82 30 ff ff ff jb 80108385 <copyuvm+0x2b> goto bad; } return d; 80108455: 8b 45 f0 mov -0x10(%ebp),%eax 80108458: eb 17 jmp 80108471 <copyuvm+0x117> goto bad; 8010845a: 90 nop 8010845b: eb 01 jmp 8010845e <copyuvm+0x104> goto bad; 8010845d: 90 nop bad: freevm(d); 8010845e: 83 ec 0c sub $0xc,%esp 80108461: ff 75 f0 pushl -0x10(%ebp) 80108464: e8 10 fe ff ff call 80108279 <freevm> 80108469: 83 c4 10 add $0x10,%esp return 0; 8010846c: b8 00 00 00 00 mov $0x0,%eax } 80108471: 8b 5d fc mov -0x4(%ebp),%ebx 80108474: c9 leave 80108475: c3 ret 80108476 <uva2ka>: //PAGEBREAK! // Map user virtual address to kernel address. char* uva2ka(pde_t *pgdir, char *uva) { 80108476: 55 push %ebp 80108477: 89 e5 mov %esp,%ebp 80108479: 83 ec 18 sub $0x18,%esp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 8010847c: 83 ec 04 sub $0x4,%esp 8010847f: 6a 00 push $0x0 80108481: ff 75 0c pushl 0xc(%ebp) 80108484: ff 75 08 pushl 0x8(%ebp) 80108487: e8 8f f7 ff ff call 80107c1b <walkpgdir> 8010848c: 83 c4 10 add $0x10,%esp 8010848f: 89 45 f4 mov %eax,-0xc(%ebp) if((*pte & PTE_P) == 0) 80108492: 8b 45 f4 mov -0xc(%ebp),%eax 80108495: 8b 00 mov (%eax),%eax 80108497: 83 e0 01 and $0x1,%eax 8010849a: 85 c0 test %eax,%eax 8010849c: 75 07 jne 801084a5 <uva2ka+0x2f> return 0; 8010849e: b8 00 00 00 00 mov $0x0,%eax 801084a3: eb 2a jmp 801084cf <uva2ka+0x59> if((*pte & PTE_U) == 0) 801084a5: 8b 45 f4 mov -0xc(%ebp),%eax 801084a8: 8b 00 mov (%eax),%eax 801084aa: 83 e0 04 and $0x4,%eax 801084ad: 85 c0 test %eax,%eax 801084af: 75 07 jne 801084b8 <uva2ka+0x42> return 0; 801084b1: b8 00 00 00 00 mov $0x0,%eax 801084b6: eb 17 jmp 801084cf <uva2ka+0x59> return (char*)p2v(PTE_ADDR(*pte)); 801084b8: 8b 45 f4 mov -0xc(%ebp),%eax 801084bb: 8b 00 mov (%eax),%eax 801084bd: 25 00 f0 ff ff and $0xfffff000,%eax 801084c2: 83 ec 0c sub $0xc,%esp 801084c5: 50 push %eax 801084c6: e8 ce f2 ff ff call 80107799 <p2v> 801084cb: 83 c4 10 add $0x10,%esp 801084ce: 90 nop } 801084cf: c9 leave 801084d0: c3 ret 801084d1 <copyout>: // Copy len bytes from p to user address va in page table pgdir. // Most useful when pgdir is not the current page table. // uva2ka ensures this only works for PTE_U pages. int copyout(pde_t *pgdir, uint va, void *p, uint len) { 801084d1: 55 push %ebp 801084d2: 89 e5 mov %esp,%ebp 801084d4: 83 ec 18 sub $0x18,%esp char *buf, *pa0; uint n, va0; buf = (char*)p; 801084d7: 8b 45 10 mov 0x10(%ebp),%eax 801084da: 89 45 f4 mov %eax,-0xc(%ebp) while(len > 0){ 801084dd: eb 7f jmp 8010855e <copyout+0x8d> va0 = (uint)PGROUNDDOWN(va); 801084df: 8b 45 0c mov 0xc(%ebp),%eax 801084e2: 25 00 f0 ff ff and $0xfffff000,%eax 801084e7: 89 45 ec mov %eax,-0x14(%ebp) pa0 = uva2ka(pgdir, (char*)va0); 801084ea: 8b 45 ec mov -0x14(%ebp),%eax 801084ed: 83 ec 08 sub $0x8,%esp 801084f0: 50 push %eax 801084f1: ff 75 08 pushl 0x8(%ebp) 801084f4: e8 7d ff ff ff call 80108476 <uva2ka> 801084f9: 83 c4 10 add $0x10,%esp 801084fc: 89 45 e8 mov %eax,-0x18(%ebp) if(pa0 == 0) 801084ff: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 80108503: 75 07 jne 8010850c <copyout+0x3b> return -1; 80108505: b8 ff ff ff ff mov $0xffffffff,%eax 8010850a: eb 61 jmp 8010856d <copyout+0x9c> n = PGSIZE - (va - va0); 8010850c: 8b 45 ec mov -0x14(%ebp),%eax 8010850f: 2b 45 0c sub 0xc(%ebp),%eax 80108512: 05 00 10 00 00 add $0x1000,%eax 80108517: 89 45 f0 mov %eax,-0x10(%ebp) if(n > len) 8010851a: 8b 45 f0 mov -0x10(%ebp),%eax 8010851d: 3b 45 14 cmp 0x14(%ebp),%eax 80108520: 76 06 jbe 80108528 <copyout+0x57> n = len; 80108522: 8b 45 14 mov 0x14(%ebp),%eax 80108525: 89 45 f0 mov %eax,-0x10(%ebp) memmove(pa0 + (va - va0), buf, n); 80108528: 8b 45 0c mov 0xc(%ebp),%eax 8010852b: 2b 45 ec sub -0x14(%ebp),%eax 8010852e: 89 c2 mov %eax,%edx 80108530: 8b 45 e8 mov -0x18(%ebp),%eax 80108533: 01 d0 add %edx,%eax 80108535: 83 ec 04 sub $0x4,%esp 80108538: ff 75 f0 pushl -0x10(%ebp) 8010853b: ff 75 f4 pushl -0xc(%ebp) 8010853e: 50 push %eax 8010853f: e8 22 ce ff ff call 80105366 <memmove> 80108544: 83 c4 10 add $0x10,%esp len -= n; 80108547: 8b 45 f0 mov -0x10(%ebp),%eax 8010854a: 29 45 14 sub %eax,0x14(%ebp) buf += n; 8010854d: 8b 45 f0 mov -0x10(%ebp),%eax 80108550: 01 45 f4 add %eax,-0xc(%ebp) va = va0 + PGSIZE; 80108553: 8b 45 ec mov -0x14(%ebp),%eax 80108556: 05 00 10 00 00 add $0x1000,%eax 8010855b: 89 45 0c mov %eax,0xc(%ebp) while(len > 0){ 8010855e: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 80108562: 0f 85 77 ff ff ff jne 801084df <copyout+0xe> } return 0; 80108568: b8 00 00 00 00 mov $0x0,%eax } 8010856d: c9 leave 8010856e: c3 ret
38.930883
105
0.527273
144dcd4f7cf806d945a3efb53ee5b504cec78731
1,870
ts
TypeScript
embedding/deep/my_django_bokeh_site/djangobokeh/static/js/types/models/plots/gmap_plot_canvas.d.ts
Aquaveo/jupyter_to_tethys
b2fc246d31ef0526666bc5db856551ec9704f315
[ "MIT" ]
null
null
null
embedding/deep/my_django_bokeh_site/djangobokeh/static/js/types/models/plots/gmap_plot_canvas.d.ts
Aquaveo/jupyter_to_tethys
b2fc246d31ef0526666bc5db856551ec9704f315
[ "MIT" ]
null
null
null
embedding/deep/my_django_bokeh_site/djangobokeh/static/js/types/models/plots/gmap_plot_canvas.d.ts
Aquaveo/jupyter_to_tethys
b2fc246d31ef0526666bc5db856551ec9704f315
[ "MIT" ]
1
2019-02-12T19:17:54.000Z
2019-02-12T19:17:54.000Z
/// <reference types="googlemaps" /> import { Context2d } from "core/util/canvas"; import { GMapPlot } from "./gmap_plot"; import { PlotCanvas, PlotCanvasView, RangeInfo, FrameBox } from "./plot_canvas"; export declare class GMapPlotCanvasView extends PlotCanvasView { model: GMapPlotCanvas; protected _tiles_loaded: boolean; protected zoom_count: number; protected initial_zoom: number; protected initial_lat: number; protected initial_lng: number; protected map: google.maps.Map; protected map_types: any; initialize(options: any): void; update_range(range_info: RangeInfo & { sdx?: number; sdy?: number; factor?: number; } | null): void; protected _build_map(): void; protected _render_finished(): void; has_finished(): boolean; protected _get_latlon_bounds(): [number, number, number, number]; protected _get_projected_bounds(): [number, number, number, number]; protected _set_bokeh_ranges(): void; protected _update_center(fld: "lat" | "lng"): void; protected _update_map_type(): void; protected _update_scale_control(): void; protected _update_tilt(): void; protected _update_options(): void; protected _update_styles(): void; protected _update_zoom(): void; protected _map_hook(_ctx: Context2d, frame_box: FrameBox): void; protected _paint_empty(ctx: Context2d, frame_box: FrameBox): void; } export declare namespace GMapPlotCanvas { interface Attrs extends PlotCanvas.Attrs { } interface Props extends PlotCanvas.Props { } } export interface GMapPlotCanvas extends GMapPlotCanvas.Attrs { } export declare class GMapPlotCanvas extends PlotCanvas { properties: GMapPlotCanvas.Props; plot: GMapPlot; constructor(attrs?: Partial<GMapPlotCanvas.Attrs>); static initClass(): void; initialize(): void; }
36.666667
80
0.715508
ffb473958d6bb9e3c1f8a29d3a01e9d25012d133
3,897
py
Python
dss/dss_capi_ir/IYMatrix.py
PMeira/dss_python
2dbc72ed875108d3f98d21cb0a488bab6b0d7f4c
[ "BSD-3-Clause" ]
6
2018-02-08T23:25:26.000Z
2018-12-31T00:58:29.000Z
dss/dss_capi_ir/IYMatrix.py
PMeira/dss_python
2dbc72ed875108d3f98d21cb0a488bab6b0d7f4c
[ "BSD-3-Clause" ]
19
2018-02-12T19:51:48.000Z
2018-12-14T23:06:17.000Z
dss/dss_capi_ir/IYMatrix.py
PMeira/dss_python
2dbc72ed875108d3f98d21cb0a488bab6b0d7f4c
[ "BSD-3-Clause" ]
null
null
null
''' A compatibility layer for DSS C-API that mimics the official OpenDSS COM interface. Copyright (c) 2016-2020 Paulo Meira ''' from __future__ import absolute_import from .._cffi_api_util import Base import numpy as np class IYMatrix(Base): __slots__ = [] def GetCompressedYMatrix(self, factor=True): '''Return as (data, indices, indptr) that can fed into scipy.sparse.csc_matrix''' ffi = self._api_util.ffi nBus = ffi.new('uint32_t*') nBus[0] = 0 nNz = ffi.new('uint32_t*') nNz[0] = 0 ColPtr = ffi.new('int32_t**') RowIdxPtr = ffi.new('int32_t**') cValsPtr = ffi.new('double**') self._lib.YMatrix_GetCompressedYMatrix(factor, nBus, nNz, ColPtr, RowIdxPtr, cValsPtr) if not nBus[0] or not nNz[0]: res = None else: # return as (data, indices, indptr) that can fed into scipy.sparse.csc_matrix res = ( np.fromstring(ffi.buffer(cValsPtr[0], nNz[0] * 16), dtype=complex), np.fromstring(ffi.buffer(RowIdxPtr[0], nNz[0] * 4), dtype=np.int32), np.fromstring(ffi.buffer(ColPtr[0], (nBus[0] + 1) * 4), dtype=np.int32) ) self._lib.DSS_Dispose_PInteger(ColPtr) self._lib.DSS_Dispose_PInteger(RowIdxPtr) self._lib.DSS_Dispose_PDouble(cValsPtr) self.CheckForError() return res def ZeroInjCurr(self): self.CheckForError(self._lib.YMatrix_ZeroInjCurr()) def GetSourceInjCurrents(self): self.CheckForError(self._lib.YMatrix_GetSourceInjCurrents()) def GetPCInjCurr(self): self.CheckForError(self._lib.YMatrix_GetPCInjCurr()) def BuildYMatrixD(self, BuildOps, AllocateVI): self.CheckForError(self._lib.YMatrix_BuildYMatrixD(BuildOps, AllocateVI)) def AddInAuxCurrents(self, SType): self.CheckForError(self._lib.YMatrix_AddInAuxCurrents(SType)) def GetIPointer(self): '''Get access to the internal Current pointer''' IvectorPtr = self._api_util.ffi.new('double**') self.CheckForError(self._lib.YMatrix_getIpointer(IvectorPtr)) return IvectorPtr[0] def GetVPointer(self): '''Get access to the internal Voltage pointer''' VvectorPtr = self._api_util.ffi.new('double**') self.CheckForError(self._lib.YMatrix_getVpointer(VvectorPtr)) return VvectorPtr[0] def SolveSystem(self, NodeV): if type(NodeV) is not np.ndarray: NodeV = np.array(NodeV) NodeV = self._api_util.ffi.cast("double *", NodeV.ctypes.data) NodeVPtr = self._api_util.ffi.new('double**') NodeVPtr[0] = NodeV result = self.CheckForError(self._lib.YMatrix_SolveSystem(NodeVPtr)) return result @property def SystemYChanged(self): return self.CheckForError(self._lib.YMatrix_Get_SystemYChanged()) @SystemYChanged.setter def SystemYChanged(self, value): self.CheckForError(self._lib.YMatrix_Set_SystemYChanged(value)) @property def UseAuxCurrents(self): return self.CheckForError(self._lib.YMatrix_Get_UseAuxCurrents()) @UseAuxCurrents.setter def UseAuxCurrents(self, value): self.CheckForError(self._lib.YMatrix_Set_UseAuxCurrents(value)) # for better compatibility with OpenDSSDirect.py getYSparse = GetCompressedYMatrix def getI(self): '''Get the data from the internal Current pointer''' IvectorPtr = self.GetIPointer() return self._api_util.ffi.unpack(IvectorPtr, 2 * (self.CheckForError(self._lib.Circuit_Get_NumNodes() + 1))) def getV(self): '''Get the data from the internal Voltage pointer''' VvectorPtr = self.GetVPointer() return self._api_util.ffi.unpack(VvectorPtr, 2 * (self.CheckForError(self._lib.Circuit_Get_NumNodes() + 1)))
34.486726
116
0.659225
607ca1be616a0e00f15f1205abb14209ed00553f
471
psm1
PowerShell
lib/web/New-IcingaTCPClient.psm1
IceLucian/icinga-powershell-files
23175bc3d09c3331643c6b8b58348ffb74a13729
[ "MIT" ]
45
2019-10-31T16:51:08.000Z
2022-01-28T13:17:14.000Z
lib/web/New-IcingaTCPClient.psm1
IceLucian/icinga-powershell-files
23175bc3d09c3331643c6b8b58348ffb74a13729
[ "MIT" ]
210
2019-11-05T10:42:10.000Z
2022-03-31T15:51:23.000Z
lib/web/New-IcingaTCPClient.psm1
IceLucian/icinga-powershell-files
23175bc3d09c3331643c6b8b58348ffb74a13729
[ "MIT" ]
31
2019-11-26T13:50:30.000Z
2022-03-25T14:53:18.000Z
function New-IcingaTCPClient() { param( [System.Net.Sockets.TcpListener]$Socket = $null ); if ($null -eq $Socket) { return $null; } [System.Net.Sockets.TcpClient]$Client = $Socket.AcceptTcpClient(); Write-IcingaDebugMessage -Message ( [string]::Format( 'New incoming client connection for endpoint {0}', (Get-IcingaTCPClientRemoteEndpoint -Client $Client) ) ); return $Client; }
21.409091
70
0.596603
4bc8f4767cc78d46c9353076e56c08a14f0108f2
988
h
C
src/data/editables/screen_selection_mask.h
rodri042/piugba
bb3aae80c3a74d87531a825eba35a032f45c42a3
[ "TU-Berlin-1.0", "MIT" ]
37
2020-03-29T03:55:17.000Z
2022-01-12T02:12:14.000Z
src/data/editables/screen_selection_mask.h
rodri042/piugba
bb3aae80c3a74d87531a825eba35a032f45c42a3
[ "TU-Berlin-1.0", "MIT" ]
2
2020-06-27T16:49:33.000Z
2020-07-20T04:55:07.000Z
src/data/editables/screen_selection_mask.h
rodri042/piugba
bb3aae80c3a74d87531a825eba35a032f45c42a3
[ "TU-Berlin-1.0", "MIT" ]
2
2021-05-31T00:39:38.000Z
2021-07-12T21:01:23.000Z
//{{BLOCK(screen_selection_mask) //====================================================================== // // screen_selection_mask, 256x256@8, // + palette 256 entries, not compressed // + 1025 tiles not compressed // + regular map (in SBBs), not compressed, 32x32 // Total size: 512 + 65600 + 2048 = 68160 // // Time-stamp: 2020-04-19, 23:41:11 // Exported by Cearn's GBA Image Transmogrifier, v0.8.15 // ( http://www.coranac.com/projects/#grit ) // //====================================================================== #ifndef GRIT_SCREEN_SELECTION_MASK_H #define GRIT_SCREEN_SELECTION_MASK_H #define screen_selection_maskTilesLen 65600 extern const unsigned int screen_selection_maskTiles[16400]; #define screen_selection_maskMapLen 2048 extern const unsigned short screen_selection_maskMap[1024]; #define screen_selection_maskPalLen 512 extern const unsigned short screen_selection_maskPal[256]; #endif // GRIT_SCREEN_SELECTION_MASK_H //}}BLOCK(screen_selection_mask)
29.939394
72
0.665992
6ba6c4d6d430689344079c06d389e99115e6c3b1
797
cpp
C++
rpc/1/e.cpp
aLagoG/kygerand
0991cf5d5c3d49f4602b6992d4e3bdec8e27898e
[ "MIT" ]
1
2017-09-16T04:05:31.000Z
2017-09-16T04:05:31.000Z
rpc/1/e.cpp
aLagoG/kygerand
0991cf5d5c3d49f4602b6992d4e3bdec8e27898e
[ "MIT" ]
9
2017-01-25T19:34:38.000Z
2020-07-27T17:02:09.000Z
rpc/1/e.cpp
aLagoG/kygerand
0991cf5d5c3d49f4602b6992d4e3bdec8e27898e
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ int arr[3]; scanf("%d %d %d",&arr[0],&arr[1],&arr[2]); sort(arr,arr+3); // int opp[3]; // bool found=0; // int count=0; // for(int i=1;i<=7 && count<3;i++){ // found=0; // for(int j=0;j<3;j++){ // if(arr[j]==i) found=1; // } // if(!found) opp[count++]=i; // } // printf("opp[]:\n"); // printf("%d %d %d\n",opp[0],opp[1],opp[2]); // // printf("arr[]:\n"); // printf("%d %d %d\n",arr[0],arr[1],arr[2]); if((arr[0]==1&&arr[1]==2)||(arr[0]==1&&arr[1]==3)){ printf("S\n"); }else if(arr[0]==1&&arr[1]==4&&arr[2]==5){ printf("S\n"); }else if(arr[0]==2&&arr[1]==3&&arr[2]==4){ printf("S\n"); }else{ printf("N\n"); } return 0; }
18.113636
53
0.459222
f23e0a64afb2b932e4bd7b1ef678c6b051c91663
439
php
PHP
views/index.html.php
ryaan-anthony/deployable
9b16972dc81d17bc6c3db391e776fa9ac09f94ee
[ "MIT" ]
null
null
null
views/index.html.php
ryaan-anthony/deployable
9b16972dc81d17bc6c3db391e776fa9ac09f94ee
[ "MIT" ]
null
null
null
views/index.html.php
ryaan-anthony/deployable
9b16972dc81d17bc6c3db391e776fa9ac09f94ee
[ "MIT" ]
null
null
null
<?php /** * Html page template * * @var Deployable\Http\Output\Web $this */ ?> <!DOCTYPE html> <html> <head> <?php include 'head.html.php' ?> </head> <body> <main> <div class="container"> <ul> <?php foreach ($this->getMessages() as $message): ?> <li><?php echo $message ?></li> <?php endforeach ?> </ul> </div> </main> </body> </html>
17.56
68
0.460137
5d558bb08d4ef14678f8a1be773aa5f48a93dd83
16,633
cpp
C++
tests/CppUTest/TestUTestStringMacro.cpp
aunitt/cpputest
c981ed449df76e8e769286663c1caab069da324e
[ "BSD-3-Clause" ]
2
2016-02-04T16:34:01.000Z
2021-05-27T17:48:15.000Z
tests/CppUTest/TestUTestStringMacro.cpp
aunitt/cpputest
c981ed449df76e8e769286663c1caab069da324e
[ "BSD-3-Clause" ]
null
null
null
tests/CppUTest/TestUTestStringMacro.cpp
aunitt/cpputest
c981ed449df76e8e769286663c1caab069da324e
[ "BSD-3-Clause" ]
1
2020-01-22T19:46:10.000Z
2020-01-22T19:46:10.000Z
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the <organization> nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE EARLIER MENTIONED AUTHORS ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL <copyright holder> BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "CppUTest/TestHarness.h" #include "CppUTest/TestOutput.h" #include "CppUTest/TestTestingFixture.h" #define CHECK_TEST_FAILS_PROPER_WITH_TEXT(text) fixture.checkTestFailsWithProperTestLocation(text, __FILE__, __LINE__) TEST_GROUP(UnitTestStringMacros) { TestTestingFixture fixture; }; static void _STRCMP_EQUALWithActualIsNULLTestMethod() { STRCMP_EQUAL("ok", NULLPTR); } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRCMP_EQUALAndActualIsNULL) { fixture.runTestWithMethod(_STRCMP_EQUALWithActualIsNULLTestMethod); CHECK_TEST_FAILS_PROPER_WITH_TEXT("but was <(null)>"); } static void _STRCMP_EQUALWithExpectedIsNULLTestMethod() { STRCMP_EQUAL(NULLPTR, "ok"); } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRCMP_EQUALAndExpectedIsNULL) { fixture.runTestWithMethod(_STRCMP_EQUALWithExpectedIsNULLTestMethod); CHECK_TEST_FAILS_PROPER_WITH_TEXT("expected <(null)>"); } static void _STRCMP_CONTAINSWithActualIsNULLTestMethod() { STRCMP_CONTAINS("ok", NULLPTR); } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRCMP_CONTAINSAndActualIsNULL) { fixture.runTestWithMethod(_STRCMP_CONTAINSWithActualIsNULLTestMethod); CHECK_TEST_FAILS_PROPER_WITH_TEXT("did not contain <ok>"); } static void _STRCMP_CONTAINSWithExpectedIsNULLTestMethod() { STRCMP_CONTAINS(NULLPTR, "ok"); } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRCMP_CONTAINSAndExpectedIsNULL) { fixture.runTestWithMethod(_STRCMP_CONTAINSWithExpectedIsNULLTestMethod); CHECK_TEST_FAILS_PROPER_WITH_TEXT("did not contain <>"); } static void _STRNCMP_EQUALWithActualIsNULLTestMethod() { STRNCMP_EQUAL("ok", NULLPTR, 2); } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRNCMP_EQUALAndActualIsNULL) { fixture.runTestWithMethod(_STRNCMP_EQUALWithActualIsNULLTestMethod); CHECK_TEST_FAILS_PROPER_WITH_TEXT("but was <(null)>"); } static void _STRNCMP_EQUALWithExpectedIsNULLTestMethod() { STRNCMP_EQUAL(NULLPTR, "ok", 2); } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRNCMP_EQUALAndExpectedIsNULL) { fixture.runTestWithMethod(_STRNCMP_EQUALWithExpectedIsNULLTestMethod); CHECK_TEST_FAILS_PROPER_WITH_TEXT("expected <(null)>"); } static void _STRCMP_NOCASE_EQUALWithActualIsNULLTestMethod() { STRCMP_NOCASE_EQUAL("ok", NULLPTR); } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRCMP_NOCASE_EQUALAndActualIsNULL) { fixture.runTestWithMethod(_STRCMP_NOCASE_EQUALWithActualIsNULLTestMethod); CHECK_TEST_FAILS_PROPER_WITH_TEXT("but was <(null)>"); } static void _STRCMP_NOCASE_EQUALWithExpectedIsNULLTestMethod() { STRCMP_NOCASE_EQUAL(NULLPTR, "ok"); } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRCMP_NOCASE_EQUALAndExpectedIsNULL) { fixture.runTestWithMethod(_STRCMP_NOCASE_EQUALWithExpectedIsNULLTestMethod); CHECK_TEST_FAILS_PROPER_WITH_TEXT("expected <(null)>"); } static void _STRCMP_NOCASE_EQUALWithUnequalInputTestMethod() { STRCMP_NOCASE_EQUAL("no", "ok"); } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRCMP_NOCASE_EQUALAndUnequalInput) { fixture.runTestWithMethod(_STRCMP_NOCASE_EQUALWithUnequalInputTestMethod); CHECK_TEST_FAILS_PROPER_WITH_TEXT("but was <ok>"); } static void _STRCMP_NOCASE_CONTAINSWithActualIsNULLTestMethod() { STRCMP_NOCASE_CONTAINS("ok", NULLPTR); } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRCMP_NOCASE_CONTAINSAndActualIsNULL) { fixture.runTestWithMethod(_STRCMP_NOCASE_CONTAINSWithActualIsNULLTestMethod); CHECK_TEST_FAILS_PROPER_WITH_TEXT("did not contain <ok>"); } static void _STRCMP_NOCASE_CONTAINSWithExpectedIsNULLTestMethod() { STRCMP_NOCASE_CONTAINS(NULLPTR, "ok"); } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRCMP_NOCASE_CONTAINSAndExpectedIsNULL) { fixture.runTestWithMethod(_STRCMP_NOCASE_CONTAINSWithExpectedIsNULLTestMethod); CHECK_TEST_FAILS_PROPER_WITH_TEXT("did not contain <>"); } static void _failingTestMethodWithSTRCMP_EQUAL() { STRCMP_EQUAL("hello", "hell"); TestTestingFixture::lineExecutedAfterCheck(); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRCMP_EQUAL) { fixture.runTestWithMethod(_failingTestMethodWithSTRCMP_EQUAL); CHECK_TEST_FAILS_PROPER_WITH_TEXT("expected <hello>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("but was <hell>"); } TEST(UnitTestStringMacros, STRCMP_EQUALBehavesAsProperMacro) { if (false) STRCMP_EQUAL("1", "2"); else STRCMP_EQUAL("1", "1"); } IGNORE_TEST(UnitTestStringMacros, STRCMP_EQUALWorksInAnIgnoredTest) { STRCMP_EQUAL("Hello", "World"); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE static void _failingTestMethodWithSTRCMP_EQUAL_TEXT() { STRCMP_EQUAL_TEXT("hello", "hell", "Failed because it failed"); TestTestingFixture::lineExecutedAfterCheck(); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRCMP_EQUAL_TEXT) { fixture.runTestWithMethod(_failingTestMethodWithSTRCMP_EQUAL_TEXT); CHECK_TEST_FAILS_PROPER_WITH_TEXT("expected <hello>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("but was <hell>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("Failed because it failed"); } TEST(UnitTestStringMacros, STRCMP_EQUAL_TEXTBehavesAsProperMacro) { if (false) STRCMP_EQUAL_TEXT("1", "2", "Failed because it failed"); else STRCMP_EQUAL_TEXT("1", "1", "Failed because it failed"); } IGNORE_TEST(UnitTestStringMacros, STRCMP_EQUAL_TEXTWorksInAnIgnoredTest) { STRCMP_EQUAL_TEXT("Hello", "World", "Failed because it failed"); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE static void _failingTestMethodWithSTRNCMP_EQUAL() { STRNCMP_EQUAL("hello", "hallo", 5); TestTestingFixture::lineExecutedAfterCheck(); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRNCMP_EQUAL) { fixture.runTestWithMethod(_failingTestMethodWithSTRNCMP_EQUAL); CHECK_TEST_FAILS_PROPER_WITH_TEXT("expected <hello>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("but was <hallo>"); } TEST(UnitTestStringMacros, STRNCMP_EQUALBehavesAsProperMacro) { if (false) STRNCMP_EQUAL("1", "2", 1); else STRNCMP_EQUAL("1", "1", 1); } IGNORE_TEST(UnitTestStringMacros, STRNCMP_EQUALWorksInAnIgnoredTest) { STRNCMP_EQUAL("Hello", "World", 3); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE static void _failingTestMethodWithSTRNCMP_EQUAL_TEXT() { STRNCMP_EQUAL_TEXT("hello", "hallo", 5, "Failed because it failed"); TestTestingFixture::lineExecutedAfterCheck(); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRNCMP_EQUAL_TEXT) { fixture.runTestWithMethod(_failingTestMethodWithSTRNCMP_EQUAL_TEXT); CHECK_TEST_FAILS_PROPER_WITH_TEXT("expected <hello>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("but was <hallo>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("Failed because it failed"); } TEST(UnitTestStringMacros, STRNCMP_EQUAL_TEXTBehavesAsProperMacro) { if (false) STRNCMP_EQUAL_TEXT("1", "2", 1, "Failed because it failed"); else STRNCMP_EQUAL_TEXT("1", "1", 1, "Failed because it failed"); } IGNORE_TEST(UnitTestStringMacros, STRNCMP_EQUAL_TEXTWorksInAnIgnoredTest) { STRNCMP_EQUAL_TEXT("Hello", "World", 3, "Failed because it failed"); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE static void _failingTestMethodWithSTRCMP_NOCASE_EQUAL() { STRCMP_NOCASE_EQUAL("hello", "Hell"); TestTestingFixture::lineExecutedAfterCheck(); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRCMP_NOCASE_EQUAL) { fixture.runTestWithMethod(_failingTestMethodWithSTRCMP_NOCASE_EQUAL); CHECK_TEST_FAILS_PROPER_WITH_TEXT("expected <hello>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("but was <Hell>"); } TEST(UnitTestStringMacros, STRCMP_NOCASE_EQUALBehavesAsProperMacro) { if (false) STRCMP_NOCASE_EQUAL("1", "2"); else STRCMP_NOCASE_EQUAL("1", "1"); } IGNORE_TEST(UnitTestStringMacros, STRCMP_NOCASE_EQUALWorksInAnIgnoredTest) { STRCMP_NOCASE_EQUAL("Hello", "World"); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE static void _failingTestMethodWithSTRCMP_NOCASE_EQUAL_TEXT() { STRCMP_NOCASE_EQUAL_TEXT("hello", "hell", "Failed because it failed"); TestTestingFixture::lineExecutedAfterCheck(); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRCMP_NOCASE_EQUAL_TEXT) { fixture.runTestWithMethod(_failingTestMethodWithSTRCMP_NOCASE_EQUAL_TEXT); CHECK_TEST_FAILS_PROPER_WITH_TEXT("expected <hello>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("but was <hell>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("Failed because it failed"); } TEST(UnitTestStringMacros, STRCMP_NOCASE_EQUAL_TEXTBehavesAsProperMacro) { if (false) STRCMP_NOCASE_EQUAL_TEXT("1", "2", "Failed because it failed"); else STRCMP_NOCASE_EQUAL_TEXT("1", "1", "Failed because it failed"); } IGNORE_TEST(UnitTestStringMacros, STRCMP_NOCASE_EQUAL_TEXTWorksInAnIgnoredTest) { STRCMP_NOCASE_EQUAL_TEXT("Hello", "World", "Failed because it failed"); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE static void _failingTestMethodWithSTRCMP_CONTAINS() { STRCMP_CONTAINS("hello", "world"); TestTestingFixture::lineExecutedAfterCheck(); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRCMP_CONTAINS) { fixture.runTestWithMethod(_failingTestMethodWithSTRCMP_CONTAINS); CHECK_TEST_FAILS_PROPER_WITH_TEXT("actual <world>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("did not contain <hello>"); } TEST(UnitTestStringMacros, STRCMP_CONTAINSBehavesAsProperMacro) { if (false) STRCMP_CONTAINS("1", "2"); else STRCMP_CONTAINS("1", "1"); } IGNORE_TEST(UnitTestStringMacros, STRCMP_CONTAINSWorksInAnIgnoredTest) { STRCMP_CONTAINS("Hello", "World"); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE static void _failingTestMethodWithSTRCMP_CONTAINS_TEXT() { STRCMP_CONTAINS_TEXT("hello", "world", "Failed because it failed"); TestTestingFixture::lineExecutedAfterCheck(); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, FailureWithSTRCMP_CONTAINS_TEXT) { fixture.runTestWithMethod(_failingTestMethodWithSTRCMP_CONTAINS_TEXT); CHECK_TEST_FAILS_PROPER_WITH_TEXT("actual <world>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("did not contain <hello>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("Failed because it failed"); } TEST(UnitTestStringMacros, STRCMP_CONTAINS_TEXTBehavesAsProperMacro) { if (false) STRCMP_CONTAINS_TEXT("1", "2", "Failed because it failed"); else STRCMP_CONTAINS_TEXT("1", "1", "Failed because it failed"); } IGNORE_TEST(UnitTestStringMacros, STRCMP_CONTAINS_TEXTWorksInAnIgnoredTest) { STRCMP_CONTAINS_TEXT("Hello", "World", "Failed because it failed"); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE static void _failingTestMethodWithSTRCMP_NOCASE_CONTAINS() { STRCMP_NOCASE_CONTAINS("hello", "WORLD"); TestTestingFixture::lineExecutedAfterCheck(); // LCOV_EXCL_LINE } TEST(UnitTestStringMacros, FailureWithSTRCMP_NOCASE_CONTAINS) { fixture.runTestWithMethod(_failingTestMethodWithSTRCMP_NOCASE_CONTAINS); CHECK_TEST_FAILS_PROPER_WITH_TEXT("actual <WORLD>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("did not contain <hello>"); } TEST(UnitTestStringMacros, STRCMP_NOCASE_CONTAINSBehavesAsProperMacro) { if (false) STRCMP_NOCASE_CONTAINS("never", "executed"); else STRCMP_NOCASE_CONTAINS("hello", "HELLO WORLD"); } IGNORE_TEST(UnitTestStringMacros, STRCMP_NO_CASE_CONTAINSWorksInAnIgnoredTest) { STRCMP_NOCASE_CONTAINS("Hello", "World"); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE static void _failingTestMethodWithSTRCMP_NOCASE_CONTAINS_TEXT() { STRCMP_NOCASE_CONTAINS_TEXT("hello", "WORLD", "Failed because it failed"); TestTestingFixture::lineExecutedAfterCheck(); // LCOV_EXCL_LINE } TEST(UnitTestStringMacros, FailureWithSTRCMP_NOCASE_CONTAINS_TEXT) { fixture.runTestWithMethod(_failingTestMethodWithSTRCMP_NOCASE_CONTAINS_TEXT); CHECK_TEST_FAILS_PROPER_WITH_TEXT("actual <WORLD>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("did not contain <hello>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("Failed because it failed"); } TEST(UnitTestStringMacros, STRCMP_NOCASE_CONTAINS_TEXTBehavesAsProperMacro) { if (false) STRCMP_NOCASE_CONTAINS_TEXT("never", "executed", "Failed because it failed"); else STRCMP_NOCASE_CONTAINS_TEXT("hello", "HELLO WORLD", "Failed because it failed"); } IGNORE_TEST(UnitTestStringMacros, STRCMP_NO_CASE_CONTAINS_TEXTWorksInAnIgnoredTest) { STRCMP_NOCASE_CONTAINS_TEXT("Hello", "World", "Failed because it failed"); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, NFirstCharsComparison) { STRNCMP_EQUAL("Hello World!", "Hello Peter!", 0); STRNCMP_EQUAL("Hello World!", "Hello Peter!", 1); STRNCMP_EQUAL("Hello World!", "Hello Peter!", 6); STRNCMP_EQUAL("Hello World!", "Hello", 5); } static void _compareNFirstCharsWithUpperAndLowercase() { STRNCMP_EQUAL("hello world!", "HELLO WORLD!", 12); TestTestingFixture::lineExecutedAfterCheck(); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, CompareNFirstCharsWithUpperAndLowercase) { fixture.runTestWithMethod(_compareNFirstCharsWithUpperAndLowercase); CHECK_TEST_FAILS_PROPER_WITH_TEXT("expected <hello world!>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("but was <HELLO WORLD!>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("difference starts at position 0"); } static void _compareNFirstCharsWithDifferenceInTheMiddle() { STRNCMP_EQUAL("Hello World!", "Hello Peter!", 12); TestTestingFixture::lineExecutedAfterCheck(); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, CompareNFirstCharsWithDifferenceInTheMiddle) { fixture.runTestWithMethod(_compareNFirstCharsWithDifferenceInTheMiddle); CHECK_TEST_FAILS_PROPER_WITH_TEXT("expected <Hello World!>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("but was <Hello Peter!>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("difference starts at position 6"); } static void _compareNFirstCharsWithEmptyString() { STRNCMP_EQUAL("", "Not empty string", 5); TestTestingFixture::lineExecutedAfterCheck(); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, CompareNFirstCharsWithEmptyString) { fixture.runTestWithMethod(_compareNFirstCharsWithEmptyString); CHECK_TEST_FAILS_PROPER_WITH_TEXT("expected <>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("but was <Not empty string>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("difference starts at position 0"); } static void _compareNFirstCharsWithLastCharDifferent() { STRNCMP_EQUAL("Not empty string?", "Not empty string!", 17); TestTestingFixture::lineExecutedAfterCheck(); // LCOV_EXCL_LINE } // LCOV_EXCL_LINE TEST(UnitTestStringMacros, CompareNFirstCharsWithLastCharDifferent) { fixture.runTestWithMethod(_compareNFirstCharsWithLastCharDifferent); CHECK_TEST_FAILS_PROPER_WITH_TEXT("expected <Not empty string?>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("but was <Not empty string!>"); CHECK_TEST_FAILS_PROPER_WITH_TEXT("difference starts at position 16"); }
35.464819
118
0.788252
0d54e2615b07091c8e1d9790bdd0947c46fe1a7a
353
h
C
projects/steering/inc/steering_can.h
Citrusboa/firmware_xiv
4379cefae900fd67bd14d930da6b8acfce625176
[ "MIT" ]
14
2019-11-12T00:11:29.000Z
2021-12-13T05:32:41.000Z
projects/steering/inc/steering_can.h
123Logan321/firmware_xiv
14468d55753ad62f8a63a9289511e72131443042
[ "MIT" ]
191
2019-11-12T05:36:58.000Z
2022-03-21T19:54:46.000Z
projects/steering/inc/steering_can.h
123Logan321/firmware_xiv
14468d55753ad62f8a63a9289511e72131443042
[ "MIT" ]
14
2020-06-06T14:43:14.000Z
2022-03-08T00:48:11.000Z
#pragma once // Module to process events on the queue and send CAN messages. // Requires GPIO,Interrupts,Event Queue, and CAN to be initialized #include "can.h" #include "event_queue.h" #include "gpio.h" #include "interrupt.h" #include "status.h" // Receives an event and sends a CAN message StatusCode steering_can_process_event(Event *e);
29.416667
67
0.739377
46cf5734222575ed50c588d45e87443dde5cc57a
9,140
py
Python
lab-4.py
Cooper-Yang/2016-OS-Course-Assignments
b84003cc9ffbcf1fcdee0f70ea0b5d874e5de74a
[ "MIT" ]
null
null
null
lab-4.py
Cooper-Yang/2016-OS-Course-Assignments
b84003cc9ffbcf1fcdee0f70ea0b5d874e5de74a
[ "MIT" ]
null
null
null
lab-4.py
Cooper-Yang/2016-OS-Course-Assignments
b84003cc9ffbcf1fcdee0f70ea0b5d874e5de74a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ OS Course Exp - 4: i-Node Usage: python lab-4.py [offset in file(Byte in Hex)] [content fold level = 0(default, hide block info) or 1(show index) or 2(show block content)] # 混合索引逻辑地址到物理地址映射 * 条件:自定义混合索引 `inode` 结构 * 必须包括一次,二次,和三次间接块 * 逻辑块 `n` 对应物理块 `n` * 输入:文件逻辑地址(这里指的是文件内的偏移位置) * 输出 1. 输出 `inode` 详细信息(间接块不展开) 2. 物理地址(物理块号,块内偏移) """ from random import randint from time import strftime import sys TOTAL_BLOCK = 2**32 class System(object): """ Define system resource """ def __init__(self, ): self.used = set() def alloc_block(self): """ allocate an available block from the system resource randomly, will return the block number """ block_num = randint(0, TOTAL_BLOCK) while block_num in self.used is True: block_num = randint(0, TOTAL_BLOCK) self.used.add(block_num) return block_num def free_block(self, block_num=None): """ do not free an unused block !!! :type block_num: int """ temp = list(self.used) temp.pop(temp.index(block_num)) self.used = set(temp) return def use_block(self, block_num=None): """ :type block_num: int """ self.used.add(block_num) return SYSTEM = System() class Block(object): """ Data Block """ def __init__(self, num=None, num_of_record=None): """ :type num: int :type num_of_record: int """ self.num = num self.data = list() self.num_of_record = num_of_record def data_append(self, input_data): """ :type input_data: int """ self.data.append(input_data) def get_content(self, offset=None): """ get content of specified offset :type offset: int """ temp = list(self.data) return temp[offset] class BlockIndex(object): """ Structure of direct and indirect block index """ def __init__(self, level=None, data_size=None, block_size=None, record_size=None, record_list=None): """ :type level: int :type data_size: int :type block_size: int :type record_size: int :type record_list: list """ self.data_size = data_size # is 0 if is direct self.level_num = level self.index_list = list() self.block_list = list() if level == 0 and record_list is None: self.num_of_record = None self.record_per_block = None self.block_size = block_size if data_size % block_size != 0: self.num_of_block = data_size / block_size + 1 else: self.num_of_block = data_size / block_size # allocation direct block temp_a = 0 while temp_a < self.num_of_block: self.index_list.append(temp_a) SYSTEM.use_block(temp_a) temp_a += 1 self.index_list.sort() elif level > 0 and record_list is not None: self.block_size = block_size self.record_size = record_size self.record_per_block = block_size / record_size # number of record the input data have self.num_of_record = len(record_list) # number of block the input data need if data_size % block_size != 0: self.num_of_block = len(record_list) / self.record_per_block + 1 self.is_full_fill = False else: self.num_of_block = len(record_list) / self.record_per_block self.is_full_fill = True i = 0 while i < self.num_of_block: block_num = SYSTEM.alloc_block() self.index_list.append(block_num) i += 1 self.index_list.sort() self.put_input_record_into_block(record_list) else: raise ValueError def put_input_record_into_block(self, input_record=None): """ put the previous level BlockIndex's data into this level's block :type input_record: list """ if self.is_full_fill is False and self.num_of_record < self.record_per_block: special_num = self.num_of_record record_current_block_remain = self.num_of_record elif self.is_full_fill is False and self.num_of_record > self.record_per_block: special_num = self.num_of_record % self.record_per_block record_current_block_remain = self.record_per_block else: special_num = None record_current_block_remain = self.record_per_block counter = 0 current = 0 temp = Block(self.index_list[current], record_current_block_remain) while counter < self.num_of_record: if record_current_block_remain != 0: temp.data_append(input_record[counter]) record_current_block_remain -= 1 else: self.block_list.append(temp) current += 1 block_num = self.index_list[current] if current == self.num_of_block - 1 and self.is_full_fill is False: temp = Block(block_num, special_num) else: temp = Block(block_num, self.record_per_block) record_current_block_remain = temp.num_of_record temp.data_append(input_record[counter]) record_current_block_remain -= 1 counter += 1 # append the last Block or due to the mechanism of while it will be dropped self.block_list.append(temp) def get_data(self, index=None): """ :type index:int """ block_num = index / self.record_per_block offset_num = index % self.record_per_block data = self.block_list[block_num].data[offset_num] return data def get_info(self, content_fold=0): """ Return specified size of data according to specified index :type content_fold: int """ lines = list() if self.level_num == 0: lines.append('Direct Block Index Table:\n') else: lines.append('Level ' + str(self.level_num) + ' Block Index Table:\n') lines.append('\thave ' + str(self.num_of_record) + ' records\n') lines.append('\thave ' + str(self.num_of_block) + ' blocks\n') lines.append('\ttake ' + str(self.num_of_block * self.block_size) + ' Byte space\n') if self.level_num == 0: pass else: if content_fold == 0: pass else: k = 0 while k < len(self.block_list): lines.append('Block ' + str(k).rjust(4) + ' : address - ' + hex(self.block_list[k].num)+' :\n') count = 0 hex_list = list() while count < self.block_list[k].num_of_record: if content_fold == 1: hex_list.append(hex(count)) elif content_fold == 2: hex_list.append(hex(self.block_list[k].data[count])) count += 1 k += 1 lines.append(str(hex_list) + '\n') lines.append('\n') return lines class IndexNode(object): """ I-node Structure """ def __init__(self, file_name=None, owner=None, file_size=None, num_of_level=None, block_size=None, record_size=None): """ :type file_name: str :type owner: str :type file_size: int :type num_of_level: int :type block_size: int :type record_size: int """ if block_size % record_size != 0: raise ValueError self.file_name = file_name self.owner = owner self.time_stamp = strftime('%Y/%m/%d %X') self.file_size = file_size self.num_of_level = num_of_level self.block_size = block_size self.record_size = record_size self.record_per_block = block_size / record_size self.block_index = list() self.generate_index() def generate_index(self): """ generate all direct and indirect index """ for i in range(0, self.num_of_level+1): if i == 0: temp = BlockIndex(i, self.file_size, self.block_size, self.record_size) else: data_size = self.block_index[i-1].num_of_block * self.record_size temp = BlockIndex(i, data_size, self.block_size, self.record_size, self.block_index[i-1].index_list) self.block_index.append(temp) return def find_block(self, input_address=None): """ :type input_address: int """ trace = list() in_file_block_num = input_address / self.block_size index_num = in_file_block_num i = 1 while i <= self.num_of_level: content = str(index_num) + ' - ' + hex(self.block_index[i].get_data(index_num)) trace.insert(0, content) index_num /= self.record_per_block i += 1 # content = str(index_num) + ' - ' + hex(self.block_index[i].get_data(index_num)) trace.insert(0, index_num) return 'Address Trace: ' + str(trace) def output(self, content_fold=0): """ output itself :type content_fold: int """ line = list() line.append('File Name: ' + str(self.file_name) + '\n') line.append('Owner: ' + str(self.owner) + '\n') line.append('Time: ' + str(self.time_stamp) + '\n') line.append('File Size: ' + str(self.file_size) + ' Byte\n') line.append('Index Level: ' + str(self.num_of_level) + '\n\n') for i in range(0, self.num_of_level+1): line.extend(self.block_index[i].get_info(content_fold)) return line if __name__ == "__main__": if len(sys.argv) > 1: FILE_NAME = 'I am awesome' OWNER = 'Cooper Yang' FILE_SIZE = 2**20 LEVEL = 3 BLOCK_SIZE = 2**8 RECORD_SIZE = 2**2 INPUT_ADDRESS = int(sys.argv[1], 16) if INPUT_ADDRESS > FILE_SIZE: print '\n' print '!!! this address is even bigger than the file !!!' print '\n' raise ValueError else: print '\n' print __doc__ print '\n' raise NameError MY_FILE = IndexNode(FILE_NAME, OWNER, FILE_SIZE, LEVEL, BLOCK_SIZE, RECORD_SIZE) OUTPUT = open('lab-4.result', 'w') if len(sys.argv) > 2 and sys.argv[2] == '1': OUTPUT.writelines(MY_FILE.output(content_fold=1)) elif len(sys.argv) > 2 and sys.argv[2] == '2': OUTPUT.writelines(MY_FILE.output(content_fold=2)) else: OUTPUT.writelines(MY_FILE.output(content_fold=0)) OUTPUT.writelines(MY_FILE.find_block(INPUT_ADDRESS)) OUTPUT.close() print 'completed !'
29.015873
139
0.690481
74909e1710ec046c689e641dabcb41c2a16a4cf0
256
css
CSS
src/@layouts/DefaultLayout/style.css
ianninirojas/voto-ucv-web-app
0e384b150431b723a2557ac89c63e28ded0dbfb5
[ "MIT" ]
1
2019-07-12T01:25:05.000Z
2019-07-12T01:25:05.000Z
src/@layouts/DefaultLayout/style.css
ianninirojas/voto-ucv-web-app
0e384b150431b723a2557ac89c63e28ded0dbfb5
[ "MIT" ]
null
null
null
src/@layouts/DefaultLayout/style.css
ianninirojas/voto-ucv-web-app
0e384b150431b723a2557ac89c63e28ded0dbfb5
[ "MIT" ]
null
null
null
.bg { background: linear-gradient(-135deg, #083c4a, #096dd9); } .logo { text-align: center; padding-top: 70px; } .logo > img { width: 130px; } .content { display: flex; align-items: center; justify-content: center; padding-top: 40px; }
12.8
57
0.632813
7d69fa3dec2239914c1dc41f19a42f51d6c4e187
3,279
rs
Rust
src/aon/gpadc_reg_result.rs
andelf/bl702-pac
c5a7791d304c0d7d4c665a8f92ad22e00a09db7c
[ "Apache-2.0", "MIT" ]
4
2021-06-29T05:22:00.000Z
2021-11-06T23:45:55.000Z
src/aon/gpadc_reg_result.rs
andelf/bl702-pac
c5a7791d304c0d7d4c665a8f92ad22e00a09db7c
[ "Apache-2.0", "MIT" ]
null
null
null
src/aon/gpadc_reg_result.rs
andelf/bl702-pac
c5a7791d304c0d7d4c665a8f92ad22e00a09db7c
[ "Apache-2.0", "MIT" ]
3
2021-06-29T05:22:03.000Z
2022-03-23T12:42:47.000Z
#[doc = "Register `gpadc_reg_result` reader"] pub struct R(crate::R<GPADC_REG_RESULT_SPEC>); impl core::ops::Deref for R { type Target = crate::R<GPADC_REG_RESULT_SPEC>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } impl From<crate::R<GPADC_REG_RESULT_SPEC>> for R { #[inline(always)] fn from(reader: crate::R<GPADC_REG_RESULT_SPEC>) -> Self { R(reader) } } #[doc = "Register `gpadc_reg_result` writer"] pub struct W(crate::W<GPADC_REG_RESULT_SPEC>); impl core::ops::Deref for W { type Target = crate::W<GPADC_REG_RESULT_SPEC>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } impl core::ops::DerefMut for W { #[inline(always)] fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } } impl From<crate::W<GPADC_REG_RESULT_SPEC>> for W { #[inline(always)] fn from(writer: crate::W<GPADC_REG_RESULT_SPEC>) -> Self { W(writer) } } #[doc = "Field `gpadc_data_out` reader - "] pub struct GPADC_DATA_OUT_R(crate::FieldReader<u32, u32>); impl GPADC_DATA_OUT_R { pub(crate) fn new(bits: u32) -> Self { GPADC_DATA_OUT_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for GPADC_DATA_OUT_R { type Target = crate::FieldReader<u32, u32>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `gpadc_data_out` writer - "] pub struct GPADC_DATA_OUT_W<'a> { w: &'a mut W, } impl<'a> GPADC_DATA_OUT_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u32) -> &'a mut W { self.w.bits = (self.w.bits & !0x03ff_ffff) | (value as u32 & 0x03ff_ffff); self.w } } impl R { #[doc = "Bits 0:25"] #[inline(always)] pub fn gpadc_data_out(&self) -> GPADC_DATA_OUT_R { GPADC_DATA_OUT_R::new((self.bits & 0x03ff_ffff) as u32) } } impl W { #[doc = "Bits 0:25"] #[inline(always)] pub fn gpadc_data_out(&mut self) -> GPADC_DATA_OUT_W { GPADC_DATA_OUT_W { w: self } } #[doc = "Writes raw bits to the register."] #[inline(always)] pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { self.0.bits(bits); self } } #[doc = "gpadc_reg_result.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [gpadc_reg_result](index.html) module"] pub struct GPADC_REG_RESULT_SPEC; impl crate::RegisterSpec for GPADC_REG_RESULT_SPEC { type Ux = u32; } #[doc = "`read()` method returns [gpadc_reg_result::R](R) reader structure"] impl crate::Readable for GPADC_REG_RESULT_SPEC { type Reader = R; } #[doc = "`write(|w| ..)` method takes [gpadc_reg_result::W](W) writer structure"] impl crate::Writable for GPADC_REG_RESULT_SPEC { type Writer = W; } #[doc = "`reset()` method sets gpadc_reg_result to value 0"] impl crate::Resettable for GPADC_REG_RESULT_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 } }
31.834951
414
0.63373
f006a3572eade2916bbc14100f50f3e58b150d9e
94
rs
Rust
kernel/src/hardware/mod.rs
andrewimm/imm-dos-nx
2716a4954eae779cdf0596e061d16484d06c3563
[ "MIT" ]
5
2020-07-06T22:21:53.000Z
2021-11-21T23:10:14.000Z
kernel/src/hardware/mod.rs
andrewimm/imm-dos-nx
2716a4954eae779cdf0596e061d16484d06c3563
[ "MIT" ]
null
null
null
kernel/src/hardware/mod.rs
andrewimm/imm-dos-nx
2716a4954eae779cdf0596e061d16484d06c3563
[ "MIT" ]
null
null
null
pub mod dma; pub mod floppy; pub mod pic; pub mod pit; pub mod qemu; pub mod rtc; pub mod vga;
13.428571
15
0.712766
1a8938c1509af3e92adc1be12836d3a25961447a
955
py
Python
process_incomplete_tiles.py
tommygod3/fyp-scripts
603e4f5025f297c2242f23b1ed56991606dff31d
[ "MIT" ]
null
null
null
process_incomplete_tiles.py
tommygod3/fyp-scripts
603e4f5025f297c2242f23b1ed56991606dff31d
[ "MIT" ]
null
null
null
process_incomplete_tiles.py
tommygod3/fyp-scripts
603e4f5025f297c2242f23b1ed56991606dff31d
[ "MIT" ]
null
null
null
import json, subprocess, glob, sys, os import pathlib, argparse # load environment config and set path vars file_path = os.path.realpath(__file__) directory_path = "/".join(file_path.split("/")[:-1]) with open(f"{directory_path}/environment.json") as reader: environment = json.load(reader) def process_all(top_directory): for directory in glob.iglob(f"{top_directory}/*"): subprocess.call(f"bsub -o {directory}/%J.out -W 5:00 -q short-serial {sys.executable} {directory_path}/process_tile.py -d {directory}/", shell=True) if __name__ == "__main__": parser = argparse.ArgumentParser(description= 'This script scrolls through data index and processes tiles with low cloud cover') parser.add_argument('-d', '--dir', dest = 'directory', help = 'dir to create tiles underneath') args = parser.parse_args() absolute_dir = pathlib.Path(args.directory).resolve() process_all(absolute_dir)
39.791667
156
0.699476
508aa4e7009ec988f91c3e150f6362f0851ab34e
778
sh
Shell
build.sh
godfroidt/PopClipExtenstions
c8bfe02cf3acf03b9c5ba9ba61789089a6aa99b3
[ "MIT" ]
null
null
null
build.sh
godfroidt/PopClipExtenstions
c8bfe02cf3acf03b9c5ba9ba61789089a6aa99b3
[ "MIT" ]
null
null
null
build.sh
godfroidt/PopClipExtenstions
c8bfe02cf3acf03b9c5ba9ba61789089a6aa99b3
[ "MIT" ]
null
null
null
#!/bin/bash -u # space delimited list of extensions to build EXTS="FantasticFiction Colissimo ColisPrive BPost" # setup builddir. Careful, it silently erase the # existing build directory if any. I mean it that way. BUILDDIR="build" [ -d "$BUILDDIR" ] && { rm -rf "$BUILDDIR"; } mkdir -p "$BUILDDIR" # for each extension for EXT in $EXTS do # make sure it exists [ ! -d "$EXT" ] && { echo "Cannot find extension directory: $EXT" continue } EXTDIR="${EXT}.popclipext" echo "Creating ${EXTDIR}z ..." # copy to build dir, jump in, zip, cleanup and get out # only thing left is the zipped extension cp -r "$EXT" "${BUILDDIR}/$EXTDIR" pushd "$BUILDDIR" &> /dev/null zip -r "${EXTDIR}z" "$EXTDIR" rm -rf "$EXTDIR" popd &> /dev/null done echo "Done." exit 0
20.473684
55
0.660668
03428a0f693ef5be9022fae51bf7d846d8af2fdf
638
rb
Ruby
app/controllers/cms/search_contents/files_controller.rb
snkmr/shirasagi
f3fd6d3999d1f295fc08f8b00a335184934a3a35
[ "MIT" ]
101
2015-01-05T02:30:34.000Z
2022-03-04T09:36:44.000Z
app/controllers/cms/search_contents/files_controller.rb
snkmr/shirasagi
f3fd6d3999d1f295fc08f8b00a335184934a3a35
[ "MIT" ]
2,722
2015-01-07T08:50:16.000Z
2022-03-30T01:56:16.000Z
app/controllers/cms/search_contents/files_controller.rb
snkmr/shirasagi
f3fd6d3999d1f295fc08f8b00a335184934a3a35
[ "MIT" ]
107
2015-01-17T16:12:59.000Z
2021-12-16T04:23:44.000Z
class Cms::SearchContents::FilesController < ApplicationController include Cms::BaseFilter include Cms::ApiFilter::Contents include SS::FileFilter model SS::File navi_view "cms/search_contents/navi" private def set_crumbs @crumbs << [t("cms.file"), action: :index] end def fix_params { cur_user: @cur_user, cur_site: @cur_site } end public def index file_ids = Cms::Page.site(@cur_site).pluck(:file_ids).flatten.uniq.compact @items = @model.where(site_id: @cur_site). search(params[:s]). in(id: file_ids). order_by(filename: 1). page(params[:page]).per(50) end end
20.580645
78
0.675549
afd6e14df45a089eecfeaf82446faf4e34332e75
1,806
py
Python
adminator/manager.py
techlib/adminator
f7f6695778dc5fb741f118fe2e0358bdda632c7b
[ "MIT" ]
1
2019-04-27T22:51:56.000Z
2019-04-27T22:51:56.000Z
adminator/manager.py
techlib/adminator
f7f6695778dc5fb741f118fe2e0358bdda632c7b
[ "MIT" ]
2
2016-11-25T10:02:15.000Z
2017-05-31T08:29:03.000Z
adminator/manager.py
techlib/adminator
f7f6695778dc5fb741f118fe2e0358bdda632c7b
[ "MIT" ]
1
2021-12-01T05:26:43.000Z
2021-12-01T05:26:43.000Z
#!/usr/bin/python3 -tt # -*- coding: utf-8 -*- __all__ = ['Manager'] from twisted.internet.threads import deferToThread from twisted.internet import task, reactor from twisted.python import log from adminator.device import Device from adminator.dhcp_value import DhcpOptionValue from adminator.dhcp_option import DhcpOption from adminator.user import User from adminator.network import Network from adminator.network_pool import NetworkPool from adminator.network_acl import NetworkAcl from adminator.domain import Domain from adminator.record import Record from adminator.lease4 import Lease4 from adminator.lease6 import Lease6 from adminator.interface import Interface from adminator.port import Port from adminator.connection import Connection from adminator.switch import Switch from adminator.mac_history import MacHistory from adminator.switch_interface import SwitchInterface from adminator.config_pattern import ConfigPatttern class Manager(object): def __init__(self, db): self.db = db # Something like models self.user = User(self) self.device = Device(self) self.interface = Interface(self) self.dhcp_option = DhcpOption(self) self.dhcp_option_value = DhcpOptionValue(self) self.network = Network(self) self.network_pool = NetworkPool(self) self.network_acl = NetworkAcl(self) self.record = Record(self) self.domain = Domain(self) self.lease4 = Lease4(self) self.lease6 = Lease6(self) self.port = Port(self) self.connection = Connection(self) self.switch = Switch(self) self.mac_history = MacHistory(self) self.switch_interface = SwitchInterface(self) self.config_pattern = ConfigPatttern(self) # vim:set sw=4 ts=4 et:
30.610169
54
0.739203
2ff23e263f8eda218cf1246796602e91343eaac8
7,611
py
Python
pymbt/constants/molecular_bio.py
klavinslab/pymbt-legacy
d638aecd954664e416ed28b30cdbbcfcb176bae5
[ "ECL-2.0", "Apache-2.0" ]
34
2015-12-26T22:13:51.000Z
2021-11-17T11:46:37.000Z
pymbt/constants/molecular_bio.py
klavinslab/pymbt-legacy
d638aecd954664e416ed28b30cdbbcfcb176bae5
[ "ECL-2.0", "Apache-2.0" ]
13
2015-09-11T23:27:51.000Z
2018-06-25T20:44:28.000Z
pymbt/constants/molecular_bio.py
klavinslab/pymbt-legacy
d638aecd954664e416ed28b30cdbbcfcb176bae5
[ "ECL-2.0", "Apache-2.0" ]
14
2015-10-08T17:08:48.000Z
2022-02-22T04:25:54.000Z
'''Defines data and parameters in an easily resuable format.''' # Common sequence alphabets. ALPHABETS = { 'dna': 'ATGCNatgcn-', 'rna': 'AUGCNaugcn', 'peptide': 'ACDEFGHIKLMNPQRSTVWYXacdefghiklmnpqrstvwyx'} COMPLEMENTS = { 'dna': {'A': 'T', 'T': 'A', 'G': 'C', 'C': 'G', 'N': 'N', 'a': 't', 't': 'a', 'g': 'c', 'c': 'g', 'n': 'n', '-': '-'}, 'rna': {'A': 'U', 'U': 'A', 'G': 'C', 'C': 'G', 'N': 'N', 'a': 'u', 'u': 'a', 'g': 'c', 'c': 'g', 'n': 'n'}} # The standard codon table. CODON_TABLE = { 'A': ['GCG', 'GCA', 'GCU', 'GCC'], 'R': ['AGG', 'AGA', 'CGG', 'CGA', 'CGU', 'CGC'], 'N': ['AAU', 'AAC'], 'D': ['GAU', 'GAC'], 'C': ['UGU', 'UGC'], '*': ['UGA', 'UAG', 'UAA'], 'Q': ['CAG', 'CAA'], 'E': ['GAG', 'GAA'], 'G': ['GGG', 'GGA', 'GGU', 'GGC'], 'H': ['CAU', 'CAC'], 'I': ['AUA', 'AUU', 'AUC'], 'L': ['UUG', 'UUA', 'CUG', 'CUA', 'CUU', 'CUC'], 'K': ['AAG', 'AAA'], 'M': ['AUG'], 'F': ['UUU', 'UUC'], 'P': ['CCG', 'CCA', 'CCU', 'CCC'], 'S': ['AGU', 'AGC', 'UCG', 'UCA', 'UCU', 'UCC'], 'T': ['ACG', 'ACA', 'ACU', 'ACC'], 'W': ['UGG'], 'Y': ['UAU', 'UAC'], 'V': ['GUG', 'GUA', 'GUU', 'GUC']} # Saccharomyces cerevisiae # source: http://www.kazusa.or.jp/codon/ # (which cites GenBank, i.e. yeast genome project CDS database) CODON_FREQ = { 'sc': { 'GCG': 0.109972396541529, 'GCA': 0.288596474496094, 'GCU': 0.377014739102356, 'GCC': 0.224416389860021, 'AGG': 0.208564104515562, 'AGA': 0.481137590939125, 'CGG': 0.0392677130215486, 'CGA': 0.0676728924436203, 'CGU': 0.144572019635586, 'CGC': 0.0587856794445578, 'AAU': 0.589705127199784, 'AAC': 0.410294872800217, 'GAU': 0.65037901553924, 'GAC': 0.34962098446076, 'UGU': 0.629812614586062, 'UGC': 0.370187385413938, 'UGA': 0.303094329334787, 'UAG': 0.225736095965104, 'UAA': 0.471169574700109, 'CAG': 0.307418833439535, 'CAA': 0.692581166560465, 'GAG': 0.296739610207218, 'GAA': 0.703260389792782, 'GGG': 0.119057918187951, 'GGA': 0.215422869017838, 'GGU': 0.472217600813099, 'GGC': 0.193301611981112, 'CAU': 0.636710255236351, 'CAC': 0.363289744763649, 'AUA': 0.273331091899568, 'AUU': 0.462925823433014, 'AUC': 0.263743084667417, 'UUG': 0.286319859527146, 'UUA': 0.275534472444779, 'CUG': 0.110440170850593, 'CUA': 0.141277445174148, 'CUU': 0.129115062940288, 'CUC': 0.0573129890630467, 'AAG': 0.423936637198697, 'AAA': 0.576063362801303, 'AUG': 1, 'UUU': 0.586126603840976, 'UUC': 0.413873396159024, 'CCG': 0.120626895854398, 'CCA': 0.417143753704543, 'CCU': 0.307740315888567, 'CCC': 0.154489034552491, 'AGU': 0.159245398699046, 'AGC': 0.109749229743856, 'UCG': 0.0963590866114069, 'UCA': 0.210157220085731, 'UCU': 0.264456618519558, 'UCC': 0.160032446340401, 'ACG': 0.135583991997041, 'ACA': 0.302413913478422, 'ACU': 0.345237040780705, 'ACC': 0.216765053743832, 'UGG': 1, 'UAU': 0.559573963633711, 'UAC': 0.440426036366289, 'GUG': 0.190897642582249, 'GUA': 0.208783185960798, 'GUU': 0.391481704636128, 'GUC': 0.208837466820824}} # Codon usage organized by organism, then amino acid CODON_FREQ_BY_AA = { 'sc': { 'A': {'GCG': 0.109972396541529, 'GCA': 0.288596474496094, 'GCU': 0.377014739102356, 'GCC': 0.224416389860021}, 'R': {'AGG': 0.208564104515562, 'AGA': 0.481137590939125, 'CGG': 0.0392677130215486, 'CGA': 0.0676728924436203, 'CGU': 0.144572019635586, 'CGC': 0.0587856794445578}, 'N': {'AAU': 0.589705127199784, 'AAC': 0.410294872800217}, 'D': {'GAU': 0.65037901553924, 'GAC': 0.34962098446076}, 'C': {'UGU': 0.629812614586062, 'UGC': 0.370187385413938}, '*': {'UGA': 0.303094329334787, 'UAG': 0.225736095965104, 'UAA': 0.471169574700109}, 'Q': {'CAG': 0.307418833439535, 'CAA': 0.692581166560465}, 'E': {'GAG': 0.296739610207218, 'GAA': 0.703260389792782}, 'G': {'GGG': 0.119057918187951, 'GGA': 0.215422869017838, 'GGU': 0.472217600813099, 'GGC': 0.193301611981112}, 'H': {'CAU': 0.636710255236351, 'CAC': 0.363289744763649}, 'I': {'AUA': 0.273331091899568, 'AUU': 0.462925823433014, 'AUC': 0.263743084667417}, 'L': {'UUG': 0.286319859527146, 'UUA': 0.275534472444779, 'CUG': 0.110440170850593, 'CUA': 0.141277445174148, 'CUU': 0.129115062940288, 'CUC': 0.0573129890630467}, 'K': {'AAG': 0.423936637198697, 'AAA': 0.576063362801303}, 'M': {'AUG': 1}, 'F': {'UUU': 0.586126603840976, 'UUC': 0.413873396159024}, 'P': {'CCG': 0.120626895854398, 'CCA': 0.417143753704543, 'CCU': 0.307740315888567, 'CCC': 0.154489034552491}, 'S': {'AGU': 0.159245398699046, 'AGC': 0.109749229743856, 'UCG': 0.0963590866114069, 'UCA': 0.210157220085731, 'UCU': 0.264456618519558, 'UCC': 0.160032446340401}, 'T': {'ACG': 0.135583991997041, 'ACA': 0.302413913478422, 'ACU': 0.345237040780705, 'ACC': 0.216765053743832}, 'W': {'UGG': 1}, 'Y': {'UAU': 0.559573963633711, 'UAC': 0.440426036366289}, 'V': {'GUG': 0.190897642582249, 'GUA': 0.208783185960798, 'GUU': 0.391481704636128, 'GUC': 0.208837466820824}}} # Complete list of codons. CODONS = {'AAA': 'K', 'AAC': 'N', 'AAG': 'K', 'AAU': 'N', 'ACA': 'T', 'ACC': 'T', 'ACG': 'T', 'ACU': 'T', 'AGA': 'R', 'AGC': 'S', 'AGG': 'R', 'AGU': 'S', 'AUA': 'I', 'AUC': 'I', 'AUG': 'M', 'AUU': 'I', 'CAA': 'Q', 'CAC': 'H', 'CAG': 'Q', 'CAU': 'H', 'CCA': 'P', 'CCC': 'P', 'CCG': 'P', 'CCU': 'P', 'CGA': 'R', 'CGC': 'R', 'CGG': 'R', 'CGU': 'R', 'CUA': 'L', 'CUC': 'L', 'CUG': 'L', 'CUU': 'L', 'GAA': 'E', 'GAC': 'D', 'GAG': 'E', 'GAU': 'D', 'GCA': 'A', 'GCC': 'A', 'GCG': 'A', 'GCU': 'A', 'GGA': 'G', 'GGC': 'G', 'GGG': 'G', 'GGU': 'G', 'GUA': 'V', 'GUC': 'V', 'GUG': 'V', 'GUU': 'V', 'UAA': '*', 'UAC': 'Y', 'UAG': '*', 'UAU': 'Y', 'UCA': 'S', 'UCC': 'S', 'UCG': 'S', 'UCU': 'S', 'UGA': '*', 'UGC': 'C', 'UGG': 'W', 'UGU': 'C', 'UUA': 'L', 'UUC': 'F', 'UUG': 'L', 'UUU': 'F'}
30.689516
71
0.434109
b1129bc15e2398d8bb8af9d49ced59f00dba88f8
455
py
Python
automlkiller/models/clustering/__init__.py
toandaominh1997/automlkiller
c5f451cfb05d8287bec0d26a9b14e2c1b452861c
[ "Apache-2.0" ]
null
null
null
automlkiller/models/clustering/__init__.py
toandaominh1997/automlkiller
c5f451cfb05d8287bec0d26a9b14e2c1b452861c
[ "Apache-2.0" ]
null
null
null
automlkiller/models/clustering/__init__.py
toandaominh1997/automlkiller
c5f451cfb05d8287bec0d26a9b14e2c1b452861c
[ "Apache-2.0" ]
null
null
null
from .affinitypropagation_cluster import AffinityPropagation from .agglomerativeclustering_cluster import AgglomerativeClustering from .birch_cluster import BirchContainer from .dbscan_cluster import DBSCANContainer from .kmeans_cluster import KMeansContainer from .kmodes_cluster import KModesContainer from .meanshift_cluster import MeanShiftContainer from .optics_cluster import OPTICSContainer from .spectral_cluster import SpectralClusteringContainer
50.555556
68
0.903297
a3dc3101685e54fc1b77c6eccb26604a1d66b17e
12,263
java
Java
src/test/java/com/solr/ltr/ranker/parser/XGBoostJsonParserTests.java
almogtavor/elasticsearch-learning-to-rank
de996c63a3b757a0feab5aa0b5f589a5716ce95a
[ "ICU", "ECL-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/test/java/com/solr/ltr/ranker/parser/XGBoostJsonParserTests.java
almogtavor/elasticsearch-learning-to-rank
de996c63a3b757a0feab5aa0b5f589a5716ce95a
[ "ICU", "ECL-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/test/java/com/solr/ltr/ranker/parser/XGBoostJsonParserTests.java
almogtavor/elasticsearch-learning-to-rank
de996c63a3b757a0feab5aa0b5f589a5716ce95a
[ "ICU", "ECL-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
/* * Copyright [2017] Wikimedia Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.solr.ltr.ranker.parser; import com.solr.ltr.LtrTestUtils; import com.solr.ltr.feature.FeatureSet; import com.solr.ltr.feature.store.StoredFeature; import com.solr.ltr.feature.store.StoredFeatureSet; import com.solr.ltr.ranker.DenseFeatureVector; import com.solr.ltr.ranker.LtrRanker.FeatureVector; import com.solr.ltr.ranker.dectree.NaiveAdditiveDecisionTree; import com.solr.ltr.ranker.linear.LinearRankerTests; import org.apache.lucene.util.LuceneTestCase; import org.elasticsearch.common.ParsingException; import org.elasticsearch.core.internal.io.Streams; import org.hamcrest.CoreMatchers; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import static com.solr.ltr.LtrTestUtils.randomFeature; import static com.solr.ltr.LtrTestUtils.randomFeatureSet; import static java.util.Collections.singletonList; public class XGBoostJsonParserTests extends LuceneTestCase { private final XGBoostJsonParser parser = new XGBoostJsonParser(); public void testReadLeaf() throws IOException { String model = "[ {\"nodeid\": 0, \"leaf\": 0.234}]"; FeatureSet set = randomFeatureSet(); NaiveAdditiveDecisionTree tree = parser.parse(set, model); assertEquals(0.234F, tree.score(tree.newFeatureVector(null)), Math.ulp(0.234F)); } public void testReadSimpleSplit() throws IOException { String model = "[{" + "\"nodeid\": 0," + "\"split\":\"feat1\"," + "\"depth\":0," + "\"split_condition\":0.123," + "\"yes\":1," + "\"no\": 2," + "\"missing\":2,"+ "\"children\": [" + " {\"nodeid\": 1, \"depth\": 1, \"leaf\": 0.5}," + " {\"nodeid\": 2, \"depth\": 1, \"leaf\": 0.2}" + "]}]"; FeatureSet set = new StoredFeatureSet("set", singletonList(randomFeature("feat1"))); NaiveAdditiveDecisionTree tree = parser.parse(set, model); FeatureVector v = tree.newFeatureVector(null); v.setFeatureScore(0, 0.124F); assertEquals(0.2F, tree.score(v), Math.ulp(0.2F)); v.setFeatureScore(0, 0.122F); assertEquals(0.5F, tree.score(v), Math.ulp(0.5F)); v.setFeatureScore(0, 0.123F); assertEquals(0.2F, tree.score(v), Math.ulp(0.2F)); } public void testReadSimpleSplitInObject() throws IOException { String model = "{" + "\"splits\": [{" + " \"nodeid\": 0," + " \"split\":\"feat1\"," + " \"depth\":0," + " \"split_condition\":0.123," + " \"yes\":1," + " \"no\": 2," + " \"missing\":2,"+ " \"children\": [" + " {\"nodeid\": 1, \"depth\": 1, \"leaf\": 0.5}," + " {\"nodeid\": 2, \"depth\": 1, \"leaf\": 0.2}" + "]}]}"; FeatureSet set = new StoredFeatureSet("set", singletonList(randomFeature("feat1"))); NaiveAdditiveDecisionTree tree = parser.parse(set, model); FeatureVector v = tree.newFeatureVector(null); v.setFeatureScore(0, 0.124F); assertEquals(0.2F, tree.score(v), Math.ulp(0.2F)); v.setFeatureScore(0, 0.122F); assertEquals(0.5F, tree.score(v), Math.ulp(0.5F)); v.setFeatureScore(0, 0.123F); assertEquals(0.2F, tree.score(v), Math.ulp(0.2F)); } public void testReadSimpleSplitWithObjective() throws IOException { String model = "{" + "\"objective\": \"reg:linear\"," + "\"splits\": [{" + " \"nodeid\": 0," + " \"split\":\"feat1\"," + " \"depth\":0," + " \"split_condition\":0.123," + " \"yes\":1," + " \"no\": 2," + " \"missing\":2,"+ " \"children\": [" + " {\"nodeid\": 1, \"depth\": 1, \"leaf\": 0.5}," + " {\"nodeid\": 2, \"depth\": 1, \"leaf\": 0.2}" + "]}]}"; FeatureSet set = new StoredFeatureSet("set", singletonList(randomFeature("feat1"))); NaiveAdditiveDecisionTree tree = parser.parse(set, model); FeatureVector v = tree.newFeatureVector(null); v.setFeatureScore(0, 0.124F); assertEquals(0.2F, tree.score(v), Math.ulp(0.2F)); v.setFeatureScore(0, 0.122F); assertEquals(0.5F, tree.score(v), Math.ulp(0.5F)); v.setFeatureScore(0, 0.123F); assertEquals(0.2F, tree.score(v), Math.ulp(0.2F)); } public void testReadSplitWithUnknownParams() throws IOException { String model = "{" + "\"not_param\": \"value\"," + "\"splits\": [{" + " \"nodeid\": 0," + " \"split\":\"feat1\"," + " \"depth\":0," + " \"split_condition\":0.123," + " \"yes\":1," + " \"no\": 2," + " \"missing\":2,"+ " \"children\": [" + " {\"nodeid\": 1, \"depth\": 1, \"leaf\": 0.5}," + " {\"nodeid\": 2, \"depth\": 1, \"leaf\": 0.2}" + "]}]}"; FeatureSet set = new StoredFeatureSet("set", singletonList(randomFeature("feat1"))); assertThat(expectThrows(ParsingException.class, () -> parser.parse(set, model)).getMessage(), CoreMatchers.containsString("Unable to parse XGBoost object")); } public void testBadObjectiveParam() throws IOException { String model = "{" + "\"objective\": \"reg:invalid\"," + "\"splits\": [{" + " \"nodeid\": 0," + " \"split\":\"feat1\"," + " \"depth\":0," + " \"split_condition\":0.123," + " \"yes\":1," + " \"no\": 2," + " \"missing\":2,"+ " \"children\": [" + " {\"nodeid\": 1, \"depth\": 1, \"leaf\": 0.5}," + " {\"nodeid\": 2, \"depth\": 1, \"leaf\": 0.2}" + "]}]}"; FeatureSet set = new StoredFeatureSet("set", singletonList(randomFeature("feat1"))); assertThat(expectThrows(ParsingException.class, () -> parser.parse(set, model)).getMessage(), CoreMatchers.containsString("Unable to parse XGBoost object")); } public void testReadWithLogisticObjective() throws IOException { String model = "{" + "\"objective\": \"reg:logistic\"," + "\"splits\": [{" + " \"nodeid\": 0," + " \"split\":\"feat1\"," + " \"depth\":0," + " \"split_condition\":0.123," + " \"yes\":1," + " \"no\": 2," + " \"missing\":2,"+ " \"children\": [" + " {\"nodeid\": 1, \"depth\": 1, \"leaf\": 0.5}," + " {\"nodeid\": 2, \"depth\": 1, \"leaf\": -0.2}" + "]}]}"; FeatureSet set = new StoredFeatureSet("set", singletonList(randomFeature("feat1"))); NaiveAdditiveDecisionTree tree = parser.parse(set, model); FeatureVector v = tree.newFeatureVector(null); v.setFeatureScore(0, 0.124F); assertEquals(0.45016602F, tree.score(v), Math.ulp(0.45016602F)); v.setFeatureScore(0, 0.122F); assertEquals(0.62245935F, tree.score(v), Math.ulp(0.62245935F)); v.setFeatureScore(0, 0.123F); assertEquals(0.45016602F, tree.score(v), Math.ulp(0.45016602F)); } public void testMissingField() throws IOException { String model = "[{" + "\"nodeid\": 0," + "\"split\":\"feat1\"," + "\"depth\":0," + "\"split_condition\":0.123," + "\"no\": 2," + "\"missing\":2,"+ "\"children\": [" + " {\"nodeid\": 1, \"depth\": 1, \"leaf\": 0.5}," + " {\"nodeid\": 2, \"depth\": 1, \"leaf\": 0.2}" + "]}]"; FeatureSet set = new StoredFeatureSet("set", singletonList(randomFeature("feat1"))); assertThat(expectThrows(ParsingException.class, () -> parser.parse(set, model)).getMessage(), CoreMatchers.containsString("This split does not have all the required fields")); } public void testBadStruct() throws IOException { String model = "[{" + "\"nodeid\": 0," + "\"split\":\"feat1\"," + "\"depth\":0," + "\"split_condition\":0.123," + "\"yes\":1," + "\"no\": 3," + "\"children\": [" + " {\"nodeid\": 1, \"depth\": 1, \"leaf\": 0.5}," + " {\"nodeid\": 2, \"depth\": 1, \"leaf\": 0.2}" + "]}]"; FeatureSet set = new StoredFeatureSet("set", singletonList(randomFeature("feat1"))); assertThat(expectThrows(ParsingException.class, () -> parser.parse(set, model)).getMessage(), CoreMatchers.containsString("Split structure is invalid, yes, no and/or")); } public void testMissingFeat() throws IOException { String model = "[{" + "\"nodeid\": 0," + "\"split\":\"feat2\"," + "\"depth\":0," + "\"split_condition\":0.123," + "\"yes\":1," + "\"no\": 2," + "\"missing\":2,"+ "\"children\": [" + " {\"nodeid\": 1, \"depth\": 1, \"leaf\": 0.5}," + " {\"nodeid\": 2, \"depth\": 1, \"leaf\": 0.2}" + "]}]"; FeatureSet set = new StoredFeatureSet("set", singletonList(randomFeature("feat1"))); assertThat(expectThrows(ParsingException.class, () -> parser.parse(set, model)).getMessage(), CoreMatchers.containsString("Unknown feature [feat2]")); } public void testComplexModel() throws Exception { String model = readModel("/models/xgboost-wmf.json"); List<StoredFeature> features = new ArrayList<>(); List<String> names = Arrays.asList("all_near_match", "category", "heading", "incoming_links", "popularity_score", "redirect_or_suggest_dismax", "text_or_opening_text_dismax", "title"); for (String n : names) { features.add(LtrTestUtils.randomFeature(n)); } StoredFeatureSet set = new StoredFeatureSet("set", features); NaiveAdditiveDecisionTree tree = parser.parse(set, model); DenseFeatureVector v = tree.newFeatureVector(null); assertEquals(v.scores.length, features.size()); for (int i = random().nextInt(5000) + 1000; i > 0; i--) { LinearRankerTests.fillRandomWeights(v.scores); assertFalse(Float.isNaN(tree.score(v))); } } private String readModel(String model) throws IOException { try (InputStream is = this.getClass().getResourceAsStream(model)) { ByteArrayOutputStream bos = new ByteArrayOutputStream(); Streams.copy(is, bos); return bos.toString(StandardCharsets.UTF_8.name()); } } }
42.877622
101
0.509745
228dc84ab1b76fb1faf8f5961bc3e2e832b1c84c
141,101
sql
SQL
services/data/migrations/1603395238616_init_seed/up.sql
mern-dev-full/mgl-inbound-call-next
b74ce0a5251b5024e4f6bef9213c1ec8d066ffbe
[ "MIT" ]
3
2021-09-01T02:09:56.000Z
2021-10-05T02:35:26.000Z
services/data/migrations/1603395238616_init_seed/up.sql
uniquesolution29/mgl-react-ringba
5e861919f5f2b6a3b1220e13083e874060d514b2
[ "MIT" ]
null
null
null
services/data/migrations/1603395238616_init_seed/up.sql
uniquesolution29/mgl-react-ringba
5e861919f5f2b6a3b1220e13083e874060d514b2
[ "MIT" ]
null
null
null
INSERT INTO contactcenter.accounts VALUES ('e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', '[email protected]', 'MedigapLife', true, '2020-08-26 19:28:43.315359+00', '2020-08-26 19:28:43.315359+00'); INSERT INTO contactcenter.app_configuration VALUES (1, 'twilio', '{"voice": {"recording": true}, "callerId": "+17863042400", "workspaceSid": "WS07ea8b462585dc0939a668aeae907b96", "workflowSid": "WW4b6dde9227a729c4f7302e2461241f66", "applicationSid": "AP480fdfcc997b9b4f5147666c0bab9534", "facebookPageId": null, "workerBusyActivitySid": "WA656c67789c7dcde4db2c01fc8fcfe428", "workerIdleActivitySid": "WA7ce89b247f873b5c5ce7cb659d15cd1b", "workerOfflineActivitySid": "WA667f917f1f6c000b9e94ddc408aa07e8", "workerReservedActivitySid": "WA35aeb3c9899f289fd314d08f041e66e2", "workerAvailableActivitySid": "WAb2dddf784ffc6319b6c4b59e804ad4dd", "workerUnavailableActivitySid": "WA9074306527a1b7927db6cc6d40b1c82e"}', '2020-08-26 19:28:43.337111+00', '2020-08-26 19:28:43.337111+00'); INSERT INTO contactcenter.app_configuration VALUES (2, 'queues', '[{"id": "chat", "expression": "channel == \"chat\"", "friendlyName": "Chat Queue", "taskQueueSid": "WQce55e26c7ef17b8e6b279f6a76c0605c", "filterFriendlyName": "Chat", "targetWorkerExpression": ""}, {"id": "phone", "expression": "channel == \"phone\"", "friendlyName": "Phone Queue", "taskQueueSid": "WQf41143719da2c50d59a5ec3e305ff7c0", "filterFriendlyName": "Phone", "targetWorkerExpression": "task.team == worker.team OR task.transferToWorkerSid = worker.sid"}, {"id": "video", "expression": "channel == \"video\"", "friendlyName": "Video Queue", "taskQueueSid": "WQ8526281ebb04398d148557e52a1b7f3d", "filterFriendlyName": "Video", "targetWorkerExpression": ""}, {"id": "callback", "expression": "channel == \"callback\"", "friendlyName": "Callback Queue", "taskQueueSid": "WQf95d4593f1da2d0d8de70dc0c5faac9b", "filterFriendlyName": "Callback", "targetWorkerExpression": ""}]', '2020-08-26 19:28:43.337111+00', '2020-08-26 19:28:43.337111+00'); INSERT INTO contactcenter.app_configuration VALUES (3, 'ivr', '{"text": "Thanks for calling. You can press a key or say the department name. Press 1 for Sales, press 2 for Support", "options": [{"id": "sales", "digit": 1, "friendlyName": "Sales"}, {"id": "support", "digit": 2, "friendlyName": "Support"}]}', '2020-08-26 19:28:43.337111+00', '2020-08-26 19:28:43.337111+00'); INSERT INTO contactcenter.call_logs VALUES (1, '2020-10-16 17:26:20.991+00', 'ACa5d13ced0c9bdf7563e7b6849cdbfe9e', 'WW10bca7f148205f4b1345ab5ddc04e870', 'Campaign updated test', NULL, NULL, '+18553398928', NULL, NULL, NULL, NULL, '+15632777575', 'CA847c67f45320b2e67f2d92fe97621099', 'CEDAR RAPIDS', 'IA', '52401', 'US', 'ringing', NULL, NULL, NULL, NULL, 'WW10bca7f148205f4b1345ab5ddc04e870', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '/api/ivr/welcome', NULL, NULL); INSERT INTO contactcenter.call_logs VALUES (2, '2020-10-21 14:20:51.827+00', 'ACa5d13ced0c9bdf7563e7b6849cdbfe9e', 'WWa9974d27493872a2e82083958d6d7153', 'plakos-campaign-test121', NULL, NULL, '+18553398928', NULL, NULL, NULL, NULL, '+15632777575', 'CA847c67f45320b2e67f2d92fe97621099', 'CEDAR RAPIDS', 'IA', '52401', 'US', 'ringing', NULL, NULL, NULL, NULL, 'WW10bca7f148205f4b1345ab5ddc04e870', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '/api/ivr/welcome', NULL, NULL); INSERT INTO contactcenter.call_logs VALUES (3, '2020-10-21 14:21:00.434+00', 'ACa5d13ced0c9bdf7563e7b6849cdbfe9e', 'WW10bca7f148205f4b1345ab5ddc04e870', 'Campaign updated test', NULL, NULL, '+18553398928', NULL, NULL, NULL, NULL, '+15632777575', 'CA847c67f45320b2e67f2d92fe97621099', 'CEDAR RAPIDS', 'IA', '52401', 'US', 'ringing', NULL, NULL, NULL, NULL, 'WW10bca7f148205f4b1345ab5ddc04e870', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '/api/twimlapp_status_callback', NULL, NULL); INSERT INTO contactcenter.buyers VALUES ('bf2f99b5-994c-4c33-9f41-f5a66bde7176', '', false, true, false, 'B1101', 'NXT', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.342208+00', '2020-08-26 19:28:43.342208+00'); INSERT INTO contactcenter.buyers VALUES ('a6787b9e-d82c-4e6c-8b6c-e8fe07f0cae0', '', false, false, false, NULL, 'Synergy', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.342208+00', '2020-08-26 19:28:43.342208+00'); INSERT INTO contactcenter.buyers VALUES ('a843d0f5-0708-4d2e-8b83-739376b4ca6f', '', false, false, true, 'A121101', 'Insurd.net', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.342208+00', '2020-08-26 19:28:43.342208+00'); INSERT INTO contactcenter.buyers VALUES ('a38f0f4d-cd7e-4426-8207-50aeb57a0f8e', '', false, false, true, NULL, 'MedigapLifeDR', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.342208+00', '2020-08-26 19:28:43.342208+00'); INSERT INTO contactcenter.buyers VALUES ('521002f2-c96a-41f1-9c00-576977ce9ec7', '', false, false, true, 'A110121', 'Medigap', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.342208+00', '2020-08-26 19:28:43.342208+00'); INSERT INTO contactcenter.buyers VALUES ('8fb5e3f1-675b-4c7d-abcf-d264e8f68d7f', '', false, false, true, 'A181101', 'GO Health U65', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.342208+00', '2020-08-26 19:28:43.342208+00'); INSERT INTO contactcenter.buyers VALUES ('e5f59ed1-e704-471d-8890-1d659d4b7c95', '', false, false, false, 'AP1101', 'AppleInsurance', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.342208+00', '2020-08-26 19:28:43.342208+00'); INSERT INTO contactcenter.buyers VALUES ('b7d86c87-6c9b-4f65-8a70-76ecb5c3f83c', '', true, false, false, 'U65PLAT12', 'PlatinumHealth', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.342208+00', '2020-08-26 19:28:43.342208+00'); INSERT INTO contactcenter.buyers VALUES ('dd834fd4-9af1-444d-8388-97e29c434164', '', false, false, false, NULL, 'MGL Mailer', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.342208+00', '2020-08-26 19:28:43.342208+00'); INSERT INTO contactcenter.buyers VALUES ('28b07b98-baa8-4af6-919a-3cabb6c1412a', '', false, false, false, 'A1101', 'PolicyBind', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.342208+00', '2020-08-26 19:28:43.342208+00'); INSERT INTO contactcenter.buyers VALUES ('01a92a9f-8e24-4d9d-8b24-b15b16faedc2', '', false, false, true, 'A171101', 'GO Health', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.342208+00', '2020-08-26 19:28:43.342208+00'); INSERT INTO contactcenter.buyers VALUES ('11e773a5-9a22-48ac-8d45-ac4131983baf', '', true, false, false, 'AP1102', 'CoverageOne-MAPD', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.342208+00', '2020-08-26 19:28:43.342208+00'); INSERT INTO contactcenter.buyers VALUES ('a4a6fad4-7c41-4932-9261-b8e6acfdb71c', '', true, false, false, 'A131101', 'Healthworks', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.342208+00', '2020-08-26 19:28:43.342208+00'); INSERT INTO contactcenter.buyers VALUES ('8cebe0e8-054f-447b-a999-857e679bf674', '', true, false, false, NULL, 'NHP', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.342208+00', '2020-08-26 19:28:43.342208+00'); INSERT INTO contactcenter.buyers VALUES ('e8fe77e0-5042-43bf-a8b5-e51541f46203', '', false, false, false, 'Spring', 'Spring', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.342208+00', '2020-08-26 19:28:43.342208+00'); INSERT INTO contactcenter.affiliates VALUES ('1c417ae0-ae30-40cd-8f51-e83201abca87', '', false, false, NULL, false, false, 'CoverageOne Insurance', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.323591+00', '2020-08-26 19:28:43.323591+00'); INSERT INTO contactcenter.affiliates VALUES ('99126f5e-e30a-4d41-8a9e-9871aef4bd89', 'TVHOUS12', true, false, NULL, false, false, 'TV-Houston-Story', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.323591+00', '2020-08-26 19:28:43.323591+00'); INSERT INTO contactcenter.affiliates VALUES ('fed5e1b6-9a0c-4cba-badf-a85935cdacf6', 'TVPHXS12', true, false, NULL, false, false, 'TV-Phoenix-SAT', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.323591+00', '2020-08-26 19:28:43.323591+00'); INSERT INTO contactcenter.affiliates VALUES ('14d344b9-93de-43e1-8264-94742e379f88', NULL, false, false, '{8eb937ce-d9de-4911-813b-46af4a5fe4f2}', true, false, 'You', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.323591+00', '2020-08-26 19:28:43.323591+00'); INSERT INTO contactcenter.affiliates VALUES ('5a4b7fce-4b46-421d-b97c-55aed10a07f5', 'GCBS1101', true, false, NULL, false, false, 'GEO', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.323591+00', '2020-08-26 19:28:43.323591+00'); INSERT INTO contactcenter.affiliates VALUES ('f0d59025-6f95-467d-b6d6-23fd03ff9d74', 'A151101', false, false, NULL, false, false, 'Direct Health', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.323591+00', '2020-08-26 19:28:43.323591+00'); INSERT INTO contactcenter.affiliates VALUES ('e58ebe07-139a-473f-8777-0c751ea9a3ef', 'RO1101', true, false, NULL, false, false, 'ROBERT', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.323591+00', '2020-08-26 19:28:43.323591+00'); INSERT INTO contactcenter.affiliates VALUES ('af1351fd-8374-4384-afe5-574677577973', 'DRIPSIN', false, false, NULL, false, false, 'DRIPS Inbound', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.323591+00', '2020-08-26 19:28:43.323591+00'); INSERT INTO contactcenter.affiliates VALUES ('33618f0d-2b24-4b02-9f83-1ca9e545f1c2', 'F11-1', false, false, NULL, false, false, 'FILIPINOS', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.323591+00', '2020-08-26 19:28:43.323591+00'); INSERT INTO contactcenter.affiliates VALUES ('8359b084-aa49-4b84-b257-2d5e86fcae59', '', true, true, NULL, false, false, 'TF-800-PUBLISHER', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.323591+00', '2020-08-26 19:28:43.323591+00'); INSERT INTO contactcenter.affiliates VALUES ('57624334-8d6c-4609-813a-65acef33dcc6', 'MAAI1101', true, false, NULL, false, false, 'MedAdvAI', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.323591+00', '2020-08-26 19:28:43.323591+00'); INSERT INTO contactcenter.affiliates VALUES ('a01bc382-0505-4312-b481-374be22346b8', 'Indiana 04/2020', true, false, NULL, false, false, 'Medigap Mailers', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.323591+00', '2020-08-26 19:28:43.323591+00'); INSERT INTO contactcenter.affiliates VALUES ('0cf5c6ef-4a62-4c99-8e20-77145e65e50c', 'TVPHXC11', true, false, NULL, false, false, 'TV-Phoenix-Cable', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:28:43.323591+00', '2020-08-26 19:28:43.323591+00'); INSERT INTO contactcenter.call_instructions VALUES (1, 15, 'number', '+12013593476', NULL, '2020-08-26 19:30:31.545895+00', '2020-08-26 19:30:31.545895+00'); INSERT INTO contactcenter.call_instructions VALUES (2, 10, 'number', '+18553707864', NULL, '2020-08-26 19:30:31.545895+00', '2020-08-26 19:30:31.545895+00'); INSERT INTO contactcenter.call_instructions VALUES (3, 20, 'number', '+18779144145', NULL, '2020-08-26 19:30:31.545895+00', '2020-08-26 19:30:31.545895+00'); INSERT INTO contactcenter.call_instructions VALUES (4, 10, 'number', '+12013593479', NULL, '2020-08-26 19:30:31.545895+00', '2020-08-26 19:30:31.545895+00'); INSERT INTO contactcenter.call_instructions VALUES (5, 15, 'number', '+17542032862', NULL, '2020-08-26 19:30:31.545895+00', '2020-08-26 19:30:31.545895+00'); INSERT INTO contactcenter.call_instructions VALUES (6, 30, 'number', '+12012540135', NULL, '2020-08-26 19:30:31.545895+00', '2020-08-26 19:30:31.545895+00'); INSERT INTO contactcenter.call_instructions VALUES (7, 15, 'number', '+18888950228', NULL, '2020-08-26 19:30:31.545895+00', '2020-08-26 19:30:31.545895+00'); INSERT INTO contactcenter.call_instructions VALUES (8, 16, 'number', '+17542532187', NULL, '2020-08-26 19:30:31.545895+00', '2020-08-26 19:30:31.545895+00'); INSERT INTO contactcenter.call_instructions VALUES (9, 3, 'number', '+18669811443', NULL, '2020-08-26 19:30:31.545895+00', '2020-08-26 19:30:31.545895+00'); INSERT INTO contactcenter.call_instructions VALUES (10, 10, 'number', '+18555491430', NULL, '2020-08-26 19:30:31.545895+00', '2020-08-26 19:30:31.545895+00'); INSERT INTO contactcenter.call_instructions VALUES (11, 0, 'number', '+18559266324', NULL, '2020-08-26 19:30:31.545895+00', '2020-08-26 19:30:31.545895+00'); INSERT INTO contactcenter.call_instructions VALUES (12, 10, 'number', '+12392999197', NULL, '2020-08-26 19:30:31.545895+00', '2020-08-26 19:30:31.545895+00'); INSERT INTO contactcenter.call_instructions VALUES (13, 30, 'number', '+19546031097', NULL, '2020-08-26 19:30:31.545895+00', '2020-08-26 19:30:31.545895+00'); INSERT INTO contactcenter.call_instructions VALUES (14, 15, 'number', '+18625761202', NULL, '2020-08-26 19:32:42.717153+00', '2020-08-26 19:32:42.717153+00'); INSERT INTO contactcenter.routing_priorities VALUES (1, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (2, 2, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (3, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (4, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (5, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (6, 4, 4, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (7, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (8, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (9, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (10, 2, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (11, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (12, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (13, 1, 2, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (14, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (15, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (16, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (17, 2, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (18, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (19, 1, 2, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (20, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (21, 4, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (22, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (23, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (24, 2, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (25, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (26, 2, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (27, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (28, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (29, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (30, 3, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (31, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (32, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (33, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (34, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (35, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (36, 2, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (37, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (38, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (39, 1, 1, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.routing_priorities VALUES (40, 1, 2, '2020-08-26 19:31:44.474329+00', '2020-08-26 19:31:44.474329+00'); INSERT INTO contactcenter.schedules_and_capacities VALUES (1, 3, 'Eastern Standard Time', -1.00, -1.00, -1.00, -1.00, -1, -1, -1, -1, '2020-08-26 19:30:31.559482+00', '2020-08-26 19:30:31.559482+00'); INSERT INTO contactcenter.schedules_and_capacities VALUES (2, -1, 'Eastern Standard Time', -1.00, -1.00, -1.00, -1.00, -1, -1, -1, -1, '2020-08-26 19:30:31.559482+00', '2020-08-26 19:30:31.559482+00'); INSERT INTO contactcenter.schedules_and_capacities VALUES (3, -1, 'Eastern Standard Time', -1.00, -1.00, -1.00, -1.00, -1, -1, 250, 10, '2020-08-26 19:30:31.559482+00', '2020-08-26 19:30:31.559482+00'); INSERT INTO contactcenter.schedules_and_capacities VALUES (4, 20, 'Eastern Standard Time', -1.00, -1.00, -1.00, -1.00, -1, -1, -1, -1, '2020-08-26 19:30:31.559482+00', '2020-08-26 19:30:31.559482+00'); INSERT INTO contactcenter.schedules_and_capacities VALUES (5, 10, 'Eastern Standard Time', -1.00, -1.00, -1.00, -1.00, -1, -1, -1, -1, '2020-08-26 19:30:31.559482+00', '2020-08-26 19:30:31.559482+00'); INSERT INTO contactcenter.schedules_and_capacities VALUES (6, -1, 'Eastern Standard Time', -1.00, -1.00, -1.00, -1.00, -1, -1, -1, -1, '2020-08-26 19:30:31.559482+00', '2020-08-26 19:30:31.559482+00'); INSERT INTO contactcenter.schedules_and_capacities VALUES (7, 6, 'Eastern Standard Time', -1.00, -1.00, -1.00, -1.00, -1, -1, 110, -1, '2020-08-26 19:30:31.559482+00', '2020-08-26 19:30:31.559482+00'); INSERT INTO contactcenter.schedules_and_capacities VALUES (8, 3, 'Eastern Standard Time', -1.00, -1.00, -1.00, -1.00, -1, -1, -1, -1, '2020-08-26 19:30:31.559482+00', '2020-08-26 19:30:31.559482+00'); INSERT INTO contactcenter.schedules_and_capacities VALUES (9, -1, 'Eastern Standard Time', -1.00, -1.00, -1.00, -1.00, -1, -1, -1, -1, '2020-08-26 19:30:31.559482+00', '2020-08-26 19:30:31.559482+00'); INSERT INTO contactcenter.schedules_and_capacities VALUES (10, -1, 'Eastern Standard Time', -1.00, -1.00, -1.00, -1.00, -1, -1, 15, -1, '2020-08-26 19:30:31.559482+00', '2020-08-26 19:30:31.559482+00'); INSERT INTO contactcenter.schedules_and_capacities VALUES (11, -1, 'Eastern Standard Time', -1.00, -1.00, -1.00, -1.00, -1, -1, -1, -1, '2020-08-26 19:30:31.559482+00', '2020-08-26 19:30:31.559482+00'); INSERT INTO contactcenter.schedules_and_capacities VALUES (12, 15, 'Eastern Standard Time', -1.00, -1.00, -1.00, -1.00, -1, -1, -1, -1, '2020-08-26 19:30:31.559482+00', '2020-08-26 19:30:31.559482+00'); INSERT INTO contactcenter.schedules_and_capacities VALUES (13, 10, 'Eastern Standard Time', -1.00, -1.00, -1.00, -1.00, -1, -1, -1, -1, '2020-08-26 19:30:31.559482+00', '2020-08-26 19:30:31.559482+00'); INSERT INTO contactcenter.schedules_and_capacities VALUES (14, 3, 'Eastern Standard Time', -1.00, -1.00, -1.00, -1.00, -1, -1, -1, -1, '2020-08-26 19:32:42.718025+00', '2020-08-26 19:32:42.718025+00'); INSERT INTO contactcenter.targets VALUES (1, 'TAa2502cb397f64b06b92da83f4dc5e287', 1, false, 'MGLFB-Ad-LiveCalls', 'onConvert', '521002f2-c96a-41f1-9c00-576977ce9ec7', 0, 1, 'Mgl Fb Live Transfers', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:30:31.589414+00', '2020-08-26 19:30:31.589414+00'); INSERT INTO contactcenter.targets VALUES (2, NULL, 2, false, 'A111102', 'onConvert', '01a92a9f-8e24-4d9d-8b24-b15b16faedc2', 0, 2, 'GoHealth Premium Line', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:30:31.589414+00', '2020-08-26 19:30:31.589414+00'); INSERT INTO contactcenter.targets VALUES (3, '', 3, false, 'A111101', 'onConvert', '01a92a9f-8e24-4d9d-8b24-b15b16faedc2', 0, 3, 'GoHealth', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:30:31.589414+00', '2020-08-26 19:30:31.589414+00'); INSERT INTO contactcenter.targets VALUES (4, NULL, 4, false, 'Indiana 04/2020', 'onConvert', '521002f2-c96a-41f1-9c00-576977ce9ec7', 0, 4, 'MGL Mailer', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:30:31.589414+00', '2020-08-26 19:30:31.589414+00'); INSERT INTO contactcenter.targets VALUES (5, NULL, 5, false, 'D120001', 'onConvert', '11e773a5-9a22-48ac-8d45-ac4131983baf', 0, 5, 'CoverageOne-MAPD', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:30:31.589414+00', '2020-08-26 19:30:31.589414+00'); INSERT INTO contactcenter.targets VALUES (6, NULL, 6, false, 'MHAMAIL', 'onConvert', NULL, 0, 6, 'MHA Mailers', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', false, '2020-08-26 19:30:31.589414+00', '2020-08-26 19:30:31.589414+00'); INSERT INTO contactcenter.targets VALUES (7, NULL, 7, false, 'A31001', 'onConvert', 'a4a6fad4-7c41-4932-9261-b8e6acfdb71c', 0, 7, 'Healthworks', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:30:31.589414+00', '2020-08-26 19:30:31.589414+00'); INSERT INTO contactcenter.targets VALUES (8, NULL, 8, false, 'D120002', 'onConvert', '11e773a5-9a22-48ac-8d45-ac4131983baf', 0, 8, 'CoverageOne-Mailer', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:30:31.589414+00', '2020-08-26 19:30:31.589414+00'); INSERT INTO contactcenter.targets VALUES (9, 'TAa2502cb397f64b06b92da83f4dc5e287', 9, false, 'ANS101', 'onConvert', NULL, 0, 9, 'AnswerForce', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:30:31.589414+00', '2020-08-26 19:30:31.589414+00'); INSERT INTO contactcenter.targets VALUES (10, NULL, 10, false, 'SVG', 'onConvert', 'e8fe77e0-5042-43bf-a8b5-e51541f46203', 0, 10, 'Spring', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:30:31.589414+00', '2020-08-26 19:30:31.589414+00'); INSERT INTO contactcenter.targets VALUES (11, NULL, 11, false, 'A111103', 'onConvert', '01a92a9f-8e24-4d9d-8b24-b15b16faedc2', 0, 11, 'GoHealth Mail Line', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:30:31.589414+00', '2020-08-26 19:30:31.589414+00'); INSERT INTO contactcenter.targets VALUES (12, '', 12, false, 'A131101', 'onConvert', 'a38f0f4d-cd7e-4426-8207-50aeb57a0f8e', 0, 12, 'MedigapLife', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:30:31.589414+00', '2020-08-26 19:30:31.589414+00'); INSERT INTO contactcenter.targets VALUES (13, '', 13, false, 'A131101', 'onConvert', 'a38f0f4d-cd7e-4426-8207-50aeb57a0f8e', 0, 13, 'MedigapLife - 800IVR', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', false, '2020-08-26 19:30:31.589414+00', '2020-08-26 19:30:31.589414+00'); INSERT INTO contactcenter.targets VALUES (14, 'TAa2502cb397f64b06b92da83f4dc5e287', 14, false, 'MGL-Dev', 'onConvert', '521002f2-c96a-41f1-9c00-576977ce9ec7', 0, 14, 'Mgl Developers', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:32:42.729102+00', '2020-08-26 19:32:42.729102+00'); INSERT INTO contactcenter.call_routes VALUES (1, 1, 4, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (2, 2, 9, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (3, 3, 5, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (4, 4, 7, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (5, 5, 3, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (6, 6, 12, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (7, 7, 12, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (8, 8, 13, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (9, 9, 3, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (10, 10, 12, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (11, 11, 5, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (12, 12, 7, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (13, 13, 2, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (14, 14, NULL, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (15, 15, 5, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (16, 16, 3, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (17, 17, 1, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (18, 18, 10, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (19, 19, 2, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (20, 20, 7, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (21, 21, 9, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (22, 22, 8, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (23, 23, 11, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (24, 24, 9, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (25, 25, 5, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (26, 26, 1, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (27, 27, 3, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (28, 28, 7, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (29, 29, 10, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (30, 30, 9, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (31, 31, 6, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (32, 32, 5, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (33, 33, 7, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (34, 34, 3, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (35, 35, 10, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (36, 36, 12, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (37, 37, 8, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (38, 38, 10, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (39, 39, 3, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.call_routes VALUES (40, 40, 2, NULL, NULL, NULL, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.583877+00', '2020-08-26 19:31:44.583877+00'); INSERT INTO contactcenter.duplicate_settings VALUES (1, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (2, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (3, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (4, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (5, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (6, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (7, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (8, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (9, -1, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (10, -1, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (11, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (12, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (13, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (14, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (15, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (16, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (17, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (18, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (19, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (20, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (21, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (22, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (23, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (24, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (25, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (26, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (27, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (28, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (29, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (30, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (31, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (32, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (33, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (34, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (35, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (36, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (37, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (38, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (39, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.duplicate_settings VALUES (40, 0, '2020-08-26 19:31:44.489879+00', '2020-08-26 19:31:44.489879+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (1, 0.00, 0.00, 'callLength', '{"callLengthInSeconds": 90}', 1, 1, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (2, 0.00, 0.00, 'callLength', '{"startTimerEvent": "OnConnectedCall", "callLengthInSeconds": 90}', 2, 2, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (3, 40.00, 0.00, 'callLength', '{"startTimerEvent": "OnIncomingCall", "callLengthInSeconds": 120}', 3, 3, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (4, 40.00, 0.00, 'callLength', '{"startTimerEvent": "OnIncomingCall", "callLengthInSeconds": 90}', 4, 4, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (5, 42.00, 0.00, 'callLength', '{"callLengthInSeconds": 120}', 5, 5, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (6, 0.00, 0.00, 'callLength', '{"startTimerEvent": "OnConnectedCall", "callLengthInSeconds": 90}', 6, 6, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (7, 0.00, 0.00, 'connectedCall', NULL, 7, 7, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (8, 0.00, 0.00, 'callLength', '{"startTimerEvent": "OnConnectedCall", "callLengthInSeconds": 120}', 8, 8, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (9, 42.00, 0.00, 'callLength', '{"startTimerEvent": "OnConnectedCall", "callLengthInSeconds": 120}', 9, 9, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (10, 0.00, 0.00, 'callLength', '{"startTimerEvent": "OnConnectedCall", "callLengthInSeconds": 120}', 10, 10, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (11, 40.00, 0.00, 'callLength', '{"callLengthInSeconds": 120}', 11, 11, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (12, 40.00, 0.00, 'callLength', '{"startTimerEvent": "OnConnectedCall", "callLengthInSeconds": 120}', 12, 12, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (13, 55.00, 0.00, 'callLength', '{"startTimerEvent": "OnIncomingCall", "callLengthInSeconds": 180}', 13, 13, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (14, 50.00, 0.00, 'callLength', '{"startTimerEvent": "OnConnectedCall", "callLengthInSeconds": 90}', 14, 14, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (15, 40.00, 0.00, 'callLength', '{"startTimerEvent": "OnConnectedCall", "callLengthInSeconds": 120}', 15, 15, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (16, 42.00, 0.00, 'callLength', '{"startTimerEvent": "OnConnectedCall", "callLengthInSeconds": 180}', 16, 16, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (17, 0.00, 0.00, 'callLength', '{"callLengthInSeconds": 90}', 17, 17, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (18, 45.00, 0.00, 'callLength', '{"callLengthInSeconds": 120}', 18, 18, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (19, 55.00, 0.00, 'callLength', '{"startTimerEvent": "OnIncomingCall", "callLengthInSeconds": 90}', 19, 19, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (20, 40.00, 0.00, 'callLength', '{"callLengthInSeconds": 120}', 20, 20, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (21, 0.00, 0.00, 'callLength', '{"callLengthInSeconds": 120}', 21, 21, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (22, 40.00, 0.00, 'callLength', '{"startTimerEvent": "OnIncomingCall", "callLengthInSeconds": 90}', 22, 22, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (23, 42.00, 0.00, 'callLength', '{"startTimerEvent": "OnConnectedCall", "callLengthInSeconds": 90}', 23, 23, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (24, 0.00, 0.00, 'callLength', '{"startTimerEvent": "OnConnectedCall", "callLengthInSeconds": 60}', 24, 24, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (25, 40.00, 0.00, 'callLength', '{"startTimerEvent": "OnIncomingCall", "callLengthInSeconds": 120}', 25, 25, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (26, 0.00, 0.00, 'callLength', '{"startTimerEvent": "OnIncomingCall", "callLengthInSeconds": 120}', 26, 26, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (27, 42.00, 0.00, 'callLength', '{"callLengthInSeconds": 120}', 27, 27, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (28, 40.00, 0.00, 'callLength', '{"startTimerEvent": "OnIncomingCall", "callLengthInSeconds": 120}', 28, 28, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (29, 45.00, 0.00, 'callLength', '{"startTimerEvent": "OnIncomingCall", "callLengthInSeconds": 90}', 29, 29, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (30, 0.00, 0.00, 'callLength', '{"startTimerEvent": "OnConnectedCall", "callLengthInSeconds": 90}', 30, 30, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (31, 0.00, 0.00, 'callLength', '{"startTimerEvent": "OnConnectedCall", "callLengthInSeconds": 90}', 31, 31, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (32, 40.00, 0.00, 'callLength', '{"callLengthInSeconds": 90}', 32, 32, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (33, 40.00, 0.00, 'callLength', '{"callLengthInSeconds": 90}', 33, 33, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (34, 42.00, 0.00, 'callLength', '{"callLengthInSeconds": 90}', 34, 34, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (35, 45.00, 0.00, 'callLength', '{"callLengthInSeconds": 90}', 35, 35, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (36, 0.00, 0.00, 'callLength', '{"startTimerEvent": "OnIncomingCall", "callLengthInSeconds": 120}', 36, 36, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (37, 50.00, 0.00, 'callLength', '{"startTimerEvent": "OnIncomingCall", "callLengthInSeconds": 120}', 37, 37, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (38, 45.00, 0.00, 'callLength', '{"callLengthInSeconds": 90}', 38, 38, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (39, 42.00, 0.00, 'callLength', '{"startTimerEvent": "OnIncomingCall", "callLengthInSeconds": 90}', 39, 39, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.call_conversion_settings VALUES (40, 55.00, 0.00, 'callLength', '{"startTimerEvent": "OnIncomingCall", "callLengthInSeconds": 120}', 40, 40, '2020-08-26 19:31:44.621581+00', '2020-08-26 19:31:44.621581+00'); INSERT INTO contactcenter.dial_settings VALUES (1, 1, '2020-08-26 19:31:44.45825+00', '2020-08-26 19:31:44.45825+00'); INSERT INTO contactcenter.dial_settings VALUES (2, 3, '2020-08-26 19:31:44.45825+00', '2020-08-26 19:31:44.45825+00'); INSERT INTO contactcenter.dial_settings VALUES (3, 3, '2020-08-26 19:31:44.45825+00', '2020-08-26 19:31:44.45825+00'); INSERT INTO contactcenter.dial_settings VALUES (4, 3, '2020-08-26 19:31:44.45825+00', '2020-08-26 19:31:44.45825+00'); INSERT INTO contactcenter.dial_settings VALUES (5, 3, '2020-08-26 19:31:44.45825+00', '2020-08-26 19:31:44.45825+00'); INSERT INTO contactcenter.dial_settings VALUES (6, 3, '2020-08-26 19:31:44.45825+00', '2020-08-26 19:31:44.45825+00'); INSERT INTO contactcenter.dial_settings VALUES (7, 15, '2020-08-26 19:31:44.45825+00', '2020-08-26 19:31:44.45825+00'); INSERT INTO contactcenter.dial_settings VALUES (8, 1, '2020-08-26 19:31:44.45825+00', '2020-08-26 19:31:44.45825+00'); INSERT INTO contactcenter.dial_settings VALUES (9, 10, '2020-08-26 19:31:44.45825+00', '2020-08-26 19:31:44.45825+00'); INSERT INTO contactcenter.dial_settings VALUES (10, 3, '2020-08-26 19:31:44.45825+00', '2020-08-26 19:31:44.45825+00'); INSERT INTO contactcenter.dial_settings VALUES (11, 3, '2020-08-26 19:31:44.45825+00', '2020-08-26 19:31:44.45825+00'); INSERT INTO contactcenter.dial_settings VALUES (12, 1, '2020-08-26 19:31:44.45825+00', '2020-08-26 19:31:44.45825+00'); INSERT INTO contactcenter.dial_settings VALUES (13, 3, '2020-08-26 19:31:44.45825+00', '2020-08-26 19:31:44.45825+00'); INSERT INTO contactcenter.duplicate_call_settings VALUES (1, false, false, false, '2020-08-26 19:31:44.441718+00', '2020-08-26 19:31:44.441718+00'); INSERT INTO contactcenter.duplicate_call_settings VALUES (2, false, false, true, '2020-08-26 19:31:44.441718+00', '2020-08-26 19:31:44.441718+00'); INSERT INTO contactcenter.duplicate_call_settings VALUES (3, false, true, false, '2020-08-26 19:31:44.441718+00', '2020-08-26 19:31:44.441718+00'); INSERT INTO contactcenter.duplicate_call_settings VALUES (4, false, false, true, '2020-08-26 19:31:44.441718+00', '2020-08-26 19:31:44.441718+00'); INSERT INTO contactcenter.duplicate_call_settings VALUES (5, false, false, true, '2020-08-26 19:31:44.441718+00', '2020-08-26 19:31:44.441718+00'); INSERT INTO contactcenter.duplicate_call_settings VALUES (6, false, true, false, '2020-08-26 19:31:44.441718+00', '2020-08-26 19:31:44.441718+00'); INSERT INTO contactcenter.duplicate_call_settings VALUES (7, false, true, true, '2020-08-26 19:31:44.441718+00', '2020-08-26 19:31:44.441718+00'); INSERT INTO contactcenter.duplicate_call_settings VALUES (8, false, true, false, '2020-08-26 19:31:44.441718+00', '2020-08-26 19:31:44.441718+00'); INSERT INTO contactcenter.duplicate_call_settings VALUES (9, false, true, true, '2020-08-26 19:31:44.441718+00', '2020-08-26 19:31:44.441718+00'); INSERT INTO contactcenter.duplicate_call_settings VALUES (10, false, false, false, '2020-08-26 19:31:44.441718+00', '2020-08-26 19:31:44.441718+00'); INSERT INTO contactcenter.duplicate_call_settings VALUES (11, false, true, false, '2020-08-26 19:31:44.441718+00', '2020-08-26 19:31:44.441718+00'); INSERT INTO contactcenter.duplicate_call_settings VALUES (12, false, true, false, '2020-08-26 19:31:44.441718+00', '2020-08-26 19:31:44.441718+00'); INSERT INTO contactcenter.duplicate_call_settings VALUES (13, false, false, true, '2020-08-26 19:31:44.441718+00', '2020-08-26 19:31:44.441718+00'); INSERT INTO contactcenter.mark_as_duplicate_settings VALUES (1, 'ON_CALL_LENGTH', 120, '2020-08-26 19:31:44.456707+00', '2020-08-26 19:31:44.456707+00'); INSERT INTO contactcenter.mark_as_duplicate_settings VALUES (2, 'ON_CONNECT', 0, '2020-08-26 19:31:44.456707+00', '2020-08-26 19:31:44.456707+00'); INSERT INTO contactcenter.mark_as_duplicate_settings VALUES (3, 'ON_CALL_LENGTH', 120, '2020-08-26 19:31:44.456707+00', '2020-08-26 19:31:44.456707+00'); INSERT INTO contactcenter.mark_as_duplicate_settings VALUES (4, 'ON_CONNECT', 0, '2020-08-26 19:31:44.456707+00', '2020-08-26 19:31:44.456707+00'); INSERT INTO contactcenter.mark_as_duplicate_settings VALUES (5, 'ON_CONNECT', 0, '2020-08-26 19:31:44.456707+00', '2020-08-26 19:31:44.456707+00'); INSERT INTO contactcenter.mark_as_duplicate_settings VALUES (6, 'ON_CALL_LENGTH', 180, '2020-08-26 19:31:44.456707+00', '2020-08-26 19:31:44.456707+00'); INSERT INTO contactcenter.mark_as_duplicate_settings VALUES (7, 'ON_CALL_LENGTH', 90, '2020-08-26 19:31:44.456707+00', '2020-08-26 19:31:44.456707+00'); INSERT INTO contactcenter.mark_as_duplicate_settings VALUES (8, 'ON_CALL_LENGTH', 120, '2020-08-26 19:31:44.456707+00', '2020-08-26 19:31:44.456707+00'); INSERT INTO contactcenter.mark_as_duplicate_settings VALUES (9, 'ON_CALL_LENGTH', 120, '2020-08-26 19:31:44.456707+00', '2020-08-26 19:31:44.456707+00'); INSERT INTO contactcenter.mark_as_duplicate_settings VALUES (10, 'ON_CALL_LENGTH', 120, '2020-08-26 19:31:44.456707+00', '2020-08-26 19:31:44.456707+00'); INSERT INTO contactcenter.mark_as_duplicate_settings VALUES (11, 'ON_CALL_LENGTH', 90, '2020-08-26 19:31:44.456707+00', '2020-08-26 19:31:44.456707+00'); INSERT INTO contactcenter.mark_as_duplicate_settings VALUES (12, 'ON_CALL_LENGTH', 120, '2020-08-26 19:31:44.456707+00', '2020-08-26 19:31:44.456707+00'); INSERT INTO contactcenter.mark_as_duplicate_settings VALUES (13, 'ON_CONNECT', 0, '2020-08-26 19:31:44.456707+00', '2020-08-26 19:31:44.456707+00'); INSERT INTO contactcenter.record_call_settings VALUES (1, true, true, false, true, '2020-08-26 19:31:44.473991+00', '2020-08-26 19:31:44.473991+00'); INSERT INTO contactcenter.record_call_settings VALUES (2, true, true, false, true, '2020-08-26 19:31:44.473991+00', '2020-08-26 19:31:44.473991+00'); INSERT INTO contactcenter.record_call_settings VALUES (3, true, true, false, true, '2020-08-26 19:31:44.473991+00', '2020-08-26 19:31:44.473991+00'); INSERT INTO contactcenter.record_call_settings VALUES (4, true, true, false, true, '2020-08-26 19:31:44.473991+00', '2020-08-26 19:31:44.473991+00'); INSERT INTO contactcenter.record_call_settings VALUES (5, true, true, false, true, '2020-08-26 19:31:44.473991+00', '2020-08-26 19:31:44.473991+00'); INSERT INTO contactcenter.record_call_settings VALUES (6, true, true, false, true, '2020-08-26 19:31:44.473991+00', '2020-08-26 19:31:44.473991+00'); INSERT INTO contactcenter.record_call_settings VALUES (7, true, true, false, true, '2020-08-26 19:31:44.473991+00', '2020-08-26 19:31:44.473991+00'); INSERT INTO contactcenter.record_call_settings VALUES (8, true, true, false, true, '2020-08-26 19:31:44.473991+00', '2020-08-26 19:31:44.473991+00'); INSERT INTO contactcenter.record_call_settings VALUES (9, true, true, false, true, '2020-08-26 19:31:44.473991+00', '2020-08-26 19:31:44.473991+00'); INSERT INTO contactcenter.record_call_settings VALUES (10, true, true, false, true, '2020-08-26 19:31:44.473991+00', '2020-08-26 19:31:44.473991+00'); INSERT INTO contactcenter.record_call_settings VALUES (11, true, true, false, true, '2020-08-26 19:31:44.473991+00', '2020-08-26 19:31:44.473991+00'); INSERT INTO contactcenter.record_call_settings VALUES (12, true, true, false, true, '2020-08-26 19:31:44.473991+00', '2020-08-26 19:31:44.473991+00'); INSERT INTO contactcenter.record_call_settings VALUES (13, true, true, false, true, '2020-08-26 19:31:44.473991+00', '2020-08-26 19:31:44.473991+00'); INSERT INTO contactcenter.spam_detection_settings VALUES (1, 0, false, '2020-08-26 19:31:44.437886+00', '2020-08-26 19:31:44.437886+00'); INSERT INTO contactcenter.spam_detection_settings VALUES (2, 0, false, '2020-08-26 19:31:44.437886+00', '2020-08-26 19:31:44.437886+00'); INSERT INTO contactcenter.spam_detection_settings VALUES (3, 2, false, '2020-08-26 19:31:44.437886+00', '2020-08-26 19:31:44.437886+00'); INSERT INTO contactcenter.spam_detection_settings VALUES (4, 0, false, '2020-08-26 19:31:44.437886+00', '2020-08-26 19:31:44.437886+00'); INSERT INTO contactcenter.spam_detection_settings VALUES (5, 0, false, '2020-08-26 19:31:44.437886+00', '2020-08-26 19:31:44.437886+00'); INSERT INTO contactcenter.spam_detection_settings VALUES (6, 0, false, '2020-08-26 19:31:44.437886+00', '2020-08-26 19:31:44.437886+00'); INSERT INTO contactcenter.spam_detection_settings VALUES (7, 2, false, '2020-08-26 19:31:44.437886+00', '2020-08-26 19:31:44.437886+00'); INSERT INTO contactcenter.spam_detection_settings VALUES (8, 0, false, '2020-08-26 19:31:44.437886+00', '2020-08-26 19:31:44.437886+00'); INSERT INTO contactcenter.spam_detection_settings VALUES (9, 0, false, '2020-08-26 19:31:44.437886+00', '2020-08-26 19:31:44.437886+00'); INSERT INTO contactcenter.spam_detection_settings VALUES (10, 0, false, '2020-08-26 19:31:44.437886+00', '2020-08-26 19:31:44.437886+00'); INSERT INTO contactcenter.campaigns VALUES (1, 'MGLMailers', NULL, 'US', true, 'WEIGHT_BY_TARGETS_AVAILABLE', NULL, NULL, true, false, 1, NULL, NULL, NULL, false, 'Medigap Mailers - MGL', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.556969+00', '2020-08-26 19:31:44.556969+00', 1, 1, 1, 1, NULL, NULL); INSERT INTO contactcenter.campaigns VALUES (2, '', NULL, 'US', false, 'WEIGHT_BY_TARGETS_AVAILABLE', NULL, NULL, true, false, NULL, NULL, NULL, NULL, false, 'RaviTest', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.556969+00', '2020-08-26 19:31:44.556969+00', 2, 2, 2, 2, NULL, NULL); INSERT INTO contactcenter.campaigns VALUES (3, 'TVPHXC11', NULL, 'US', true, 'WEIGHT_BY_TARGETS_AVAILABLE', NULL, NULL, true, false, 2, NULL, NULL, NULL, false, 'SMS Transfers', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.556969+00', '2020-08-26 19:31:44.556969+00', 3, 3, 3, 3, NULL, NULL); INSERT INTO contactcenter.campaigns VALUES (4, '', NULL, 'US', true, 'WEIGHT_BY_TARGETS_AVAILABLE', NULL, NULL, true, false, NULL, NULL, NULL, NULL, false, 'RaviTest', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', false, '2020-08-26 19:31:44.556969+00', '2020-08-26 19:31:44.556969+00', 4, 4, 4, 4, NULL, NULL); INSERT INTO contactcenter.campaigns VALUES (5, '', NULL, 'US', true, 'WEIGHT_BY_TARGETS_AVAILABLE', NULL, NULL, true, false, 3, NULL, NULL, NULL, false, 'Toll Free IVR', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.556969+00', '2020-08-26 19:31:44.556969+00', 5, 5, 5, 5, NULL, NULL); INSERT INTO contactcenter.campaigns VALUES (6, 'MGLDR', NULL, 'US', true, 'WEIGHT_BY_TARGETS_AVAILABLE', NULL, NULL, true, false, 4, NULL, NULL, NULL, false, 'MAPD Dedicated', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.556969+00', '2020-08-26 19:31:44.556969+00', 6, 6, 6, 6, NULL, NULL); INSERT INTO contactcenter.campaigns VALUES (7, 'MGL-Charlie', NULL, 'US', true, 'WEIGHT_BY_TARGETS_AVAILABLE', NULL, NULL, true, false, 5, NULL, NULL, NULL, false, 'MGL Charlie Transfers', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.556969+00', '2020-08-26 19:31:44.556969+00', 7, 7, 7, 7, NULL, NULL); INSERT INTO contactcenter.campaigns VALUES (8, 'MGL-Failover-Mailers', NULL, 'US', true, 'WEIGHT_BY_TARGETS_AVAILABLE', NULL, NULL, true, false, 6, NULL, NULL, NULL, false, 'Mailers (RAW Calls Failover)', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.556969+00', '2020-08-26 19:31:44.556969+00', 8, 8, 8, 8, NULL, NULL); INSERT INTO contactcenter.campaigns VALUES (9, 'MGLFB-Calls', NULL, 'US', true, 'WEIGHT_BY_TARGETS_AVAILABLE', NULL, NULL, true, false, 7, NULL, NULL, NULL, false, 'MGL FB LiveCalls - Transfers', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.556969+00', '2020-08-26 19:31:44.556969+00', 9, 9, 9, 9, NULL, NULL); INSERT INTO contactcenter.campaigns VALUES (10, 'CBSIN', NULL, 'US', true, 'WEIGHT_BY_TARGETS_AVAILABLE', NULL, NULL, true, true, 8, NULL, NULL, NULL, false, 'CBS Inbound', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.556969+00', '2020-08-26 19:31:44.556969+00', 10, 10, 10, 10, NULL, NULL); INSERT INTO contactcenter.campaigns VALUES (11, 'FBTRANS', NULL, 'US', true, 'WEIGHT_BY_TARGETS_AVAILABLE', NULL, NULL, true, false, 9, NULL, NULL, NULL, false, 'MGL FB Transfer', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.556969+00', '2020-08-26 19:31:44.556969+00', 11, 11, 11, 11, NULL, NULL); INSERT INTO contactcenter.campaigns VALUES (12, 'MGLMailers', NULL, 'US', true, 'WEIGHT_BY_TARGETS_AVAILABLE', NULL, NULL, true, false, 10, NULL, NULL, NULL, false, 'Mailers (External Transfer)', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.556969+00', '2020-08-26 19:31:44.556969+00', 12, 12, 12, 12, NULL, NULL); INSERT INTO contactcenter.campaigns VALUES (13, '', NULL, 'US', false, 'WEIGHT_BY_TARGETS_AVAILABLE', NULL, NULL, true, false, NULL, NULL, NULL, NULL, false, 'RaviTest2', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', true, '2020-08-26 19:31:44.556969+00', '2020-08-26 19:31:44.556969+00', 13, 13, 13, 13, NULL, NULL); INSERT INTO contactcenter.campaign_affiliates VALUES (1, 1, '14d344b9-93de-43e1-8264-94742e379f88', '2020-08-26 19:32:10.486168+00', '2020-08-26 19:32:10.486168+00'); INSERT INTO contactcenter.campaign_affiliates VALUES (2, 3, '0cf5c6ef-4a62-4c99-8e20-77145e65e50c', '2020-08-26 19:32:10.486168+00', '2020-08-26 19:32:10.486168+00'); INSERT INTO contactcenter.campaign_affiliates VALUES (3, 4, '14d344b9-93de-43e1-8264-94742e379f88', '2020-08-26 19:32:10.486168+00', '2020-08-26 19:32:10.486168+00'); INSERT INTO contactcenter.campaign_affiliates VALUES (4, 5, '14d344b9-93de-43e1-8264-94742e379f88', '2020-08-26 19:32:10.486168+00', '2020-08-26 19:32:10.486168+00'); INSERT INTO contactcenter.campaign_affiliates VALUES (5, 6, '14d344b9-93de-43e1-8264-94742e379f88', '2020-08-26 19:32:10.486168+00', '2020-08-26 19:32:10.486168+00'); INSERT INTO contactcenter.campaign_affiliates VALUES (6, 6, '8359b084-aa49-4b84-b257-2d5e86fcae59', '2020-08-26 19:32:10.486168+00', '2020-08-26 19:32:10.486168+00'); INSERT INTO contactcenter.campaign_affiliates VALUES (7, 7, '14d344b9-93de-43e1-8264-94742e379f88', '2020-08-26 19:32:10.486168+00', '2020-08-26 19:32:10.486168+00'); INSERT INTO contactcenter.campaign_affiliates VALUES (8, 8, '14d344b9-93de-43e1-8264-94742e379f88', '2020-08-26 19:32:10.486168+00', '2020-08-26 19:32:10.486168+00'); INSERT INTO contactcenter.campaign_affiliates VALUES (9, 9, '14d344b9-93de-43e1-8264-94742e379f88', '2020-08-26 19:32:10.486168+00', '2020-08-26 19:32:10.486168+00'); INSERT INTO contactcenter.campaign_affiliates VALUES (10, 10, '5a4b7fce-4b46-421d-b97c-55aed10a07f5', '2020-08-26 19:32:10.486168+00', '2020-08-26 19:32:10.486168+00'); INSERT INTO contactcenter.campaign_affiliates VALUES (11, 11, '14d344b9-93de-43e1-8264-94742e379f88', '2020-08-26 19:32:10.486168+00', '2020-08-26 19:32:10.486168+00'); INSERT INTO contactcenter.campaign_affiliates VALUES (12, 12, 'a01bc382-0505-4312-b481-374be22346b8', '2020-08-26 19:32:10.486168+00', '2020-08-26 19:32:10.486168+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (1, 1, 1, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (2, 1, 2, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (3, 3, 3, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (4, 3, 4, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (5, 3, 5, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (6, 3, 6, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (7, 4, 7, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (8, 5, 8, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (9, 6, 9, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (10, 6, 10, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (11, 6, 11, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (12, 6, 12, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (13, 6, 13, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (14, 6, 14, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (15, 7, 15, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (16, 7, 16, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (17, 7, 17, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (18, 7, 18, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (19, 7, 19, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (20, 7, 20, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (21, 7, 21, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (22, 8, 22, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (23, 8, 23, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (24, 8, 24, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (25, 9, 25, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (26, 9, 26, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (27, 9, 27, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (28, 9, 28, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (29, 9, 29, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (30, 9, 30, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (31, 10, 31, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (32, 11, 32, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (33, 11, 33, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (34, 11, 34, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (35, 11, 35, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (36, 11, 36, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (37, 12, 37, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (38, 12, 38, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (39, 12, 39, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.campaign_call_routes VALUES (40, 12, 40, '2020-08-26 19:31:44.640395+00', '2020-08-26 19:31:44.640395+00'); INSERT INTO contactcenter.tag_routing_tables VALUES (2, '2020-08-26 19:30:31.570632+00', '2020-08-26 19:30:31.570632+00'); INSERT INTO contactcenter.tag_routing_tables VALUES (3, '2020-08-26 19:30:31.570632+00', '2020-08-26 19:30:31.570632+00'); INSERT INTO contactcenter.tag_routing_tables VALUES (4, '2020-08-26 19:30:31.570632+00', '2020-08-26 19:30:31.570632+00'); INSERT INTO contactcenter.tag_routing_tables VALUES (5, '2020-08-26 19:30:31.570632+00', '2020-08-26 19:30:31.570632+00'); INSERT INTO contactcenter.tag_routing_tables VALUES (6, '2020-08-26 19:30:31.570632+00', '2020-08-26 19:30:31.570632+00'); INSERT INTO contactcenter.tag_routing_tables VALUES (7, '2020-08-26 19:30:31.570632+00', '2020-08-26 19:30:31.570632+00'); INSERT INTO contactcenter.tag_routing_tables VALUES (8, '2020-08-26 19:30:31.570632+00', '2020-08-26 19:30:31.570632+00'); INSERT INTO contactcenter.tag_routing_tables VALUES (9, '2020-08-26 19:30:31.570632+00', '2020-08-26 19:30:31.570632+00'); INSERT INTO contactcenter.knex_migrations VALUES (1, '20200713164029_app_configuration.js', 1, '2020-08-26 19:19:39.783+00'); INSERT INTO contactcenter.knex_migrations VALUES (2, '20200716123816_accounts.js', 1, '2020-08-26 19:19:39.792+00'); INSERT INTO contactcenter.knex_migrations VALUES (3, '20200716133738_buyers.js', 1, '2020-08-26 19:19:39.801+00'); INSERT INTO contactcenter.knex_migrations VALUES (4, '20200724155721_number_assignment_settings.js', 1, '2020-08-26 19:19:39.807+00'); INSERT INTO contactcenter.knex_migrations VALUES (5, '20200727122050_spam_detection_settings.js', 1, '2020-08-26 19:19:39.812+00'); INSERT INTO contactcenter.knex_migrations VALUES (6, '20200727133629_integrations.js', 1, '2020-08-26 19:19:39.819+00'); INSERT INTO contactcenter.knex_migrations VALUES (7, '20200727153809_routing_priorities.js', 1, '2020-08-26 19:19:39.824+00'); INSERT INTO contactcenter.knex_migrations VALUES (8, '20200727161824_integration_conversion_sets.js', 1, '2020-08-26 19:19:39.828+00'); INSERT INTO contactcenter.knex_migrations VALUES (9, '20200727163038_sip_numbers.js', 1, '2020-08-26 19:19:39.834+00'); INSERT INTO contactcenter.knex_migrations VALUES (10, '20200727172047_operation_times.js', 1, '2020-08-26 19:19:39.839+00'); INSERT INTO contactcenter.knex_migrations VALUES (11, '20200727173914_schedules_and_capacities.js', 1, '2020-08-26 19:19:39.844+00'); INSERT INTO contactcenter.knex_migrations VALUES (12, '20200728091522_criterias.js', 1, '2020-08-26 19:19:39.85+00'); INSERT INTO contactcenter.knex_migrations VALUES (13, '20200728133734_integration_settings.js', 1, '2020-08-26 19:19:39.861+00'); INSERT INTO contactcenter.knex_migrations VALUES (14, '20200728133916_targets.js', 1, '2020-08-26 19:19:39.884+00'); INSERT INTO contactcenter.knex_migrations VALUES (15, '20200728133947_call_instructions.js', 1, '2020-08-26 19:19:39.892+00'); INSERT INTO contactcenter.knex_migrations VALUES (16, '20200728134712_office_breaks.js', 1, '2020-08-26 19:19:39.909+00'); INSERT INTO contactcenter.knex_migrations VALUES (17, '20200728135026_open_settings.js', 1, '2020-08-26 19:19:39.927+00'); INSERT INTO contactcenter.knex_migrations VALUES (18, '20200728135448_tags.js', 1, '2020-08-26 19:19:39.936+00'); INSERT INTO contactcenter.knex_migrations VALUES (19, '20200728135704_numbers.js', 1, '2020-08-26 19:19:39.959+00'); INSERT INTO contactcenter.knex_migrations VALUES (20, '20200728135808_call_routes.js', 1, '2020-08-26 19:19:39.978+00'); INSERT INTO contactcenter.knex_migrations VALUES (21, '20200728140142_tag_routing_tables.js', 1, '2020-08-26 19:19:39.984+00'); INSERT INTO contactcenter.knex_migrations VALUES (22, '20200728140454_campaigns.js', 1, '2020-08-26 19:19:40.001+00'); INSERT INTO contactcenter.knex_migrations VALUES (23, '20200729022808_target_criterias.js', 1, '2020-08-26 19:19:40.007+00'); INSERT INTO contactcenter.knex_migrations VALUES (24, '20200729023243_sip_add_foreign_instruction.js', 1, '2020-08-26 19:19:40.011+00'); INSERT INTO contactcenter.knex_migrations VALUES (25, '20200729023532_criteria_add_foreign_tagroutablerule.js', 1, '2020-08-26 19:19:40.027+00'); INSERT INTO contactcenter.knex_migrations VALUES (26, '20200729024019_target_criteria_add_foreign_target_tagroutablerule.js', 1, '2020-08-26 19:19:40.037+00'); INSERT INTO contactcenter.knex_migrations VALUES (27, '20200729024221_target_add_foreign_call_instruction.js', 1, '2020-08-26 19:19:40.042+00'); INSERT INTO contactcenter.knex_migrations VALUES (28, '20200729031509_number_tags.js', 1, '2020-08-26 19:19:40.046+00'); INSERT INTO contactcenter.knex_migrations VALUES (29, '20200729031617_number_tag_add_foreign_number_tag.js', 1, '2020-08-26 19:19:40.05+00'); INSERT INTO contactcenter.knex_migrations VALUES (30, '20200729042529_campaign_call_routes.js', 1, '2020-08-26 19:19:40.055+00'); INSERT INTO contactcenter.knex_migrations VALUES (31, '20200729042649_campaign_call_route_add_foreign_campaign_call_route.js', 1, '2020-08-26 19:19:40.059+00'); INSERT INTO contactcenter.knex_migrations VALUES (32, '20200729092858_affiliates.js', 1, '2020-08-26 19:19:40.072+00'); INSERT INTO contactcenter.knex_migrations VALUES (33, '20200729093106_campaign_affiliates.js', 1, '2020-08-26 19:19:40.078+00'); INSERT INTO contactcenter.knex_migrations VALUES (34, '20200729093257_campaign_affiliate_add_foreign_campaign_affiliate.js', 1, '2020-08-26 19:19:40.081+00'); INSERT INTO contactcenter.knex_migrations VALUES (35, '20200730114550_number_add_foreign_keys.js', 1, '2020-08-26 19:19:40.088+00'); INSERT INTO contactcenter.knex_migrations VALUES (36, '20200730155346_numbers.js', 1, '2020-08-26 19:19:40.091+00'); INSERT INTO contactcenter.knex_migrations VALUES (37, '20200730163850_numbers.js', 1, '2020-08-26 19:19:40.093+00'); INSERT INTO contactcenter.knex_migrations VALUES (38, '20200804162602_criteria_add_col_tagids.js', 1, '2020-08-26 19:19:40.096+00'); INSERT INTO contactcenter.knex_migrations VALUES (39, '20200804234136_office_break_add_foreign_open_setting.js', 1, '2020-08-26 19:19:40.099+00'); INSERT INTO contactcenter.knex_migrations VALUES (40, '20200805074540_schedules_and_capacities_rename_timezone.js', 1, '2020-08-26 19:19:40.1+00'); INSERT INTO contactcenter.knex_migrations VALUES (41, '20200805131550_call_conversion_settings.js', 1, '2020-08-26 19:19:40.108+00'); INSERT INTO contactcenter.knex_migrations VALUES (42, '20200805135744_duplicate_settings.js', 1, '2020-08-26 19:19:40.112+00'); INSERT INTO contactcenter.knex_migrations VALUES (43, '20200805140521_call_conversion_setting_add_foreign_duplicate_setting.js', 1, '2020-08-26 19:19:40.115+00'); INSERT INTO contactcenter.knex_migrations VALUES (44, '20200805144017_duplicate_call_settings.js', 1, '2020-08-26 19:19:40.12+00'); INSERT INTO contactcenter.knex_migrations VALUES (45, '20200805144305_campaign_add_dupcall.js', 1, '2020-08-26 19:19:40.123+00'); INSERT INTO contactcenter.knex_migrations VALUES (46, '20200805160141_campaign_add_foreign_dupcall.js', 1, '2020-08-26 19:19:40.126+00'); INSERT INTO contactcenter.knex_migrations VALUES (47, '20200806110933_mark_as_duplicate_settings.js', 1, '2020-08-26 19:19:40.13+00'); INSERT INTO contactcenter.knex_migrations VALUES (48, '20200806111301_dial_settings.js', 1, '2020-08-26 19:19:40.133+00'); INSERT INTO contactcenter.knex_migrations VALUES (49, '20200806113934_record_call_settings.js', 1, '2020-08-26 19:19:40.139+00'); INSERT INTO contactcenter.knex_migrations VALUES (50, '20200806124044_campaign_add_dup_dial_record_settings.js', 1, '2020-08-26 19:19:40.142+00'); INSERT INTO contactcenter.knex_migrations VALUES (51, '20200806124719_campaign_foreign_dup_dial_record_settings.js', 1, '2020-08-26 19:19:40.146+00'); INSERT INTO contactcenter.knex_migrations VALUES (52, '20200807154555_open_settings_add_isoWeekday.js', 1, '2020-08-26 19:19:40.148+00'); INSERT INTO contactcenter.knex_migrations VALUES (53, '20200818181753_campaigns_add_workflowsid.js', 1, '2020-08-26 19:19:40.15+00'); INSERT INTO contactcenter.knex_migrations VALUES (54, '20200818182011_missed_calls.js', 1, '2020-08-26 19:19:40.157+00'); INSERT INTO contactcenter.knex_migrations VALUES (55, '20200819110603_campaigns_add_queuesid.js', 1, '2020-08-26 19:19:40.159+00'); INSERT INTO contactcenter.knex_migrations_lock VALUES (1, 0); INSERT INTO contactcenter.number_assignment_settings VALUES (1, 'US', NULL, '561', NULL, NULL, false, '2020-08-26 19:32:26.718972+00', '2020-08-26 19:32:26.718972+00'); INSERT INTO contactcenter.number_assignment_settings VALUES (2, 'US', NULL, NULL, NULL, NULL, false, '2020-08-26 19:32:26.718972+00', '2020-08-26 19:32:26.718972+00'); INSERT INTO contactcenter.number_assignment_settings VALUES (3, 'US', NULL, '607', NULL, NULL, false, '2020-08-26 19:32:26.718972+00', '2020-08-26 19:32:26.718972+00'); INSERT INTO contactcenter.number_assignment_settings VALUES (4, 'US', NULL, NULL, NULL, NULL, false, '2020-08-26 19:32:26.718972+00', '2020-08-26 19:32:26.718972+00'); INSERT INTO contactcenter.number_assignment_settings VALUES (5, 'US', NULL, NULL, NULL, NULL, false, '2020-08-26 19:32:26.718972+00', '2020-08-26 19:32:26.718972+00'); INSERT INTO contactcenter.number_assignment_settings VALUES (6, 'US', NULL, NULL, NULL, NULL, false, '2020-08-26 19:32:26.718972+00', '2020-08-26 19:32:26.718972+00'); INSERT INTO contactcenter.number_assignment_settings VALUES (7, 'US', NULL, NULL, NULL, NULL, false, '2020-08-26 19:32:26.718972+00', '2020-08-26 19:32:26.718972+00'); INSERT INTO contactcenter.number_assignment_settings VALUES (8, 'US', NULL, '831', NULL, NULL, false, '2020-08-26 19:32:26.718972+00', '2020-08-26 19:32:26.718972+00'); INSERT INTO contactcenter.number_assignment_settings VALUES (9, 'US', NULL, '954', NULL, NULL, false, '2020-08-26 19:32:26.718972+00', '2020-08-26 19:32:26.718972+00'); INSERT INTO contactcenter.number_assignment_settings VALUES (10, 'US', NULL, NULL, NULL, NULL, false, '2020-08-26 19:32:26.718972+00', '2020-08-26 19:32:26.718972+00'); INSERT INTO contactcenter.number_assignment_settings VALUES (11, 'US', NULL, '561', NULL, NULL, false, '2020-08-26 19:32:26.718972+00', '2020-08-26 19:32:26.718972+00'); INSERT INTO contactcenter.number_assignment_settings VALUES (12, 'US', NULL, NULL, NULL, NULL, false, '2020-08-26 19:32:26.718972+00', '2020-08-26 19:32:26.718972+00'); INSERT INTO contactcenter.numbers VALUES (1, 'DRIPS Inbound', 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', NULL, '+15619486069', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, 1, NULL, NULL, '2019-08-05 18:11:45.595373+00', '2020-07-05 00:00:00+00', '2020-08-03 00:00:00+00', '2020-07-03 23:00:13.415856+00', '0001-01-01 04:56:02+00', true, 5, false, false, 1, false, 0, false, '14d344b9-93de-43e1-8264-94742e379f88', true, '2020-08-26 19:32:26.732603+00', '2020-08-26 19:32:26.732603+00', '(561) 948-6069', '15619486069', 'telnyx', '1299489388324979809', '1330775887238399268', '1330775887238399268', '{}'); INSERT INTO contactcenter.numbers VALUES (2, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', NULL, '+12142538449', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, 3, NULL, NULL, '2020-02-26 16:59:41.251138+00', '2020-06-26 00:00:00+00', '2020-07-24 00:00:00+00', '2020-06-24 23:00:12.717183+00', '0001-01-01 04:56:02+00', true, 26, false, false, 2, false, 0, false, '0cf5c6ef-4a62-4c99-8e20-77145e65e50c', true, '2020-08-26 19:32:26.732603+00', '2020-08-26 19:32:26.732603+00', '(214) 253-8449', '12142538449', 'telnyx', '1299489388324979809', '1330770259145131974', '1330770259145131974', '{INTSET7b517314c20e448ab69ed1c0ff978fce}'); INSERT INTO contactcenter.numbers VALUES (3, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', NULL, '+16074639533', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, 4, NULL, NULL, '2020-07-22 19:52:14.39812+00', '2020-07-22 00:00:00+00', '2020-08-20 00:00:00+00', '2020-07-22 00:00:00+00', '0001-01-01 04:56:02+00', true, 22, false, false, 3, false, 0, false, '14d344b9-93de-43e1-8264-94742e379f88', true, '2020-08-26 19:32:26.732603+00', '2020-08-26 19:32:26.732603+00', '(607) 463-9533', '16074639533', 'telnyx', '1299489388324979809', '1421885263956674328', '', NULL); INSERT INTO contactcenter.numbers VALUES (4, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', NULL, '+18203002464', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, 5, NULL, NULL, '2020-02-28 22:13:16.844155+00', '2020-06-28 00:00:00+00', '2020-07-26 00:00:00+00', '2020-06-26 23:00:15.18505+00', '0001-01-01 04:56:02+00', true, 28, false, false, 4, false, 0, false, '14d344b9-93de-43e1-8264-94742e379f88', true, '2020-08-26 19:32:26.732603+00', '2020-08-26 19:32:26.732603+00', NULL, '18203002464', 'telnyx', '1299489388324979809', '1344371865061164782', '1344371865061164782', NULL); INSERT INTO contactcenter.numbers VALUES (5, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', NULL, '+18053197236', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, 6, NULL, NULL, '2019-08-07 15:38:52.151843+00', '2020-07-07 00:00:00+00', '2020-08-05 00:00:00+00', '2020-07-05 23:00:15.806754+00', '0001-01-01 04:56:02+00', true, 7, false, false, 5, false, 0, false, '14d344b9-93de-43e1-8264-94742e379f88', true, '2020-08-26 19:32:26.732603+00', '2020-08-26 19:32:26.732603+00', '(805) 319-7236', '18053197236', 'telnyx', '1299489388324979809', '1330780934395397158', '1330780934395397158', '{INTSETeb895f2c6692458cb39143aa284bcbe1}'); INSERT INTO contactcenter.numbers VALUES (6, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', NULL, '+18787770878', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, 6, NULL, NULL, '2020-04-29 19:57:34.070953+00', '2020-06-29 00:00:00+00', '2020-07-27 00:00:00+00', '2020-06-27 23:00:19.953514+00', '0001-01-01 04:56:02+00', true, 29, false, false, 6, false, 0, false, '8359b084-aa49-4b84-b257-2d5e86fcae59', true, '2020-08-26 19:32:26.732603+00', '2020-08-26 19:32:26.732603+00', '(878) 777-0878', '18787770878', 'telnyx', '1299489388324979809', '1361006785279821077', '', NULL); INSERT INTO contactcenter.numbers VALUES (7, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', NULL, '+14103192217', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, 7, NULL, NULL, '2019-07-25 14:53:26.979544+00', '2020-06-25 00:00:00+00', '2020-07-23 00:00:00+00', '2020-06-23 23:00:15.976768+00', '0001-01-01 04:56:02+00', true, 25, false, false, 7, false, 0, false, '14d344b9-93de-43e1-8264-94742e379f88', true, '2020-08-26 19:32:26.732603+00', '2020-08-26 19:32:26.732603+00', '(410) 319-2217', '14103192217', 'telnyx', '1299489388324979809', '1330770279923714012', '1330770279923714012', '{INTSET3f04f31733fe44809d2a74a1f670171a}'); INSERT INTO contactcenter.numbers VALUES (8, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', NULL, '+18312301558', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, 8, NULL, NULL, '2020-06-24 15:28:53.473168+00', '2020-07-24 00:00:00+00', '2020-08-22 00:00:00+00', '2020-07-22 23:00:13.619483+00', '0001-01-01 04:56:02+00', true, 24, false, false, 8, false, 0, false, '14d344b9-93de-43e1-8264-94742e379f88', true, '2020-08-26 19:32:26.732603+00', '2020-08-26 19:32:26.732603+00', '(831) 230-1558', '18312301558', 'telnyx', '1299489388324979809', '1401458996279248352', '', NULL); INSERT INTO contactcenter.numbers VALUES (9, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', NULL, '+19544801751', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, 9, NULL, NULL, '2019-11-01 19:19:08.94234+00', '2020-07-01 00:00:00+00', '2020-07-30 00:00:00+00', '2020-06-29 23:00:10.112361+00', '0001-01-01 04:56:02+00', true, 1, false, false, 9, false, 0, false, '14d344b9-93de-43e1-8264-94742e379f88', true, '2020-08-26 19:32:26.732603+00', '2020-08-26 19:32:26.732603+00', '(954) 480-1751', '19544801751', 'telnyx', '1299489388324979809', '1330780766958782376', '1330780766958782376', '{INTSET51017f59b84e42b7bfcaeaa10ca6299c}'); INSERT INTO contactcenter.numbers VALUES (10, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', NULL, '+19282910542', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, 10, NULL, NULL, '2020-03-30 20:27:14.117524+00', '2020-06-30 00:00:00+00', '2020-07-28 00:00:00+00', '2020-06-28 23:00:05.674131+00', '0001-01-01 04:56:02+00', true, 30, false, false, 10, false, 0, false, '5a4b7fce-4b46-421d-b97c-55aed10a07f5', true, '2020-08-26 19:32:26.732603+00', '2020-08-26 19:32:26.732603+00', '(928) 291-0542', '19282910542', 'telnyx', '1299489388324979809', '1339278450661263006', '1339278450661263006', '{INTSET7fec5024be0a4fa383892658ce145a51}'); INSERT INTO contactcenter.numbers VALUES (11, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', NULL, '+15614489237', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, 11, NULL, NULL, '2019-10-26 14:40:31.74225+00', '2020-06-26 00:00:00+00', '2020-07-24 00:00:00+00', '2020-06-24 23:00:12.717183+00', '0001-01-01 04:56:02+00', true, 26, false, false, 11, false, 0, false, '14d344b9-93de-43e1-8264-94742e379f88', true, '2020-08-26 19:32:26.732603+00', '2020-08-26 19:32:26.732603+00', '(561) 448-9237', '15614489237', 'telnyx', '1299489388324979809', '1330775925171684731', '1330775925171684731', '{INTSETf28144bc60e34b7bad4e7b3fbdeb18e5}'); INSERT INTO contactcenter.numbers VALUES (12, NULL, 'e402b4fb-2887-4c1b-ae5c-df8b3e3ddbe0', NULL, '+19292017087', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, 12, NULL, NULL, '2020-02-26 18:06:31.122141+00', '2020-06-26 00:00:00+00', '2020-07-24 00:00:00+00', '2020-06-24 23:00:12.717183+00', '0001-01-01 04:56:02+00', true, 26, false, false, 12, false, 0, false, 'a01bc382-0505-4312-b481-374be22346b8', true, '2020-08-26 19:32:26.732603+00', '2020-08-26 19:32:26.732603+00', '(929) 201-7087', '19292017087', 'telnyx', '1299489388324979809', '1330780594790991655', '1330780594790991655', '{INTSETcad99f0b46234e2591fcb7981289397e}'); INSERT INTO contactcenter.tags VALUES (1, 'PlacementId', NULL, 'PlacementInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (2, 'LandingPageId', NULL, 'PlacementInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (3, 'LandingPageVersion', NULL, 'PlacementInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (4, 'NumberPoolId', NULL, 'PlacementInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (5, 'NumberPoolName', NULL, 'PlacementInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (6, 'SearchTerm', NULL, 'PlacementInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (7, 'SearchKeyWord', NULL, 'PlacementInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (8, 'UTCHour', NULL, 'Time', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (9, 'UTCMinute', NULL, 'Time', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (10, 'UTCSecond', NULL, 'Time', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (11, 'UTCWeekDay', NULL, 'Date', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (12, 'UTCDay', NULL, 'Date', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (13, 'UTCMonth', NULL, 'Date', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (14, 'UTCYear', NULL, 'Date', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (15, 'Name', NULL, 'Publisher', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (16, 'Company', NULL, 'Publisher', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (17, 'Id', NULL, 'Publisher', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (18, 'SubId', NULL, 'Publisher', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (19, 'ReplacementNumber', NULL, 'Publisher', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (20, 'Name', NULL, 'Campaign', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (21, 'Id', NULL, 'Campaign', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (22, 'TrackingId', NULL, 'Campaign', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (23, 'Number', NULL, 'InboundNumber', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (24, 'Number-NoPlus', NULL, 'InboundNumber', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (25, 'CountryCode', NULL, 'InboundNumber', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (26, 'CountryDigits', NULL, 'InboundNumber', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (27, 'AreaCode', NULL, 'InboundNumber', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (28, 'IsPhoneNumberValid', NULL, 'InboundNumber', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (29, 'Prefix', NULL, 'InboundNumber', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (30, 'Suffix', NULL, 'InboundNumber', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (31, 'Number', NULL, 'DialedNumber', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (32, 'Name', NULL, 'DialedNumber', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (33, 'Total', NULL, 'CallLength', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (34, 'FromConnect', NULL, 'CallLength', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (35, 'FromDial', NULL, 'CallLength', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (36, 'Name', NULL, 'Target', 'Connection', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (37, 'Id', NULL, 'Target', 'Connection', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (38, 'SubId', NULL, 'Target', 'Connection', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (39, 'Id', NULL, 'Buyer', 'Connection', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (40, 'Name', NULL, 'Buyer', 'Connection', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (41, 'SubId', NULL, 'Buyer', 'Connection', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (42, 'RecordingUrl', NULL, 'Recording', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (43, 'Country', '', 'Geo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (44, 'CountryCode', '', 'Geo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (45, 'SubDivision', '', 'Geo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (46, 'SubDivisionCode', '', 'Geo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (47, 'City', '', 'Geo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (48, 'ZipCode', '', 'Geo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (49, 'Latitude', '', 'Geo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (50, 'Longitude', '', 'Geo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (51, 'IsMobile', '', 'Technology', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (52, 'UserAgentString', '', 'Technology', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (53, 'OS', '', 'Technology', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (54, 'OSVersion', '', 'Technology', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (55, 'Browser', '', 'Technology', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (56, 'BrowserVersion', '', 'Technology', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (57, 'IPAddress', '', 'Technology', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (58, 'ISP', '', 'ConnectionInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (59, 'OrganizationName', '', 'ConnectionInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (60, 'AutonomousName', '', 'ConnectionInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (61, 'AutonomousSystemNumber', '', 'ConnectionInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (62, 'ReferrerPage', '', 'RequestInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (63, 'LandingPageUrl', '', 'RequestInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (64, 'Width', '', 'ScreenInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (65, 'Height', '', 'ScreenInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (66, 'PixelDensity', '', 'ScreenInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (67, 'ColorDepth', '', 'ScreenInfo', 'JSTag', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (68, 'Region', NULL, 'InboundNumber', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (69, 'State', NULL, 'InboundNumber', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (70, 'Province', NULL, 'InboundNumber', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (71, 'ProvinceCode', NULL, 'InboundNumber', 'Call', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (72, 'Sale', '', 'Target', 'User', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (73, 'First Name', '', 'firstname', 'User', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.tags VALUES (74, 'Last Name', '', 'lastname', 'User', NULL, '2020-08-26 19:28:43.35119+00', '2020-08-26 19:28:43.35119+00'); INSERT INTO contactcenter.operation_times VALUES (1, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (2, 0, 21, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (3, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (4, 0, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (5, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (6, 0, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (7, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (8, 0, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (9, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (10, 0, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (11, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (12, 0, 16, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (13, 0, 10, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (14, 0, 15, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (15, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (16, 0, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (17, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (18, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (19, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (20, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (21, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (22, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (23, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (24, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (25, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (26, 30, 16, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (27, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (28, 0, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (29, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (30, 10, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (31, 55, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (32, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (33, 55, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (34, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (35, 55, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (36, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (37, 55, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (38, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (39, 55, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (40, 40, 16, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (41, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (42, 10, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (43, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (44, 0, 21, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (45, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (46, 0, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (47, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (48, 0, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (49, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (50, 0, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (51, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (52, 0, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (53, 0, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (54, 0, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (55, 0, 10, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (56, 0, 15, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (57, 10, 10, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (58, 0, 18, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (59, 30, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (60, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (61, 5, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (62, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (63, 30, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (64, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (65, 5, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (66, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (67, 5, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (68, 10, 17, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (69, 0, 10, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (70, 10, 15, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (71, 0, 10, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (72, 10, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (73, 0, 10, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (74, 10, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (75, 0, 10, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (76, 10, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (77, 0, 10, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (78, 10, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (79, 0, 10, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (80, 10, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (81, 0, 10, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (82, 10, 18, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (83, 0, 10, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (84, 10, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (85, 10, 10, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (86, 0, 18, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (87, 10, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (88, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (89, 5, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (90, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (91, 5, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (92, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (93, 5, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (94, 15, 19, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (95, 5, 9, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (96, 10, 17, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (97, 0, 10, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (98, 10, 15, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (99, 0, 6, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (100, 59, 23, '2020-08-26 19:30:31.564345+00', '2020-08-26 19:30:31.564345+00'); INSERT INTO contactcenter.operation_times VALUES (101, 0, 18, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (102, 59, 23, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (103, 0, 18, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (104, 59, 23, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (105, 0, 18, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (106, 59, 23, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (107, 0, 18, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (108, 59, 23, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (109, 0, 18, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (110, 59, 23, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (111, 0, 6, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (112, 59, 23, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (113, 0, 10, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (114, 0, 21, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (115, 0, 10, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (116, 0, 21, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (117, 0, 10, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (118, 0, 21, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (119, 0, 10, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (120, 0, 21, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (121, 0, 10, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (122, 0, 21, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (123, 0, 10, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (124, 0, 21, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (125, 0, 10, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (126, 0, 21, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (127, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (128, 0, 19, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (129, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (130, 0, 19, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (131, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (132, 0, 19, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (133, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (134, 0, 19, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (135, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (136, 0, 19, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (137, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (138, 0, 19, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (139, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (140, 0, 19, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (141, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (142, 0, 19, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (143, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (144, 10, 18, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (145, 30, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (146, 10, 18, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (147, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (148, 10, 18, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (149, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (150, 10, 18, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (151, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (152, 5, 15, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (153, 0, 10, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (154, 0, 15, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (155, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (156, 0, 19, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (157, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (158, 0, 19, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (159, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (160, 0, 19, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (161, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (162, 0, 19, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (163, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (164, 0, 19, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (165, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (166, 0, 19, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (167, 0, 9, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (168, 0, 19, '2020-08-26 19:30:31.570567+00', '2020-08-26 19:30:31.570567+00'); INSERT INTO contactcenter.operation_times VALUES (169, 0, 9, '2020-08-26 19:32:42.723701+00', '2020-08-26 19:32:42.723701+00'); INSERT INTO contactcenter.operation_times VALUES (170, 0, 21, '2020-08-26 19:32:42.723701+00', '2020-08-26 19:32:42.723701+00'); INSERT INTO contactcenter.operation_times VALUES (171, 0, 9, '2020-08-26 19:32:42.723701+00', '2020-08-26 19:32:42.723701+00'); INSERT INTO contactcenter.operation_times VALUES (172, 0, 19, '2020-08-26 19:32:42.723701+00', '2020-08-26 19:32:42.723701+00'); INSERT INTO contactcenter.operation_times VALUES (173, 0, 9, '2020-08-26 19:32:42.723701+00', '2020-08-26 19:32:42.723701+00'); INSERT INTO contactcenter.operation_times VALUES (174, 0, 19, '2020-08-26 19:32:42.723701+00', '2020-08-26 19:32:42.723701+00'); INSERT INTO contactcenter.operation_times VALUES (175, 0, 9, '2020-08-26 19:32:42.723701+00', '2020-08-26 19:32:42.723701+00'); INSERT INTO contactcenter.operation_times VALUES (176, 0, 19, '2020-08-26 19:32:42.723701+00', '2020-08-26 19:32:42.723701+00'); INSERT INTO contactcenter.operation_times VALUES (177, 0, 9, '2020-08-26 19:32:42.723701+00', '2020-08-26 19:32:42.723701+00'); INSERT INTO contactcenter.operation_times VALUES (178, 0, 19, '2020-08-26 19:32:42.723701+00', '2020-08-26 19:32:42.723701+00'); INSERT INTO contactcenter.operation_times VALUES (179, 0, 9, '2020-08-26 19:32:42.723701+00', '2020-08-26 19:32:42.723701+00'); INSERT INTO contactcenter.operation_times VALUES (180, 0, 16, '2020-08-26 19:32:42.723701+00', '2020-08-26 19:32:42.723701+00'); INSERT INTO contactcenter.operation_times VALUES (181, 0, 10, '2020-08-26 19:32:42.723701+00', '2020-08-26 19:32:42.723701+00'); INSERT INTO contactcenter.operation_times VALUES (182, 0, 15, '2020-08-26 19:32:42.723701+00', '2020-08-26 19:32:42.723701+00'); INSERT INTO contactcenter.open_settings VALUES (1, 1, 2, false, true, 1, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (2, 3, 4, false, false, 1, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (3, 5, 6, false, false, 1, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (4, 7, 8, false, false, 1, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (5, 9, 10, false, false, 1, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (6, 11, 12, false, false, 1, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (7, 13, 14, false, false, 1, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (8, 15, 16, false, true, 2, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (9, 17, 18, false, false, 2, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (10, 19, 20, false, false, 2, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (11, 21, 22, false, false, 2, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (12, 23, 24, false, false, 2, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (13, 25, 26, false, false, 2, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (14, 27, 28, false, true, 2, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (15, 29, 30, false, true, 3, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (16, 31, 32, false, false, 3, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (17, 33, 34, false, false, 3, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (18, 35, 36, false, false, 3, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (19, 37, 38, false, false, 3, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (20, 39, 40, false, false, 3, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (21, 41, 42, false, true, 3, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (22, 43, 44, false, true, 4, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (23, 45, 46, false, false, 4, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (24, 47, 48, false, false, 4, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (25, 49, 50, false, false, 4, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (26, 51, 52, false, false, 4, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (27, 53, 54, false, false, 4, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (28, 55, 56, false, false, 4, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (29, 57, 58, false, true, 5, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (30, 59, 60, false, false, 5, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (31, 61, 62, false, false, 5, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (32, 63, 64, false, false, 5, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (33, 65, 66, false, false, 5, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (34, 67, 68, false, false, 5, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (35, 69, 70, false, true, 5, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (36, 71, 72, false, true, 7, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (37, 73, 74, false, false, 7, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (38, 75, 76, false, false, 7, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (39, 77, 78, false, false, 7, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (40, 79, 80, false, false, 7, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (41, 81, 82, false, false, 7, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (42, 83, 84, false, true, 7, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (43, 85, 86, false, true, 8, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (44, 87, 88, false, false, 8, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (45, 89, 90, false, false, 8, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (46, 91, 92, false, false, 8, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (47, 93, 94, false, false, 8, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (48, 95, 96, false, false, 8, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (49, 97, 98, false, true, 8, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (50, 99, 100, false, false, 9, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (51, 101, 102, false, false, 9, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (52, 103, 104, false, false, 9, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (53, 105, 106, false, false, 9, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (54, 107, 108, false, false, 9, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (55, 109, 110, false, false, 9, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (56, 111, 112, false, false, 9, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (57, 113, 114, false, false, 10, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (58, 115, 116, false, false, 10, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (59, 117, 118, false, false, 10, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (60, 119, 120, false, false, 10, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (61, 121, 122, false, false, 10, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (62, 123, 124, false, false, 10, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (63, 125, 126, false, false, 10, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (64, 127, 128, false, true, 11, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (65, 129, 130, false, false, 11, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (66, 131, 132, false, false, 11, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (67, 133, 134, false, false, 11, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (68, 135, 136, false, false, 11, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (69, 137, 138, false, false, 11, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (70, 139, 140, false, true, 11, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (71, 141, 142, false, true, 12, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (72, 143, 144, false, false, 12, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (73, 145, 146, false, false, 12, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (74, 147, 148, false, false, 12, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (75, 149, 150, false, false, 12, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (76, 151, 152, false, false, 12, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (77, 153, 154, false, false, 12, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (78, 155, 156, false, true, 13, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (79, 157, 158, false, false, 13, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (80, 159, 160, false, false, 13, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (81, 161, 162, false, false, 13, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (82, 163, 164, false, false, 13, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (83, 165, 166, false, false, 13, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (84, 167, 168, false, false, 13, '2020-08-26 19:30:31.60204+00', '2020-08-26 19:30:31.60204+00', NULL); INSERT INTO contactcenter.open_settings VALUES (85, 169, 170, false, true, 14, '2020-08-26 19:32:42.72983+00', '2020-08-26 19:32:42.72983+00', NULL); INSERT INTO contactcenter.open_settings VALUES (86, 171, 172, false, false, 14, '2020-08-26 19:32:42.72983+00', '2020-08-26 19:32:42.72983+00', NULL); INSERT INTO contactcenter.open_settings VALUES (87, 173, 174, false, false, 14, '2020-08-26 19:32:42.72983+00', '2020-08-26 19:32:42.72983+00', NULL); INSERT INTO contactcenter.open_settings VALUES (88, 175, 176, false, false, 14, '2020-08-26 19:32:42.72983+00', '2020-08-26 19:32:42.72983+00', NULL); INSERT INTO contactcenter.open_settings VALUES (89, 177, 178, false, false, 14, '2020-08-26 19:32:42.72983+00', '2020-08-26 19:32:42.72983+00', NULL); INSERT INTO contactcenter.open_settings VALUES (90, 179, 180, false, false, 14, '2020-08-26 19:32:42.72983+00', '2020-08-26 19:32:42.72983+00', NULL); INSERT INTO contactcenter.open_settings VALUES (91, 181, 182, false, false, 14, '2020-08-26 19:32:42.72983+00', '2020-08-26 19:32:42.72983+00', NULL); INSERT INTO contactcenter.target_criterias VALUES (1, 2, '2020-08-26 19:30:31.643612+00', '2020-08-26 19:30:31.643612+00'); INSERT INTO contactcenter.target_criterias VALUES (2, 3, '2020-08-26 19:30:31.643612+00', '2020-08-26 19:30:31.643612+00'); INSERT INTO contactcenter.target_criterias VALUES (3, 5, '2020-08-26 19:30:31.643612+00', '2020-08-26 19:30:31.643612+00'); INSERT INTO contactcenter.target_criterias VALUES (4, 7, '2020-08-26 19:30:31.643612+00', '2020-08-26 19:30:31.643612+00'); INSERT INTO contactcenter.target_criterias VALUES (5, 8, '2020-08-26 19:30:31.643612+00', '2020-08-26 19:30:31.643612+00'); INSERT INTO contactcenter.target_criterias VALUES (6, 10, '2020-08-26 19:30:31.643612+00', '2020-08-26 19:30:31.643612+00'); INSERT INTO contactcenter.target_criterias VALUES (7, 12, '2020-08-26 19:30:31.643612+00', '2020-08-26 19:30:31.643612+00'); INSERT INTO contactcenter.target_criterias VALUES (8, 13, '2020-08-26 19:30:31.643612+00', '2020-08-26 19:30:31.643612+00'); -- -- Name: app_configuration_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.app_configuration_id_seq', 3, true); -- -- Name: call_conversion_settings_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.call_conversion_settings_id_seq', 40, true); -- -- Name: call_instructions_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.call_instructions_id_seq', 14, true); -- -- Name: call_routes_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.call_routes_id_seq', 40, true); -- -- Name: campaign_affiliates_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.campaign_affiliates_id_seq', 12, true); -- -- Name: campaign_call_routes_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.campaign_call_routes_id_seq', 40, true); -- -- Name: campaigns_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.campaigns_id_seq', 1, false); -- -- Name: criterias_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.criterias_id_seq', 144, true); -- -- Name: dial_settings_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.dial_settings_id_seq', 13, true); -- -- Name: duplicate_call_settings_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.duplicate_call_settings_id_seq', 13, true); -- -- Name: duplicate_settings_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.duplicate_settings_id_seq', 40, true); -- -- Name: integration_conversion_sets_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.integration_conversion_sets_id_seq', 1, false); -- -- Name: integration_settings_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.integration_settings_id_seq', 1, false); -- -- Name: integrations_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.integrations_id_seq', 1, false); -- -- Name: knex_migrations_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.knex_migrations_id_seq', 55, true); -- -- Name: knex_migrations_lock_index_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.knex_migrations_lock_index_seq', 1, true); -- -- Name: mark_as_duplicate_settings_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.mark_as_duplicate_settings_id_seq', 13, true); -- -- Name: missed_calls_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.missed_calls_id_seq', 1, false); -- -- Name: number_assignment_settings_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.number_assignment_settings_id_seq', 12, true); -- -- Name: number_tags_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.number_tags_id_seq', 1, false); -- -- Name: numbers_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.numbers_id_seq', 12, true); -- -- Name: office_breaks_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.office_breaks_id_seq', 1, false); -- -- Name: open_settings_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.open_settings_id_seq', 91, true); -- -- Name: operation_times_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.operation_times_id_seq', 182, true); -- -- Name: record_call_settings_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.record_call_settings_id_seq', 13, true); -- -- Name: routing_priorities_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.routing_priorities_id_seq', 40, true); -- -- Name: schedules_and_capacities_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.schedules_and_capacities_id_seq', 14, true); -- -- Name: sip_numbers_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.sip_numbers_id_seq', 1, false); -- -- Name: spam_detection_settings_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.spam_detection_settings_id_seq', 10, true); -- -- Name: tag_routing_tables_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.tag_routing_tables_id_seq', 1, false); -- -- Name: tags_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.tags_id_seq', 74, true); -- -- Name: target_criterias_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.target_criterias_id_seq', 8, true); -- -- Name: targets_id_seq; Type: SEQUENCE SET; Schema: contactcenter; Owner: mogxugftnygukt -- SELECT pg_catalog.setval('contactcenter.targets_id_seq', 1, false); do --check seq not in sync $$ declare _r record; _i bigint; _m bigint; begin for _r in ( SELECT relname,nspname,d.refobjid::regclass, a.attname, refobjid FROM pg_depend d JOIN pg_attribute a ON a.attrelid = d.refobjid AND a.attnum = d.refobjsubid JOIN pg_class r on r.oid = objid JOIN pg_namespace n on n.oid = relnamespace WHERE d.refobjsubid > 0 and relkind = 'S' ) loop execute format('select last_value from %I.%I',_r.nspname,_r.relname) into _i; execute format('select max(%I) from %s',_r.attname,_r.refobjid) into _m; if coalesce(_m,0) > _i then raise info '%',concat('changed: ',_r.nspname,'.',_r.relname,' from:',_i,' to:',_m); execute format('alter sequence %I.%I restart with %s',_r.nspname,_r.relname,_m+1); end if; end loop; end; $$ ;
128.390355
1,012
0.728209
b28dc01f147593b87a0392103d653d7cc1bd3778
203
css
CSS
Restaurant_Finder_App/restaurant_finder_app/restaurant_finder_app/restaurant/static/restaurant_detail/css/style.css
midhun3112/restaurant_locator
6ab5e906f26476352176059a8952c2c3f5b127bf
[ "Apache-2.0" ]
null
null
null
Restaurant_Finder_App/restaurant_finder_app/restaurant_finder_app/restaurant/static/restaurant_detail/css/style.css
midhun3112/restaurant_locator
6ab5e906f26476352176059a8952c2c3f5b127bf
[ "Apache-2.0" ]
null
null
null
Restaurant_Finder_App/restaurant_finder_app/restaurant_finder_app/restaurant/static/restaurant_detail/css/style.css
midhun3112/restaurant_locator
6ab5e906f26476352176059a8952c2c3f5b127bf
[ "Apache-2.0" ]
null
null
null
.gallery { display: inline-block; margin-top: 20px; } #openingTimesPopoverContent { display: none; float: right; } .popover { width: 700px; } #see-more { margin-left: 250px; }
10.684211
29
0.610837
dd8a02e0ba95f3af0eee7ece67b3412eddb21e88
1,848
java
Java
src/main/java/org/rcsb/cif/schema/mm/PdbxStructNcsVirusGen.java
rcsb/ciftools-java
d2da0bc67b94cda2af7309590eed1c4d1e55a161
[ "MIT" ]
9
2019-05-02T22:42:35.000Z
2021-12-14T11:19:32.000Z
src/main/java/org/rcsb/cif/schema/mm/PdbxStructNcsVirusGen.java
rcsb/ciftools-java
d2da0bc67b94cda2af7309590eed1c4d1e55a161
[ "MIT" ]
9
2019-11-20T18:39:34.000Z
2021-11-23T14:42:44.000Z
src/main/java/org/rcsb/cif/schema/mm/PdbxStructNcsVirusGen.java
rcsb/ciftools-java
d2da0bc67b94cda2af7309590eed1c4d1e55a161
[ "MIT" ]
6
2019-11-18T07:59:40.000Z
2021-07-02T02:23:28.000Z
package org.rcsb.cif.schema.mm; import org.rcsb.cif.model.*; import org.rcsb.cif.schema.*; import javax.annotation.Generated; /** * Data items in the PDBX_STRUCT_NCS_VIRUS_GEN category record details * about the generation of virus structures from NCS matrix operators. */ @Generated("org.rcsb.cif.schema.generator.SchemaGenerator") public class PdbxStructNcsVirusGen extends DelegatingCategory { public PdbxStructNcsVirusGen(Category delegate) { super(delegate); } @Override protected Column createDelegate(String columnName, Column column) { switch (columnName) { case "id": return getId(); case "oper_id": return getOperId(); case "asym_id": return getAsymId(); case "pdb_chain_id": return getPdbChainId(); default: return new DelegatingColumn(column); } } /** * Unique id for generator. * @return StrColumn */ public StrColumn getId() { return delegate.getColumn("id", DelegatingStrColumn::new); } /** * Identifies the NCS operation (_struct_ncs_oper.id) * @return IntColumn */ public IntColumn getOperId() { return delegate.getColumn("oper_id", DelegatingIntColumn::new); } /** * The NCS operation is applied to the component of * the asymmetric unit identified by this id. * @return StrColumn */ public StrColumn getAsymId() { return delegate.getColumn("asym_id", DelegatingStrColumn::new); } /** * The NCS operation is applied to the chain identified * by this id. * @return StrColumn */ public StrColumn getPdbChainId() { return delegate.getColumn("pdb_chain_id", DelegatingStrColumn::new); } }
27.176471
76
0.624459
80013431b1aa54542037ce238c2ca6352abd2465
2,005
lua
Lua
Core/Database.lua
Witnesscm/NDui_Plus_Classic
e1f6574feddd98f4faff3f59474e1a4cadb68730
[ "MIT" ]
1
2021-05-27T15:29:53.000Z
2021-05-27T15:29:53.000Z
Core/Database.lua
Witnesscm/NDui_Plus_Classic
e1f6574feddd98f4faff3f59474e1a4cadb68730
[ "MIT" ]
6
2021-05-22T12:46:41.000Z
2022-01-14T05:29:34.000Z
Core/Database.lua
Witnesscm/NDui_Plus_Classic
e1f6574feddd98f4faff3f59474e1a4cadb68730
[ "MIT" ]
null
null
null
local addonName, ns = ... local B, C, L, DB, P = unpack(ns) P.Version = GetAddOnMetadata(addonName, "Version") P.SupportVersion = "2.7.0" if P.IsClassic() then P.SupportVersion = "1.29.0" end -- Colors P.InfoColors = {r = .6, g = .8, b = 1} -- Textures local Texture = "Interface\\Addons\\"..addonName.."\\Media\\Texture\\" P.Blank = Texture.."Blank" P.ArrowUp = Texture.."arrow-up" P.ArrowDown = Texture.."arrow-down" P.BorderTex = Texture.."UI-Quickslot2" P.RotationRightTex = Texture.."UI-RotationRight-Big-Up" P.SwapTex = Texture.."Swap" P.LEFT_MOUSE_BUTTON = [[|TInterface\TutorialFrame\UI-Tutorial-Frame:12:12:0:0:512:512:10:65:228:283|t]] P.RIGHT_MOUSE_BUTTON = [[|TInterface\TutorialFrame\UI-Tutorial-Frame:12:12:0:0:512:512:10:65:330:385|t]] -- Bindings BINDING_HEADER_NDUIPLUS = addonName BINDING_NAME_NDUIPLUSTOGGLEBAG = L["Toggle OfflineBag"] P.BarConfig = { icon = { texCoord = DB.TexCoord, points = { {"TOPLEFT", C.mult, -C.mult}, {"BOTTOMRIGHT", -C.mult, C.mult}, }, }, flyoutBorder = {file = ""}, flyoutBorderShadow = {file = ""}, border = {file = ""}, normalTexture = { file = DB.textures.normal, texCoord = DB.TexCoord, color = {.3, .3, .3}, points = { {"TOPLEFT", 0, 0}, {"BOTTOMRIGHT", 0, 0}, }, }, flash = {file = DB.textures.flash}, pushedTexture = {file = DB.textures.pushed}, checkedTexture = {file = DB.textures.checked}, highlightTexture = { file = "", points = { {"TOPLEFT", C.mult, -C.mult}, {"BOTTOMRIGHT", -C.mult, C.mult}, }, }, cooldown = { points = { {"TOPLEFT", 0, 0}, {"BOTTOMRIGHT", 0, 0}, }, }, name = { font = {DB.Font[1], DB.Font[2]+1, DB.Font[3]}, points = { {"BOTTOMLEFT", 0, 0}, {"BOTTOMRIGHT", 0, 0}, }, }, hotkey = { font = {DB.Font[1], DB.Font[2]+1, DB.Font[3]}, points = { {"TOPRIGHT", 0, -0.5}, {"TOPLEFT", 0, -0.5}, }, }, count = { font = {DB.Font[1], DB.Font[2]+1, DB.Font[3]}, points = { {"BOTTOMRIGHT", 2, 0}, }, }, buttonstyle = {file = ""}, }
23.869048
104
0.599501
2b9b83707c6ff7809c74b0ef86a9c0da5679b855
2,705
dart
Dart
enigma_dart/lib/src/widgets/text/enigma_form.dart
gedzeppelin/enigma_dart
32609114a65794b5028d39a593bfbdf999e10e40
[ "BSD-3-Clause" ]
1
2021-12-24T17:11:27.000Z
2021-12-24T17:11:27.000Z
enigma_dart/lib/src/widgets/text/enigma_form.dart
gedzeppelin/enigma_dart
32609114a65794b5028d39a593bfbdf999e10e40
[ "BSD-3-Clause" ]
null
null
null
enigma_dart/lib/src/widgets/text/enigma_form.dart
gedzeppelin/enigma_dart
32609114a65794b5028d39a593bfbdf999e10e40
[ "BSD-3-Clause" ]
null
null
null
import "package:flutter/material.dart"; import "enigma_text_field.dart"; typedef Widget FormBuilder(BuildContext context, List<EgTextField> formItems); class EnigmaForm extends StatefulWidget { EnigmaForm({ Key? key, required this.formItems, this.formBuilder, this.isExpanded = true, this.isScrollable = true, this.padding, }) : super(key: key); final FormBuilder? formBuilder; final EdgeInsets? padding; final bool isExpanded; final bool isScrollable; final List<EgTextField> formItems; @override EnigmaFormState createState() => EnigmaFormState(); } class EnigmaFormState extends State<EnigmaForm> { List<FocusNode>? focusNodeList = null; List<EgTextField>? formItems = null; final formKey = GlobalKey<FormState>(); bool _initialized = false; @override void dispose() { focusNodeList?.forEach((fn) => fn.dispose()); super.dispose(); } /* @override void initState() { super.initState(); final nodeSize = widget.formItems.length; // Generate a FocusNode for each form text field. focusNodeList = List<FocusNode>.generate( nodeSize, (_) => FocusNode(), ); formItems = List<EgTextField>.generate( nodeSize, (int idx) => widget.formItems[idx].copyWith( initialized: _initialized, focusNode: focusNodeList[idx], nextNode: idx < nodeSize - 1 ? focusNodeList[idx + 1] : null, ), ); } */ bool get isValid { if (!_initialized) { setState(() { _initialized = true; }); } return formKey.currentState?.validate() ?? false; } @override Widget build(BuildContext context) { final nodeSize = widget.formItems.length; // Generate a FocusNode for each form text field. final focusNodeList = List<FocusNode>.generate( nodeSize, (_) => FocusNode(), ); final formItems = List<EgTextField>.generate( nodeSize, (int idx) => widget.formItems[idx].copyWith( initialized: _initialized, focusNode: focusNodeList[idx], nextNode: idx < nodeSize - 1 ? focusNodeList[idx + 1] : null, ), ); this.focusNodeList = focusNodeList; final form = Form( key: formKey, child: widget.formBuilder?.call(context, formItems) ?? Column(children: formItems), ); final body = widget.isScrollable ? SingleChildScrollView( padding: widget.padding ?? const EdgeInsets.all(16.0), child: form, ) : Padding( padding: widget.padding ?? const EdgeInsets.all(16.0), child: form, ); return widget.isExpanded ? Expanded(child: body) : body; } }
24.590909
78
0.633272
238cfe40b8045fad0e536a2fc00cfcc605b64673
4,410
js
JavaScript
static/js/wallboxsvc.js
hardcodes/wallboxsvc
078f41dd1a51ef5212f0a8df14dc56cd01fbe746
[ "MIT" ]
null
null
null
static/js/wallboxsvc.js
hardcodes/wallboxsvc
078f41dd1a51ef5212f0a8df14dc56cd01fbe746
[ "MIT" ]
null
null
null
static/js/wallboxsvc.js
hardcodes/wallboxsvc
078f41dd1a51ef5212f0a8df14dc56cd01fbe746
[ "MIT" ]
null
null
null
function showErrorMessage(messagetext) { if (!document.getElementById("ErrorMessage")) { var div = document.createElement('div'); div.setAttribute('class', 'error-msg'); div.setAttribute('role', 'alert'); div.setAttribute('id', 'ErrorMessage'); document.body.appendChild(div); } document.getElementById("ErrorMessage").innerHTML = messagetext; document.getElementById("ErrorMessage").style.visibility = "visible"; } function hideErrorMessage() { document.getElementById("ErrorMessage").style.visibility = "hidden"; } function showErrorMessageWithTimer(messagetext, seconds = 0) { showErrorMessage(messagetext); if (seconds != 0) { var timer = window.setTimeout(hideErrorMessage, (seconds * 1000)); } } function showSuccessMessage(messagetext) { if (!document.getElementById("SuccessMessage")) { var div = document.createElement('div'); div.setAttribute('class', 'success-msg'); div.setAttribute('role', 'alert'); div.setAttribute('id', 'SuccessMessage'); document.body.appendChild(div); } document.getElementById("SuccessMessage").innerHTML = messagetext; document.getElementById("SuccessMessage").style.visibility = "visible"; } function hideSuccessMessage() { document.getElementById("SuccessMessage").style.visibility = "hidden"; } function showSuccessMessageWithTimer(messagetext, seconds = 0) { showSuccessMessage(messagetext); if (seconds != 0) { var timer = window.setTimeout(hideSuccessMessage, (seconds * 1000)); } } function showNotifyMessage(messagetext) { if (!document.getElementById("NotifyMessage")) { var div = document.createElement('div'); div.setAttribute('class', 'notify-msg'); div.setAttribute('id', 'NotifyMessage'); document.body.appendChild(div); } document.getElementById("NotifyMessage").innerHTML = messagetext; document.getElementById("NotifyMessage").style.display = "inline-block"; document.getElementById("NotifyMessage").style.visibility = "visible"; } function startProgressSpinner() { if (!document.getElementById("ProgressSpinner")) { var div = document.createElement('div'); div.setAttribute('class', 'progress-spinner'); div.setAttribute('id', 'ProgressSpinner'); document.body.appendChild(div); } document.getElementById("ProgressSpinner").style.visibility = "visible"; } function stopProgressSpinner() { document.getElementById("ProgressSpinner").style.visibility = "hidden"; } function accessWebService(url, okcallback, errorcallback, method = "GET", formdata = null, seconds = 0, timeout = 0) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { // Typical action to be performed when the document is ready: stopProgressSpinner(); if (this.responseText.includes("ERROR:")) { showErrorMessageWithTimer(this.responseText, seconds); if (typeof errorcallback == "function") { errorcallback(); } } else { if (typeof okcallback == "function") { okcallback(this.responseText); } } } }; xhttp.ontimeout = function () { showErrorMessageWithTimer("Timeout: can not load data!", seconds); stopProgressSpinner(); }; xhttp.onabort = function () { showErrorMessageWithTimer("Timeout: loading the data was interrupted!", seconds); stopProgressSpinner(); }; xhttp.onerror = function () { showErrorMessageWithTimer("Timeout: error while loading the data!", seconds); stopProgressSpinner(); }; startProgressSpinner(); xhttp.open(method, url, true); xhttp.timeout = timeout; if (method === "POST") { xhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded", seconds); } xhttp.send(formdata); } function queryWebService(url, okcallback, errorcallback, seconds = 0, timeout = 0) { accessWebService(url, okcallback, errorcallback, "GET", null, seconds, timeout) } function sendToWebService(url, okcallback, errorcallback, formdata, seconds = 0, timeout = 0) { accessWebService(url, okcallback, errorcallback, "POST", formdata, seconds, timeout) }
36.147541
120
0.665533
b867905f688fd04e886a8468853ddd3ba63cbdec
8,983
h
C
physx/source/physx/src/NpShape.h
yangfengzzz/PhysX
aed9c3035955d4ad90e5741f7d1dcfb5c178d44f
[ "BSD-3-Clause" ]
null
null
null
physx/source/physx/src/NpShape.h
yangfengzzz/PhysX
aed9c3035955d4ad90e5741f7d1dcfb5c178d44f
[ "BSD-3-Clause" ]
null
null
null
physx/source/physx/src/NpShape.h
yangfengzzz/PhysX
aed9c3035955d4ad90e5741f7d1dcfb5c178d44f
[ "BSD-3-Clause" ]
null
null
null
// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // * Neither the name of NVIDIA CORPORATION nor the names of its // contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // Copyright (c) 2008-2021 NVIDIA Corporation. All rights reserved. // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved. // Copyright (c) 2001-2004 NovodeX AG. All rights reserved. #ifndef PX_PHYSICS_NP_SHAPE #define PX_PHYSICS_NP_SHAPE #include "PxShape.h" #include "buffering/ScbShape.h" #include "common/PxMetaData.h" namespace physx { struct NpInternalShapeFlag { enum Enum { eEXCLUSIVE = (1 << 0) }; }; /** \brief collection of set bits defined in PxShapeFlag. @see PxShapeFlag */ typedef PxFlags<NpInternalShapeFlag::Enum, PxU8> NpInternalShapeFlags; PX_FLAGS_OPERATORS(NpInternalShapeFlag::Enum, PxU8) class NpScene; class NpShapeManager; namespace Scb { class Scene; class RigidObject; } // namespace Scb namespace Sc { class MaterialCore; } class NpShape : public PxShape, public Ps::UserAllocated, public Cm::RefCountable { //= ATTENTION! ===================================================================================== // Changing the data layout of this class breaks the binary serialization format. See comments for // PX_BINARY_SERIAL_VERSION. If a modification is required, please adjust the getBinaryMetaData // function. If the modification is made on a custom branch, please change PX_BINARY_SERIAL_VERSION // accordingly. //================================================================================================== public: // PX_SERIALIZATION NpShape(PxBaseFlags baseFlags); void preExportDataReset(); virtual void exportExtraData(PxSerializationContext &context); void importExtraData(PxDeserializationContext &context); virtual void requiresObjects(PxProcessPxBaseCallback &c); void resolveReferences(PxDeserializationContext &context); static NpShape *createObject(PxU8 *&address, PxDeserializationContext &context); static void getBinaryMetaData(PxOutputStream &stream); //~PX_SERIALIZATION NpShape(const PxGeometry &geometry, PxShapeFlags shapeFlags, const PxU16 *materialIndices, PxU16 materialCount, bool isExclusive); virtual ~NpShape(); //--------------------------------------------------------------------------------- // PxShape implementation //--------------------------------------------------------------------------------- virtual void release(); //!< call to release from actor virtual PxU32 getReferenceCount() const; virtual void acquireReference(); virtual PxGeometryType::Enum getGeometryType() const; virtual void setGeometry(const PxGeometry &); virtual PxGeometryHolder getGeometry() const; virtual bool getBoxGeometry(PxBoxGeometry &) const; virtual bool getSphereGeometry(PxSphereGeometry &) const; virtual bool getCapsuleGeometry(PxCapsuleGeometry &) const; virtual bool getPlaneGeometry(PxPlaneGeometry &) const; virtual bool getConvexMeshGeometry(PxConvexMeshGeometry &g) const; virtual bool getTriangleMeshGeometry(PxTriangleMeshGeometry &g) const; virtual bool getHeightFieldGeometry(PxHeightFieldGeometry &g) const; virtual PxRigidActor *getActor() const; virtual void setLocalPose(const PxTransform &pose); virtual PxTransform getLocalPose() const; virtual void setSimulationFilterData(const PxFilterData &data); virtual PxFilterData getSimulationFilterData() const; virtual void setQueryFilterData(const PxFilterData &data); virtual PxFilterData getQueryFilterData() const; virtual void setMaterials(PxMaterial *const *materials, PxU16 materialCount); virtual PxU16 getNbMaterials() const; virtual PxU32 getMaterials(PxMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex = 0) const; virtual PxMaterial *getMaterialFromInternalFaceIndex(PxU32 faceIndex) const; virtual void setContactOffset(PxReal); virtual PxReal getContactOffset() const; virtual void setRestOffset(PxReal); virtual PxReal getRestOffset() const; virtual void setTorsionalPatchRadius(PxReal); virtual PxReal getTorsionalPatchRadius() const; virtual void setMinTorsionalPatchRadius(PxReal); virtual PxReal getMinTorsionalPatchRadius() const; virtual void setFlag(PxShapeFlag::Enum flag, bool value); virtual void setFlags(PxShapeFlags inFlags); virtual PxShapeFlags getFlags() const; virtual bool isExclusive() const; virtual void setName(const char *debugName); virtual const char *getName() const; //--------------------------------------------------------------------------------- // RefCountable implementation //--------------------------------------------------------------------------------- // Ref counting for shapes works like this: // * for exclusive shapes the actor has a counted reference // * for shared shapes, each actor has a counted reference, and the user has a counted reference // * for either kind, each instance of the shape in a scene (i.e. each shapeSim) causes the reference count to be // incremented by 1. Because these semantics aren't clear to users, this reference count should not be exposed in the // API virtual void onRefCountZero(); //--------------------------------------------------------------------------------- // Miscellaneous //--------------------------------------------------------------------------------- void setFlagsInternal(PxShapeFlags inFlags); PX_FORCE_INLINE PxShapeFlags getFlagsFast() const { return mShape.getFlags(); } PX_FORCE_INLINE PxShapeFlags getFlagsUnbuffered() const { return mShape.getScShape().getFlags(); } PX_FORCE_INLINE PxGeometryType::Enum getGeometryTypeFast() const { return mShape.getGeometryType(); } PX_FORCE_INLINE const Gu::GeometryUnion &getGeometryFast() const { return mShape.getGeometryUnion(); } PX_FORCE_INLINE const PxTransform &getLocalPoseFast() const { return mShape.getShape2Actor(); } PX_FORCE_INLINE PxU32 getActorCount() const { return PxU32(mExclusiveAndActorCount & ACTOR_COUNT_MASK); } PX_FORCE_INLINE PxI32 isExclusiveFast() const { return mExclusiveAndActorCount & EXCLUSIVE_MASK; } PX_FORCE_INLINE const PxFilterData &getQueryFilterDataFast() const { return mShape.getScShape().getQueryFilterData(); // PT: this one doesn't need double-buffering } PX_FORCE_INLINE const Scb::Shape &getScbShape() const { return mShape; } PX_FORCE_INLINE Scb::Shape &getScbShape() { return mShape; } static PX_FORCE_INLINE size_t getScbShapeOffset() { return PX_OFFSET_OF_RT(NpShape, mShape); } PX_INLINE PxMaterial *getMaterial(PxU32 index) const { return mShape.getMaterial(index); } static bool checkMaterialSetup(const PxGeometry &geom, const char *errorMsgPrefix, PxMaterial *const *materials, PxU16 materialCount); void onActorAttach(PxRigidActor &actor); void onActorDetach(); // These methods are used only for sync'ing, and may only be called on exclusive shapes since only exclusive shapes // have buffering Sc::RigidCore &getScRigidObjectExclusive() const; void releaseInternal(); NpScene *getOwnerScene() const; // same distinctions as for NpActor private: NpScene *getAPIScene() const; void incMeshRefCount(); void decMeshRefCount(); Cm::RefCountable *getMeshRefCountable(); bool isWritable(); void updateSQ(const char *errorMessage); PxRigidActor *mActor; // Auto-resolving refs breaks DLL loading for some reason Scb::Shape mShape; const char *mName; static const PxI32 EXCLUSIVE_MASK = 0x80000000; static const PxI32 ACTOR_COUNT_MASK = 0x7fffffff; volatile PxI32 mExclusiveAndActorCount; }; } // namespace physx #endif
42.57346
119
0.713793
a7d3d91ceb769cbdd4c7886beed72a764b03dec3
4,574
css
CSS
src/main/resources/static/css/quiz.css
arno94/QuizApp
c1ee36a32146ed750c787a93e1203c87e5fc0164
[ "MIT" ]
null
null
null
src/main/resources/static/css/quiz.css
arno94/QuizApp
c1ee36a32146ed750c787a93e1203c87e5fc0164
[ "MIT" ]
null
null
null
src/main/resources/static/css/quiz.css
arno94/QuizApp
c1ee36a32146ed750c787a93e1203c87e5fc0164
[ "MIT" ]
1
2020-08-03T15:26:06.000Z
2020-08-03T15:26:06.000Z
* { box-sizing: border-box; } body { margin: 0; padding: 0; background: #E6E6FA; font-size: 15px; color: #191970; font-family: sans-serif; font-weight: 300; background-image: url(/images/image.jpg); } h1 { margin: 8px 8px 17px 0; font-weight: 600; font-size: 30px; text-align: center; } h2 { font-weight: 400; font-size: 20px; border-bottom: 3px dotted white; } .card { /* Add shadows to create the "card" effect */ box-shadow: 0 4px 8px 0 rgba(0,0,0,0.4); transition: 0.6s; background: #B0C4DE; /*background-image: url(image5.jpg);*/ border-radius: 5px; position: absolute; top: 10%; width: 80%; left: 10%; } /* On mouse-over, add a deeper shadow */ .card:hover { box-shadow: 0 8px 16px 0 rgba(0,0,0,0.5); } /* Add some padding inside the card container */ .container { padding: 2px 20px; } .container { display: block; position: relative; padding-left: 35px; margin-bottom: 12px; cursor: pointer; font-size: 17px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } input { padding: 10px; font-size: 17px; font-family: Raleway; border: 1px solid #aaaaaa; } /* Mark input boxes that gets an error on validation: */ input.invalid { background-color: #ffdddd; } /* Hide all steps by default: */ .tab { display: none; } button { margin-top: 15px; margin-bottom: 10px; background-color: #4CAF50; color: #ffffff; width: 165px; height: 45px; border: none; border-radius: 10px; padding: 10px 20px; font-size: 17px; font-family: Raleway; cursor: pointer; text-align: center; font-family: sans-serif; font-weight: 800; } button:hover { opacity: 0.8; } /* Make circles that indicate the steps of the form: */ .step { height: 20px; width: 20px; margin: 0 10px; background-color: #bbbbbb; border: red; border-radius: 50%; display: inline-block; opacity: 0.5; } .step.active { opacity: 1; } /* Mark the steps that are finished and valid: */ .step.finish { background-color: #4CAF50; } /* section */ section { width: 50%; min-height: inherit; display: flex; justify-content: left; align-items: left; flex-direction: column; position: relative; } section::before, section::after { content: ""; display: block; border-radius: 100%; position: absolute; } section::before { width: 30px; height: 30px; clip-path: polygon(0 100%, 100% 0, 100% 100%); top: 18px; } section::after { width: 42px; height: 42px; top: 11px; } .light { --primary: hsl(250, 100%, 44%); --other: hsl(0, 0%, 14%); } /* label */ label { display: flex; justify-content: flex-start; align-items: center; flex-wrap: nowrap; margin: 12px 0; cursor: pointer; position: relative; } /* input */ input { opacity: 0; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: -1; } /* .design */ .design { width: 16px; height: 16px; border: 1px solid var(--other); border-radius: 100%; margin-right: 16px; position: relative; } .design::before, .design::after { content: ""; display: block; width: inherit; height: inherit; border-radius: inherit; position: absolute; transform: scale(0); transform-origin: center center; } .design:before { background: var(--other); opacity: 0; transition: .3s; } .design::after { background: var(--primary); opacity: .4; transition: .6s; } /* .text */ .text { color: var(--other); font-weight: bold; } /* checked state */ input:checked+.design::before { opacity: 1; transform: scale(.6); } /* other states */ input:hover+.design, input:focus+.design { border: 1px solid var(--primary); } input:hover+.design:before, input:focus+.design:before { background: var(--primary); } input:hover~.text { color: var(--primary); } input:focus+.design::after, input:active+.design::after { opacity: .1; transform: scale(2.6); } .abs-site-link { position: fixed; bottom: 20px; left: 20px; color: hsla(0, 0%, 0%, .6); background: hsla(0, 0%, 98%, .6); font-size: 16px; } progress[value] { width: 100%; height: 10px; background-color: red; border-radius: 15px; } progress::-webkit-progress-bar { width: 100%; height: 10px; background-color: #191970; border-radius: 15px; } progress::-webkit-progress-value { width: 100%; height: 10px; background-color: #00BFFF; border-radius: 15px; }
15.400673
56
0.620245
5817fed8cf3b56d7eaec51f6694e854e46024b55
1,086
css
CSS
style.css
azavgo/unixtimestamphtml
c73147777158bd70650e8601cb39f7b17fc2430f
[ "BSD-2-Clause" ]
null
null
null
style.css
azavgo/unixtimestamphtml
c73147777158bd70650e8601cb39f7b17fc2430f
[ "BSD-2-Clause" ]
null
null
null
style.css
azavgo/unixtimestamphtml
c73147777158bd70650e8601cb39f7b17fc2430f
[ "BSD-2-Clause" ]
null
null
null
button { font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: medium; } .unixtimestamp { font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: medium; } #dateInput, #timestampInput, #timestampOutput, #dateOutput { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: medium; } .datetotimestamp, .timestamptodate { clear: both } .datetotimestamp { padding: 20px 12px 10px 20px; } .timestamptodate { padding: 20px 12px 10px 20px; } .date { float: left; width: 29%; height: 32px; line-height: 32px; } #timestampOutput { float: left; width: 10%; height: 32px; line-height: 32px; } .timestamp { float: left; width: 30%; height: 32px; line-height: 32px; } #dateOutput { float: left; width: 9%; height: 32px; line-height: 32px; } #timestampOutput, #dateOutput { background-color: #FFFFE0; text-align: center; line-height: 32px; }
15.970588
61
0.572744
da7ab58ea7bedde8ce2ce8559b4a6f6a05f71b39
12,186
php
PHP
resources/views/services.blade.php
mikenoethiger/miosk
72cca7406d66d1e35014618105cd2f4417ae1e6b
[ "MIT" ]
null
null
null
resources/views/services.blade.php
mikenoethiger/miosk
72cca7406d66d1e35014618105cd2f4417ae1e6b
[ "MIT" ]
null
null
null
resources/views/services.blade.php
mikenoethiger/miosk
72cca7406d66d1e35014618105cd2f4417ae1e6b
[ "MIT" ]
null
null
null
<!DOCTYPE html> <!--[if IE 9]> <html lang="en" class="ie9"> <![endif]--> <!--[if !IE]><!--> <html lang="en"> <!--<![endif]--> <head> <meta charset="utf-8"> <title>Dienstleistungen - Miosk</title> <meta name="description" content="Verpflegung für zwischendurch"> <meta name="author" content="htmlcoder.me"> <!-- Mobile Meta --> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Favicon --> <link rel="shortcut icon" href="images/favicon.ico"> <!-- Web Fonts --> <link href='http://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Raleway:700,400,300' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=PT+Serif' rel='stylesheet' type='text/css'> <!-- Bootstrap core CSS --> <link href="/the_project/css/bootstrap.css" rel="stylesheet"> <!-- Font Awesome CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> <!-- Fontello CSS --> <link href="/the_project/css/fontello.css" rel="stylesheet"> <!-- Plugins --> <link href="/the_project/css/magnific-popup.css" rel="stylesheet"> <link href="/the_project/css/settings.css" rel="stylesheet"> <link href="/the_project/css/animations.css" rel="stylesheet"> <link href="/the_project/css/owl.carousel.css" rel="stylesheet"> <link href="/the_project/css/owl.transitions.css" rel="stylesheet"> <link href="/the_project/css/hover-min.css" rel="stylesheet"> <!-- the project core CSS file --> <link href="/the_project/css/style.css" rel="stylesheet" > <!-- Color Scheme (In order to change the color scheme, replace the blue.css with the color scheme that you prefer)--> <link href="/the_project/css/light_blue.css" rel="stylesheet"> <!-- Custom css --> <link href="/the_project/css/custom.css" rel="stylesheet"> <link href="/menu.css" rel="stylesheet"> </head> <!-- body classes: --> <!-- "boxed": boxed layout mode e.g. <body class="boxed"> --> <!-- "pattern-1 ... pattern-9": background patterns for boxed layout mode e.g. <body class="boxed pattern-1"> --> <!-- "transparent-header": makes the header transparent and pulls the banner to top --> <!-- "page-loader-1 ... page-loader-6": add a page loader to the page (more info @components-page-loaders.html) --> <body class="no-trans "> <div class="header-top dark "> <div class="container"> <div class="row"> <div class="col-xs-12"> <!-- header-top-first start --> <!-- ================ --> <div class="header-top-first clearfix"> <div class="social-links hidden-xs circle small"> <div class="btn-group"> <a href="/" class="menu-button hidden-xs"><i class="fa fa-home"></i> Shop</a> <a href="/services" class="menu-button hidden-xs"><i class="fa fa-star"></i> Dienstleistungen</a> <a href="/auth/login" class="menu-button hidden-xs"><i class="fa fa-user"></i> Login</a> </div> </div> <div class="social-links hidden-lg hidden-md hidden-sm circle small"> <div class="btn-group"> <a href="/" class="menu-button"><i class="fa fa-home"></i></a> <a href="/services" class="menu-button"><i class="fa fa-star"></i></a> <a href="/auth/login" class="menu-button"><i class="fa fa-user"></i></a> </div> </div> </div> <!-- header-top-first end --> </div> </div> </div> </div> <div class="banner dark-translucent-bg" style="background-image:url('images/pay-low-quality.png'); background-position: 50% 32%;"> <!-- breadcrumb end --> <div class="container"> <div class="row"> <div class="col-md-8 text-center col-md-offset-2 pv-20"> <h2 class="title object-non-visible" data-animation-effect="fadeIn" data-effect-delay="100">Vorteile eines <strong>Benutzerkontos</strong></h2> <div class="separator object-non-visible mt-10" data-animation-effect="fadeIn" data-effect-delay="100"></div> <p class="text-center object-non-visible" data-animation-effect="fadeIn" data-effect-delay="100">Ein Benutzerkonto ist innert kürze erstellt. Sie benötigen nur eine E-Mail Adresse dazu. Danach profitieren Sie von verschiedenen Dienstleistungen. Nehmen Sie sich 1 Minute und lesen Sie mehr darüber.</p> </div> </div> </div> </div> <!-- banner end --> <!-- main-container start --> <!-- ================ --> <section class="main-container padding-bottom-clear"> <div class="container"> <div class="row"> <!-- main start --> <!-- ================ --> <div class="main col-md-12"> <div class="row"> <div class="col-md-4 col-sm-6"> <div class="ph-20 feature-box text-center object-non-visible" data-animation-effect="fadeInDownSmall" data-effect-delay="100"> <span class="icon large default-bg circle"><i class="fa fa-truck"></i></span> <h3>Liefern</h3> <div class="separator clearfix"></div> <p class="text-muted">Wenn Sie auf der Wache sind können Sie bequem Bestellungen aufgeben welche dann ins Wachlokal geliefert werden. Die Lieferung erfolgt so schnell wie möglich.</p> </div> </div> <div class="col-md-4 col-sm-6"> <div class="ph-20 feature-box text-center object-non-visible" data-animation-effect="fadeInDownSmall" data-effect-delay="200"> <span class="icon large dark-bg circle"><i class="fa fa-shopping-bag"></i></span> <h3>Abholen</h3> <div class="separator clearfix"></div> <p class="text-muted">Sie können Bestellungen aufgeben und diese dann in der Unterkunft im zweiten Stock beim Eingang zum Kaderbereich abholen. Abholtermine: 12:30 Uhr oder 18:30 Uhr.</p> </div> </div> <div class="col-md-4 col-sm-6"> <div class="ph-20 feature-box text-center object-non-visible" data-animation-effect="fadeInDownSmall" data-effect-delay="300"> <span class="icon large default-bg circle"><i class="fa fa-bell"></i></span> <h3>Miosk Öffnen</h3> <div class="separator clearfix"></div> <p class="text-muted">Sie haben gerade Pause aber Miosk ist geschlossen? Mit einem Knopfdruck informieren Sie mich und sofern möglich wird Miosk geöffnet.</p> </div> </div> <div class="clearfix visible-md"></div> <div class="col-md-4 col-sm-6"> <div class="ph-20 feature-box text-center object-non-visible" data-animation-effect="fadeInDownSmall" data-effect-delay="100"> <span class="icon large dark-bg circle"><i class="fa fa-percent"></i></span> <h3>Grossbestellungen</h3> <div class="separator clearfix"></div> <p class="text-muted">Sie profitieren von Rabatten bei grösseren Bestellungen. Ab einem Bestellwert von CHF 20.- gibt es 10% Rabatt auf Ihren Einkauf.</p> </div> </div> <div class="col-md-4 col-sm-6"> <div class="ph-20 feature-box text-center object-non-visible" data-animation-effect="fadeInDownSmall" data-effect-delay="200"> <span class="icon large default-bg circle"><i class="icon-comment"></i></span> <h3>Feedback</h3> <div class="separator clearfix"></div> <p class="text-muted">Als registrierter Benutzer können Sie direkten Kontakt aufnehmen. Haben Sie Fragen, Verbesserungsvorschläge oder sonstiges Feedback, dann melden Sie sich.</p> </div> </div> </div> </div> <!-- main end --> </div> </div> </section> <!-- main-container end --> <!-- section start --> <!-- ================ --> <section class="section background-img-1 dark-translucent-bg" style="background-position: 50% 42%;"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="call-to-action text-center"> <div class="row"> <div class="col-sm-8"> <h1 class="title">Jetzt Ein Konto Eröffnen</h1> </div> <div class="col-sm-4"> <p><a href="/auth/register" class="btn btn-lg btn-gray-transparent btn-animated">Konto Eröffnen<i class="fa fa-user pl-20"></i></a></p> </div> </div> </div> </div> </div> </div> </section> <!-- JavaScript files placed at the end of the document so the pages load faster --> <!-- ================================================== --> <!-- Jquery and Bootstap core js files --> <script type="text/javascript" src="/the_project/js/jquery.min.js"></script> <script type="text/javascript" src="/the_project/js/bootstrap.min.js"></script> <!-- Modernizr javascript --> <script type="text/javascript" src="/the_project/js/modernizr.js"></script> <!-- jQuery Revolution Slider --> <script type="text/javascript" src="/the_project/js/jquery.themepunch.tools.min.js"></script> <script type="text/javascript" src="/the_project/js/jquery.themepunch.revolution.min.js"></script> <!-- Isotope javascript --> <script type="text/javascript" src="/the_project/js/isotope.pkgd.min.js"></script> <!-- Magnific Popup javascript --> <script type="text/javascript" src="/the_project/js/jquery.magnific-popup.min.js"></script> <!-- Appear javascript --> <script type="text/javascript" src="/the_project/js/jquery.waypoints.min.js"></script> <!-- Count To javascript --> <script type="text/javascript" src="/the_project/js/jquery.countTo.js"></script> <!-- Parallax javascript --> <script src="/the_project/js/jquery.parallax-1.1.3.js"></script> <!-- Contact form --> <script src="/the_project/js/jquery.validate.js"></script> <!-- Owl carousel javascript --> <script type="text/javascript" src="/the_project/js/owl.carousel.js"></script> <!-- SmoothScroll javascript --> <script type="text/javascript" src="/the_project/js/jquery.browser.js"></script> <script type="text/javascript" src="/the_project/js/SmoothScroll.js"></script> <!-- Initialization of Plugins --> <script type="text/javascript" src="/the_project/js/template.js"></script> <!-- Custom Scripts --> <script type="text/javascript" src="/the_project/js/custom.js"></script> @if(\Illuminate\Support\Facades\App::environment('production')) <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-71271229-1', 'auto'); ga('send', 'pageview'); </script> @endif </body> </html> <
46.51145
313
0.566141
2d7d1abe0c6a7e5747ccc9abcdb23184d8b1306d
1,164
cpp
C++
engine/source/System/Timer.cpp
MaxSigma/SGEngine
68a01012911b8d91c9ff6d960a0f7d1163940e09
[ "MIT" ]
11
2020-10-21T15:03:41.000Z
2020-11-03T09:15:28.000Z
engine/source/System/Timer.cpp
MaxSigma/SGEngine
68a01012911b8d91c9ff6d960a0f7d1163940e09
[ "MIT" ]
null
null
null
engine/source/System/Timer.cpp
MaxSigma/SGEngine
68a01012911b8d91c9ff6d960a0f7d1163940e09
[ "MIT" ]
1
2020-10-27T00:13:41.000Z
2020-10-27T00:13:41.000Z
///////////////////////////////////////////////////// // 2016 © Max Gittel // ///////////////////////////////////////////////////// // SGEngine #include "Timer.h" namespace sge { Timer::Timer(){ _lastTime=0; _time=0; _running=false; _history.resize(30); _historyPos=0; } Timer::~Timer(){} float Timer::getTimeInMs(){ float time=0; for (int i=0; i<_history.size(); i++) { time+=_history[i]; } return int(time/_history.size()*100)/100.; } void Timer::reset(){ _history[_historyPos]=_time; _historyPos++; if(_historyPos>=_history.size()) _historyPos=0; updateTime(); _time=0; start = std::chrono::system_clock::now(); } void Timer::updateTime(){ end = std::chrono::system_clock::now(); std::chrono::duration<double> elapsed_seconds = end-start; _time+= elapsed_seconds.count()*1000.0; start = std::chrono::system_clock::now(); } void Timer::run(){ _running=true; start = std::chrono::system_clock::now(); } void Timer::pause(){ _running=false; updateTime(); } }
15.315789
62
0.508591
20dcd77cc5dd5808f5c3b4f44a264eb8b24a7ba0
1,525
py
Python
sli/sli_api.py
PaloAltoNetworks/SLI
0bf0aa449e45fdfd6553d69776d4fe0e8b52675e
[ "Apache-2.0" ]
null
null
null
sli/sli_api.py
PaloAltoNetworks/SLI
0bf0aa449e45fdfd6553d69776d4fe0e8b52675e
[ "Apache-2.0" ]
2
2021-09-10T17:42:18.000Z
2021-09-10T18:57:59.000Z
sli/sli_api.py
PaloAltoNetworks/SLI
0bf0aa449e45fdfd6553d69776d4fe0e8b52675e
[ "Apache-2.0" ]
null
null
null
""" A Programamtic entrypoint for sli commands, populates sys.argv as if the command were called from the CLI directly. usage: from sli.sli_api import run_command run_command("sli configure -n my_skillet.skillet.yaml -d 192.168.1.1 -u username -p password") """ import sys from sli.cli import cli from sli.errors import SLIException, InvalidArgumentsException def start_quote(text): """Check for text starting quote""" return text.startswith("'") or text.startswith('"') def end_quote(text): """Check for text ending quote""" return text.endswith("'") or text.endswith('"') def remove_quote(text): """Remove quotes from text""" return text.replace("'", "").replace('"', "") def sli_command(command): """ Break a given command apart and load it into sys.argv as if it was processed normally from the cli """ cmd = command.strip().split(" ") if not cmd[0] == "sli": raise SLIException("SLI command did not start with sli") cmd = cmd[1:] arg = '' in_arg = False for c in cmd: if start_quote(c): in_arg = True arg += remove_quote(c) elif in_arg and end_quote(c): in_arg = False arg += " " + remove_quote(c) sys.argv.append(arg) arg = '' elif in_arg: arg += " " + c else: sys.argv.append(c) if in_arg: raise InvalidArgumentsException("No closing quote found in SLI arguments") cli(standalone_mode=False)
26.754386
94
0.617705
a845ce400a5a324607f7ce17cd32bee466d30b6a
3,315
kt
Kotlin
speakers/src/main/java/com/droidcon/speakers/presentation/speakerdetail/viewmodel/SpeakerDetailViewModel.kt
ADGevents/android-droidcon-madrid-19
01e1bbb55b65ee57f186eb0fd98cbc84ea92b3f9
[ "Apache-2.0" ]
null
null
null
speakers/src/main/java/com/droidcon/speakers/presentation/speakerdetail/viewmodel/SpeakerDetailViewModel.kt
ADGevents/android-droidcon-madrid-19
01e1bbb55b65ee57f186eb0fd98cbc84ea92b3f9
[ "Apache-2.0" ]
3
2019-12-04T15:23:58.000Z
2020-04-26T17:55:37.000Z
speakers/src/main/java/com/droidcon/speakers/presentation/speakerdetail/viewmodel/SpeakerDetailViewModel.kt
ADGevents/android-droidcon-madrid-19
01e1bbb55b65ee57f186eb0fd98cbc84ea92b3f9
[ "Apache-2.0" ]
null
null
null
package com.droidcon.speakers.presentation.speakerdetail.viewmodel import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.droidcon.commons.conference.domain.UpdateSessionStarredValue import com.droidcon.commons.tracking.SpeakerDetailTracker import com.droidcon.speakers.domain.GetSpeaker import com.droidcon.speakers.domain.GetSpeakerSessions import com.droidcon.speakers.domain.Speaker import com.droidcon.speakers.domain.SpeakerSession import com.droidcon.speakers.presentation.speakerdetail.model.* import kotlinx.coroutines.launch class SpeakerDetailViewModel( private val getSpeaker: GetSpeaker, private val getSpeakerSessions: GetSpeakerSessions, private val updateSessionStarredValue: UpdateSessionStarredValue, private val speakerDetailTracker: SpeakerDetailTracker ) : ViewModel() { private val mutableSpeakerDetailState = MutableLiveData<SpeakerDetailState>() val speakerDetailState: LiveData<SpeakerDetailState> = mutableSpeakerDetailState private val mutableSpeakerDetailEffects = MutableLiveData<SpeakerDetailEffect>() val speakerDetailEffects: LiveData<SpeakerDetailEffect> = mutableSpeakerDetailEffects fun onSpeakerDetailVisible(speakerId: String) { viewModelScope.launch { val getSpeakerResult = getSpeaker(speakerId) val speakerSessions = getSpeakerSessions(speakerId) getSpeakerResult.fold( ifLeft = {}, ifRight = { speaker -> onGetSpeakerSuccess(speaker, speakerSessions) } ) } } private fun onGetSpeakerSuccess(speaker: Speaker, speakerSessions: List<SpeakerSession>) { val speakerDetailState = speaker.toDetailState( speakerSessions, ::onSessionStarred, ::onSessionClicked ) mutableSpeakerDetailState.value = speakerDetailState } private fun onSessionStarred(session: SpeakerDetailRow.Session, isStarred: Boolean) { viewModelScope.launch { val newIsStarredValue = !isStarred updateSessionStarredState(session.id, newIsStarredValue) val isSessionUpdated = updateSessionStarredValue(session.id, newIsStarredValue) if (!isSessionUpdated) { updateSessionStarredState(session.id, isStarred) } speakerDetailTracker.trackSessionStarred(session.talkTitle, newIsStarredValue) } } private fun updateSessionStarredState(sessionId: String, isStarred: Boolean) { val speakerDetailState = mutableSpeakerDetailState.value ?: return val updatedSessions = speakerDetailState.speakerSessions.map { session -> if (session.id == sessionId) { session.copy(isStarred = isStarred) } else { session } } mutableSpeakerDetailState.value = speakerDetailState.copy(speakerSessions = updatedSessions) } private fun onSessionClicked(session: SpeakerDetailRow.Session) { mutableSpeakerDetailEffects.value = SpeakerDetailEffect.NavigateToSession(session.id) speakerDetailTracker.trackSessionOpened(session.talkTitle) } }
40.925926
100
0.725792
ebb1d1c91ceb70f2b07df6fe8ff03214f3519de1
2,411
css
CSS
css/base.css
denilsonsa/twofactorauth
07d800d8925f9f7f1e7440e1e4bedb83028d8de3
[ "MIT" ]
1
2016-07-25T20:04:38.000Z
2016-07-25T20:04:38.000Z
css/base.css
denilsonsa/twofactorauth
07d800d8925f9f7f1e7440e1e4bedb83028d8de3
[ "MIT" ]
2
2021-09-28T06:00:47.000Z
2022-02-26T12:16:29.000Z
css/base.css
denilsonsa/twofactorauth
07d800d8925f9f7f1e7440e1e4bedb83028d8de3
[ "MIT" ]
1
2019-10-05T06:28:52.000Z
2019-10-05T06:28:52.000Z
html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote, pre, form, fieldset, table, th, td { margin: 0; padding: 0; } html, body {height: 100%;} img { border: none; } ul { list-style: none; } a { color: #009FDA; text-decoration: none; } body { font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #505050; line-height: 22px; background: none; } p { margin: 1em 0; } .sidenav { position: fixed; } .container { max-width: 840px; width: 100%; margin: 0 auto; padding-top: 40px; } .main .column .banner { display: block; margin: 40px auto; } .footer { text-align: center; } .ui.table tr.negative, .ui.table td.negative, .ui.table tr.positive, .ui.table td.positive { -webkit-box-shadow: none; box-shadow: none; } td.icon { text-align: center; } td i.icon{ margin: 0 0 0 0; } td span.progress, td span.exception, td a.exception { float: right; } td a { /*color: #505050;*/ } td.twitter { text-align: center; } td img.icon { float: left; border-radius: 50%; padding: 4px 4px; -webkit-box-shadow: 0 0 0 .1em rgba(0,0,0,.1) inset; box-shadow: 0 0 0 .1em rgba(0,0,0,.1) inset; line-height: 1; margin-right: 8px; background-color: white; height: 16px; } .ui.table tr.positive td, .ui.table td.positive { background-color: #dff0d8 !important; } .ui.celled.table tr.positive:hover td, .ui.celled.table tr:hover td.positive, .ui.table tr.positive:hover td, .ui.table td:hover.positive, .ui.table th:hover.positive { background-color: #dff0d8 !important; } .ui.table tr.negative td, .ui.table td.negative { background-color: #f2dede !important; } .ui.celled.table tr.negative:hover td, .ui.celled.table tr:hover td.negative, .ui.table tr.negative:hover td, .ui.table td:hover.negative, .ui.table th:hover.negative { background-color: #f2dede !important; } .ui.divider { margin: 2em 0; } @media (min-width: 767px) { .ui.menu.main > .menu { width: 840px; margin: 0 auto; } } @media only screen and (max-width: 1199px) { .ui.menu.desktop { display: block; } .ui.menu.mobile { display: none; } } @media only screen and (min-width: 480px) and (max-width: 767px), screen and (max-width: 479px) { .ui.menu.desktop { display: none; } .ui.menu.mobile { display: block; } }
17.727941
141
0.627126
4b74679c313220d008be2f2ed9115ee26a73f2dc
11,094
cpp
C++
c/Haxe/OpenFL/01.HelloWorld/Export/windows/cpp/obj/src/lime/audio/FlashAudioContext.cpp
amenoyoya/old-project
640ec696af5d18267d86629098f41451857f8103
[ "MIT" ]
null
null
null
c/Haxe/OpenFL/01.HelloWorld/Export/windows/cpp/obj/src/lime/audio/FlashAudioContext.cpp
amenoyoya/old-project
640ec696af5d18267d86629098f41451857f8103
[ "MIT" ]
1
2019-07-07T09:52:20.000Z
2019-07-07T09:52:20.000Z
c/Haxe/OpenFL/01.HelloWorld/Export/windows/cpp/obj/src/lime/audio/FlashAudioContext.cpp
amenoyoya/old-project
640ec696af5d18267d86629098f41451857f8103
[ "MIT" ]
null
null
null
#include <hxcpp.h> #ifndef INCLUDED_lime_audio_AudioBuffer #include <lime/audio/AudioBuffer.h> #endif #ifndef INCLUDED_lime_audio_FlashAudioContext #include <lime/audio/FlashAudioContext.h> #endif namespace lime{ namespace audio{ Void FlashAudioContext_obj::__construct() { HX_STACK_FRAME("lime.audio.FlashAudioContext","new",0xd15df86a,"lime.audio.FlashAudioContext.new","lime/audio/FlashAudioContext.hx",12,0xbb50a608) HX_STACK_THIS(this) { } ; return null(); } //FlashAudioContext_obj::~FlashAudioContext_obj() { } Dynamic FlashAudioContext_obj::__CreateEmpty() { return new FlashAudioContext_obj; } hx::ObjectPtr< FlashAudioContext_obj > FlashAudioContext_obj::__new() { hx::ObjectPtr< FlashAudioContext_obj > result = new FlashAudioContext_obj(); result->__construct(); return result;} Dynamic FlashAudioContext_obj::__Create(hx::DynamicArray inArgs) { hx::ObjectPtr< FlashAudioContext_obj > result = new FlashAudioContext_obj(); result->__construct(); return result;} ::lime::audio::AudioBuffer FlashAudioContext_obj::createBuffer( Dynamic stream,Dynamic context){ HX_STACK_FRAME("lime.audio.FlashAudioContext","createBuffer",0xd64383d2,"lime.audio.FlashAudioContext.createBuffer","lime/audio/FlashAudioContext.hx",26,0xbb50a608) HX_STACK_THIS(this) HX_STACK_ARG(stream,"stream") HX_STACK_ARG(context,"context") HX_STACK_LINE(26) return null(); } HX_DEFINE_DYNAMIC_FUNC2(FlashAudioContext_obj,createBuffer,return ) int FlashAudioContext_obj::getBytesLoaded( ::lime::audio::AudioBuffer buffer){ HX_STACK_FRAME("lime.audio.FlashAudioContext","getBytesLoaded",0xb339da10,"lime.audio.FlashAudioContext.getBytesLoaded","lime/audio/FlashAudioContext.hx",42,0xbb50a608) HX_STACK_THIS(this) HX_STACK_ARG(buffer,"buffer") HX_STACK_LINE(42) return (int)0; } HX_DEFINE_DYNAMIC_FUNC1(FlashAudioContext_obj,getBytesLoaded,return ) int FlashAudioContext_obj::getBytesTotal( ::lime::audio::AudioBuffer buffer){ HX_STACK_FRAME("lime.audio.FlashAudioContext","getBytesTotal",0xad490c19,"lime.audio.FlashAudioContext.getBytesTotal","lime/audio/FlashAudioContext.hx",57,0xbb50a608) HX_STACK_THIS(this) HX_STACK_ARG(buffer,"buffer") HX_STACK_LINE(57) return (int)0; } HX_DEFINE_DYNAMIC_FUNC1(FlashAudioContext_obj,getBytesTotal,return ) Dynamic FlashAudioContext_obj::getID3( ::lime::audio::AudioBuffer buffer){ HX_STACK_FRAME("lime.audio.FlashAudioContext","getID3",0x0b7a1b58,"lime.audio.FlashAudioContext.getID3","lime/audio/FlashAudioContext.hx",72,0xbb50a608) HX_STACK_THIS(this) HX_STACK_ARG(buffer,"buffer") HX_STACK_LINE(72) return null(); } HX_DEFINE_DYNAMIC_FUNC1(FlashAudioContext_obj,getID3,return ) bool FlashAudioContext_obj::getIsBuffering( ::lime::audio::AudioBuffer buffer){ HX_STACK_FRAME("lime.audio.FlashAudioContext","getIsBuffering",0xa97f99d8,"lime.audio.FlashAudioContext.getIsBuffering","lime/audio/FlashAudioContext.hx",87,0xbb50a608) HX_STACK_THIS(this) HX_STACK_ARG(buffer,"buffer") HX_STACK_LINE(87) return false; } HX_DEFINE_DYNAMIC_FUNC1(FlashAudioContext_obj,getIsBuffering,return ) bool FlashAudioContext_obj::getIsURLInaccessible( ::lime::audio::AudioBuffer buffer){ HX_STACK_FRAME("lime.audio.FlashAudioContext","getIsURLInaccessible",0x2645b2e0,"lime.audio.FlashAudioContext.getIsURLInaccessible","lime/audio/FlashAudioContext.hx",102,0xbb50a608) HX_STACK_THIS(this) HX_STACK_ARG(buffer,"buffer") HX_STACK_LINE(102) return false; } HX_DEFINE_DYNAMIC_FUNC1(FlashAudioContext_obj,getIsURLInaccessible,return ) Float FlashAudioContext_obj::getLength( ::lime::audio::AudioBuffer buffer){ HX_STACK_FRAME("lime.audio.FlashAudioContext","getLength",0x4a4ce9a6,"lime.audio.FlashAudioContext.getLength","lime/audio/FlashAudioContext.hx",117,0xbb50a608) HX_STACK_THIS(this) HX_STACK_ARG(buffer,"buffer") HX_STACK_LINE(117) return (int)0; } HX_DEFINE_DYNAMIC_FUNC1(FlashAudioContext_obj,getLength,return ) ::String FlashAudioContext_obj::getURL( ::lime::audio::AudioBuffer buffer){ HX_STACK_FRAME("lime.audio.FlashAudioContext","getURL",0x0b8342af,"lime.audio.FlashAudioContext.getURL","lime/audio/FlashAudioContext.hx",132,0xbb50a608) HX_STACK_THIS(this) HX_STACK_ARG(buffer,"buffer") HX_STACK_LINE(132) return null(); } HX_DEFINE_DYNAMIC_FUNC1(FlashAudioContext_obj,getURL,return ) Void FlashAudioContext_obj::close( ::lime::audio::AudioBuffer buffer){ { HX_STACK_FRAME("lime.audio.FlashAudioContext","close",0x0e4ed642,"lime.audio.FlashAudioContext.close","lime/audio/FlashAudioContext.hx",137,0xbb50a608) HX_STACK_THIS(this) HX_STACK_ARG(buffer,"buffer") } return null(); } HX_DEFINE_DYNAMIC_FUNC1(FlashAudioContext_obj,close,(void)) Float FlashAudioContext_obj::extract( ::lime::audio::AudioBuffer buffer,Dynamic target,Float length,hx::Null< Float > __o_startPosition){ Float startPosition = __o_startPosition.Default(-1); HX_STACK_FRAME("lime.audio.FlashAudioContext","extract",0x602aaa4b,"lime.audio.FlashAudioContext.extract","lime/audio/FlashAudioContext.hx",160,0xbb50a608) HX_STACK_THIS(this) HX_STACK_ARG(buffer,"buffer") HX_STACK_ARG(target,"target") HX_STACK_ARG(length,"length") HX_STACK_ARG(startPosition,"startPosition") { HX_STACK_LINE(160) return (int)0; } } HX_DEFINE_DYNAMIC_FUNC4(FlashAudioContext_obj,extract,return ) Void FlashAudioContext_obj::load( ::lime::audio::AudioBuffer buffer,Dynamic stream,Dynamic context){ { HX_STACK_FRAME("lime.audio.FlashAudioContext","load",0x5f907adc,"lime.audio.FlashAudioContext.load","lime/audio/FlashAudioContext.hx",165,0xbb50a608) HX_STACK_THIS(this) HX_STACK_ARG(buffer,"buffer") HX_STACK_ARG(stream,"stream") HX_STACK_ARG(context,"context") } return null(); } HX_DEFINE_DYNAMIC_FUNC3(FlashAudioContext_obj,load,(void)) Void FlashAudioContext_obj::loadCompressedDataFromByteArray( ::lime::audio::AudioBuffer buffer,Dynamic bytes,int bytesLength){ { HX_STACK_FRAME("lime.audio.FlashAudioContext","loadCompressedDataFromByteArray",0x525c92e0,"lime.audio.FlashAudioContext.loadCompressedDataFromByteArray","lime/audio/FlashAudioContext.hx",178,0xbb50a608) HX_STACK_THIS(this) HX_STACK_ARG(buffer,"buffer") HX_STACK_ARG(bytes,"bytes") HX_STACK_ARG(bytesLength,"bytesLength") } return null(); } HX_DEFINE_DYNAMIC_FUNC3(FlashAudioContext_obj,loadCompressedDataFromByteArray,(void)) Void FlashAudioContext_obj::loadPCMFromByteArray( ::lime::audio::AudioBuffer buffer,Dynamic bytes,int samples,::String format,hx::Null< bool > __o_stereo,hx::Null< Float > __o_sampleRate){ bool stereo = __o_stereo.Default(true); Float sampleRate = __o_sampleRate.Default(44100); HX_STACK_FRAME("lime.audio.FlashAudioContext","loadPCMFromByteArray",0x7dd47e29,"lime.audio.FlashAudioContext.loadPCMFromByteArray","lime/audio/FlashAudioContext.hx",191,0xbb50a608) HX_STACK_THIS(this) HX_STACK_ARG(buffer,"buffer") HX_STACK_ARG(bytes,"bytes") HX_STACK_ARG(samples,"samples") HX_STACK_ARG(format,"format") HX_STACK_ARG(stereo,"stereo") HX_STACK_ARG(sampleRate,"sampleRate") { } return null(); } HX_DEFINE_DYNAMIC_FUNC6(FlashAudioContext_obj,loadPCMFromByteArray,(void)) Dynamic FlashAudioContext_obj::play( ::lime::audio::AudioBuffer buffer,hx::Null< Float > __o_startTime,hx::Null< int > __o_loops,Dynamic sndTransform){ Float startTime = __o_startTime.Default(0); int loops = __o_loops.Default(0); HX_STACK_FRAME("lime.audio.FlashAudioContext","play",0x62330eaa,"lime.audio.FlashAudioContext.play","lime/audio/FlashAudioContext.hx",214,0xbb50a608) HX_STACK_THIS(this) HX_STACK_ARG(buffer,"buffer") HX_STACK_ARG(startTime,"startTime") HX_STACK_ARG(loops,"loops") HX_STACK_ARG(sndTransform,"sndTransform") { HX_STACK_LINE(214) return null(); } } HX_DEFINE_DYNAMIC_FUNC4(FlashAudioContext_obj,play,return ) FlashAudioContext_obj::FlashAudioContext_obj() { } Dynamic FlashAudioContext_obj::__Field(const ::String &inName,bool inCallProp) { switch(inName.length) { case 4: if (HX_FIELD_EQ(inName,"load") ) { return load_dyn(); } if (HX_FIELD_EQ(inName,"play") ) { return play_dyn(); } break; case 5: if (HX_FIELD_EQ(inName,"close") ) { return close_dyn(); } break; case 6: if (HX_FIELD_EQ(inName,"getID3") ) { return getID3_dyn(); } if (HX_FIELD_EQ(inName,"getURL") ) { return getURL_dyn(); } break; case 7: if (HX_FIELD_EQ(inName,"extract") ) { return extract_dyn(); } break; case 9: if (HX_FIELD_EQ(inName,"getLength") ) { return getLength_dyn(); } break; case 12: if (HX_FIELD_EQ(inName,"createBuffer") ) { return createBuffer_dyn(); } break; case 13: if (HX_FIELD_EQ(inName,"getBytesTotal") ) { return getBytesTotal_dyn(); } break; case 14: if (HX_FIELD_EQ(inName,"getBytesLoaded") ) { return getBytesLoaded_dyn(); } if (HX_FIELD_EQ(inName,"getIsBuffering") ) { return getIsBuffering_dyn(); } break; case 20: if (HX_FIELD_EQ(inName,"getIsURLInaccessible") ) { return getIsURLInaccessible_dyn(); } if (HX_FIELD_EQ(inName,"loadPCMFromByteArray") ) { return loadPCMFromByteArray_dyn(); } break; case 31: if (HX_FIELD_EQ(inName,"loadCompressedDataFromByteArray") ) { return loadCompressedDataFromByteArray_dyn(); } } return super::__Field(inName,inCallProp); } Dynamic FlashAudioContext_obj::__SetField(const ::String &inName,const Dynamic &inValue,bool inCallProp) { return super::__SetField(inName,inValue,inCallProp); } void FlashAudioContext_obj::__GetFields(Array< ::String> &outFields) { super::__GetFields(outFields); }; static ::String sStaticFields[] = { String(null()) }; #if HXCPP_SCRIPTABLE static hx::StorageInfo *sMemberStorageInfo = 0; #endif static ::String sMemberFields[] = { HX_CSTRING("createBuffer"), HX_CSTRING("getBytesLoaded"), HX_CSTRING("getBytesTotal"), HX_CSTRING("getID3"), HX_CSTRING("getIsBuffering"), HX_CSTRING("getIsURLInaccessible"), HX_CSTRING("getLength"), HX_CSTRING("getURL"), HX_CSTRING("close"), HX_CSTRING("extract"), HX_CSTRING("load"), HX_CSTRING("loadCompressedDataFromByteArray"), HX_CSTRING("loadPCMFromByteArray"), HX_CSTRING("play"), String(null()) }; static void sMarkStatics(HX_MARK_PARAMS) { HX_MARK_MEMBER_NAME(FlashAudioContext_obj::__mClass,"__mClass"); }; #ifdef HXCPP_VISIT_ALLOCS static void sVisitStatics(HX_VISIT_PARAMS) { HX_VISIT_MEMBER_NAME(FlashAudioContext_obj::__mClass,"__mClass"); }; #endif Class FlashAudioContext_obj::__mClass; void FlashAudioContext_obj::__register() { hx::Static(__mClass) = hx::RegisterClass(HX_CSTRING("lime.audio.FlashAudioContext"), hx::TCanCast< FlashAudioContext_obj> ,sStaticFields,sMemberFields, &__CreateEmpty, &__Create, &super::__SGetClass(), 0, sMarkStatics #ifdef HXCPP_VISIT_ALLOCS , sVisitStatics #endif #ifdef HXCPP_SCRIPTABLE , sMemberStorageInfo #endif ); } void FlashAudioContext_obj::__boot() { } } // end namespace lime } // end namespace audio
33.618182
206
0.765008
09305a4504d99949bc232884eb7d6d2b80a57568
1,805
lua
Lua
Lua/TickService.lua
yuyang158/xLua-Extend
545207583edc54cc3faed3ea5a11d9e6d0cedaf1
[ "MIT" ]
10
2020-07-30T10:39:27.000Z
2021-06-28T07:48:57.000Z
Lua/TickService.lua
yuyang158/xLua-Extend
545207583edc54cc3faed3ea5a11d9e6d0cedaf1
[ "MIT" ]
1
2020-08-20T13:37:04.000Z
2020-08-20T13:37:04.000Z
Lua/TickService.lua
yuyang158/xLua-Extend
545207583edc54cc3faed3ea5a11d9e6d0cedaf1
[ "MIT" ]
3
2021-01-18T04:00:33.000Z
2021-04-23T01:56:47.000Z
local pairs, next, table, xpcall, setmetatable = pairs, next, table, xpcall, setmetatable local util = require("util") local uv = require "luv" ---@class TickService local M = {} local tickers = {} local tickerToAdd = {} function M.Init() setmetatable(tickers, {__mode = "k"}) end function M.Register(func, ...) local packed = table.pack(...) tickerToAdd[func] = packed end function M.Tick(deltaTime) uv.run("nowait") for func, pack in pairs(tickerToAdd) do tickers[func] = pack end tickerToAdd = {} for func, packed in pairs(tickers) do if packed.n ~= 0 then util.xpcall_catch(func, table.unpack(packed), deltaTime) else util.xpcall_catch(func, deltaTime) end end end ---@param seconds number 超时时间 ---@param repeatTimes integer 重复次数, -1无限重复 ---@return function 调用后移除 function M.Timeout(seconds, repeatTimes, callback, ...) local timer = uv.new_timer() local start, interval if type(seconds) == "table" then start = math.floor(seconds.start * 1000) interval = math.floor(seconds.interval * 1000) else start = math.floor(seconds * 1000) interval = math.floor(seconds * 1000) end local args = table.pack(...) timer:start(start, interval, function() local ok, complete = util.xpcall_catch(callback, table.unpack(args)) if not ok or complete then timer:close() return end if repeatTimes > 0 then repeatTimes = repeatTimes - 1 if repeatTimes == 0 then timer:close() end end end) return function() timer:close() end end function M.Unregister(func) tickerToAdd[func] = nil tickers[func] = nil end return M
24.066667
89
0.612188
c6d7a3096be6cd957ababc6a6217a7807da05743
1,389
py
Python
setup.py
evocount/connectors
966007b92a98a6e921a3c127f1b9f8ee1aca3d1b
[ "MIT" ]
2
2020-08-11T02:45:09.000Z
2021-02-26T01:25:23.000Z
setup.py
evocount/tcp-connectors
966007b92a98a6e921a3c127f1b9f8ee1aca3d1b
[ "MIT" ]
null
null
null
setup.py
evocount/tcp-connectors
966007b92a98a6e921a3c127f1b9f8ee1aca3d1b
[ "MIT" ]
null
null
null
""" Copyright (C) EvoCount GmbH - All Rights Reserved Unauthorized copying of this file, via any medium is strictly prohibited Proprietary and confidential. """ from codecs import open from os import path from setuptools import find_packages, setup here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='tcp-connectors', version='0.1.5', description='Connectors for connecting to any TCP-based service', long_description=long_description, long_description_content_type='text/markdown', url='https://github.com/evocount/tcp-connectors', download_url='https://github.com/evocount/tcp-connectors/archive/v0.1.5.tar.gz', author='EvoCount GmbH', author_email='[email protected]', license='MIT', packages=find_packages(), install_requires=[ "gmqtt", "aiohttp", "cchardet", "aiodns", ], # see: https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', ], python_requires='>=3.6', )
26.711538
84
0.665947
97ab4b4ad68c5831228eca3978f9dae687fb7777
298
ts
TypeScript
src/modules/order_product/order_product.module.ts
JanChw/shop_server
c37141510d517262e2f64a312f73f2291ecf2ca9
[ "MIT" ]
null
null
null
src/modules/order_product/order_product.module.ts
JanChw/shop_server
c37141510d517262e2f64a312f73f2291ecf2ca9
[ "MIT" ]
2
2021-09-02T14:25:48.000Z
2022-01-22T12:46:58.000Z
src/modules/order_product/order_product.module.ts
JanChw/shop_server
c37141510d517262e2f64a312f73f2291ecf2ca9
[ "MIT" ]
null
null
null
import { Module } from '@nestjs/common'; import { OrderProductService } from './order_product.service'; import { OrderProductController } from './order_product.controller'; @Module({ providers: [OrderProductService], controllers: [OrderProductController] }) export class OrderProductModule {}
29.8
68
0.765101
df6d7a2293450622d8603e5085e2d273f06a0719
1,548
rb
Ruby
attributes/default.rb
sckuchi/nginx_amplify
6d24e57fdd1cf7551191f16bb1499eb9b05c00e1
[ "Apache-2.0" ]
null
null
null
attributes/default.rb
sckuchi/nginx_amplify
6d24e57fdd1cf7551191f16bb1499eb9b05c00e1
[ "Apache-2.0" ]
null
null
null
attributes/default.rb
sckuchi/nginx_amplify
6d24e57fdd1cf7551191f16bb1499eb9b05c00e1
[ "Apache-2.0" ]
null
null
null
if node['platform_version'].to_i >= 7 default['nginx']['amplify']['platform_version'] = 7 else default['nginx']['amplify']['platform_version'] = 6 end #Accepted values are default, custom # use custom if you want to override the settings. default['nginx']['amplify']['install_type'] = "default" default['nginx']['amplify']['version'] = "0.46.2" default['nginx']['amplify']['api_key'] = "ef84d1a2fc73f2b2c376348fcb67ae90" default['nginx']['amplify']['url'] = "https://packages.amplify.nginx.com/#{node['platform']}/#{node['nginx']['amplify']['platform_version']}/#{node['kernel']['machine']}/RPMS/nginx-amplify-agent-#{node['nginx']['amplify']['version']}.el#{node['nginx']['amplify']['platform_version']}.#{node['kernel']['machine']}.rpm" default['nginx']['amplify']['package_name']="nginx-amplify-agent" default['nginx']['amplify']['agent_conf_path']="/etc/amplify-agent" default['nginx']['amplify']['agent_conf_file']="#{node['nginx']['amplify']['agent_conf_path']}/agent.conf" default['nginx']['amplify']['amplify_hostname']="node['fqdn']" default['nginx']['amplify']['api_url']="https://receiver.amplify.nginx.com:443" default['nginx']['amplify']['api_ping_url']="#{node['nginx']['amplify']['api_url']}/ping/" default['nginx']['amplify']['api_receiver_url']="#{node['nginx']['amplify']['api_url']}/1.3" default['nginx']['amplify']['public_ntp']="north-america.pool.ntp.org" default['nginx']['amplify']['nginx_conf_file']="/etc/nginx/nginx.conf" default['nginx']['amplify']['amplify_pid_file']="/var/run/amplify-agent/amplify-agent.pid"
59.538462
317
0.690568